novelda / Legacy-SW

Software which is currently not under active development
18 stars 40 forks source link

wrong ELF class: ELFCLASS32 #4

Open beduffy opened 3 years ago

beduffy commented 3 years ago

I know many of the devices have been discontinued but it would be great to know how to make the pymoduleconnector library work on Jetson Nano. image

root27 commented 3 years ago

Could you hrlp me to find python api for module connector? Because the links that Novelda companu has given are not working.

beduffy commented 3 years ago

All I really had was this code https://github.com/novelda/Legacy-SW/tree/master/ModuleConnector/ModuleConnector-rpi-1/examples

and this code which really really helped me below. I ended up swapping to the SLMX4 from sensorlogic which has a slightly different api. I had to build my own python serial interface to it. https://github.com/XPengZhao/Respiratory-monitoring

root27 commented 3 years ago

Thank you . I have solved the problem

sudo-bcli commented 3 years ago

@beduffy Hi I just ran into the same problem. I think it's because their dynamic library was compiled for older version of Raspbian (armhf 32bit) but nano is arm64 (64bit). Since there's no source code of the Module Connector, we can't rebuild a arm64 library on Nano by ourselves.

There's a thread on Nvidia Forum discussing "How to use arm32 library on arm64". May worth a shot.

BTW I don't think Novelda would provide any support for this product (note: there's literally a villain on their home page(scroll down)), may be Sensor Logic will?


Update Oct 2021

  1. SensorLogic replied they "don't make this radar and don't provide any changes".
  2. Have to switch from Nano to Raspberry Pi
  3. Module Connector (python35-arm-linux-gnueabihf) works on Raspberry Pi 4B with Raspberry OS (Release date: May 7th 2021)
G-Bob commented 2 years ago

@beduffy Hi I just ran into the same problem. I think it's because their dynamic library was compiled for older version of Raspbian (armhf 32bit) but nano is arm64 (64bit). Since there's no source code of the Module Connector, we can't rebuild a arm64 library on Nano by ourselves.

There's a thread on Nvidia Forum discussing "How to use arm32 library on arm64". May worth a shot.

BTW I don't think Novelda would provide any support for this product (note: there's literally a villain on their home page(scroll down)), may be Sensor Logic will?

Update Oct 2021

  1. SensorLogic replied they "don't make this radar and don't provide any changes".
  2. Have to switch from Nano to Raspberry Pi
  3. Module Connector (python35-arm-linux-gnueabihf) works on Raspberry Pi 4B with Raspberry OS (Release date: May 7th 2021)

@sudo-bcli Hi, I tried the specific Raspbian OS image. But still got the error of libboost-dev version mismatch:

ImportError: libboost_filesystem.so.1.62.0: cannot open shared object file: No such file or directory

The system's libboost version is 1.67.0. Meanwhile I cannot find any source of the 1.62.0. Can you share the experience how you connect with Raspberry PI4?

Many thanks.

G-Bob commented 2 years ago

All I really had was this code https://github.com/novelda/Legacy-SW/tree/master/ModuleConnector/ModuleConnector-rpi-1/examples

and this code which really really helped me below. I ended up swapping to the SLMX4 from sensorlogic which has a slightly different api. I had to build my own python serial interface to it. https://github.com/XPengZhao/Respiratory-monitoring

@beduffy Hi, many thanks for your sharing. Do you know if this radar support arm based devices?

beduffy commented 2 years ago

Yep @G-Bob SLMX4 works on our Jetson Nano and Xavier and those are ARM based.

G-Bob commented 2 years ago

Yep @G-Bob SLMX4 works on our Jetson Nano and Xavier and those are ARM based.

Thank you @beduffy, just wonder if there any link for driver based on ARM. Because in their project, there are only python demo based on windows and linux: https://github.com/SensorLogicInc/modules/tree/main/python, but not mention if it's ARM based or AMD. Have you tested the code of this page on the edge devices?

Sincerely thanks for your reply.

aabsz commented 1 year ago

Hi everyone. Does anyone know how to fix the "wrong ELF class: ELFCLASS32" error with the X4M300 (X4M03) sensor?

And one more question. I need the raw data from UWB. I see some of you are using SLMX4 from sensor logic. Do you know if this sensor, like X4M03, provides us with its raw data?

sudo-bcli commented 1 year ago

@beduffy Hi I just ran into the same problem. I think it's because their dynamic library was compiled for older version of Raspbian (armhf 32bit) but nano is arm64 (64bit). Since there's no source code of the Module Connector, we can't rebuild a arm64 library on Nano by ourselves. There's a thread on Nvidia Forum discussing "How to use arm32 library on arm64". May worth a shot. BTW I don't think Novelda would provide any support for this product (note: there's literally a villain on their home page(scroll down)), may be Sensor Logic will?

Update Oct 2021

  1. SensorLogic replied they "don't make this radar and don't provide any changes".
  2. Have to switch from Nano to Raspberry Pi
  3. Module Connector (python35-arm-linux-gnueabihf) works on Raspberry Pi 4B with Raspberry OS (Release date: May 7th 2021)

@sudo-bcli Hi, I tried the specific Raspbian OS image. But still got the error of libboost-dev version mismatch:

ImportError: libboost_filesystem.so.1.62.0: cannot open shared object file: No such file or directory

The system's libboost version is 1.67.0. Meanwhile I cannot find any source of the 1.62.0. Can you share the experience how you connect with Raspberry PI4?

Many thanks.

Really sorry that I didn't see your message earlier, guess it was submerged in tons of other useless Github notifications. Currently I'm reworking on that old project back in 2021, please let me know if you still need any help with getting X4M300 working with Raspberry Pi.

aabsz commented 1 year ago

Hi, No problem. Thank you for your reply. I recently borrowed an SLMX4 from sensorlogic and I have access to all that I need. However, I still have a problem with setting up X4M300. Do you have any tips on how to set it up in Linux? (not Raspberry Pi)

sudo-bcli commented 1 year ago

Hi, No problem. Thank you for your reply. I recently borrowed an SLMX4 from sensorlogic and I have access to all that I need. However, I still have a problem with setting up X4M300. Do you have any tips on how to set it up in Linux? (not Raspberry Pi)

Unfortunately, no, I've only tried X4M300 with Raspberry Pi and and Jetson Nano.

aabsz commented 1 year ago

Hi, No problem. Thank you for your reply. I recently borrowed an SLMX4 from sensorlogic and I have access to all that I need. However, I still have a problem with setting up X4M300. Do you have any tips on how to set it up in Linux? (not Raspberry Pi)

Unfortunately, no, I've only tried X4M300 with Raspberry Pi and and Jetson Nano.

OK. I will try Raspberryby later then.

shibingli commented 1 year ago

Thank you . I have solved the problem

May I ask how did you solve it? I have several X4M03 development kits here, and due to some reasons, I have to use this device. However, I am unable to use it based on the current Python library.