<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[LTE Mode check (and switching) not possible in PPP mode?]]></title><description><![CDATA[<p dir="auto">I am trying to follow the documentation that proposes the following to check the LTE Mode :</p>
<pre><code>from LTE import LTE
lte = LTE()
lte_mode = lte.mode() # Return current mode
if lte_mode == LTE.CATM1:
    print(‘Modem is in CAT-M1 mode!’)
if lte_mode == LTE.NBIOT:
    print(‘Modem is in NB-IoT mode!’)
</code></pre>
<p dir="auto">However, when I try the mode checking, I get the following:</p>
<pre><code>&gt;&gt;&gt; lte = LTE()
&gt;&gt;&gt; lte.mode()
0
</code></pre>
<p dir="auto">I believe the value 0 indicates that the LTE module is in idle mode.  Is that correct?<br />
So next I attach and I connect, and then try the lte.mode() command again.  By the way, it seems double quotes are needed for “<a href="http://iot.1nce.net" target="_blank" rel="noopener noreferrer nofollow ugc">iot.1nce.net</a>”.  The single quotes in the documentation do not work.  This is what now happens:</p>
<pre><code>&gt;&gt;&gt; lte.attach(apn="iot.1nce.net")
&gt;&gt;&gt; lte.isattached()
True
&gt;&gt;&gt; lte.connect()
&gt;&gt;&gt; lte.isconnected()
True
&gt;&gt;&gt; lte.mode()
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  File "LTE.py", line 312, in mode
  File "LTE.py", line 472, in check_ppp
OSError: Operation not possible while in PPP mode!
</code></pre>
<p dir="auto">Any solution? What is this PPP mode? Point-to-Point Protocol mode?  How was that mode selected?  Not in my simple script.</p>
]]></description><link>https://forum.sgwireless.com/topic/59/lte-mode-check-and-switching-not-possible-in-ppp-mode</link><generator>RSS for Node</generator><lastBuildDate>Sun, 16 Aug 2026 15:52:12 GMT</lastBuildDate><atom:link href="https://forum.sgwireless.com/topic/59.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 20 Apr 2025 12:30:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to LTE Mode check (and switching) not possible in PPP mode? on Thu, 24 Apr 2025 09:12:41 GMT]]></title><description><![CDATA[<p dir="auto">Yes, you can use <code>lte.pppsuspend()</code> to run AT commands, but then please use <code>lte.connect()</code> to re-connect. If you switch modes, you need to attach again first as the modem resets.</p>
]]></description><link>https://forum.sgwireless.com/post/68</link><guid isPermaLink="true">https://forum.sgwireless.com/post/68</guid><dc:creator><![CDATA[cehlers]]></dc:creator><pubDate>Thu, 24 Apr 2025 09:12:41 GMT</pubDate></item><item><title><![CDATA[Reply to LTE Mode check (and switching) not possible in PPP mode? on Wed, 23 Apr 2025 07:12:30 GMT]]></title><description><![CDATA[<p dir="auto">OK, thanks.  That means I need to use lte.pppsuspend() before using these commands (and lte.pppresume afterwards)?</p>
]]></description><link>https://forum.sgwireless.com/post/65</link><guid isPermaLink="true">https://forum.sgwireless.com/post/65</guid><dc:creator><![CDATA[jandls]]></dc:creator><pubDate>Wed, 23 Apr 2025 07:12:30 GMT</pubDate></item><item><title><![CDATA[Reply to LTE Mode check (and switching) not possible in PPP mode? on Tue, 22 Apr 2025 10:58:56 GMT]]></title><description><![CDATA[<p dir="auto">The mode means operating mode of the currently running LTE modem firmware. If you switch between CAT-M and NB-IoT mode, the modem will change the operation mode and will reset to load the firmware for the new mode. If it returns 0 it means it is running the CAT-M firmware, if it returns 1 it means it is running the NB-IoT firmware.</p>
<p dir="auto">The device automatically enabled the LTE connection in order to provision the device on our cloud platform using the bundled 1NCE SIM car. In order to communicate with the cloud platform, it will use PPP (point to point) protocol. In the mode, the modem exchanges data with the host (the esp32-s3 running MicroPython) using a binary protocol. When this is active, it is currently not possible to send AT commands to the modem.</p>
]]></description><link>https://forum.sgwireless.com/post/61</link><guid isPermaLink="true">https://forum.sgwireless.com/post/61</guid><dc:creator><![CDATA[cehlers]]></dc:creator><pubDate>Tue, 22 Apr 2025 10:58:56 GMT</pubDate></item></channel></rss>