RFID Reader User Manual Rev 1.0 Design Controls User Manual RFID Reader Board IFU-010-140 Welbilt 1 i FCC Interference Statement (Part 15.105 (b)) This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to Part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference in a residential installation. This equipment generates uses and can radiate radio frequency energy and, if not installed and used in accordance with the instructions, may cause harmful interference to radio communications. However, there is no guarantee that interference will not occur in a particular installation. If this equipment does cause harmful interference to radio or television reception, which can be determined by turning the equipment off and on, the user is encouraged to try to correct the interference by one of the following measures:
Reorient or relocate the receiving antenna. Increase the separation between the equipment and receiver. Connect the equipment into an outlet on a circuit different from that to which the receiver is connected. Consult the dealer or an experienced radio/TV technician for help. ii FCC Part 15 Clause 15.21 Changes or modifications not expressly approved by the party responsible for compliance could void the user's authority to operate the equipment iii FCC Part 15.19 This device complies with part 15 of the FCC Rules. Operation is subject to the following two 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. iv ISED RSS-Gen Notice This device complies with Industry Canadas licence-exempt RSSs. Operation is subject to the following two conditions:
(1) This device may not cause interference; and
(2) This device must accept any interference, including interference that may cause undesired operation of the device. Le prsent appareil est conforme aux CNR dIndustrie Canada applicables aux appareils radio exempts de licence. Lexploitation est autorise aux deux conditions suivantes :
1) lappareil ne doit pas produire de brouillage;
2) lappareil doit accepter tout brouillage radiolectrique subi, mme si le brouillage est susceptible den compromettre le fonctionnement. v FCC RF Exposure Guidance Statement In order to comply with FCC/ISED RF Exposure requirements, this device must be installed to provide at least 20 cm separation from the human body at all times. Afin de se conformer aux exigences d'exposition RF FCC / ISED, cet appareil doit tre install pour fournir au moins 20 cm de sparation du corps humain en tout temps. 2 Contents i FCC Interference Statement (Part 15.105 (b)) ......................................................................... 2 ii FCC Part 15 Clause 15.21 ......................................................................................................... 2 iii FCC Part 15.19 ........................................................................................................................ 2 iv ISED RSS-Gen Notice............................................................................................................... 2 v FCC RF Exposure Guidance Statement .................................................................................... 2 1. 2. 3. 4. 5. Purpose ........................................................................................................................ 5 End Product Labelling .................................................................................................. 5 Definitions, acronyms, and abbreviations ................................................................... 5 Reference Documents ................................................................................................. 5 Product Description ..................................................................................................... 6 5.1 System Diagram ............................................................................................................ 6 5.2 External Connections .................................................................................................... 6 5.2.1 MODBUS Connector ........................................................................................... 6 6. Hardware Description .................................................................................................. 8 6.1 Power ............................................................................................................................ 8 6.1.1 Input Power ........................................................................................................ 8 6.1.2 RF Output Power ................................................................................................ 8 6.2 ID Select Jumper ........................................................................................................... 8 6.3 Indicators ...................................................................................................................... 8 6.4 Microcontroller ............................................................................................................. 8 6.4.1 Microcontroller ................................................................................................... 8 6.4.2 Clock ................................................................................................................... 8 6.4.3 Debug/Personality Module Support ................................................................... 9 6.4.4 Reset ................................................................................................................... 9 6.5 Communication Peripherals ......................................................................................... 9 6.5.1 MODBUS Interface .............................................................................................. 9 6.5.2 SPI Interface ........................................................................................................ 9 6.6 RFID Transceiver ........................................................................................................... 9 6.7 RF Analog Multiplexor ................................................................................................ 10 6.8 Inductive Antenna Tuner ............................................................................................ 10 7. Software Description ................................................................................................. 10 7.1 Bootloader Support .................................................................................................... 10 3 8. 9. 7.2 Microcontroller Configuration .................................................................................... 11 7.3 RFID Transceiver Configuration .................................................................................. 11 7.4 RFID Zone Scanning..................................................................................................... 11 7.5 Communication Bus Drivers........................................................................................ 12 7.5.1 MODBUS Interface ............................................................................................ 12 7.5.2 SPI Interface ...................................................................................................... 12 Specifications (Typical) .............................................................................................. 13 Appendix A................................................................................................................. 13 10. Appendix B (RF Reader Assembly Rev 2) ................................................................... 14 4 1. Purpose The purpose of this document is to describe the functionality of the RFID reader module. The intent is to provide RFID reader capability customized for Welbilt commercial foodservice products. 2. End Product Labelling The end product labelling shall provide the following FCC ID information for the reader module:
Contains FCC ID: 2AQ4D-RFIDREADER Contains IC: 24291-RFIDREADER On the ISED Canada ICES-003 Compliance Label:
CAN ICES-3 (B)/NMB-3(B) 3. Definitions, acronyms, and abbreviations Abbreviation Term Definition or Unique Identification Code Near Field Communication Radio Frequency Identification Printed Circuit Board Assembly Controller Area Network Personality Module Manitowoc Foodservice Standard Operating Procedure UID NFC RFID PCBA CAN PM MTW SOP 4. Reference Documents Document Name RFID Reader Board Schematic RFID Reader Board VHC SW VHC RFID Tag HRS VHC RFID Antenna Schematic Number Ref Revision
[1]
[2]
[3]
[4]
3 0.4.0 1.1 1 10000100-100 HRS-010-700 10010005-300 5 5. Product Description 5.1 System Diagram 5.2 External Connections 5.2.1 MODBUS Connector The power and P-BUS/C-BUS signals are located on the RJ45 MODBUS connector. The connector type is Molex 4320288113 or equivalent. This connector is keyed. Signal Name Signal Type Pin Number CBUS+
CBUS-
5V_RAW_SRB PBUS-
PBUS+
GND 12V_RAW_SRB GND RS-485 RS-485 Power RS-485 RS-485 Ground Power Ground J14-1 J14-2 J14-3 J14-4 J14-5 J14-6 J14-7 J14-8 6 Power&MODBUSProgram&PM ModuleMicrocontroller &RFID TransceiverRF SwitchZone1Zone2Zone3Zone4Zone5Zone12Zone11Zone10Zone9Zone8Zone6Zone7AntennaAntennaAntennaAntennaAntennaAntennaRF Reader BoardAddressable RFID System 5.2.1.1 Program Connector The connector is a Hirose DF9-11P-1V(32). Signal Name Signal Type Pin Number MCLR 3V3_VDC AGND PGEDI PGECI 10k_pullup SPI_MOSI SPI_SCLK SPI_MISO PM_CS NC AGND AGND Data Power Ground Data Data Data Data Data Data Data NC Ground Ground J15-1 J15-2 J15-3 J15-4 J15-5 J15-6 J15-7 J15-8 J15-9 J15-10 J15-11 J15-12 J15-13 5.2.1.2 RF Connector The MMCX connector is a Molex 0734150961. Signal Name Signal Type Pin Number RF_ANT RF_ANT_RTN RF_ANT_RTN Data Ground Ground J1-1 J2-2 J3-3 5.2.1.3 ID Select Connector The header connector is a TE Connectivity 5-146280-3 or equivalent. Signal Name Signal Type Pin Number ID_SEL_0 AGND ID_SEL_1 Power Ground Data J13-1 J13-2 J13-3 7 6. Hardware Description 6.1 Power 6.1.1 Input Power The RFID reader board derives all power from the 12VDC(+/-10%) and 5VDC(+10%/-5%) as defined per the MODBUS connector. The reader generates 3V3 from the 5VDC rail using an MCP1700T LDO rated at 250mA. The 5V2 voltage is generated from the 12VDC rail using an AZ1117LDO rated at 800mA. 6.1.2 RF Output Power When configured for 5-V operation (see section 6.6), the RF amplifier voltage can be set from 4.3V to 5V in 100mV steps via software. In 3-V operation, the RF amplifier can be set from 2.7V to 3.4 in 100mV steps. The typical output power at maximum setting is 17dBm@3-V operation and 23dBm@5-V operation. 6.2 ID Select Jumper The MODBUS ID of the reader board can be set using a standard 100 mil jumper on J13 per the following table:
MODBUS ID RFID_ ID1 RFID_ ID2 RFID_ ID3 JUMPER POSITION Jumper across J13-1 and J13-2 Jumper across J13-2 and J13-3 No jumper installed 6.3 Indicators The reader board provides an LED for each of the power rails; 5V2_VDC(GREEN), 3V3_VDC(GREEN). The reader board provides a BLUE LED for each of the RF antenna zones 1 through 12 (as shown in appendix B). Each LED will illuminate whenever a valid tag is detected on an attached RFID antenna. The reader board provides a GREEN LED to indicate the status of the microcontroller as well as an ORANGE LED to indicate the communication on the MODBUS. 6.4 Microcontroller 6.4.1 Microcontroller The RFID reader board uses Microchip PN PIC24EP512GU810-I/PF in a 100 pin TQFP package. The micro has the following standard features:
512kB Program Flash Memory 52kB RAM 4 Channel UART 2 Channel SPI 83 General Purpose I/O pins 6.4.2 Clock The microcontroller is clocked externally from the signal SYS_CLOCK from the RFID transceiver. 8 6.4.3 Debug/Personality Module Support The reader board can be programmed and/or debugged from a Microchip ICD 3 module via J15. The connector is also compatible with Manitowocs personality module for applications that desire external flash memory. 6.4.4 Reset The reader board can reset by momentarily grounding (~100ms) J15-1 pin. This will cause the entire board to reset and restart the initialization routine. 6.5 Communication Peripherals 6.5.1 MODBUS Interface The reader board translates UART signals from the microcontroller to RS-485 levels using ST485EBDR transceivers. Both a peripheral bus (P-BUS) and a communication bus (C-BUS) are provided. Both buses are terminated using the Manitowoc scheme shown in Appendix A, filtered and routed to J14. 6.5.2 SPI Interface The reader board utilizes SPI protocol (and is so configured) for communications from the microcontroller and the RFID transceiver. The signals RFID_CS, MISO, MOSI, and SPI_CLOCK are used. The SPI bus runs at 2MHz. The reader board also has the capability to communicate to a PM via the same SPI bus using the PM_CS signal on the J15 connector. 6.6 RFID Transceiver The reader board utilizes TIs TRF7970A multiprotocol 13.56MHz RFID and NFC transceiver IC. It provides a built-in data framing engine for several protocols including ISO15693, ISO18000-3, ISO14443A/B, and FeliCa as well as the integrated analog front end. It is also configured for single-ended output (signal ground referenced) which facilitates multiplexing applications. The power supply for the transceiver can be run from 5V2 or 3V3 voltage rail by populating either R1(5V2) OR R2(3V3) zero ohm resistor. The transceiver runs from a 13.56MHz crystal, which in turn supplies SYS_CLOCK to the microcontroller at 13.56MHz, 6.78MHz, or 3.39MHz depending on software configuration. An impedance-matching circuit from the 4 Ohm (TX output) to 50 Ohm impedance designed for 50 Ohm tuned antennas and cabling systems is provided on board and is shown below:
The transceiver is enabled via RFID_EN (active-high) from the microcontroller. Anytime a new tag is detected the transceiver will drive the RFID_IRQ low and hold it until the package is read by the microcontroller. The signals RFID_ASK and RFID_MOD are provided to microprocessor for applications that desire to use the RFID transceiver in DIRECT_MODE. Although most applications will want to take advantage of the data format engine included in the chip. 9 6.7 RF Analog Multiplexor The reader board switches the main RF channel to any one of the 12 available RF ports using Peregrine 4 SP4T PE42440 RF switches. This part feature ESD protection as well low series resistance and insertion loss at the 13.56MHz carrier frequency. The RF switches are the reflective type as absorptive are not required for this application. The active channel is selected by the microcontroller per the following table:
Zone Conn MUX_SEL0 MUX_SEL1 MUX_SEL2 MUX_SEL3 1 2 3 4 5 6 7 8 9 10 11 12 J3 J9 J10 J4 J5 J11 J12 J6 J1 J7 J8 J2 1 1 0 0 1 1 0 0 1 1 0 0 0 1 1 0 0 1 1 0 0 1 1 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 0 0 0 0 6.8 Inductive Antenna Tuner Each zone provides footprints to allow tuning for a wide range of custom antennas at each RF port. The technique of tuning a particular antenna goes beyond this specification; however the goal of the tuning circuit is to convert the inherent impedance of the antenna loop (@13.56MHz) to match the 50 Ohm impedance of the RFID transceiver circuit. For example the VHC (Visual Holding Cabinet) RFID antenna measures 1.5uH@13.56MHz using a network analyzer. To convert the impedance to 50Ohm, a 68pF series capacitor along with a 12pF parallel capacitor was used to allow the antenna to resonate at 13.56MHz. This results in a matched antenna with a read range of ~5 inches in air (no conductive metal near). 7. Software Description 7.1 Bootloader Support The bootloader program is programmed in the auxiliary program flash memory and the microcontroller is configured to reset to auxiliary flash reset location. The application is programmed to user program flash memory and the bootloader is used to write application updates to user program flash memory in the field without using MCU programmer devices. The bootloader is using the peripheral bus (P-BUS) to receive firmware update packets. On power-up the bootloader checks if the user program memory has a valid application by calculating and comparing the application CRC16 value. If a valid application is detected then the bootloader will jump to user program memory and start the main application. If the user program memory application is not valid then the bootloader will not start the main application and wait for receiving firmware update packets from the master device. 10 To start the bootloader application the master device command the RFID reader board to switch to bootloader program using modbus interface (P-BUS). When the firmware update is done, the master device commands the RFID reader board to start execution of the main application. Each frame has address, function code, packet data and CRC16. The function codes of boot loader are as follow:
#define MODBUS_CMD_START_APP 0x55 /* exit boot loader and start main application */
#define MODBUS_CMD_START_BOOT 0x56 /* exit main application and start boot loader */
#define MODBUS_CMD_WRITE_FLASH 0x57 /* write firmware data to flash memory */
#define MODBUS_CMD_READ_OK 0x58 /* response from slave board when command is ok */
For the write flash command, the first 4 bytes are the address (in little-endian format) in flash memory and the next 128 bytes are the data to write (128 bytes = 32 program memory words). For the other commands the packet data is not used and should filled with 0's. 7.2 Microcontroller Configuration The microcontroller is configured to reset to auxiliary flash program memory where the bootloader is programmed to auxiliary flash memory. The oscillator is configured to use external clock source where the microcontroller is clocked externally from the signal SYS_CLOCK from the RFID transceiver. The PLL is enabled and configured to provide 120 MHz Fosc. The CPU clock (instruction execution speed) is 60 MHz. The watchdog timer is always enabled (by hardware) and the post-scale and pre-scale are configured so that the WDT period is 4.096 second. The microcontroller In-Circuit Serial Programming is configured to communicate on PGEC1 and PGED1. The JTAG is disabled. 7.3 RFID Transceiver Configuration The RFID transceiver is configured to provide 3.39 MHz system clock for MCU. The modulation Type and depth is set to OOK (100%). The RFID Transceiver regulators configuration is set automatic setting - VDD_RF = 4.9 V, VDD_A = 3.4 V, VDD_X = 3.4 V. The RFID is configured to operate in 5V VIN voltage range and to operate in RFID mode. The RFID is configured to use ISO15693 protocol. In RFID Reader software, the RFID transceiver is controlled by ReaderController active object. The software is reading the first 2 blocks in user data area from the RFID tag using ISO15693 READ SINGLE BLOCK command. 7.4 RFID Zone Scanning The RFID zone scanning is done by selecting the analog input to read by controlling the output status of MUX_SEL0 to MUX_SEL3 signals and then trigger the ReaderController to start read the tag on the selected channel. The RFID zone scanning is controlled by SystemController active object. The system controller reads channels sequentially and each channel is read twice, the first time block 0 is read and the second time block 1 is read from user data memory in the RFID tag. 11 When a read is completed successfully, SystemController update the modbus registers with the read value. If no tag is detected then the channel data is set to 0's. 7.5 Communication Bus Drivers 7.5.1 MODBUS Interface The UART4 module is configured to be used for modbus communication on the P-BUS. The UART4 is configured to run at 115200 baud rate, no parity and one stop bit. The driver is developed to be interrupt driven and non-blocking functions to be suitable for use with the QP frame work. Timer module is also imported from the same project where this timer module is required for the UART driver operations. The RFID reader board is a slave modbus device. The modbus interface is implemented in QpModbusServer active object. 7.5.2 SPI Interface The SPI port is used for communication with the RFID transceiver chip. The SPI driver is used and accessed by ReaderController active object to read and write to the RFID transceiver chip. The SPI port is configured to run at 2MHz, 8 bit data, SPI clock mode is set to mode 0 (Serial output data changes on transition from idle clock state to active clock state and Idle state for clock is a low level; active state is a high level) and Input data is sampled at end of data output time. The SPI driver is developed to be interrupt driven and non-blocking functions to be suitable for use with the QP frame work. 12 8. Specifications (Typical) Protocol Interface ISO15693 Modbus RS-485 115kbit@8N1 RF Output Power (13.56MHz) 100mW@3.3VDC or 200mW@5VDC Input Power Operating/Storage Temp 9. Appendix A 12VDC and 5VDC 0 to 70C (10 to 95% Relative Humidity non-condensing) RS-485 MODBUS Termination Scheme Figure 2: ETC CCA MODBUS termination Figure 3: ETC EIA/TIA-485 C/P-Bus 2x2W Modbus 8P8C Plug Pin Name EIA/TIA-485 Description 1 2 CDA CDB A/A'
B/B'
C-Bus Data (+) C-Bus Data (-) 13 10k10k1kA (+)5VDCB (-) 3 4 5 6 7 8 VDC PDB PDA GND 12VDC GND
--
B/B'
A/A'
C
--
--
+5 VDC P-Bus Data (-) P-Bus Data (+) Signal and Supply Common Auxiliary Power Auxiliary Power Common 10. Appendix B (RF Reader Assembly Rev 2) 14