<?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>Nordic Connect Thread - CoAP vs. UDP for short range connectivity</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63821/nordic-connect-thread---coap-vs-udp-for-short-range-connectivity</link><description>Hello peer developers, 
 This is a general question and dilemma I am dealing with and I wanted to get your opinion. 
 I am working on a project to implement a short range radio Mesh network of &amp;quot;things&amp;quot; within a few hundred meters with the nRF52840 and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 25 Jul 2020 06:50:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63821/nordic-connect-thread---coap-vs-udp-for-short-range-connectivity" /><item><title>RE: Nordic Connect Thread - CoAP vs. UDP for short range connectivity</title><link>https://devzone.nordicsemi.com/thread/261669?ContentTypeID=1</link><pubDate>Sat, 25 Jul 2020 06:50:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e8bdae0-2236-4273-ba49-3d4cc9b446d3</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;&amp;quot;Therefore I am concluding CoAP is an overkill and it may not be the best approach. Is that a true statement? Or can I have both client and server in one node (1 nRF chip), without complicating the firmware.&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;CoAP uses the same message format for requests and responses. The difference is the value of the code byte, class-0 for request, class-2, class-4, and class-5 for responses. Therefore it works brilliant to run a coap-client and a coap-server on the same device, you may even use the same socket/port. For DTLS it&amp;#39;s different, but there it&amp;#39;s more the question on starting the communcitation than on exchange messages afterwards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic Connect Thread - CoAP vs. UDP for short range connectivity</title><link>https://devzone.nordicsemi.com/thread/260413?ContentTypeID=1</link><pubDate>Thu, 16 Jul 2020 14:10:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0ed7d54-c9be-45e2-a8e3-1b19a11488f6</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Just some pointers:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Thread in NCS sounds promising, specially if we can have BLE coexistence as well.[/quote]
&lt;p&gt;&amp;nbsp;Right now, Thread in NCS is in a developer state, and not production. It is fairly new, and does not yet support BLE coexistence.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]These devices don&amp;#39;t fit the &amp;quot;client&amp;quot; and &amp;quot;server&amp;quot; model very well. as they can be both initiator of a request or on the receiving end of a request. So in a way&amp;nbsp;each node is&amp;nbsp;equally both a client as well as as server. e.g. in the lightswitch and light bulb example, imagine they are combined into one, i.e. a bulb that has a switch on it, and when pressed turns all other lights nearby. Any switch can turn all bulbs on or off.[/quote]
&lt;p&gt;&amp;nbsp;In that case, we even have a demo (running on the nRF52 Thingy (nRF52832) that uses Bluetooth Mesh for this. In Bluetooth Mesh it is fairly easy to set up virtual channels that the devices will listen to. A node can both subscribe to and publish on a virtual channel. Please check&amp;nbsp;out the youtube video linked to in this readme file:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicPlayground/thingy52-mesh-provisioning-demo"&gt;https://github.com/NordicPlayground/thingy52-mesh-provisioning-demo&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>