acdsn:acdsn-sc-fx
This is an old revision of the document!
Table of Contents
ACDSN-sC-FX
The following line shows how to address and communicate with a NiX1 slave over a RS485 line.
1Qw3 ^^^^ |||| |||- option ||-- argument |--- command ---- address
Commands
Arguments
Delete
Label | Arguments | Options | Comments |
---|---|---|---|
format | a | ||
delete file | g | <filename> | |
restart | s | ||
delete wire | w | <device_address> | address of device to delete |
New
Label | Arguments | Options | Comments |
---|---|---|---|
new address | a | <address> | change address |
new contact mode | c | <contact>\t<mode> | set contact NO/NC mode |
new discontinuation | d | <discontinuation> | set the timeout value after which the slave consider itself to be abandoned by the server |
new buzzer mode | j | <mode> | buzzer activated or not |
new limit | l | <device_address>\t<limitH>\t<limitL>\t<resolution> | set alarm boundaries |
new mode | m | 0\t<mode> | slave enable/disable |
<contact>\t<mode> | contact enable/disable | ||
<device_address>\t<mode> | OW device enable/disable | ||
new firmware | n | ||
new recess | r | <recess> | scan-rate interval |
new timestamp | t | <timestamp> | only if RTC defined (used to synchronize clock) |
new wire | w | 0 | scan the lines and return the number of OW device found |
<device_address>\t<now>\t<sid> | add an OW device to the desired address (only families 20 and 27) |
Query
Label | Arguments | Options | Comments |
---|---|---|---|
query contact status | c | ||
query discontinuation status | d | no query from server timeout | |
query family | f | <device_address> | get the 1-wire family of device n |
query file | g | <filename>\t<limit> | |
query buzzer status | j | ||
query mode | m | 0 (zero) | slave active or not |
<contact> | contacts active or not | ||
<device_address> | OW devices active or not | ||
query firmware version | n | ||
query recess | r | scan-rate intervall | |
query status | s | 0 (zero) | global status |
<contact> | contacts status | ||
<device_address> | OW devices status | ||
query timestamp | t | only if RTC is defined | |
query value | x | ||
query wire | w | 0 (zero) | tell the number of OW devices connected |
<device_address> | return the OW SID of desired address |
Options
Options | Comments |
---|---|
<address> | 0 to 65535 |
<contact> | 1 or 2 |
<device_address> | 3 to 152 (but address 3 is reserved for DS2417) |
<limitH> | Higher alarm limit (integer from -128 to +127) |
<limitL> | Lower alarm limit (integer from -128 to +127) |
<mode> | 0 [disable] or 1 [enable] |
<now> | 0 or 1 (line where the device is connected ⇔ contact-1) |
<recess> | 0 to 180 [seconds] |
<resolution> | decimal resolution (0→0.5, 1→0.25, 2→0.125 and 3→0.0625) |
<timestamp> | 0 to 9'999'999'999 [seconds since 1.1.1970] |
Configuration Files (Micro-SD)
These files can be found on the Micro-SD of a NiX.
CONFIG.TXT
This file contains the minimal configuration with which the NiX cans run autonomously.
- CONFIG.TXT
ADDRESS 1 BAUDRATE 9600 BUZZER 0 DISCONTINUATION 180 ENABLE 1 RECESS 30
SID_S.TXT
This file contains the link between the iDevice's address, the iDevice's now, the iDevice's SID and the iDevice's identification(suid).
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 |
suid | The identification of the iDevice | 0AbCd77a |
- SID_S.TXT
9 1 281006FF01000099 DDDDDDDD 13 0 281007AF01000031 Abc12340 38 1 281C59FF00000008 003234Al 99 1 289087A0F1000034 00000b0a
SID_S.LST
This file is created when we do the command Nw0, NiX1 search in all now for connected iDevices.
Field Name | Description | Example |
---|---|---|
now | The identification of the line where the device is connected | 1 |
sid | Sid of the iDevice | 281006FF01000099 |
- SID_S.LST
2 2712213200000013 0 281007AF01000031 1 281006FF01000099
acdsn/acdsn-sc-fx.1422981220.txt.gz · Last modified: 2015/02/03 16:33 by fdacruz