I'm beginner at Linux and I had idea to have mobile internet on server Ubuntu 20.04.2 LTS through Huawei e3372h-320. I have studied that I must switch mode from USB storage to modem, but on the internet is many different topics how can I fix it. I would like to ask you if someone can help me.
I did: lsusb
Code: Select all
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 009: ID 12d1:14db Huawei Technologies Co., Ltd. E353/E3131
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Code: Select all
Bus 001 Device 009: ID 12d1:14db Huawei Technologies Co., Ltd. E353/E3131
Couldn't open device, some information will be missing
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 2 Communications
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x12d1 Huawei Technologies Co., Ltd.
idProduct 0x14db E353/E3131
bcdDevice 1.02
iManufacturer 1
iProduct 2
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x0058
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 2mA
Interface Association:
bLength 8
bDescriptorType 11
bFirstInterface 0
bInterfaceCount 2
bFunctionClass 2 Communications
bFunctionSubClass 6 Ethernet Networking
bFunctionProtocol 0
iFunction 8
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 2 Communications
bInterfaceSubClass 6 Ethernet Networking
bInterfaceProtocol 0
iInterface 5
CDC Header:
bcdCDC 1.10
CDC Union:
bMasterInterface 0
bSlaveInterface 1
CDC Ethernet:
iMacAddress 7 (??)
bmEthernetStatistics 0x00000000
wMaxSegmentSize 1514
wNumberMCFilters 0x0000
bNumberPowerFilters 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 5
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 10 CDC Data
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 1
bNumEndpoints 2
bInterfaceClass 10 CDC Data
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 6
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 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
and it replies:
Look for target devices ...
No devices in target mode or class found
Look for default devices ...
Found devices in default mode (1)
Access device 009 on bus 001
Error opening the device. Abort
when I tried to: sudo usb_modeswitch -v 0x12d1 -p 0x14db -V 0x12d1 -P 0x1506 -J
It replies:
Look for target devices ...
No devices in target mode or class found
Look for default devices ...
Found devices in default mode (1)
Access device 011 on bus 001
Get the current device configuration ...
Current configuration number is 1
Use interface number 0
with class 2
Error: can't use storage command in MessageContent with interface 0; interface class is 2, expected 8. Abort
I'm not sure that switched number 0x1506 is correct....
then tried to do command mmcli -L but it replied that no modem was found...
but something was done:
Code: Select all
[ 758.314716] usb 1-8: USB disconnect, device number 2
[ 758.314813] cdc_ether 1-8:1.0 enx001e101f0000: unregister 'cdc_ether' usb-0000:00:14.0-8, CDC Ethernet Device
[ 778.261872] usb 1-8: new high-speed USB device number 3 using xhci_hcd
[ 778.411293] usb 1-8: New USB device found, idVendor=12d1, idProduct=1f01, bcdDevice= 1.02
[ 778.411299] usb 1-8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 778.411302] usb 1-8: Product: HUAWEI_MOBILE
[ 778.411305] usb 1-8: Manufacturer: HUAWEI_MOBILE
[ 778.411308] usb 1-8: SerialNumber: 0123456789ABCDEF
[ 778.430892] usb-storage 1-8:1.0: USB Mass Storage device detected
[ 778.434203] scsi host4: usb-storage 1-8:1.0
[ 778.434458] usbcore: registered new interface driver usb-storage
[ 778.436249] usbcore: registered new interface driver uas
[ 779.482603] usb 1-8: USB disconnect, device number 3
[ 780.061881] usb 1-8: new high-speed USB device number 4 using xhci_hcd
[ 780.210932] usb 1-8: New USB device found, idVendor=12d1, idProduct=14db, bcdDevice= 1.02
[ 780.210938] usb 1-8: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 780.210941] usb 1-8: Product: HUAWEI_MOBILE
[ 780.210944] usb 1-8: Manufacturer: HUAWEI_MOBILE
[ 780.290105] cdc_ether 1-8:1.0 eth0: register 'cdc_ether' at usb-0000:00:14.0-8, CDC Ethernet Device, 00:1e:10:1f:00:00
[ 780.300802] cdc_ether 1-8:1.0 enx001e101f0000: renamed from eth0
[ 781.546600] usbcore: registered new interface driver usbserial_generic
[ 781.546604] usbserial: USB Serial support registered for generic
[ 781.550118] usbcore: registered new interface driver option
[ 781.550122] usbserial: USB Serial support registered for GSM modem (1-port)
6: enx001e101f0000: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 00:1e:10:1f:00:00 brd ff:ff:ff:ff:ff:ff
this connection was found, but modem was not found by modem manager... I need to configure SIM card etc.
Thank you very much for your help!