Texas Instruments HFDEMOKITII Manuale Utente

Pagina di 45
September 2001
                S6350 Reader Reference Guide
24
Reader Type
Example
Response packet
01 0C 00 00 00 00 F0 40 01 07 BB 44
hex
The version number is 1.4
The reader type response can be defined as follows:
Type 07 = Indicates that the reader has been successfully loaded with the noted
application firmware version number (in this example, version 1.4).
Type 00 = Indicates that the reader has not been loaded with application firmware, but
does have the boot-loader firmware in place with which to download the appropriate
application firmware. (Please refer to  Appendix A: Downloading Data to FLASH
Memory
)
Reader  inputs Command (F1
hex
)
Reads the state of the reader inputs. The flags are ignored for this command.
Example
Get the status of the reader inputs.
Request packet
01 09 00 00 00 00 F1 F9 06
hex
The response packet is similar to the request packet with the data section containing a
byte representing the state of the inputs. Bit 0 of this byte represents input 1 and bit 1
represents input 2 all other bits are reserved.
Example
Response packet
01 0A 00 00 00 00 F1 01 FB 04
hex
Input 1 is at Logic 1
Input 2 is at Logic 0
Write reader outputs Command (F2
hex
)
Writes the state of the reader outputs. The flags are ignored for this command.
The data section contains 1 byte with bits defined as follows:
Bit 0
1 = Output 1 switched on (output is pulled to ground)
Bit 1
1 = Output 2 switched on (output is pulled to ground)
Bit 2
Reserved
Bit 3
Reserved
Bit 4
1 = Bit 0 enabled (output 1 is controlled)
Bit 5
1 = Bit 1 enabled (output 2 is controlled)
Bit 6
Reserved
Bit 7
Reserved
Example
Switch output 2 on without affecting output 1.
Request packet
01 0A 00 00 00 00 F2 22 DB 24
hex