In continuation of
Using MT1300 with QUECTEL EM160R-GL
I have a QUECTEL EM160R-GL in a USB3 enclosure and would like to use it with ATX1800.
It runs in MBIM mode, all models of GL-iNet routers I tried (AR750S, MT1300, Flint) failed to detect the modem and I had to configure each router manually.
The way to make QUECTEL EM160R-GL in a USB3 enclosure to work with ATX1800:
Step 1: I installed mbim related packages;
Step2: I checked the logs, looks like something has been detected;
kernel log:
14.926465] usbcore: registered new interface driver qmi_wwan
[ 14.930307] usbcore: registered new interface driver rndis_host
[ 15.105400] cdc_mbim 2-1:1.4: cdc-wdm0: USB WDM device
[ 15.114883] cdc_mbim 2-1:1.4 wwan0: register ‘cdc_mbim’ at usb-xhci-hcd.0.auto-1, CDC MBIM, ee: xxxxxx:ca
[ 15.114985] usbcore: registered new interface driver cdc_mbim
[ 15.124984] usbcore: registered new interface driver option
[ 15.129598] usbserial: USB Serial support registered for GSM modem (1-port)
system log:
Thu Aug 11 18:43:47 2022 daemon.info [6072]: [cdc-wdm0/mbim] MBIM device is not QMI capable
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] Read max control message size from descriptors file: 4096
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] Opening device with flags ‘version-info, proxy, mbim, expect-indications’…
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] created endpoint
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] creating MBIM device…
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] MBIM device created
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] opening MBIM device…
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: opening device…
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] Read max control message size from descriptors file: 4096
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] MBIM device open
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] Checking version info (15 retries)…
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] QMI Device supports 34 services:
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] ctl (1.5)
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] wds (1.155)
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] dms (1.0)
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] nas (1.25)
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] qos (1.14)
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] wms (1.10)
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] auth (1.13)
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] at (1.4)
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] voice (2.1)
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] cat2 (2.24)
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] uim (1.77)
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] pbm (1.4)
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] test (1.0)
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] loc (2.0)
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] sar (1.0)
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] ims (1.0)
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] ts (1.0)
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] tmd (1.0)
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] wda (1.20)
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] csvt (1.1)
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] imsa (1.0)
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] coex (1.0)
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] pdc (1.0)
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] rfrpe (1.0)
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] dsd (1.0)
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] unknown [0x30] (1.0)
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] unknown [0x31] (1.0)
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] unknown [0x36] (1.0)
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] unknown [0x44] (1.0)
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] unknown [0x47] (1.0)
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] unknown [0x49] (1.0)
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] unknown [0x4a] (1.0)
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] unknown [0x4d] (1.0)
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] unknown [0x4e] (1.0)
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] Enabling QMI indications via MBIM…
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] enabled QMI indications via MBIM
Thu Aug 11 18:43:48 2022 daemon.info [6072]: [modem0/cdc-wdm0/mbim] MBIM device is QMI capable
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] Allocating new client ID…
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] Registered ‘dms’ (version 1.0) client with ID ‘1’
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] Allocating new client ID…
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] Registered ‘nas’ (version 1.25) client with ID ‘5’
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] Allocating new client ID…
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] Registered ‘loc’ (version 2.0) client with ID ‘1’
Thu Aug 11 18:43:48 2022 daemon.debug [6072]: [/dev/cdc-wdm0] Allocating new client ID…
So the modem has been detected but the GL-iNet GUI does not show it (instead it says something about repeater which is disabled)
Step 3: ok, if QUECTEL EM160R-GL in a USB3 enclosure is not detected by the GL-iNet GUI, we have to configure it manually using luci. I installed modemmanager and the luci frontend for it , configured WWAN interface by defining APN and the protocol type and got everything working:
That would be really cool if the GL-iNet GUI could properly work with this modem, detect it and let users to configure it - I am pretty much sure not everyone knows about luci and such.