User Tools

Site Tools


acdsn:acdsn-sc-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
acdsn:acdsn-sc-fx [2015/02/23 16:46] – [Delete] fdacruzacdsn:acdsn-sc-fx [2018/05/28 07:19] (current) aheritier
Line 4: Line 4:
  
 <code bash> <code bash>
- 1Qw3 + 2700000000000000Qw3 
- ^^^^ +               ^^^ 
- |||| +               ||| 
- |||- option +               ||- option 
- ||-- argument +               |-- argument 
- |--- command+               --- command
  ---- address  ---- address
 </code> </code>
- 
 ===== Commands ===== ===== Commands =====
 ^ Label     ^ Command ^ ^ Label     ^ Command ^
Line 27: Line 26:
 | restart              | s         ||| | restart              | s         |||
 | delete wire          | w         | <sid> | address of device to delete|  | delete wire          | w         | <sid> | address of device to delete|
 +| delete tmp files  | y         || delete file for Newfile fct |
 ==== New ==== ==== New ====
-^ Label                    ^ Arguments ^ Options                   ^ Comments                                                ^+^ Label                    ^ Arguments ^ Options                   ^ Comments ^ 
 +| new alarm status    | a         | <value>                   | set the alarm value |
 | new discontinuation    | d         | <discontinuation>         | set the timeout value after which the slave consider itself to be abandoned by the server| | new discontinuation    | d         | <discontinuation>         | set the timeout value after which the slave consider itself to be abandoned by the server|
-| new file                 | g         |%%<filename>%%\t<>\t<CRC>   || +| new file                 | g         |%%<filename>%%\t<CRC>  || 
-| new buzzer mode          | j         | <mode>                    | buzzer activated or not                                 +| new buzzer mode          | j         | <mode>                    | buzzer activated or not | 
-| new limit                | l         | <sid>\t<limitH>\t<limitL>\t<resolution> | set alarm boundaries                                    |  +| new limit                | l         | <sid>\t<limitL>\t<limitH>\t<resolution> | set alarm boundaries |  
-| new mode                 | m         0\t<mode>                 slave enable/disable                                    +| new mode                 | m         | <mode>                    NiX1 enable/disable | 
-:::                      :::       | <sid>\t<mode OW device enable/disable                                |  +new firmware             n         %%<filename>%%\t<CRC>\t<retry times> ||                                                 
-| new firmware             | n                                                                                   +| new recess               | r         | <recess>                  | scan-rate interval | 
-| new recess               | r         | <recess>                  | scan-rate interval                                      |  +| new general status       | s         | <value>                   | set value in NiX general status |  
-| new timestamp            | t         | <timestamp>         | only if RTC defined (used to synchronize clock)         | +| new timestamp            | t         | <timestamp>\t<TZ>         | only if RTC defined (used to synchronize clock) |
 | new wire                 | w         | 0                         | scan the lines and return the number of OW device found | | new wire                 | w         | 0                         | scan the lines and return the number of OW device found |
-| :::                      | :::       | <sid>\t<suid>\t<enable>   | add an OW device to the desired address (only families 20 and 28)|+| :::                      | :::       | <sid>\t<suid>\t<mode>   | add an OW device to the desired address (only families 20 and 28)
 +| new file packet          | y         | <nbrPacket>/t<blockLength>/t<CRC>/t<block>                || 
 +| new baudrate             | z         | <baudrate>                ||
 ==== Query ==== ==== Query ====
 ^ Label                        ^ Arguments ^ Options ^ Comments                     ^ ^ Label                        ^ Arguments ^ Options ^ Comments                     ^
-| query discontinuation status | d                     | no query from server timeout | +| query alarm status        | a         || number of sensors in alarm | 
-| query file                   | g         |%%<filename>%%\t<limit> ||+| query discontinuation status | d         || no query from server timeout | 
 +| query file                   | g         | %%<filename>%%\t<limit> ||
 | 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 buzzer status          | j         ||| | query buzzer status          | j         |||
-| query mode                   | m         0 (zero)    slave active or not   +| query mode                   | m         || NiX1 active or not   |
-| :::                          | :::       | <sid> | OW devices active or not |+
 | query firmware version       | n         ||| | query firmware version       | n         |||
