ModemManager-1.6.2: does not work with Huawei E3372h ??? -153

Thomas Schäfer tschaefer at t-online.de
Fri Jan 13 20:02:53 UTC 2017


Am 12.01.2017 um 23:52 schrieb Martin MOKREJŠ:
> Hi Thomas,
> 
> Thomas Schäfer wrote:
>> Hi,
>> 
>> I am a little bit surprised that the modem uses the ppp-interface
>> in your case. When I read your logfiles right, then you have a
>> device which is sold under the name "Speedsick LTE V" in Germany.
> 
> How do you achieve non-PPP option in nm-applet? Whenever I select
> "Mobile broadband" there are these option driver-based and PPP-based
> fields. Should I use "Ethernet" instead?


This was already answered by Aleksander. Independent of the applet there
are only some lines in nm-connection-profile:

[connection]
id=tm46auto
uuid=e1cc7077-4d5b-43cd-8bdc-4659d68228fc
type=gsm
autoconnect=false
permissions=
secondaries=

[gsm]
apn=internet.telekom
number=*99#
password-flags=4
pin-flags=4
username=tm

[ipv4]
dns-search=
method=auto

[ipv6]
dns-search=
method=auto



> 
>> 
>> 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
[  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




> 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 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.




> 
> 
>> 
>> 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.


About IPv6, it was just a personal question.


For some things to compare:

nmcli connection show tm46auto
connection.id:                          tm46auto
connection.uuid:                        e1cc7077-4d5b-43cd-8bdc-4659d68228fc
connection.stable-id:                   --
connection.interface-name:              --
connection.type:                        gsm
connection.autoconnect:                 no
connection.autoconnect-priority:        0
connection.timestamp:                   1484337142
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:                            auto
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:                       -1 (unknown)
ipv6.addr-gen-mode:                     eui64
ipv6.dhcp-send-hostname:                yes
ipv6.dhcp-hostname:                     --
ipv6.token:                             --
gsm.number:                             *99#
gsm.username:                           tm
gsm.password:                           <hidden>
gsm.password-flags:                     4 (not required)
gsm.apn:                                internet.telekom
gsm.network-id:                         --
gsm.pin:                                <hidden>
gsm.pin-flags:                          4 (not required)
gsm.home-only:                          no
gsm.device-id:                          --
gsm.sim-id:                             --
gsm.sim-operator-id:                    --
GENERAL.NAME:                           tm46auto
GENERAL.UUID:                           e1cc7077-4d5b-43cd-8bdc-4659d68228fc
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/22
GENERAL.SPEC-OBJECT:                    /
GENERAL.MASTER-PATH:                    --
IP4.ADDRESS[1]:                         10.75.244.17/30
IP4.GATEWAY:                            10.75.244.18
IP4.DNS[1]:                             10.74.210.210
IP4.DNS[2]:                             10.74.210.211

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'
           |      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)'
  -------------------------
  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'
                     |  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'
  -------------------------
  IPv6 configuration |   method: 'unknown'
  -------------------------
  Stats              |          Duration: '3029'
                     |    Bytes received: 'N/A'
                     | Bytes transmitted: 'N/A'


Thomas





More information about the ModemManager-devel mailing list