<?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[Struggle with Pycom LTE]]></title><description><![CDATA[<p dir="auto">Hello, i´m having some problems with <strong>Pycom Gpy in LTE</strong> and wondering if someone can gimme tip or something (From Brazil here):</p>
<p dir="auto">I´m trying to <strong>Attach and Connect to LTE</strong> network using the following code:<br />
<a href="https://core-electronics.com.au/tutorials/pycom-gpy-getting-started.html" target="_blank" rel="noopener noreferrer nofollow">https://core-electronics.com.au/tutorials/pycom-gpy-getting-started.html</a><br />
(tutorial from core-electronics)</p>
<p dir="auto">The problem is <strong>this lines down</strong>:</p>
<p dir="auto">print(&quot;Configuring LTE &quot;, end='')<br />
<strong>lte.send_at_cmd</strong>('AT+CGDCONT=1,&quot;IP&quot;,&quot;telstra.internet&quot;')<br />
print(&quot;.&quot;, end='')<br />
<strong>lte.send_at_cmd</strong>('AT!=&quot;RRC::addscanfreq band=28 dl-earfcn=9410&quot;')<br />
print(&quot;.&quot;, end='')<br />
<strong>lte.send_at_cmd</strong>('AT+CFUN=1')<br />
print(&quot; OK&quot;)</p>
<p dir="auto">I understand that the telstra.internet refeers to the Nano SIM Card. I used to use an moden for my Raspberry pi 3b and <strong>used to send this AT-commands</strong>:</p>
<ul>
<li>ATZ</li>
<li>ATQ0 V1 E1 S0=0 &amp;C1 $D2 +FCLASS=0</li>
<li>AT+CGDCONT=1,&quot;IP&quot;,&quot;<a href="http://zap.vivo.com.br" target="_blank" rel="noopener noreferrer nofollow">zap.vivo.com.br</a>&quot;</li>
<li>AT+CFUN =1,0</li>
</ul>
<p dir="auto">And didn´t work.</p>
<p dir="auto"><strong>Vivo refeers to my Nano SIM Card</strong>, but i really dont know much about the AT-commands in a moldem.</p>
<p dir="auto">By the way, i have updated the firmware from my Gpy, the board to the Pymakr and the modem with internal commands in Atom.</p>
<p dir="auto">Has anyone has an idea to help me?</p>
]]></description><link>https://forum.pycom.io/topic/5641/struggle-with-pycom-lte</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 17:52:55 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/5641.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 02 Feb 2020 18:34:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Struggle with Pycom LTE on Sun, 02 Feb 2020 18:34:23 GMT]]></title><description><![CDATA[<p dir="auto">Hello, i´m having some problems with <strong>Pycom Gpy in LTE</strong> and wondering if someone can gimme tip or something (From Brazil here):</p>
<p dir="auto">I´m trying to <strong>Attach and Connect to LTE</strong> network using the following code:<br />
<a href="https://core-electronics.com.au/tutorials/pycom-gpy-getting-started.html" target="_blank" rel="noopener noreferrer nofollow">https://core-electronics.com.au/tutorials/pycom-gpy-getting-started.html</a><br />
(tutorial from core-electronics)</p>
<p dir="auto">The problem is <strong>this lines down</strong>:</p>
<p dir="auto">print(&quot;Configuring LTE &quot;, end='')<br />
<strong>lte.send_at_cmd</strong>('AT+CGDCONT=1,&quot;IP&quot;,&quot;telstra.internet&quot;')<br />
print(&quot;.&quot;, end='')<br />
<strong>lte.send_at_cmd</strong>('AT!=&quot;RRC::addscanfreq band=28 dl-earfcn=9410&quot;')<br />
print(&quot;.&quot;, end='')<br />
<strong>lte.send_at_cmd</strong>('AT+CFUN=1')<br />
print(&quot; OK&quot;)</p>
<p dir="auto">I understand that the telstra.internet refeers to the Nano SIM Card. I used to use an moden for my Raspberry pi 3b and <strong>used to send this AT-commands</strong>:</p>
<ul>
<li>ATZ</li>
<li>ATQ0 V1 E1 S0=0 &amp;C1 $D2 +FCLASS=0</li>
<li>AT+CGDCONT=1,&quot;IP&quot;,&quot;<a href="http://zap.vivo.com.br" target="_blank" rel="noopener noreferrer nofollow">zap.vivo.com.br</a>&quot;</li>
<li>AT+CFUN =1,0</li>
</ul>
<p dir="auto">And didn´t work.</p>
<p dir="auto"><strong>Vivo refeers to my Nano SIM Card</strong>, but i really dont know much about the AT-commands in a moldem.</p>
<p dir="auto">By the way, i have updated the firmware from my Gpy, the board to the Pymakr and the modem with internal commands in Atom.</p>
<p dir="auto">Has anyone has an idea to help me?</p>
]]></description><link>https://forum.pycom.io/post/31437</link><guid isPermaLink="true">https://forum.pycom.io/post/31437</guid><dc:creator><![CDATA[rafaelFerreira]]></dc:creator><pubDate>Sun, 02 Feb 2020 18:34:23 GMT</pubDate></item><item><title><![CDATA[Reply to Struggle with Pycom LTE on Mon, 03 Feb 2020 03:09:08 GMT]]></title><description><![CDATA[<p dir="auto">So you are using lte.send_at_cmd('AT+CGDCONT=1,&quot;IP&quot;,&quot;<a href="http://zap.vivo.com.br" target="_blank" rel="noopener noreferrer nofollow">zap.vivo.com.br</a>&quot;') with a zap sim &amp; not getting an attachment?</p>
<p dir="auto">Is the sim current?</p>
<p dir="auto">What response do you get to mood=lte.send_at_cmd('at+cpin?').split('\r\n')[1]; print('modem', mood)</p>
]]></description><link>https://forum.pycom.io/post/31441</link><guid isPermaLink="true">https://forum.pycom.io/post/31441</guid><dc:creator><![CDATA[kjm]]></dc:creator><pubDate>Mon, 03 Feb 2020 03:09:08 GMT</pubDate></item><item><title><![CDATA[Reply to Struggle with Pycom LTE on Mon, 03 Feb 2020 04:19:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/3449">@kjm</a><br />
Yes, i´m sure that i´m using the correct SIM (it´s from Vivo)<br />
I receive the message '<strong>modem ERROR</strong>' when i apply your command in my code</p>
]]></description><link>https://forum.pycom.io/post/31443</link><guid isPermaLink="true">https://forum.pycom.io/post/31443</guid><dc:creator><![CDATA[rafaelFerreira]]></dc:creator><pubDate>Mon, 03 Feb 2020 04:19:20 GMT</pubDate></item><item><title><![CDATA[Reply to Struggle with Pycom LTE on Mon, 03 Feb 2020 04:46:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/5740">@rafaelFerreira</a> between lte=network.LTE() and trying to attach it is worthwhile checking the modem's mood with at+cpin if you get an error then</p>
<pre><code>lte.send_at_cmd('AT^RESET')
</code></pre>
<p dir="auto">attachment only works if the mood is 'ready' or 'sysstart'</p>
]]></description><link>https://forum.pycom.io/post/31445</link><guid isPermaLink="true">https://forum.pycom.io/post/31445</guid><dc:creator><![CDATA[kjm]]></dc:creator><pubDate>Mon, 03 Feb 2020 04:46:08 GMT</pubDate></item><item><title><![CDATA[Reply to Struggle with Pycom LTE on Mon, 03 Feb 2020 04:53:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/3449">@kjm</a><br />
Well, i got something more specific here in this time....<br />
I applied this <strong>line in my code</strong>.</p>
<p dir="auto"><strong>mood</strong>=lte.send_at_cmd('at+cpin?').split('\r\n')[1]<br />
print('modem', mood)<br />
<strong>simreg</strong>=lte.send_at_cmd('at+creg?').split(',')[1][:1]<br />
print('sim reg =', simreg, end=' ')<br />
<strong>service</strong>=lte.send_at_cmd('AT+cind?').split(': ')[1][2]<br />
print('service =', service)<br />
time.sleep(1)</p>
<p dir="auto">and this was the <strong>answer</strong>:</p>
<p dir="auto">modem +CPIN: READY<br />
sim reg = 0 service = 0</p>
<p dir="auto">Sorry for my ignorance, but I really don't know much about it.<br />
Do you know something?</p>
]]></description><link>https://forum.pycom.io/post/31446</link><guid isPermaLink="true">https://forum.pycom.io/post/31446</guid><dc:creator><![CDATA[rafaelFerreira]]></dc:creator><pubDate>Mon, 03 Feb 2020 04:53:56 GMT</pubDate></item><item><title><![CDATA[Reply to Struggle with Pycom LTE on Mon, 03 Feb 2020 04:56:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/5740">@rafaelFerreira</a> simreg &amp; service simply confirm you don't have an attachment. Try the modem reset if you get an error for mood, that's where the problem is.</p>
]]></description><link>https://forum.pycom.io/post/31447</link><guid isPermaLink="true">https://forum.pycom.io/post/31447</guid><dc:creator><![CDATA[kjm]]></dc:creator><pubDate>Mon, 03 Feb 2020 04:56:41 GMT</pubDate></item><item><title><![CDATA[Reply to Struggle with Pycom LTE on Mon, 03 Feb 2020 05:11:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/3449">@kjm</a><br />
Yeah, i actually do this reset in code:</p>
<p dir="auto">print(&quot;Resetting LTE modem ... &quot;, end='')<br />
lte.send_at_cmd('AT^RESET')<br />
print(&quot;OK&quot;)<br />
time.sleep(2)</p>
<p dir="auto">and you´re right. I move this commands to my 'attach loop' see:</p>
<p dir="auto">#Code<br />
print(&quot;Configuring LTE &quot;, end='')<br />
lte.send_at_cmd('AT+CGDCONT=1,&quot;IP&quot;,&quot;<a href="http://zap.vivo.com.br" target="_blank" rel="noopener noreferrer nofollow">zap.vivo.com.br</a>&quot;')<br />
print(&quot;.&quot;, end='')<br />
lte.send_at_cmd('AT!=&quot;RRC::addscanfreq band=28 dl-earfcn=9410&quot;')<br />
print(&quot;.&quot;, end='')<br />
lte.send_at_cmd('AT+CFUN=1')<br />
print(&quot; OK&quot;)<br />
time.sleep(1)</p>
<pre><code>mood=lte.send_at_cmd('at+cpin?').split('\r\n')[1]; print('modem', mood)


