the-modem-distro / pinephone_modem_sdk

Pinephone Modem SDK: Tools to build your own bootloader, kernel and rootfs
GNU General Public License v3.0
594 stars 64 forks source link

[Ofono] Modem breaks between pre-release 0.26 & 0.27 #22

Closed PsychoGame closed 3 years ago

PsychoGame commented 3 years ago

Hello @Biktorgj ,

You were hoping for some more user reports on modem usage on Ofono. Today I flashed Plasma Mobile Development image, with 0.28 modem which was already running on my Phosh install. To my surprise I found out the modem was in a broken state. I then went back to the last known working modem (for me), which was 0.23. I incrementally upgraded modem FW to 0.27, which broke the modem with ofono again. Went back to version 0.26, which made it working again. It seems the choice to only listen to service 0x1a works perfectly for Phosh related buids, but breaks everything for Ofono (Tested Plasma Mobile / Sailfish OS [Both Ofono])

Biktorgj commented 3 years ago

Turns out the first service requested by oFono is 0x02 and in ModemManager is 0x1a. I'm going to use this to refactor it a bit so it has a bit more order but it's easy to fix

Thanks for the report!

PsychoGame commented 3 years ago

Very nice to hear that it's quite an easy fix. I'll be happy to test it out for you on different OS's when it lands.

Biktorgj commented 3 years ago

Okay, this does not work for me since it doesn't let me place calls or have working data with oFono in postmarketOS Edge KDE, but, stock doesn't work either :)

So if you can give it a shot it would be amazing...

At least network coverage shows and remains between suspend and resume events so at least part of it should be working...

test_ofono.tar.gz

PsychoGame commented 3 years ago

Thank you for the test image. I currenty flashed it, and will do some extensive testing. First impression is indeed that signal strength/network name and that kind of things are showing again in contrary to the 0.2.7 and 0.2.8 builds. Haven't had the time yet to make a phone call, but tonight I'll try to make a call with it, and report back about my experience with it. Currently I'm running Manjaro Plasma Mobile developer image (fully up-to-date). What I have experienced though is when issueing a usb reset, the modem disappears (No hardware info showing in the Cellular Network -> Modem menu) and needs to be re-initialized by issueing 'systemctl restart ofonoctl'. (lsusb is still showing the modem though) But this might also be the case for stock FW I believe, I will check that later as well and report back. Edit 1: In the meantime I have tested calling. Making a phone call, as well as receiving a phone call is working on Manjaro Plasma Mobile. It's just a pity that Ofono itself is really unstable. When modem eventualy gets lost, you need to re-issue 'systemctl restart ofonoctl', but this is also the same on stock FW. So my guess is that the modem functions properly again. As version 0.2.6

Biktorgj commented 3 years ago

New test build is up containing the fix: https://github.com/Biktorgj/pinephone_modem_sdk/releases/tag/0.2.9 Any other issue please let me know