20190905
7
STX:
It is fixed at 0x02. That is the signal of broadcast packet.
ACK:
‘
A
’(0x41)means command execute completely
‘
N
’ (0x4E) means there is no data.
Parameter:
This is the parameter data from AC101 which is depend on command code requested.
ETX:
end of the packet. It is fixed at 0x03
4.
The command of FAT820W
The broadcast command is all ASCII chars. By the packet structure, the first byte must be 0x02 and last
byte must be 0x03. All parameter will be split with the Tab char ‘\t’ (0x09)
Command: ‘X’
Description
:
This command is used to get network information of the device.
Parameter
: (Null)
Reply ACK
: ‘
A
’
Parameter:
mm
+ ‘\t’ +
DD
+ ‘\t’ +
PP
+ ‘\t’ +
SS
+ ‘\t’ +
GG
mm
AC101’s MAC address get it by ASCII string like “8c-4a-ee-0-0-10”
DD
DHCP enables, get it by ASCII char like ‘0’(disable) or ‘1’ (enable)
PP
IP address ,get it by ASCII string like “192.168.100.121”
SS
Sub mask ,get it by ASCII string like “255.255.255.0”
GG
Gateway,get it by ASCII string like “192.168.100.254”
Command : ‘N’
Description
:
This command is used to setup network config. The parameter type 1 is DHCP
enable mode. Parameter type 2 is DHCP disable mode.
Parameter type1
:
DD
+
mm
+
TU
DD
DHCP enable ,it will be a binary code0x31(‘1’)
mm
MAC address of device there are six binary code, 0x8c, 0x4a, 0xee, 0x00, 0x00, 0x10
TU
Port number of device, there are 1 Integer(4 bytes) of this device.
Note: TCP port 1001(0xE9, 0x03), UDP port 883(0x73, 0x03)
Parameter type2
:
DD
+
mm + PP + SS + GG
+
TU
DD
DHCP disable, it will be a binary code 0x30(‘0’)
mm
MAC address of device there are six binary code, 0x8c, 0x4a, 0xee, 0x00, 0x00, 0x10
PP
IP address of device there are four binary code like
0xC0(192),0xA8(168),0x64(100),0x79(121)
SS
Sub mask of device there are four binary code like
0xFF(255),0xFF(255),0xFF(255),0x00(0)