Working modem? - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120) +--- Forum: General Discussion on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=127) +--- Thread: Working modem? (/showthread.php?tid=13117) |
RE: Working modem? - dcinoz - 02-24-2021 (02-24-2021, 02:40 AM)Barugon Wrote:Sorry, I should have read the thread....(02-24-2021, 02:21 AM)dcinoz Wrote: You have to turn Mobile Data on via an on / toggle in the settings. Hopefully that works. Have you checked the settings work on an Android / Apple phone? If you have the correct APN in Access Points and selected it with Mobile Data on, what do you get with: Code: ip a Code: ip r Presume no wwan ip / route. Maybe check your IMS / VoLTE settings, not sure if that could be an issue? Code: mmcli -m any --command='AT+QCFG="ims"' If you have 1,0 as the response, try: Code: mmcli -m any --command='AT+QCFG="ims",0' to turn it off (even though the 2nd 0 means your network hasn't enabled VoLTE). Not sure if that might help. Silly question, perhaps, but do calls / text messages work? Perhaps your operator has a whitelist and Quectel is not allowed to connect / not allowed for data? I presume if you're seeing 4G and signal bars that means you're connected and calls / SMS should work: Code: mmcli -m any --command='AT+QNWINFO' You can confirm you're attached to the packet domain (gives a 1 even with mobile data off): Code: mmcli -m any --command='AT+CGATT?' If data is on and you have an IP address it wil be shown via: Code: mmcli -m any --command='AT+CGPADDR=1' Maybe try 2 or 3 or 4 but presume 1 would be the active one? I seem to have read quite a few US operators have whitelists / had Pinephone working but no longer do. Maybe it's related to that. Definitely confirm it's working on a non-Pinephone but I imagine you have already... I'm just trying to help and hopefully some of the above commands can confirm things. It kinda sounds like the network doesn't accept the Quectel modem to be honest. Not sure if that means calls / SMS text messages would work but not mobile data? If non-VoLTE then calls would be in 3G/2G - is that what happens? My Pinephone is connected to 4G with mobile data off and switches to 3G as my MVNO does not support VoLTE yet. So your 4G with bars doesn't mean it'll work with data, all I'm saying. Anyway, I still haven't figured out if there actually is an AT modem command to enable / disable mobile data as such. I'll try reading Quectel manual again tomorrow - not having the EG25G one might not help. Let us know. Hope this helps a bit more this time. Nothing more frustrating than trying lots of things and not getting it to work. Another thought as it seems Straight Talk works across several operator networks, perhaps you need to enable Data Roaming too? Final one for me tonight, this displays the name of the registered network: Code: mmcli -m any --command='AT+QSPN' RE: Working modem? - dcinoz - 02-24-2021 AT command for network registration but for me it just answers '': Code: mmcli -m any --command='AT+CREG' A lot easier and verbose (works for Mobian): Code: sudo journalctl --since "5 minutes ago" | grep ModemManager Code: sudo journalctl -b You will see e.g.: Code: ModemManager[435]: <info> [modem8] 3GPP registration state changed (registering -> home) Code: ModemManager[435]: <info> [modem8] simple connect started... and when I turn data off: Code: ModemManager[435]: <info> [modem8] state changed (connected -> disconnecting) For Manjaro Plasma Mobile using ofonod / ofonoctl, see https://forum.pine64.org/showthread.php?tid=13213 You can use: Code: sudo systemctl -b eg25manager pinephone-modem-setup.sh manjaro:modem-setup NetworkManager ofonod ofonoctl Code: sudo systemctl -b | grep NetworkManager Code: sudo systemctl -b | grep modem e.g. Code: NetworkManager[3754]: <info> [1614200469.7254] modem["quectelqmi_0"]: modem state changed, 'searching' --> 'registered' (reason: modem ready) You have the ofono commands in the link I posted above: Code: ofonoctl list Code: ofonoctl wan To get the IP / gateway / route assigned Code: sudo ofonoctl wan --connect Code: ip a Code: ip r NOTE currently WWAN DEFAULT ROUTE HAS PRIORITY over Wifi so BEWARE. And the Mobile Data toggle in the settings does not work (not for several of us anyway). So to turn off mobile data delete the wwan0 ip address Code: sudo ip a del <ip_address/xx> dev wwan0 RE: Working modem? - dcinoz - 02-24-2021 Neat on / off mobile data command for Plasma Mobile (not checked with Mobian): Get ip route for wwan0 Code: sudo ip link set dev wwan0 up Delete ip route for wwan0 Code: sudo ip link set dev wwan0 down Seems like there is always a mobile data connection ready in normal circumstances, still don't know how to enable / disable that 'properly'. RE: Working modem? - dcinoz - 02-25-2021 You might find this useful for Plasma Mobile. Script to turn modem on / off and enable / disable data: https://forum.pine64.org/showthread.php?tid=13110&pid=90498#pid90498 RE: Working modem? - Barugon - 02-26-2021 @dcinoz Thanks for all the information. I was trying some of the stuff you posted. I got down to the AT+CREG command and it just started working. I'll spend more time with it this weekend but hopefully it just works now. RE: Working modem? - Barugon - 03-02-2021 It still doesn't work. I don't know why it worked that one time. Could my modem issues be related to this? https://wiki.pine64.org/wiki/PinePhone_1.2_VCONN_Hardware_Fix The phone I have is the UBPorts edition. RE: Working modem? - rocket2nfinity - 03-03-2021 (03-02-2021, 05:47 PM)Barugon Wrote: It still doesn't work. I don't know why it worked that one time. Could my modem issues be related to this?That has nothing to do with modem. Have you physically opened the case to see if the antenna connector is connected? It's the long cable on the left, snaking down from the main board to the usb board. RE: Working modem? - Barugon - 03-03-2021 (03-03-2021, 07:15 PM)rocket2nfinity Wrote: Have you physically opened the case to see if the antenna connector is connected? It's the long cable on the left, snaking down from the main board to the usb board. I assume you mean take out the screws and really open it up. I have only taken the back off to get at the microSD and SIM cards. [edit] Yeah, it's connected. RE: Working modem? - rocket2nfinity - 03-03-2021 How far out are you from a cell tower? Because, i've run out of ideas. Your modem tests and runs ok, it reads sims, antenna is connected... Maybe you're just too far out to get a signal, or maybe something is wrong with the actual antenna, not the cable. Just to double check, I'd download and install a fresh copy of mobian or manjaro beta 6. Both are working correctly. If still not working, I'd reflash the modem firmware. Because there aren't many options left for what could be wrong. RE: Working modem? - Barugon - 03-04-2021 (03-03-2021, 08:47 PM)rocket2nfinity Wrote: How far out are you from a cell tower? Because, i've run out of ideas. Your modem tests and runs ok, it reads sims, antenna is connected... The SIM card is coming straight from my Android phone, so I know the service works fine here. Also, as I stated in an earlier post, it did start working after some poking around but it went right back to not working after I restarted the phone. I've tried Arch, Fedora, Manjaro, Mobian, openSUSe and postmarketOS and I've very recently cycled through all of them just to see if one would work. After flashing the modem firmware, the connection issue became worse. I reflashed the firmware again but it's still the same. Sometimes the phone won't even see the SIM card. |