C H A P T E R 7 : R A W T C P / I P P R O T O C O L

7.2RAW 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-byteheader (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 R AW T C P / I P C o m m a n d E x a m p l e

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

 

 

 

 

H S 5 0 0 E – O P E R A T O R ’ S M A N U A L

P / N : 1 7 - 1 3 0 5 R E V 0 2 ( 1 2 - 0 5 )

 

P A G E 5 8 O F 8 2

Page 58
Image 58
Emsa HS500E manual RAW TCP/IP Command & Response Examples, AW T C P / I P C o m m a n d E x a m p l e