<?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>Using https with NB-IoT, instead of COAP,DTLS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110750/using-https-with-nb-iot-instead-of-coap-dtls</link><description>Hi, 
 I am a bit confused, I understand from some technical discussions that we should use COAP/UDP (with DTLS) instead of HTTP/TCP (with TLS) when using NB-IoT. 
 For LTE-M HTTP/TCP should work properly. 
 I am mainly concerned about FOTA where we download</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 02 May 2024 15:28:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110750/using-https-with-nb-iot-instead-of-coap-dtls" /><item><title>RE: Using https with NB-IoT, instead of COAP,DTLS</title><link>https://devzone.nordicsemi.com/thread/481611?ContentTypeID=1</link><pubDate>Thu, 02 May 2024 15:28:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85cac02e-2e78-4347-91a6-002427fd9a18</guid><dc:creator>Achim Kraus</dc:creator><description>[quote userid="121348" url="~/f/nordic-q-a/110750/using-https-with-nb-iot-instead-of-coap-dtls/481608"]I noticed you are somewhat active in the Coap community.[/quote]
&lt;p&gt;I&amp;#39;m the project lead of &lt;a href="https://github.com/eclipse-californium/californium"&gt;Eclipse/Californium&lt;/a&gt; and co-author of &lt;a href="https://www.rfc-editor.org/info/rfc9146"&gt;RFC 9146&lt;/a&gt; .&lt;/p&gt;
&lt;p&gt;I&amp;#39;m currently working on a CoAP-S3-Proxy, see &lt;a href="https://github.com/boaks/californium/tree/add_s3_proxy/demo-apps/cf-s3-proxy-server"&gt;Californium (Cf) S3-proxy-server&lt;/a&gt; .&lt;/p&gt;
&lt;p&gt;The point with the complexity is caused a lot by the past. Californium was developed quite a long time mainly as library for some server application. With different interests and use-cases in mind. And with not too many people, resulting to be (too) short on documentation.&lt;/p&gt;
&lt;p&gt;Two years ago I decided to have a demo-cloud-server &amp;quot;out-of-the-box&amp;quot;. Unfortunately, I also had to convert my engagement into a &amp;quot;free time&amp;quot; one. So for now I mainly consider that S3-proxy to be very useful for first field-tests. In combination with my &lt;a href="https://github.com/boaks/zephyr-coaps-client"&gt;Zephyr coaps-client for nRF9160&lt;/a&gt; the initial time to invest is reduced a lot (hope to 2 afternoons ;-) ). You get a setup to collect field-data from battery for a couple of months with a couple of devices (I guess usually about 50-100).&lt;/p&gt;
&lt;p&gt;For &amp;quot;productive use&amp;quot; it will still take a while...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using https with NB-IoT, instead of COAP,DTLS</title><link>https://devzone.nordicsemi.com/thread/481608?ContentTypeID=1</link><pubDate>Thu, 02 May 2024 15:13:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e572f8f4-d26b-4490-bf07-2235ddd29d6c</guid><dc:creator>lseg</dc:creator><description>&lt;p&gt;Thank you for your answer&amp;nbsp;we will have a look in our kitchen and see which pots are working best/worst...&lt;br /&gt;I noticed you are somewhat active in the Coap community. Could you give some advice on what the easiest way would be to setup a COAP server to download/upload from/to a S3 bucket.&amp;nbsp;&lt;br /&gt;I have been looking around (Eclipse Californium, Apache Camel) but they both feel complicated (could be me, it is not really my cup of tea). And are lacking some examples in my opinion.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using https with NB-IoT, instead of COAP,DTLS</title><link>https://devzone.nordicsemi.com/thread/481607?ContentTypeID=1</link><pubDate>Thu, 02 May 2024 15:02:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75329d40-2993-440b-b089-f2d99ee333da</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;As Achim said, in most cases, HTTP and TCP works fine over NB-IoT.&lt;/p&gt;
&lt;p&gt;However, depending on the network, signal conditions and server, the latency might become too big in some cases.&lt;/p&gt;
&lt;p&gt;As UDP is more flexible when it comes to handling latency (the latency and acknowledgements are handled at the application level rather than the transportation level), it can be better suited in situations with high latency.&lt;/p&gt;
&lt;p&gt;If the device is moving, and can be expected to move out of bad coverage situations, and/or you can do tests before deploying to new networks and locations, you will probably be fine with just TCP.&lt;/p&gt;
&lt;p&gt;If not, you might want to consider having some back-up options.&lt;/p&gt;
&lt;p&gt;Though if the device is mobile and battery driven, I would also consider just postponing the FOTA upgrade, as sending and receiving data with bad coverage consumes more power than in good coverage.&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: Using https with NB-IoT, instead of COAP,DTLS</title><link>https://devzone.nordicsemi.com/thread/481363?ContentTypeID=1</link><pubDate>Wed, 01 May 2024 07:12:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:018f0881-bc51-4e3e-8859-63f6a2e187ce</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;NB-IoT is not NB-IoT.&lt;/p&gt;
&lt;p&gt;Used with normal radio conditions, the RTT (Round Trip Time) of NB-IoT is larger than for LTE-M, but not too much.&lt;/p&gt;
&lt;p&gt;Once you use it in a &amp;quot;deep building base&amp;quot; (pretty low signals), the things are changing, and the RTT gets much larger.&lt;/p&gt;
&lt;p&gt;The question you will be faced therefore is, if you operate your device in regions/locations, where TCP over NB-IoT works, or if regions/locations are relevant, where it doesn&amp;#39;t work. In the past I put a Thingy:91 in a steel cooking pot and close the lid to demonstrate that. Not too easy, in some pots nothing works, in some pot both works, but there are pots, where only UDP works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>