<?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 AT#XSENDTO limited to 256 bytes of payload in one datagram</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85536/serial-lte-modem-at-xsendto-limited-to-256-bytes-of-payload-in-one-datagram</link><description>Hi, 
 why AT#XSENDTO in datamode is limited to 256 bytes of payload in one datagram please ? 
 It seams, that limitation comes from UART_RX_LEN in slm_at_host.c https://github.com/nrfconnect/sdk-nrf/blob/9a5b3865e22e007f68d628eb732b26127ac0e041/applications</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Mar 2022 07:40:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85536/serial-lte-modem-at-xsendto-limited-to-256-bytes-of-payload-in-one-datagram" /><item><title>RE: Serial LTE Modem AT#XSENDTO limited to 256 bytes of payload in one datagram</title><link>https://devzone.nordicsemi.com/thread/360174?ContentTypeID=1</link><pubDate>Mon, 28 Mar 2022 07:40:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea16cdd4-0fe3-47e2-9b71-1c7ff2dc4c98</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Michal,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m glad to hear that the issue was resolved!&lt;/p&gt;
&lt;p&gt;Hope you have a wonderful day!&lt;/p&gt;
&lt;p&gt;&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: Serial LTE Modem AT#XSENDTO limited to 256 bytes of payload in one datagram</title><link>https://devzone.nordicsemi.com/thread/360105?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 23:47:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d9821cf-1db2-4377-b8a3-c69b6898573a</guid><dc:creator>Michal M&amp;#252;hlpachr</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;thank you, I am able to send up to 1402 UDP payload with v1.9.1 now.&lt;/p&gt;
&lt;p&gt;It was some SLM AT dialogue timing issue probably.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Michal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial LTE Modem AT#XSENDTO limited to 256 bytes of payload in one datagram</title><link>https://devzone.nordicsemi.com/thread/357147?ContentTypeID=1</link><pubDate>Wed, 09 Mar 2022 12:25:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b33f6d1a-d057-41c8-ae76-28f19dc3333b</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;
&lt;p&gt;Here&amp;#39;s my test setup:&lt;/p&gt;
&lt;p&gt;* ncs v1.9.0&lt;/p&gt;
&lt;p&gt;* SLM with one modification:&amp;nbsp;CONFIG_NRF_MODEM_LIB_TRACE_ENABLED=y&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;AT commands that I send:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;at%xmodemtrace=1,2
at+cfun=1
AT#XSOCKET=1,2,0

AT#XSENDTO=&amp;quot;example.com&amp;quot;,1234
&amp;quot;Test UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDP&amp;quot;
++++++&lt;/pre&gt;Here it sends &amp;gt; 512 byte datagram, as shown in this pcap:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2022_2D00_03_2D00_09T12_2D00_21_2D00_49.077Z.pcapng"&gt;devzone.nordicsemi.com/.../trace_2D00_2022_2D00_03_2D00_09T12_2D00_21_2D00_49.077Z.pcapng&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åkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial LTE Modem AT#XSENDTO limited to 256 bytes of payload in one datagram</title><link>https://devzone.nordicsemi.com/thread/357143?ContentTypeID=1</link><pubDate>Wed, 09 Mar 2022 12:17:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9edfe51f-6163-4abe-8189-c9345236f069</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;
&lt;p&gt;Could you please provide how to reproduce this scenario?&lt;/p&gt;
[quote user="michalm"]In ncs v1.7&amp;nbsp;&lt;span&gt;AT#XSENDTO with binary data (without &amp;lt;data&amp;gt; parameter, with data mode) SLM splits data to 256 bytes chunks of payload send in UDP datagram.&lt;br /&gt;In ncs v1.9.1&amp;nbsp;AT#XSENDTO with binary data (without &amp;lt;data&amp;gt; parameter, with data mode) SLM splits data to&amp;nbsp;512 bytes chunks of payload send in UDP datagram.&lt;/span&gt;[/quote]
&lt;p&gt;SLM in ncs v1.9.0, one change:&lt;/p&gt;
&lt;p&gt;CONFIG_NRF_MODEM_LIB_TRACE_ENABLED=y&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s my test scenario:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;at%xmodemtrace=1,2
at+cfun=1
AT#XSOCKET=1,2,0&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the send command:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;AT#XSENDTO=&amp;quot;example.com&amp;quot;,1234,&amp;quot;Test UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDPTest UDP&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Which returns:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#XSENDTO: 568
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And here&amp;#39;s the pcap that shows the frame sent as &amp;gt; 512 bytes:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2022_2D00_03_2D00_09T12_2D00_13_2D00_05.383Z.pcapng"&gt;devzone.nordicsemi.com/.../trace_2D00_2022_2D00_03_2D00_09T12_2D00_13_2D00_05.383Z.pcapng&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åkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial LTE Modem AT#XSENDTO limited to 256 bytes of payload in one datagram</title><link>https://devzone.nordicsemi.com/thread/357126?ContentTypeID=1</link><pubDate>Wed, 09 Mar 2022 11:37:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d96137d0-2a63-4a85-b6b6-c6728e2ffa8a</guid><dc:creator>Michal M&amp;#252;hlpachr</dc:creator><description>&lt;p&gt;We would like to utilize MTU as much as possible. We are sure, that datagrams with 1400 bytes travels fine through LTE/EPS with other modems.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial LTE Modem AT#XSENDTO limited to 256 bytes of payload in one datagram</title><link>https://devzone.nordicsemi.com/thread/357123?ContentTypeID=1</link><pubDate>Wed, 09 Mar 2022 11:29:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30ee4213-a6c6-4628-8fdf-8cdf055738fb</guid><dc:creator>Michal M&amp;#252;hlpachr</dc:creator><description>&lt;p&gt;In ncs v1.7&amp;nbsp;&lt;span&gt;AT#XSENDTO with binary data (without &amp;lt;data&amp;gt; parameter, with data mode) SLM splits data to 256 bytes chunks of payload send in UDP datagram.&lt;br /&gt;In ncs v1.9.1&amp;nbsp;AT#XSENDTO with binary data (without &amp;lt;data&amp;gt; parameter, with data mode) SLM splits data to&amp;nbsp;512 bytes chunks of payload send in UDP datagram.&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 AT#XSENDTO limited to 256 bytes of payload in one datagram</title><link>https://devzone.nordicsemi.com/thread/356902?ContentTypeID=1</link><pubDate>Tue, 08 Mar 2022 13:25:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a517dd5-ec79-4bda-8e27-a56d45c60652</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;
&lt;p&gt;Could you share which version of ncs that you are using, and a bit more detailed information about the issue that you&amp;#39;re seeing?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Splitting packets on the uart interface&amp;nbsp;shall not be the same as splitting it on a socket interface.&lt;/p&gt;
&lt;p&gt;The maximum size of a single udp datagram is defined in the xsendto:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.0/nrf/applications/serial_lte_modem/doc/SOCKET_AT_commands.html#udp-send-data-xsendto"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.0/nrf/applications/serial_lte_modem/doc/SOCKET_AT_commands.html#udp-send-data-xsendto&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åkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>