English
Language : 

H2PROT Datasheet, PDF (4/9 Pages) rfsolutions.ltd – Typical application configuration for Micro RWD module
ib technology
Command Protocol
The following commands are supported. The corresponding acknowledge code should
be read back by the host and decoded to confirm that the command was received and
actioned correctly. The serial bit protocol is 9600 baud, 8 bits, 1 stop, no parity (lsb
transmitted first).
The status flags returned in the Acknowledge byte are as follows:
b7 b6 b5 b4 b3 b2 b1 b0
1 1 1 1 1111
| | | | | EEPROM error (Internal EEPROM write error)
| | | | Tag OK (Tag identity code matched to list and Password exchange successful)
| | | Rx OK (Tag communications and acknowledgement OK)
| | RS232 error (Host serial communications error)
| RELAY Enabled flag
HTRC (or Antenna fault) error flag
Note that bits 6 and 7 are fixed 1’s so that an acknowledge code of D6 (Hex) would
generally indicate no errors with a matched (or authorised) HT2 Tag present.
Note also that only the relevant flags are set after each command as indicated in the
following specification.
Write Tag
Command to write 4 bytes of data to HT2 32 bit page. If the write was unsuccessful
(invalid tag or out of field) then Status flags in acknowledge byte indicate error.
Command:
Argument1:
Argument2:
Argument3:
Argument4:
Argument5:
B7
B0
01010111
x x x x xNNN
DDDDDDDD
DDDDDDDD
DDDDDDDD
DDDDDDDD
Acknowledge: 1 1 F F F F F X
(ASCII “W”, 0x57)
(N = HT2 page address 0-7)
(D = msb data to write to HT2)
(D = lsb data to write to HT2)
(F = Status flags)
Note that PASSWORD exchange occurs for WRITE command.
If no tag present then acknowledge / status byte reply is 0xC0
If tag present but RWD PASSWORD check fails then acknowledge byte reply is 0xC0.
If tag present but TAG PASSWORD check fails then acknowledge byte reply is 0xC4.
If tag present and both PASSWORDS match then acknowledge reply is 0xD6.
4