<div dir="ltr">Hello,<div><br></div><div>Just a few thoughts:</div><div><ol><li>The SIM is sold by a "carrier" (or MNO or MVNO) and contains a credential (the IMSI) that will have a prefix that corresponds to the MCC/MNC. If you bought the new SIM from O2, then the modem should register on O2.</li><li>Inserting the SIM *should* then show that the registration has occurred with that carrier when you do the scan.</li><li>Each SIM/Carrier/MNO/MVNO has their own APN that you must provide in most cases. You usually can not use an O2 SIM with a non-O2 APN. 02 provides you with the APN that you must configure.</li></ol><div>Usually, when the SIM is inserted, the modem will use the SIM provided credential and just connect. Which your last scan showed ... the "current" in that scan indicated the SIM was registered on Vodafone. At that point you would have to use the Vodafone APN.</div><div><br></div><div>Learning by using AT Commands can be good, but Modem Manager is still in control if you are using this code. There is a "AT Command Tester" tool for Windows, and they provide a Quectel specific version, if you want to experiment and learn. Their website also has lots of great info on AT Commands.</div><div><br></div><div>The failures that you are seeing ("call failure") appear to mean that registration is not allowed, but I don't know those details of Modem Manager yet.</div><div><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><br></div><div>--</div>Scott C. Lemon<div><font color="#999999">Principal IoT Solutions Engineer</font></div><div><br><div><a href="https://www.Twilio.com" target="_blank"><img src="https://docs.google.com/uc?export=download&id=1oCKSDep8oaXJUdRv-Z1g5t-vIABC2ehn&revid=0BybzcoZgn0BkU0E1bGNSY3JES3ZCaGZzMGV0Sk5WOFZFYmQ4PQ" width="96" height="28"></a><br></div></div><div><br></div><div><font color="#999999">Mobile:</font> +1 (801) 336-4476</div><div><font color="#999999">Email:</font> <a href="mailto:slemon@twilio.com" target="_blank">slemon@twilio.com</a></div><div><br></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 2, 2021 at 3:47 AM Andreas Hartmann <<a href="mailto:hartan@7x.de">hartan@7x.de</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">Hello,<br>
<br>
<br>
thanks for responding!<br>
<br>
> You might have to issue a command to push the modem to DT?<br>
> <br>
> --3gpp-register-in-operator=MCCMNC ??<br>
<br>
Tried that numerous times, what I usually get is this:<br>
<br>
```<br>
$ mmcli -m 0 --3gpp-register-in-operator=26201 --timeout=300<br>
error: couldn't register the modem:<br>
'GDBus.Error:org.freedesktop.ModemManager1.Error.MobileEquipment.Networ<br>
kTimeout: Network timeout'<br>
```<br>
<br>
and other times I will see errors like this:<br>
'GDBus.Error:org.freedesktop.libqmi.Error.Protocol.CallFailed: QMI<br>
protocol error (14): 'CallFailed''<br>
<br>
But I don't know QMI and can't make any sense of that error.<br>
<br>
Yesterday I went to get a prepaid-SIM from a different provider (O2),<br>
but the result is the same. So I'm pretty certain that the issue isn't<br>
related to the provider now, which really doesn't help me at all...<br>
<br>
> Are you certain the IMSI is not providing access/roaming to Vodafone?<br>
<br>
How would I diagnose something like this? But even if it did, why would<br>
it constantly run into "Network Timeout" errors while trying to connect<br>
to the operator network that my SIM "originally" belongs to?<br>
<br>
I'm pretty naive on this sort of thing, because I haven't dealt much<br>
with modems in my life before. Does anyone have some good "literature"<br>
where I could read up on it? I was thinking about performing a<br>
connection "by hand", directly using the AT commands from the ground<br>
up, to see what the modem itself tells me. But I'm not sure whether<br>
that would be of any use... Does anyone have thoughts on this?<br>
<br>
<br>
Thank you!<br>
<br>
Andreas<br>
<br>
<br>
<br>
On Tue, 2021-06-01 at 10:05 -0600, Scott Lemon wrote:<br>
> Hello,<br>
> <br>
> I'm learning Modem Manager, but looking at the output that you provided<br>
> it appears that the modem is registered on Vodafone (current), not DT.<br>
> <br>
> > $ mmcli -m 0 --3gpp-scan --timeout=120<br>
> > ---------------------<br>
> > 3GPP scan | networks: 26203 - o2 - de (lte, forbidden)<br>
> > | 26202 - Vodafone (lte, current)<br>
> > | 26201 - TDG (lte, available)<br>
> <br>
> <br>
> You might have to issue a command to push the modem to DT?<br>
> <br>
> --3gpp-register-in-operator=MCCMNC ??<br>
> <br>
> Are you certain the IMSI is not providing access/roaming to Vodafone?<br>
> <br>
> <br>
> --<br>
> Scott C. Lemon<br>
> Principal IoT Solutions Engineer<br>
> <br>
> <br>
> <br>
> Mobile: +1 (801) 336-4476<br>
> Email: <a href="mailto:slemon@twilio.com" target="_blank">slemon@twilio.com</a><br>
> <br>
> <br>
> <br>
> On Mon, May 31, 2021 at 3:21 AM Andreas Hartmann <<a href="mailto:hartan@7x.de" target="_blank">hartan@7x.de</a>> wrote:<br>
> > Hello,<br>
> > <br>
> > <br>
> > I'm looking for guidance diagnosing what is wrong with the Quectel<br>
> > EG25<br>
> > modem in my PinePhone. I am aware that the modem works for pretty<br>
> > much<br>
> > all people, however there seem to be some exceptions to this,<br>
> > including<br>
> > me. I have tried several Operating Systems (Manjaro, postmarket OS,<br>
> > Fedora, mobian) but with none of these I had any success so far.<br>
> > Currently I'm tempted to believe that the hardware in my phone isn't<br>
> > entirely functional, but I wanted to make sure of that before<br>
> > randomly<br>
> > replacing parts.<br>
> > <br>
> > The issue I see is that the modem is recognized by the OS, and I can<br>
> > communicate with it through ModemManager, too. But it cannot connect<br>
> > to<br>
> > my carrier. I can neither make phone calls, nor receive SMS or setup<br>
> > a<br>
> > mobile data connection. However, the modem clearly shows that is has<br>
> > a<br>
> > signal reception, and I can confirm that a signal is present from<br>
> > another Android phone. I have suspected the SIM card, but when I<br>
> > insert<br>
> > it into an Android device it works just fine. Just to make sure I<br>
> > have<br>
> > even removed the SIM PIN, but that hasn't changed the situation<br>
> > (apart<br>
> > from some added convenience for me). I live in Germany, and the SIM<br>
> > is<br>
> > registered with "Deutsche Telekom".<br>
> > <br>
> > I can confirm that a 3GPP scan yields useful results:<br>
> > <br>
> > ```<br>
> > $ mmcli -m 0 --3gpp-scan --timeout=120<br>
> > ---------------------<br>
> > 3GPP scan | networks: 26203 - o2 - de (lte, forbidden)<br>
> > | 26202 - Vodafone (lte, current)<br>
> > | 26201 - TDG (lte, available)<br>
> > ```<br>
> > <br>
> > As my operator is "Deutsche Telekom", the correct MCC/MNC is 26201,<br>
> > but<br>
> > mmcli shows that modem attempts to register with 26202. I seemingly<br>
> > cannot override this:<br>
> > <br>
> > ```<br>
> > $ mmcli -m 0 --simple-connect="apn=internet.t-mobile,user=t-<br>
> > mobile,password=tm" --timeout=120<br>
> > error: couldn't connect the modem:<br>
> > 'GDBus.Error:org.freedesktop.ModemManager1.Error.MobileEquipment.Netw<br>
> > or<br>
> > kTimeout: Network timeout'<br>
> > ```<br>
> > <br>
> > I attempted to define an initial bearer with `mmcli -m 0 --3gpp-set-<br>
> > initial-eps-bearer-settings`, but that didn't change the situation.<br>
> > The simple-connect doesn't work either, even if I explicitly specify<br>
> > the operator ID to use.<br>
> > <br>
> > Interestingly the behavior is pretty consistent. It happened to me<br>
> > with<br>
> > the stock firmware that the Pinephone Modem (Manjaro edition) shipped<br>
> > with in December/2020, it persisted after I had updated to the most<br>
> > recent modem firmware available February/2021, and it's still there<br>
> > after flashing biktorgjs custom firmware [1].<br>
> > <br>
> > I have tried to use various APN settings, including:<br>
> > <br>
> > 1. The one mentioned in the Pine64 wiki [2]<br>
> > 2. APN "internet.telekom", which is available on my Android device<br>
> > 3. APN "<a href="http://internet.t-d1.de" rel="noreferrer" target="_blank">internet.t-d1.de</a>", which my Android device actually uses<br>
> > <br>
> > I don't know whether this is relevant, but the SIM is part of a<br>
> > multisim contract (Same phone number, same data plan for all SIMs).<br>
> > <br>
> > Curiously, recently I could accept a phone call on the Pinephone and<br>
> > talk to the other person. However this was a unique event and I<br>
> > couldn't reproduce it ever since. I can neither make calls, nor use<br>
> > mobile data.<br>
> > <br>
> > I'm running out of ideas as to what may cause such a behavior. I'd be<br>
> > thankful for any hints on what else to try, or possibly a diagnosis<br>
> > on<br>
> > whether the Modem is actually broken... Thank you in advance!<br>
> > <br>
> > <br>
> > Cheers,<br>
> > Andreas Hartmann<br>
> > <br>
> > <br>
> > <br>
> > [1]: <a href="https://github.com/Biktorgj/pinephone_modem_sdk" rel="noreferrer" target="_blank">https://github.com/Biktorgj/pinephone_modem_sdk</a><br>
> > [2]: <a href="https://wiki.pine64.org/wiki/PinePhone_APN_Settings#Telekom_.28Germany.29" rel="noreferrer" target="_blank">https://wiki.pine64.org/wiki/PinePhone_APN_Settings#Telekom_.28Germany.29</a><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" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel</a><br>
<br>
</blockquote></div>