PINE64
Latest suggestion to fix modem instability? - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: PostmarketOS on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=124)
+---- Thread: Latest suggestion to fix modem instability? (/showthread.php?tid=15228)

Pages: 1 2


Latest suggestion to fix modem instability? - feklee - 10-31-2021

I am running SXMO on postmarketOS stable on a PinePhone UBports Edition. My modem crashes several times a day, on bad days every few minutes, on good days maybe just twice. On IRC someone suggested to flash Biktorgj's Pinephone Modem SDK. Now I wonder if this is a good idea, or if there are simpler remedies now. Flashing involves building the whole thing, which requires me to free up 50 GB on disk and probably takes ages.


RE: Latest suggestion to fix modem instability? - mark1250 - 10-31-2021

(10-31-2021, 01:53 PM)feklee Wrote: I am running SXMO on postmarketOS stable on a PinePhone UBports Edition. My modem crashes several times a day, on bad days every few minutes, on good days maybe just twice. On IRC someone suggested to flash Biktorgj's Pinephone Modem SDK. Now I wonder if this is a good idea, or if there are simpler remedies now. Flashing involves building the whole thing, which requires me to free up 50 GB on disk and probably takes ages.

You don't have to build it yourself, as Biktorgj has pre-made releases available here .

I'm running Phosh on PostmarketOS edge with  01.002.01.002 firmware. The modem does drop out occasionally, but self recovers pretty quickly (I'll wake the phone up and see that there is no cellular signal strength shown on the lock screen. I enter my PIN, and withing 15 seconds the cellular signal strength meter is back in the status bar. And then another few seconds later the 4G symbol is in the status bar.) - I'm in the US using StraightTalk MVNO on AT&T.

I had used Biktorgj's firmware up to 2 weeks ago and in my experience that stock firmware recovers faster. - You experience my differ from mine.

Mark


RE: Latest suggestion to fix modem instability? - feklee - 10-31-2021

(10-31-2021, 02:14 PM)mark1250 Wrote: You don't have to build it yourself, as Biktorgj has pre-made releases available here .

Thanks!

Quote:I'm running Phosh on PostmarketOS edge

Edge has some improvements regarding the modem, so maybe I should switch to that. I was just worried that Edge is too unstable in general. The PinePhone is my main phone.

Quote:self recovers pretty quickly

Mine doesn't, I have to reboot.

Quote:I'm in the US using StraightTalk MVNO on AT&T.

Germany, at the moment, with Telekom.

Quote:I had used Biktorgj's firmware up to 2 weeks ago and in my experience that stock firmware recovers faster.

Interesting, glad I asked.


RE: Latest suggestion to fix modem instability? - Juergen - 11-01-2021

I'm using and testing PMOS edge for several months now, the modem works very well (improvements to ModemManager daemon) and the OS is really stable.


RE: Latest suggestion to fix modem instability? - feklee - 11-01-2021

(11-01-2021, 01:43 AM)Juergen Wrote: I'm using and testing PMOS edge for several months now, the modem works very well (improvements to ModemManager daemon) and the OS is really stable.

OK, I just updated to Edge. Already had two modem crashes within an hour. But, diagnostics seems to be a bit better (or I didn't realize it before). When I run nmcli c up Telekom it says: "PIN code is needed [...]"

So I switched to nmcli --ask c up Telekom, and after entering the PIN of my SIM, the network came back up. I assume this PIN is also in the way of the automatic recoveries. Is there any way to hardcode the PIN?

Otherwise I may deactivate the PIN on my SIM, which is OK for that one because it's prepaid anyhow.


RE: Latest suggestion to fix modem instability? - feklee - 11-02-2021

(11-01-2021, 07:31 AM)feklee Wrote: Otherwise I may deactivate the PIN on my SIM, which is OK for that one because it's prepaid anyhow.

Did that now, and documented it in the SXMO wiki:

Code:
mmcli -i any --pin=1234 --disable-pin

However, that likely will not mitigate all the modem crashes. Yesterday, for example, I got the error message that the modem is not found, requiring me to reboot.


RE: Latest suggestion to fix modem instability? - feklee - 11-09-2021

Update: The modem crashes as often as before, often times requiring a reset of the device. So upgrading to Edge and disabling the PIN did not resolve the issue. So I may as well try the Biktorgj firmware.

Hopefully, the PinePhone Pro will be more robust, and hopefully I can get a dev edition.  Smile


RE: Latest suggestion to fix modem instability? - feklee - 11-26-2021

My attempt at flashing the modem bricked it. What to do?  Cry

Here's how I proceeded, with error messages at the end:

  1. Checked version of ADSP firmware:
    Code:
    $ mmcli -m any --command="AT+QGMR"
    response: 'EG25GGBR07A08M2G_01.001.01.001'
  2. Upgraded to ADSP version 01.003.01.003:
    Code:
    # cd /tmp
    # wget https://github.com/Biktorgj/quectel_eg25_recovery/raw/EG25GGBR07A08M2G_01.003.01.003/update/NON-HLOS.ubi
    # echo -ne "AT+QFASTBOOT\r" > /dev/ttyUSB2
    # fastboot flash modem NON-HLOS.ubi && fastboot reboot
  3. Flashed the Biktorgj firmware, and that failed:
    Code:
    $ cd ~/src
    $ wget https://github.com/Biktorgj/pinephone_modem_sdk/releases/download/0.4.2/package.tar.gz
    $ mkdir firmware
    $ tar xzf package.tar.gz -C firmware
    $ cd firmware
    $ sudo ./flashall
    Sending AT+QFASTBOOT...
    FAILED (remote: 'unknown command')
    fastboot: error: Command failed
    Sending 'aboot' (486 KB)                          OKAY [  0.024s]
    Writing 'aboot'                                    OKAY [  0.209s]
    Finished. Total time: 0.244s
    Rebooting                                          OKAY [  0.018s]
    Finished. Total time: 0.068s
    < waiting for any device >
    OKAY [  0.002s]
    Finished. Total time: 0.003s
    Sending 'boot' (4566 KB)                          OKAY [  0.150s]
    Writing 'boot'                                    FAILED (Status read failed (No such device))
    fastboot: error: Command failed
    ./flashall: exit: line 11: Illegal number: Failed to flash main kernel

Phew fixed, Biktor pointed me to the recovery instructions: My modem won't boot anymore

Afterwards, flashing went smoothly.  Smile


RE: Latest suggestion to fix modem instability? - skunk - 01-20-2022

hey feklee, did flashing the modem resolve the stability issue?


RE: Latest suggestion to fix modem instability? - undata - 01-31-2022

My suggestion is: don't have preferences. For example I wasn't getting replies in SMS from my wife. I messed around and tried configuring the modem. Luckily I did not do too much damage, because I found out the culprit was iMessage. My carrier still thinks the sim card is in an iPhone. Once she turned off iMessage, everything working just fine. If it looks viable just out of the box, then maybe tweak it. Otherwise, unless you are an expert on whatever speciality, like mobile modems, you will probably be thrashing around in quicksand...