-| query recess                 | r                     | scan-rate intervall          | +| query recess                 | r         || scan-rate intervall          | 
-| query status                 | s         0 (zero)    how many devices in alarm +| query general status         | s         ||| 
-| query timestamp              | t                     | only if RTC is defined       |  +| query timestamp              | t         || only if RTC is defined       |  
-| query value                  | x         |||+| query value                  | x         <sid> give the temperature of the device |
  
 ===== 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              |
 +|<CRC>                  | 16 bits value                                    |
 +|<discontinuation>      | 0 to 4294967295 [seconds] (if 0 we don't care about discontinuation) |
 +|%%<filename>%%         | File on uSD: CONFIG.TXT, KEYS.TXT ...            |
 |<limitH>               | Higher alarm limit (integer from -128 to +127) | |<limitH>               | Higher alarm limit (integer from -128 to +127) |
 |<limitL>               | Lower alarm limit (integer from -128 to +127) | |<limitL>               | Lower alarm limit (integer from -128 to +127) |
 +|<nbrPacket>            | packet total number for a file                   |
 |<mode>                 | 0 [disable] or 1 [enable]                   | |<mode>                 | 0 [disable] or 1 [enable]                   |
-|<recess>               | 0 to 180 [seconds]                          |+|<recess>               | 0 to 65534 [seconds] (~18H) (if 0 we don't care about check sensors alarms) |
 |<resolution>           | decimal resolution (0->0.5, 1->0.25, 2->0.125 and 3->0.0625) | |<resolution>           | decimal resolution (0->0.5, 1->0.25, 2->0.125 and 3->0.0625) |
-|<suid>                 identification of iButton on 8 char ['0-9'-'A-Z'-'a-z'] like 0A0b0009 |+|<suid>                 alias of iButton on 8 char ['0-9'-'A-Z'-'a-z'] like 0A0b0009 |
 |<timestamp>            | 0 to 9'999'999'999 [seconds since 1.1.1970] | |<timestamp>            | 0 to 9'999'999'999 [seconds since 1.1.1970] |
 +|<timezone>             | -1200 to +1400 |
 +
 +===== Return Code (HEX) =====
 +^ Code ^ Transmission ^ Functions ^
 +|  67  | ERROR_OPEN            | |
 +|  68  | ERROR_SHORTGND           | |
 +|  69  | ERROR_SHORTVCC           | |
  
 ===== Configuration Files (Micro-SD) ===== ===== Configuration Files (Micro-SD) =====
Line 69: Line 85:
  
 ==== ACTIVITY.# ==== ==== ACTIVITY.# ====
-File where all iButton interruptions are recorded. # is the extension of day of year.+File where all events are recorded (Timeout, alarm, ...). # is the extension of day of year
  
 First line: First line:
-^ Field Name      ^ Description                                  ^ Example    +^ Field Name      ^ Description                                  ^ Example          
-| timestamp       | The timestamp of the time when the NiX start | 1400578529 | +| timestamp       | The timestamp of the time when the NiX start | 1400578529       
-| slave address   | SID of the slave                             21EAF5320000000E |+| slave address   | SID of NiX                                   | 271A2100000000F3 | 
 +| general status  | Last general status of NiX before the start (in hex format) 00 |
  
 After: After:
Line 82: Line 99:
  
 <file log ACTIVITY.#> <file log ACTIVITY.#>
-0 Slave ID: 1+1424700000 Slave ID: 2712213200000013 General status: 00
 1424708939 Timeout begin 1424708939 Timeout begin
 1424708939 Alarm on device 281006FF01000099 alias qwertzui 1424708939 Alarm on device 281006FF01000099 alias qwertzui
Line 100: Line 117:
  
 <file txt CONFIG.TXT> <file txt CONFIG.TXT>
-ADDRESS 1 
 BAUDRATE 9600 BAUDRATE 9600
 BUZZER 0 BUZZER 0
Line 108: Line 124:
 </file> </file>
  
-==== SID_S.TXT ====+==== SID_S.XX ====
 This file contains the link between the iDevice's address, the iDevice's now, the iDevice's SID and the iDevice's identification(suid). This file contains the link between the iDevice's address, the iDevice's now, the iDevice's SID and the iDevice's identification(suid).
 +The extension XX is the 2 last character of the SID.
  
 ^ Field Name ^ Description                                                      ^ Example          ^ ^ Field Name ^ Description                                                      ^ Example          ^
-| address    | Address of the iDevice                                           | 47               | 
-| now        | The identification of the line where the device is connected     | 1                | 
 | sid        | Sid of the iDevice                                               | 281006FF01000099 | | sid        | Sid of the iDevice                                               | 281006FF01000099 |
 | suid       | The identification of the iDevice                                | 0AbCd77a         | | suid       | The identification of the iDevice                                | 0AbCd77a         |
 +| enable     | Parameter to say if the device is enable or not                  | 1                |
  
-<file txt SID_S.TXT>+<file txt SID_S.99>
 281006FF01000099 DDDDDDDD 1 281006FF01000099 DDDDDDDD 1
-281007AF01000031 Abc12340 0 +281007AF01000099 Abc12340 0 
-281C59FF00000008 003234Al 1 +281C59FF00000099 003234Al 1 
-289087A0F1000034 00000b0a 1+289087A0F1000099 00000b0a 1
 </file> </file>
  
-==== SID_S.LST ====+==== SID_S_L.TXT ====
 This file is created when we do the command Nw0, NiX1 search in all now for connected iDevices. This file is created when we do the command Nw0, NiX1 search in all now for connected iDevices.
  
Line 131: Line 147:
 | sid        | Sid of the iDevice                                               | 281006FF01000099 | | sid        | Sid of the iDevice                                               | 281006FF01000099 |
  
-<file txt SID_S.LST>+<file txt SID_S_L.TXT>
 2 2712213200000013 2 2712213200000013
 0       281007AF01000031 0       281007AF01000031
Line 138: Line 154:
  
 ==== Temperatures Files ==== ==== Temperatures Files ====
-These files contain the temperatures read each scan rate.+These files contain the temperatures read each scan rate when the NiX1 is in timeout and temperatures read when the master make a query value.
 The suid is the name of the file and the extension is the day of the year (ex: 01010101.237).  The suid is the name of the file and the extension is the day of the year (ex: 01010101.237). 
 25 august is the 237 day of year.  25 august is the 237 day of year. 
Line 144: Line 160:
 ^ Field Name             ^ Description                                                      ^ Example          ^ ^ Field Name             ^ Description                                                      ^ Example          ^
 | NiX1_timestamp         | The timestamp of NiX1 when he makes the check (UTC)              | 1424708939       | | NiX1_timestamp         | The timestamp of NiX1 when he makes the check (UTC)              | 1424708939       |
-| sid                    | SID of the iButton                                               | 21EAF5320000000E | +| sid                    | SID of the device                                                | 21EAF5320000000E | 
-| temperatures           | Temperatures measured during mission (in decimal format)         | -12.250          |+| temperatures           | Temperatures measured each scan rate when timeout (in decimal format) | -12.2500    |
  
 <file log DDDDDDDD.325> <file log DDDDDDDD.325>
acdsn/acdsn-sc-fx.1424709999.txt.gz · Last modified: 2015/02/23 16:46 by fdacruz