AnsweredAssumed Answered

Is it possible to let networkmanager(nmcli) support 4G LTE connection?

Question asked by John Lin on Aug 22, 2017

Hello community,

I'm using imx6q(yocto2.2) + quectel EC25 4G module, I would like to control the 4G modem through "nmcli". (I also change connman to networkmanagerV1.2.2).

 

Currently I make sure 4G driver and modemmanager works through command line. (mmcli -m 0 --simple-connect=apn=internet & dhcp).

 

But when I use networkmanager it doesn't work.

My procedure as below:

1. mmcli -m 0 --simple-connect=apn=internet 

system show connection successfully. And use mmcli -m 0 to check modem status and  it show "connected".

 

2. use "nmcli -f all device show wwan0" to check device info (nmcli seems cannot recognized device as modem manager)

GENERAL.DEVICE: wwan0
GENERAL.TYPE: wwan
GENERAL.NM-TYPE: NMDeviceGeneric
GENERAL.VENDOR: Android
GENERAL.PRODUCT: Android
GENERAL.DRIVER: qmi_wwan
GENERAL.DRIVER-VERSION: 22-Aug-2005
GENERAL.FIRMWARE-VERSION: WWAN/QMI device
GENERAL.HWADDR: C2:7A:52:19:9B:94
GENERAL.MTU: 1500
GENERAL.STATE: 10 (unmanaged)
GENERAL.REASON: 0 (No reason given)
GENERAL.UDI: /sys/devices/soc0/soc/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.4/1-1.4:1.4 /net/wwan0
GENERAL.IP-IFACE: wwan0
GENERAL.IS-SOFTWARE: no
GENERAL.NM-MANAGED: no
GENERAL.AUTOCONNECT: no
GENERAL.FIRMWARE-MISSING: no
GENERAL.PHYS-PORT-ID: --
GENERAL.CONNECTION: --
GENERAL.CON-UUID: --
GENERAL.CON-PATH: --
GENERAL.METERED: unknown
CAPABILITIES.CARRIER-DETECT: yes
CAPABILITIES.SPEED: unknown
CAPABILITIES.IS-SOFTWARE: no
CONNECTIONS.AVAILABLE-CONNECTION-PATHS:

 

3. use "nmcli device connect wwan0" to connect internet and it will happen error. (error: Failed to add/activate new connection: Device class NMDeviceGeneric had no complete_connection method)

 

Is this issue caused by nmcli cannot recognized device as modem manager? or caused by GENERAL.NM-TYPE: NMDeviceGeneric? 

Is there any method which can change NMDeviceGeneric to NMDeviceModem?

 

Is there any one encounter this symptom?

 

Thank you very much.

 

John

Outcomes