ACCESS_BF-1010_DIO_Command_Protocol_via_TCPIP
ACCESS_BF-1010_DIO_Command_Protocol_via_TCPIP
Revised History
1. 2011-05-04: wrong typing of command field length as 1, it should be corrected to 2
In this DIO command protocol is described here to let customer’s remote management
software to access Digital I/O state through TCP/IP.
Command List
Command Code Description Note
0x0001 Read Digital I/O state
0x0003 Trigger Digital I/O
0x0005 E-mail Alarm Trigger
0x0007 Reboot ※
0x0009 Reset System Default ※
0x000B Backup System Configuration
0x000D Restore System Configuration ※
0x0011 Set I/O working rule
0x0013 Get I/O working rule
0x0015 Get I/O triggering count
※ BF1010 will reboot after reply.
Note:
Start Flag: 0xF0F0
End Flag: 0xF0F0
Command Status: the definition of command code is as following
0x0002 – ACK of Read Digital I/O state
0x0004 – ACK of Trigger Digital I/O
0x0006 – ACK of E-mail Alarm Trigger
0x0008 – ACK of Reboot
0x000A – ACK of Reset to System Default
0x000C – ACK of Backup configuration
0x000E – ACK of Restore configuration
0x0010 – Report current Digital I/O state (If Auto Report I/O Status is enabled, you will receive
this report packet from BF-1010)
0x0012 – ACK of Set I/O working rule
0x0014 – ACK of Get I/O working rule
0x0016 – ACK of Get I/O triggering count
0xFFFC – Flag error, incorrect Start Flag or End Flag received in command packet
0xFFFD – Length error, the length of command packet is invalid
0xFFFE – CRC error, incorrect CRC value
0xFFFF – Command error, no such command
CRC value = 0 – total sum from field of ‘Start Flag” to “End Flag”
Data1
Data[0] Data[1] Data[2] Data[3] Data[30] Data[31]
IN-1 IN-2 IN-3 IN-4 reserved reserved
Data2
Data[0] Data[1] Data[2] Data[3] Data[30] Data[31]
OUT-1 OUT-2 OUT-3 OUT-4 reserved reserved
Data1
Data[0] Data[1] Data[2] Data[3] Data[30] Data[31]
OUT-1 OUT-2 OUT-3 OUT-4 reserved reserved
OUT-1: the value you want to write into OUT1, 0 for SHORT, 1 for OPEN
OUT-2: the value you want to write into OUT2, 0 for SHORT, 1 for OPEN
OUT-3: the value you want to write into OUT3, 0 for SHORT, 1 for OPEN
︱
OUT-10: the value you want to write into OUT10, 0 for SHORT, 1 for OPEN
Data2
Data[0] Data[1] Data[2] Data[3] Data[30] Data[31]
LAT-1 LAT-2 LAT-3 LAT-4 reserved reserved
4. Reboot
Length 2 2 32 32 2 1
(Bytes)
0xF0F0 0x0007 Xxx Xxx 0xF0F0 CRC
(don’t care) (don’t care)
Length 2 2 32 32 2 1
(Bytes)
0xF0F0 0x0011 Data1 Data2 0xF0F0 CRC
Data1
Data[30] Reserved 1
Data[31] Reserved 1
Data2
Data[0-1] Data[2-3] Data[4-5] Data[6- Data[30] Data[31]
7]
LAT-1(2 LAT-2 LAT-3 LAT-4 reserved reserved
bytes)
Length 2 2 32 32 2 1
(Bytes)
0xF0F0 0x0013 Xxx Xxx 0xF0F0 CRC
(don’t care) (don’t care)
Data[30] Reserved 1
Data[31] Reserved 1
Data2
Data[0-1] Data[2-3] Data[4-5] Data[6-7] Data[30] Data[31]
LAT-1 (2 LAT-2 LAT-3 LAT-4 reserved reserved
bytes)
Length 2 2 32 32 2 1
(Bytes)
0xF0F0 0x0015 Xxx Xxx 0xF0F0 CRC
(don’t care) (don’t care)
Data2
Data[0-1] Data[2-3] Data[4-5] Data[6-7] Data[18-19] Data[20-31]
Triggering Triggering Triggering Triggering Triggering reserved
count for count for count for count for count for
output 1 output 2 output 3 output 4 output 10