<?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>nRF Connect v2.5.0: DTLS Connection ID not Implemented?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107945/nrf-connect-v2-5-0-dtls-connection-id-not-implemented</link><description>Hi, 
 we have implemented a ZephyrOS application on nRF5340 that acts as a CoAP client over DTLS (using mbedtls library). 
 Now we would like to enable the Connection ID transmission from the client according to RFC 9146. 
 Reading here https://developer</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 Feb 2024 09:56:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107945/nrf-connect-v2-5-0-dtls-connection-id-not-implemented" /><item><title>RE: nRF Connect v2.5.0: DTLS Connection ID not Implemented?</title><link>https://devzone.nordicsemi.com/thread/468358?ContentTypeID=1</link><pubDate>Mon, 12 Feb 2024 09:56:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bf3d1cb-ae9d-4670-9ee6-d383f30ffffb</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Nicola,&lt;/p&gt;
&lt;p&gt;No, that API is not part of the openthread API. You need to search in the openthread documentation. The socket API that you link to is generic Zephyr API, and Zephyr is not limited to Nordic-only devices. So this would be targeting something that would typically have an ethernet port, WiFi, or some other form of IP communication.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If this is possible at all, you would need to check with Zephyr support directly. I see that there is a sample called &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/net/sockets/echo_client/README.html"&gt;Echo Client&lt;/a&gt;, which looks like it supports openthread backend by including the overlay-ot.conf.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If that doesn&amp;#39;t work, I still suggest checking out:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://openthread.io/reference/group/api-coap-secure"&gt;https://openthread.io/reference/group/api-coap-secure&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><item><title>RE: nRF Connect v2.5.0: DTLS Connection ID not Implemented?</title><link>https://devzone.nordicsemi.com/thread/468350?ContentTypeID=1</link><pubDate>Mon, 12 Feb 2024 09:25:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c92c64b-0ba1-41ef-b4e8-a51450ba3ca7</guid><dc:creator>nikpov</dc:creator><description>&lt;p&gt;It should be something like&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;&lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;enable_cid &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; 2&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;ret&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;setsockopt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sock&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;SOL_TLS&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;span&gt;TLS_DTLS_CID&lt;/span&gt;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &amp;amp;&lt;/span&gt;enable_cid,&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;sizeof&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;enable_cid));&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;as specified &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/connectivity/networking/api/sockets.html#c.TLS_DTLS_CID"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;OpenThread cannot call such API as the source code to implement it is just not there., as I already stated.&lt;br /&gt;&lt;br /&gt;BR,&lt;br /&gt;Nicola&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect v2.5.0: DTLS Connection ID not Implemented?</title><link>https://devzone.nordicsemi.com/thread/468345?ContentTypeID=1</link><pubDate>Mon, 12 Feb 2024 09:03:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:666f57bb-e65d-46eb-bb8e-43c2f8c225a0</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Nicola,&lt;/p&gt;
&lt;p&gt;sorry for the late reply. What API specifically are you missing? I guess you would have to do some configurations before building the application so that the openthread stack is built with the correct settings.&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><item><title>RE: nRF Connect v2.5.0: DTLS Connection ID not Implemented?</title><link>https://devzone.nordicsemi.com/thread/467518?ContentTypeID=1</link><pubDate>Mon, 05 Feb 2024 09:07:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03b092a2-254c-4d8d-b1b7-e17877eaec39</guid><dc:creator>nikpov</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;We are&amp;nbsp;already&amp;nbsp;using with success the whole stack, including CoAP,&amp;nbsp;mbedTLS and OpenThread.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However, OpenThread API itself gives no means to enable the Connection ID feature for&amp;nbsp;a DTLS session.&lt;/p&gt;
&lt;p&gt;As specified&amp;nbsp;by the link within my first message, that&amp;nbsp;shall be enabled by directly acting onZephyr Socket API, however as said the feature is just not there, according to&amp;nbsp;latest nRF Connect SDK source code.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Nicola&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect v2.5.0: DTLS Connection ID not Implemented?</title><link>https://devzone.nordicsemi.com/thread/467396?ContentTypeID=1</link><pubDate>Fri, 02 Feb 2024 14:11:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c2cf207-0428-4d80-bb7b-579702d4f377</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Nicola,&lt;/p&gt;
&lt;p&gt;I see. I suggest you check out the OpenThread API documentation:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://openthread.io/reference/group/api-coap-secure"&gt;https://openthread.io/reference/group/api-coap-secure&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In addition to this section from our documentation on how to modify the OpenThread stack to add support for COAP and Mbed TLS.&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><item><title>RE: nRF Connect v2.5.0: DTLS Connection ID not Implemented?</title><link>https://devzone.nordicsemi.com/thread/467209?ContentTypeID=1</link><pubDate>Thu, 01 Feb 2024 14:58:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ecb8fde-0e2e-4e79-aadc-04bcb8ad26ae</guid><dc:creator>nikpov</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;you are right, I forgot mentioning we are working with CoAP/DTLS over Thread (OpenThread).&lt;/p&gt;
&lt;p&gt;Given such context, can you help us with the resolution of mentioned problem?&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Nicola&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect v2.5.0: DTLS Connection ID not Implemented?</title><link>https://devzone.nordicsemi.com/thread/467205?ContentTypeID=1</link><pubDate>Thu, 01 Feb 2024 14:54:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0914bcd3-e08d-484d-993a-cd7c3111d83c</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Nicola,&lt;/p&gt;
&lt;p&gt;I am not sure what you mean here. You want to do DTLS over what? WiFi? The nRF5340 doesn&amp;#39;t have Wifi. Only BLE, Zigbee and Thread. Do you mean that you want to use OpenThread for DTLS? If so, you would need an OpenThread network, but since you didn&amp;#39;t mention Thread/openthread, I am not sure whether this is what you actually mean.&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>