FF 01 01 02
FF 13 02 D8 B0 4C 46 35 CA 61 64 6D 69 6E 00 61 64 6D 69 6E 00 40
The red means MAC address(it can’t be 0),6 bit
The blue means account and password,all for 6 bit,if it less than 6 bit,fill in with 00
Note: the last bit of account and password must be 00
40=13+02+…+6E+00
FF 13 03 D8 B0 4C 46 35 CA 61 64 6D 69 6E 00 61 64 6D 69 6E 00 41
The red means MAC address(it can’t be 0),6 bit
The blue means account and password,all for 6 bit,if it less than 6 bit,fill in with 00
Note: the last bit of account and password must be 00
41=13+03+…+6E+00
FF 56 05 D8 B0 4C 46 35 CA 61 64 6D 69 6E 00 61 64 6D 69 6E 00 95 63 03 00 00 00 50 00 00 07 00 A8 C0 01 00 A8 C0 FF FF FF 55 53 52 2D 4B 32 00 00 00 00 00 00 00 00 00 00 61 64 6D 69 6E 00 61 64 6D 69 6E 00 00 01 00 E0 D8 B0 4C 46 35 CA 00 00 00 00 03 00 00 00 59
The red means MAC address(it can’t be 0),6 bit
The blue means account and password,all for 6 bit,if it less than 6 bit,fill in with 00
Note: the last bit of account and password must be 00
59=56+05+D8+…+03
Name |
Byte |
e.g. |
Intro |
ucSequenceNum |
1 |
00 |
reserve head |
ucCRC |
1 |
00 |
reserve head |
ucVersion |
1 |
00 |
reserve head |
ucFlags |
1 |
C0 |
C0:11000000 Eighth: 0 means DHCP; 1 means static IP Sixth: 0 means long connection; 1 means short connection Fifth: 0 means not clearing cache; 1 means cleaning cache |
usLocationURLPort |
2 |
00 00 |
unused |
ushttpserverPort |
2 |
50 00 |
https server port |
ucUserFlag |
1 |
00 |
unused |
ulStaticIP |
4 |
07 00 A8 C0 |
Static IP |
ulGatewayIP |
4 |
C9 00 A8 C0 |
gateway |
ulSubnetMask |
4 |
00 FF FF FF |
subnet mask |
ucModName |
14 |
55 53 52 2D 4B 32 00 00 00 00 00 00 00 00 |
Module name |
unused |
2 |
00 00 |
Must be 00 00 |
username |
6 |
61 64 6D 69 6E 00 |
account |
password |
6 |
61 64 6D 69 6E 00 |
password |
ucNetSendTime |
1 |
00 |
unused |
uiId |
2 |
01 00 |
Device ID |
ucIdType |
1 |
00 |
Eighth: 1 means enable RFC2217; 0 means close RFC2217 Seventh:1 means enable index;0 means close index Sixth:1 means open link light;0 means close link light Fifth:1 means open reset; 0 means close reset Second:1 means sending data with ID; 0 means without ID First:1 means sending ID when connection established 0 means no |
mac_addrs |
6 |
D8 B0 4C 11 22 33 |
MAC address |
DNSGatewayIP |
4 |
01 00 A8 C0 |
DNS server address |
TC_sh_time |
1 |
03 |
Time of short connection |
ucReserved |
3 |
00 00 00 |
unused |
FF 52 06 D8 B0 4C 46 35 CA 61 64 6D 69 6E 00 61 64 6D 69 6E 00 00 C2 01 00 08 01 01 01 00 00 00 00 8C 4E 2A 20 31 39 32 2E 31 36 38 2E 31 2E 31 33 33 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 85 01 A8 C0 01 03 00 04 10 0E 00 00 00 00 00 00 00 16
The red means MAC address(it can’t be 0),6 bit
The blue means account and password,all for 6 bit,if it less than 6 bit,fill in with 00
Then is port parameters+1 bit and check bit
Note: the last bit of account and password must be 00
16=52+06+…+00
Name |
Byte |
e.g. |
Intro |
|
ulBaudRate |
4 |
00 C2 01 00 |
buadrate |
|
ucDataSize |
1 |
08 |
Serial port data bit(0X05/0X06/0X07/0X08) |
|
ucParity |
1 |
01 |
Check bit of serial port 1:no,2:odd,3:even,4:mark,5:space |
|
ucStopBits |
1 |
01 |
Stop bit of serial port(0X01/0X02) |
|
ucFlowControl |
1 |
00 |
unused |
|
ulTelnetTimeout |
4 |
00 00 00 00 |
unused |
|
usTelnetLocalPort |
2 |
8C 4E |
Local port |
|
usTelnetRemotePort |
2 |
2A 20 |
Remote port |
|
uiTelnetURL |
30 |
31 39 32 2E 31 36 38 2E 30 2E 31 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
IP or domain name send by ASCII e.g.192.168.0.201 |
|
ulTelnetIPAddr |
4 |
00 00 00 00 |
slack byte |
|
ucFlags |
1 |
00 |
Fifth:0 close USR-Cloud;1 means open |
|
ucWorkMode |
1 |
01 |
Sixth:0 not kick off old links when work at TCP server mode 1: kick off old links when work at TCP server mode Seventh:0 close MAC register packet 1 MAC address is the register packet |
|
HTPucFlags |
1 |
00 |
Work mode: 0:UDP,1:TCP Client,2:UDP Server,3:TCP Server,4:httpsD Client |
|
tc_number |
1 |
04 |
Client number which serer can be connected |
|
Timeout_restart |
2 |
00 00 |
Overtime reboot time |
|
cos_register_flag |
1 |
00 |
User-defined register packet |
|
ucTimeCount |
1 |
91 |
Write the read-back value as it is |
|
uiPackLen |
2 |
00 00 |
Unused |
|
ucReserved |
3 |
00 00 00 |
Unused |
FF 13 0B D8 B0 4C 46 35 CA 61 64 6D 69 6E 00 61 64 6D 69 6E 00 49
The red means MAC address(it can’t be 0),6 bit
The blue means account and password,all for 6 bit,if it less than 6 bit,fill in with 00
Note: the last bit of account and password must be 00
49=13+0B+…+00
FF 68 21 D8 B0 4C 46 35 CA 61 64 6D 69 6E 00 61 64 6D 69 6E 00 04 1E 00 0A 0A 77 77 77 2E 75 73 72 2E 63 6E 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 77 77 77 2E 75 73 72 2E 63 6E 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 C2
The red means MAC address(it can’t be 0),6 bit
The blue means account and password,all for 6 bit,if it less than 6 bit,fill in with 00
Note: the last bit of account and password must be 00
C2=68+21+…+00
Name |
Byte |
e.g. |
Intro |
H_R_ucFlags |
1 |
00 |
Heartbeat/register package mark bit First bit:1 send heartbeat to network port Second:1 send heartbeat to serial port Third:1 send register package when connection Forth:1 send register with the data Fifth:1 httpsd info without head Sixth:1 enable setting parameters by serial port Seventh:1 heartbeat package hex type Eigth:1 register package hex type |
heart_times |
2 |
00 1E |
Heartbeat time |
heart_len |
1 |
00 |
Heartbeat length |
register_len |
1 |
00 |
Register length |
heartbeat |
40 |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
Heartbeat package |
register_s |
40 |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
Register package |
Setup the URL
Name |
Byte |
e.g. |
Intro |
url_len |
1 |
00 |
httpsdURL length |
httpsd_send_url |
100 |
00 |
httpsdClientURL |
FF 78 22 D8 B0 4C 44 85 64 61 64 6D 69 6E 00 61 64 6D 69 6E 00 07 2F 31 2E 70 68 70 3F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 C9
Setup head protocol
Name |
Byte |
e.g. |
Intro |
head_lenn |
1 |
00 |
httpsd Client head length |
httpsd_send_btemp |
200 |
00 |
httpsdClient head |
FF DC 23 D8 B0 4C 44 85 64 61 64 6D 69 6E 00 61 64 6D 69 6E 00 07 2F 31 2E 70 68 70 3F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 2A 55 73 65 72 5F 41 67 65 6E 74 3A 20 4D 6F 7A 69 6C 6C 61 2F 34 2E 30 0D 0A 43 6F 6E 6E 65 63 74 69 6F 6E 3A 20 63 6C 6F 73 65 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 CF