USR-DR404 user manual
Jinan USR IOT Technology Limited
33
Length: the total number of bytes from parameters(included) to parity (do not included), the high is in front.
Parameters: the first byte:common parameters, it is connecting number(socket A and socket B); 0x61 is all the device
connected to the socket A, 0x62 is all the device connected to the socket B.
The second one:reserved parameters, default is 0x00
Common parameters is in front of the reserved one.
Data: length can be modify, the whole length is less than 4096 bytes.
Parity: from the parameters( included) to parity(not include), add and take the last bytes as parity.
Below is detailed application:
55 FD AA 00 03 61 00 CC 2D
(
Hex
)
Length 00 03: the length is 3
Parameters 61 00: send data to the socket A
Data CC: the data sent is “0xCC”
Parity: 61+00+CC=2D
2) Data format from module to serial device
When the data received from network, module send the data package in the below format to the serial device. When
the serial device send data to the module, if wrong, DR404 will send back to the serial device according to this format.
Header
Length
Parameters
Data
Parity
3
2
(n+2)
2
n
1
Format 15 Serial transmission format
Header: 0xAA 0xFD 0x55
Length: the total number of bytes from parameters(included) to parity (do not included), the high is in front
Parameters: the first byte: common parameters, it is connecting number(socket A and socket B); The data returned by
Socket A is 0x61, and the data returned by Socket B is 0x62.
The second byte: reserved parameters, the seventh bit distinguish the the data from net or the
module.(1:returned from module;0:returned from the net)
Data: if the net data, copy the data to the right position, length can be modify, length less than 4096 bytes.
If the DR404 data, return the operating code, details are as fellows:
Return
code
Description
Note
1
0x00
Header error
2
0x01
Length error
3
0x02
Parameters error
4
0x04
Parity error
5
0x10
Send failed(parameters is right but send
failed)
Format 16 Errors
Parity: from the parameters( included) to parity(not include), add and take the last bytes as parity.
Below is detailed application:
AA FD 55 00 03 61 00 CC 2D (HEX)
Length: 00 04: the length is 4
Parameters 61 00: 61
—
data from socket A
00
—
net to serial