<?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>reading AT responses from the modem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51868/reading-at-responses-from-the-modem</link><description>I am trying to read from the modem on the nrf9160 DK using the AF_LTE socket and am running to a problem with reading the response from AT+CLAC. I&amp;#39;ve chosen that command to stress test the code to see if it can handle big responses. The normal response</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 21 Sep 2019 03:46:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51868/reading-at-responses-from-the-modem" /><item><title>RE: reading AT responses from the modem</title><link>https://devzone.nordicsemi.com/thread/211031?ContentTypeID=1</link><pubDate>Sat, 21 Sep 2019 03:46:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88c4ac97-f6cb-4620-8171-7a1ccefb9d31</guid><dc:creator>miked531</dc:creator><description>&lt;p&gt;I found the answer I was looking for. the socket is a datagram. See&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/44057/bsdlib-at-socket-api"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/44057/bsdlib-at-socket-api&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: reading AT responses from the modem</title><link>https://devzone.nordicsemi.com/thread/210881?ContentTypeID=1</link><pubDate>Fri, 20 Sep 2019 09:14:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcafbdf7-b643-4a66-8cb8-fcde7d887db5</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Two things I thought I should make you aware of:&lt;/p&gt;
&lt;p&gt;1. There is a new modem firmware version (v1.0.1), which you should upgrade to.&lt;/p&gt;
&lt;p&gt;2. There is an interesting conversation happening here: &lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf/pull/1143"&gt;https://github.com/NordicPlayground/fw-nrfconnect-nrf/pull/1143&lt;/a&gt; that is somewhat related to your case.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: reading AT responses from the modem</title><link>https://devzone.nordicsemi.com/thread/209049?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2019 03:40:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e1753e7-fed5-455d-8044-4657856521b1</guid><dc:creator>miked531</dc:creator><description>&lt;p&gt;Thanks for the command suggestions. For the time being I will keep the max size small as I have no need for the commands listed above.&lt;/p&gt;
&lt;p&gt;I am not using the AT driver, but similar code to what the driver does and the same resolution applies, to set a max response size. I added a call to recv(..., MSG_PEEK) which works nicely to let me know if the response would exceed the buffer size.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: reading AT responses from the modem</title><link>https://devzone.nordicsemi.com/thread/209003?ContentTypeID=1</link><pubDate>Tue, 10 Sep 2019 14:32:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7270e9de-94ec-4be1-997d-87e9a261e88f</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Regarding other AT commands with long responses, I only know of %CMNG. Looking at the documentation, I also expect it might be necessary with %XPMNG, %XBANDLOCK, %XMIPIRFFEDEV, %XMONITOR, and +CMT notifications. However, I have not confirmed the max length of those responses.&lt;/p&gt;
&lt;p&gt;As to how you can receive long responses, you can do this by setting CONFIG_AT_CMD_RESPONSE_MAX_LEN to a sufficiently large number in your prj.conf.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>