ModemManager-1.6.2: does not work with Huawei E3372h ??? -153
Martin MOKREJŠ
mmokrejs at gmail.com
Fri Jan 13 20:45:19 UTC 2017
Re-sending, with attachments.
Hi Thomas,
>>> This device should use the wwan-device by huawei_cdc_ncm.
>>
>> I am glad to hear that as well, but can you tell me if ModemManager
>> realizes that wwan0 was renamed by OpenRC to wwp0s29u1u2i2 ? Does
>> that interfere anyhow?
>>
>
> As Aleksander already mentioned this is an earlier step.
>
> [ 129.872093] usb 2-4: new high-speed USB device number 3 using
> ehci-pci
>
> [ 130.021780] usb 2-4: New USB device found, idVendor=12d1,
> idProduct=14fe
>
> [ 130.021791] usb 2-4: New USB device strings: Mfr=1, Product=2,
> SerialNumber=3
>
> [ 130.021797] usb 2-4: Product: HUAWEI_MOBILE
>
>
> [ 130.021803] usb 2-4: Manufacturer: HUAWEI_MOBILE
>
>
> [ 130.021809] usb 2-4: SerialNumber: 0123456789ABCDEF
>
>
> [ 130.694224] usb-storage 2-4:1.0: USB Mass Storage device detected
> [ 130.699161] scsi host4: usb-storage 2-4:1.0
> [ 130.699625] usbcore: registered new interface driver usb-storage
> [ 130.702706] usbcore: registered new interface driver uas
> [ 131.503661] usb 2-4: USB disconnect, device number 3
> [ 132.204080] usb 2-4: new high-speed USB device number 4 using ehci-pci
> [ 132.353537] usb 2-4: New USB device found, idVendor=12d1, idProduct=1506
> [ 132.353546] usb 2-4: New USB device strings: Mfr=1, Product=2,
> SerialNumber=0
> [ 132.353552] usb 2-4: Product: HUAWEI_MOBILE
> [ 132.353558] usb 2-4: Manufacturer: HUAWEI_MOBILE
> [ 132.388055] usb-storage 2-4:1.3: USB Mass Storage device detected
> [ 132.393422] scsi host4: usb-storage 2-4:1.3
> [ 132.394744] usb-storage 2-4:1.4: USB Mass Storage device detected
> [ 132.399369] scsi host5: usb-storage 2-4:1.4
> [ 133.034249] usbcore: registered new interface driver usbserial
> [ 133.034322] usbcore: registered new interface driver usbserial_generic
I have only
CONFIG_USB_SERIAL=y
# CONFIG_USB_SERIAL_GENERIC is not set
# CONFIG_USB_SERIAL_SIMPLE is not set
CONFIG_USB_SERIAL_WWAN=m
CONFIG_USB_SERIAL_OPTION=m
# lsmod
Module Size Used by
ppp_deflate 3938 0
bsd_comp 5226 0
ppp_async 6915 1
ppp_generic 24159 7 ppp_async,bsd_comp,ppp_deflate
slhc 5235 1 ppp_generic
option 42576 2
usb_wwan 7919 1 option
...
uas 13205 0
usb_storage 52299 2 uas,ums_realtek
#
> [ 133.034381] usbserial: USB Serial support registered for generic
> [ 133.074616] usbcore: registered new interface driver option
> [ 133.075481] usbcore: registered new interface driver cdc_ncm
> [ 133.077831] usbserial: USB Serial support registered for GSM modem
> (1-port)
> [ 133.078199] option 2-4:1.0: GSM modem (1-port) converter detected
> [ 133.080959] usb 2-4: GSM modem (1-port) converter now attached to ttyUSB0
> [ 133.081091] option 2-4:1.1: GSM modem (1-port) converter detected
> [ 133.086826] usbcore: registered new interface driver cdc_wdm
> [ 133.088603] usb 2-4: GSM modem (1-port) converter now attached to ttyUSB1
> [ 133.158799] huawei_cdc_ncm 2-4:1.2: MAC-Address: 00:1e:10:1f:00:00
> [ 133.158809] huawei_cdc_ncm 2-4:1.2: setting rx_max = 16384
> [ 133.164445] huawei_cdc_ncm 2-4:1.2: NDP will be placed at end of
> frame for this device.
> [ 133.165544] huawei_cdc_ncm 2-4:1.2: cdc-wdm0: USB WDM device
> [ 133.166389] huawei_cdc_ncm 2-4:1.2 wwan0: register 'huawei_cdc_ncm'
> at usb-0000:00:1d.7-4, Huawei CDC NCM device, 00:1e:10:1f:00:00
> [ 133.166545] usbcore: registered new interface driver huawei_cdc_ncm
> [ 133.181321] huawei_cdc_ncm 2-4:1.2 wwp0s29f7u4i2: renamed from wwan0
> [ 133.420876] scsi 4:0:0:0: CD-ROM HUAWEI Mass Storage
> 2.31 PQ: 0 ANSI: 2
> [ 133.425589] scsi 4:0:0:0: Attached scsi generic sg1 type 5
> [ 133.426253] scsi 5:0:0:0: Direct-Access HUAWEI TF CARD Storage
> 2.31 PQ: 0 ANSI: 2
> [ 133.432118] sd 5:0:0:0: Attached scsi generic sg2 type 0
> [ 133.435881] sd 5:0:0:0: [sdb] Attached SCSI removable disk
> [ 133.468859] sr 4:0:0:0: [sr0] scsi-1 drive
> [ 133.468867] cdrom: Uniform CD-ROM driver Revision: 3.20
Well today the modem was also switched by usb_modeswitch automatically. Looks sometimes it works, sometimes not.
50.634264] usb 2-1.2: new high-speed USB device number 5 using ehci-pci
[ 50.786230] usb 2-1.2: New USB device found, idVendor=12d1, idProduct=14fe
[ 50.786237] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 50.786242] usb 2-1.2: Product: HUAWEI_MOBILE
[ 50.786245] usb 2-1.2: Manufacturer: HUAWEI_MOBILE
[ 50.786248] usb 2-1.2: SerialNumber: 0123456789ABCDEF
[ 50.821657] usb-storage 2-1.2:1.0: USB Mass Storage device detected
[ 50.821737] scsi host6: usb-storage 2-1.2:1.0
[ 51.839751] scsi 6:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
[ 51.843589] sr 6:0:0:0: [sr1] scsi-1 drive
[ 51.843892] sr 6:0:0:0: Attached scsi CD-ROM sr1
[ 51.844042] sr 6:0:0:0: Attached scsi generic sg2 type 5
[ 51.845797] scsi 6:0:0:1: Direct-Access HUAWEI TF CARD Storage 2.31 PQ: 0 ANSI: 2
[ 51.846176] sd 6:0:0:1: Attached scsi generic sg3 type 0
[ 51.852783] sd 6:0:0:1: [sdb] Attached SCSI removable disk
[ 52.129054] usb 2-1.2: USB disconnect, device number 5
[ 53.194296] usb 2-1.2: new high-speed USB device number 6 using ehci-pci
[ 53.346253] usb 2-1.2: New USB device found, idVendor=12d1, idProduct=1506
[ 53.346261] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 53.346265] usb 2-1.2: Product: HUAWEI_MOBILE
[ 53.346268] usb 2-1.2: Manufacturer: HUAWEI_MOBILE
[ 53.523551] huawei_cdc_ncm 2-1.2:1.2: MAC-Address: 00:1e:10:1f:00:00
[ 53.523558] huawei_cdc_ncm 2-1.2:1.2: setting rx_max = 16384
[ 53.531006] huawei_cdc_ncm 2-1.2:1.2: NDP will be placed at end of frame for this device.
[ 53.531189] huawei_cdc_ncm 2-1.2:1.2: cdc-wdm0: USB WDM device
[ 53.531509] huawei_cdc_ncm 2-1.2:1.2 wwan0: register 'huawei_cdc_ncm' at usb-0000:00:1d.0-1.2, Huawei CDC NCM device, 00:1e:10:1f:00:00
[ 53.531758] usb-storage 2-1.2:1.3: USB Mass Storage device detected
[ 53.532220] scsi host6: usb-storage 2-1.2:1.3
[ 53.532903] usb-storage 2-1.2:1.4: USB Mass Storage device detected
[ 53.533170] scsi host7: usb-storage 2-1.2:1.4
[ 53.626681] huawei_cdc_ncm 2-1.2:1.2 wwp0s29u1u2i2: renamed from wwan0
[ 53.658969] usbcore: registered new interface driver option
[ 53.659005] usbserial: USB Serial support registered for GSM modem (1-port)
[ 53.659087] option 2-1.2:1.0: GSM modem (1-port) converter detected
[ 53.659538] usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB0
[ 53.659558] option 2-1.2:1.1: GSM modem (1-port) converter detected
[ 53.659719] usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB1
[ 54.565035] scsi 7:0:0:0: Direct-Access HUAWEI TF CARD Storage 2.31 PQ: 0 ANSI: 2
[ 54.565500] scsi 6:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
[ 54.566495] sd 7:0:0:0: Attached scsi generic sg2 type 0
[ 54.568129] sd 7:0:0:0: [sdb] Attached SCSI removable disk
[ 54.569486] sr 6:0:0:0: [sr1] scsi-1 drive
[ 54.569777] sr 6:0:0:0: Attached scsi CD-ROM sr1
[ 54.569925] sr 6:0:0:0: Attached scsi generic sg3 type 5
[ 54.597377] sr 6:0:0:0: [sr1] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 54.597385] sr 6:0:0:0: [sr1] tag#0 Sense Key : Medium Error [current]
[ 54.597391] sr 6:0:0:0: [sr1] tag#0 Add. Sense: Unrecovered read error
[ 54.597398] sr 6:0:0:0: [sr1] tag#0 CDB: Read(10) 28 00 00 00 8d fc 00 00 02 00
>
>
>
>
>> Can you tell if ModemManager should run "usb_modeswitch -J -v 0x12d1
>> -p 0x14fe" automagically (I have v.2.4.0 of usb_modeswitch")?
>>
>
> I use also 2.4.0. But in my case it has its udev-rules for switching
> automatically.
I am starting to admit it has a crappy firmware. Also with my older E3131s I have to sometimes call usb_modeswitch on my own.
>
>
>> I have compiled:
>
> Ok, I use a standard kernel from opensuse at the moment.
> Linux hpmini 4.9.2-1.g2d3c294-default #1 SMP PREEMPT Mon Jan 9 09:22:07
> UTC 2017 (2d3c294) x86_64 x86_64 x86_64 GNU/Linux
>
> I can provide the config, if you need it to compare. Here it would make
> the mail to big.
Well it seemed I have all necessary modules included. But feel free to email me directly the .config.bz2. Thank you.
>>> Do have a chance to compare the behavour of your modem under
>>> windows?
>>
>> I can reboot to win7, but which window values I should screen-grab
>> for you?
>
> No screenshot. I want only to know if windows uses "network card" or
> serial modem / ppp.
Will check.
>
>
> About IPv6, it was just a personal question.
>
>
> For some things to compare:
I attach HuaweiE3372h-153__nmcli_connection_show.txt
>
> mmcli -L
>
> Found 1 modems:
> /org/freedesktop/ModemManager1/Modem/0 [huawei] E3372
>
> hpmini:~ # mmcli -m 0
>
> /org/freedesktop/ModemManager1/Modem/0 (device id
> '6e7a6788da74ddcd62d71fe9eefdfed0337f3728')
> -------------------------
> Hardware | manufacturer: 'huawei'
> | model: 'E3372'
> | revision: '21.300.05.00.55'
I have '21.200.07.00.55'
> | supported: 'gsm-umts'
> | current: 'gsm-umts'
> | equipment id: '864346025664162'
> -------------------------
> System | device: '/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-4'
> | drivers: 'huawei_cdc_ncm, option1'
> | plugin: 'Huawei'
> | primary port: 'ttyUSB0'
> | ports: 'ttyUSB0 (at), ttyUSB1 (at), wwp0s29f7u4i2
> (net), cdc-wdm0 (at)'
I have only:
| ports: 'ttyUSB0 (at), ttyUSB1 (at), wwp0s29u1u2i2 (net)'
But I do have:
crw------- 1 root root 180, 0 Jan 13 17:58 /dev/cdc-wdm0
crw-rw---- 1 root uucp 188, 0 Jan 13 21:31 /dev/ttyUSB0
crw-rw---- 1 root uucp 188, 1 Jan 13 18:00 /dev/ttyUSB1
I cannot find the one below:
# find /dev -name \*wwp0s29u1u2i2*
#
# ifconfig wwp0s29u1u2i2
wwp0s29u1u2i2: flags=4098<BROADCAST,MULTICAST> mtu 1500
ether 00:1e:10:1f:00:00 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
#
Weird. Ifconfig can see it. So you use the wwan0 renamed to wwp0s29f7u4i2 or you use cdc-wdm0? I have only the latter file, somehow.
> -------------------------
> Numbers | own : '+4915127093683'
> -------------------------
> Status | lock: 'none'
> | unlock retries: 'sim-pin (3), sim-pin2 (3), sim-puk (10),
> sim-puk2 (10)'
> | state: 'connected'
> | power state: 'on'
> | access tech: 'lte'
> | signal quality: '87' (recent)
> -------------------------
> Modes | supported: 'allowed: 2g; preferred: none
> | allowed: 3g; preferred: none
> | allowed: 4g; preferred: none
> | allowed: 2g, 3g, 4g; preferred: none'
> | current: 'allowed: 2g, 3g, 4g; preferred: none'
> -------------------------
> Bands | supported: 'unknown'
> | current: 'unknown'
> -------------------------
> IP | supported: 'ipv4'
> -------------------------
> 3GPP | imei: '864346025664162'
> | enabled locks: 'none'
> | operator id: '26201'
> | operator name: 'Telekom.de'
> | subscription: 'unknown'
> | registration: 'home'
> -------------------------
> SIM | path: '/org/freedesktop/ModemManager1/SIM/0'
>
> -------------------------
> Bearers | paths: '/org/freedesktop/ModemManager1/Bearer/0'
>
> hpmini:~ #
> mmcli -b 0
> Bearer '/org/freedesktop/ModemManager1/Bearer/0'
> -------------------------
> Status | connected: 'yes'
> | suspended: 'no'
> | interface: 'wwp0s29f7u4i2'
I have:
| interface: 'ttyUSB1'
> | IP timeout: '20'
> -------------------------
> Properties | apn: 'internet.telekom'
> | roaming: 'allowed'
> | IP type: 'ipv4'
> | user: 'tm'
> | password: 'none'
> | number: '*99#'
> | Rm protocol: 'unknown'
> -------------------------
> IPv4 configuration | method: 'static'
> | address: '10.75.244.17'
> | prefix: '30'
> | gateway: '10.75.244.18'
> | DNS: '10.74.210.210', '10.74.210.211'
Weird, my IP's are not shown?
IPv4 configuration | method: 'ppp'
| address: 'unknown'
| prefix: '0'
| gateway: 'unknown'
| DNS: none
# ifconfig -a ppp0
ppp0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1500
inet 100.93.62.122 netmask 255.255.255.255 destination 0.0.0.0
ppp txqueuelen 3 (Point-to-Point Protocol)
RX packets 30109 bytes 15430845 (14.7 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 26393 bytes 5424438 (5.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
#
Also the attached output from "nmcli connection show" reveals my real IPv4 address assigned via DHCP.
Martin
-------------- next part --------------
connection.id: HuaweiE3372h-153
connection.uuid: 7834078b-e76e-4825-b987-b460eed422ea
connection.stable-id: --
connection.interface-name: --
connection.type: gsm
connection.autoconnect: yes
connection.autoconnect-priority: 0
connection.timestamp: 1484338795
connection.read-only: no
connection.permissions:
connection.zone: --
connection.master: --
connection.slave-type: --
connection.autoconnect-slaves: -1 (default)
connection.secondaries:
connection.gateway-ping-timeout: 0
connection.metered: unknown
connection.lldp: -1 (default)
ipv4.method: auto
ipv4.dns:
ipv4.dns-search:
ipv4.dns-options: (default)
ipv4.dns-priority: 0
ipv4.addresses:
ipv4.gateway: --
ipv4.routes:
ipv4.route-metric: -1
ipv4.ignore-auto-routes: no
ipv4.ignore-auto-dns: no
ipv4.dhcp-client-id: --
ipv4.dhcp-timeout: 0
ipv4.dhcp-send-hostname: yes
ipv4.dhcp-hostname: --
ipv4.dhcp-fqdn: --
ipv4.never-default: no
ipv4.may-fail: yes
ipv4.dad-timeout: -1 (default)
ipv6.method: ignore
ipv6.dns:
ipv6.dns-search:
ipv6.dns-options: (default)
ipv6.dns-priority: 0
ipv6.addresses:
ipv6.gateway: --
ipv6.routes:
ipv6.route-metric: -1
ipv6.ignore-auto-routes: no
ipv6.ignore-auto-dns: no
ipv6.never-default: no
ipv6.may-fail: yes
ipv6.ip6-privacy: 0 (disabled)
ipv6.addr-gen-mode: stable-privacy
ipv6.dhcp-send-hostname: yes
ipv6.dhcp-hostname: --
ipv6.token: --
gsm.number: *99#
gsm.username: --
gsm.password: <hidden>
gsm.password-flags: 0 (none)
gsm.apn: internet.t-mobile.cz
gsm.network-id: --
gsm.pin: <hidden>
gsm.pin-flags: 0 (none)
gsm.home-only: no
gsm.device-id: --
gsm.sim-id: --
gsm.sim-operator-id: --
GENERAL.NAME: HuaweiE3372h-153
GENERAL.UUID: 7834078b-e76e-4825-b987-b460eed422ea
GENERAL.DEVICES: ttyUSB0
GENERAL.STATE: activated
GENERAL.DEFAULT: yes
GENERAL.DEFAULT6: no
GENERAL.VPN: no
GENERAL.ZONE: --
GENERAL.DBUS-PATH: /org/freedesktop/NetworkManager/ActiveConnection/0
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/Settings/10
GENERAL.SPEC-OBJECT: /
GENERAL.MASTER-PATH: --
IP4.ADDRESS[1]: 100.93.62.122/32
IP4.GATEWAY: 0.0.0.0
IP4.DNS[1]: 93.153.117.33
IP4.DNS[2]: 93.153.117.1
-------------- next part --------------
Bearer '/org/freedesktop/ModemManager1/Bearer/0'
-------------------------
Status | connected: 'yes'
| suspended: 'no'
| interface: 'ttyUSB1'
| IP timeout: '20'
-------------------------
Properties | apn: 'internet.t-mobile.cz'
| roaming: 'allowed'
| IP type: 'ipv4'
| user: 'none'
| password: 'none'
| number: '*99#'
| Rm protocol: 'unknown'
-------------------------
IPv4 configuration | method: 'ppp'
| address: 'unknown'
| prefix: '0'
| gateway: 'unknown'
| DNS: none
-------------------------
IPv6 configuration | method: 'unknown'
-------------------------
Stats | Duration: '12180'
| Bytes received: 'N/A'
| Bytes transmitted: 'N/A'
More information about the ModemManager-devel
mailing list