<?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>UDP receive with socket API</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117799/udp-receive-with-socket-api</link><description>Hi, I am using nrf9151-DK to send and receive data over UDP protocol. Firstly, I tried to use AT commands to send and receive meassages as described here , I had no isuues here. However when using socket API, I am no able to receive any data. Project</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 07 Jan 2025 15:23:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117799/udp-receive-with-socket-api" /><item><title>RE: UDP receive with socket API</title><link>https://devzone.nordicsemi.com/thread/517285?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2025 15:23:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4b5f466-43db-4d33-ac62-e3f2ab5c87af</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Glad to hear that you found the issue. Hope you have a wonderful day!&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: UDP receive with socket API</title><link>https://devzone.nordicsemi.com/thread/517281?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2025 15:17:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcc7c2f8-89f1-43f7-9692-0ca086c0d0cf</guid><dc:creator>Filip Tefr</dc:creator><description>&lt;p&gt;I am sorry, I just discovered bug in the application, problem was solved by replacing&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;err = send(sock, message, sizeof(message) - 1, 0);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;with&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;err = send(sock, message, strlen(message), 0);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UDP receive with socket API</title><link>https://devzone.nordicsemi.com/thread/517274?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2025 14:57:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce0e47d2-ed48-4ac9-9d1f-52a1ecb0d416</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Are you certain that the server receives the&amp;nbsp;payload? Do you have any logs or similar from the server side where you can see that the &amp;quot;message&amp;quot; is received?&lt;/p&gt;
&lt;p&gt;Can you share the SLM commands that you used, where this worked as expected?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&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: UDP receive with socket API</title><link>https://devzone.nordicsemi.com/thread/517229?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2025 13:24:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4eafdd2a-9cfa-4b2d-a41e-79418a34a4d4</guid><dc:creator>Filip Tefr</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;yes, this sample does work, however I have a problem with receiving data from server and UDP sample only handles transmits data to server.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UDP receive with socket API</title><link>https://devzone.nordicsemi.com/thread/517224?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2025 13:16:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f65589d-2851-4ddd-9d66-b22d11bcbbf2</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;Does the stock cellular/udp sample work as expected on your end? There&amp;#39;s already a kconfig present to change server / payload etc here:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.6.1/samples/cellular/udp/Kconfig#L25"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v2.6.1/samples/cellular/udp/Kconfig#L25&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>