Re: ModemManager SMS PIN DEBUG QUESTION(Ben Chan)

刘其峰 liuqf at fibocom.com
Thu May 3 16:52:05 UTC 2018


Hi Ben:
   root at fibocom:~# mmcli -s 10 --send
successfully sent the SMS
 
   thanks very much.


can you also show me how to enable pin unlock pin ?
 
 
------------------ Original ------------------
From:  "Ben Chan"<benchan at chromium.org>;
Date:  Fri, May 4, 2018 00:44 AM
To:  "LiuQiFeng"<liuqf at fibocom.com>; 
Cc:  "modemmanager-devel"<modemmanager-devel at lists.freedesktop.org>; 
Subject:  Re: ModemManager SMS PIN DEBUG QUESTION

 


On Thu, May 3, 2018 at 9:19 AM 刘其峰 <liuqf at fibocom.com> wrote:

Hi Ben:
    root at fibocom:~# mmcli -L


Found 1 modems:
        /org/freedesktop/ModemManager1/Modem/1 [Generic] MBIM [2CB7:0007]




root at fibocom:~# mmcli -m 1


/org/freedesktop/ModemManager1/Modem/1 (device id 'd226995fe1daf60db0ec2e492cbcb0e37f3bef03')
  -------------------------
  Hardware |   manufacturer: 'Generic'
           |          model: 'MBIM [2CB7:0007]'
           |       revision: '18500.5001.00.01.17.65'
           |      supported: 'gsm-umts, lte'
           |        current: 'gsm-umts, lte'
           |   equipment id: '863059020075042'
  -------------------------
  System   |         device: '/sys/devices/pci0000:00/0000:00:14.0/usb3/3-8'
           |        drivers: 'cdc_mbim, cdc_acm'
           |         plugin: 'Generic'
           |   primary port: 'cdc-wdm0'
           |          ports: 'cdc-wdm0 (mbim), wwp0s20u8 (net), ttyACM0 (at), ttyACM2 (at)'
  -------------------------
  Numbers  |           own : '10086'
  -------------------------
  Status   |           lock: 'none'
           | unlock retries: 'sim-pin2 (3)'
           |          state: 'connected'
           |    power state: 'on'
           |    access tech: 'lte'
           | signal quality: '0' (cached)
  -------------------------
  Modes    |      supported: 'allowed: 3g, 4g; preferred: none'
           |        current: 'allowed: 3g, 4g; preferred: none'
  -------------------------
  Bands    |      supported: 'unknown'
           |        current: 'unknown'
  -------------------------
  IP       |      supported: 'ipv4, ipv6, ipv4v6'
  -------------------------
  3GPP     |           imei: '863059020075042'
           |  enabled locks: 'fixed-dialing'
           |    operator id: '46001'
           |  operator name: '000000'
           |   subscription: 'unknown'
           |   registration: 'home'
  -------------------------
  SIM      |           path: '/org/freedesktop/ModemManager1/SIM/1'


  -------------------------
  Bearers  |          paths: '/org/freedesktop/ModemManager1/Bearer/1'


root at fibocom:~# mmcli -m 1 --messaging-create-sms="number=13760527596,text=Hello"
Successfully created new SMS:
        /org/freedesktop/ModemManager1/SMS/10 (unknown)
root at fibocom:~# mmcli --send
error: no SMS was specified
root at fibocom:~# mmcli -m 1 --send
error: no SMS was specified
root at fibocom:~# mmcli -m 1 --send=10
error: no SMS was specified
root at fibocom:~#


Hi Ben, 
   I follow your suggestion, but the last step '--send' show 'error: no SMS was specified'
 



Try `mmcli -s 10 --send` instead


https://www.freedesktop.org/software/ModemManager/man/1.0.0/mmcli.8.html has some more examples

 
 
------------------ Original ------------------
From:  "Ben Chan"<benchan at chromium.org>;
Date:  Thu, May 3, 2018 11:58 PM
To:  "LiuQiFeng"<liuqf at fibocom.com>; 
Cc:  "modemmanager-devel"<modemmanager-devel at lists.freedesktop.org>; 
Subject:  Re: ModemManager SMS PIN DEBUG QUESTION

 
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20180504/9973526e/attachment-0001.html>


More information about the ModemManager-devel mailing list