Home

EVAL-ST95HF firmware functionalities

image

Contents

1. The ScreenRotated2 works like the ScreenRotated parameter but this time it is for the client s rotate button 3 6 3 Prop P2P Data transfer Description This application demonstrates how to send commands through the peer to peer communication When the initialization step is done and communication is established one board is set as server and the other as client the message CommunicationOnGoing is displayed on both screens see Figure 15 Figure 15 Example of P2P communication Communi cat i onOnGoi na Cmd ID 05 Tx Burst 10 Rx Burst 05 Then user can start sending commands by pressing each directional key of both server and client Commands details is described below 2 20 23 DoclDO26602 Rev 2 UM1795 Firmware description 2 Commands sent by the Server Up key Server sends the burst config to the Client the Client displays the number of bursts 10 bursts and the quantity of data by burst 56 bytes on screen Down key Server sends the command to toggle the Client led 5 Right key Server sends 10 Bursts the Client displays the number of received Bursts on screen Commands sent by the Client Up key Client sends command ID 05 start stop camera a message CAM STARTED is displayed on the Server screen Down key Client sends 10 Tx Burst and displays the number of transmitted Bursts on screen Right key Client sends command ID 08 simulate FW upload Server displays FIRMW
2. Cr UM1795 Ts life augmented User manual EVAL ST95HF firmware functionalities July 2015 Introduction This document describes the firmware functionalities of the EVAL ST95HF board STSW ST95HF001 It has the goal of helping the user to understand how this firmware works by describing the main functionalities with simple examples The ST95HF is an RFID transceiver It supports ISO IEC 14443A ISO IEC 14443B ISO IEC 15693 and ISO IEC 18092 in reader mode PCD It also supports ISO IEC 14443A in card emulation mode PICC The MCU of the EVAL ST95HF is the STM32F103 The ST95HF together with the microcontroller emulates a PCD or a PICC The MCU communicates with the ST95HF by SPI bus The application is divided in three parts one for PCD functions read or write tags one for PICC functions tag emulation file transfer and one for peer to peer functions The application has the capability to read and write TT1 TT2 TT3 TT4A TT4B and vicinity card It can also emulate TT2 and TT4A tags for the storage of NDEF messages DoclDO26602 Rev 2 1 23 www st com Contents UM1795 Contents 1 Acronyms and notational conventions ooooooooooooo 5 1 1 o MO EE OE IE N DEE N 5 1 2 Representation of numbers 5 2 OVEIVIEW siese a pe chee dee SEN successes nase cS oo es hase AE 6 2 1 ST95HF overview llle es 6 2 2 STM32F103 overview llle 6 2 3 EVAL ST95HF board o 7 3 Firmware d
3. front side ei ee ee Ge ee Ge ee ee ee ne 7 EVAL ST95HF board back side ee eee eae 7 MEUM 8 Fagireader Menu is Es AR fen taeda ke EE We aver due eda ea pia ERE 10 Example of tags found ooo 11 Tag Detect wake up ii EE ER EE RE ER ehh hs 12 Reading tags PETERET 13 Board linked tea Plica ca WER uos gen per Se boni rr RR ded 14 Tag writer mode an ss EE EE EE Ee lh hn 15 Emulator Mode 2er EE EE EE RE a 16 dd d oet mars EO OE OE dene OR N EE OG 17 P2P mode void EE EE E EE EE N OE EA OR OE EDE 18 Tennis game Eun 19 Example of P2P communication es 0000 SS Ee ee ee ee ee ee ee 20 d DoclD026602 Rev 2 UM1795 Acronyms and notational conventions 1 1 1 2 2 Acronyms and notational conventions Acronyms e APB Advanced Peripheral Bus e AAR Android Application record e CAN Controller Area Network e GPS Global Positioning System e EC International Electrotechnical Commission e C Inter Integrated Circuit e SO International Organization for Standardization e MCU Micro Controller Unit e NFC Near Field Communication e RF Radio Frequency e RFID Radio Frequency Identification e RISC Reduced Instruction Set Computer e SPI Serial Peripheral Interface e USB Universal Serial Bus Representation of numbers The following conventions and notations apply in this document unless otherwise stated Binary numbers Binary numbers are represented by strings of digit
4. ARE UPGRADE on screen Left key Client sends command ID 07 simulate wifi pairing Server displays WIFI PAIRING DONE on screen DoclDO26602 Rev 2 21 23 Revision history UM1795 4 22 23 Revision history Table 2 Document revision history Date Revision Changes 25 Jun 2014 1 Initial release Updated Table 1 Supported operation modes and functionalities Figure 5 Tag reader menu and Figure 13 P2P mode 20 Jul 2015 2 Updated Section 3 2 Tag reader Section 3 6 Proprietary Peer to Peer Section 3 6 1 Initialization and Section 3 6 2 Prop P2P Pong Added Section 3 2 2 Tag Detect wake up Section 3 6 3 Prop P2P Data transfer and Figure 15 Example of P2P communication 2 DoclDO26602 Rev 2 UM1795 IMPORTANT NOTICE PLEASE READ CAREFULLY STMicroelectronics NV and its subsidiaries ST reserve the right to make changes corrections enhancements modifications and improvements to ST products and or to this document at any time without notice Purchasers should obtain the latest relevant information on ST products before placing orders ST products are sold pursuant to ST s terms and conditions of sale in place at the time of order acknowledgement Purchasers are solely responsible for the choice selection and use of ST products and ST assumes no liability for application assistance or the design of Purchasers products No license express or implied to any inte
5. C core operating at a 72 MHz frequency high speed embedded memories Flash memory up to 1 Mbyte and SRAM up to 96 Kbytes and an extensive range of enhanced I Os and peripherals connected to two APB buses All devices offer two 12 bit ADCs three general purpose 16 bit timers plus one PWM timer as well as standard and advanced communication interfaces up to two I2Cs and SPls three USARTs an USB and a CAN These features make the STM32F103xx microcontrollers suitable for a wide range of applications such as motor drives application control medical and handheld equipment PC and gaming peripherals GPS platforms industrial applications PLCs inverters printers scanners alarm systems video intercoms and HVACs 2 DoclDO26602 Rev 2 UM1795 Overview 2 3 EVAL ST95HF board The EVAL ST95HF is a kit which allows to evaluate the ST95HF transceiver performance The EVAL ST95HF is powered through the USB bus and no external power supply is required It includes a ST95HF a 47x34 mm 13 56 MHz simple layer inductive etched antenna and its associated tuning components By default the ST95HF communicates with the STM32F103RG 32 bit MCU via the SPI bus Pictures of the board are shown in Figure 2 and Figure 3 Figure 2 EVAL ST95HF board front side 3 n 5 9 x 0 der 4 3 1 E STA dad use ND TE E ERE 2 GI cres nos TE 3 MB1145 B T4 QA 2 sd eke im A le S
6. er interacts with the board using the USB cable Figure 9 Board linked to a PC PC link mode use PC software ST95HF dev SW to drive ST95HF by USB 14 23 DocIDO26602 Rev 2 Ly UM1795 Firmware description 3 3 Note Note d Tag writer This mode is used to write an NDEF message to a tag the first step here is to select the preformatted message to write The right column corresponds to the size needed to write the message an example is shown in Figure 10 Then the message can be written by putting the tag close to the antenna Error messages can be written to the screen in the following cases e Not enough memory inside the tag the message cannot be written because the tag inside the field is too small e Tag locked the read or write access is not allowed e Transmission error when the tag is removed before the end of write operation a transmission error is returned The same tag cannot be written two times in a row The firmware is able to format vicinity card if the tag does not contain any NDEF data but it will not try to format other tag types Figure 10 Tag writer mode DoclD026602 Rev 2 15 23 Firmware description UM1795 3 4 Note 16 23 Tag emulator In this menu see Figure 11 it s possible to select the kind of tag TT2 or TT4A to be emulated and then default content can be chosen The memory available is 492 bytes for the TT2 and 7998 bytes for
7. escription iss sk ek EE RE RR RR RR RR RR RR RR eee 8 3 1 The main MENU sae RE ote Woe ea we ERR de Ed Rae ba Gd des 8 3 2 TAG reader uio io mars euis Moe QUE EO RED EO RE QU heed a ES a GR a a 10 3 2 1 Tag Hunting 11 3 2 2 Tag Detect wake up EE EE EE EE eh 12 3 2 3 Tag reading is ee Ed SE ER ette Rr a ME BE ER e RC 13 3 2 4 PC link mode is fiat dhe bead td aed 14 3 3 TEEL PUT Tc EC 15 3 4 Tag emulator ss qoem d kar eK RATS DEER ER EWE RE SE KERK RC RR 16 3 5 Card Emulator i vs 2rd ESSE ER o a ER RC AC c ec 17 3 5 1 Filetransfer osos EER edie We Rex y RU EROR ER AUR ARR RR e 17 3 6 Proprietary Peer to Peer ii EE ER se RE eee 17 3 6 1 initialization ves ee EA aca eS RA ere he Sak dd RE RR ey 17 3 6 2 Prop P2P Pong ie EE eee 19 3 6 3 Prop P2P Data transfer naana EE EE Ee Se ees 20 4 REVISION hiStOry sist cede tai dd DE Ee BEE DE Red ee 22 2 23 DoclD026602 Rev 2 Ky UM1795 List of tables List of tables Table 1 Supported operation modes and functionalities SS SS SS EE EES ee 9 Table 2 Document revision history ie EE EE eee eee 22 DoclDO26602 Rev 2 3 23 d List of figures UM1795 List of figures Figure 1 Figure 2 Figure 3 Figure 4 Figure 5 Figure 6 Figure 7 Figure 8 Figure 9 Figure 10 Figure 11 Figure 12 Figure 13 Figure 14 Figure 15 4 23 Functional block diagram ii RR RE ER ee rears Ra xe hm ae ee 6 EVAL ST95HF board
8. ill be calculated in order to check if the file is not corrupted The elapsed time is written and the total size of the file sent Doing this we can evaluate the speed to transfer a file using ST95HF The result can change between two tries even with the same file and same smartphone as smartphone data bandwidth is unpredictable multi task OS The application on the EVAL ST95HF will not try to interpret the data sent Proprietary Peer to Peer This is a proprietary peer to peer demonstration between two EVAL ST95HF boards It uses NFC DEP functions for the Pong demo and ISO DEP functions for the Prop P2P demo but all data transferred are formatted using a proprietary way Initialization When the menu Peer to Peer is selected a choice between four different initializations is proposed see Figure 13 Prop P2P Pong Config Client This menu is used to force the application to act as the client It will wait infinitely for a server a second EVAL ST95HF board set in Prop P2P server DoclDO26602 Rev 2 17 23 Firmware description UM1795 18 23 Prop P2P Pong Config Server This menu is used to force the application to act as the server It will wait infinitely for a client a second EVAL ST95HF board set in Prop P2P client Prop P2P Client This menu is used to force the application to act as the client It will wait infinitely for a server The server can be a second EVAL ST95HF board set in Prop P2P server This applica
9. is used to wake up the ST95HF component with a tag from the Low power mode An antenna calibration will be processed before to go in idle mode low power mode The wake up of the ST95HF will be done when a tag is close enough to the antenna Figure 7 Tag Detect wake up Tag Detect Wi mode e up due to a etection ect to exit DoclDO26602 Rev 2 d UM1795 Firmware description 3 2 3 Note Note 2 Tag reading This mode is used to read the NDEF content of a tag When a tag is close enough to the antenna its content is decoded and printed on the screen see Figure 8 The reader is able to decode following NDEF messages e Empty e URI e SMS e Email e Geo position e Text e VCARD The message can be formatted inside a smart poster in order to add an additional Text field to the message Errors can be printed if there is a transmission error or an error during the decoding of a message VCARD contains too much information to be printed on the screen so only a message VCARD detected is shown however all the decoding is done inside the program The same tag is not read two times in a row Figure 8 Reading tags DoclDO26602 Rev 2 13 23 Firmware description UM1795 3 2 4 PC link mode This mode allows the EVAL ST95HF to work like the CR95HF board and to be controlled using the CR95HF_Development_Software see Figure 9 The comput
10. llectual property right is granted by ST herein Resale of ST products with provisions different from the information set forth herein shall void any warranty granted by ST for such product ST and the ST logo are trademarks of ST All other product or service names are the property of their respective owners Information in this document supersedes and replaces information previously supplied in any prior versions of this document 2015 STMicroelectronics All rights reserved 2 DoclDO26602 Rev 2 23 23
11. ps Las 82 Lo 2 R22 R27 TUNE R28 Gl 02 R70 ob 1 RES LT Ed RGG DI E RES TT 2 DoclDO26602 Rev 2 7 23 Firmware description UM1795 3 Note 3 1 8 23 Firmware description The ST95HF component can act both as a PCD or as a PICC The main purpose of the firmware is to show all of these available functionalities Accordingly the menu is divided in three parts one for PCD functions one for PICC functions and the last one for Peer to Peer functions In order to test the Peer to Peer mode it is necessary to have two ST95HF boards All the other functions can be tested with an NFC phone a tag or another ST95HF board The main menu The main menu is made up of icons allowing access to different sub menus As can be seen from Figure 4 they are disposed in three lines in order to easily identify the active mode Figure 4 Main menu 2 DoclDO26602 Rev 2 UM1795 Firmware description The main functionalities associated with each operation mode are listed in Table 1 Table 1 Supported operation modes and functionalities Mode PCD PICC P2P Tag reader Tag Hunting Tag Detect wake up Tag Emulator Proprietary Peer to Peer Tag Reading TT2 PP2P Pong Client Functionalities PC link mode TT4A PP2P Pong Server Tag writer Card Emulator PP2P Data transfer IO Remote control Client TEXT File t
12. ransfer PP2P Data transfer IO Remote control Server GEO To select a sub menu user should move the black square on the chosen icon using the joystick and press it to select the item Every sub menu has a return option to go back to the previous menu Any menu or sub menu can be rotated using the rotate button so that it will be possible to use the board in the other direction In this case the joystick too will be adapted buttons reversed It is not possible to rotate the screen when a mode is selected this is feasible only inside a menu 2 DoclDO26602 Rev 2 9 23 Firmware description UM1795 3 2 Tag reader In this menu there are four different modes as can be seen from Figure 5 Figure 5 Tag reader menu Tag Reader Mode LAG Hunting Reading ink mode Return 10 23 DoclD026602 Rev 2 Ly UM1795 Firmware description 3 2 1 Note 2 Tag Hunting This mode is used to list all the found tags when a tag is close enough to the antenna the UID and the tag type is written on the screen see Figure 6 If the same tag is re detected by the tag hunting it will refresh the line this feature can help to check the detection range Figure 6 Example of tags found Tag Hunting mode 00220 201098449 TTS Select to exit DoclDO26602 Rev 2 11 23 Firmware description UM1795 3 2 2 12 23 Tag Detect wake up This mode see Figure 7
13. s 0 and 1 shown with the most significant bit MSB on the left the least significant bit LSB on the right and a Ob added at the beginning Example 0611110101 Hexadecimal numbers Hexadecimal numbers are represented by using the numbers 0 to 9 and the characters A F and adding an 0x at the beginning The Most Significant Byte MSB is shown on the left and the Least Significant Byte LSB on the right Example OxF5 Decimal numbers Decimal numbers are represented as is without any trailing character Example 245 DoclD026602 Rev 2 5 23 Overview UM1795 2 2 1 2 2 6 23 Overview ST95HF overview ST95HF is a transceiver for contactless application It includes frame coding and RF modulation thus allowing the connected MCU to send and receive NFC commands in the supported protocols ST95HF is a slave device hence an host MCU is required to control it The ST95HF is connected to the MCU using an SPI communication The ST95HF is able to act as a PCD or a PICC so it can interact with a tag or with a reader as exemplified in Figure 1 Figure 1 Functional block diagram Smartphone Command to RF reader y STOEHE 05 MCU SPI reader STSSHE J ST95HF response l NFC TAGS MS35641V1 For more details concerning the ST95HF device please refer to its datasheet STM32F103 overview The STM32F103xx incorporates the high performance ARM Cortex M3 32 bit RIS
14. the TT4A These values can be changed inside the source code it s worth noting that some smartphones do not support TT2 sizes over 1024 bytes Figure 11 Emulator mode 114A Emulator Plate SMS Emulate EMAIL Emulate VCARD Previous content Return Once the content is chosen the emulation starts and a PCD e g a smartphone can read the content as if it were a classic tag It is also possible to read the content using another EVAL ST95HF in reader mode User can write content with the smartphone When the emulation exits the content of the tag is written inside the MCU flash allowing it to be restored using the Previous content choice If the board is powered off or reset during the emulation the current content is lost because the content will be written to the flash only when the emulation is stopped DoclD026602 Rev 2 Ly UM1795 Firmware description 3 5 3 5 1 Note Note 3 6 3 6 1 2 Card Emulator File transfer This mode is used to transfer a file from an NFC phone to the EVAL ST95HF board see Figure 12 In order to do that the phone must have the correct application which supports this proprietary transfer When the board is configured in card emulator mode it is seen as a classic TT4A tag containing an AAR to the correct application Figure 12 File transfer The progress bar will be refreshed during the transfer and at the end of the transfer a CRC w
15. the transmission is broken by spacing the two boards it will suspend the game and will restart in the same state when the communication will be reestablished How it works The server manage all the game including moving the ball with bounces on walls or on rackets It works like if the game had a 640x240 screen for the storage of the ball position It also deals with the score calculation The server is continuously sending data to the client containing the following information Score2 Xmsb Xisb Y ScreenRotated The Score2 byte contains the score for the client It is send in order to be printed by the client on its screen The Xmsb and XIsb bytes are used to store the horizontal position of the ball The client will print the ball on its screen only if the coordinate is between 320 and 640 on its part of the global screen The Y byte contains the vertical coordinate of the ball lt is used also in order to print the ball at the good position DoclDO26602 Rev 2 19 23 Firmware description UM1795 The ScreenRotated field is used to know if the server s rotate button has been pressed or not It toggles every time the button is pressed so the other board can know if it has to update its own screen The client answers to this frame by sending back two values Racket 2 Y ScreenRotated2 The Racket 2 Y stores the position of the client s racket In fact the server needs it to compute bounces and to manage scores
16. tion allows to make some Data transfer or remote control such as Data transfer IO control etc Prop P2P Server This menu is used to force the application to act as the server It will wait infinitely for a client A second EVAL ST95HF board set in Prop P2P client This application allows to make some Data transfer or remote control Data transfer lO control etc Figure 13 P2P mode 2 DoclDO26602 Rev 2 UM1795 Firmware description 3 6 2 Prop P2P Pong Description As can be seen from Figure 14 the application is a simple tennis game in order to show the peer to peer communication When the initialization step is done one board is defined as the initiator Green racket and the other as the target Red racket Figure 14 Tennis game 2 The racket can be moved using the up and down buttons of each board The goal is to avoid the ball the white square hitting the border of the screen Every time a point is scored the player s score is increased When the score exceeds 9 it restarts from 0 The score can be displayed at the top or at the bottom of the screen by pressing the rotate button from any board The information is transmitted to the other board using the peer to peer communication The speed of the game can be reduced by pressing the left key of the initiator and increased by pressing the right key by default it is set to the maximum speed If

Download Pdf Manuals

image

Related Search

Related Contents

Design House 791665 Installation Guide  MioMap  Samsung Gear 2 User Manual  Samsung UE32F6100AW Uživatelská přiručka  PLACAS DE FILTRACIÓN - Dolmar Productos Enológicos  SYSTEM USER MANUAL  presidencia municipal  1575k - M  Contrôleur 3000  Joerns Bari 10-A Bed System with Calibre 385  

Copyright © All rights reserved.
Failed to retrieve file