<div dir="ltr">Hello Alexander and people who might concern,<div><br></div><div>>>> In short, I'd like to know where I can find NetworkManager for openwrt. <<<</div><div><br></div><div><br></div><div>I checked the vid:pid. It is "1519:0443". I found this via lsusb -v:</div><div><br></div><div>SIERRA WIRELESS HL7528<br>root@LEDE:~# lsusb -v<br>Bus 001 Device 002: ID 1519:0443 <<<<<<<<<<br>Bus 001 Device 001: ID 1d6b:0002<br>Bus 002 Device 001: ID 1d6b:0003</div><div><br></div><div>But I changed modem to new one because you said Sierra HL7528 would only work with ppp method and it's not supposed to be.</div><div>Now I am testing with QUECTEL EC25-E MINIPCIE / EC25EFA MINIPCIE.</div><div><br></div><div>It's vid:pid is shown:</div><div><br></div><div>root@LEDE:~# lsusb -v<br>Bus 001 Device 002: ID 2c7c:0125 <<<<<<<<<<br>Bus 001 Device 001: ID 1d6b:0002<br>Bus 002 Device 001: ID 1d6b:0003<br></div><div><br></div><div>And now with this modem most prints look good:</div><div><br></div><div>root@LEDE:~# mmcli -m 0<br> --------------------------------<br> General | dbus path: /org/freedesktop/ModemManager1/Modem/0<br> | device id: 97ffc2eeb6d3ad975d9089850aa3b9b494529919<br> --------------------------------<br> Hardware | manufacturer: Quectel<br> | model: EC25<br> | firmware revision: EC25EFAR04A02M4G_SKT<span class="gmail-im" style="color:rgb(80,0,80)"><br> | supported: gsm-umts, lte<br> | current: gsm-umts, lte<br></span> | equipment id: 356673040475612<br> --------------------------------<br> System | device: /sys/devices/platform/1a0c0000.usb/usb1/1-2<br> | drivers: option<br> | plugin: Quectel<br> | primary port: ttyUSB2<br> | ports: ttyUSB0 (qcdm), ttyUSB2 (at), ttyUSB3 (at)<br> --------------------------------<br> Numbers | own: 01224316205<br> --------------------------------<br> Status | unlock retries: sim-pin (3), sim-puk (10)<br> | state: enabled <<<<<<<<<<<<<<<<<<<<<<<<<span class="gmail-im" style="color:rgb(80,0,80)"><br> | power state: on<br> | signal quality: 0% (cached)<br></span> --------------------------------<span class="gmail-im" style="color:rgb(80,0,80)"><br> Modes | supported: allowed: 2g, 3g, 4g; preferred: none<br></span> | current: allowed: 2g, 3g, 4g; preferred: none<span class="gmail-im" style="color:rgb(80,0,80)"><br> --------------------------------<br> IP | supported: ipv4, ipv6, ipv4v6<br> --------------------------------<br></span> 3GPP | imei: 356673040475612<br> | registration: idle <<<<<<<<<<<<<<<<<<<<<<<<<br> --------------------------------<br> 3GPP EPS | ue mode of operation: csps-1<span class="gmail-im" style="color:rgb(80,0,80)"><br> --------------------------------<br> SIM | dbus path: /org/freedesktop/ModemManager1/SIM/0<br></span></div><div><br><div>But some are not sure:</div><div><br></div><div>root@LEDE:~# mmcli -b 0<br>error: couldn't find bearer at '/org/freedesktop/ModemManager1/Bearer/0': 'not found in any modem'<br><br>root@LEDE:~# mmcli -m 0 --list-bearers<br>error: no actions specified<br></div><div><br></div></div><div>I only enabled QMI via make menuconfig of openwrt.</div><div>I didn't enable MBIM via make menuconfig of openwrt.</div><div>I didn't look at the make kernel_menuconfig of openwrt.</div><div><br></div><div>The state of Status is "enabled" and the registration of 3GPP is "idle". Does this mean the modem is connected to the bearer/operator network and the data usage is enabled?<br></div><div><br></div><div>I found a documentation:</div><div><a href="https://docs.ubuntu.com/core/en/stacks/network/network-manager/docs/configure-cellular-connections" target="_blank">https://docs.ubuntu.com/core/en/stacks/network/network-manager/docs/configure-cellular-connections</a> </div><div><br></div><div>This document shows using of "nmcli" to setup network interface like wwan.</div><div>Do I need this also? I guess though.</div><div>Do I need NetworkManager? If so, where can I get it? I searched from the place ( <a href="https://github.com/openwrt/packages.git" target="_blank">https://github.com/openwrt/packages.git</a> ) where ModemManager for openwrt exist, but NetworkManager is not found there.</div><div><br></div><div><br></div><div>And from the prints above, there are errors for "mmcli -b 0" and "mmcli -m 0 --list-bearers" I don't guess these errors are important but are they?</div><div><br></div><div><div>F.Y.I. Let me show you entry for /etc/config/network</div><div><br></div><div>config interface 'broadband'<br> option device '/sys/devices/platform/1a0c0000.usb/usb1/1-2'<br> option proto 'modemmanager'<br> option apn '<a href="http://lte-internet.sktelecom.com">lte-internet.sktelecom.com</a>'<br></div><div></div></div><div><br></div><div>With this prints can I judge that the ModemManager is ported and working well?</div><div><br></div><div>Thank you very much in advance.</div><div>Jeonghum</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">2020년 5월 8일 (금) 오후 9:47, Aleksander Morgado <<a href="mailto:aleksander@aleksander.es">aleksander@aleksander.es</a>>님이 작성:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hey,<br>
<br>
> We have Sierra modem. HL7528<br>
> So I tested my linux box with this modem and I received first prints below:<br>
><br>
> root@LEDE:/lib/udev/rules.d# mmcli -L<br>
> /org/freedesktop/ModemManager1/Modem/0 [Sierra Wireless] HL7528<br>
> root@LEDE:/lib/udev/rules.d# mmcli -m 0<br>
> -----------------------------<br>
> General | dbus path: /org/freedesktop/ModemManager1/Modem/0<br>
> | device id: a643b0bb58dac30a2cd4ff6b486e826b483d298b<br>
> -----------------------------<br>
> Hardware | manufacturer: Sierra Wireless<br>
> | model: HL7528<br>
> | firmware revision: THL7528_778_tb3_utp426.0.0.152000.202004221951.x7160_1<br>
> | supported: gsm-umts, lte<br>
> | current: gsm-umts, lte<br>
> | equipment id: 356170062941712<br>
> -----------------------------<br>
> System | device: /sys/devices/platform/1a0c0000.usb/usb1/1-2<br>
> | drivers: cdc_acm, cdc_ncm<br>
> | plugin: Generic<br>
> | primary port: ttyACM0<br>
> | ports: wwan3 (net), ttyACM0 (at), wwan0 (net), wwan1 (net),<br>
> | wwan2 (net), ttyACM2 (at)<br>
> -----------------------------<br>
> Status | state: failed<br>
> | failed reason: sim-missing<br>
> | power state: on<br>
> | signal quality: 0% (cached)<br>
> -----------------------------<br>
> Modes | supported: allowed: 2g, 3g, 4g; preferred: none<br>
> | current: allowed: any; preferred: none<br>
><br>
> I did this test to verify if my applying ModemManager have any issue. With this print result, can I judge that ModemManager is ported well?<br>
><br>
<br>
Is this device relatively new? What is the "vid:pid" of the device?<br>
Could you get a full "lsusb -v" output of the device?<br>
<br>
I see the modem is exposing multiple AT and net ports, but<br>
unfortunately ModemManager doesn't know how to handle those net ports,<br>
so if you get that modem connected it will be using PPP over a TTY,<br>
which is not optimal. The connection and management will work, but it<br>
won't be as good as it can be,<br>
<br>
> I from now on will test with this modem. I think I need rule file for this modem and I found one:<br>
> /lib/udev/rules.d/77-mm-sierra.rules<br>
><br>
> The content of this rule file:<br>
><br>
> # do not edit this file, it will be overwritten on update<br>
> ACTION!="add|change|move|bind", GOTO="mm_sierra_end"<br>
> SUBSYSTEMS=="usb", ATTRS{idVendor}=="1199", GOTO="mm_sierra"<br>
> GOTO="mm_sierra_end"<br>
><br>
> LABEL="mm_sierra"<br>
> SUBSYSTEMS=="usb", ATTRS{bInterfaceNumber}=="?*", ENV{.MM_USBIFNUM}="$attr{bInterfaceNumber}"<br>
><br>
> # Netgear AC341U: enable connection status polling explicitly<br>
> ATTRS{idVendor}=="1199", ATTRS{idProduct}=="9057", ENV{ID_MM_QMI_CONNECTION_STATUS_POLLING_ENABLE}="1"<br>
><br>
> # MC74XX: Add port hints<br>
> # if 03: primary port<br>
> # if 02: raw NMEA port<br>
> # if 00: diag/qcdm port<br>
> ATTRS{idVendor}=="1199", ATTRS{idProduct}=="9071", ENV{.MM_USBIFNUM}=="03", ENV{ID_MM_PORT_TYPE_AT_PRIMARY}="1"<br>
> ATTRS{idVendor}=="1199", ATTRS{idProduct}=="9071", ENV{.MM_USBIFNUM}=="02", ENV{ID_MM_PORT_TYPE_GPS}="1"<br>
> ATTRS{idVendor}=="1199", ATTRS{idProduct}=="9071", ENV{.MM_USBIFNUM}=="00", ENV{ID_MM_PORT_TYPE_QCDM}="1"<br>
><br>
> # EM7565: Add port hints<br>
> # if 03: primary port<br>
> # if 02: raw NMEA port<br>
> # if 00: diag/qcdm port<br>
> ATTRS{idVendor}=="1199", ATTRS{idProduct}=="9091", ENV{.MM_USBIFNUM}=="03", ENV{ID_MM_PORT_TYPE_AT_PRIMARY}="1"<br>
> ATTRS{idVendor}=="1199", ATTRS{idProduct}=="9091", ENV{.MM_USBIFNUM}=="02", ENV{ID_MM_PORT_TYPE_GPS}="1"<br>
> ATTRS{idVendor}=="1199", ATTRS{idProduct}=="9091", ENV{.MM_USBIFNUM}=="00", ENV{ID_MM_PORT_TYPE_QCDM}="1"<br>
><br>
> LABEL="mm_sierra_end"<br>
><br>
><br>
> Is this rule file fit to my modem?<br>
> Or do I need new rule file for this modem?<br>
><br>
<br>
The rule files are "helpers" really, there is no need for the rule<br>
files usually. In your case, I believe the modem isn't using any of<br>
the rule files that ModemManager provides.<br>
<br>
> And do I need special settings in /etc/config/network ? I know basic settings for this:<br>
> config interface 'broadband'<br>
> option device '/sys/devices/platform/1a0c0000.usb/usb1/1-2'<br>
> option proto 'modemmanager'<br>
> option apn 'whatever corect apn here'<br>
> option username ''<br>
> option password ''<br>
> option pincode ''<br>
> option lowpower '1'<br>
><br>
<br>
As in the previous email, you probably don't need username, password,<br>
and lowpower. And you only need pincode if your SIM card is<br>
PIN-locked, which may not be.<br>
<br>
Cheers!<br>
<br>
-- <br>
Aleksander<br>
<a href="https://aleksander.es" rel="noreferrer" target="_blank">https://aleksander.es</a><br>
</blockquote></div>