Skip to main content
Explorer II
August 18, 2024
Solved

Adding STEVAL-SMARTAG2 to ST Asset tracking

  • August 18, 2024
  • 1 reply
  • 2055 views

When I try to add the STEVAL-SMARTAG2 as a device to the ST Asset Tracker app, nothing happens. It detects the NFC, yet no ID is registered. Must I activate the NFC before?

Edit: I tried the steps (see below) in the manual to enable the UART by removing the "//", but I get no info/data in the Tera Term application after I press reset on the Smarttag2. What am I doing wrong? 

 

Aristotles_0-1724058499707.png

Aristotles_0-1724058644432.png

 

    This topic has been closed for replies.
    Best answer by Salvatore Curti

    Hello,

    I read the messages and for me there is a bit confusion.

    The package FP-SNS-SMARTAG2 is composed of 3 examples and 1 application:

    Examples:

    • OneShot: reads in energy harvesting mode the ambient light and environmental sensor data on your IoT node by the means of an NFC enabled reader, such as a mobile phone or tablet, through a suitable AndroidST or iOST application such as the ST NFC Sensor (for only STEVAL-SMARTAG2B)
    • SimpleBootLoader: apply the firmware updated replacing the current running firmware with the new version received via NFC or runs the current firmware if the new version is not available.
    • SmarTag2: reads the ambient light, motion and environmental sensor data on your IoT node by the means of an NFC enabled reader, such as a mobile phone or tablet, through a suitable AndroidST or iOST application such as the ST Asset Tracking.

     

    Applications:

    • FirmwareUpdate: it saves the new firwmare received via NFC using the ST FTM protocol and saves it on the right flash region and works with the SimpleBootLoader example for enabling the Firmware Update capability.

    Each example can be used for the topic that is dedicated only.

    For the FirmwareUpdate, download the binary "FirmwareUpdate_BL.bin" in your STEVAL-SMARTAG2 board and using the binary "FirmwareUpdate.bin" to test the update firmware via NFC.
    See the page 11,12,13, 16, 23 and 24 in the https://www.st.com/resource/en/product_presentation/fp-sns-smartag2-quick-start-guide.pdf.

    NOTE: The "FirmwareUpdate" source code is ONLY simple application to show how to firmware update can be done via NFC.
    In the pack ONLY "FirmwareUpdate" can be used for that.

    You can use the source code of the "FirmwareUpdate" to write your application that support the the updated via NFC.

    Regards,
    Salvatore Curti.

    1 reply

    Technical Moderator
    August 28, 2024

    Hi,

    To communicate and register the STEVAL-SMARTAG2 on ST Asset Tracking App, the NFC on mobile phone must be activated.

    See the Quick Start Guide to enable/disable the UART logging functionality. Make sure that the sources are recompiled after uncommenting SMARTAG2_ENABLE_PRINTF define (i.e. make sure Firmware_conf.h has been saved to the disk before compiling). Check the USB cable and the serial port setting (115200,8,N,1). 

    Rgds

    BT

    Explorer II
    August 29, 2024

    Thanks for your reply and the link to the guide! I was able to perform Step 1 and flash the pre-compiled binary and thereafter able to add the Smartag2 via NFC in the ST Asset App. But in Step 2 I did not have any further success as I still have issue with showing any text in Tera Term when pressing Reset on the Smartag2. The port setting is correct, I have uncommented the SMARTAG2_ENABLE_PRINTF define text and saved. Does the FP-SNS-SMARTAG2 folder have to be in a specific place? 

     

    Aristotles_0-1724941268819.png

     

    Technical Moderator
    August 30, 2024

    Hi,

    I apologize by advance if my question is naive: have you recompiled the firmware and then downloaded it to the board after uncommenting SMARTAG2_ENABLE_PRINTF? Have you followed the instruction from "How Install the code after compiling the project" (slide 12 of the Quick Start Guide)

    Rgds

    BT