AR.GetMessage
This command checks if a card has been presented to the reader since the last AR.GetMessage execution. If yes, the card identification will be returned in MsgData . If no, the AR.ErrNoMessage status code will be returned.
Apart from card identifications, some readers support additional types of messages, e.g. PINs entered via the keyboard. This information is returned in MsgType.
Read results are buffered in the reader's memory for 5 seconds, i.e. that's the time frame you have to execute this command.
Properties
- Command code: 0x0501
- Command timeout: 100 ms
- Possible status codes: General status codes, AR.ErrNoMessage , AR.ErrArDisabled
Parameters (request frame)
None
Returned values (response frame)
Name | Type/Size | Description | |
---|---|---|---|
MsgType | Enumeration (8 bits) |
Event that triggered the message. It allows the
host application to interpret the message content
correctly. Values:
|
|
Length of MsgData | Integer (8 bits) |
Length of MsgData in bytes |
|
MsgData | Raw data | Content of message (usually an ASCII string) |