<?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>nrf9160 blocking sendto() call for UDP</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53811/nrf9160-blocking-sendto-call-for-udp</link><description>Using a AF_INET UDP socket on the nrf9160 I will get ENOMEM when I send a bunch of datagrams over the socket. I understand how there can be a limited number of buffers for sending, but shouldn&amp;#39;t sendto() block waiting for one to become available? 
 The</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 01 Nov 2019 01:42:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53811/nrf9160-blocking-sendto-call-for-udp" /><item><title>RE: nrf9160 blocking sendto() call for UDP</title><link>https://devzone.nordicsemi.com/thread/217860?ContentTypeID=1</link><pubDate>Fri, 01 Nov 2019 01:42:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60ef885e-8eeb-4f72-b68b-d59f6653d5b3</guid><dc:creator>miked531</dc:creator><description>&lt;p&gt;The newer version of nrfxlib has indeed fixed it. I used nrf v1.1.0-rc1 (followed by west update). Thanks for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 blocking sendto() call for UDP</title><link>https://devzone.nordicsemi.com/thread/217794?ContentTypeID=1</link><pubDate>Thu, 31 Oct 2019 14:10:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f76fd470-df72-4a27-9f0f-911a79c50d11</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="miked531"]I&amp;#39;m using nrf tag v1.0.0[/quote]
&lt;p&gt;When testing with this tag, I see the same behavior. This is due to a bug in the send/sendto() functions in bsdlib, which was fixed in v0.4.1:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicPlayground/nrfxlib/blob/master/bsdlib/CHANGELOG.rst#bsdlib-041"&gt;https://github.com/NordicPlayground/nrfxlib/blob/master/bsdlib/CHANGELOG.rst#bsdlib-041&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try this version (or newer) to see if this improves the scenario?&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: nrf9160 blocking sendto() call for UDP</title><link>https://devzone.nordicsemi.com/thread/217780?ContentTypeID=1</link><pubDate>Thu, 31 Oct 2019 13:49:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74e367f8-5f37-474d-aaaf-db79502ef051</guid><dc:creator>miked531</dc:creator><description>&lt;p&gt;I&amp;#39;m using nrf tag v1.0.0 along with whatever &amp;#39;west update&amp;#39; checked out of the other repos. It&amp;#39;s the ibasis SIM, and modem firmware v1.0.1 on the nrf9160 DK.&lt;/p&gt;
&lt;p&gt;In my test I am using the IP+port of my server in Amazon, but I changed the values before posting. I am specifically trying to dump a bunch of datagrams that won&amp;#39;t get received by anyone. It&amp;#39;s UDP, so it really shouldn&amp;#39;t matter if there is a server there to receive it or not.&lt;/p&gt;
&lt;p&gt;If it helps, I consistently get the ENOMEM after about 16 cycles.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 blocking sendto() call for UDP</title><link>https://devzone.nordicsemi.com/thread/217710?ContentTypeID=1</link><pubDate>Thu, 31 Oct 2019 09:21:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6e092b0-6461-413a-a651-94473e642b86</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I tried your sample, and wasn&amp;#39;t able to verify the behavior that you are seeing. What commit/tag of &amp;quot;nrf&amp;quot; are you using?&lt;/p&gt;
[quote user=""]In my test I didn&amp;#39;t have a server running to receive the datagrams, if it matters. [/quote]
&lt;p&gt;&amp;nbsp;Have you tried this with sending to a specific server? NTP is udp-based, so you can connect to any ntp-server (default port 123) and see if you get the same behavior there.&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>