[OpenWrt-Devel] [ModemManager] How can I make ModemManager work right?

Jeonghum Joh oosaprogrammer at gmail.com
Mon May 11 05:31:45 EDT 2020


Hello Alexsander and people,

I am sorry, I post too much emails......

But, I made it work! As Bjørn said, I tried "ifup broadband" and "ifstatus
broadband". And I got :
{
        "up": true,
        "pending": false,
        "available": true,
        "autostart": true,
        "dynamic": false,
        "uptime": 984,
        "l3_device": "ppp0",
        "proto": "modemmanager",
        "updated": [
                "addresses",
                "routes"
        ],
        "metric": 0,
        "dns_metric": 0,
        "delegation": true,
        "ipv4-address": [
                {
                        "address": "27.165.56.149",
                        "mask": 32
                }
        ],
        "ipv6-address": [

        ],
        "ipv6-prefix": [

        ],
        "ipv6-prefix-assignment": [

        ],
        "route": [
                {
                        "target": "0.0.0.0",
                        "mask": 0,
                        "nexthop": "10.64.64.64",
                        "source": "0.0.0.0\/0"
                }
        ],
        "dns-server": [
                "223.62.230.7",
                "113.217.240.31"
        ],
        "dns-search": [

        ],
        "inactive": {
                "ipv4-address": [

                ],
                "ipv6-address": [

                ],
                "route": [

                ],
                "dns-server": [

                ],
                "dns-search": [

                ]
        },
        "data": {

        }
}

ifconfig shows "ppp0" :
ppp0      Link encap:Point-to-Point Protocol
          inet addr:27.165.56.149  P-t-P:10.64.64.64  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:71 errors:0 dropped:0 overruns:0 frame:0
          TX packets:82 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:6471 (6.3 KiB)  TX bytes:6404 (6.2 KiB)

And ping 8.8.8.8 works!!

Thank you alexander,  Bjørn and people in this list!

But there is still problem the interface is ppp0 not wwan0 or something
like this. I will try to figure out this.
Thank you all.

Jeonghum

2020년 5월 11일 (월) 오후 6:05, Jeonghum Joh <oosaprogrammer at gmail.com>님이 작성:

> Hello Alexander,
>
> I didn't attach antenna. With antenna, I received improved print I think:
>
> root at LEDE:~# mmcli -L
>     /org/freedesktop/ModemManager1/Modem/0 [Quectel] EC25
> root at LEDE:~# mmcli -m 0
>   --------------------------------
>   General  |            dbus path: /org/freedesktop/ModemManager1/Modem/0
>            |            device id: 97ffc2eeb6d3ad975d9089850aa3b9b494529919
>   --------------------------------
>   Hardware |         manufacturer: Quectel
>            |                model: EC25
>            |    firmware revision: EC25EFAR04A02M4G_SKT
>            |            supported: gsm-umts, lte
>            |              current: gsm-umts, lte
>            |         equipment id: 356673040475612
>   --------------------------------
>   System   |               device:
> /sys/devices/platform/1a0c0000.usb/usb1/1-2
>            |              drivers: option
>            |               plugin: Quectel
>            |         primary port: ttyUSB2
>            |                ports: ttyUSB0 (qcdm), ttyUSB2 (at), ttyUSB3
> (at)
>   --------------------------------
>   Numbers  |                  own: 01224316205
>   --------------------------------
>   Status   |       unlock retries: sim-pin (3), sim-pin2 (3), sim-puk
> (10), sim-puk2 (10)
>            |                state: connected        <<<<<<<<<<<<<<<<<<
>            |          power state: on
>            |          access tech: lte
>            |       signal quality: 80% (recent)
>   --------------------------------
>   Modes    |            supported: allowed: 2g, 3g, 4g; preferred: none
>            |              current: allowed: 2g, 3g, 4g; preferred: none
>   --------------------------------
>   IP       |            supported: ipv4, ipv6, ipv4v6
>   --------------------------------
>   3GPP     |                 imei: 356673040475612
>            |          operator id: 45005
>            |        operator name: SKTelecom         <<<<<<<<<<<<<<<<<<
>            |         registration: home         <<<<<<<<<<<<<<<<<<
>   --------------------------------
>   3GPP EPS | ue mode of operation: csps-1
>   --------------------------------
>   SIM      |            dbus path: /org/freedesktop/ModemManager1/SIM/0
>   --------------------------------
>   Bearer   |            dbus path: /org/freedesktop/ModemManager1/Bearer/0
> root at LEDE:~# mmcli -b 0
>   --------------------------------
>   General            |  dbus path: /org/freedesktop/ModemManager1/Bearer/0
>                      |       type: default
>   --------------------------------
>   Status             |  connected: yes
>                      |  suspended: no
>                      |  interface: ttyUSB2
>                      | ip timeout: 20
>   --------------------------------
>   Properties         |        apn: lte-internet.sktelecom.com
>                      |    roaming: allowed         <<<<<<<<<<<<<<<<<<
>   --------------------------------
>   IPv4 configuration |     method: ppp         <<<<<<<<<<<<<<<<<<
> <<<<<<<<<<<<<<<<<<
>                      |     prefix: 0
>   --------------------------------
>   Statistics         |   duration: 60
> root at LEDE:~# mmcli -m 0 --list-bearers
> error: no actions specified
>
>
>
> But IPv4 configuration method is ppp.
> I think this is what you said that the connection is ppp not QMI.
> Then How is this supposed to be in correct and righteous setting? Should
> this be QMI or something like that?
>
> Thank you very much.
> Jeonghum
>
>
>
> 2020년 5월 11일 (월) 오후 4:36, Aleksander Morgado <aleksander at aleksander.es>님이
> 작성:
>
>> Hey!
>>
>> >
>> > I found one :
>> > https://github.com/lkundrak/openwrt-network-manager
>> >
>> > I wonder if this is righty and worthy to try.
>> > I am now trying porting it anyway.
>> >
>>
>> I would first write to lkundrak (who is one of the NetworkManager
>> maintainers) to ask whether this port is usable or not.
>>
>> --
>> Aleksander
>> https://aleksander.es
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20200511/69aba8e2/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list