Re: Fwd: Fwd: request some hep for usb comminucation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jun 10, 2013 at 10:25:26AM +0430, Mahdi Razavi wrote:
> Hi
> This is a Digital Radio which can report some data through USB to its
> application. The output of lsudb :
> Bus 002 Device 004: ID 238b:0a31
> Device Descriptor:
>   bLength                18
>   bDescriptorType         1
>   bcdUSB               2.00
>   bDeviceClass          255 Vendor Specific Class

Ick, a vendor-specific device :(

>   bDeviceSubClass       254
>   bDeviceProtocol       254
>   bMaxPacketSize0         8
>   idVendor           0x238b
>   idProduct          0x0a31
>   bcdDevice            0.00
>   iManufacturer           1
>   iProduct                2
>   iSerial                 0
>   bNumConfigurations      1
>   Configuration Descriptor:
>     bLength                 9
>     bDescriptorType         2
>     wTotalLength           39
>     bNumInterfaces          1
>     bConfigurationValue     1
>     iConfiguration          0
>     bmAttributes         0xc0
>       Self Powered
>     MaxPower                4mA
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        2
>       bAlternateSetting       0
>       bNumEndpoints           3
>       bInterfaceClass       255 Vendor Specific Class
>       bInterfaceSubClass    255 Vendor Specific Subclass
>       bInterfaceProtocol    255 Vendor Specific Protocol
>       iInterface              5
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x84  EP 4 IN
>         bmAttributes            2
>           Transfer Type            Bulk
>           Synch Type               None
>           Usage Type               Data
>         wMaxPacketSize     0x0040  1x 64 bytes
>         bInterval             255
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x83  EP 3 IN
>         bmAttributes            3
>           Transfer Type            Interrupt
>           Synch Type               None
>           Usage Type               Data
>         wMaxPacketSize     0x0008  1x 8 bytes
>         bInterval               1
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x04  EP 4 OUT
>         bmAttributes            2
>           Transfer Type            Bulk
>           Synch Type               None
>           Usage Type               Data
>         wMaxPacketSize     0x0040  1x 64 bytes
>         bInterval             255
> 
> ----------------------------------
> output od dmesg:
> [26785.637159] usb 2-2.1: new full-speed USB device number 11 using uhci_hcd
> [26785.748010] usb 2-2.1: config 1 has an invalid interface number: 2
> but max is 0
> [26785.748018] usb 2-2.1: config 1 has no interface number 0
> [26785.759058] usb 2-2.1: New USB device found, idVendor=238b, idProduct=0a31
> [26785.759064] usb 2-2.1: New USB device strings: Mfr=1, Product=2,
> SerialNumber=0
> [26785.759069] usb 2-2.1: Product: Digital Radio
> [26785.759073] usb 2-2.1: Manufacturer: RIGOL Communications
> 
> this device has a SDK for developing in windows but there isnt any in
> Linux. i know protocol specification of message, and try sniffing on
> windows verify protocol.
> but when send a same data in Linux(with pyusb) to device dosent
> response. i guess there is a initial handshake in driver layer between
> device and OS.

There really shouldn't be, but you might want to run Windows under kvm
or vmware and snoop the data that way on the Linux side to determine the
whole protocol being used.

Good luck,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux