ModemManager SMS Debug

liuqf at fibocom.com liuqf at fibocom.com
Thu May 3 12:57:18 UTC 2018


Hi Aleksander,
   I had one question about SMS. PIN.
   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
ght at fibocom:~$ mmcli -s 2 --send="123456"
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:~$



All the best, Liu

LiuQiFeng  SW Engineer   |   Perfect Wireless Experience
  
       
Fibocom wireless Inc
 
5F,Tower A, Technology Building Ⅱ, 1057#Nanhai Avenue,Nanshan District, Shenzhen, China
 
+86 137 6052 7596 | liuqf at fibocom.com 

www.fibocom.com
 
From: Aleksander Morgado
Date: 2017-04-26 18:18
To: fibocom
CC: modemmanager-devel
Subject: Re: ModemManager-1.4.12: Cannot compile ModemManager with libmbim-glib on ubuntu 16.04.2 LTS X86_64 env
Hey,
 
See replies inline below.
 
> It's the ubuntu 16.04.2 x86_64 pc:
> ght at ght-ThinkPad-X270:~/Downloads/ModemManager-1.4.12$ cat /etc/issue
> Ubuntu 16.04.2 LTS \n \l
> ght at ght-ThinkPad-X270:~/Downloads/ModemManager-1.4.12$ uname -a
> Linux ght-ThinkPad-X270 4.8.0-49-generic #52~16.04.1-Ubuntu SMP Thu Apr 20
> 10:55:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
 
 
For Ubuntu 16.04, you may want to use this PPA with newer
libqmi/libmbim/ModemManager versions:
https://launchpad.net/~aleksander-m/+archive/ubuntu/modemmanager-xenial
 
> ght at ght-ThinkPad-X270:~/Downloads/ModemManager-1.4.12$
>
> my configure value : ./configure
> --prefix=/home/ght/Downloads/ModemManager-1.4.12/LIU --without-qmi
> and the configure result show in attached file, it shows 'configure: error:
> Couldn't find libmbim-glib. Install it, or otherwise configure using
> --without-mbim to disable MBIM support.'。
>
> I had check the libmbim-glib library in ubuntu system,it's in the system.
> ght at ght-ThinkPad-X270:/usr/lib/x86_64-linux-gnu$ ls libmbim*
> libmbim-glib.a  libmbim-glib.so  libmbim-glib.so.4  libmbim-glib.so.4.1.0
> ght at ght-ThinkPad-X270:/usr/lib/x86_64-linux-gnu$
>
> I had install libmbim-glib-dev as your suggestion.
> ght at ght-ThinkPad-X270:/lib/x86_64-linux-gnu$ sudo apt-get install
> libmbim-glib-dev
> [sudo] password for ght:
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> libmbim-glib-dev is already the newest version (1.12.2-2ubuntu1).
> 0 upgraded, 0 newly installed, 0 to remove and 45 not upgraded.
>
 
What is the configure output you get after installing libmbim-glib-dev
and re-running configure?
 
> But it's faile to install libmbim-glib-devel.
> ght at ght-ThinkPad-X270:/lib/x86_64-linux-gnu$ sudo apt-get install
> libmbim-glib-devel
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> E: Unable to locate package libmbim-glib-devel
>
> It's still faile to configure after install libmbim-glib-dev.
>
 
There is no -devel package in Ubuntu, the -dev one should be enough.
 
-- 
Aleksander
https://aleksander.es
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20180503/ac9a89ee/attachment-0001.html>


More information about the ModemManager-devel mailing list