ccwienk / temper

Simple python for accessing TEMPer USB thermometers
MIT License
35 stars 27 forks source link

Can't get the Temper2 (3353:a001) to work #32

Open ggoodgguy opened 8 months ago

ggoodgguy commented 8 months ago

Hello, I am trying to use this script with new Temper2 usb key (https://thepihut.com/products/temper2-usb-dual-temperature-sensor)

After runing setup when I try to run

:/tmp/temper# python temper.py --verbose --json []

I am using raspberry pi and usb is detected as bellow.

:/tmp/temper# lsusb Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 3553:a001 PCsensor TEMPer2 Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

:/tmp/temper# python temper.py -l Bus 001 Dev 001 1d6b:0002 xHCI Host Controller Bus 001 Dev 002 2109:3431 USB2.0 Hub Bus 001 Dev 003 3553:a001 TEMPer2 Bus 002 Dev 001 1d6b:0003 xHCI Host Controller

I also tried to add

if vendorid == 0x3553 and productid == 0xa001: return True

to temper.py and then it returns

:/tmp/temper# python temper.py --verbose --json [ { "vendorid": 13651, "productid": 40961, "manufacturer": "PCsensor", "product": "TEMPer2", "busnum": 1, "devnum": 3, "devices": [], "port": "1-1.1", "error": "no hid/tty devices available" } ]

what am I doing wrong?

biochem-fan commented 8 months ago

This is a duplicate of #24. I had the same issue but the pull request there (#23) worked nicely for me.

ggoodgguy commented 8 months ago

Hey. thanks this fixed the issue.. to bad fix it isn't already included in this repository

eode commented 3 weeks ago

Can you confirm this is now working in master?

K3CAN commented 1 day ago

I'm also trying to use this device and receiving the same error: "error": "no hid/tty devices available"

I see in the readme:

In this example, one of the devices doesn't have the HID driver attached because I was using an libusb-based program to access it.

But I don't understand what the solution is.