usbtemp / utmp-cli

Command line interface for reading the temperature from USB thermometer
MIT License
7 stars 3 forks source link

Raspberry Pi support? #2

Closed khaffner closed 2 years ago

khaffner commented 4 years ago

Hi! Is this supposed to support arm architecture such as in Raspberry Pi? I'm trying to use it, but get "Exec format error", and file ./utmp-cli gives me "./utmp-cli: ELF 64-bit LSB pie executable, x86-64.......".

Could we get a version for arm? Or can I read the temperature with some other tool?

khaffner commented 4 years ago

I got it working with digitemp, look at https://github.com/khaffner/elbin for solution. Consider my issue solved, but would still be nice with an arm build.

jaka commented 4 years ago

Hello Currently precompiled binaries are only available for x86 (Windows) and x86-64 (Linux). For Raspberry Pi (Arm) a compilation of source code is needed. I will try to prepare and test binary for RPi ASAP. Of course, Digitemp is an alternative.

jaka commented 4 years ago

Hello again I have uploaded utmp-cli for ARM arhitecture and successfully tested it on Raspberry Pi (Raspberry Pi OS). See releases.

kinglevel commented 3 years ago

@jaka Just tried this with rpi 2 model b, archlinux latest, got it working once, and now it "cannot find the sensor anymore".

In lsusb i can see the device connected etc

jaka commented 3 years ago

@kinglevel Do you have any computer based on i386 or amd64 arch and check it there? Can you check if /dev/ttyUSB0 or maybe /dev/ttyUSB1 is listed by dmesg after plugging in?

kinglevel commented 3 years ago

@kinglevel Do you have any computer based on i386 or amd64 arch and check it there? Can you check if /dev/ttyUSB0 or maybe /dev/ttyUSB1 is listed by dmesg after plugging in?

Listed as ttyUSB0.

I have a rpi v4 laying around, and a virtual arch box i can try it on. so i will check dmesg and compare it.

jaka commented 2 years ago

@kinglevel There was a bug, that might affect detecting sensor, fixed one year ago in version v1.062. If you can, please confirm this issue is now solved.

kinglevel commented 2 years ago

@jaka

Funny that you mentioned it and replying now

I made another temp sensing project a few weeks ago, using utmp-cli v1.062, and it has been working flawlessly and reporting to my influx database now for 10 days straight.

but keep in mind that the difference i have made this time is that i have a usb hub and a raspberry 4 with raspbian. Also a crontab that reboots it every night.

I had another issues with a RTL-SDR usb stick that stopped working on soft reboots, adding a usb hub fixed the issue. And the temp sensor is on the same hub now. So something to do with usb power thingy on the PIs from what i understand it.