ModemManager SMS PIN DEBUG QUESTION
Ben Chan
benchan at chromium.org
Thu May 3 15:58:57 UTC 2018
On Thu, May 3, 2018 at 8:35 AM 刘其峰 <liuqf at fibocom.com> wrote:
> Hi ModemManager Team,
> I'm a software developer from china, i have some question about SMS
and PIN api.
> I had see usage about mmcli and it had some api about pin and sms.
> but i don't know how to use this api, can you give us some help about
mmcli ?
> ght at fibocom:~$ mmcli -L
> Found 1 modems:
> /org/freedesktop/ModemManager1/Modem/2 [Fibocom] L850 LTE
> Module","L850
> ght at fibocom:~$ mmcli -m 2 --pin=1234
> error: no sim was specified
> ght at fibocom:~$ mmcli -s 2 --pin=1234
> error: no sim was specified
You need to specify "-i <index>" to specify the SIM object, e.g. -i 2
> ght at fibocom:~$ mmcli -s 2 --send="123456"
Are you trying to send a SMS here?
Looks like SMS/2 object doesn't exist, you can list the existing SMS
objects using `mmcli -m 2 --messaging-list-sms`
To create a SMS object, you can do something like `mmcli -m2
--messaging-create-sms="number=1234567890,text=Hello"`
Once the SMS object is created, you can send it with mmcli --send
> error: couldn't find SMS at '/org/freedesktop/ModemManager1/SMS/2': 'not
> found in any modem'
> ght at fibocom:~$
> ght at fibocom:~$ mmcli -i 2
> SIM '/org/freedesktop/ModemManager1/SIM/2'
> -------------------------
> Properties | imsi : '460015646534044'
> | id : '89860117801059844938'
> | operator id : '46001'
> | operator name : 'unknown'
> ght at fibocom:~$
> _______________________________________________
> ModemManager-devel mailing list
> ModemManager-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel
More information about the ModemManager-devel
mailing list