<?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>getaddrinfo returns error 12 with new modem firmware 1.1.0 worked with 1.0.1</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54841/getaddrinfo-returns-error-12-with-new-modem-firmware-1-1-0-worked-with-1-0-1</link><description>Hello :) 
 After upgrading the modem firmware of the nRF9160 to version 1.1.0 (mfw_nrf9160_1.1.0.zip) the call to getaddrinfo returns error 12. 
 If I downgrade to version 1.0.1 everything works as expected and the ip address is resolved. 
 
 --&amp;gt; app</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Dec 2019 08:06:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54841/getaddrinfo-returns-error-12-with-new-modem-firmware-1-1-0-worked-with-1-0-1" /><item><title>RE: getaddrinfo returns error 12 with new modem firmware 1.1.0 worked with 1.0.1</title><link>https://devzone.nordicsemi.com/thread/222944?ContentTypeID=1</link><pubDate>Mon, 02 Dec 2019 08:06:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98369dcf-243d-4c6c-a6f0-55e9572c3523</guid><dc:creator>AlexVM</dc:creator><description>&lt;p&gt;Hello Didrik,&lt;/p&gt;
&lt;p&gt;I have now tested it with asset_tracker. And there it works with the newModem- FW. &lt;br /&gt;&lt;br /&gt;I have further analyzed the problem and found the following: The problem seems to be that in my code I call getaddrinfo once before LTE is connected to the network. All subsequent calls to getaddrinfo (even when connected to LTE) where then unsuccessful - With the older modem-fw this was not a problem.&lt;/p&gt;
&lt;p&gt;If I wait in the code to make the first call to getaddrinfo until LTE is connected (+CEREG=1), everything works.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Alex&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: getaddrinfo returns error 12 with new modem firmware 1.1.0 worked with 1.0.1</title><link>https://devzone.nordicsemi.com/thread/222804?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2019 12:39:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97216d58-be3c-46cf-8076-d68c6ed3e2a5</guid><dc:creator>AlexVM</dc:creator><description>&lt;p&gt;Hello Didrik,&lt;br /&gt;Sorry, I didn&amp;#39;t have time yet. I will do the testint this afternoon and will let you know asap when I have done the test.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Alex&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: getaddrinfo returns error 12 with new modem firmware 1.1.0 worked with 1.0.1</title><link>https://devzone.nordicsemi.com/thread/222742?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2019 09:57:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c1d222a-1599-47d0-921d-b4762d29cfb8</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Did you test with the asset_tracker of mqtt_simple?&lt;/p&gt;
&lt;p&gt;Did they work?&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: getaddrinfo returns error 12 with new modem firmware 1.1.0 worked with 1.0.1</title><link>https://devzone.nordicsemi.com/thread/222345?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2019 12:36:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3e290ad-b227-4378-bacb-81f9108b1a59</guid><dc:creator>AlexVM</dc:creator><description>&lt;p&gt;Hello Didrik,&lt;/p&gt;
&lt;p&gt;thank you for your response.&lt;/p&gt;
&lt;p&gt;1. The only difference between the working and non-working code is the modem firmware: When I use nrf Connect v3.3.0 to programm the (old) modem-firmware (mfw_nrf9160_1.0.1.zip) everything works. If I do the same with mfw_nrf9160_1.1.0.zip the error in getaddrinfo&amp;nbsp; appears. I did not modify anything else (ncs or code).&lt;/p&gt;
&lt;p&gt;2. the NCS/nrf is head:&lt;/p&gt;
&lt;p&gt;$ git log -1&lt;br /&gt;commit 31936f7b0cd40ca23e462dc2e2b612150e1ca93e (HEAD -&amp;gt; master, origin/master)&lt;/p&gt;
&lt;p&gt;3. it is in our own code, I will check it tomorrow with asset_tracker or mqtt_simple as well.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Alex&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: getaddrinfo returns error 12 with new modem firmware 1.1.0 worked with 1.0.1</title><link>https://devzone.nordicsemi.com/thread/222252?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2019 09:03:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa637ea5-ef07-46ea-8b31-258eb144a6c7</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]If I downgrade to version 1.0.1 everything works as expected[/quote]
&lt;p&gt;&amp;nbsp;Do you downgrade the modem firmware, or NCS?&lt;/p&gt;
&lt;p&gt;Which NCS version are you using&amp;nbsp; (what tag/commit are you on in the nrf folder)?&lt;/p&gt;
&lt;p&gt;Is this from your own code? Are you able to run one of our samples, e.g. asset_tracker or mqtt_simple?&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>