<?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[ATOM-DTU-NB-IOT no connect to sim7020G Module]]></title><description><![CDATA[<p dir="auto">Hi<br />
I try to run the following code on a Atom-DTU NB-IOT</p>
<p dir="auto">from m5stack import *<br />
from m5ui import *<br />
from uiflow import *<br />
from base.DTU_NB import DTU_NB<br />
import time</p>
<p dir="auto">print('init module.....')<br />
dtu_nb = DTU_NB()<br />
print('dtu initialized.....')</p>
<p dir="auto">"dtu initialized..." is never printed, if i connect via usb/serial and enter ctrl-C i get the following output:</p>
<p dir="auto">init module.....<br />
Traceback (most recent call last):<br />
File "<a href="http://main.py" target="_blank" rel="noopener noreferrer nofollow ugc">main.py</a>", line 30, in &lt;module&gt;<br />
File "base/DTU_NB.py", line 31, in <strong>init</strong><br />
File "base/DTU_NB.py", line 42, in ischeck_IP<br />
File "libs/simcom/common.py", line 265, in send_at_cmd<br />
File "libs/simcom/common.py", line 274, in wait_at_cmd_ok<br />
KeyboardInterrupt:<br />
MicroPython d725c2ac8-dirty on 2022-10-13; M5Stack with ESP32<br />
Type "help()" for more information.</p>
<blockquote>
<blockquote>
<blockquote></blockquote>
</blockquote>
</blockquote>
<p dir="auto">while i'm not shure if my sim card is working for nb-iot and not just for LTE, was hoping to be able to communicate with the sim7020G to get some information.<br />
what could be wrong?</p>
]]></description><link>https://community.m5stack.com/topic/4784/atom-dtu-nb-iot-no-connect-to-sim7020g-module</link><generator>RSS for Node</generator><lastBuildDate>Fri, 08 May 2026 00:44:53 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4784.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 05 Nov 2022 12:12:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ATOM-DTU-NB-IOT no connect to sim7020G Module on Thu, 24 Nov 2022 15:23:46 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/roadfox" aria-label="Profile: roadfox">@<bdi>roadfox</bdi></a></p>
<p dir="auto">in case you are still looking for a suitable NB-IoT SIM card. I recently got one from Miotiq which works fine for me. See <a href="https://www.gwendesign.ch/kb/m5stack/iotbase/" target="_blank" rel="noopener noreferrer nofollow ugc">here</a> for more detail.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/19370</link><guid isPermaLink="true">https://community.m5stack.com/post/19370</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Thu, 24 Nov 2022 15:23:46 GMT</pubDate></item><item><title><![CDATA[Reply to ATOM-DTU-NB-IOT no connect to sim7020G Module on Sun, 06 Nov 2022 05:02:55 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/roadfox" aria-label="Profile: roadfox">@<bdi>roadfox</bdi></a></p>
<p dir="auto">you are welcome. I am glad it worked for you.</p>
<p dir="auto">Please let me know what you find regarding NB-IoT SIM card.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/19216</link><guid isPermaLink="true">https://community.m5stack.com/post/19216</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Sun, 06 Nov 2022 05:02:55 GMT</pubDate></item><item><title><![CDATA[Reply to ATOM-DTU-NB-IOT no connect to sim7020G Module on Sat, 05 Nov 2022 22:13:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/felmue" aria-label="Profile: felmue">@<bdi>felmue</bdi></a><br />
thank you so much. was able to verify that the sim7020G is responding</p>
<blockquote>
<p dir="auto">AT<br />
&lt; AT<br />
9900<br />
&lt; OK<br />
found</p>
</blockquote>
<p dir="auto">so next to find a sim card which works...</p>
]]></description><link>https://community.m5stack.com/post/19215</link><guid isPermaLink="true">https://community.m5stack.com/post/19215</guid><dc:creator><![CDATA[roadfox]]></dc:creator><pubDate>Sat, 05 Nov 2022 22:13:49 GMT</pubDate></item><item><title><![CDATA[Reply to ATOM-DTU-NB-IOT no connect to sim7020G Module on Sat, 05 Nov 2022 17:35:12 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/roadfox" aria-label="Profile: roadfox">@<bdi>roadfox</bdi></a></p>
<p dir="auto">I've put together an <a href="https://github.com/felmue/MyM5StackExamples/blob/main/M5Atom/atom_dtu_nb_iot.py" target="_blank" rel="noopener noreferrer nofollow ugc">example</a> which sends an AT command when the M5Atom button is pressed and then waits for the OK response or times out.</p>
<p dir="auto">BTW: I am using an NB-IoT SIM card from <a href="https://iotcreators.com/" target="_blank" rel="noopener noreferrer nofollow ugc">IoT Creators</a> - they offer a free testkit.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/19214</link><guid isPermaLink="true">https://community.m5stack.com/post/19214</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Sat, 05 Nov 2022 17:35:12 GMT</pubDate></item><item><title><![CDATA[Reply to ATOM-DTU-NB-IOT no connect to sim7020G Module on Sat, 05 Nov 2022 15:46:25 GMT]]></title><description><![CDATA[<p dir="auto">Hi Felix<br />
Thanks for the fast response!<br />
I'm pretty sure it is the SIM, while pin is removed the card is probably not valid for NB-IOT. I can also not figure out how to get an NB-IOT compatible SIM card here in Switzerland, seems to be an "enterprise thing" :-(</p>
<p dir="auto">Before i return the Device and try with the Lora version, is there an easy way for me to test if communication with the sim7020G is ok, so setting up the correct serial and issue an AT command in mycropython by hand?</p>
<p dir="auto">Tried to find the source code for base/DTU_NB.py but without success.</p>
<p dir="auto">danke<br />
Andi</p>
]]></description><link>https://community.m5stack.com/post/19213</link><guid isPermaLink="true">https://community.m5stack.com/post/19213</guid><dc:creator><![CDATA[roadfox]]></dc:creator><pubDate>Sat, 05 Nov 2022 15:46:25 GMT</pubDate></item><item><title><![CDATA[Reply to ATOM-DTU-NB-IOT no connect to sim7020G Module on Sat, 05 Nov 2022 14:32:07 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/roadfox" aria-label="Profile: roadfox">@<bdi>roadfox</bdi></a></p>
<p dir="auto">the Init NB-IoT DTU block (aka <code>dtu_nb = DTU_NB()</code>) executes the below conversation with the modem and if it doesn't get the proper responses repeats the commands forever.</p>
<pre><code>&gt; ATE0
&lt; OK
&gt; AT+CPIN?
&lt; +CPIN: READY
&lt; OK
&gt; AT+CGCONTRDP
&lt; +CGCONTRDP: 1,5,"myapn","10.10.10.84.255.255.255.0",,"10.10.20.210","10.10.20.211"
&lt; OK
</code></pre>
<p dir="auto">So make sure that your SIM card doesn't have a PIN set and works for NB-IoT.</p>
<p dir="auto">From my experience SIM cards for NB-IoT are different from SIM cards for smartphones.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/19212</link><guid isPermaLink="true">https://community.m5stack.com/post/19212</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Sat, 05 Nov 2022 14:32:07 GMT</pubDate></item></channel></rss>