<?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>SLM HTTP client hangs with large payload</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79750/slm-http-client-hangs-with-large-payload</link><description>I recently switched from 1.5.1 to 1.6.1 and I&amp;#39;m now finding the SLM is misbehaving. 
 When I try to send a large payload such as 933 bytes of data, I find the CTS signal goes low after 274 bytes of data were sent. (There is some buffering in my mcu so</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 24 Sep 2021 06:36:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79750/slm-http-client-hangs-with-large-payload" /><item><title>RE: SLM HTTP client hangs with large payload</title><link>https://devzone.nordicsemi.com/thread/330967?ContentTypeID=1</link><pubDate>Fri, 24 Sep 2021 06:36:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99ed8f81-88a8-43c3-947e-7d7e2ba96e7e</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote userid="2831" url="~/f/nordic-q-a/79750/slm-http-client-hangs-with-large-payload/330925#330925"]Perhaps the slm_at_httpc.c code should remove the OK after partially sending data.&amp;nbsp; The other clients (ftp, mqtt, tcp) don&amp;#39;t do this, I have no idea why httpc should be different.[/quote]
&lt;p&gt;I will mention this in the internal jira.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But, what I was also made aware is that it is recommended to use ncs v1.7.0 for SLM, mainly due to this bug fix:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/commit/87ba51dbed3a4988eece125d8953d38ea78d6ed1"&gt;https://github.com/nrfconnect/sdk-nrf/commit/87ba51dbed3a4988eece125d8953d38ea78d6ed1&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;H&amp;aring;kon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SLM HTTP client hangs with large payload</title><link>https://devzone.nordicsemi.com/thread/330925?ContentTypeID=1</link><pubDate>Thu, 23 Sep 2021 20:45:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0eca95d6-4c33-4055-906e-a7d69bacb45e</guid><dc:creator>Anthony Ambuehl</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;span&gt;H&amp;aring;kon..&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Perhaps the slm_at_httpc.c code should remove the OK after partially sending data.&amp;nbsp; The other clients (ftp, mqtt, tcp) don&amp;#39;t do this, I have no idea why httpc should be different.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SLM HTTP client hangs with large payload</title><link>https://devzone.nordicsemi.com/thread/330826?ContentTypeID=1</link><pubDate>Thu, 23 Sep 2021 11:40:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:915bfabb-51b1-4011-a8dc-86b594430818</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="anthony.asterisk"]&lt;p&gt;I&amp;#39;m also seeing this sequence which appears to be caused by a small change in timing from my system due to a new CRITICAL_SECTION i added.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;00&amp;gt; [00:00:57.125,701] &amp;lt;inf&amp;gt; httpc: Setting up TLS credentials&lt;br /&gt;00&amp;gt; [00:00:59.010,589] &amp;lt;inf&amp;gt; httpc: Connected to api.cloud.calahealth.com&lt;br /&gt;00&amp;gt; [00:00:59.039,855] &amp;lt;inf&amp;gt; at_host: Enter datamode&lt;br /&gt;00&amp;gt; [00:00:59.043,090] &amp;lt;inf&amp;gt; at_host: Raw send 1&lt;br /&gt;00&amp;gt; [00:00:59.069,580] &amp;lt;inf&amp;gt; at_host: Raw send 255&lt;br /&gt;00&amp;gt; [00:00:59.095,764] &amp;lt;inf&amp;gt; at_host: Raw send 256&lt;br /&gt;00&amp;gt; [00:00:59.109,893] &amp;lt;inf&amp;gt; at_host: Raw send 136&lt;br /&gt;00&amp;gt; [00:00:59.738,159] &amp;lt;inf&amp;gt; at_host: Exit datamode&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The first &amp;quot;Raw send&amp;quot; with only 1 byte seems to really screw things up..&amp;nbsp;I always get an empty response XHTTPCRSP:0,1&lt;/p&gt;[/quote]
&lt;p&gt;I am glad to hear that you found the root cause of the issue, and a workaround for this.&lt;/p&gt;
[quote user="anthony.asterisk"]&lt;p&gt;#define UART_RX_TIMEOUT_MS&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/p&gt;
&lt;p&gt;to be a larger number such as 5, the 1 byte raw_send goes away.&lt;/p&gt;[/quote]
&lt;p&gt;I will request that this is changed, and can be configurable by the application as a feature request to the SLM team.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SLM HTTP client hangs with large payload</title><link>https://devzone.nordicsemi.com/thread/330548?ContentTypeID=1</link><pubDate>Tue, 21 Sep 2021 22:23:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bee9acf5-1179-4fc9-b7c9-c7c606f4cec1</guid><dc:creator>Anthony Ambuehl</dc:creator><description>&lt;p&gt;I&amp;#39;m also seeing this sequence which appears to be caused by a small change in timing from my system due to a new CRITICAL_SECTION i added.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;00&amp;gt; [00:00:57.125,701] &amp;lt;inf&amp;gt; httpc: Setting up TLS credentials&lt;br /&gt;00&amp;gt; [00:00:59.010,589] &amp;lt;inf&amp;gt; httpc: Connected to api.cloud.calahealth.com&lt;br /&gt;00&amp;gt; [00:00:59.039,855] &amp;lt;inf&amp;gt; at_host: Enter datamode&lt;br /&gt;00&amp;gt; [00:00:59.043,090] &amp;lt;inf&amp;gt; at_host: Raw send 1&lt;br /&gt;00&amp;gt; [00:00:59.069,580] &amp;lt;inf&amp;gt; at_host: Raw send 255&lt;br /&gt;00&amp;gt; [00:00:59.095,764] &amp;lt;inf&amp;gt; at_host: Raw send 256&lt;br /&gt;00&amp;gt; [00:00:59.109,893] &amp;lt;inf&amp;gt; at_host: Raw send 136&lt;br /&gt;00&amp;gt; [00:00:59.738,159] &amp;lt;inf&amp;gt; at_host: Exit datamode&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The first &amp;quot;Raw send&amp;quot; with only 1 byte seems to really screw things up..&amp;nbsp;I always get an empty response XHTTPCRSP:0,1&lt;/p&gt;
&lt;p&gt;If I change slm_at_host.c line 36&amp;nbsp;&lt;/p&gt;
&lt;p&gt;#define UART_RX_TIMEOUT_MS&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/p&gt;
&lt;p&gt;to be a larger number such as 5, the 1 byte raw_send goes away.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SLM HTTP client hangs with large payload</title><link>https://devzone.nordicsemi.com/thread/330547?ContentTypeID=1</link><pubDate>Tue, 21 Sep 2021 22:15:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99f874c9-3070-4ea4-9d4f-e10a291a3ed9</guid><dc:creator>Anthony Ambuehl</dc:creator><description>&lt;p&gt;I&amp;#39;m attaching some debugging logs from SLM&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ncs_5F00_1.6.1_5F00_slm_5F00_at_5F00_httpc.log"&gt;devzone.nordicsemi.com/.../ncs_5F00_1.6.1_5F00_slm_5F00_at_5F00_httpc.log&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;My code was (intentionally) sending some extra bytes after the paylaod in this example, thus producing some additional warnings about unexpected payload.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SLM HTTP client hangs with large payload</title><link>https://devzone.nordicsemi.com/thread/330462?ContentTypeID=1</link><pubDate>Tue, 21 Sep 2021 11:10:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9440dd67-cf59-4937-ab1c-143e1356f8f1</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="anthony.asterisk"]&lt;p&gt;BTW, in slm_at_httpc.c there is code that returns values other than 0/1.. lines 510..512 which reports error from the socket send/recv.&amp;nbsp; It would be a good idea to update the documentation, an external implementer like me would need to know that this could occur.&amp;nbsp; In my current code this would be treated as an unexpected response, and an error reported.&amp;nbsp; In production, those errors would cause a massive cascade of paperwork explaining why an error occurred, what the root cause was, what corrective actions were taken, etc (e.g. several days with tons of meetings with the quality team).&amp;nbsp; On the other hand, if I expect these values could occur during normal operation, I can prevent that in the design phase with a few simple comments and an extra conditional clause in the code.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;&amp;nbsp;The socket calls will return the errno, which can be many different types of return, based on what the failure is. Please see errno.h (&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/master/lib/libc/minimal/include/errno.h"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/master/lib/libc/minimal/include/errno.h&lt;/a&gt;) for more information.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="anthony.asterisk"]BTW, I found that debugging is working when I monitor with J-Link RTT viewer.&amp;nbsp; For some reason, it does not work from SES.[/quote]
&lt;p&gt;Could you share the debug log when the issue occurs?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SLM HTTP client hangs with large payload</title><link>https://devzone.nordicsemi.com/thread/330355?ContentTypeID=1</link><pubDate>Mon, 20 Sep 2021 20:29:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65954d7f-1553-4e43-8041-846af6115eb6</guid><dc:creator>Anthony Ambuehl</dc:creator><description>&lt;p&gt;BTW, I found that debugging is working when I monitor with J-Link RTT viewer.&amp;nbsp; For some reason, it does not work from SES.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SLM HTTP client hangs with large payload</title><link>https://devzone.nordicsemi.com/thread/330341?ContentTypeID=1</link><pubDate>Mon, 20 Sep 2021 16:35:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e32afb58-c646-4b2c-9a27-1e028419e097</guid><dc:creator>Anthony Ambuehl</dc:creator><description>&lt;p&gt;The OK&amp;#39;s are coming after receiving +XHTTPCREQ=1&amp;nbsp; &amp;nbsp; and before receiving +XHTTPCREQ=0, therefore the SLM is in datamode.&amp;nbsp; I am not sending AT commands, and they should not be received while in datamode anyway.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;After reviewing the code, it seems in datamode that every time data is sent to the network port by httpc, a &amp;quot;\r\nOK\r\n&amp;quot; is produced.&amp;nbsp; There are 2 triggers for sending data&amp;nbsp; according to the &amp;quot;Running in data mode&amp;quot; documentation (&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/serial_lte_modem/doc/slm_data_mode.html?highlight=datamode"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/serial_lte_modem/doc/slm_data_mode.html?highlight=datamode&lt;/a&gt;)&amp;nbsp; one of those triggers is&amp;nbsp; a &amp;quot;time limit trigger&amp;quot; which explains the periodic &amp;quot;OK&amp;quot; when data is pending.&amp;nbsp; &amp;nbsp; &amp;nbsp;This is fired from the&amp;nbsp;inactivity_timer_handler in slm_at_handler.&lt;/p&gt;
&lt;p&gt;It would be really helpful if the documentation mentioned that an OK would be received on the UART whenever data is sent on the network port.&amp;nbsp; This behavior appears to be specific to httpc... its in&amp;nbsp;httpc_datamode_callback.&amp;nbsp; &amp;nbsp; I reviewed other instances of datamode, and none of them include this behavior.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BTW, in slm_at_httpc.c there is code that returns values other than 0/1.. lines 510..512 which reports error from the socket send/recv.&amp;nbsp; It would be a good idea to update the documentation, an external implementer like me would need to know that this could occur.&amp;nbsp; In my current code this would be treated as an unexpected response, and an error reported.&amp;nbsp; In production, those errors would cause a massive cascade of paperwork explaining why an error occurred, what the root cause was, what corrective actions were taken, etc (e.g. several days with tons of meetings with the quality team).&amp;nbsp; On the other hand, if I expect these values could occur during normal operation, I can prevent that in the design phase with a few simple comments and an extra conditional clause in the code.&lt;/p&gt;
&lt;p&gt;Finally, I&amp;#39;m still unable to get debug logs after the bootloader jumps to the application.&amp;nbsp; &amp;nbsp;Any help at all with the debug logs would be really really appreciated.&amp;nbsp; For unmodified 1.6.1, changing the line in prj.conf did not have any effect.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Maybe you could post a prj.conf that you&amp;#39;ve confirmed works?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also any special steps I need to take after modifying prj.conf?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SLM HTTP client hangs with large payload</title><link>https://devzone.nordicsemi.com/thread/330242?ContentTypeID=1</link><pubDate>Mon, 20 Sep 2021 10:56:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:998219ef-0e00-4853-9f55-736363f76c5e</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="anthony.asterisk"]Is it expected for the OK message to be resent every 27 milliseconds when in datamode?. Is this some sort of progress indication?[/quote]
&lt;p&gt;This should be printed as a response to a generic AT command. Do you send a specific AT command every 27ms?&lt;/p&gt;
&lt;p&gt;Were you able to get the log running? SPM logging is disabled by default, so there should not be any RTT block location issues.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
[quote user="anthony.asterisk"]&lt;p&gt;It seems after starting an HTTPCREQ, the OK message should be ignored until the HTTPCRSP is received.&amp;nbsp; I suspect there is also some case where HTTPCREQ return values other than 0 and 1, which is not documented.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;It should not do this, it should split the packet as per this logic:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.6.1/applications/serial_lte_modem/src/http_c/slm_at_httpc.c#L358-L372"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v1.6.1/applications/serial_lte_modem/src/http_c/slm_at_httpc.c#L358-L372&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;each fragment size is set to this define (default 576 bytes):&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.6.1/applications/serial_lte_modem/src/http_c/slm_at_httpc.c#L26"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v1.6.1/applications/serial_lte_modem/src/http_c/slm_at_httpc.c#L26&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Even if the actual size is larger, it will fragment the packet for you.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SLM HTTP client hangs with large payload</title><link>https://devzone.nordicsemi.com/thread/330106?ContentTypeID=1</link><pubDate>Fri, 17 Sep 2021 18:07:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9962c62b-97ab-4f62-94cd-7ce013647db9</guid><dc:creator>Anthony Ambuehl</dc:creator><description>&lt;p&gt;I worked on it some more this morning and identified an issue in my code, that is caused by an unusual behavior from the SLM.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;While in datamode receiving the payload data, the SLM will periodically send the OK_STR (&amp;quot;OK&amp;quot;).&amp;nbsp; My code was not expecting the OK to be sent until after the data was fully transferred so it proceeded into a state where waiting for the XHTTPCRSP message.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is it expected for the OK message to be resent every 27 milliseconds when in datamode?. Is this some sort of progress indication?&lt;/p&gt;
&lt;p&gt;It seems after starting an HTTPCREQ, the OK message should be ignored until the HTTPCRSP is received.&amp;nbsp; I suspect there is also some case where HTTPCREQ return values other than 0 and 1, which is not documented.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;a*&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SLM HTTP client hangs with large payload</title><link>https://devzone.nordicsemi.com/thread/330100?ContentTypeID=1</link><pubDate>Fri, 17 Sep 2021 16:24:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0c599ba-9710-49fe-a8d4-e09827af1f0a</guid><dc:creator>Anthony Ambuehl</dc:creator><description>&lt;p&gt;I tried enabling logs by changing prj.cnf line 8 to:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CONFIG_LOG_DEFAULT_LEVEL=4&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I ran cmake and the rebuilt merged.hex (F7)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The only log lines are produced by the bootloader and then it goes silent.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is it possible that logging is disabled completely somehow or that the application has a different location for the RTT block vs the bootloader?&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Perhaps there are 2 RTT blocks one in secure&amp;nbsp; zone and one non-secure?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is there a way to build and run where I will get debug logs for the application?&amp;nbsp;&amp;nbsp;&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: SLM HTTP client hangs with large payload</title><link>https://devzone.nordicsemi.com/thread/330097?ContentTypeID=1</link><pubDate>Fri, 17 Sep 2021 16:09:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d1e0678-b414-41e7-9d3e-0cdaf9501232</guid><dc:creator>Anthony Ambuehl</dc:creator><description>&lt;p&gt;oh, just realized the link you posted highlighted a specific line to change, thanks for that!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SLM HTTP client hangs with large payload</title><link>https://devzone.nordicsemi.com/thread/330096?ContentTypeID=1</link><pubDate>Fri, 17 Sep 2021 15:43:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c13aede2-3f2e-45d0-ad2e-182aac6efd5c</guid><dc:creator>Anthony Ambuehl</dc:creator><description>&lt;p&gt;CTS at my external MCU is driven by the nrf9160 SLM.&amp;nbsp; The signal indicates the external mcu should stop sending data.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regarding the debug logs... (my apologies for basic questions, I&amp;#39;m new to NCS and there are a lot of docs to search through)&lt;/p&gt;
&lt;p&gt;1) After changing prj.conf do I need to run cmake from Project..Run cmake.. ?&lt;/p&gt;
&lt;p&gt;2) Is it correct for me to put this in the prj.conf:&lt;/p&gt;
&lt;p&gt;CONIG_SLM_LOG_LEVEL=4&lt;/p&gt;
&lt;p&gt;3) What does&amp;nbsp;CONFIG_SLM_LOG_LEVEL_INF=y&amp;nbsp; do?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SLM HTTP client hangs with large payload</title><link>https://devzone.nordicsemi.com/thread/330055?ContentTypeID=1</link><pubDate>Fri, 17 Sep 2021 13:08:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:451f376d-da0f-48ed-bee0-36b57c3e277c</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]I find the CTS signal goes low after 274 bytes of data were sent.&amp;nbsp; (There is some buffering in my mcu so probably less received at SLM uart)&amp;nbsp;[/quote]
&lt;p&gt;Just to clarify, from which side is it set low?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Also any advice on how to get debug logging from SLM_AT_HOST and SLM_AT_HTTPC ?&amp;nbsp; I&amp;#39;m running from SES with stock SLM example...[/quote]
&lt;p&gt;If you set the log level to debug (4) here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.6.1/applications/serial_lte_modem/prj.conf#L8"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v1.6.1/applications/serial_lte_modem/prj.conf#L8&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Then it should print out debug logs over RTT. Could you try this and attach the log showing the issue?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>