Quectel EC21, Debian Jessie, kernel 4.4 (patched)
Brendan Simon (SEPL)
brendan at successful.com.au
Fri Aug 31 07:24:29 UTC 2018
I have a embedded linux system, which has been used with a Quectel UC20
device without any issues, but moving to the Quectel EC21 is proving
problematic.
Setup is:
Zynq 7000 ARM SOC
EC21 dev-kit (connected via USB)
Analog Devices linux kernel 4.4 -- monkey patched for EC21 using:
https://www.quectel.com/UploadImage/Downlad/Quectel_WCDMA<E_Linux_USB_Driver_User_Guide_V1.8.pdf
Debian Jessie (8.10)
ii modemmanager 1.4.0-1 armhf
ii network-manager 0.9.10.0-7 armhf
After the patches were applied, the device is recognise on the USB bus
and MM also recongises the modem. However I'm getting a failed status
of SIM not found ("sim-missing"), but the SIM is present the dev-kit is
known to work using a Windows box (i.e. gets an IP address from the 4G
service).
In linux, after power up, MM shows the "sim-missing" failure reason.
Interestingly, after I press the reset button on the dev-kit, MM
recognises a new modem and shows a "registered" status.
I system now recognises the modem (/dev/cdc-wdm0 is registered as well
as some /dev/ttyUSB* devices).
However, nmcli shows the device as a ttyUSB instead of cdc-wdm0 !!
Looking at mmcli outupt, it seems the "primary port" changes from
"cdc-wdm0" to "ttyUSB8".
Is this normal? Can I force it to only use cdc-wdm?
Why does the SIM get recognised after pressing the reset button and
using the ttyUSB interface, and not recongised after powerup and using
the cdc-wdm0 interface?
I also tried connecting the dev-kit to a Debian 9 VM, but I couldn't get
MM to recognise it at all. The ttyUSB and cdc-wdm0 interfaces were
present, but "mmcli -L" shows nothing ("No modems found")
Could this be related or is it a different problem altogether?
How can I get MM to recognise the modem in the Debian 9 setup?
linux kernel 4.9.65-3
modemmanager 1.6.4-1
network-manager 1.6.2-3
Any help greatly appreciated :)
Brendan.
------------------------------------------------------------------------
_*Output of ModemManager CLI (mmcli) after power up (show*__*s
"sim-missing")*_
# mmcli -m 6
/org/freedesktop/ModemManager1/Modem/6 (device id
'cf405e3ef544de99803c75ef99bcee51b6560e65')
-------------------------
Hardware | manufacturer: 'QUALCOMM INCORPORATED'
| model: '0'
| revision: 'EC21AUTFAR02A03M4G 1 [Mar 21 2016
11:00:00]'
| supported: 'gsm-umts
| lte
| gsm-umts, lte'
| current: 'lte'
| equipment id: '864430010001091'
-------------------------
System | device:
'/sys/devices/soc0/amba/e0002000.usb/ci_hdrc.0/usb1/1-1'
| drivers: 'option1, qmi_wwan'
| plugin: 'Generic'
| primary port: 'cdc-wdm0'
| ports: 'ttyUSB8 (at), ttyUSB9 (at), cdc-wdm0
(qmi), ttyUSB4 (qcdm), wwan0 (net)'
-------------------------
Numbers | own : 'unknown'
-------------------------
Status | lock: 'unknown'
| unlock retries: 'unknown'
* | state: 'failed'*
* | failed reason: 'sim-missing'*
| power state: 'unknown'
| access tech: 'unknown'
| signal quality: '0' (cached)
-------------------------
Modes | supported: 'allowed: 4g; preferred: none'
| current: 'allowed: any; preferred: none'
-------------------------
Bands | supported: 'unknown'
| current: 'unknown'
-------------------------
IP | supported: 'ipv4, ipv6, ipv4v6'
-------------------------
SIM | path: 'none'
-------------------------
Bearers | paths: 'none'
_*
Output of ModemManager CLI (mmcli) after pressing reset button
(show*__*s "sim-missing")*_
# mmcli -m 7
/org/freedesktop/ModemManager1/Modem/7 (device id
'6b3daac3d42eca119fcfa4462b377af7398551d4')
-------------------------
Hardware | manufacturer: 'Quectel'
| model: 'EC21'
| revision: 'EC21AUTFAR02A03M4G'
| supported: 'lte'
| current: 'lte'
| equipment id: '864430010001091'
-------------------------
System | device:
'/sys/devices/soc0/amba/e0002000.usb/ci_hdrc.0/usb1/1-1'
| drivers: 'qmi_wwan, option1'
| plugin: 'Generic'
| primary port: 'ttyUSB8'
| ports: 'ttyUSB8 (at), ttyUSB9 (at), ttyUSB4
(qcdm), wwan0 (net)'
-------------------------
Numbers | own : 'unknown'
-------------------------
Status | lock: 'none'
| unlock retries: 'unknown'
*** | state: 'registered'*
| power state: 'on'
| access tech: 'lte'
| signal quality: '100' (recent)
-------------------------
Modes | supported: 'allowed: 2g, 3g, 4g; preferred: none'
| current: 'allowed: 2g, 3g, 4g; preferred: none'
-------------------------
Bands | supported: 'unknown'
| current: 'unknown'
-------------------------
IP | supported: 'none'
-------------------------
3GPP | imei: '864430010001091'
| enabled locks: 'none'
| operator id: '50501'
| operator name: 'Telstra Mobile Telstra'
| subscription: 'unknown'
| registration: 'home'
-------------------------
SIM | path: '/org/freedesktop/ModemManager1/SIM/2'
-------------------------
Bearers | paths: 'none'
Regards,
Brendan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20180831/ed7076d0/attachment.html>
More information about the ModemManager-devel
mailing list