User's Manual

PROTOCOL SPECIFICATION - CAEN UHF RFID Readers Communication Protocol 7
Attribute types
Code
Description
0x01
CommandName: the command to be executed. All the commands are specified in the relevant
table. Attribute value is 2 bytes long.
0x02
ResultCode: a code representing an indication on the result of the command. All the commands
are specified in the relevant table. Attribute value is 2 bytes long.
The complete list of all possible return values is:
ERR_SUCCESS = 0
ERR_UNKNOWN = 102,
ERR_INVALIDCMD = 127,
ERR_PWROUTRANGE = 183,
ERR_INVALIDPAR = 200,
ERR_TAGNOTPRESENT = 202,
ERR_TAGWRITE = 203,
ERR_TAGBADADDRESS = 205,
ERR_INVALIDFUNCTION = 206,
ERR_LOCKED = 209,
ERR_FAILED = 210
Note that the ERR_INVALIDPAR is used as a generic error and may be returned even if all the
parameters passed to the reader are valid (for example, you may get an ERR_INVALIDPAR
during the execution of a lock function just to signal that the lock operation has failed).
0x0E
EventType: the type of the notified event. Attribute value is 4 bytes long and can assume the
following values:
0x00 = Unknown Event
0x01 = Tag glimpsed
0x02 = Tag New
0x03 = Tag Observed
0x04 = Tag Lost
0x05 = Tag Purged
0x0F
TagIDLen: the length of the tag ID. Attribute value is 2 bytes long.
0x10
TimeStamp: an indication of the time. Attribute is 8 bytes long and must be interpreted as follow:
- the 4 least significant bytes are the seconds elapsed from the 1 January 1970.
- the 4 most significant bytes are the micro-seconds.
0x11
TagID: the ID read from the tag. Attribute value has a maximum length of 64 bytes. For ISO18000
tags only the first 8 bytes are significant while for EPC tags all the 12 bytes are significant.
0x12
TagType: the tag’s type. Attribute value is 2 bytes long and can assume the following values:
0x00 = ISO18KB
0x01 = EPCC1G1
0x02 = ISO18KA
0x03 = EPCC1G2
0x05 = EPC119
0x1E
ChannelName: the name of the notification channel. Attribute value has a maximum length of 30
bytes.
0x1F
ChannelAddress: the address of the notification channel. Attribute value has a maximum length
of 30 bytes.
0x20
TriggerName: the name of the trigger. Attribute value has a maximum length of 30 bytes.
0x21
TriggerType: the type of the trigger. Attribute value has a maximum length of 30 bytes.
0x22
ReadPointName: a string
2
representing the name of the read point. Attribute value has a
maximum length of 5 bytes and can assume the following values:
“Ant0”, “Ant1”, “Ant2”, “Ant3”
0x4D
TagValue: data read from the tag memory (when applicable). Attribute value has a maximum
length of 128 bytes.
0x4E
TagAddress: the memory location address of the tag where read or write data (when applicable).
Attribute value is 2 bytes long.
0x4F
RESERVED.
0x50
Length: a value representing the length of a parameter. Attribute value is 2 bytes long.
2
Regarding the string format our convention is to use a NULL terminate string, i.e. all the string end with 0x00.