Skip to main content
Visitor II
October 1, 2021
Solved

ST25RU3993 Device Mode

  • October 1, 2021
  • 3 replies
  • 889 views

Hi,

Can we use ST25RU3993 Eval kit in Device mode directly(instead of Host driven), without using the GUI application.

Need to use it directly without using GUI Application for making configuration for detecting the TAGs.

Please let me know if such setting are present or not in the available firmware SDK or any change are required to make it working.

All the supports are highly appreciated.

Thanks

SS

    This topic has been closed for replies.
    Best answer by Nick K

    Hello,

    when using the device mode the FW must be compiled with the STUHFL_DEVICE_MODE define set to 1. Either in the project settings or direct in the code. 

    Optional the STUHFL_HOST_COMMUNICATION=1 settings must be removed if no host communication is needed.

    Code stubs for the usage of the define mode can then found in main.c as starting point for the development.

    The code is surrounded with the preprocessor statement #if STUHFL_DEVICE_MODE .. #endif in main.c

    Independent of the mode (device or host) the implementation gets notified when TAGs are available with the same callback 

    static STUHFL_T_RET_CODE cbInventoryCycle(STUHFL_T_InventoryData *cycleData) 

    The cycleData pointer has some statistic information and provides a list of recent found TAGs.

    Howto access this information can be found in the host mode demo code STUHFL_demo.

    In general the usage of the STUHFL API is independent of the mode, but a simple print TAGs info to screen is not possible in device mode, only the callback stub is implemented.

    BR

    Nick

    3 replies

    Visitor II
    October 11, 2021

    Dear SSing.10,

    a device mode is possible.

    Please check our latest documentation of the SDK which describes this use case.

    Cheers,

    B

    SSing.10Author
    Visitor II
    October 27, 2021

    Hi Bart Herse,

    I gone through the document but could not find actual configuration need to be done for the device mode configuration.

    And even there is no further steps available to store the detected tags, if tags detects in device mode configurations.

    I kindly request to share steps for the same.

    Thanks & Regards

    SS

    Nick KAnswer
    ST Employee
    November 10, 2021

    Hello,

    when using the device mode the FW must be compiled with the STUHFL_DEVICE_MODE define set to 1. Either in the project settings or direct in the code. 

    Optional the STUHFL_HOST_COMMUNICATION=1 settings must be removed if no host communication is needed.

    Code stubs for the usage of the define mode can then found in main.c as starting point for the development.

    The code is surrounded with the preprocessor statement #if STUHFL_DEVICE_MODE .. #endif in main.c

    Independent of the mode (device or host) the implementation gets notified when TAGs are available with the same callback 

    static STUHFL_T_RET_CODE cbInventoryCycle(STUHFL_T_InventoryData *cycleData) 

    The cycleData pointer has some statistic information and provides a list of recent found TAGs.

    Howto access this information can be found in the host mode demo code STUHFL_demo.

    In general the usage of the STUHFL API is independent of the mode, but a simple print TAGs info to screen is not possible in device mode, only the callback stub is implemented.

    BR

    Nick