Open beatstick opened 3 years ago
I got this info from logread:
at Jun 19 00:11:20 2021 user.notice ModemManager: hotplug: modem exported succe ssfully at /sys/devices/platform/101c0000.ehci/usb1/1-1
Sat Jun 19 00:11:20 2021 user.notice ModemManager: hotplug: setting interface 'v odafone' as available
Sat Jun 19 00:11:20 2021 daemon.notice netifd: Interface 'vodafone' is setting u p now
Sat Jun 19 00:11:20 2021 daemon.notice netifd: vodafone (3221): modem available at /org/freedesktop/ModemManager1/Modem/0
Sat Jun 19 00:11:20 2021 daemon.notice netifd: vodafone (3221): starting connect ion with apn 'internet'...
Sat Jun 19 00:11:20 2021 daemon.info [1753]:
It seems the error has nothing to do with the pin but with the powerstate of the modem:
--> couldn't load powe r state: Unhandled power state: 'shutting-down' (5)
I found partial solution according to these manual pages: https://manpages.ubuntu.com/manpages/bionic/man8/mmcli.8.html first find modem: mmcli -L
mmcli -e -m /org/freedesktop/ModemManager1/Modem/0
mmcli -m 0 --simple-connect="pin=1234,apn=internet"
I guess I could run those commands in a startup script, but there might be a better solution?
How do I tell openwrt that this is the modem to use now? Do I have to set a gateway/dns provider in /etc/config/network?
/etc/config/network
?/etc/config/firewall
?Yes, I followed these instructions here:
Download OpenWrt firmware image here.
Flash your router using this guide.
SSH into your router: ssh root@192.168.1.1.
Add a new interface in /etc/config/network.
option device 'switch0'
option vlan '2'
option ports '4 6t'
+ +config interface 'vodafone'
option password 'web'
Get the path of your device from mmcli -m 0. Do not use /dev/cdc-wdm0.
Add the newly added interface in /etc/config/firewall.
config zone option name wan list network 'wan' list network 'wan6'
list network 'vodafone' option input REJECT option output ACCEPT option forward REJECT
Reboot your router: reboot.
Maybe I need to upgrade to the routers newest original firmware first, or won't that make no difference? Is the modem still treated as a seperate android device and needs to be updated as well, as in v1 of the router?
I got it to work now, but I think the lte modem is disabled on openwrt startup for some reason. So I have to start the whole shebang manually:
add to /etc/rc.local:
sleep 60 mmcli -e -m /org/freedesktop/ModemManager1/Modem/0 mmcli -m 0 --simple-connect="pin=XXXX,apn=internet" ifup vodafone
Hi, I am trying to get the lte modem to work with openwrt. This is the output I get from the command: mmcli -m 0:
Status | lock: sim-pin2 | unlock retries: sim-pin (3), sim-puk (10), sim-pin2 (3), sim-puk2 (10) | state: disabled | power state: on | signal quality: 0% (cached)
I've set everything according to the install instruction: https://gist.github.com/gamwe6/ef726b550037957a4d6d5255dc7efa7a
I've tried disabling the pin code on the sim card (on my android phone), entering pin2 instead of pin 1 etc, but I always get the status lock:sim-pin(2) message. What can I do. (Carrier is drillisch which is vodafone exactly as in the install instructions).
Any help would be appreciated.