Add support for LS996
Data was provided by @shinobisoft, thanks!
This commit is contained in:
parent
8dc96c2178
commit
08a86b843e
2 changed files with 140 additions and 1 deletions
139
info/lsusb-ls996.txt
Normal file
139
info/lsusb-ls996.txt
Normal file
|
@ -0,0 +1,139 @@
|
||||||
|
Bus 001 Device 006: ID 1004:633a LG Electronics, Inc.
|
||||||
|
Device Descriptor:
|
||||||
|
bLength 18
|
||||||
|
bDescriptorType 1
|
||||||
|
bcdUSB 2.10
|
||||||
|
bDeviceClass 239 Miscellaneous Device
|
||||||
|
bDeviceSubClass 2 ?
|
||||||
|
bDeviceProtocol 1 Interface Association
|
||||||
|
bMaxPacketSize0 64
|
||||||
|
idVendor 0x1004 LG Electronics, Inc.
|
||||||
|
idProduct 0x633a
|
||||||
|
bcdDevice 3.10
|
||||||
|
iManufacturer 1 LG Electronics Inc.
|
||||||
|
iProduct 2 LGE Android Phone
|
||||||
|
iSerial 3 LGLS996xxxxxxxx
|
||||||
|
bNumConfigurations 1
|
||||||
|
Configuration Descriptor:
|
||||||
|
bLength 9
|
||||||
|
bDescriptorType 2
|
||||||
|
wTotalLength 98
|
||||||
|
bNumInterfaces 3
|
||||||
|
bConfigurationValue 1
|
||||||
|
iConfiguration 0
|
||||||
|
bmAttributes 0x80
|
||||||
|
(Bus Powered)
|
||||||
|
MaxPower 500mA
|
||||||
|
Interface Association:
|
||||||
|
bLength 8
|
||||||
|
bDescriptorType 11
|
||||||
|
bFirstInterface 0
|
||||||
|
bInterfaceCount 2
|
||||||
|
bFunctionClass 2 Communications
|
||||||
|
bFunctionSubClass 2 Abstract (modem)
|
||||||
|
bFunctionProtocol 1 AT-commands (v.25ter)
|
||||||
|
iFunction 7 CDC Serial
|
||||||
|
Interface Descriptor:
|
||||||
|
bLength 9
|
||||||
|
bDescriptorType 4
|
||||||
|
bInterfaceNumber 0
|
||||||
|
bAlternateSetting 0
|
||||||
|
bNumEndpoints 1
|
||||||
|
bInterfaceClass 2 Communications
|
||||||
|
bInterfaceSubClass 2 Abstract (modem)
|
||||||
|
bInterfaceProtocol 1 AT-commands (v.25ter)
|
||||||
|
iInterface 5 CDC Abstract Control Model (ACM)
|
||||||
|
CDC Header:
|
||||||
|
bcdCDC 1.10
|
||||||
|
CDC Call Management:
|
||||||
|
bmCapabilities 0x00
|
||||||
|
bDataInterface 1
|
||||||
|
CDC ACM:
|
||||||
|
bmCapabilities 0x02
|
||||||
|
line coding and serial state
|
||||||
|
CDC Union:
|
||||||
|
bMasterInterface 0
|
||||||
|
bSlaveInterface 1
|
||||||
|
Endpoint Descriptor:
|
||||||
|
bLength 7
|
||||||
|
bDescriptorType 5
|
||||||
|
bEndpointAddress 0x82 EP 2 IN
|
||||||
|
bmAttributes 3
|
||||||
|
Transfer Type Interrupt
|
||||||
|
Synch Type None
|
||||||
|
Usage Type Data
|
||||||
|
wMaxPacketSize 0x0040 1x 64 bytes
|
||||||
|
bInterval 9
|
||||||
|
Interface Descriptor:
|
||||||
|
bLength 9
|
||||||
|
bDescriptorType 4
|
||||||
|
bInterfaceNumber 1
|
||||||
|
bAlternateSetting 0
|
||||||
|
bNumEndpoints 2
|
||||||
|
bInterfaceClass 10 CDC Data
|
||||||
|
bInterfaceSubClass 0 Unused
|
||||||
|
bInterfaceProtocol 0
|
||||||
|
iInterface 6 CDC ACM Data
|
||||||
|
Endpoint Descriptor:
|
||||||
|
bLength 7
|
||||||
|
bDescriptorType 5
|
||||||
|
bEndpointAddress 0x81 EP 1 IN
|
||||||
|
bmAttributes 2
|
||||||
|
Transfer Type Bulk
|
||||||
|
Synch Type None
|
||||||
|
Usage Type Data
|
||||||
|
wMaxPacketSize 0x0200 1x 512 bytes
|
||||||
|
bInterval 0
|
||||||
|
Endpoint Descriptor:
|
||||||
|
bLength 7
|
||||||
|
bDescriptorType 5
|
||||||
|
bEndpointAddress 0x01 EP 1 OUT
|
||||||
|
bmAttributes 2
|
||||||
|
Transfer Type Bulk
|
||||||
|
Synch Type None
|
||||||
|
Usage Type Data
|
||||||
|
wMaxPacketSize 0x0200 1x 512 bytes
|
||||||
|
bInterval 0
|
||||||
|
Interface Descriptor:
|
||||||
|
bLength 9
|
||||||
|
bDescriptorType 4
|
||||||
|
bInterfaceNumber 2
|
||||||
|
bAlternateSetting 0
|
||||||
|
bNumEndpoints 2
|
||||||
|
bInterfaceClass 255 Vendor Specific Class
|
||||||
|
bInterfaceSubClass 255 Vendor Specific Subclass
|
||||||
|
bInterfaceProtocol 0
|
||||||
|
iInterface 0
|
||||||
|
Endpoint Descriptor:
|
||||||
|
bLength 7
|
||||||
|
bDescriptorType 5
|
||||||
|
bEndpointAddress 0x83 EP 3 IN
|
||||||
|
bmAttributes 2
|
||||||
|
Transfer Type Bulk
|
||||||
|
Synch Type None
|
||||||
|
Usage Type Data
|
||||||
|
wMaxPacketSize 0x0200 1x 512 bytes
|
||||||
|
bInterval 0
|
||||||
|
Endpoint Descriptor:
|
||||||
|
bLength 7
|
||||||
|
bDescriptorType 5
|
||||||
|
bEndpointAddress 0x02 EP 2 OUT
|
||||||
|
bmAttributes 2
|
||||||
|
Transfer Type Bulk
|
||||||
|
Synch Type None
|
||||||
|
Usage Type Data
|
||||||
|
wMaxPacketSize 0x0200 1x 512 bytes
|
||||||
|
bInterval 0
|
||||||
|
Binary Object Store Descriptor:
|
||||||
|
bLength 5
|
||||||
|
bDescriptorType 15
|
||||||
|
wTotalLength 12
|
||||||
|
bNumDeviceCaps 1
|
||||||
|
USB 2.0 Extension Device Capability:
|
||||||
|
bLength 7
|
||||||
|
bDescriptorType 16
|
||||||
|
bDevCapabilityType 2
|
||||||
|
bmAttributes 0x00000000
|
||||||
|
(Missing must-be-set LPM bit!)
|
||||||
|
Device Status: 0x0000
|
||||||
|
(Bus Powered)
|
2
lglaf.py
2
lglaf.py
|
@ -300,7 +300,7 @@ class USBCommunication(Communication):
|
||||||
def _match_interface(self, intf):
|
def _match_interface(self, intf):
|
||||||
return intf.bInterfaceClass == 255 and \
|
return intf.bInterfaceClass == 255 and \
|
||||||
intf.bInterfaceSubClass == 255 and \
|
intf.bInterfaceSubClass == 255 and \
|
||||||
intf.bInterfaceProtocol == 255 and \
|
intf.bInterfaceProtocol in (0, 255) and \
|
||||||
intf.bNumEndpoints == 2 and all(
|
intf.bNumEndpoints == 2 and all(
|
||||||
usb.util.endpoint_type(ep.bmAttributes) ==
|
usb.util.endpoint_type(ep.bmAttributes) ==
|
||||||
usb.util.ENDPOINT_TYPE_BULK
|
usb.util.ENDPOINT_TYPE_BULK
|
||||||
|
|
Reference in a new issue