<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>serial LTE modem bricks</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77735/serial-lte-modem-bricks</link><description>Hello. For a long time I see that nrf9160 Serial LTE modem examples are not stable, tested few times in a year.At very begininng I have customized for my own needs SLM application and it works fine (2020 May source code). At least it works stable with</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Jul 2021 11:05:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77735/serial-lte-modem-bricks" /><item><title>RE: serial LTE modem bricks</title><link>https://devzone.nordicsemi.com/thread/322197?ContentTypeID=1</link><pubDate>Wed, 28 Jul 2021 11:05:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33b23290-49f3-4916-8d4b-a53fdffaae7a</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hello again, D4L!&lt;br /&gt;&lt;br /&gt;Thanks for the update. Good to hear that it works better now! We&amp;#39;ll look into the baud rate issues.&lt;br /&gt;&lt;br /&gt;And thanks for the input, Jun!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: serial LTE modem bricks</title><link>https://devzone.nordicsemi.com/thread/322171?ContentTypeID=1</link><pubDate>Wed, 28 Jul 2021 08:50:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7ca9d8d-df54-44dc-bc4f-864f18b1f4db</guid><dc:creator>d4L</dc:creator><description>&lt;p&gt;Okay, I have tested with &lt;strong&gt;newest master branch&lt;/strong&gt;. Defined &lt;strong&gt;CONFIG_SLM_EXTERNAL_XTAL as &lt;/strong&gt;recommended. Where trying with 115200 baudrate.&lt;br /&gt;AT#XRECV=1 with 1s timeout works more stable, did not noticed any hanging.But&amp;nbsp; with 921600 baud rate it still hangs.&lt;br /&gt;But after many tests (with 115200 baud rate) still noticed few times that modem bricks on AT#XCONNECT command, but very rarely. Btw tested newest AT#XSEND without arguments, it works nice, versions above did not had that direct mode which can be stopped with special characters.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: serial LTE modem bricks</title><link>https://devzone.nordicsemi.com/thread/321936?ContentTypeID=1</link><pubDate>Tue, 27 Jul 2021 06:23:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e74f8f2d-b942-48f0-9866-9e1e4984eefd</guid><dc:creator>Jun Qing ZOU</dc:creator><description>&lt;p&gt;&lt;span&gt;AT#XRECV =0 (with zero timeout) will make SLM to wait infinitely for incoming packets.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/serial_lte_modem/doc/SOCKET_AT_commands.html#receive-data-xrecv"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/serial_lte_modem/doc/SOCKET_AT_commands.html#receive-data-xrecv&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please consider to add timeout then the poll function will help you.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: serial LTE modem bricks</title><link>https://devzone.nordicsemi.com/thread/321867?ContentTypeID=1</link><pubDate>Mon, 26 Jul 2021 14:29:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4907cb6e-ad46-4dee-98ae-a0e791d375c9</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hello again!&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve being doing some testing myself against &amp;quot;google.com:80&amp;quot; and I&amp;#39;m not seeing any issue there. However, I can confirm that trying to receive from a server without requesting first leaves the application hanging as no timeout is specified.&amp;nbsp;The issues you are seeing on the master branch may be related to&amp;nbsp;CONFIG_SLM_EXTERNAL_XTAL being disabled. Could you try to enable it and try again?&lt;br /&gt;&lt;br /&gt;Have you verified that the server you have setup at home is working properly? If possible please provide a modem trace of the application.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: serial LTE modem bricks</title><link>https://devzone.nordicsemi.com/thread/321398?ContentTypeID=1</link><pubDate>Thu, 22 Jul 2021 14:13:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e21ca8d-d2e3-4684-a2bc-eb6ce189bb4a</guid><dc:creator>d4L</dc:creator><description>&lt;p&gt;&lt;br /&gt;Hello, Carl. Glad that You are willing to help.&lt;br /&gt;&lt;br /&gt;Tested with very same conditions as before,&amp;nbsp; but with SLM version&amp;nbsp; from&amp;nbsp; &lt;strong&gt;origin/v1.6-branch.&lt;br /&gt;&lt;/strong&gt;End result is errors and random bricks. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Testing 1.6 version&lt;/strong&gt;&lt;br /&gt;/*******************************************************************************************************************************************/&lt;br /&gt;&lt;br /&gt;Firstly I am sending&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;AT+CFUN=1&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Then checking status with &lt;strong&gt;AT+COPS?&lt;/strong&gt;&lt;br /&gt;&amp;nbsp;If operator connects device, opening socket on my server:&lt;br /&gt;&lt;strong&gt;AT#XSOCKET=1,1,0&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Connecting to my server:&lt;br /&gt;&lt;br /&gt;AT#XCONNECT=&amp;quot;&amp;lt;ip&amp;gt;&amp;quot;,&amp;lt;port&amp;gt;&lt;br /&gt;&lt;br /&gt;With 1.6 version sometimes modem bricks even with AT#XCONNECT command, modem hangs for a random amount of time, sometimes it unbricks after 10-20 mins and throws&amp;nbsp;&lt;span style="font-size:10pt;"&gt;&lt;strong&gt; &lt;span style="color:#000000;font-family:&amp;#39;DejaVu Sans&amp;#39;;"&gt;#XSOCKET: -116,&amp;quot;closed&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;.&amp;nbsp; Anyway it should not hang so long at any case.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In cases when&amp;nbsp; connection with server establishes&amp;nbsp; without random bricking I continue with&amp;nbsp; AT#XRECV = 100 (receive 100 bytes) modem hangs, bricks or gets &lt;strong&gt;error (code -22&lt;/strong&gt;). ..Very rarely modem gets data from server...&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;For a testing I am using linux computer. Opening ports on my router, enabling&amp;nbsp; tcp port via firewall on linux pc.&lt;br /&gt;For simplicity using &lt;strong&gt;nc-l &amp;lt;port&amp;gt;&lt;/strong&gt; command to send/get data. It should not be a case.&lt;br /&gt;Trying with string, binary data, no matter what, results are same. With 2020 May master branch source code I have never discovered such strange modem behavior in same tests and conditions.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;strong&gt;Note&lt;br /&gt;&lt;/strong&gt; Keep in mind that I am aware of these changes:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;I know that 1.6 and above versions AT#XRECV commands has 1 argument which is &lt;strong&gt;data length&lt;/strong&gt;. In newest firmware from master branch it is &lt;strong&gt;timeout&lt;/strong&gt;. This is a major change. Also there are changes in data reception, hex, string and binary. Very old versions had string and hex modes, 1.6 has string for sure(tested with it) , newest master branch has binary direct data mode which is nicer.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Strange errors may be related with cellular operator at current time. But I can&amp;#39;t prove or disprove it. It just guess. Modem hangs and bricks should not be related with cellular operator network.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Regards, &lt;br /&gt;d4L&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: serial LTE modem bricks</title><link>https://devzone.nordicsemi.com/thread/321342?ContentTypeID=1</link><pubDate>Thu, 22 Jul 2021 12:02:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67fe7923-fbc0-4553-8e21-a54d9f6c824a</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hello, D4L!&lt;br /&gt;&lt;br /&gt;Thanks for reaching out. The master branch is not guaranteed to be stable, so could you test the SLM application on NCS v1.6.0, which is the latest stable release of the SDK? I will look into the issues with the master branch code. There has been some recent commits that may be causing them.&lt;br /&gt;&lt;br /&gt;Note as well that v1.3 of the modem firmware isn&amp;#39;t supported on the B0 HW revision, so please avoid upgrading your B0 HW with that release.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>