OBID i-scan MANUAL Communication FU Communication Function Unit Function Unit Commands Reader FU (Function Unit) final public (B) 2008-01-07 H30701-3e-ID-B
Copyright 2003-2005 by FEIG ELECTRONIC GmbH Lange Strasse 4 D-35781 Weilburg-Waldhausen Tel.: +49 6471 3109-0 http://www.feig.de Note With the edition of this document, all previous editions become void. Indications made in this manual may be changed without previous notice. Copying of this document, and giving it to others and the use or communication of the contents thereof are forbidden without express authority. Offenders are liable to the payment of damages. All rights are reserved in the event of the grant of a patent or the registration of a utility model or design. Composition of the information in this document has been done to the best of our knowledge. FEIG ELECTRONIC GmbH does not guarantee the correctness and completeness of the details given in this manual and may not be held liable for damages ensuing from incorrect or incomplete information. Since, despite all our efforts, errors may not be completely avoided, we are always grateful for your useful tips. The instructions given in this manual are based on advantageous boundary conditions. FEIG ELECTRONIC GmbH does not give any guarantee promise for perfect function in cross environments. FEIG ELECTRONIC GmbH assumes no responsibility for the use of any information contained in this document and makes no representation that they free of patent infringement. FEIG ELECTRONIC GmbH does not convey any license under its patent rights nor the rights of others. OBID i-scan is registered trademark of FEIG ELECTRONIC GmbH. General information's regarding this document If bits within one byte are filled with "-", these bit spaces are reserved for future extensions or for internal testing- and manufacturing-functions. These bit spaces must not be changed, as this may cause faulty operation of the reader. The following figure formats are used: 0...9: for decimal figures 0x00...0xFF: for hexadecimal figures, b0...1 for binary figures. The hexadecimal value in brackets "[ ]" marks a control byte (command). FEIG ELECTRONIC GmbH Page 2 of 27 H30701-3e-ID-B
Contents 1. Communication between Reader and Function Unit 5 2. Antenna Multiplexer ID ISC.ANT.MUX 7 2.1. System Description of the Multiplexer...7 2.1.1. Configuration using one Input...8 2.1.2. Configuration using both Inputs...9 2.1.3. Configuration with cascaded Multiplexers...10 2.1.4. Multiplexer Address Setting...11 2.2. Commands for MUX Control...12 2.2.1. [0xDF]: Get Firmware Version...12 2.2.2. [0xDE]: CPU-Reset...13 2.2.3. [0xDD]: Select Channel...13 2.2.4. [0xDC]: Detect...14 3. Antenna Tuner ID ISC.DAT 15 3.1. System Description of the Antenna Tuner...15 3.1.1. Configuration with one Antenna...15 3.1.2. Configuration with multiple Antennas...16 3.1.2.1. Configuration with a Power Splitter...16 3.1.2.2. Configuration with a Multiplexer...17 3.1.3. Setting Antenna Tuner Addresses...17 3.2. Commands for Tuner Control...18 3.2.1. [0xC0]: Get Firmware Version...18 3.2.2. [0xC1]: CPU-Reset...19 3.2.3. [0xC2]: Set Capacities...19 3.2.4. [0xC3]: Get Antenna-Values...20 3.2.5. [0xC4]: Set Outputs...21 3.2.6. [0xC5]: ReTuning...22 3.2.7. [0xC6]: Start-Tuning...22 3.2.8. [0xC8]: Store Settings...23 FEIG ELECTRONIC GmbH Page 3 of 27 H30701-3e-ID-B
3.2.9. [0xC9]: Detect...23 3.2.10. [0xCA]: Set Address...24 3.2.11. [0xCB]: Set Mode...24 APPENDIX 25 APPENDIX A: Index STATUS...25 APPENDIX B: Index Control Bytes...26 APPENDIX C: Protocol on Host Interface...27 FEIG ELECTRONIC GmbH Page 4 of 27 H30701-3e-ID-B
1. Communication between Reader and Function Unit The function unit has an interface for communication with the reader. The communication takes place trough the cable connection between the reader and the function unit. The function unit can be controlled by means of the protocols described further below. Control of the function unit is possible either directly by the reader or by the application using commands from the host to the reader. Since communication and control of the function unit is accomplished using the antenna connection on the reader, no additional connection between reader and function unit or host and function unit is required. Figure 1 shows a system consisting of a host, e.g. a PC, the reader and the function unit: Host Reader Function Unit Figure 1: System with one Function Unit It is possible to connect multiple function units an a cascading arrangement. (see Figure 2). Function Unit 2 Host Reader Function Unit 1 Function Unit 3 Function Unit 4 Figure 2: System with more than one Function Unit FEIG ELECTRONIC GmbH Page 5 of 27 H30701-3e-ID-B
Antenna Tuner 1 (DAT) Transponder Transponder Host Reader Multiplexer (MUX) Antenna Tuner 2 (DAT) In one example (see. Figure 3) there is a system with three function units. One function unit is a multiplexer (MUX 1 ). Two other function units, two antenna tuner (DAT 2 ), are connected to the multiplexer. Figure 3: System with three Function Units 1 see 2. Antenna Multiplexer ID ISC.ANT.MUX 2 see 3. Antenna Tuner ID ISC.DAT FEIG ELECTRONIC GmbH Page 6 of 27 H30701-3e-ID-B
2. Antenna Multiplexer ID ISC.ANT.MUX 2.1. System Description of the Multiplexer The ID ISC.ANT.MUX multiplexer can communicate with a reader. This means that no additional cabling beyond the HF connection (coaxial cable) is needed to control the multiplexer. The multiplexer has two inputs (IN1 and IN2) and eight outputs (OUT1-8) (see Figure 4). Communication, i.e., control of the multiplexer takes place exclusively on input IN1. OUT 1-8 Multiplexer (MUX) IN1 IN2 Figure 4: Multiplexer Each output can be assigned to one of the two inputs. Only one output can be active per input. The procedure for assigning the outputs is described in the installation guide for the ID ISC.ANT.MUX multiplexer (M30201-xde-ID-B). Figure 5 shows two common configurations. OUT1-8 OUT1-4 OUT5-8 IN1 IN1 IN2 Figure 5: Configuration Examples for Assigning Outputs on IN1 and IN2 Additional multiplexers can be connected to the outputs of any multiplexer to increase the number of channels. Here the multiplexers must be addressed for controlling the respective units. Addressing of the multiplexers is described in greater detail in section 2.1.4. Multiplexer Address Setting. Below are several examples which demonstrate the possibilities for a multiplexer. FEIG ELECTRONIC GmbH Page 7 of 27 H30701-3e-ID-B
2.1.1. Configuration using one Input Figure 6 shows a configuration with one multiplexer and three antennas. MUX Reader Figure 6: Multiplexer with three Antennas The individual antennas can be switched by the reader over the HF line using protocols. Only one output can be active at a time. The protocols always contain the address of the multiplexer to be activated. This means that even when using only one multiplexer, it must be addressed also (see 2.1.4. Multiplexer Address Setting). FEIG ELECTRONIC GmbH Page 8 of 27 H30701-3e-ID-B
2.1.2. Configuration using both Inputs Figure 7 shows a configuration with two gates consisting of base antenna (B) and complementary antenna (C). B C B C MUX Reader Figure 7: Multiplexer with two Antenna Gates The base antennas are connected to input IN1, and the complementary antennas to IN2. The reverse is not possible, since protocols from the reader can only be received on IN1. The corresponding gate outputs (e.g., output OUT1 on base antenna Gate 1 and output OUT2 complementary antenna Gate 1) are switched simultaneously. Only one gate can be active at a time. The protocols always contain the address of the multiplexer to be activated. This means that even when using only one multiplexer, it must be addressed also (see 2.1.4. Multiplexer Address Setting). FEIG ELECTRONIC GmbH Page 9 of 27 H30701-3e-ID-B
2.1.3. Configuration with cascaded Multiplexers Figure 8 shows a configuration with cascaded multiplexers. MUX MUX MUX Level 3 MUX Level 2 MUX Level 1 Reader Figure 8: Configuration with cascaded Multiplexers In this configuration multiplexers are cascaded one behind the other. Since each multiplexer can have only one active output at a time, it is only possible to activate the multiplexers on the switched branches. It is not possible to activate all multiplexers at the same time. The protocols always contain the address of the multiplexer to be activated (see 2.1.4. Multiplexer Address Setting). FEIG ELECTRONIC GmbH Page 10 of 27 H30701-3e-ID-B
2.1.4. Multiplexer Address Setting The multiplexer address is set using DIP switches. Here you set the level on which the multiplexer is located. Figure 9 shows an example for a configuration with three levels. Only DIP switches 3 and 4 are shown here. Level 3 ON MUX MUX MUX 3 4 Level 2 ON MUX MUX 3 4 Level 1 ON 3 4 MUX Reader Figure 9: Setting the Levels using DIP Switches Since only one multiplexer output can be active at a time, it is also possible to communicate with only one multiplexer on a level. For DIP switch settings see installation guide for ID ISC.ANT.MUX (M30201-xde-ID-B). FEIG ELECTRONIC GmbH Page 11 of 27 H30701-3e-ID-B
2.2. Commands for MUX Control 2.2.1. [0xDF]: Get Firmware Version This protocol can be used to read the firmware version and status of the antenna multiplexer. Host MUX [0xDF] MUX-Adr 1 0x02 8 bits 0xFE 8 bits Host MUX STATUS 2 SW-Rev SW-Type HW-Rev DIP reserved 0x00 8 bits 16 bits 8 bits 8 bits 8 bits 16 bits SW-Rev: MUX firmware revision main revision sub revision 8 bits 8 bits SW-Type: Software-Type: 0x0A ID ISCANTMUX (10) HW-Rev: Hardware-Revision DIP: DIP switch setting on multiplexer 1 see 2.1.4. Multiplexer Address Setting 2 FEIG ELECTRONIC GmbH Page 12 of 27 H30701-3e-ID-B
2.2.2. [0xDE]: CPU-Reset This protocol is used to perform a CPU reset on the multiplexer. Host MUX [0xDE] MUX-Adr 1 0x02 8 bits 0xFE 8 bits Host MUX 0x00 STATUS 2 8 bits 2.2.3. [0xDD]: Select Channel This protocol is used to set the output channel OUT1-8 on the multiplexer. Host MUX [0xDD] MUX-Adr 3 OutCh1 OutCh2 0x02 8 bits 0xFE 8 bits 8 bits 8 bits Host MUX 0x00 STATUS 4 8 bits OutCh1: Output Channel for IN1: 0x00 to 0x08 OutCh2: Output Channel for IN2: 0x00 to 0x08 Settings for the individual channels greater than 0x08 or the same setting for both channels are rejected and acknowledged with STATUS 0x11 (Parameter Range Error). A setting of 0x00 overwrites the current channel setting. 1 see 2.1.4. Multiplexer Address Setting 2 3 see 2.1.4. Multiplexer Address Setting 4 FEIG ELECTRONIC GmbH Page 13 of 27 H30701-3e-ID-B
2.2.4. [0xDC]: Detect This protocol is used to query the address and DIP switch setting, i.e., the set mode of the multiplexer. Host MUX [0xDC] MUX-Adr 1 0x02 8 bits 0xFE 8 bits Host MUX 0x00 STATUS 2 8 bits 1 see 2.1.4. Multiplexer Address Setting 2 FEIG ELECTRONIC GmbH Page 14 of 27 H30701-3e-ID-B
3. Antenna Tuner ID ISC.DAT 3.1. System Description of the Antenna Tuner The ID ISC.DAT antenna tuner can communicate with a reader. This means no additional connection besides the HF connection (coax cable) is required in order to control the multiplexer. Power for the antenna tuner is also provided over this connection. In addition to the tuning and calibrating capability for an RFID antenna, the antenna tuner also makes it possible to disconnect the antenna tuned circuit. antenna tuner (DAT) X1 antenna loop Figure 10: antenna tuner 3.1.1. Configuration with one Antenna Figure 11 shows a configuration using one antenna. Figure 11: configuration using one antenna Reader DAT FEIG ELECTRONIC GmbH Page 15 of 27 H30701-3e-ID-B
3.1.2. Configuration with multiple Antennas When the configuration consists of multiple antennas and the DAT antenna tuner, it is possible to operate the antennas either simultaneously or alternately. Simultaneous operation can be implemented for example use a power splitter and alternating operation using a multiplexer. 3.1.2.1. Configuration with a Power Splitter Configuration with a power splitter involves at least two antennas being operated simultaneously. In this case the antenna tuners must have different addresses. Figure 12 shows a configuration using two antennas connected to the Reader through a power splitter. The antenna tuners have their own addresses. DAT Adr. 1 DAT Adr. 2 Power Splitter Reader Figure 12: Configuration with a Power Splitter FEIG ELECTRONIC GmbH Page 16 of 27 H30701-3e-ID-B
3.1.2.2. Configuration with a Multiplexer In multiplexed configuration there will never be two antennas active simultaneously. In this case the antenna tuners may all have the same address. Figure 13 shows a configuration using three antennas connected to the Reader through a multiplexer. The antenna tuners all have the same address 1. DAT Adr. 1 DAT Adr. 1 DAT Adr. 1 Multiplexer Reader Figure 13: Configuration with a multiplexer 3.1.3. Setting Antenna Tuner Addresses The address is set using Set Address (see 3.2.10. [0xCA]: Set Address). The factory default address setting for the antenna tuners is 1. FEIG ELECTRONIC GmbH Page 17 of 27 H30701-3e-ID-B
3.2. Commands for Tuner Control 3.2.1. [0xC0]: Get Firmware Version This protocol can be used to read the firmware version and status of the antenna tuner. Host Tuner [0xC0] Tuner-Adr 1 0x02 8 bits 0xFE 8 bits Host Tuner STATUS 2 SW-Rev SW-Type HW-Rev reserved 0x00 8 bits 16 bits 8 bits 8 bits 24 bits SW-Rev: Revision von Tuner-Firmware main revison sub revision 8 bits 8 bits SW-Type: Software-Type: 0x0B ID ISCDAT (11) HW-Rev: Hardware-Revision 1 see 3.1. System Description of the Antenna Tuner 2 FEIG ELECTRONIC GmbH Page 18 of 27 H30701-3e-ID-B
3.2.2. [0xC1]: CPU-Reset This protocol is used to perform a CPU reset on the antenna tuner. After this protocol the Tuner cannot receive protocols for the next 200 ms. Host Tuner [0xC1] Tuner-Adr 1 0x02 8 bits 0xFE 8 bits Host Tuner 0x00 STATUS 2 8 bits 3.2.3. [0xC2]: Set Capacities This protocol is used to switch the capacities C1 and C2 of the antenna tuner. To get the current capacity settings send [0xC3] Get Antenna Values to the tuner. Host Tuner [0xC2] Tuner-Adr 3 C1 C2 0x02 8 bits 0xFE 8 bits 8 bits 8 bits Host Tuner 0x00 STATUS 4 8 bits C1: C2: Value for C1: 0x00 bis 0x7F Value for C2: 0x00 bis 0x7F Settings for the capacities C1 or C2 greater than 0x7F are rejected and acknowledged with STATUS 0x11 (Parameter Range Error). A setting of 0x00 overwrites the current capacity setting. 1 see 3.1. System Description of the Antenna Tuner 2 3 see 3.1. System Description of the Antenna Tuner 4 FEIG ELECTRONIC GmbH Page 19 of 27 H30701-3e-ID-B
3.2.4. [0xC3]: Get Antenna-Values This protocol is used to read the settings of the capacities C1 and C2 and the measured status of the antenna impedance. Reasonable data can be received 250ms after power up of the Tuner (e.g. after the Tuner is selected by a multiplexer). Host Tuner [0xC3] Tuner-Adr 1 0x02 8 bits 0xFE 8 bits Host Tuner STATUS 2 Value C1 Value C2 R Phi TU-ST 0x00 8 bits 8 bits 8 bits 16 bits 8 bits 8 bits Value C1: Value of C1 (0x00 0x7F) Value C2: Value of C2 (0x00 0x7F) R: Difference between R ref and R mess most significant least significant 8 bits 8 bits Phi: Value of Phase ϕ (0x00 0x5A) 1 see 3.1. System Description of the Antenna Tuner 2 FEIG ELECTRONIC GmbH Page 20 of 27 H30701-3e-ID-B
TU-ST: ANT-C reserved VAL-ST TU-ST C2 TU-ST C1 7 6 5 4 3 2 1 0 ANT-C: Antenna-Switch 0 ON 1 OFF (Circuit closed by jumper) VAL-ST: TU-ST C2: TU-ST C1: Value-Status of C1 and C2 Tuning-Status C2 Tuning-Status C1 0 OK 0 Capacity out of Range TU-ST C1/C2:00 OK 01 Warning 10 Tuning necessary 3.2.5. [0xC4]: Set Outputs This protocol is used to controll the outputs OUT1-3. Host Tuner [0xC4] Tuner-Adr 1 OUT 0x02 8 bits 0xFE 8 bits 8 bits Host Tuner 0x00 STATUS 2 8 bits OUT: reserved OUT3 OUT2 OUT1 7 6 5 4 3 2 1 0 OUT1-3: 0 output OFF 1 output ON It is possible to activate maximal two outputs at the same time or else the protocoll will be rejected and acknowledged with STATUS 0x11 (Parameter Range Error). 1 see 3.1. System Description of the Antenna Tuner 2 FEIG ELECTRONIC GmbH Page 21 of 27 H30701-3e-ID-B
3.2.6. [0xC5]: ReTuning This protocol is used to retune the antenna step by step. The retuned settings are not strored into the E 2 PROM. Host Tuner [0xC5] Tuner-Adr 1 0x02 8 bits 0xFE 8 bits Host Tuner 0x00 STATUS 2 8 bits 3.2.7. [0xC6]: Start-Tuning This protocol is used to tune the antenna. During the tuning procedure the Tuner cannot receive any protocol. After a successful tuning procedure the current settings are stored into the E 2 PROM. Host Tuner [0xC6] Tuner-Adr 3 0x02 8 bits 0xFE 8 bits Host Tuner 0x00 STATUS 4 8 bits 1 see 3.1. System Description of the Antenna Tuner 2 3 see 3.1. System Description of the Antenna Tuner 4 FEIG ELECTRONIC GmbH Page 22 of 27 H30701-3e-ID-B
3.2.8. [0xC8]: Store Settings This protocol is used to store the values of capacities C1 and C2 into the E 2 PROM. The E 2 PROM has an endurance of at least 100,000 write/erase cycles. Host Tuner [0xC8] Tuner-Adr 1 0x02 8 bits 0xFE 8 bits Host Tuner 0x00 STATUS 2 8 bits 3.2.9. [0xC9]: Detect This protocol will not activate any action on the antenna tuner. It is only acknowledged by the STATUS of the antenna tuner. Host Tuner [0xC9] Tuner-Adr 3 0x02 8 bits 0xFE 8 bits Host Tuner 0x00 STATUS 4 8 bits 1 see 3.1. System Description of the Antenna Tuner 2 3 see 3.1. System Description of the Antenna Tuner 4 FEIG ELECTRONIC GmbH Page 23 of 27 H30701-3e-ID-B
3.2.10. [0xCA]: Set Address This protocol is used to set the address of the antenna tuner. Host Tuner [0xCA] Tuner-Adr 1 ADDRESS 0x02 8 bits 0xFE 8 bits 8 bits Host Tuner 0x00 STATUS 2 8 bits ADDRESS: 0x01.. 0x04 are available DAT-addresses 3.2.11. [0xCB]: Set Mode This protocol is used to activate special modes on the antenna tuner. Host Tuner [0xCB] Tuner-Adr 3 MODE 0x02 8 bits 0xFE 8 bits 8 bits Host Tuner 0x00 STATUS 4 8 bits MODE: 0x01: Automatic Address Setting (reset to the current Mode after a CPU- Reset [0xC1]) 0x02: Sensitive Tuning Mode (stored in E 2 PROM) 0x03: Approximate Tuning Mode (stored in E 2 PROM) 0x04: Extended Tuning Mode (all possible capacities are measured - takes up to 6 min! Reset to the current Mode after a CPU-Reset [0xC1]) 1 see 3.1. System Description of the Antenna Tuner 2 3 see 3.1. System Description of the Antenna Tuner 4 FEIG ELECTRONIC GmbH Page 24 of 27 H30701-3e-ID-B
APPENDIX APPENDIX A: Index STATUS Hex-Value Status 0x00 0x11 OK Parameter Range Error - the value of the parameter is exceed 0x84 RF-Warning Multiplexer - The impedance at the switched output is to low - wrong cable length FEIG ELECTRONIC GmbH Page 25 of 27 H30701-3e-ID-B
APPENDIX B: Index Control Bytes Control Byte Description Page Antenna Tuner [0xC0] 3.2.1. [0xC0]: Get Firmware Version 18 [0xC1] 3.2.2. [0xC1]: CPU-Reset 19 [0xC2] 3.2.3. [0xC2]: Set Capacities 19 [0xC3] 3.2.4. [0xC3]: Get Antenna-Values 20 [0xC4] 3.2.5. [0xC4]: Set Outputs 21 [0xC5] 3.2.6. [0xC5]: ReTuning 22 [0xC6] 3.2.7. [0xC6]: Start-Tuning 22 [0xC8] 3.2.8. [0xC8]: Store Settings 23 [0xC9] 3.2.9. [0xC9]: Detect 23 [0xCA] 3.2.10. [0xCA]: Set Address 24 [0xCB] 3.2.11. [0xCB]: Set Mode 24 Multiplexer [0xDC] 2.2.4. [0xDC]: Detect 14 [0xDD] 2.2.3. [0xDD]: Select Channel 13 [0xDE] 2.2.2. [0xDE]: CPU-Reset 13 [0xDF] 2.2.1. [0xDF]: Get Firmware Version 12 FEIG ELECTRONIC GmbH Page 26 of 27 H30701-3e-ID-B
APPENDIX C: Protocol on Host Interface FEFU is library for host programmers. Communication Functions for Multiplexer int FEFU_MUX_CPUReset ( int ireaderhnd, UCHAR ucreaderbusadr, UCHAR ucmuxadr ) int FEFU_MUX_SoftVersion ( int ireaderhnd, UCHAR ucreaderbusadr, UCHAR ucmuxadr, UCHAR* ucversion ) int FEFU_MUX_SelectChannel ( int ireaderhnd, UCHAR ucreaderbusadr, UCHAR ucmuxadr, UCHAR ucin1, UCHAR ucin2 ) int FEFU_MUX_Detect ( int ireaderhnd, UCHAR ucreaderbusadr, UCHAR ucmuxadr) Communication Functions for Dynamic Antenna Tuner int FEFU_DAT_CPUReset ( int ireaderhnd, UCHAR ucreaderbusadr, UCHAR ucdatadr ) int FEFU_DAT_SoftVersion ( int ireaderhnd, UCHAR ucreaderbusadr, UCHAR ucdatadr, UCHAR* ucversion ) int FEFU_DAT_Detect ( int ireaderhnd, UCHAR ucreaderbusadr, UCHAR ucdatadr) int FEFU_DAT_GetValues ( int ireaderhnd, UCHAR ucreaderbusadr, UCHAR ucdatadr, UCHAR* ucvalues) int FEFU_DAT_ SetOutput( int ireaderhnd, UCHAR ucreaderbusadr, UCHAR ucdatadr, UCHAR ucout) int FEFU_DAT_ StartTuning( int ireaderhnd, UCHAR ucreaderbusadr, UCHAR ucdatadr) int FEFU_DAT_ ReTuning( int ireaderhnd, UCHAR ucreaderbusadr, UCHAR ucdatadr) int FEFU_DAT_ StoreSettings( int ireaderhnd, UCHAR ucreaderbusadr, UCHAR ucdatadr) int FEFU_DAT_ SetAddress( int ireaderhnd, UCHAR ucreaderbusadr, UCHAR ucdatadr, UCHAR ucnewdatadr) int FEFU_DAT_SetMode ( int ireaderhnd, UCHAR ucreaderbusadr, UCHAR ucdatadr, UCHAR ucmode) See manual ID FEFU (H30801-xe-ID-B.doc) FEIG ELECTRONIC GmbH Page 27 of 27 H30701-3e-ID-B