Skip to main content
TNgo.1
Associate II
February 12, 2021
Solved

Python support for UHF RFID ST25RU3993-HPEV

  • February 12, 2021
  • 13 replies
  • 3735 views

Currently I am working on a project that uses the UHF RFID evaluation board ST25RU3993-HPEV, which is controlled by STM32L476RG.

For my project, I want to use Raspberry Pi to communicate with the evaluation board, so the use of Python is required. However, the Python code, according to ST, is still under development.

So I am wondering how I can approach this or if anyone has worked on this before? Appreciate all your kind support.

This topic has been closed for replies.
Best answer by Cedric Dalban

Hello TNgo,

Good news !!!

The release v3.0.0 providing among other features the C#, Python and Java wrappers has been released on st.com:

The README.htm provided with the release lists all documentation related to this release among which FW & wrappers details, Native & wrapper demos description, API changes between 2.3.0 & 3.0.0 summary ...

Enjoy,

best regards,

Cedric

13 replies

Cedric Dalban
ST Employee
May 6, 2021

hello Vmai,

at first sight your setup seems to be ok.

It is anyway recommended to add a power supply connected to the HPEV board.

At least your setup should reply with correct Board SW & HW versions.

2 points:

  • did you try to run the Linux demo that is provided with our release ?
  • could you please share the syslog traces your linux system generates while establishing connection between Raspberry and board ?

regards,

Cedric.

Cedric Dalban
ST Employee
May 6, 2021

Hello Vmai,

I confirm that:

  • setting the appropriate path to libSTUHFL.so in libPath while calling loadLibrary()
  • replacing '\' with '/' in all paths
  • replacing comPort='COM{}' with comPort='/dev/ttyUSB{}' (file: STUHFL_demo.py, line: 57)

allows the connection between library and board to establish.

With these 3 listed modifications, the Python wrapper demo runs and completes correctly in Linux environment.

For the time being, the Python & java wrappers provided with release 3.0.0 have only been tested on Windows, the next release will ensure at least these 2 wrappers are correctly handled on Linux.

best regards,

Cedric.

Vmai.1
Associate
May 7, 2021

Hi @Cedric Dalban​ 

Thanks for your support.

Following your instruction, the python code is able to execute on my raspi without error.

you can see the log here : https://drive.google.com/file/d/188APc4586qijd9rovGrYNphe1QyF9oSZ/view?usp=sharing

thanks

Viet

AHeit.1
Associate
July 27, 2021

@Cedric Dalban​ 

I am getting this error

  1. ***************************** CAUTION *****************************************
  2. Cannot open STUHFL DLL:
  3. {}
  4.  
  5. Please ensure STUHFL DLL has been generated before using STUHFL Python wrapper
  6. *******************************************************************************

when I try to run the python wrapper. I have rebuilt the STUHFL.dll several times in VS2019, and have copied it and added it to many paths in my pycharm IDE. I am running SDK 3.0.0.0

Can you provide feedback?

Thanks