<div>Hi Ben:</div><div> root@fibocom:~# mmcli -s 10 --send</div><div>successfully sent the SMS</div><div> </div><div> thanks very much.</div><div><br></div><div>can you also show me how to enable pin unlock pin ?</div><div><includetail><div> </div><div> </div><div style="font:Verdana normal 14px;color:#000;"><div style="FONT-SIZE: 12px;FONT-FAMILY: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="FONT-SIZE: 12px;background:#efefef;padding:8px;"><div id="menu_sender"><b>From: </b> "Ben Chan"<benchan@chromium.org>;</div><div><b>Date: </b> Fri, May 4, 2018 00:44 AM</div><div><b>To: </b> "LiuQiFeng"<liuqf@fibocom.com>; <wbr></div><div><b>Cc: </b> "modemmanager-devel"<modemmanager-devel@lists.freedesktop.org>; <wbr></div><div><b>Subject: </b> Re: ModemManager SMS PIN DEBUG QUESTION</div></div><div> </div><div style="position:relative;"><div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Thu, May 3, 2018 at 9:19 AM 刘其峰 <<a href="mailto:liuqf@fibocom.com">liuqf@fibocom.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Hi Ben:</div><div> root@fibocom:~# mmcli -L</div><div><br></div><div>Found 1 modems:</div><div> /org/freedesktop/ModemManager1/Modem/1 [Generic] MBIM [2CB7:0007]</div><div><br></div><div><br></div><div>root@fibocom:~# mmcli -m 1</div><div><br></div><div>/org/freedesktop/ModemManager1/Modem/1 (device id 'd226995fe1daf60db0ec2e492cbcb0e37f3bef03')</div><div> -------------------------</div><div> Hardware | manufacturer: 'Generic'</div><div> | model: 'MBIM [2CB7:0007]'</div><div> | revision: '18500.5001.00.01.17.65'</div><div> | supported: 'gsm-umts, lte'</div><div> | current: 'gsm-umts, lte'</div><div> | equipment id: '863059020075042'</div><div> -------------------------</div><div> System | device: '/sys/devices/pci0000:00/0000:00:14.0/usb3/3-8'</div><div> | drivers: 'cdc_mbim, cdc_acm'</div><div> | plugin: 'Generic'</div><div> | primary port: 'cdc-wdm0'</div><div> | ports: 'cdc-wdm0 (mbim), wwp0s20u8 (net), ttyACM0 (at), ttyACM2 (at)'</div><div> -------------------------</div><div> Numbers | own : '10086'</div><div> -------------------------</div><div> Status | lock: 'none'</div><div> | unlock retries: 'sim-pin2 (3)'</div><div> | state: 'connected'</div><div> | power state: 'on'</div><div> | access tech: 'lte'</div><div> | signal quality: '0' (cached)</div><div> -------------------------</div><div> Modes | supported: 'allowed: 3g, 4g; preferred: none'</div><div> | current: 'allowed: 3g, 4g; preferred: none'</div><div> -------------------------</div><div> Bands | supported: 'unknown'</div><div> | current: 'unknown'</div><div> -------------------------</div><div> IP | supported: 'ipv4, ipv6, ipv4v6'</div><div> -------------------------</div><div> 3GPP | imei: '863059020075042'</div><div> | enabled locks: 'fixed-dialing'</div><div> | operator id: '46001'</div><div> | operator name: '000000'</div><div> | subscription: 'unknown'</div><div> | registration: 'home'</div><div> -------------------------</div><div> SIM | path: '/org/freedesktop/ModemManager1/SIM/1'</div><div><br></div><div> -------------------------</div><div> Bearers | paths: '/org/freedesktop/ModemManager1/Bearer/1'</div><div><br></div><div>root@fibocom:~# mmcli -m 1 --messaging-create-sms="number=13760527596,text=Hello"</div><div>Successfully created new SMS:</div><div> /org/freedesktop/ModemManager1/SMS/10 (unknown)</div><div>root@fibocom:~# mmcli --send</div><div>error: no SMS was specified</div><div>root@fibocom:~# mmcli -m 1 --send</div><div>error: no SMS was specified</div><div>root@fibocom:~# mmcli -m 1 --send=10</div><div>error: no SMS was specified</div><div>root@fibocom:~#</div><div><br></div><div>Hi Ben, </div><div> I follow your suggestion, but the last step '--send' show 'error: no SMS was specified'</div><div><u></u><div> </div></div></blockquote><div><br></div><div>Try `mmcli -s 10 --send` instead</div><div><br></div><div><a href="https://www.freedesktop.org/software/ModemManager/man/1.0.0/mmcli.8.html">https://www.freedesktop.org/software/ModemManager/man/1.0.0/mmcli.8.html</a> has some more examples<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div> </div><div style="color:rgb(0,0,0)"><div style=" font-size:12px ; ;;padding:2px 0px ">------------------ Original ------------------</div><div style="font-size:12px;background:rgb(239,239,239);padding:8px"><div id="gmail-m_2084751918339178337menu_sender"><b>From: </b> "Ben Chan"<<a href="mailto:benchan@chromium.org" target="_blank">benchan@chromium.org</a>>;</div><div><b>Date: </b> Thu, May 3, 2018 11:58 PM</div><div><b>To: </b> "LiuQiFeng"<<a href="mailto:liuqf@fibocom.com" target="_blank">liuqf@fibocom.com</a>>; </div><div><b>Cc: </b> "modemmanager-devel"<<a href="mailto:modemmanager-devel@lists.freedesktop.org" target="_blank">modemmanager-devel@lists.freedesktop.org</a>>; </div><div><b>Subject: </b> Re: ModemManager SMS PIN DEBUG QUESTION</div></div><div> </div><div>On Thu, May 3, 2018 at 8:35 AM 刘其峰 <<a href="mailto:liuqf@fibocom.com" target="_blank">liuqf@fibocom.com</a>> wrote:<br><br>> Hi ModemManager Team,<br>> I'm a software developer from china, i have some question about SMS<br>and PIN api.<br><br>> I had see usage about mmcli and it had some api about pin and sms.<br>> but i don't know how to use this api, can you give us some help about<br>mmcli ?<br><br>> ght@fibocom:~$ mmcli -L<br><br>> Found 1 modems:<br>> /org/freedesktop/ModemManager1/Modem/2 [Fibocom] L850 LTE<br>> Module","L850<br>> ght@fibocom:~$ mmcli -m 2 --pin=1234<br>> error: no sim was specified<br><br>> ght@fibocom:~$ mmcli -s 2 --pin=1234<br>> error: no sim was specified<br><br>You need to specify "-i <index>" to specify the SIM object, e.g. -i 2<br><br>> ght@fibocom:~$ mmcli -s 2 --send="123456"<br><br>Are you trying to send a SMS here?<br><br>Looks like SMS/2 object doesn't exist, you can list the existing SMS<br>objects using `mmcli -m 2 --messaging-list-sms`<br><br>To create a SMS object, you can do something like `mmcli -m2<br>--messaging-create-sms="number=1234567890,text=Hello"`<br><br>Once the SMS object is created, you can send it with mmcli --send<br><br><br>> error: couldn't find SMS at '/org/freedesktop/ModemManager1/SMS/2': 'not<br>> found in any modem'<br>> ght@fibocom:~$<br><br>> ght@fibocom:~$ mmcli -i 2<br>> SIM '/org/freedesktop/ModemManager1/SIM/2'<br>> -------------------------<br>> Properties | imsi : '460015646534044'<br>> | id : '89860117801059844938'<br>> | operator id : '46001'<br>> | operator name : 'unknown'<br>> ght@fibocom:~$<br><br>> _______________________________________________<br>> ModemManager-devel mailing list<br>> <a href="mailto:ModemManager-devel@lists.freedesktop.org" target="_blank">ModemManager-devel@lists.freedesktop.org</a><br>> <a href="https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel" target="_blank">https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel</a><br></div></div><u></u></div></blockquote></div></div>
</div></div><!--<![endif]--></includetail></div>