Pet chip tag reader | card reader L8600 series RS232 / RS485 communication protocol and development application instructions

Pet chip tag reader | card reader L8600 series RS232 / RS485 communication protocol and development application instructionsSuitable for L8600-S-01, L8600-R-01

Communication interface

Communication interface: RS232 / RS485

Data format: 1 start bit, 8 data bits, no parity bit, 1 stop bit.

Baud rate: 9600

Output encoding format: ASCII code

 

Tuning parameters

After the card reader is powered on, the self-check tuning program will be started, and the tuning parameters will be sent after the tuning is completed, which can be used to evaluate the working environment of the card reader. The data format is as follows:

【Data Frame Header】+【Tuning Table】+【Tuning Point】

[Data Frame Header]: 1 byte

[Tuning table]: 16 bytes

[Tuning point]: 1 byte

data communication

The card reader supports three communication modes: AutoSend mode (default), ReSend mode and ReRead mode.

AutoSend mode:

The tag enters the field area once and returns 2 packets of data at most, until the tag leaves the induction area and then enters the induction area again, or the card reader detects a new tag.

ReSend mode:

The control host can request the reader to send the tag data sent last time by sending $S#. When the control host receives data error, the label data can be obtained again through this command.

ReRead mode:

The control host can send the $R# command to request the card reader to rescan the sensing area and read the tag data in the sensing area.

The card reader supports two formats of EMID and FDX-B electronic tags, and the signal output data format is as follows:

Output Data

$F9000026000969327C#$F9000026000969327C# (output 2 times each time the card is read)

Data length

First place

First place

15th place

2nd place

First place

ASCII value

$

E or F

9000026000969327

7C

#

HEX value

24

46

39 30 30 30 30 32 36 30 30 30 39 36 39 33 32

37 43

23

meaning

Data header

EM or FDXB

15-digit decimal card number card number, consistent with the silk screen on the card

Check value

Data tail

BCC check value calculation method: XOR operation of 16-bit HEX numbers starting from F to the end of the card number.

For example, the card silkscreen is 90000260009693, the module outputs $F9000026000969327C#, where $ is the data header, and F is the FDX-B label.

900002600096932 is the card number, 7C is the check value, and # indicates the end of the data.

The calculation method of the BCC check value is: 46^39^30^30^30^30^32^36^30^30^30^39^36^39^33^32 = 0X7C

Note: EMID is a 10-bit data encoding format (preceded by country code and 00), FDX-B is a 15-bit data encoding format.

 

For example, EMID card silk screen 0002327100 , sensor output data is $E01700000232710076#

Data segmentation

$

E

017

00

0002327100

76

#

meaning

Data header

EMID card

Customer code

Complement two digits 0

card number

Check value

Data tail

 

Example FDX-B card silk screen 900002600096965 , sensor output data is $F9000026000969657E#  

Data segmentation

$

F

900002600096965

7e

#

meaning

Data header

FDX-B card

card number

Check value

Data tail

 

 

Guess you like

Origin blog.csdn.net/Alex88389516/article/details/110586434