First of all thanks for this tool, I'm looking forward setting up my 4GLTE device, and it wouldn't be possible without the kind developers, as always guys my biggest "Domo Arigato".
So I happen to have one of these Chinese 4G LTE Wifi Modem that I saw some people having problems with
I'm willing to set up a solution if you guys can guide me a bit through the process, so I will document the case and sniff the usb if you guys are able to guide me how (I have wireshark and been fiddeling with that a bit)
$lsusb
Code: Select all
Bus 002 Device 002: ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 8087:0a2a Intel Corp.
Bus 001 Device 003: ID 0bda:57cb Realtek Semiconductor Corp.
Bus 001 Device 033: ID 05c6:6000 Qualcomm, Inc. Siemens SG75 -------------------> Target Device
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Code: Select all
Bus 001 Device 033: ID 05c6:6000 Qualcomm, Inc. Siemens SG75
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x05c6 Qualcomm, Inc.
idProduct 0x6000 Siemens SG75
bcdDevice 0.00
iManufacturer 3 Qualcomm, Incorporated
iProduct 2 Qualcomm CDMA Technologies MSM
iSerial 4 1234567890ABCDEF
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x0083
bNumInterfaces 5
bConfigurationValue 1
iConfiguration 1 Qualcomm Configuration
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 0
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 5
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 32
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 32
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
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 32
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 32
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x84 EP 4 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 32
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 32
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 3
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x85 EP 5 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 32
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x04 EP 4 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 32
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 4
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk-Only
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x05 EP 5 OUT
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 0x86 EP 6 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
can't get debug descriptor: Resource temporarily unavailable
Device Status: 0x0000
(Bus Powered)
dmesg -T --follow
Code: Select all
[Wed Dec 2 10:18:31 2020] usb 1-2: new high-speed USB device number 108 using xhci_hcd
[Wed Dec 2 10:18:31 2020] usb 1-2: New USB device found, idVendor=05c6, idProduct=f000, bcdDevice= 0.00
[Wed Dec 2 10:18:31 2020] usb 1-2: New USB device strings: Mfr=3, Product=2, SerialNumber=4
[Wed Dec 2 10:18:31 2020] usb 1-2: Product: Qualcomm CDMA Technologies MSM
[Wed Dec 2 10:18:31 2020] usb 1-2: Manufacturer: Qualcomm, Incorporated
[Wed Dec 2 10:18:31 2020] usb 1-2: SerialNumber: 1234567890ABCDEF
[Wed Dec 2 10:18:31 2020] usb-storage 1-2:1.0: USB Mass Storage device detected
[Wed Dec 2 10:18:31 2020] scsi host2: usb-storage 1-2:1.0
[Wed Dec 2 10:18:31 2020] usb 1-2: USB disconnect, device number 108
[Wed Dec 2 10:18:32 2020] usb 1-2: new high-speed USB device number 109 using xhci_hcd
[Wed Dec 2 10:18:32 2020] usb 1-2: New USB device found, idVendor=05c6, idProduct=6000, bcdDevice= 0.00
[Wed Dec 2 10:18:32 2020] usb 1-2: New USB device strings: Mfr=3, Product=2, SerialNumber=4
[Wed Dec 2 10:18:32 2020] usb 1-2: Product: Qualcomm CDMA Technologies MSM
[Wed Dec 2 10:18:32 2020] usb 1-2: Manufacturer: Qualcomm, Incorporated
[Wed Dec 2 10:18:32 2020] usb 1-2: SerialNumber: 1234567890ABCDEF
[Wed Dec 2 10:18:32 2020] option 1-2:1.0: GSM modem (1-port) converter detected
[Wed Dec 2 10:18:32 2020] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB0
[Wed Dec 2 10:18:32 2020] option 1-2:1.1: GSM modem (1-port) converter detected
[Wed Dec 2 10:18:32 2020] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB1
[Wed Dec 2 10:18:32 2020] option 1-2:1.2: GSM modem (1-port) converter detected
[Wed Dec 2 10:18:32 2020] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB2
[Wed Dec 2 10:18:32 2020] option 1-2:1.3: GSM modem (1-port) converter detected
[Wed Dec 2 10:18:32 2020] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB3
[Wed Dec 2 10:18:32 2020] usb-storage 1-2:1.4: USB Mass Storage device detected
[Wed Dec 2 10:18:32 2020] scsi host2: usb-storage 1-2:1.4
[Wed Dec 2 10:18:33 2020] scsi 2:0:0:0: Direct-Access 4G MMC Storage 2.31 PQ: 0 ANSI: 2
[Wed Dec 2 10:18:33 2020] sd 2:0:0:0: Attached scsi generic sg1 type 0
[Wed Dec 2 10:18:33 2020] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[Wed Dec 2 10:18:51 2020] usb 1-2: USB disconnect, device number 109
[Wed Dec 2 10:18:51 2020] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[Wed Dec 2 10:18:51 2020] option 1-2:1.0: device disconnected
[Wed Dec 2 10:18:51 2020] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[Wed Dec 2 10:18:51 2020] option 1-2:1.1: device disconnected
[Wed Dec 2 10:18:51 2020] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[Wed Dec 2 10:18:51 2020] option 1-2:1.2: device disconnected
[Wed Dec 2 10:18:51 2020] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
[Wed Dec 2 10:18:51 2020] option 1-2:1.3: device disconnected
[Wed Dec 2 10:18:56 2020] usb 1-2: new high-speed USB device number 110 using xhci_hcd
[Wed Dec 2 10:18:56 2020] usb 1-2: New USB device found, idVendor=05c6, idProduct=f000, bcdDevice= 0.00
[Wed Dec 2 10:18:56 2020] usb 1-2: New USB device strings: Mfr=3, Product=2, SerialNumber=4
[Wed Dec 2 10:18:56 2020] usb 1-2: Product: Qualcomm CDMA Technologies MSM
[Wed Dec 2 10:18:56 2020] usb 1-2: Manufacturer: Qualcomm, Incorporated
[Wed Dec 2 10:18:56 2020] usb 1-2: SerialNumber: 1234567890ABCDEF
[Wed Dec 2 10:18:56 2020] usb-storage 1-2:1.0: USB Mass Storage device detected
[Wed Dec 2 10:18:56 2020] scsi host2: usb-storage 1-2:1.0
[Wed Dec 2 10:18:56 2020] usb 1-2: USB disconnect, device number 110
[Wed Dec 2 10:18:57 2020] usb 1-2: new high-speed USB device number 111 using xhci_hcd
[Wed Dec 2 10:18:57 2020] usb 1-2: New USB device found, idVendor=05c6, idProduct=6000, bcdDevice= 0.00
[Wed Dec 2 10:18:57 2020] usb 1-2: New USB device strings: Mfr=3, Product=2, SerialNumber=4
[Wed Dec 2 10:18:57 2020] usb 1-2: Product: Qualcomm CDMA Technologies MSM
[Wed Dec 2 10:18:57 2020] usb 1-2: Manufacturer: Qualcomm, Incorporated
[Wed Dec 2 10:18:57 2020] usb 1-2: SerialNumber: 1234567890ABCDEF
[Wed Dec 2 10:18:57 2020] option 1-2:1.0: GSM modem (1-port) converter detected
[Wed Dec 2 10:18:57 2020] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB0
[Wed Dec 2 10:18:57 2020] option 1-2:1.1: GSM modem (1-port) converter detected
[Wed Dec 2 10:18:57 2020] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB1
[Wed Dec 2 10:18:57 2020] option 1-2:1.2: GSM modem (1-port) converter detected
[Wed Dec 2 10:18:57 2020] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB2
[Wed Dec 2 10:18:57 2020] option 1-2:1.3: GSM modem (1-port) converter detected
[Wed Dec 2 10:18:57 2020] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB3
[Wed Dec 2 10:18:57 2020] usb-storage 1-2:1.4: USB Mass Storage device detected
[Wed Dec 2 10:18:57 2020] scsi host2: usb-storage 1-2:1.4
[Wed Dec 2 10:18:58 2020] scsi 2:0:0:0: Direct-Access 4G MMC Storage 2.31 PQ: 0 ANSI: 2
[Wed Dec 2 10:18:58 2020] sd 2:0:0:0: Attached scsi generic sg1 type 0
[Wed Dec 2 10:18:58 2020] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[Wed Dec 2 10:19:17 2020] usb 1-2: USB disconnect, device number 111
[Wed Dec 2 10:19:17 2020] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[Wed Dec 2 10:19:17 2020] option 1-2:1.0: device disconnected
[Wed Dec 2 10:19:17 2020] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[Wed Dec 2 10:19:17 2020] option 1-2:1.1: device disconnected
[Wed Dec 2 10:19:17 2020] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[Wed Dec 2 10:19:17 2020] option 1-2:1.2: device disconnected
[Wed Dec 2 10:19:17 2020] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
[Wed Dec 2 10:19:17 2020] option 1-2:1.3: device disconnected
[Wed Dec 2 10:19:22 2020] usb 1-2: new high-speed USB device number 112 using xhci_hcd
[Wed Dec 2 10:19:22 2020] usb 1-2: New USB device found, idVendor=05c6, idProduct=f000, bcdDevice= 0.00
[Wed Dec 2 10:19:22 2020] usb 1-2: New USB device strings: Mfr=3, Product=2, SerialNumber=4
[Wed Dec 2 10:19:22 2020] usb 1-2: Product: Qualcomm CDMA Technologies MSM
[Wed Dec 2 10:19:22 2020] usb 1-2: Manufacturer: Qualcomm, Incorporated
[Wed Dec 2 10:19:22 2020] usb 1-2: SerialNumber: 1234567890ABCDEF
[Wed Dec 2 10:19:22 2020] usb-storage 1-2:1.0: USB Mass Storage device detected
[Wed Dec 2 10:19:22 2020] scsi host2: usb-storage 1-2:1.0
[Wed Dec 2 10:19:22 2020] usb 1-2: USB disconnect, device number 112
[Wed Dec 2 10:19:23 2020] usb 1-2: new high-speed USB device number 113 using xhci_hcd
[Wed Dec 2 10:19:23 2020] usb 1-2: New USB device found, idVendor=05c6, idProduct=6000, bcdDevice= 0.00
[Wed Dec 2 10:19:23 2020] usb 1-2: New USB device strings: Mfr=3, Product=2, SerialNumber=4
[Wed Dec 2 10:19:23 2020] usb 1-2: Product: Qualcomm CDMA Technologies MSM
[Wed Dec 2 10:19:23 2020] usb 1-2: Manufacturer: Qualcomm, Incorporated
[Wed Dec 2 10:19:23 2020] usb 1-2: SerialNumber: 1234567890ABCDEF
[Wed Dec 2 10:19:23 2020] option 1-2:1.0: GSM modem (1-port) converter detected
[Wed Dec 2 10:19:23 2020] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB0
[Wed Dec 2 10:19:23 2020] option 1-2:1.1: GSM modem (1-port) converter detected
[Wed Dec 2 10:19:23 2020] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB1
[Wed Dec 2 10:19:23 2020] option 1-2:1.2: GSM modem (1-port) converter detected
[Wed Dec 2 10:19:23 2020] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB2
[Wed Dec 2 10:19:23 2020] option 1-2:1.3: GSM modem (1-port) converter detected
[Wed Dec 2 10:19:23 2020] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB3
[Wed Dec 2 10:19:23 2020] usb-storage 1-2:1.4: USB Mass Storage device detected
[Wed Dec 2 10:19:23 2020] scsi host2: usb-storage 1-2:1.4
[Wed Dec 2 10:19:24 2020] scsi 2:0:0:0: Direct-Access 4G MMC Storage 2.31 PQ: 0 ANSI: 2
[Wed Dec 2 10:19:24 2020] sd 2:0:0:0: Attached scsi generic sg1 type 0
[Wed Dec 2 10:19:24 2020] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[Wed Dec 2 10:19:44 2020] usb 1-2: USB disconnect, device number 113
[Wed Dec 2 10:19:44 2020] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[Wed Dec 2 10:19:44 2020] option 1-2:1.0: device disconnected
[Wed Dec 2 10:19:44 2020] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[Wed Dec 2 10:19:44 2020] option 1-2:1.1: device disconnected
[Wed Dec 2 10:19:44 2020] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[Wed Dec 2 10:19:44 2020] option 1-2:1.2: device disconnected
[Wed Dec 2 10:19:44 2020] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
[Wed Dec 2 10:19:44 2020] option 1-2:1.3: device disconnected
The usb is not listed on the tar-ball with known devices
/usr/share/usb_modeswitch$ tar tf configPack.tar.gz | grep 05c6
Code: Select all
05c6:0010
05c6:1000:sVe=GT
05c6:1000:sVe=Option
05c6:1000:uMa=AnyDATA
05c6:1000:uMa=CELOT
05c6:1000:uMa=Co.,Ltd
05c6:1000:uMa=DGT
05c6:1000:uMa=Option
05c6:1000:uMa=SAMSUNG
05c6:1000:uMa=SSE
05c6:1000:uMa=StrongRising
05c6:1000:uMa=Vertex
05c6:2000
05c6:2001
05c6:6503
05c6:9024
05c6:98ff
05c6:f000
:/lib/udev/rules.d$ sudo vim 40-usb_modeswitch.rules
I try adding the following to the usb_modeswitch.conf in order to make it initiate
Probiding the data I've got from previous outputs I can fill the following
Code: Select all
DefaultVendor= 0x05c6
DefaultProduct= 0x6000
TargetVendor= 0x05c6
TargetProduct= 0x6000
https://myopenhab.wordpress.com/2017/06 ... odeswitch/
Code: Select all
usb_modeswitch -v 05c6 -p 1000-V 05c6 -P 6000 -M 55534243123456780000000000000011060000000000000000000000000000
Code: Select all
MessageContent="55534243123456780000000000000011060000000000000000000000000000"
$ sudo usb_modeswitch -c /etc/usb_modeswitch.conf
Code: Select all
Look for target devices ...
Found devices in target mode or class (1)
Look for default devices ...
Found devices in default mode (1)
Access device 033 on bus 001
Get the current device configuration ...
Current configuration number is 1
Use interface number 0
with class 255
Error: can't use storage command in MessageContent with interface 0; interface class is 255, expected 8. Abort
B.R.