pcsensor icon indicating copy to clipboard operation
pcsensor copied to clipboard

Couldn't find the USB device, Exiting: 0

Open PhindaRuneli opened this issue 5 years ago • 3 comments

When I run the program I get this "Couldn't find the USB device, Exiting: 0" is there anywhere where I need to specify the port. I'm using a TEMPer2

PhindaRuneli avatar Jan 28 '20 12:01 PhindaRuneli

ls> When I run the program I get this "Couldn't find the USB device, Exiting: 0" is there anywhere where I need to specify the port. I'm using a TEMPer2.

I got the same issue on a Pi 3, I also tried on both the USB 3 and 2 ports.

pi@pi-unifi:~ $ lsusb Bus 001 Device 004: ID 0c45:7401 Microdia TEMPer Temperature Sensor Bus 001 Device 005: ID 0424:7800 Standard Microsystems Corp. Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

thefoxman88 avatar Jul 01 '20 03:07 thefoxman88

Same issue here, this is my output when i 'make'

pi@raspberrypi:~/pcsensor-temper $ make gcc pcsensor.c -g -O2 -Wall -lusb-1.0 -DUNIT_TEST -o pcsensor pcsensor.c: In function ?ini_control_transfer?: pcsensor.c:251:68: warning: iteration 2 invokes undefined behavior [-Waggressive-loop-optimizations] for (i=0;i<reqIntLen; i++) fprintf(stderr, "%02x ",question[i] & 0xFF); ~~~~~~~~^~~ pcsensor.c:251:9: note: within this loop for (i=0;i<reqIntLen; i++) fprintf(stderr, "%02x ",question[i] & 0xFF); ^~~

Don't know what to do about this, can you help?

crapomat avatar Jan 25 '22 11:01 crapomat

Try other similar projects that may support your specific device, for example for mine pip install temper-py worked

golimarrrr avatar Jan 25 '23 13:01 golimarrrr