the-modem-distro / pinephone_modem_sdk

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

Can't receive sms from internal phone number on pmos-22.06 (phosh) #120

Closed bircoph closed 2 years ago

bircoph commented 2 years ago

Hi!

After 0.6.5 -> 0.6.7 update I can no longer sms to internal number. I use new +223344556677 and sent AT+SIMUSMS after update (though I'm not sure it is necessary to send it after firmware update if it was activated before).

I use pinephone, pmos-22.06, phosh-0.17.0-r2.

See attached openqti.log: it is cut from the moment when "uptime" sms was sent to the phone and filtered from "Thermal zones" messages. openqti.log

From what I see in the log, the reply is ready, but can't be sent and is killed by timeout. I have no idea why it is not sent, however. I updated from pmos-21.12-latest-sp to 22.06 together with firmware update. Maybe modem manager or phosh got too smart and rejects sms from invalid number?

bircoph commented 2 years ago

I tested with 0.6.5: it doesn't work as well. So either modemmanager or phosh (or whatever else) refuses to get internal phone sms message. Meanwhile ordinary network sms works fine with both 0.6.5 and 0.6.7, with both sending and receiving.

So my current software stack is: pmos-22.06 modemmanager-1.18.8-r1 phosh-0.17.0-r2

If you need some other info (versions, logs, etc), let me know.

Biktorgj commented 2 years ago

I think you might have some stuck message in modem storage messing with ModemManager, you can run AT+WIPESMS to clear any stuck message. After running it, reboot the phone and it should work

bircoph commented 2 years ago

Thanks, AT+WIPESMS helped.

It is strange though that modemmanager reported empty list before wiping with AT command:

$ mmcli -m any --messaging-list-sms
No sms messages were found
Biktorgj commented 2 years ago

Not sure about it, but it could be that the modem had a partial message in receiving state (a piece of a multipart message), and modemmanager didn't show it?

You can list messages with AT+CMGL=4 (use minicom/microcom to get the full response) if it happens again