Data capture for workforce in motion – Baracoda Barcode Reader User Manual

Page 60

Advertising
background image

DualRunners – Communication Protocol v1.3

- 60 -

Data Capture

for Workforce

in Motion

c)

Reader’s response (successful read)

If the read operation has been successful, the reader will send the tag ID, the tag data and then an end of data

packet with the success byte set to 1 (one). On the other hand, if the operation has failed, the reader may send

the tag ID and an end of data packet with the success byte set to 0 (zero).

The following is an example of the reader’s response:

00 01 04 xx xx xx xx 02 00 00 aa aa .. aa 00 01 bb bb .. bb 00 02 cc cc .. cc 01 00 dd .. 0F 02 ee ee .. ee DE 00 02

81 01,

where

-

00 01: tag protocol (Mifare)

-

04: tag ID length (4 bytes)

-

xx xx xx xx: tag ID (tag ID is read-only)

-

02: card type (02 means Mifare 1K)

-

00: sector id (0)

-

00: block id (block 0 of sector 0)

-

aa aa .. aa: 16 bytes of block 0, sector 0

-

00: sector id (0)

-

01: block id (block 1 of sector 0)

-

bb bb .. bb: 16 bytes of block 1, sector 0

-

00: sector id (0)

-

02: block id (block 2 of sector 0)

-

cc cc .. cc: 16 bytes of block 2, sector 0

-

01: sector id (1)

-

00: block id (block 0 of sector 1)

-

cc cc .. cc: 16 bytes of block 0, sector 1

-

etc...

-

0F: sector id (15)

-

02: block id (block 2 of sector 15)

-

ee ee .. ee: 16 bytes of block 2, sector 15

-

DE 00 02 81 01: end of data, where 00 02 – length, 81 – command ID, 01 – success status (01 means

success)

Please note that the dump does not show all 16 sectors of the tag data. They all have an identical structure:

(sector id, block id followed by 16 (sixteen) bytes of data) x (3) three times per sector. The last byte of the end

of data packet is equal to 1 (one), which means that the read operation has been successful.

d)

Reader’s response (read failure)

If the reader cannot read the tag data, the reader’s response will be the following:

[xx xx yy zz zz zz zz vv] DE 00 02 81 00,

where:

-

the first part of the response is optional and will be sent only if a tag of a different protocol was read

o

xx xx: tag protocol

o

yy: tag ID length

o

zz zz zz zz: tag ID (yy bytes)

o

vv: card type

-

DE 00 02 81 00: end of data, where 00 02 – length, 81 – command ID, 00 – success status (01 means
failure)

Advertising