<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:黑体;
panose-1:2 1 6 9 6 1 1 1 1 1;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:微软雅黑;
panose-1:2 11 5 3 2 2 4 2 2 4;}
@font-face
{font-family:"\@宋体";
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"\@微软雅黑";
panose-1:2 11 5 3 2 2 4 2 2 4;}
@font-face
{font-family:"\@黑体";
panose-1:2 1 6 9 6 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:宋体;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.m8448329944427282411msolistparagraph, li.m8448329944427282411msolistparagraph, div.m8448329944427282411msolistparagraph
{mso-style-name:m_8448329944427282411msolistparagraph;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:宋体;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="ZH-CN" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri",sans-serif;color:#1F497D">Hi<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri",sans-serif;color:#1F497D">Recently I met an issue of the mismatched result from mmcli and at commands, details are below.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri",sans-serif;color:#1F497D">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri",sans-serif;color:#1F497D">Kevin<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"微软雅黑",sans-serif">发件人<span lang="EN-US">:</span></span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"微软雅黑",sans-serif"> Aleksander Morgado [mailto:aleksander@aleksander.es]
<br>
</span><b><span style="font-size:11.0pt;font-family:"微软雅黑",sans-serif">发送时间<span lang="EN-US">:</span></span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"微软雅黑",sans-serif"> 2020</span><span style="font-size:11.0pt;font-family:"微软雅黑",sans-serif">年<span lang="EN-US">8</span>月<span lang="EN-US">14</span>日<span lang="EN-US">
16:27<br>
</span><b>收件人<span lang="EN-US">:</span></b><span lang="EN-US"> Kevin.Lee(</span>李家玮<span lang="EN-US">) <kevin.lee@fibocom.com><br>
</span><b>主题<span lang="EN-US">:</span></b><span lang="EN-US"> Re: Inquiry about some details about ModemManager for the mismatch between "mmcli -m index" and at command result<o:p></o:p></span></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">Hey<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Please send your questions to the public ModemManager mailing list address, so that everyone can read those questions and the replies.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Thanks!<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">On Fri, 14 Aug 2020, 03:35 Kevin.Lee(</span>李家玮<span lang="EN-US">), <<a href="mailto:kevin.lee@fibocom.com">kevin.lee@fibocom.com</a>> wrote:<o:p></o:p></span></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="color:#1F497D">Dear Aleksander,</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="color:#1F497D"> </span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="color:#1F497D">Sorry for that, I need to correct my saying in last e-mail.</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US">In code I found this value was set to ‘MM_MODEM_STATE_REGISTERED’ in function ‘update_regeistration_reload_current_registration_info_ready’. And I found this
parameter will block modem state transfering to other states. Could you please kindly make some explain on this?<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US">Kevin<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="color:#1F497D"> </span><span lang="EN-US"><o:p></o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span style="font-size:11.0pt">发件人</span></b><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial",sans-serif">:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial",sans-serif">
Kevin.Lee(</span><span style="font-size:11.0pt">李家玮</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial",sans-serif">)
<br>
</span><b><span style="font-size:11.0pt">发送时间</span></b><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial",sans-serif">:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial",sans-serif"> 2020</span><span style="font-size:11.0pt">年</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial",sans-serif">8</span><span style="font-size:11.0pt">月</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial",sans-serif">13</span><span style="font-size:11.0pt">日</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial",sans-serif">
11:12<br>
</span><b><span style="font-size:11.0pt">收件人</span></b><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial",sans-serif">:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial",sans-serif">
<a href="mailto:aleksander@aleksander.es" target="_blank">aleksander@aleksander.es</a><br>
</span><b><span style="font-size:11.0pt">主题</span></b><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial",sans-serif">:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial",sans-serif"> Inquiry about some details about ModemManager
for the mismatch between "mmcli -m index" and at command result</span><span lang="EN-US"><o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US">Dear Aleksander,<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:150%">
<span lang="EN-US">I hope this e-mail finds you well.<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:150%">
<span lang="EN-US">My name is Kevin, working in fibocom. Recently I got some confusion during the time handling with some ModemManager issues.<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:150%">
<span lang="EN-US">The modem I use is a Fibcom L860-GL on a Lenovo PC, on which I found when I type in “mmcli –m index” to query the information of modem. However, I found the result from mmcli and at is different, the picture is shown below.<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:150%">
<span lang="EN-US"><img border="0" width="1117" height="556" id="m_8448329944427282411图片_x0020_2" src="cid:image002.jpg@01D67162.96179570" alt="image.png"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:150%">
<span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:150%">
<span lang="EN-US">As we can tell, modem state from this two ways are mismatched. After reviewing the code, I found that there is a function called “get_current_consolidated_state” in mm-iface-modem.c which will build a consolidated state. The parameter “modem_state”
passed in is ‘enabled’, which matched with the actual modem state after sending at command “at+cops=2” to unregister from network. Based on my understanding,this consolidated_state was technically meant to match with the state reported from subsystem, in code
I found this value was set to ‘MM_MODEM_STATE_CONNECTED’ in function ‘update_regeistration_reload_current_registration_info_ready’. So my questions are:<o:p></o:p></span></p>
<p class="m8448329944427282411msolistparagraph" style="margin-left:18.0pt;line-height:150%">
<span lang="EN-US">1.</span><span lang="EN-US" style="font-size:7.0pt;line-height:150%;font-family:"Times New Roman",serif">
</span><span lang="EN-US">Is this phenomena ( results from at command and mmcli are different) a special design in order to compatible with different
</span>‘<span lang="EN-US">subsystem</span>’<span lang="EN-US">?<o:p></o:p></span></p>
<p class="m8448329944427282411msolistparagraph" style="margin-left:18.0pt;line-height:150%">
<span lang="EN-US">2.</span><span lang="EN-US" style="font-size:7.0pt;line-height:150%;font-family:"Times New Roman",serif">
</span><span lang="EN-US">I</span>’<span lang="EN-US">m not very clear with the concept of
</span>‘<span lang="EN-US">subsystem</span>’<span lang="EN-US">, and I failed to find any description about it in the document. So could you kindly provide me some guidance?<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US">Your answers will be very helpful and I appreciate a lot!<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#777777">Kind Regards,</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;color:#777777">李家玮</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#777777"> Kevin</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#777777">MBB PDU</span><span style="font-size:9.0pt;color:#777777">软件三部</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#777777">
Mobile Broadband Product Development Dept. | </span><span style="font-size:9.0pt;color:#777777">软件工程师</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#777777"> Software Engineer</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#777777">M</span><span style="font-size:9.0pt;color:#777777">:</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#777777">+86
15091286061</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#777777">Add</span><span style="font-size:9.0pt;color:#777777">:西安市高新区软件新城天谷八路</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#777777">156</span><span style="font-size:9.0pt;color:#777777">号云汇谷</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#777777">C3</span><span style="font-size:9.0pt;color:#777777">座</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#777777">1602</span><span style="font-size:9.0pt;color:#777777">室丨</span><span lang="EN-US"><a href="http://www.fibocom.com/" target="_blank"><span style="font-size:9.0pt;font-family:"Arial",sans-serif">www.fibocom.com</span></a><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span style="color:#00B0F0">西安广和通无线软件有限公司</span></b><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:10.0pt;font-family:黑体"><img border="0" width="380" height="47" id="m_8448329944427282411图片_x0020_1" src="cid:image001.png@01D670EA.EE13C6E0" alt="1"></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US"> <o:p></o:p></span></p>
</div>
</div>
</blockquote>
</div>
</div>
</body>
</html>