Emsa HS500E Car Stereo System User Manual


 
CHAPTER 7: RAW TCP/IP PROTOCOL
7.2 RAW TCP/IP COMMAND & RESPONSE
EXAMPLES
In RAW TCP/IP, RFID commands issued by the Host resemble Modbus TCP
commands; however RAW TCP/IP commands require an additional two-byte header
(which includes 0xFF in the MSB, and 0x01 - the Node ID of the HS500E - in the
LSB). These two bytes are inserted in front of the standard Modbus TCP command
string. RAW TCP/IP response packets also contain the same additional two-byte
header; 0xFF in the MSB and the 0x01 in the LSB. The HS500E handles all
handshaking tasks.
7.2.1 RAW TCP/IP Command Example
In the following example, a 14-byte command has been issued to the HS500E (Node
01), instructing it to read 6 bytes from a tag within RF range starting at tag address
0x0001. A Timeout Value of two seconds has been set for the completion of the
command.
Word
MSB LSB Description
01
FF 01
“Raw TCP/IP” 2-byte Command Header -
0xFF and Node 01
02
00 06
2-byte value indicating Overall Length
measured in number of “words,” not
including the preceding 2-byte header
03
AA 05 MSB = AA
LSB = Command ID: 02 - Read Data
Command
04
00 01 MSB = 00
LSB = Node ID: 01 (Must be same as
specified in header)
05
00 32
2-byte Timeout Value measured in .10
second increments (0x0032 = 50 x .10 or 5
seconds)
06
00 01 2-byte Start Address for the Read: 0x0001
07
00 06 2-byte Read Length: 6 bytes
HS500E – OPERATOR’S MANUAL P/N: 17-1305 REV02 (12-05)
PAGE 58 OF 82