USB Temperatur mit temper-poll

Hast Du Probleme mit Hardware, die durch die anderen Foren nicht abgedeckt werden? Schau auch in den "Tipps und Tricks"-Bereich.
Antworten
Blaufrosch
Beiträge: 4
Registriert: 26.03.2012 07:38:35

USB Temperatur mit temper-poll

Beitrag von Blaufrosch » 20.11.2016 14:30:25

Hallo,

ich habe folgendes Problem:
Grundsystem:
Alter PC mit Debian 8, Minimalinstallation
aptitude install libdevice-usb-pcsensor-hidtemper-perl python-usb python-setuptools
Tool temper-poll nach Anleitung installiert (https://pypi.python.org/pypi/temperusb/1.1.2)
USBSTick bestellt und angesteckt
Bild

So, erstmal alles prima:
dmesg:
[ 231.520023] usb 5-1: new low-speed USB device number 4 using ohci-pci
[ 231.689056] usb 5-1: New USB device found, idVendor=0c45, idProduct=7401
[ 231.689058] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 231.689060] usb 5-1: Product: TEMPerV1.4
[ 231.689062] usb 5-1: Manufacturer: RDing
[ 231.696483] input: RDing TEMPerV1.4 as /devices/pci0000:00/0000:00:13.0/usb5/5-1/5-1:1.0/0003:0C45:7401.0017/input/input11
[ 231.696573] hid-generic 0003:0C45:7401.0017: input,hidraw2: USB HID v1.10 Keyboard [RDing TEMPerV1.4] on usb-0000:00:13.0-1/input0
[ 231.701365] hid-generic 0003:0C45:7401.0018: hiddev0,hidraw3: USB HID v1.10 Device [RDing TEMPerV1.4] on usb-0000:00:13.0-1/input1
Programm ausfuehren:
root@cacti:/usr/local/bin# ./temper-poll
Found 1 devices
Device #0: 21.8°C 71.2°F
Dann das Problem:
Nach 2 bis 20min dann keine Daten mehr:
root@cacti:/usr/local/bin# ./temper-poll
Found 1 devices
WARNING:temperusb.temper:Encountered [Errno 16] Resource busy, resetting <DEVICE ID 0c45:7401 on Bus 005 Address 002> and trying again.
ERROR:temperusb.temper:[Errno 110] Operation timed out
Traceback (most recent call last):
File "./temper-poll", line 9, in <module>
load_entry_point('temperusb==1.5.2', 'console_scripts', 'temper-poll')()
File "build/bdist.linux-x86_64/egg/temperusb/cli.py", line 53, in main
File "build/bdist.linux-x86_64/egg/temperusb/temper.py", line 300, in get_temperatures
File "build/bdist.linux-x86_64/egg/temperusb/temper.py", line 250, in get_data
File "build/bdist.linux-x86_64/egg/temperusb/temper.py", line 230, in get_data
File "build/bdist.linux-x86_64/egg/temperusb/temper.py", line 334, in _interrupt_read
File "build/bdist.linux-x86_64/egg/usb/core.py", line 988, in read
File "build/bdist.linux-x86_64/egg/usb/backend/libusb1.py", line 851, in intr_read
File "build/bdist.linux-x86_64/egg/usb/backend/libusb1.py", line 936, in __read
File "build/bdist.linux-x86_64/egg/usb/backend/libusb1.py", line 595, in _check
usb.core.USBError: [Errno 110] Operation timed out
root@cacti:/usr/local/bin# lsusb
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 003: ID 0c45:7401 Microdia
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 0846:4260 NetGear, Inc. WG111v3 54 Mbps Wireless [realtek RTL8187B]
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 0bf8:100c Fujitsu Siemens Computers Keyboard FSC KBPC PX
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 046d:c065 Logitech, Inc.
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
root@cacti:/usr/local/bin# lsusb -vs 005:003

