CAEN RFID srl CAENRFID010 Low Power OEM UHF Compact RFID Reader User Manual easy2read protocol
CAEN RFID srl Low Power OEM UHF Compact RFID Reader easy2read protocol
Contents
- 1. Users Manual I
- 2. Users Manual II
- 3. Users Manual III
- 4. Users Manual IV
- 5. User Manual
Users Manual II
CAEN UHF RFID READERS COMMUNICATION PROTOCOL Technical Information Manual Revision n. 12 14/01/2011 Scope of Manual The goal of this manual is to provide the basic information to work with the CAEN UHF RFID READERS Communication Protocol. Reference Document [RD1] Reader Protocol 1.0 – Working Draft Version of 25 August 2004 – Document revision 33 - EPCGlobal [RD2] EPC Radio Frequency Identity Protocols Class-1 Generation-2 UHF RFID Protocol for Communications at 860MHz – 960MHz – Version 1.0.9 – EPCGlobal [RD3] ISO/IEC FDIS 18000-6:2003(E) – Information technology automatic identification and data capture techniques – Radio frequency identification for item management air interface – Part 6: Parameters for air interface communication at 860-960 MHz CAEN RFID srl Via Vetraia, 11 55049 Viareggio (LU) - ITALY Tel. +39.0584.388.398 Fax +39.0584.388.959 info@caenrfid.it www.caenrfid.it © CAEN RFID srl – 2010 Disclaimer No part of this manual may be reproduced in any form or by any means, electronic, mechanical, recording, or otherwise, without the prior written permission of CAEN RFID. The information contained herein has been carefully checked and is believed to be accurate; however, no responsibility is assumed for inaccuracies. CAEN RFID reserves the right to modify its products specifications without giving any notice; for up to date information please visit www.caenrfid.it. Federal Communications Commission (FCC) Notice (Preliminary) This device was tested and found to comply with the limits set forth in Part 15 of the FCC Rules. Operation is subject to the following conditions: (1) this device may not cause harmful interference, and (2) this device must accept any interference received including interference that may cause undesired operation. These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a commercial environment. This device generates, uses, and can radiate radio frequency energy. If not installed and used in accordance with the instruction manual, the product may cause harmful interference to radio communications. Operation of this product in a residential area is likely to cause harmful interference, in which case, the user is required to correct the interference at their own expense. The authority to operate this product is conditioned by the requirements that no modifications be made to the equipment unless the changes or modifications are expressly approved by CAEN RFID. This declaration only applies to FCC readers A828US, A829US, A528, R1230CB, R1260I. CAEN UHF RFID Readers Communication Protocol – Technical Information Manual Index Scope of Manual .......................................................................................................................... 2 Reference Document ................................................................................................................... 2 Index.......................................................................................................................................... 3 List of Tables .............................................................................................................................. 3 Introduction ....................................................................................................................... 4 General Information .................................................................................................................... 5 Protocol Specification ......................................................................................................... 6 Attribute types ............................................................................................................................. 8 Command codes ........................................................................................................................ 12 ASYNCHRONOUS NOTIFICATION: PROTOCOL SPECIFICATION ........................................... 21 DEFAULT CONFIGURATION ............................................................................................... 23 EXAMPLES ........................................................................................................................ 25 Set Protocol Command .............................................................................................................. 26 Inventory Command .................................................................................................................. 27 List of Tables Tab. 2.1: Attribute types .................................................................................................................... 11 Tab. 2.2: Command codes.................................................................................................................. 20 Tab. 3.1: Attribute types: Notification AVP List. ................................................................................ 22 Tab. 4.1: A928EUEU and A948EUEU Configuration parameters default values ............................... 24 Tab. 4.2: A928EUEU and A948EUEU Default composition of sources .............................................. 24 Tab. 4.3: A828EU A828AEUEU, A829EUEU, A946EUEU and A949EUEU Configuration parameters default values ............................................................................................................................. 24 Tab. 4.4: A828EU A828AEUEU, A829EUEU, A946EUEU and A949EUEU Default composition of sources ....................................................................................................................................... 24 CAEN UHF RFID Readers Communication Protocol - Technical Information Manual 1 Introduction CAEN UHF RFID Readers Communication Protocol – Technical Information Manual General Information This document describes the message format of the communication protocol used by the host and the reader in order to issuing commands and reply with responses. The protocol is based on the Attribute Value Pair (AVP) schema and foresees a message header in order to identify the message scope. The command set and the firmware architecture draw inspiration from the Reader Protocol 1.0 specification draft from EPCGlobal but, at now, this protocol is not fully compatible with the same last specifications. Message fields are described left to right, with the most significant byte on the left and the least on the right. CAEN UHF RFID Readers Communication Protocol - Technical Information Manual 2 Protocol Specification CAEN UHF RFID Readers Communication Protocol – Technical Information Manual CAEN UHF RFID Reader protocol uses two logical communication channels: one for synchronous commands and one for asynchronous notifications. Command channel is mandatory and, at now, it is implemented on top of a TCP/IP socket (port 1000) and on RS232 while notification channels are implemented only with sockets. All the messages (commands, responses and notifications) are composed by a header and a body. In all cases the body of the message is a list of attribute-value pairs. Responses always echo the Command AVP sent by the host. All the packets for the control and notification channel share a common header format: 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-------------------------------+------------------------------+ FIXED Message ID +-------------------------------+------------------------------+ Vendor ID +-------------------------------+------------------------------+ Length +-------------------------------+ FIXED: Must be 0x8001 for commands and 0x0001 for responses. Message ID: Id of the message. It is a sequence number used to map requests to its responses: a request and its corresponding response have the same message ID (the id is local to the channel). Vendor ID: Must be 21336: the IANA “SMI Network Management Private Enterprise Code” assigned to CAEN SpA. Length: Encodes the length of the message (in bytes) including the header. The header is followed by a list of AVPs the number of which depends on the command. Each AVP have the following format: 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-------------------------------+------------------------------+ RESERVED Length +-------------------------------+------------------------------+ Attribute Type Attribute Value ……… +-------------------------------+------------------------------+ ………[ until length is reached ]……… +--------------------------------------------------------------+ RESERVED: The first 16 bits are reserved for future extensions. All reserved bits must be set to 0 on outgoing messages and ignored on incoming messages. Length: Encodes the length of the AVP packet including the length and the reserved fields. Attribute type: A 2 byte code identifying the attribute type. Attribute value: The actual attribute value according to the type. It follows immediately after the Attribute Type field and runs for the remaining bytes indicated in the Length (i.e. Length minus 6 bytes of header). CAEN UHF RFID Readers Communication Protocol - Technical Information Manual Attribute types Code 0x01 0x02 0x0E 0x0F 0x10 0x11 0x12 0x1E 0x1F 0x20 0x21 0x22 0x4D 0x4E 0x4F 0x50 Description CommandName: the command to be executed. All the commands are specified in the relevant table. Attribute value is 2 bytes long. 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. 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 TagIDLen: the length of the tag ID. Attribute value is 2 bytes long. 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. TagID: the ID read from the tag. Attribute value has a maximum length of 12 bytes. For ISO18000 tags only the first 8 bytes are significant while for EPC tags all the 12 bytes are significant. 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 ChannelName: the name of the notification channel. Attribute value has a maximum length of 30 bytes. ChannelAddress: the address of the notification channel. Attribute value has a maximum length of 30 bytes. TriggerName: the name of the trigger. Attribute value has a maximum length of 30 bytes. TriggerType: the type of the trigger. Attribute value has a maximum length of 30 bytes. ReadPointName: a string 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” TagValue: data read from the tag memory (when applicable). Attribute value has a maximum length of 128 bytes. TagAddress: the memory location address of the tag where read or write data (when applicable). Attribute value is 2 bytes long. RESERVED. Length: a value representing the length of a parameter. Attribute value is 2 bytes long. BitRate: a value representing the RF BitRate. Attribute value is 2 bytes long and can assume the following values: 0x0 – Transmit : DSB ASK 10kbit, Receive : FM0 10kbit 0x1 – Transmit : DSB ASK 10kbit, Receive : FM0 40kbit 0x2 – Transmit : DSB ASK 40kbit, Receive : FM0 40kbit 0x51 0x52 0x3 – Transmit : DSB ASK 40kbit, Receive : FM0 160kbit 0x4 – Transmit : DSB ASK 160kbit, Receive : FM0 400kbit 0x5 – Transmit : DSB ASK 40kbit, Receive : Miller M=2 160kbit 0x6 – Transmit : PR ASK 40kbit, Receive : Miller M=4 250kbit 0x7 – Transmit : PR ASK 40kbit, Receive : Miller M=4 300kbit 0x8 – Transmit : PR ASK 40kbit, Receive : Miller M=2 250kbit Note: not all the value are supported by all the readers. For the list of mode supported by each reader please refer to the reader’s user manual. PowerGet: a value representing the RF power. Attribute value is 4 bytes long. (used for read the current setting) CAEN UHF RFID Readers Communication Protocol – Technical Information Manual Code 0x53 0x54 0x56 0x57 0x58 0x59 0x5A 0x5B 0x5C 0x5D 0x5E 0x5F 0x60 0x61 0x62 0x63 0x64 0x65 Description RESERVED. Protocol: a value representing the air protocol. Attribute value is 4 bytes long and can assume the following values: 0x00 = ISO18000-6B 0x01 = EPCC1G1 0x02 = ISO18000-6A 0x03 = EPCC1G2 ReadPointStatus: a value representing the antenna’s status. Attribute value is 4 bytes long and can assume the following values: 0x00 = Bad: antenna is not connected or broken. 0x01 = Poor: antenna has a low quality connection. 0x02 = Good: antenna is well connected. Boolean: a value representing a boolean data. Attribute value is 2 bytes long and can assume the following values: 0x00 = FALSE. Not 0x00 = TRUE. IPAddress: a string representing an IP address formatted with the standard IP dotted decimal format. Attribute value has a maximum length of 30 bytes. IPNetMask: a string representing an IP netmask formatted with the standard IP dotted decimal format. Attribute value has a maximum length of 30 bytes. IPGateway: a string representing an IP address formatted with the standard IP dotted decimal format. Attribute value has a maximum length of 30 bytes. DESBEnable: used to enable/disable the Data Exchange Status Bit handling for ISO18000-6b and EPC 1.19 anti-collision algorithm. Attribute value is 2 bytes long and can assume the following values: 0x00 = Disable the DESB handling. Not 0x00 = Enable the DESB handling. FWRelease: a string representing the device’s firmware revision. Attribute value has a maximum length of 200 bytes. DESBStatus: used to check the Data Exchange Status Bit handling for ISO18000-6b and EPC 1.19 anti-collision algorithm. Attribute value is 2 bytes long and can assume the following values: 0x00 = DESB handling is not enabled. Not 0x00 = DESB handling is enabled. EPCPWD: a value representing an EPC tag password. Attribute value is 2 bytes long. RFOnOff: used to start the generation of a continuous wave for test purposes. Attribute value is 2 bytes long and can assume the following vaules: 0x00 = Stop the wave generation. Not 0x00 = Start the wave generation. BaudRate: a value representing the baudrate setting of serial port. Attribute value is 4 bytes long. DataBits: a value representing the databits setting of serial port. Attribute value is 4 bytes long. StopBits: a value representing the stopbits setting of serial port. Attribute value is 4 bytes long. Parity: a value representing the parity setting of serial port. Attribute value is 4 bytes long and can assume the following values: 0x00 = No parity 0x01 = Odd parity 0x02 = Even parity FlowCtrl: a value representing the flow control setting of serial port. Attribute value is 4 bytes long and can assume the following values: 0x00 = No flow control 0x01 = Hardware flow control 0x02 = Software flow control (not yet implemented) DateTime: a value representing a date and time. Attribute value has a maximum length of 30 bytes. The data format is: YYYY–MM–DD HH:MM:SS CAEN UHF RFID Readers Communication Protocol - Technical Information Manual Code 0x66 0x67 0x68 0x69 0x6A 0x6B 0x6C 0x6D 0x6E 0x6F 0x70 0x71 0x72 0x73 0x74 0x75 0x76 10 Description SelUnselOp: a value representing the tag selection operation defined by the ISO18000-6B protocol. Attribute value is 2 bytes long and can assume the following values: 0x00 = select equal 0x01 = select not equal 0x02 = select greater than 0x03 = select lower than 0x04 = unselect equal 0x05 = unselect not equal 0x06 = unselect greater than 0x07 = unselect lower than Bitmask: a value representing the bitmask parameter of tag selection operations defined by the ISO18000-6B protocol. Attribute value is 2 bytes long (only 8 least significant bits are used). REESERVED. IORegister: a value representing the status of the I/O lines of the reader. Where input lines are separated from output ones, input lines are mapped on the less significant bits while outputs are mapped on the most significant. Attribute value is 4 bytes long (effective used bits depend on the reader model). ConfigParameter: a value representing a configuration parameter. Attribute value is 4 bytes long and can assume the following values: 0x00 = ReadCycle configuration 0x01 = Observed Threshold configuation 0x02 = Lost Threshold configuration 0x03 = Starting Q value (Valid values : 0 15 ). EPC C1GEN2 Protocol only. 0x04 = Session (Valid values : 0 3 ). EPC C1GEN2 protocol only. 0x05 = Target (Valid values : 0 1 ). EPC C1GEN2 protocol only. 0x06 = Selected (Valid values : 0 1 ). EPC C1GEN2 protocol only. 0x07 = Data Exchange Status B (Valid values : 0 1 ). ISO 18000-6B protocol only. 0x08 = Antenna dwell time during inventory (msec). A528 only. 0x09 = Inventory type (Valid values : 0 3 ). A528 only. ConfigValue: a value for the configuration parameter. Attribute value is 4 bytes long. NoOfTriggers: a value representing the number of triggers. Attribute value is 2 bytes long. NoOfChannels: a value representing the number of channels. Attribute value is 2 bytes long. EventMode: a value representing the event handling mode. Attribute value is 2 bytes long and can assume the following values: 0x00 = ReadCycle mode 0x01 = Time Mode 0x02 = No Event Mode UpgradeType: a value representing the type of upgrade to perform. Attribute value is 2 bytes long and can assume the following values: 0x01 = TFTP firmware upgrade. UpgradeArgument: a value representing the argument for the requested upgrade. Attribute value has a maximum length of 255 bytes. For TFTP upgrade (code 0x01) the string has the form: ‘: ’. MemoryBank: a value representing the memory bank of a EPC Class 1 Generation 2 tag. Attribute value is 2 bytes long and can assume the following values: 0x00 = Reserved Memory Bank 0x01 = EPC Memory Bank 0x02 = TID Memory Bank 0x03 = User Memory Bank Payload: a value representing the payload parameter for the EPC Class 1 Gen 2 lock command (see the EPC Gen2 specification for details). Attribute value is 4 bytes long. G2Password: a value representing the Acess / Kill password parameter for the EPC Class 1 Gen 2 commands (see the EPC Gen2 specification for details). Attribute value is 4 bytes long. G2NSI: a value representing the numbering system identifier for the EPC Class 1 Gen 2 tags’ id (see the EPC Gen2 specification for details). Attribute value is 2 bytes long. QParameter: a value representing the initial value for the Q parameter involved in the EPC Class 1 Gen 2 anticollision algorithm (see the EPC Gen2 specification for details). Attribute value is 2 bytes long. ReaderInfo: a string indicating the model and the serial number of the reader. CAEN UHF RFID Readers Communication Protocol – Technical Information Manual Code 0x77 0x78 0x7A 0x96 0xFB Description RFRegulation: a value representing the RF regulation to use. Attribute value is 2 bytes long and can assume the following values: 0x00 = ETSI EN 302 208 0x01 = ETSI EN 300 220 0x02 = FCC 0x03 = Malaysia 0x04 = Japan 0x05 = Korea 0x06 = Australia 0x07 = China Note: not all the value are supported by all the readers. For the list of RF regulation supported by each reader please refer to the reader’s user manual. RFChannel: a value representing the RF channel to use. Attribute value is 2 bytes long and can assume values in the range 0 … 9. Channels are referred to the ETSI EN 302 208 regulation. RSSI: a value representing the backscattered RF field strenght. Attribute value is 2 bytes long. PowerSet: a value representing the RF power emitted during the communication with tags. Attribute value is 4 bytes long. (used to set a new current value). SourceName: a string representing the name of the data source. Attribute value has a maximum length of 30 bytes and can assume the following values: “Source_0”, “Source_1”, “Source_2”, “Source_3” Tab. 2.1: Attribute types CAEN UHF RFID Readers Communication Protocol - Technical Information Manual 11 Command codes Code 0x12 Description RawReadIDs: permits to get all the tag’s Ids that are under the RF field of the selected source (Deprecated). Parameters: SourceNameIn: [in] the name of the source to use. SourceNameOut: [out] the name of the source used. ReadPointName: [out] the name of the readpoint. TimeStamp: [out] the time at which the tags are detected. TagIDLen: [out] the ID length of the tags detected. ListOfIDs: [out] the list of Ids detected from the source. ResultCode: [out] the result code. Comp. A928EU A948EU A828EU A828AEU A829EU A949EU Note: out parameters are repeated for each readpoint in the source. NewRawReadIDs: permits to get all the tag’s Ids that are under the RF field of the selected source. Parameters: SourceNameIn: [in] the name of the source to use (optional). Length: [in] Filter Mask Lenght (optional). TagID: [in] the Filter Mask Value (optional). TagAddress: [in] Filter Mask Start Address (optional) Bitmask: [in] Inventory Flags. When set to 1 for each tag detected the RSSI value is returned. Default value 0. (optional, A528 only). 0x13 For each tag detected the parameters returned by the command are: SourceNameOut: [out] the name of the source used ReadPointName: [out] the name of the readpoint. TimeStamp: [out] the time at which the tags are detected. TagType: *out+ the tag’s type. TagIDLen: [out] the ID length of the tags detected. TagID: *out+ the tag’s id. RSSI: [out] the tag’s backscattered field strength (optional, A528 only) ResultCode: [out] the result code. A928EU A948EU A828EU A828AEU A829EU A949EU A528 R1230CB R1260I Note: out parameters are repeated for each readpoint in the source. AddReadTrigger: permits to add a trigger to a source. 0x3F 0x40 0x41 0x42 12 Parameters: SourceName: [in] the name of the source. TriggerName: [in] the name of the trigger. ResultCode: [out] the result code. AddNotifyTrigger: permits to add a trigger to a notification channel. A928EU A948EU Parameters: ChannelName: [in] the name of the channel. TriggerName: [in] the name of the trigger. ResultCode: [out] the result code. RemoveReadTrigger: permits to remove a trigger from a source. A928EU A948EU Parameters: SourceName: [in] the name of the source. TriggerName: [in] the name of the trigger. ResultCode: [out] the result code. RemoveNotifyTrigger: permits to remove a trigger from a notification channel. A928EU A948EU Parameters: ChannelName: [in] the name of the channel. TriggerName: [in] the name of the trigger. ResultCode: [out] the result code. A928EU A948EU CAEN UHF RFID Readers Communication Protocol – Technical Information Manual Code 0x49 0x4A 0x53 0x54 0x5D 0x5E 0x5F 0x60 0x64 Description AllocateTrigger: permits to create a new trigger. Parameters: TriggerName: [in] the name of the trigger. TriggerType: [in] the type of the trigger. ResultCode: [out] the result code. DeallocateTrigger: permits to destroy an existing trigger. A928EU A948EU Parameters: TriggerName: [in] the name of the trigger. ResultCode: [out] the result code. AllocateChannel: permits to create a notification channel. A928EU A948EU Parameters: ChannelName: [in] the name of the channel. ChannelAddress: [in] the address of the channel. ResultCode: [out] the result code. DeallocateChannel: permits to destroy a notification channel. A928EU A948EU Parameters: ChannelName: [in] the name of the channel. ResultCode: [out] the result code. AddSourceToChannel: permits to add a source to a notification channel. A928EU A948EU Parameters: SourceName: [in] the name of the source. ChannelName: [in] the name of the channel. ResultCode: [out] the result code. RemoveSourceFromChannel: permits to remove a source from a notification channel. A928EU A948EU Parameters: SourceName: [in] the name of the source. ChannelName: [in] the name of the channel. ResultCode: [out] the result code. AddReadPointToSource: permits to add a readpoint to a source. A928EU A948EU Parameters: SourceName: [in] the name of the source. ReadPointName: [in] the name of the readpoint. ResultCode: [out] the result code. RemoveReadPointFromSource: permits to remove a readpoint from a source. Parameters: SourceName: [in] the name of the source. ReadPointName: [in] the name of the readpoint. ResultCode: [out] the result code. SetPower: permits to set the RF power level. Parameters: PowerSet: [in] the power level to set. ResultCode: [out] the result code. ReadTagData: permits to read data from the tag memory. 0x6E Comp. Parameters: SourceName: [in] the name of the source to use. TagIDLen: [in] the ID length of the tag. TagID: [in] the ID of the tag. TagAddress: [in] the address from which read the data. Length: [in] the number of bytes to read. TagValue: [out] the data read from the tag memory. ResultCode: [out] the result code. CAEN UHF RFID Readers Communication Protocol - Technical Information Manual A928EU A948EU A528 R1230CB R1260I A928EU A948EU A528 R1230CB R1260I A928EU A948EU A949EU A528 A828AEU R1230CB R1260I A928EU A948EU A828EU A828AEU A829EU A949EU R1230CB R1260I 13 Code 0x6F 0x70 0x71 0x72 Description WriteTagData: permits to write data to the tag memory. Parameters: SourceName: [in] the name of the source to use. TagIDLen: [in] the ID length of the tag. TagID: [in] the ID of the tag. TagAddress: [in] the address where to write the data. Length: [in] the number of bytes to write. TagValue: [in] the data to write to the tag memory. ResultCode: [out] the result code. LockTag: permits to lock data into the tag memory. Parameters: SourceName: [in] the name of the source to use. TagIDLen: [in] the ID length of the tag. TagID: [in] the ID of the tag. TagAddress: [in] the address where to write the data. ResultCode: [out] the result code. RESERVED SetBitRate: permits to set the BitRate to use. Parameters: BitRate: [in] the BitRate to set. ResultCode: [out] the result code. GetPower: permits to get the current RF power level. 0x73 Parameters: PowerGet: [out] the current power level. ResultCode: [out] the result code. SetProtocol: permits to set the protocol to use. 0x74 0x75 0x76 0x77 14 Parameters: Protocol: [in] the protocol to use. ResultCode: [out] the result code. Comp. A928EU A948EU A828EU A828AEU A829EU A949EU R1230CB R1260I A928EU A948EU A828EU A828AEU A829EU A949EU R1230CB R1260I A928EU A948EU A828EU A828AEU A829EU A949EU A528 R1230CB R1260I A928EU A948EU A949EU A528 R1230CB R1260I A928EU A948EU A828EU A828AEU A829EU A949EU A528 R1230CB R1260I RESERVED CheckReadPointStatus: permits to check the quality of the antenna connection. Parameters: ReadPointName: [in] the name of the readpoint. ReadPointStatus: [out] the quality of the connection. ResultCode: [out] the result code. CheckSourceInChannel: permits to verify if a source is assigned to a notify channel. Parameters: SourceName: [in] the name of the source. ChannelName: [in] the name of the channel. Value: [out] a Boolean value meaning the belonging to the source. ResultCode: [out] the result code. A928EU A948EU A949EU A928EU A948EU CAEN UHF RFID Readers Communication Protocol – Technical Information Manual Code 0x78 0x79 Description CheckReadPointInSource: permits to verify if a readpoint belongs to a givens source. Parameters: ReadPointName: [in] the name of the readpoint. SourceName: [in] the name of the source. Value: [out] a Boolean value meaning the belonging to the source. ResultCode: [out] the result code. GetProtocol: permits to get the protocol in use. Parameters: Protocol: [out] the protocol in use. ResultCode: [out] the result code. Comp. A928EU A948EU A949EU A528 R1230CB R1260I A928EU A948EU A828EU A828AEU A829EU A949EU A528 R1230CB R1260I SetNetwork: permits to set up the network configuration. 0x7A 0x7B Parameters: IPAddress: [in] the IP address to set. IPNetMask: [in] the IP netmask to set. IPGateway: [in] the IP gateway to set. ResultCode: [out] the result code. SetDESB: permits to enable or disable the “Data Exchange Status Bit” handling during the anti-collision algorithm when ISO 18000-6b air protocol is in use. Parameters: DESBEnable: [in] enable/disable value. ResultCode: [out] the result code. A928EU A948EU A928EU A948EU A828EU A828AEU A829EU A949EU GetFirmwareRelease: permits to get the firmware revision. 0x7C 0x7D A928EU A948EU Parameters: A828EU FWRelease: [in] the firmware release. A828AEU ResultCode: [out] the result code. A829EU A949EU A528 R1230CB R1260I GetDESB: permits to get the current setting of the “Data Exchange Status Bit” handling. A928EU A948EU Parameters: A828EU DESBStatus: [in] enabled/disabled value. A828AEU ResultCode: [out] the result code. A829EU A949EU ProgramID: permits to program the ID in the EPC Class 1 Gen 1 tags. 0x7E 0x7F Parameters: SourceName: [in] the name of the source. TagIDLen: [in] the ID length of the tag. TagID: [in] the ID of the tag. EPCPWD: [in] the EPC password to set. Lock: [in] a Boolean value; TRUE = lock the ID. FALSE = do not lock. ResultCode: [out] the result code. KillTag: permits to kill a EPC Class 1 Gen 1 tag. Parameters: SourceName: [in] the name of the source. TagIDLen: [in] the ID length of the tag. TagID: [in] the ID of the tag. EPCPWD: [in] the EPC password. ResultCode: [out] the result code. CAEN UHF RFID Readers Communication Protocol - Technical Information Manual A928EU A948EU A928EU A948EU 15 Code 0x80 Description RFOnOff: permits to start/stop the generation of a continuous wave. Used only for test and measurements purposes. Parameters: RFOnOff: [in] = 0 stop; != 0 start ResultCode: [out] the result code. GetBitRate: permits to get the BitRate in use. 0x81 Parameters: BitRate: [out] the BitRate in. ResultCode: [out] the result code. BlockWriteTag: permits to write data to the tag memory. This function uses the ISO18000-6b Write4Byte command to speed up the writing of large amount of data at one time. 0x82 0x83 Parameters: SourceName: [in] the name of the source to use. TagIDLen: [in] the ID length of the tag. TagID: [in] the ID of the tag. TagAddress: [in] the address where to write the data. Length: [in] the number of bytes to write. TagValue: [in] the data to write to the tag memory. ResultCode: [out] the result code. SetRS232: permits to modify the settings of the serial port. Parameters: Baudrate: [in] the baud rate value. Databits: [in] the data bits setting. Stopbits: [in] the stop bits setting. Parity: [in] the parity setting. Flowctrl: [in] the flow control setting. ResultCode: [out] the result code. SetDateTime: permits to modify date and time. 0x84 Parameters: Datetime: [in] the date and time to set up. ResultCode: [out] the result code. GroupSelectUnselect: permits to execute the tag selection commands defined by the ISO18000-6B protocol. 0x85 16 Parameters: SourceName: [in, optional] the name of the source to use. Operation: [in] the tag selection operation. Bytemask: [in] the byte mask as defined by the protocol. TagAddress: [in] the address where to compare the data. TagValue: [in] the data to compare with the tag memory. TagID: [out] the ID of the tag. ResultCode: [out] the result code. Comp. A928EU A948EU A828EU A828AEU A829EU A949EU A528 R1230CB R1260I A928EU A948EU A828EU A828AEU A829EU A949EU A528 R1230CB R1260I A928EU A948EU A828EU A828AEU A829EU A949EU A928EU A948EU A828EU A828AEU A829EU A949EU A528 R1230CB R1260I A928EU A948EU A828EU A828AEU A829EU A949EU A928EU A948EU A828EU A828AEU A829EU A949EU CAEN UHF RFID Readers Communication Protocol – Technical Information Manual Code 0x86 Description GetIO: permits to read the current status of the I/O lines. Parameters: IORegister: [out] the status of the I/O lines. ResultCode: [out] the result code. SetIO: permits to set the level of the output lines. 0x87 Parameters: IORegister: [in] the value to set to the output lines. ResultCode: [out] the result code. SetIODirection: permits to define the direction of the I/O lines. (0 = input; 1 = output) 0x88 Parameters: IORegister: [in] the direction to set to the I/O lines. ResultCode: [out] the result code. GetIODirection: permits to read the current status of the I/O lines. (0 = input; 1 = output) 0x89 Parameters: IORegister: [out] the direction of the I/O lines. ResultCode: [out] the result code. SetSourceConfig: permits to set a configure parameter for a logical source. 0x8A 0x8B 0x8C 0x8D Parameters: SourceName: [in] the name of the source to configure. ConfigParameter: [in] the code of the parameter. ConfigValue: [in] the value for the parameter. ResultCode: [out] the result code. GetSourceConfig: permits to read a configure parameter for a logical source. Parameters: SourceName: [in] the name of the source to configure. ConfigParameter: [in] the code of the parameter. ConfigValue: [out] the value for the parameter. ResultCode: [out] the result code. GetTriggers: permits to read the names of the allocated triggers. Comp. A928EU A948EU A828EU A828AEU A829EU A949EU A528 R1230CB R1260I A928EU A948EU A828EU A828AEU A829EU A949EU A528 R1230CB R1260I A828EU A828AEU A829EU A949EU A528 R1230CB R1260I A828EU A828AEU A829EU A949EU A528 R1230CB R1260I A928EU A948EU A528 R1230CB R1260I A928EU A948EU A528 R1230CB R1260I Parameters: NoOfTriggers: [out] the number of allocated triggers. ListOfTriggerNames: [in] a list containing the names of the allocated triggers. ResultCode: [out] the result code. GetChannels: permits to read the names of the allocated notification channels. A928EU A948EU Parameters: NoOfChannels: [out] the number of allocated channels. ListOfChannelNames: [in] a list containing the names of the allocated channels. ResultCode: [out] the result code. A928EU A948EU CAEN UHF RFID Readers Communication Protocol - Technical Information Manual 17 Code 0x8E 0x8F 0x90 Description CheckSourceInTrigger: permits to verify if the specified logical source is associated to the specified trigger. Parameters: SourceName: [in] the name of the source. TriggerName: [in] the name of the trigger. Boolean: [out] 0 if they are associated, ≠0 if not. ResultCode: [out] the result code. CheckTriggerInChannel: permits to verify if the specified trigger is associated to the specified channel. A928EU A948EU Parameters: ChannelName: [in] the name of the source. TriggerName: [in] the name of the trigger. Boolean: [out] 0 if they are associated, ≠0 if not. ResultCode: [out] the result code. CheckChannelInTrigger: permits to verify if the specified channel is associated to the specified trigger. A928EU A948EU Parameters: ChannelName: [in] the name of the source. TriggerName: [in] the name of the trigger. Boolean: [out] 0 if they are associated, ≠0 if not. ResultCode: [out] the result code. SetEventMode: permits to set the event generation mode for the reader notification channels. A928EU A948EU 0x91 Parameters: EventMode: [in] the event mode. ResultCode: [out] the result code. GetEventMode: permits to read the event generation mode for the reader notification channels. 0x92 Parameters: EventMode: [out] the event mode. ResultCode: [out] the result code. FirmwareUpgrade: permits to upgrade the reader firmware. 0x93 0x94 Parameters: UpgradeType: [in] the type of the upgrade. UpgradeArg: [in] the argument needed by the upgrade procedure. ResultCode: [out] the result code. E119ProgramID: permits to write the EPC into a EPC1.19 tag. Parameters: SourceName: [in] the name of the source to use. TagID: [in] the old EPC of the tag. TagValue: [in] the EPC to write into the tag memory. ResultCode: [out] the result code. G2ProgramID: permits to write the EPC in a Class 1 Gen 2 tag. 0x95 18 Comp. Parameters: SourceName: [in] the name of the source to use. TagIDLen: [in] the ID length of the tag (must be an even number). TagID: [in] the EPC to write into the tag memory. G2NSI: [in] the EPC numbering system. G2Password: [in] the EPC Access password (optional). ResultCode: [out] the result code. A928EU A948EU A928EU A948EU A928EU A948EU A928EU A948EU A828EU A828AEU A829EU A949EU A928EU A948EU A828EU A828AEU A829EU A949EU A528 R1230CB R1260I CAEN UHF RFID Readers Communication Protocol – Technical Information Manual Code 0x96 0x97 0x98 0x99 Description G2Read: permits to read data from anyone of the Gen2 tag memory banks. Comp. Parameters: SourceName: [in, optional] the name of the source to use. TagIDLen: [in] the ID length of the tag. TagID: [in] the ID of the tag. MemoryBank: [in] the memory bank. TagAddress: [in] the address where to read the data. Length: [in] the number of bytes to read (must be an even number). TagValue: [out] the data read from the tag memory. G2Password: [in] the EPC Access password (optional). ResultCode: [out] the result code. G2Write: permits to write data into anyone of the Gen2 tag memory banks. A928EU A948EU A828EU A828AEU A829EU A949EU A528 R1230CB R1260I Parameters: SourceName: [in, optional] the name of the source to use. TagIDLen: [in] the ID length of the tag. TagID: [in] the ID of the tag. MemoryBank: [in] the memory bank. TagAddress: [in] the address where to write the data. Length: [in] the number of bytes to write (must be an even number). TagValue: [in] the data to write to the tag memory. G2Password: [in] the EPC Access password (optional). ResultCode: [out] the result code. G2Lock: permits to execute the tag lock command defined by the EPC Class 1 Gen 2 protocol. A928EU A948EU A828EU A828AEU A829EU A949EU A528 R1230CB R1260I Parameters: SourceName: [in, optional] the name of the source to use. TagIDLen: [in] the ID length of the tag. TagID: [in] the ID of the tag. G2Payload: [in] the lock payload. G2Password: [in] the EPC Access password (optional). ResultCode: [out] the result code. G2Kill: permits to execute the tag kill command defined by the EPC Class 1 Gen 2 protocol. Parameters: SourceName: [in, optional] the name of the source to use. TagIDLen: [in] the ID length of the tag. TagID: [in] the ID of the tag. G2Password: [in] the kill password. ResultCode: [out] the result code. G2Query: permits to execute the tag query command defined by the EPC Class 1 Gen 2 protocol. If a tag is in the field result code is ERROR_SUCCESS (0x00) else result code is ERROR_TAGNOTPRESENT (0xCA). 0x9A Parameters: SourceName: [in] the name of the source to use. ResultCode: [out] the result code. G2SetQ: permits to change the initial value of the Q parameter used in the Gen2 anticollision algorithm. 0x9B Parameters: QParameter: [in] the value of the Q parameter. ResultCode: [out] the result code. CAEN UHF RFID Readers Communication Protocol - Technical Information Manual A928EU A948EU A828EU A828AEU A829EU A949EU A528 R1230CB R1260I A928EU A948EU A828EU A828AEU A829EU A949EU A528 R1230CB R1260I A928EU A948EU A828EU A828AEU A829EU A949EU A528 R1230CB R1260I A928EU A948EU A828EU A828AEU A829EU A949EU A528 R1230CB R1260I 19 Code 0x9C Description G2GetQ: permits to read the initial value of the Q parameter used in the Gen2 anticollision algorithm. Parameters: QParameter: [out] the value of the Q parameter. ResultCode: [out] the result code. G2QueryAck: permits to execute the tag query and ack command defined by the EPC Class 1 Gen 2 protocol. If a tag is in the field result code is ERROR_SUCCESS (0x00) and the command returns the EPC code stored in the tag else the result code is ERROR_TAGNOTPRESENT (0xCA). 0x9D Parameters: SourceName: [in] the name of the source to use. TagID: [out] the ID of the tag. ResultCode: [out] the result code. GetReaderInfo: permits to read some information about the reader itself. 0x9E Parameters: ReaderInfo: [out] a string with information about the reader. ResultCode: [out] the result code. SetLBTMode: permits to enable or disable the Listen Before Talk capability on ETSI EN 302 208 compatible readers. 0x9F 0xA0 0xA1 Parameters: Boolean: [in] 0 to disable LBT and ≠0 to enable LBT. ResultCode: [out] the result code. GetLBTMode: permits to read the current setting for the Listen Before Talk capability on ETSI EN 302 208 compatible readers. Parameters: Boolean: [out] 0 if LBT is disabled, ≠0 if LBT is enabled. ResultCode: [out] the result code. SetRFRegulation: permits to change the RF regulation used by the reader. Parameters: RFRegulation: [in] the desired RF regulation. ResultCode: [out] the result code. GetRFRegulation: permits to read the RF regulation used by the reader. 0xA2 Parameters: RFRegulation: [out] the desired RF regulation. ResultCode: [out] the result code. SetRFChannel: permits to set the RF channel where the reader emits the RF field. 0xA3 Parameters: RFChannel: [in] the RF channel. ResultCode: [out] the result code. GetRFChannel: permits to read the RF channel currently in use. 0xA4 0xFFFF Parameters: RFChannel: [out] the RF channel. ResultCode: [out] the result code. Comp. A928EU A948EU A828EU A828AEU A829EU A949EU A528 R1230CB R1260I A928EU A948EU A828EU A828AEU A829EU A949EU A528 R1230CB R1260I A928EU A948EU A828EU A828AEU A829EU A949EU A528 R1230CB R1260I A948EU A949EU A528 R1230CB R1260I A948EU A949EU A528 R1230CB R1260I A948EU A949EU A528 R1230CB R1260I A948EU A949EU A528 R1230CB R1260I A948EU A949EU A528 R1230CB R1260I A948EU A949EU A528 R1230CB R1260I RESERVED Tab. 2.2: Command codes 20 CAEN UHF RFID Readers Communication Protocol – Technical Information Manual 3 ASYNCHRONOUS NOTIFICATION: PROTOCOL SPECIFICATION CAEN UHF RFID Readers Communication Protocol - Technical Information Manual 21 The notification channels are implemented only with sockets. All the messages notifications are composed by a header and a body. In all cases the body of the message is a list of attribute-value pairs. The first AVP of the body is fixed and called NotifyMessage. All the packets for notification channel share the same header format of other packet as described at § 3. The first AVP (NotifyMessage) is followed by a list of AVPs, the number of which depends on how many tags should be notified. Each AVP has the same format of the AVP described in § 3. The NotifyMessage has the following fixed format: 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-------------------------------+------------------------------+ RESERVED +-------------------------------+------------------------------+ CommandName ReportBuffer +-------------------------------+------------------------------+ After the NotifyMessage AVP we can receive: a) b) a list of AVPs (as described in table 3) followed by an AVP with ‘Attribute Type’ ResultCode a single AVP called KillMessage with the following fixed format: 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-------------------------------+------------------------------+ RESERVED +-------------------------------+------------------------------+ KillCommand KillCommand +-------------------------------+------------------------------+ Description TimeStamp: the timestamp of the notification TagIDLen: the ID length of the tag. TagID: the ID of the tag. SourceName: the name of the source to use. EventType: the type of the notified event Tab. 3.1: Attribute types: Notification AVP List. 22 CAEN UHF RFID Readers Communication Protocol – Technical Information Manual 4 DEFAULT CONFIGURATION CAEN UHF RFID Readers Communication Protocol - Technical Information Manual 23 CAEN A928EUEU and A948EUEU UHF RFID Reader protocol has various configuration parameters; in the following table are summarized the default values. Parameter IP Address IP Netmask IP Gateway Sources Readpoints Baud Rate Data Bits Stop Bits Parity Flow Control Default value 192.168.0.125 255.255.255.0 192.168.0.1 “Source_0”, “Source_1”, “Source_2”, “Source_3” “Ant0”, “Ant1”, “Ant2”, “Ant3” 115200 None None Tab. 4.1: A928EUEU and A948EUEU Configuration parameters default values The default composition of sources for A928EUEU and A948EUEU reader is the following: Source Source_0 Source_1 Source_2 Source_3 Readpoints Ant0 Ant1 Ant2 Ant3 Tab. 4.2: A928EUEU and A948EUEU Default composition of sources CAEN A828EU A828AEUEU, A829EUEU, A946EUEU and A949EUEU UHF RFID Reader protocol has various configuration parameters; in the following table are summarized the default values. Parameter Sources Readpoints Baud Rate Data Bits Stop Bits Parity Flow Control Default value “Source_0” “Ant0” 115200 None None Tab. 4.3: A828EU A828AEUEU, A829EUEU, A946EUEU and A949EUEU Configuration parameters default values The default composition of sources for the A828EU A828AEUEU, A829EUEU, A946EUEU and A949EUEU reader is the following: Source Source_0 Readpoints Ant0 Tab. 4.4: A828EU A828AEUEU, A829EUEU, A946EUEU and A949EUEU Default composition of sources 24 CAEN UHF RFID Readers Communication Protocol – Technical Information Manual 5 EXAMPLES Set Protocol Command Action: Set Reader Protocol to EPC C1G2 Result: Reader select EPC C1G2 protocol. 26 Command sent: 0x8001 0x0000 0x00005358 0x001C (Fixed) (Message ID) (Vendor ID = CAEN SpA) (Message Length) 0x0000 0x0008 0x0001 0x0074 (Reserved) (AVP Length) (AVP Type = CommandName) (AVP Value = SetProtocol) 0x0000 0x000A 0x0054 0x00000003 (Reserved) (AVP Length) (AVP Type = Protocol) (AVP Value = EPC C1G2) Response received: 0x0001 0x0000 0x00005358 0x001A (Fixed) (Message ID) (Vendor ID = CAEN SpA) (Overall Message Length) 0x0000 0x0008 0x0001 0x0074 (Reserved) (AVP Length) (AVP Type = CommandName) (AVP Value = NewRawReadIDs) 0x0000 0x0008 0x0002 0x0000 (Reserved) (AVP Length) (AVP Type = ResultCode) (AVP Value = Success) CAEN UHF RFID Readers Communication Protocol – Technical Information Manual Inventory Command Action: Execute an inventory cycle on the logical source Source0 Result: Two EPCC1G2 tags are returned as being inventory by the reader on Ant0. Tag1 Id = 010203040506070809101112131415161718191920 (160 bit) Tag2 Id = 300833B2DDD9014035050000 (96 bit) Command sent: 0x8001 0x0000 0x00005358 0x0021 (Fixed) (Message ID) (Vendor ID = CAEN SpA) (Message Length) 0x0000 0x0008 0x0001 0x0013 (Reserved) (AVP Length) (AVP Type = CommandName) (AVP Value = NewRawReadIDs) 0x0000 0x000F 0x00FB 0x536F757263655F3000 (Reserved) (AVP Length) (AVP Type = SourceName) (AVP Value = “Source_0”) Response received: 0x0001 0x0000 0x00005358 0x00B6 (Fixed) (Message ID) (Vendor ID = CAEN SpA) (Overall Message Length) 0x0000 0x0008 0x0001 0x0013 (Reserved) (AVP Length) (AVP Type = CommandName) (AVP Value = NewRawReadIDs) 0x0000 0x000F 0x00FB 0x536F757263655F3000 (Reserved) (AVP Length) (AVP Type = SourceName) (AVP Value = “Source_0”) 0x0000 0x000B 0x0022 416E743000 (Reserved) (AVP Length) (AVP Type = ReadPointName) (AVP Value = “Ant0”) 0x0000 0x000E 0x0010 0x00000578 0x00000000 (Reserved) (AVP Length) (AVP Type = TimeStamp) (AVP Value = Thu Jan 1 01:23:20 1970) (AVP Value) 0x0000 0x0008 0x0012 0x0003 (Reserved) (AVP Length) (AVP Type = TagType) (AVP Value = EPCC1G2) 0x0000 0x0008 0x000F 0x0014 (Reserved) (AVP Length) (AVP Type = TagIDLen) (AVP Value = 160 bit) 0x0000 (Reserved) 0x001A (AVP Length) 0x0011 (AVP Type = TagID) 0x010203040506070809101112131415161718191920 0x0000 0x000F 0x00FB (Reserved) (AVP Length) (AVP Type = SourceName) CAEN UHF RFID Readers Communication Protocol - Technical Information Manual 27 0x536F757263655F3000 (AVP Value) 0x0000 0x000B 0x0022 0x416E743000 (Reserved) (AVP Length) (AVP Type = ReadPointName) (AVP Value = “Ant0”) 0x0000 0x000E 0x0010 0x00000578 0x00000000 (Reserved) (AVP Length) (AVP Type = TimeStamp) (AVP Value = Thu Jan 1 01:23:20 1970) (AVP Value) 0x0000 0x0008 0x0012 0x0003 (Reserved) (AVP Length) (AVP Type = TagType) (AVP Value = EPCC1G2) 0x0000 0x0008 0x000F 0x000C (Reserved) (AVP Length) (AVP Type = TagIDLen) (AVP Value = 96 bit) 0x0000 (Reserved) 0x0012 (AVP Length) 0x0011 (AVP Type = TagID) 0x300833B2DDD9014035050000 0x0000 0x0008 0x0002 0x0000 28 (Reserved) (AVP Length) (AVP Type = ResultCode) (AVP Value = Success) CAEN UHF RFID Readers Communication Protocol – Technical Information Manual
Source Exif Data:
File Type : PDF File Type Extension : pdf MIME Type : application/pdf PDF Version : 1.5 Linearized : No Page Count : 28 Language : it-IT Tagged PDF : Yes Title : easy2read_protocol Author : manuela Subject : 00107/05:A828x.MUTx/09 Keywords : 1.5 Creator : Microsoft® Office Word 2007 Create Date : 2011:01:14 14:18:43 Modify Date : 2011:01:14 14:18:43 Producer : Microsoft® Office Word 2007EXIF Metadata provided by EXIF.tools