[OpenWrt-Devel] Unable to read SMS with uqmi

Ameretat Reith ameretat.reith at gmail.com
Mon Nov 28 17:53:04 EST 2016


Hi Aleksander

> uqmi will include in the --list-messages output SMS messages stored in
> the UIM storage (e.g. the SIM card, QMI_WMS_STORAGE_TYPE_UIM) and also
> only those flagged as not-read (i.e.g
> QMI_WMS_MESSAGE_TAG_TYPE_MT_NOT_READ). If I'm not mistaken, here's
> that selection:
> http://git.openwrt.org/?p=project/uqmi.git;a=blob;f=commands-wms.c;h=700d79ff9636c3cdb06ef34d33c3f3ce21d226dc;hb=HEAD#l42
>
> Could it be that the SMS messages you expect to see are in another
> storage (e.g. in the device storage, QMI_WMS_STORAGE_TYPE_NV)?
>
> Or, could it be that you don't have non-read SMS messages?
>

hmm. I'm not sure I get what do you mean by device storage.. I put sim
into router
board, send an SMS and wait a while. I cannot read it back with `uqmi` when I
start smstools, can see SMS in `/var/spool/sms` fetched by `smstools`.
So It was
non-read too.

It seems stupid, but can it be because SMS on my network are PDP encoded?

BTW, It's procedure I'm following:

# uqmi -d /dev/cdc-wdm0 --verify-pin1 <pin>
# uqmi -d /dev/cdc-wdm0 --network-register
# uqmi -d /dev/cdc-wdm0 --get-serving-system
{
  "registration": "registered",
  "roaming": "false",
  ...
}
# uqmi -d /dev/cdc-wdm0 --list-messages
[

]
# uqmi -d /dev/cdc-wdm0 --get-current-settings
"Out of call"
# uqmi -d /dev/cdc-wdm0 --set-client-id wms,$(uqmi -d /dev/cdc-wdm0
--get-client-id wms) --get-current-settings
"Out of call"
# uqmi -d /dev/cdc-wdm0 --start-network --apn internet --autoconnect
20908112
# uqmi -d /dev/cdc-wdm0 --get-data-status
"connected"
# uqmi -d /dev/cdc-wdm0  --get-current-settings
{
        "pdp-type": "ipv4",
        "ip-family": "ipv4",
        "mtu": 1500,
        "ipv4": {
                ...
        },
        "ipv6": {

        },
        "domain-names": {

        }
}
# uqmi -d /dev/cdc-wdm0  --list-messages
[

]


I had doubt about that `Out of call` status, so connected to 3G too
see how much It can be problem :)
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list