<div dir="ltr">Thanks. Is there a recommended source to lookup the MCCMNC codes? Something like <a href="https://github.com/musalbas/mcc-mnc-table">https://github.com/musalbas/mcc-mnc-table</a><div><br></div><div>I keep running into this problem with libqmi - the commands are documented but not the responses. Has anyone considered turning on the Wiki tab in Github <a href="https://github.com/freedesktop/libqmi">https://github.com/freedesktop/libqmi</a> so we can use it for documentation? Would be good to have examples of data returned, explanation of fields, etc.</div><div><br></div><div>Tom Isaacson</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Sep 8, 2022 at 9:52 PM Aleksander Morgado <<a href="mailto:aleksandermj@chromium.org">aleksandermj@chromium.org</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">Hey Tom,<br>
<br>
On Tue, Sep 6, 2022 at 6:42 PM Tom Isaacson <<a href="mailto:tom.isaacson@teknique.com" target="_blank">tom.isaacson@teknique.com</a>> wrote:<br>
><br>
> When I query different SIM cards with:<br>
> qmicli --device=/dev/cdc-wdm0 --device-open-qmi --nas-get-operator-name<br>
><br>
> I get different responses. My first SIM returned:<br>
> Service Provider Name<br>
>     Display Condition: '(null)'<br>
>     Name             : 'Skinny'<br>
><br>
> But in the US that was missing, so I switched to:<br>
> NITZ information:<br>
>     Long Name:  'AT&T'<br>
>     Short Name: 'AT&T'<br>
>     Country:    'initials-do-not-add'<br>
><br>
> which was also included in the first SIM. But now I'm trying a UK SIM and I get:<br>
> PLMN List:<br>
>     MCC/MNC: '234-15'  LAC Range: 0->65279 PNN Record: 1<br>
><br>
> which I assume refers to <a href="http://mcc-mnc.com/" rel="noreferrer" target="_blank">http://mcc-mnc.com/</a>. Do I have to include a copy of this list on my device to lookup the operator name? Are there any other formats that can get returned by this command?<br>
><br>
<br>
If you want the operator name of your SIM card, you can use<br>
--nas-get-home-network. If that reports that it's unprovisioned, you<br>
can always try to parse the first 5-6 digits of the IMSI and match<br>
them to the MCCMNC of your expected operators.<br>
<br>
If you want the operator name of your network provider, you can use<br>
--nas-get-operator-name, or otherwise use --nas-get-system-info to<br>
retrieve the MCCMNC, and then use --nas-get-plmn-name=[mccmnc]<br>
<br>
-- <br>
Aleksander<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Tom Isaacson<div><br></div></div></div>