<?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[Weird issue when pinging an external server]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Using the GPy in attached mode. Modem is registered and connected to the network on NB-IoT mode.<br />
My issue:<br />
I can't ping an external server when I try to ping <strong>once</strong> using the AT-command: AT!="IP::ping <a href="http://XXX.XXX.XXX.XXX" target="_blank" rel="noopener noreferrer nofollow ugc">XXX.XXX.XXX.XXX</a>",<br />
but if I ping <strong>multiple times</strong> in a row it <strong>succeeds</strong> (same AT-command, but inside a while(True)).</p>
<p dir="auto">Some help would be great,<br />
Thanks,</p>
<p dir="auto">Shedaim</p>
]]></description><link>https://forum.pycom.io/topic/3982/weird-issue-when-pinging-an-external-server</link><generator>RSS for Node</generator><lastBuildDate>Thu, 12 Nov 2026 07:52:25 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/3982.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 11 Nov 2018 16:01:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Weird issue when pinging an external server on Tue, 13 Nov 2018 15:53:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/elizar" aria-label="Profile: elizar">@<bdi>elizar</bdi></a> said in <a href="/post/23425">Weird issue when pinging an external server</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/shedaim" aria-label="Profile: shedaim">@<bdi>shedaim</bdi></a> Ping'ing takes time. Maybe the successful reply to the second ping is in fact the answer to the first ping?</p>
</blockquote>
<p dir="auto">Using the newly added "delay" option should have fixed that, so I don't believe that's what's happening.</p>
<p dir="auto">This is what I managed to find out untill now:</p>
<p dir="auto">Trying a single ping message:<br />
Ping request     UE --&gt; Server             Success<br />
Ping reply          Server --&gt; EPG          Success<br />
Ping reply          EPG --&gt; MME            Success<br />
Ping reply          MME --&gt; eNodeB     Success<br />
Ping reply          eNodeB --&gt; UE          <strong>Unknown</strong> (Doesn't show in Atom, but MME states that message has been sent)</p>
<p dir="auto">Trying two pings in rapid succession:<br />
Ping request     UE --&gt; Server             Success<br />
Ping reply          Server --&gt; EPG          Success<br />
Ping reply          EPG --&gt; MME            Success<br />
Ping reply          MME --&gt; eNodeB     Success<br />
ping reply          eNodeB --&gt; UE          <strong>Unknown</strong> (Doesn't show in Atom, but MME states that message has been sent)<br />
Ping request     UE --&gt; Server             Success<br />
ping reply          Server --&gt; UE             Success (Arrives after 150 - 500 ms)</p>
<p dir="auto">Pinging from server to UE is successful continuously.<br />
eDRX is in state "NOT_CONFIGURED" - same as network.<br />
Tried to disable sleep of the modem using AT!="EE::disable"</p>
<p dir="auto">Additional information for the Pros:<br />
First Ping message is sent over S1AP/NAS-EPS in the initial message to the MME, which contains a Control Plane Service Request. Second ping message is sent over the same interface as an UplinkNasTransport message.<br />
Wireshark of MME messages - <a href="https://drive.google.com/open?id=1czPgfeygH9eavlAcml_XJvgkXNJXbgDm" target="_blank" rel="noopener noreferrer nofollow ugc">Download</a></p>
]]></description><link>https://forum.pycom.io/post/23463</link><guid isPermaLink="true">https://forum.pycom.io/post/23463</guid><dc:creator><![CDATA[shedaim]]></dc:creator><pubDate>Tue, 13 Nov 2018 15:53:43 GMT</pubDate></item><item><title><![CDATA[Reply to Weird issue when pinging an external server on Mon, 12 Nov 2018 10:06:02 GMT]]></title><description><![CDATA[<p dir="auto">Tried with the new firmware using several different delays but no luck.<br />
I sniffered the data going through the MME and I can see the first Ping request going over the initial request for a bearer.<br />
I can see a Downlink NAS message (ciphered), so I believe the ping answer is actually returning to the modem but is not read correctly.<br />
Tried with a Telit modem and it all works well.</p>
<p dir="auto">Btw, if it helps, I also cannot connect with a simple socket to an http server (the same one that I can ping, so no problems with routing). I always get OSError: -1 for s = socket.socket(), s.connect(('<a href="http://XXX.XXX.XXX.XXX" target="_blank" rel="noopener noreferrer nofollow ugc">XXX.XXX.XXX.XXX</a>', 80))</p>
]]></description><link>https://forum.pycom.io/post/23435</link><guid isPermaLink="true">https://forum.pycom.io/post/23435</guid><dc:creator><![CDATA[shedaim]]></dc:creator><pubDate>Mon, 12 Nov 2018 10:06:02 GMT</pubDate></item><item><title><![CDATA[Reply to Weird issue when pinging an external server on Sun, 11 Nov 2018 20:20:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/shedaim" aria-label="Profile: shedaim">@<bdi>shedaim</bdi></a><br />
Try to send the command with "delay" parameter introduced in v1.18.1.r3.</p>
<p dir="auto">send_at_cmd() has an optional parameter lte.send_at_cmd('AT', delay=1000). The delay in milliseconds is the time the esp32 waits between sending the request to the modem and reading the response.</p>
<p dir="auto"><a href="https://forum.pycom.io/topic/3968/new-lte-firmware-release-v1-18-1-r3-cat-m1-firmware-modem-updater">https://forum.pycom.io/topic/3968/new-lte-firmware-release-v1-18-1-r3-cat-m1-firmware-modem-updater</a></p>
]]></description><link>https://forum.pycom.io/post/23426</link><guid isPermaLink="true">https://forum.pycom.io/post/23426</guid><dc:creator><![CDATA[danielm]]></dc:creator><pubDate>Sun, 11 Nov 2018 20:20:04 GMT</pubDate></item><item><title><![CDATA[Reply to Weird issue when pinging an external server on Sun, 11 Nov 2018 19:08:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/shedaim" aria-label="Profile: shedaim">@<bdi>shedaim</bdi></a> Ping'ing takes time. Maybe the successful reply to the second ping is in fact the answer to the first ping?</p>
]]></description><link>https://forum.pycom.io/post/23425</link><guid isPermaLink="true">https://forum.pycom.io/post/23425</guid><dc:creator><![CDATA[Elizar]]></dc:creator><pubDate>Sun, 11 Nov 2018 19:08:45 GMT</pubDate></item></channel></rss>