Bus 005 Device 003: ID 0c45:7401 Microdia
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0c45 Microdia
idProduct 0x7401
bcdDevice 0.01
iManufacturer 1 RDing
iProduct 2 TEMPerV1.4
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 59
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 1 Boot Interface Subclass
bInterfaceProtocol 1 Keyboard
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.10
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 65
Report Descriptor: (length is 65)
Item(Global): Usage Page, data= [ 0x01 ] 1
Generic Desktop Controls
Item(Local ): Usage, data= [ 0x06 ] 6
Keyboard
Item(Main ): Collection, data= [ 0x01 ] 1
Application
Item(Global): Report ID, data= [ 0x01 ] 1
Item(Global): Usage Page, data= [ 0x07 ] 7
Keyboard
Item(Local ): Usage Minimum, data= [ 0xe0 ] 224
Control Left
Item(Local ): Usage Maximum, data= [ 0xe7 ] 231
GUI Right
Item(Global): Logical Minimum, data= [ 0x00 ] 0
Item(Global): Logical Maximum, data= [ 0x01 ] 1
Item(Global): Report Size, data= [ 0x01 ] 1
Item(Global): Report Count, data= [ 0x08 ] 8
Item(Main ): Input, data= [ 0x02 ] 2
Data Variable Absolute No_Wrap Linear
Preferred_State No_Null_Position Non_Volatile Bitfield
Item(Global): Report Count, data= [ 0x01 ] 1
Item(Global): Report Size, data= [ 0x08 ] 8
Item(Main ): Input, data= [ 0x01 ] 1
Constant Array Absolute No_Wrap Linear
Preferred_State No_Null_Position Non_Volatile Bitfield
Item(Global): Report Count, data= [ 0x03 ] 3
Item(Global): Report Size, data= [ 0x01 ] 1
Item(Global): Usage Page, data= [ 0x08 ] 8
LEDs
Item(Local ): Usage Minimum, data= [ 0x01 ] 1
NumLock
Item(Local ): Usage Maximum, data= [ 0x03 ] 3
Scroll Lock
Item(Main ): Output, data= [ 0x02 ] 2
Data Variable Absolute No_Wrap Linear
Preferred_State No_Null_Position Non_Volatile Bitfield
Item(Global): Report Count, data= [ 0x05 ] 5
Item(Global): Report Size, data= [ 0x01 ] 1
Item(Main ): Output, data= [ 0x01 ] 1
Constant Array Absolute No_Wrap Linear
Preferred_State No_Null_Position Non_Volatile Bitfield
Item(Global): Report Count, data= [ 0x05 ] 5
Item(Global): Report Size, data= [ 0x08 ] 8
Item(Global): Logical Minimum, data= [ 0x00 ] 0
Item(Global): Logical Maximum, data= [ 0xff ] 255
Item(Global): Usage Page, data= [ 0x07 ] 7
Keyboard
Item(Local ): Usage Minimum, data= [ 0x00 ] 0
No Event
Item(Local ): Usage Maximum, data= [ 0xff ] 255
(null)
Item(Main ): Input, data= [ 0x00 ] 0
Data Array Absolute No_Wrap Linear
Preferred_State No_Null_Position Non_Volatile Bitfield
Item(Main ): End Collection, data=none
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 10
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 1 Boot Interface Subclass
bInterfaceProtocol 2 Mouse
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.10
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 41
Report Descriptor: (length is 41)
Item(Global): Usage Page, data= [ 0x00 0xff ] 65280
(null)
Item(Local ): Usage, data= [ 0x01 ] 1
(null)
Item(Main ): Collection, data= [ 0x01 ] 1
Application
Item(Local ): Usage, data= [ 0x01 ] 1
(null)
Item(Global): Logical Minimum, data= [ 0x00 ] 0
Item(Global): Logical Maximum, data= [ 0xff 0x00 ] 255
Item(Global): Report Size, data= [ 0x08 ] 8
Item(Global): Report Count, data= [ 0x08 ] 8
Item(Main ): Input, data= [ 0x02 ] 2
Data Variable Absolute No_Wrap Linear
Preferred_State No_Null_Position Non_Volatile Bitfield
Item(Local ): Usage, data= [ 0x01 ] 1
(null)
Item(Global): Report Count, data= [ 0x08 ] 8
Item(Main ): Output, data= [ 0x02 ] 2
Data Variable Absolute No_Wrap Linear
Preferred_State No_Null_Position Non_Volatile Bitfield
Item(Global): Usage Page, data= [ 0x0c ] 12
Consumer
Item(Local ): Usage, data= [ 0x00 ] 0
Unassigned
Item(Global): Logical Minimum, data= [ 0x80 ] 128
Item(Global): Logical Maximum, data= [ 0x7f ] 127
Item(Global): Report Size, data= [ 0x08 ] 8
Item(Global): Report Count, data= [ 0x08 ] 8
Item(Main ): Feature, data= [ 0x02 ] 2
Data Variable Absolute No_Wrap Linear
Preferred_State No_Null_Position Non_Volatile Bitfield
Item(Main ): End Collection, data=none
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 10
Device Status: 0x0000
(Bus Powered)

Das kann ich jedesmal fixen, indem ich den Stick manuell abziehe und wieder stecke, aber dann wieder nur für ein paar Minuten.
Folgende Lösungen ergooglet aus ohne Erfolg ausprobiert:
a) /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet usbfs.quirks=0x0c45:0x7401:0x4"

b) /etc/udev/rules.d/99-tempsensor.rules
SUBSYSTEMS=="usb", ACTION=="add", ATTRS{idVendor}=="0c45", ATTRS{idProduct}=="7401", MODE="666"

c) /etc/modprobe.d/fbdev-blacklist.conf
blacklist ehci_hcd

d) USB Reset
echo "auto" > "/sys/bus/usb/devices/5-2/power/level"
echo "5-2" > "/sys/bus/usb/devices/5-2/driver/unbind"
echo "0" > "/sys/bus/usb/devices/5-2/power/autosuspend"

So, nun weiß ich nicht weiter. Hat jemad das Problem schonmal gehabt, oder weiß eine Lösung?

DeletedUserReAsG

Re: USB Temperatur mit temper-poll

Beitrag von DeletedUserReAsG » 20.11.2016 16:37:41

Steht zu dem Fehler näheres im Log? Steckt der Stick an einem Hub? Anderen Port schon probiert?

Antworten