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

Aleksander Morgado aleksander at aleksander.es
Fri Jan 13 21:00:02 UTC 2017


Hey,

On Fri, Jan 13, 2017 at 9:42 PM, Martin MOKREJŠ <mmokrejs at gmail.com> wrote:
>>            |      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*
> #
>

The network interfaces won't show up with device files in /dev; that's
totally normal.

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

The cdc-wdm port is a control port where we can send AT commands. For
some reason, the AT probing in that port failed and ModemManager
didn't grab it. This may be the reason why your modem isn't using the
network interface for connection.

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

That is because you're supposed to connect using PPP. i.e.
ModemManager tells the upper layer (NetworkManager) that it should use
ttyUSB1 for connection.

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

Same as before, ModemManager is telling NetworkManager to use PPP for
connection. The IP address isn't shown because it is unknown to MM at
this point, you'll only get the IP address in your case once
NetworkManager has launched pppd on the tty, at which point the new
ppp0 interface created will get the IP settings.

In Thomas' case, we could query via AT commands through the cdc-wdm
port for which are the IP settings that should be used in the network
interface (wwp0s29f7u4i2 in his case).

-- 
Aleksander
https://aleksander.es


More information about the ModemManager-devel mailing list