Devkit_ctrl UnicodeDecodeError?

Hi,

Since moving to the latest CERN-IPMC devkit, I get this error while trying to use:

 $ devkit_ctrl -a get_atca_blueled
Traceback (most recent call last):
  File "/ipmc/ipmc-tester/ipmc-tester/DevKITControl.py", line 508, in <module>
    IPMCDevObject = IPMCDevCom.IPMCDevCom()
  File "/home/pi/.local/lib/python3.9/site-packages/IPMCDevLib/IPMCDevCom.py", line 21, in __init__
    if 'IPMCTP_CTRLER' in hello.decode():
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfe in position 0: invalid start byte

How can I get a patch and update the CERN stack please ?

Best regards,
Sylvain L.
LAPP

Hello Sylvain,

what parts of the software did you update on the tester?

cheers,

Stefan

I updated nothing yet.

Hello,

so was it working before or is it the first time you use the tester?

cheers,

Stefan

Hello,

No its the very first run on the new devkit.

Hello Sylvain,

What is the python version that is being used? Should be 3.9.2. It’s possible that the software for the Raspberry pi on your tester is not up-to-date. Can you please try the following:

git clone https://gitlab.cern.ch/ep-ese-be-xtca/ipmc-devkit.git
cd ipmc-devkit
python setup.py install --user

Let me know if this helps.

cheers,

Stefan

Hello Stefan,

I had another FTDI device connected on the Pie that seems to cause part of the problem.
Once disconnected, it still fails on the first try (after a fresh reboot), but afterward it works back…

Best reagards,
Sylvain L.