I have the same issue on my pinephone, with PM OS edge, Phosh, running modem-manager 1.16.2-r1.
I tried my – not up to date – pinephone with Manjaro Arm, Phosh, which uses the "modemmanager-pp" package in version 1.14.8-3. After booting I received all my sms on this phone back to 28th of February.
I don't.
I ran ModemManager with a --debug option and it appears to somehow react to texts being sent to it, but I don't understand these logs at all. Could as well be some periodic network check. There are no warnings nor errors.
Before I flashed pmOS, Android said the modem version was A500FUXXU1CPH3. It might have been upgraded at some point, since the Android version was 6.0.1 and this model shipped with 4.4.4.
Well, I have only a PinePhone, but I'm not sure about the samsung-a5ulte.
According to the device wiki, @Minecrell and @minlexx at least have these devices.
I've had the same issue on Motorola Harpia XT1602. I could send SMS but not receive them. OS version was 20210216 from images.postmarketos.org. mmcli showed nothing on the modem. I sent the sms from my other phone, and I can be sure there were no emojis or other non-ascii characters. As soon as I reflashed lineageOS, the messages arrived within a minute or so.
Thank you for your reports, @furtarball, @nieral and @Irihapeti!
I've just sent several SMS to my PinePhone with up-to-date postmarketOS edge, but I can't reproduce the problem :\
Sent while not suspended
Sent while suspended (phone woke up: screen flashed briefly; I unlocked it and after ~10s the SMS arrived)
Sent one SMS with emoji and another one without emoji afterwards
The one with emoji did not arrive (bug #861 (closed)), but the other one did
@nieral wrote:
I have the same issue on my pinephone, with PM OS edge, Phosh, running modem-manager 1.16.2-r1.
I tried my – not up to date – pinephone with Manjaro Arm, Phosh, which uses the "modemmanager-pp" package in version 1.14.8-3. After booting I received all my sms on this phone back to 28th of February.
Oh, I see the problem! Alpine's version of modemmanager (currently 1.16.2-r2) is installed on your system, instead of the postmarketOS one ("9999-r2", which is 1.14.8 as seen in the APKBUILD).
I'm looking at !1931 right now, which will drop the fork anyway... but my postmarketOS time is up for today
So in conclusion, I'm not sure yet what happened here, it might be more than one issue. The Alpine package being installed instead of the pmOS package is definitively unexpected, but I'm not sure if it should have lead to SMS missing or not. We'll drop the pmOS specific fork soon, but that might only work properly with the eg25-manager configs for the pinephone in !1931. (@dylanvanassche?)
And all of that does not explain at all why it does not work with motorola-harpia, apparently there wasn't even the "wrong" modemmanager package installed. For harpia, it only seems obvious that modemmanager did not work, but ofono (Plasma Mobile) did.
CC @Minecrell, maybe you have additional insights here.
Oh, I see the problem! Alpine's version of modemmanager (currently 1.16.2-r2) is installed on your system, instead of the postmarketOS one ("9999-r2", which is 1.14.8 as seen in the APKBUILD).
I checked that again. 1.16.2-r2 is installed next to modemmanager-9999-r2 (at least this is what apk info modemmanager* says).
But I was able to solve my problem by following the solution on pine64' wiki (see link above) and deleting the saved sms with
$ sudo mmcli -m 3 --messaging-delete-sms=XX (xx is the number of sms saved by modemmanager which is shown via mmcli - m 3 --messaging-list-sms)
Thank you anyway! I really appreciate the fast response on gitlab by you and the other developers.
And all of that does not explain at all why it does not work with motorola-harpia
And samsung-a5ulte, mind you. This is the exact same problem I have, my modemmanager is on version 9999, too. I forgot to mention it up in the initial report, but SMS sending and calls (maybe besides some pulseaudio shenanigans, but that's a topic for another issue report) work just fine.
Ok. I misunderstood "installed size"...
apk list shows only modemmanager-9999-r2 and modemmanager-openrc-9999-r2. Monday, 08 March 2021, 07:05PM +01:00 from Alexey Min gitlab@mg.gitlab.com :
Oh, getting apk to display the installed versions is indeed not so intuitive. I've added it to the cheat sheet (which gets linked to when logging into SSH for the first time nowadays):
samsung-a5ulte / motorola-harpia: messages don't even make it into the queue of modemmanager, while they are received fine with ofono
So let's make this issue about the latter.
To move this forward, I suggest looking into modemmanager logs / poking around with CLI utils to see what's going on.
@aleksander0m, as modemmanager upstream, do you have a more detailed advice / what to look for?
EDIT: I'm removing the regression label, since I didn't see any report that this worked on the devices in question before. Please correct me if that's wrong.
@furtarball got your logs. What you're receiving is a "Transfer Route MT Message", and MM doesn't currently handle those well. There's some work/discussion ongoing here https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/257 and at some point we'll get it implemented. You're not receiving a normal SMS message though, the transfer route MT messages are usually MMS indications that need to be handled differently.
I sent @aleksander0m more logs after trying to receive texts from two pre-2010 phones and the same one from before. They were all very different. He said none of them indicate that an SMS message is being received.
What are they, then? Is the modem talking to the network completely incorrectly and misunderstanding the data it receives?
@furtarball one of the messages you posted was a signal quality indication, another one a WDS indication reporting channel active & then dormant, and another one was an indication reporting registration status. None of those are new SMS indications.
Is the modem talking to the network completely incorrectly and misunderstanding the data it receives?
No. Those are indications you would normally receive even without any SMS being received.
Maybe the SMS messages are not being notified via QMI WMS indications and are only notified via AT URCs? Would you be able to get some ofono logs to see how they're processed? We added a change in MM recently to enable both WMS+AT indications for SMS messages, not just one or the other, maybe that could help you. @dylanvanassche is that change ported to postmarketos?
Would you be able to get some ofono logs to see how they're processed?
Uhh… how exactly? None of the ways to get a log out of ofono I was able to find work on postmarketOS. Is monitor-ofono from ofono-scripts good enough? It outputs nothing besides the contents, date, and sender of a message.
Uhh… how exactly? None of the ways to get a log out of ofono I was able to find work on postmarketOS.
You can sudo rc-service ofono stop and then start it in debug mode like sudo ofonod --debug --nodetach. The output isn't as nice as the one from ModemManager though :)
@aleksander0m I have a similar issue on my bq-paella, not sure why @Minecrell don't have this issue (maybe because paella bought for less than a pizza price are perfectly working :-P).
By default my paella modem has this storage settings for SMS:
+CPMS: "ME",0,11,"ME",0,11,"SM",0,10
With this configuration, if someone sends me an SMS I can see from debug logs that I receive it as Transfer Route MT Message and it doesn't shows up in Phosh.
BUT! By changing the defaults storages for SMS to:
+CPMS: "MT",0,11,"MT",0,11,"MT",0,11
with sudo echo 'AT+CPMS="MT","MT","MT"' | sudo atinout - /dev/modem-at - I then receive SMS correctly. I can send you logs for both the storage settings if you need them.
I have a similar issue on my bq-paella, not sure why @Minecrell don't have this issue (maybe because paella bought for less than a pizza price are perfectly working :-P).
Usually I don't run GUIs and to be honest I'm not sure I ever tested receiving SMS. I was happy enough when sending SMS worked, eventually voice calls had audio and at some point I managed to get mobile data working :)
I mean that the Chats app finally receives texts as it should, both new and previously unreceived.
Great!
@aleksander0m Do you have an idea why this magic AT command helps, and if we should do it automatically in ModemManager? (Also, maybe there is an alternative QMI command for it?)
@aleksander0m Do you have an idea why this magic AT command helps, and if we should do it automatically in ModemManager? (Also, maybe there is an alternative QMI command for it?)
This may be a bug in the MM logic actually:
The QMI modem by default will support 2 different storages: ME (modem) and SM (SIM), see messaging_load_supported_storages_finish() in mm-broadband-modem-qmi.c.
Then, in the mm-iface-modem-messaging.c enabling procedure there is a case ENABLING_STEP_STORAGE_DEFAULTS step, which selects one default storage that will be used for storing, using get_single_default_sms_storage() or get_best_initial_default_sms_storage() (I'd say the second).
With that default storage, set_default_storage() is called, which in the QMI modem it defaults to messaging_set_default_storage() in the mm-broadband-modem-qmi.c source.
That method uses qmi_client_wms_set_routes() to configure settings for Class 0 (flash) and Class 1 (regular) SMS messages. Same settings for both: action QMI_WMS_RECEIPT_ACTION_STORE_AND_NOTIFY in the storage given by the mm_sms_storage_to_qmi_storage_type() conversion.
Following that flow, I would have said that the set_routes() message should have configured QMI_WMS_STORAGE_TYPE_NV as storage for the received SMS, which would have been equivalent to configuring ME as mem3 in the AT+CPMS command, but now I'm not sure if there's some issue in this flow.
If anyone wants to go over all the steps to review them one by one, that would be nice.
This issue seem to have been solved somehow, at least on a5lte. I no longer have to use the sudo echo 'AT+CPMS="MT","MT","MT"' | sudo atinout - /dev/modem-at - workaround, text messages are received without it
Yeah, I am not sure when it might have been fixed, it definitely did not work in middle of April. Since then (on the occasions I have used the device with a sim card) I have run the workaround out of habit on boot, so any update in the last two months could have fixed it
Could someone else check if receiving texts with phosh seem to work, or if it is still broken?