<?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>Use of Azure IoT Hub and Azure FOTA with other Dev kits and modems</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72480/use-of-azure-iot-hub-and-azure-fota-with-other-dev-kits-and-modems</link><description>Hi, I am looking to implement Azure IoT Hub and Azure FOTA in a project. Unfortunately these examples are specifically for the nRF9160. I would like to implement it on the nRF52840 and nRF5340. Will it work on these two targets and how much effort will</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Mar 2021 14:35:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72480/use-of-azure-iot-hub-and-azure-fota-with-other-dev-kits-and-modems" /><item><title>RE: Use of Azure IoT Hub and Azure FOTA with other Dev kits and modems</title><link>https://devzone.nordicsemi.com/thread/299849?ContentTypeID=1</link><pubDate>Mon, 15 Mar 2021 14:35:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e5e3d07-ab56-4501-9895-5e75613bbd62</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="JPSvanderWalt"] I am struggling to build the Azure IoT Hub and Azure FOTA libraries for my nRF52840 DK[/quote]
&lt;p&gt;&amp;nbsp;What errors do you get?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="JPSvanderWalt"] Is it at all possible to build these libraries for chips other than the nRF9160?[/quote]
&lt;p&gt;&amp;nbsp;Again, it is not something I have tried myself; but yes, I believe it should be possible.&lt;/p&gt;
&lt;p&gt;The libraries doesn&amp;#39;t seem to depend on anything nRF9160 specific. But, they do depend on Zephyr&amp;#39;s socket layer.&lt;/p&gt;
&lt;p&gt;On the nRF9160, we are using Zephyr&amp;#39;s socket offloading mechanism to offload the sockets to the nRF9160 modem, but in your case, you must configure it to use your external modem instead (either by socket offloading or through some other means).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use of Azure IoT Hub and Azure FOTA with other Dev kits and modems</title><link>https://devzone.nordicsemi.com/thread/299656?ContentTypeID=1</link><pubDate>Mon, 15 Mar 2021 08:00:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07dcc7f9-c9ab-4e44-b8b4-2d1b56216465</guid><dc:creator>JPSvanderWalt</dc:creator><description>&lt;p&gt;Hi Didrik,&lt;/p&gt;
&lt;p&gt;Thank you for your response.&amp;nbsp; I am glad to hear that it could be possible to use other modems.&amp;nbsp; I do not have an nRF9160 DK.&amp;nbsp; I am struggling to build the Azure IoT Hub and Azure FOTA libraries for my nRF52840 DK.&amp;nbsp; Is it at all possible to build these libraries for chips other than the nRF9160?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use of Azure IoT Hub and Azure FOTA with other Dev kits and modems</title><link>https://devzone.nordicsemi.com/thread/298411?ContentTypeID=1</link><pubDate>Mon, 08 Mar 2021 13:59:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32738cef-ab5e-4b99-8e5a-3106cd7f47a3</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;First, a disclaimer: I have not actually tried any of this, so there might be caveats and problems I am not aware of.&lt;/p&gt;
&lt;p&gt;With that out of the way, yes, I believe it should be possible to use the NCS Azure IoT Hub and Azure FOTA libraries with other modems than the nRF9160.&lt;/p&gt;
&lt;p&gt;While the libraries are built for the nRF9160, and working with other modems probably hasn&amp;#39;t been a concern for the developers, they are built on top of Zephyr&amp;#39;s socket layer.&lt;/p&gt;
&lt;p&gt;Therefore, if the drivers for the modem you want to use redirects the socket API to the external modem (or, if the modem doesn&amp;#39;t have an IP stack, the data is forwarded to the modem at a later point in the protocol stack), it should work.&lt;/p&gt;
&lt;p&gt;Looking at NCS v1.5.0, I found a Zephyr driver for both the u-blox and the Quectel modems, and both seems to support Zephyr&amp;#39;s socket offloading. Therefore, it might be as simple as adding the modem to the device tree, and setting some Kconfig options and disabling the nRF9160 specific options, and it will &amp;quot;just work&amp;quot;.&lt;/p&gt;
&lt;p&gt;Note that the samples might require a bit more work, as will must ensure that the modem is set up properly, and remove any nRF9160 specific code.&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>