Closed yannick2801 closed 11 months ago
Changes are made on ModemManager in latest snapshot. But I think you can increase wait time when you edit modems interfaces.
Do you meen i should add a few seconds of latency ? (is it in seconds ?)
No, I was thinking there is a wait time field, but it's not for this protocol. You can try to update to latest snapshot and if you still have the issue I will try to fix it.
same probleme with an image in Kernel 6.1 :
root@OpenMPTCProuter:~# uname -a
Linux OpenMPTCProuter 6.1.55 #0 SMP PREEMPT Mon Sep 25 21:21:09 2023 aarch64 GNU/Linux
need to restart ModemModule to get the network. can it be because the ModemManager are not detected at the begginning, maybe...
Should not be a problem, a script run in background.
What do you have when this doesn't work when you do, via SSH on the router, a mmcli -L
(you need to wait a little after router start before getting any valuable output) and, if you have output, mmcli -m 0
(where 0 is the number at the end of the /org/freedesktop/ModemManager1/Modem/0 line) ?
I need also the output of ifstatus QUECTEL1
.
When i Start the router i have this :
root@OpenMPTCProuter:~# mmcli -L
/org/freedesktop/ModemManager1/Modem/1 [Quectel] RM520N-GL
/org/freedesktop/ModemManager1/Modem/0 [Quectel] RM520N-GL
/org/freedesktop/ModemManager1/Modem/2 [Quectel] RM520N-GL
root@OpenMPTCProuter:~# mmcli -m 0
SIM | primary sim path: /org/freedesktop/ModemManager1/SIM/0 | sim slot paths: slot 1: /org/freedesktop/ModemManager1/SIM/0 (active) | slot 2: none
root@OpenMPTCProuter:~# ifstatus QUECTEL1 { "up": false, "pending": false, "available": false, "autostart": true, "dynamic": false, "proto": "modemmanager", "data": {
},
"errors": [
{
"subsystem": "interface",
"code": "NO_DEVICE"
}
]
} root@OpenMPTCProuter:~#
What is the result of uci show network
?
root@OpenMPTCProuter:~# uci show network
network.loopback=interface network.loopback.proto='static' network.loopback.ipaddr='127.0.0.1' network.loopback.netmask='255.0.0.0' network.loopback.multipath='off' network.loopback.device='lo' network.loopback.metric='5' network.globals=globals network.globals.ula_prefix='fdbd:a475:f759::/48' network.globals.packet_steering='1' network.globals.multipath='enable' network.globals.mptcp_path_manager='fullmesh' network.globals.mptcp_scheduler='blest' network.globals.congestion='cubic' network.globals.mptcp_checksum='0' network.globals.mptcp_debug='0' network.globals.mptcp_syn_retries='2' network.globals.mptcp_subflows='3' network.globals.mptcp_add_addr_accepted='1' network.globals.mptcp_add_addr_timeout='120' network.globals.mptcp_fullmesh_num_subflows='1' network.globals.mptcp_fullmesh_create_on_err='1' network.globals.mptcp_ndiffports_num_subflows='1' network.lan=interface network.lan.proto='static' network.lan.ipaddr='192.168.100.1' network.lan.netmask='255.255.255.0' network.lan.device='eth0' network.lan.ifname='eth0' network.lan.metric='6' network.lan.ipv6='0' network.lan.delegate='0' network.lan.addlatency='0' network.lan.txqueuelen='2000' network.lan.multipath='off' network.lan.ip4table='lan' network.lan.defaultroute='0' network.lan.peerdns='0' network.lan_rule=rule network.lan_rule.lookup='lan' network.lan_rule.priority='100' network.wan1_dev=device network.wan1_dev.name='wan1' network.wan1_dev.txqueuelen='1000' network.wan1_dev.type='macvlan' network.wan1_dev.ifname='eth1' network.wan1_dev.mode='vepa' network.wan1_dev.macaddr='de:8d:e8:b3:89:34' network.wan2_dev=device network.wan2_dev.name='wan2' network.wan2_dev.txqueuelen='1000' network.wan2_dev.type='macvlan' network.wan2_dev.ifname='eth2' network.wan2_dev.mode='vepa' network.wan2_dev.macaddr='60:be:22:0a:fb:8c' network.omrvpn=interface network.omrvpn.device='tun0' network.omrvpn.proto='none' network.omrvpn.ip4table='vpn' network.omrvpn.multipath='off' network.omrvpn.leasetime='12h' network.omrvpn.type='tunnel' network.omrvpn.txqueuelen='100' network.omrvpn.metric='1500' network.omrvpn.mtu='1440' network.omr6in4=interface network.omr6in4.proto='6in4' network.omr6in4.ip4table='vpn' network.omr6in4.multipath='off' network.omr6in4.ipaddr='10.255.251.2' network.omr6in4.peeraddr='10.255.251.1' network.omr6in4.gateway='fe80::a00:1/126' network.omr6in4.ip6addr='fe80::a00:2/126' network.omr6in4.auto='0' network.omr6in4.metric='1201' network.tun0=device network.tun0.name='tun0' network.tun0.mtu='1500' network.QUECTEL1=interface network.QUECTEL1.proto='modemmanager' network.QUECTEL1.pincode='0000' network.QUECTEL1.iptype='ipv4v6' network.QUECTEL1.multipath='on' network.QUECTEL1.addlatency='0' network.QUECTEL1.ipv6='0' network.QUECTEL1.metric='7' network.QUECTEL1.defaultroute='0' network.QUECTEL1.peerdns='0' network.QUECTEL1.device='/sys/devices/platform/fe3c0000.usb/usb6/6-1' network.QUECTEL1.delegate='0' network.QUECTEL2=interface network.QUECTEL2.proto='modemmanager' network.QUECTEL2.pincode='0000' network.QUECTEL2.iptype='ipv4v6' network.QUECTEL2.multipath='master' network.QUECTEL2.addlatency='0' network.QUECTEL2.device='/sys/devices/platform/usb@fe900000/fe900000.usb/xhci-hcd.1.auto/usb4/4-1' network.QUECTEL2.metric='10' network.QUECTEL2.defaultroute='0' network.QUECTEL2.peerdns='0' network.QUECTEL2.ipv6='0' network.QUECTEL2.delegate='0' network.QUECTEL3=interface network.QUECTEL3.proto='modemmanager' network.QUECTEL3.device='/sys/devices/platform/fe380000.usb/usb8/8-1' network.QUECTEL3.pincode='0000' network.QUECTEL3.iptype='ipv4v6' network.QUECTEL3.multipath='on' network.QUECTEL3.addlatency='0' network.QUECTEL3.metric='11' network.QUECTEL3.defaultroute='0' network.QUECTEL3.peerdns='0' network.QUECTEL3.ipv6='0' network.QUECTEL3.delegate='0' network.QUECTEL3_dev=device network.QUECTEL2_dev=device network.QUECTEL1_dev=device network.lan_dev=device network.lan_dev.name='eth0' root@OpenMPTCProuter:~#
From Modemamanger I see: /sys/devices/platform/fe3c0000.usb/usb5/5-1
In the config for Quectel1: network.QUECTEL1.device='/sys/devices/platform/fe3c0000.usb/usb6/6-1
And I can't see anything in usb5 in the config, there is something strange here.
i have restarted all the router then i have restarted all the ModemManagers
mmcli -L /org/freedesktop/ModemManager1/Modem/3 [Quectel] RM520N-GL /org/freedesktop/ModemManager1/Modem/2 [Quectel] RM520N-GL /org/freedesktop/ModemManager1/Modem/4 [Quectel] RM520N-GL
Bearer | paths: /org/freedesktop/ModemManager1/Bearer/5
ifstatus QUECTEL1
{ "up": true, "pending": false, "available": true, "autostart": true, "dynamic": false, "uptime": 119, "l3_device": "wwan0", "proto": "modemmanager", "updated": [ "addresses", "routes", "prefixes" ], "metric": 7, "dns_metric": 0, "delegation": false, "ipv4-address": [ { "address": "192.0.0.2", "mask": 27 } ], "ipv6-address": [ { "address": "2a01:cb06:b800:7cb3:b4a2:dd14:b3d:a224", "mask": 128 } ], "ipv6-prefix": [ { "address": "2a01:cb06:b800:7cb3::", "mask": 64, "class": "QUECTEL1", "assigned": {
}
}
],
"ipv6-prefix-assignment": [
],
"route": [
{
"target": "2a01:cb06:b800:7cb3:f558:a77c:532:78ad",
"mask": 128,
"nexthop": "::",
"source": "::/0"
}
],
"dns-server": [
],
"dns-search": [
],
"neighbors": [
],
"inactive": {
"ipv4-address": [
],
"ipv6-address": [
],
"route": [
{
"target": "::",
"mask": 0,
"nexthop": "2a01:cb06:b800:7cb3:f558:a77c:532:78ad",
"source": "2a01:cb06:b800:7cb3:b4a2:dd14:b3d:a224/64"
},
{
"target": "0.0.0.0",
"mask": 0,
"nexthop": "192.0.0.1",
"source": "192.0.0.2/32"
}
],
"dns-server": [
"192.0.0.1",
"2a01:cd00:7fff:0:192:168:10:110"
],
"dns-search": [
],
"neighbors": [
]
},
"data": {
}
}
uci show network
network.loopback=interface network.loopback.proto='static' network.loopback.ipaddr='127.0.0.1' network.loopback.netmask='255.0.0.0' network.loopback.multipath='off' network.loopback.device='lo' network.loopback.metric='5' network.globals=globals network.globals.ula_prefix='fdbd:a475:f759::/48' network.globals.packet_steering='1' network.globals.multipath='enable' network.globals.mptcp_path_manager='fullmesh' network.globals.mptcp_scheduler='blest' network.globals.congestion='cubic' network.globals.mptcp_checksum='0' network.globals.mptcp_debug='0' network.globals.mptcp_syn_retries='2' network.globals.mptcp_subflows='3' network.globals.mptcp_add_addr_accepted='1' network.globals.mptcp_add_addr_timeout='120' network.globals.mptcp_fullmesh_num_subflows='1' network.globals.mptcp_fullmesh_create_on_err='1' network.globals.mptcp_ndiffports_num_subflows='1' network.lan=interface network.lan.proto='static' network.lan.ipaddr='192.168.100.1' network.lan.netmask='255.255.255.0' network.lan.device='eth0' network.lan.ifname='eth0' network.lan.metric='6' network.lan.ipv6='0' network.lan.delegate='0' network.lan.addlatency='0' network.lan.txqueuelen='2000' network.lan.multipath='off' network.lan.ip4table='lan' network.lan.defaultroute='0' network.lan.peerdns='0' network.lan_rule=rule network.lan_rule.lookup='lan' network.lan_rule.priority='100' network.wan1_dev=device network.wan1_dev.name='wan1' network.wan1_dev.txqueuelen='1000' network.wan1_dev.type='macvlan' network.wan1_dev.ifname='eth1' network.wan1_dev.mode='vepa' network.wan1_dev.macaddr='de:8d:e8:b3:89:34' network.wan2_dev=device network.wan2_dev.name='wan2' network.wan2_dev.txqueuelen='1000' network.wan2_dev.type='macvlan' network.wan2_dev.ifname='eth2' network.wan2_dev.mode='vepa' network.wan2_dev.macaddr='60:be:22:0a:fb:8c' network.omrvpn=interface network.omrvpn.device='tun0' network.omrvpn.proto='none' network.omrvpn.ip4table='vpn' network.omrvpn.multipath='off' network.omrvpn.leasetime='12h' network.omrvpn.type='tunnel' network.omrvpn.txqueuelen='100' network.omrvpn.metric='1500' network.omrvpn.mtu='1440' network.omr6in4=interface network.omr6in4.proto='6in4' network.omr6in4.ip4table='vpn' network.omr6in4.multipath='off' network.omr6in4.ipaddr='10.255.251.2' network.omr6in4.peeraddr='10.255.251.1' network.omr6in4.gateway='fe80::a00:1/126' network.omr6in4.ip6addr='fe80::a00:2/126' network.omr6in4.auto='0' network.omr6in4.metric='1201' network.tun0=device network.tun0.name='tun0' network.tun0.mtu='1500' network.QUECTEL1=interface network.QUECTEL1.proto='modemmanager' network.QUECTEL1.pincode='0000' network.QUECTEL1.iptype='ipv4v6' network.QUECTEL1.multipath='on' network.QUECTEL1.addlatency='0' network.QUECTEL1.ipv6='0' network.QUECTEL1.metric='7' network.QUECTEL1.defaultroute='0' network.QUECTEL1.peerdns='0' network.QUECTEL1.device='/sys/devices/platform/fe3c0000.usb/usb6/6-1' network.QUECTEL1.delegate='0' network.QUECTEL2=interface network.QUECTEL2.proto='modemmanager' network.QUECTEL2.pincode='0000' network.QUECTEL2.iptype='ipv4v6' network.QUECTEL2.multipath='master' network.QUECTEL2.addlatency='0' network.QUECTEL2.device='/sys/devices/platform/usb@fe900000/fe900000.usb/xhci-hcd.1.auto/usb4/4-1' network.QUECTEL2.metric='10' network.QUECTEL2.defaultroute='0' network.QUECTEL2.peerdns='0' network.QUECTEL2.ipv6='0' network.QUECTEL2.delegate='0' network.QUECTEL3=interface network.QUECTEL3.proto='modemmanager' network.QUECTEL3.device='/sys/devices/platform/fe380000.usb/usb8/8-1' network.QUECTEL3.pincode='0000' network.QUECTEL3.iptype='ipv4v6' network.QUECTEL3.multipath='on' network.QUECTEL3.addlatency='0' network.QUECTEL3.metric='11' network.QUECTEL3.defaultroute='0' network.QUECTEL3.peerdns='0' network.QUECTEL3.ipv6='0' network.QUECTEL3.delegate='0' network.QUECTEL3_dev=device network.QUECTEL2_dev=device network.QUECTEL1_dev=device network.lan_dev=device network.lan_dev.name='eth0' root@OpenMPTCProuter:~#
It's seems that device interface used on first boot of ModemManager is not the same after...
Can you try to change in /etc/init.d/modemanager
the START=70
to START=90
and reboot ?
Else I will need to do something to detect this strange case...
it seems to be the same problems. it's hard to get the network on the modemManager, i need to restart them a fews times. one still do not reconnect for now:
If you do a ifup QUECTEL3
then it's working ? if not, a ifup QUECTEL3 && ifdown QUECTEL3
?
it worked when it's the MM_MODEM_DISABLED error :
OK, I will check what I can do for both cases...
Do you think i can copie this file into a router in 5.4 because in a 6.1 router my VPS doesn't works properly (Issue 3055)
BR Yannick
when I start the router, the interfaces don't start properly automatically, I have to restart each interface until the modemManager catches the network
Specifications
After restart, we catch the IPs and the network works properly :
how can it restart automaticaly si the network is not catched up ?