User Tools

Site Tools


acdsn:acdsn-v-fx

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
acdsn:acdsn-v-fx [2018/01/19 07:52] – [New] aheritieracdsn:acdsn-v-fx [2023/09/08 10:06] – [Return Code (HEX)] maferreira
Line 29: Line 29:
 ^ Label        ^ Arguments ^ Options ^ Comments ^ ^ Label        ^ Arguments ^ Options ^ Comments ^
 | format       | a         ||| | format       | a         |||
-| copy file    | c         |<filename>/t<copyFilename>| 
 | delete file  | g         |%%<filename>%%||  | delete file  | g         |%%<filename>%%||
 | restart      | s         ||| | restart      | s         |||
-| delete unit  | u         || if option set to 0, delete file| +| delete unit  | u         || if option set to 0, delete file|  
 +| delete tmp files  | y         || delete file for Newfile fct |
 ==== New ==== ==== New ====
 ^ Label                    ^ Arguments ^ Options                   ^ Comments              ^ ^ Label                    ^ Arguments ^ Options                   ^ Comments              ^
 | new Check                | c         | || | new Check                | c         | ||
 | new Entry                | e         | <nb request>        | | | new Entry                | e         | <nb request>        | |
-| new file                 | g         |<filename>\t<filesize>\t<CRC>  ||+| new file                 | g         |%%<filename>%%\t<CRC>  ||
 | new Vault Status         | h         | <unit>\t<status>        | ouverture(1) / fermeture(0) | | new Vault Status         | h         | <unit>\t<status>        | ouverture(1) / fermeture(0) |
-| new mode                 | m         | <value> | +| copy file                | i         |<filename>/t<copyFilename>
 +| new mode                 | m         | <mode> |
 | new firmware version     | n         | %%<filename>%%\t<retry times> ||  | new firmware version     | n         | %%<filename>%%\t<retry times> ||
 | new general status       | s         | <value>                   | set value in NiX general status |  | new general status       | s         | <value>                   | set value in NiX general status |
 | new timestamp            | t         | <timestamp>\t<TZ> | only if RTC defined (used to synchronize clock)(date +%s) |  | new timestamp            | t         | <timestamp>\t<TZ> | only if RTC defined (used to synchronize clock)(date +%s) |
 | new unit                 | u         |<unit>\t<CH>\t<staytime>|| | new unit                 | u         |<unit>\t<CH>\t<staytime>||
 +| new file packet          | y         | <nbrPacket>/t<blockLength>/t<CRC>/t<block>                ||
 | new baudrate             | z         | <baudrate>                || | new baudrate             | z         | <baudrate>                ||
 ==== Query ==== ==== Query ====
Line 51: Line 53:
 | query vault status         | h         |<unit> |Receive: <VaultStatus>| | query vault status         | h         |<unit> |Receive: <VaultStatus>|
 | query extension            | i         |<extension> | give a list of files with the extension desired (TXT,1, ...) | | query extension            | i         |<extension> | give a list of files with the extension desired (TXT,1, ...) |
 +| query mode                 | m         | |
 | query firmware version     | n         | | | | query firmware version     | n         | | |
 | query Checksum             | p         |<filename>| | | query Checksum             | p         |<filename>| |
Line 56: Line 59:
 | query general status       | s         | | | | query general status       | s         | | |
 | query timestamp            | t         | | only if RTC is defined     |  | query timestamp            | t         | | only if RTC is defined     |
-| query unit                 | u         |<CH>|Receive : <unit><staytime> | +| query unit                 | u         |<unit>|Receive : <unit>\t<CH>\t<staytime> |
 | query init state           | x         |   | Receive: <initState><ChecksumInit>| | query init state           | x         |   | Receive: <initState><ChecksumInit>|
 ===== Options ===== ===== Options =====
 ^ Options               ^ Comments ^ ^ Options               ^ Comments ^
 +|<block>                | block content (each char is formatted in 2 ascii in hexa value) => 'a' = 0x61 => sent : "61"             |
 +|<blockLength>          | length of the actual block in bytes              |
 |<filename>             | filename (format : 88888888.333)                 | |<filename>             | filename (format : 88888888.333)                 |
 |<copyFilename>         | filename destination                             | |<copyFilename>         | filename destination                             |
Line 68: Line 73:
 |<retry times>          | number of retry times                            |                                          |<retry times>          | number of retry times                            |                                         
 |<timestamp>            | 0 to 9'999'999'999 [seconds since 1.1.1970]      | |<timestamp>            | 0 to 9'999'999'999 [seconds since 1.1.1970]      |
 +|<nbrPacket>            | packet total number for a file                   |
 |<TZ>                   | -1200 to +1400                                   | |<TZ>                   | -1200 to +1400                                   |
 |<staytime>             | delay for the time to stay open  | |<staytime>             | delay for the time to stay open  |
Line 73: Line 79:
 |<stateInit>            | envoi de tous les coffres avec un status différent de 0 (masque codé en ASCII HEXA)| |<stateInit>            | envoi de tous les coffres avec un status différent de 0 (masque codé en ASCII HEXA)|
 |<checksumInit>         | checksum de l'envoi du state| |<checksumInit>         | checksum de l'envoi du state|
 +|<mode>                 | mode du timeout (1: normal, 2: le timeout se reset à chaque fermeture client) |
  
  
Line 101: Line 108:
 |  46  |               | ERROR_FLASH           | |  46  |               | ERROR_FLASH           |
 |  47  |               | ERROR_CRC             | |  47  |               | ERROR_CRC             |
-|  48  |               | ERROR_HASH            |+|  48  |               | ERROR_HASH            |
 |  49  |               | ERROR_IB              | |  49  |               | ERROR_IB              |
 |  4B  |               | ERROR_KEY             | |  4B  |               | ERROR_KEY             |
Line 114: Line 121:
 |  54  |               | ERROR_TYPE | |  54  |               | ERROR_TYPE |
 |  55  |               | ERROR_USER            | |  55  |               | ERROR_USER            |
 +|  56  |               | ERROR_VAULT |
 |  57  |               | ERROR_WRITE           | |  57  |               | ERROR_WRITE           |
 |  58  |               | ERROR_X               | |  58  |               | ERROR_X               |
Line 169: Line 177:
 </file> </file>
 ==== ACCESS.# ==== ==== ACCESS.# ====
-This file contains important logs. (# is the extension of day of year)+This file contains important logs. **#** is the day of year (eg: 1 February == 32). It corresponds to the output of the following command: 
 + 
 +<code bash> 
 +date +%j 
 +</code>
  
 ^ Field Name          ^ Description                ^ Example     ^ ^ Field Name          ^ Description                ^ Example     ^
acdsn/acdsn-v-fx.txt · Last modified: 2023/09/08 12:42 by maferreira