Mifare & ISO14443A & ISO14443B & ISO15693 Module
http://www.jinmuyu.com
Copyright © 2003-2011 Jinmuyu Electronics Co., LTD. All rights reserved.
6/35
4
Communication Protocols
4.1
Overview
There are optional IIC & UART 2 types’ hardware interface between the module and host.
The communication rate of IIC is high. Moreover, IIC mode is very convenient, user may not
modify the sample code except pin definition for actually use. UART is more popular to fit host
controller, and need not the modulate chip in the control terminal compare with RS232C.
Whatever types of interface user chooses. Please read this chapter before programming and
refer to the sample program. There are detailed comments in the sample source code.
4.2
UART protocol
4.2.1
Parameters
The communication protocol is byte oriented. Both sending and receiving bytes are in
hexadecimal format. The communication parameters are as follows:
Baud rate:
19200bps(default), 115200bps
Data bits:
8 bits
Stop bits:
1 bit
Parity check: None
Flow control: None
4.2.2
Data send format
Length
Command
Data
Checksum
Length: 1 byte, number of bytes from Command length byte to the last byte of Data
Command: 1 byte, the command of this instruction
Data: length depends on the command type, length from 0 to 251 bytes
Checksum: 1 byte, Exclusive OR (XOR) results from length byte to the last byte of data
4.2.3
Data return format
Success:
Length
Command
Data
Checksum
Failure:
Length
Invert Command
Checksum