DATASHEET SEARCH SITE | WWW.ALLDATASHEET.COM
Document overview
- Manufacturer or author: Provided By ALLDATASHEET.COM(FREE DATASHEET DOWNLOAD SITE)
- PDF pages: 14
Technical content
Rev 1.1 4/11 Copyright © 2011 by Sili con Laboratories Si4010-Keyfob-AES-DEMO Si4010-Keyfob-AES-DEMO Si4010 K EY F OB D EMO K IT WITH AES C APABILITY USER ’S G UIDE 1. Purpose Thank you for your interest in Silic on Laboratories’ Si4010 SoC RF key fob demo kit with AES capability. The Silicon Laboratories Si 4010 key fob demo kit with AES capability cont ains everything you need to familiarize yourself with and evaluate the Si4010 RF SoC. The kit has two versions, one for the 434 MHz band and one for the 868 MHz band. The key features of the development platform are as follows: The key fob demo board has five push buttons and one LED output, a PCB antenna, and a battery in a plastic case. The key fob uses hardware-accelerated 128-bit advanced encryption standard (AES) encryption and rolling counter for RKE application. The receiver demo board has a graphic LCD to display received key fob commands. The provided software pack contains all the documentation and files needed to develop a user application. The kit supports the use of Silicon Laboratories’ Integrated Development Environment (IDE) for software debugging and the use of the Keil C compiler, assembler, and linker toolchain. Contains demo applications using API functions and the key fob demo application. 2. Kit Contents The kit contains the following items: Qty Part Number Description 4010-DAAKF_434 Si4010 Key Fob Demo Kit with AES Capability 434 MHz 1 4010-DAPB_434 Si4010 Univ ersal Key Fob 434 MHz 1 4313-DACB_ANY Si4313 LCD FSK/OOK Receiver any band
1 MSC-AT50-434 434 MHz Antenna
1 MSC-PLPB_1 Key Fob Plastic Case (translucent grey)
1 CRD2032 CR2032 3 V coin battery
1 MSC-DKSW1 Wireless Development Suite disc
4010-DAAKF_868 Si4010 Key Fob Demo Kit with AES Capability 868 MHz 1 4010-DAPB_868 Si4010 Univ ersal Key Fob 868 MHz 1 4313-DACB_ANY Si4313 LCD FSK/OOK Receiver any band
1 MSC-AT50-868 868 MHz Antenna
1 MSC-PLPB_2 Key Fob Plastic Case (translucent red)
- Key Fob Demo with AES Capability
to be associated to the receiver by pressing the left and right buttons simultaneously on the key fob). AES-128. Other fields of the packet are not affected by the encryption. stored in the MTP memory of the Si4010. fewer than four key fobs associated to the receiver). second, the receiver disassociates all key fobs. Table 1. General EZMacPRO Extended Packet Configuration Used by Demo Key Fobs Table 2. The MAC Payload Field of the “Associate Request from TX only Device” Packet
transmits a key fob data packet showing the button number in the button field. by AES-128. Other fields of the packet are not affected by the encryption. given button is pressed. If the bit is cleared, the button is released. represents 0.1 °C. If the temperature function is not implemented in the key fob, this field is set to 0xFFFF. LBD Available Bit—If set, the LBD status bit shows th e actual status of the battery. the threshold). The LBD limit is configurable in the key fob program. Battery Voltage Available—If set, the battery voltage information is available. corresponds to 50 mV. However, 0 represents 1.7 V. stored in the MTP memory of the Si4010. configurable window value (default value is 10), the master increments the copy. Table 3. The MAC Payload Field of the “Key Fob Data” Packet
Figure 3. SRW AES128 Applications Key Hierarchy keys are calculated at their first use. calculated at each power up. transmitted in FSK modulation for the Si4313 receiver bo ard (part of this kit), and then also in OOK modulation. The next step is to increment the sync counter stored in the MTP memory. If there is no valid button push detected for 3.2 s, the program shuts down the chip.
Figure 4. Key Fob Firmware Flowchart
Rev 1.1 7 3.6. Receiver Board Firmware Description The Si4313 RX board receives the packets from the Si40 10 key fob, and, by the packet headers, it decides what kind of packet was received. Two packet types can be re ceived: association packets or button press packets. The Si4313 RX board has two operation modes: Association mode and Button press mode. A key fob can only associate when the Si4313 RX board is in Association mode . If the Si4313 is in Button press mode, then the association packet will be discarded . During the first power up, the Si4313 RX board goes into Association mode, and, after every key fob association, the firmware goes into Button press mode. The board can go back to Association mode if the PB button is pressed. After an Si4010 key fob associates to the Si4313 RX board, the RX board can receive the button press packets. At every packet reception, the firmware updates the LCD and sends an indication message to the PC via the UART interfac e. The LCD displays the associated key fob serial numbers and the number of the last button pressed on the key fo b. However, the firmware stores more information about each associated key fob, such as AES keys, temperature, battery level, etc. Figure 5 shows a flow chart of the receiver board firmware.
Figure 5. Basic Program Structure Block Diagram (1 of 2)
Figure 6. Basic Program Structure Block Diagram (2 of 2)
10 Rev 1.1 4. Demo Quick Start Guide 1. The first step is to insert the CR 2032 battery into the key fob demo board and then place the board with the battery into the plastic key fob case. Pushing any key will flash the LED on the key fob. 2. Connect the antenna into the SMA connector of the 4313-DACB_ANY receiver board. 3. Power up the Si4313 Receiver board by connecting it to the PC's USB port or by inserting batteries (3xAA) at the back side of the board. 4. Switch the “S1” power supply switch to the proper position. If the board is supplied from the USB port, switch to the “USB” state, or, if the board is supplied from the batteries, switch to the “Bat.” state. 5. After switching on the boar d, the LCD shows the Silicon Laboratories logo and the firmware version information. The demo shows this information three times during the startup. This startup process can be skipped if any of the PB1–PB3 button is pressed on the board. 6. On the next screen set the desired receive frequency using PB1 (+) and PB2 (–) buttons. Then step to the next screen by pushing the PB3 (GO) button. 7. Wait until the following screen appears. 8. Pair the key fob with the Receiver board by pressing the LEFT and the RIGHT buttons together on the key fob. If the key fob can be associated to the receiver board, then the serial number of the key fob appears on the display. Note: Only four key fobs can be associated at the same time to the receiver board. The PB3 button on the receiver board has to be pressed shortly before every key fob association. 9. When the key fob is associ ated to the RKE receiver board, press any button on the key fob. The LCD screen shows the number of the depressed button.
Rev 1.1 11 10.If the PB3 button is pressed for longer than 2 s and then released, the RKE receiver board disassociates all associated key fobs. If you want to use the key fob again then it is required to be paired again. Refer to Step 7 for instructions on how to perform the pairing. In this case, the key fobs should associate again. The code used in the transmitter of this key fob demo application can be found in the documentation kit in the \\Si4010 projects\\rke_demo folder.
12 Rev 1.1 5. Software Installation The provided software pack contains all the documentation and files needed to develop a user application. It also contains example applications using API functions and the key fob demo application. The directory structure of the software examples is as follows: +--Si4010_projects | +--aes_demo | | +--bin .. Keil uVision and SiLabs IDE files | | +--out .. output directory for Keil toolchain | | +--src .. aes_demo source code | +--common | | +--lib .. Si4010 additional API functions library | | +--src .. Si4010 required files | +--fcast_demo .. frequency casting (tuning) demo | | +--bin | | +--out | | +--src | +--fstep_demo .. frequency two step tuning demo | | +--bin | | +--out | | +--src | +--tone_demo .. continuous wave (tone) demo | | +--bin | | +--out | | +--src | +--keyfob_demo .. simple keyfob demo | | +--bin | | +--out | | +--src | +--rke_demo .. advanced keyfob demo with AES | | +--bin | | +--out | | +--src Copy the directory structure in a directory of your ch oice. It is recommended to keep the structure of the Si4010_projects folder to allow the compiler to find the Si4010 common files. Each project has a *.wsp project file in the bin folder that contains all the settings of the ID E for the project, including the relative path of the common files.
Rev 1.1 13 6. SiLabs IDE Run Download the SiLabs IDE (Integrated Development Environment) from http://www.silabs.com/products/mcu/Pages/SiliconLaboratoriesIDE.aspx and install it on your computer. To run the Silicon Labs IDE, open the *.wsp project file. 7. Keil Toolchain Integration The project files in examples assume that the Keil toolchain is installed to C:\\Keil directory. The location of the Keil toolchain can be easily changed in the Silabs IDE in the Project—Tool Chain Integration menu. An evaluation version of the Keil toolchain can be downloaded from the Keil web site, http://www.keil.com/. This free version has 2 kB code limitation and starts the code at 0x0800 addr ess. The Keil free evaluation version can be unlocked to become a 4k version with no code placement limitation by following the directions given in application note “AN104: Integrating Keil 8051 Tools into the Silicon Labs IDE”, which covers Keil toolchain inte gration and license management. Unlock code can be found on the WDS CDROM in the root folder in the Keil_license_number.txt file. Contact your Silicon Laboratories sales representative or distributor for application assistance. For the complete de velopment platform containing debug adap ter and development boards, see Silicon Laboratories’ Key Fob Development Kit (P/N 4010-DKKF_434 or 4010-DKKF_868).
14 Rev 1.1 CONTACT INFORMATION Silicon Laboratories Inc.
400 West Cesar Chavez
Austin, TX 78701 Tel: 1+(512) 416-8500 Fax: 1+(512) 416-9669 Toll Free: 1+(877) 444-3032 Please visit the Silicon Labs Technical Support web page: https://www.silabs.com/support/pages/contacttechnicalsupport.aspx and register to submit a technical support request. Silicon Laboratories and Silicon Labs are trademarks of Silicon Laboratories Inc. Other products or brandnames mentioned herein are trademarks or registered trademarks of their respective holders The information in this document is believed to be accurate in all respects at the time of publication but is subject to change without notice. Silicon Laboratories assumes no responsibility for errors and omissions, and disclaims responsibility for any consequences resulting from the use of information included herein. Additionally, Silicon Laboratories assumes no responsibility for the function- ing of undescribed features or parameters. Silicon Laboratories reserves the right to make changes without further notice. Silicon Laboratories makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does Silicon Laboratories assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation consequential or incidental damages. Silicon Laboratories products are not designed, intended, or authorized for use in applications intended to support or sustain life, or for any other application in which the failure of the Silicon Laboratories product could create a situation where personal injury or death may occur. Should Buyer purchase or use Silicon Laboratories products for any such unintended or unauthorized application, Buyer shall indemnify and hold Silicon Laboratories harmless against all claims and damages.