Here is the output of lsusb -v -d

root@lin01:~# lsusb -v -d 0fde:ca08
Bus 001 Device 006: ID 0fde:ca08 Oregon Scientific
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x0fde Oregon Scientific
  idProduct          0xca08
  bcdDevice            0.20
  iManufacturer           1 Microchip Technology Inc.
  iProduct                2 USB HID Bootloader
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           41
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xc0
      Self Powered
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      0 None
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      29
          Report Descriptor: (length is 29)
            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 Minimum, data= [ 0x01 ] 1
                            (null)
            Item(Local ): Usage Maximum, data= [ 0x40 ] 64
                            (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= [ 0x40 ] 64
            Item(Main  ): Input, data= [ 0x00 ] 0
                            Data Array Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile 
Bitfield
            Item(Local ): Usage Minimum, data= [ 0x01 ] 1
                            (null)
            Item(Local ): Usage Maximum, data= [ 0x40 ] 64
                            (null)
            Item(Main  ): Output, 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     0x0040  1x 64 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1
Device Status:     0x0001
  Self Powered
root@lin01:~#

Am Dienstag, 25. Oktober 2016 18:23:45 UTC+2 schrieb Roland Ehle:

> Thanks for your response. If necessary I am willing to downgrade to ubuntu 
> 14.04
>
> I am on Ubuntu 16.04 with Kernel 4.4.0-45-generic 
> I have 
> python-usb 1.0.0~b2
> libusb-1.0-0 1.0.20-1
> libusb-0.1-4 0.1.23-28
>
> 2016-10-25 2:38 GMT+02:00 mwall <[email protected]>:
>
>> On Monday, October 24, 2016 at 3:01:47 PM UTC-4, Roland Ehle wrote:
>>>
>>> Hi all,
>>>
>>> I have now attached my WMR300 to an Intel NUC running Ubuntu 16.04 LTS. 
>>> Unfortunately weewx 3.6.1 is unable to read data from the station. 
>>> Apparantly the reason is, that the USB device is reset by the Kernel, 
>>> according to the log:
>>>
>>> Oct 24 20:57:01 lin01 weewx[932]: engine: Loading station type WMR300 
>>> (weewx.drivers.wmr300)
>>> Oct 24 20:57:01 lin01 weewx[932]: wmr300: driver version is 0.13
>>> Oct 24 20:57:01 lin01 weewx[932]: wmr300: Found station at bus= device=
>>> Oct 24 20:57:02 lin01 kernel: [ 2514.640999] usb 1-4: reset full-speed 
>>> USB device number 5 using xhci_hcd
>>>
>>> and Later:
>>>
>>> Oct 24 20:55:46 lin01 weewx[932]: engine: Starting up weewx version 3.6.1
>>> Oct 24 20:55:46 lin01 weewx[932]: engine: Station does not support 
>>> reading the time
>>> Oct 24 20:55:46 lin01 weewx[932]: wmr300: reading records since ******* 
>>> N/A *******     (    N/A   )
>>> Oct 24 20:55:46 lin01 weewx[932]: wmr300: read: failed attempt 1 of 5: 
>>> [Errno 110] Operation timed out
>>> Oct 24 20:55:49 lin01 weewx[932]: wmr300: read: failed attempt 2 of 5: 
>>> [Errno 110] Operation timed out
>>> Oct 24 20:55:52 lin01 weewx[932]: wmr300: read: failed attempt 3 of 5: 
>>> [Errno 110] Operation timed out
>>> Oct 24 20:55:55 lin01 weewx[932]: wmr300: read: failed attempt 4 of 5: 
>>> [Errno 110] Operation timed out
>>> Oct 24 20:55:58 lin01 weewx[932]: wmr300: read: failed attempt 5 of 5: 
>>> [Errno 110] Operation timed out
>>>
>>> I am about to give up and use a Raspberry Pi, but am hoping, that 
>>> someone has a hint.
>>>
>>
>> roland,
>>
>> i think the timeouts are due to a usb initialization problem, which is in 
>> turn due to differences between how 'reset' works in different versions of 
>> libusb.
>>
>> from the "Found station at bus= device=" i would guess that you are 
>> running libusb 1.0, but could you post the exact versions of pyusb and 
>> libusb on your ubuntu system?
>>
>> i have been testing the wmr300 driver on ubuntu 14.04.1 with kernel 
>> 3.19.0-32-generic on x86_64 with these usb versions:
>>
>> python-usb 0.4.3-1
>> libusb-1.0-0 1.0.17-1
>> libusb-0.1-4 0.1.12-23.3
>>
>> m
>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "weewx-user" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/weewx-user/YSz_IWnzOjE/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to