# If correctly configured for carrier network, attach() should succeed.
if not lte.isattached():
    print(&quot;Attaching to LTE network &quot;, end='')
    lte.attach()
    while(True):
        if lte.isattached():
            print(&quot; OK&quot;)
            break
        print('.', end='')
        simreg=lte.send_at_cmd('at+creg?').split(',')[1][:1]; print('sim reg =', simreg, end=' ')
        service=lte.send_at_cmd('AT+cind?').split(': ')[1][2]; print('service =', service)
        time.sleep(1)
</code></pre>
<p dir="auto">and the return now is:<br />
sim reg = 2 service = 0</p>
<p dir="auto">I think the error is in<br />
lte.send_at_cmd('AT!=&quot;RRC::addscanfreq band=28 dl-earfcn=9410&quot;')</p>
<p dir="auto">Do you know something to help?</p>
]]></description><link>https://forum.pycom.io/post/31448</link><guid isPermaLink="true">https://forum.pycom.io/post/31448</guid><dc:creator><![CDATA[rafaelFerreira]]></dc:creator><pubDate>Mon, 03 Feb 2020 05:11:14 GMT</pubDate></item><item><title><![CDATA[Reply to Struggle with Pycom LTE on Mon, 03 Feb 2020 05:17:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/5740">@rafaelFerreira</a> simreg=2 means the modem is trying to attach. Have you tried commenting out the addscanfreq line to see if it's preventing attachment?</p>
]]></description><link>https://forum.pycom.io/post/31449</link><guid isPermaLink="true">https://forum.pycom.io/post/31449</guid><dc:creator><![CDATA[kjm]]></dc:creator><pubDate>Mon, 03 Feb 2020 05:17:04 GMT</pubDate></item><item><title><![CDATA[Reply to Struggle with Pycom LTE on Mon, 03 Feb 2020 05:25:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/3449">@kjm</a><br />
Yep. I tryed this.</p>
<p dir="auto">Hm, question: Is it ok to use a LoRa antenna to this Attaching? Or it´s realy required the LTE antenna? The frequency is the same</p>
]]></description><link>https://forum.pycom.io/post/31450</link><guid isPermaLink="true">https://forum.pycom.io/post/31450</guid><dc:creator><![CDATA[rafaelFerreira]]></dc:creator><pubDate>Mon, 03 Feb 2020 05:25:05 GMT</pubDate></item><item><title><![CDATA[Reply to Struggle with Pycom LTE on Mon, 03 Feb 2020 05:33:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/5740">@rafaelFerreira</a> How can you be sure the frequency is the same? Do you know the band your Telco is running cat-m1 on? It's best NOT to limit the modem to certain bands. That was Nakovi's problem @ <a href="https://forum.pycom.io/topic/5576/gpy-lte-modem-does-not-respond/14">https://forum.pycom.io/topic/5576/gpy-lte-modem-does-not-respond/14</a>  (see his last post)</p>
]]></description><link>https://forum.pycom.io/post/31451</link><guid isPermaLink="true">https://forum.pycom.io/post/31451</guid><dc:creator><![CDATA[kjm]]></dc:creator><pubDate>Mon, 03 Feb 2020 05:33:24 GMT</pubDate></item><item><title><![CDATA[Reply to Struggle with Pycom LTE on Mon, 03 Feb 2020 05:39:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/3449">@kjm</a></p>
<p dir="auto">Hm, yeah thanks, that´s a good view.<br />
Just one last question: if i get the LTE antenna, will i get more success  results or change the antenna is not that important?</p>
]]></description><link>https://forum.pycom.io/post/31452</link><guid isPermaLink="true">https://forum.pycom.io/post/31452</guid><dc:creator><![CDATA[rafaelFerreira]]></dc:creator><pubDate>Mon, 03 Feb 2020 05:39:51 GMT</pubDate></item><item><title><![CDATA[Reply to Struggle with Pycom LTE on Mon, 03 Feb 2020 05:45:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/5740">@rafaelFerreira</a> Having a good quality lte antenna is very important. Beware the cheap chinese antennas claiming 698-2700MHz range, most of 'em are 850-2700MHz which is important for band 28 (700MHz)</p>
]]></description><link>https://forum.pycom.io/post/31453</link><guid isPermaLink="true">https://forum.pycom.io/post/31453</guid><dc:creator><![CDATA[kjm]]></dc:creator><pubDate>Mon, 03 Feb 2020 05:45:25 GMT</pubDate></item><item><title><![CDATA[Reply to Struggle with Pycom LTE on Mon, 03 Feb 2020 12:27:51 GMT]]></title><description><![CDATA[<p dir="auto">Note that if I understand things correctly, Vivo BR is currently deploying Cat-M1 and NB-IoT, so you may not necessarily be covered in your area yet.</p>
<p dir="auto">Also, you may need a specific subscription for this, it may not work with a regular LTE subscription (from what I understand at least NB-IoT will have specific billing structure).</p>
<p dir="auto">Apparently Vivo uses LTE bands 3, 7 and 28. Don't restrict yourself to a single band, coverage at your place may be available in only some of those bands. The FiPy does not support band 7, though.</p>
<p dir="auto">Also make sure you have recent firmware for both the modem and FiPy, and that the modem firmware you use matches the technology you want (Cat-M1 or NB-IoT).</p>
]]></description><link>https://forum.pycom.io/post/31460</link><guid isPermaLink="true">https://forum.pycom.io/post/31460</guid><dc:creator><![CDATA[jcaron]]></dc:creator><pubDate>Mon, 03 Feb 2020 12:27:51 GMT</pubDate></item><item><title><![CDATA[Reply to Struggle with Pycom LTE on Mon, 03 Feb 2020 18:41:14 GMT]]></title><description><![CDATA[<p dir="auto">hey,<br />
Are there an AT-command to insert Username and Password relative to this Vivo? Like, I note that when i put the AT-commands to use a modem in Raspberry, i send another AT-commands to set Vivo Username and Password.</p>
<p dir="auto">Well... there are?</p>
]]></description><link>https://forum.pycom.io/post/31465</link><guid isPermaLink="true">https://forum.pycom.io/post/31465</guid><dc:creator><![CDATA[rafaelFerreira]]></dc:creator><pubDate>Mon, 03 Feb 2020 18:41:14 GMT</pubDate></item><item><title><![CDATA[Reply to Struggle with Pycom LTE on Mon, 03 Feb 2020 21:13:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/5740">@rafaelFerreira</a> You can send AT commands (lte.send_at_cmd(&quot;xxx&quot;)), and the commands for Username &amp; password should be generic.</p>
]]></description><link>https://forum.pycom.io/post/31469</link><guid isPermaLink="true">https://forum.pycom.io/post/31469</guid><dc:creator><![CDATA[robert-hh]]></dc:creator><pubDate>Mon, 03 Feb 2020 21:13:58 GMT</pubDate></item><item><title><![CDATA[Reply to Struggle with Pycom LTE on Wed, 05 Feb 2020 17:35:07 GMT]]></title><description><![CDATA[<p dir="auto">I changed my code to this:</p>
<p dir="auto">#code<br />
import socket<br />
import ssl<br />
import time<br />
from network import LTE<br />
import pycom</p>
<p dir="auto">pycom.heartbeat(False)</p>
<p dir="auto">lte = LTE(carrier=&quot;verizon&quot;)    # instantiate the LTE object<br />
lte.attach(band=13)        # attach the cellular modem to a base station, initially it was lte.attach()<br />
print( &quot; While loop1&quot;) # print stmt to check on terminal<br />
time.sleep(5) # added 5 seconds wait<br />
pycom.rgbled(0x0000ff) # BLUE LED</p>
<p dir="auto">print(lte.send_at_cmd('ATZ'))<br />
time.sleep(0.5)<br />
print(lte.send_at_cmd('ATQ0'))<br />
time.sleep(0.5)</p>
<p dir="auto">print(lte.send_at_cmd('AT+CGDCONT=1,&quot;IP&quot;,&quot;<a href="http://zap.vivo.com.br" target="_blank" rel="noopener noreferrer nofollow">zap.vivo.com.br</a>&quot;'))<br />
time.sleep(0.5)<br />
print(lte.send_at_cmd('AT+CGAUTH=1,1,&quot;vivo&quot;,&quot;vivo&quot;'))<br />
time.sleep(0.5)</p>
<p dir="auto">lte.send_at_cmd('AT+CFUN=1')<br />
time.sleep(1)</p>
<p dir="auto">mood=lte.send_at_cmd('at+cpin?').split('\r\n')[1]; print('modem', mood)</p>
<p dir="auto">while not lte.isattached():<br />
print('Signal:%s'%lte.send_at_cmd('AT+CSQ'))<br />
lte.send_at_cmd('AT+CSQ')<br />
print('Status:%s '%lte.send_at_cmd('AT+CEER'))<br />
lte.send_at_cmd('AT+CEER')<br />
time.sleep(5)  # originally 0.25 changed to 5.0<br />
lte.attach()<br />
lte.connect(cid=3)       # start a data session and obtain an IP address<br />
print( &quot; While loop2&quot;)<br />
pycom.rgbled(0x00ff00) # GREEN LED<br />
while not lte.isconnected():<br />
time.sleep(0.25)</p>
<p dir="auto">s = socket.socket()<br />
s = ssl.wrap_socket(s)<br />
s.connect(socket.getaddrinfo('<a href="http://www.google.com" target="_blank" rel="noopener noreferrer nofollow">www.google.com</a>', 443)[0][-1])<br />
s.send(b&quot;GET / HTTP/1.0\r\n\r\n&quot;)<br />
print(s.recv(4096))<br />
s.close()<br />
#endcode</p>
<p dir="auto">the message that i´m receiving is:</p>
<p dir="auto">Signal:<br />
+CSQ: 22,99</p>
<p dir="auto">OK</p>
<p dir="auto">Status:<br />
+CEER: lastEmmCause: NO_SUITABLE_CELLS_IN_TRACKING_AREA, lastEsmCause: EMM_NOT_ATTACHED</p>
<p dir="auto">Has any one has an idea of what that means? '-'</p>
]]></description><link>https://forum.pycom.io/post/31499</link><guid isPermaLink="true">https://forum.pycom.io/post/31499</guid><dc:creator><![CDATA[rafaelFerreira]]></dc:creator><pubDate>Wed, 05 Feb 2020 17:35:07 GMT</pubDate></item></channel></rss>