<?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>BLE Mesh serial - cannot set the device key via UART</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59417/ble-mesh-serial---cannot-set-the-device-key-via-uart</link><description>It is possible to provision the NetKey, AppKey and unicast address of a node using the serial protocol, using the following messages: 
 Mesh Subnet Add, Opcode: 0x92 - NetKey 
 Mesh Appkey Add, Opcode: 0x97 - I assume this sets the appkey that is used</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 31 Mar 2020 13:13:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59417/ble-mesh-serial---cannot-set-the-device-key-via-uart" /><item><title>RE: BLE Mesh serial - cannot set the device key via UART</title><link>https://devzone.nordicsemi.com/thread/242712?ContentTypeID=1</link><pubDate>Tue, 31 Mar 2020 13:13:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:115e230f-c1d7-4317-9ddf-c8693dbbae33</guid><dc:creator>Sean Taylor</dc:creator><description>&lt;p&gt;Thanks - the example I gave above seems to work without any new DSM commands.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh serial - cannot set the device key via UART</title><link>https://devzone.nordicsemi.com/thread/241780?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2020 10:31:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:602a66fd-3919-4c0f-906e-812cea84eb54</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;A comment from our Mesh team regarding the device key:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;This is not provided for a reason. The device key is the most important part which secures the device settings. Therefore it is never exchanged over the air or via any interface. The device key gets generated independently at both ends during the provisioning process. Because of this, we did not think there is a need to set the device key over a serial interface.&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;For your purpose, you can, of course, use already available DSM APIs and add such custom serial command.&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh serial - cannot set the device key via UART</title><link>https://devzone.nordicsemi.com/thread/241656?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2020 17:04:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1739a885-ace2-4c92-a35d-79b9e5d3e3db</guid><dc:creator>Sean Taylor</dc:creator><description>&lt;p&gt;I think I found a way to provision the device key via the UART of the node being configured&lt;/p&gt;
&lt;p&gt;1) The host sets the netkey of the node with &amp;quot;Bluetooth Mesh Subnet Add Opcode: 0x92&amp;quot;&lt;/p&gt;
&lt;p&gt;2) The host then sets the unicast address of the node with &amp;quot;Bluetooth Mesh Addr Local Unicast Set Opcode: 0x9f&amp;quot;&lt;/p&gt;
&lt;p&gt;3) The host then sets an &amp;quot;Bluetooth Mesh Devkey Add Opcode: 0x9c&amp;quot; with the unicast address set in setp 2, the subnet handle from step 1 and a RNG generated devkey.&lt;/p&gt;
&lt;p&gt;4) Finally the host would issue &amp;quot;Bluetooth Mesh Config Server Bind Opcode: 0xad&amp;quot; to bind the node&amp;#39;s configuration server to the device key handle returned in&amp;nbsp;step 3.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh serial - cannot set the device key via UART</title><link>https://devzone.nordicsemi.com/thread/241468?ContentTypeID=1</link><pubDate>Tue, 24 Mar 2020 20:49:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04a9a650-d651-4022-b573-8816700f84f7</guid><dc:creator>Sean Taylor</dc:creator><description>&lt;p&gt;Thanks - I did run the light server provisioning demo, and captured the log file and analyzed it.&amp;nbsp; However ours is a different situation.&amp;nbsp; We would like to be able to provision every node in the mesh using serial - not over the air at all.&amp;nbsp; In a similar way as the&amp;nbsp;&lt;span&gt;dev.quick_setup() script does for the &amp;quot;sending mesh packets&amp;quot; demonstration.&amp;nbsp; We do not require mesh standard compliance - we intend to use it only as a data bearer, not for standard models.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The one thing missing with configuring the nodes this way is no devkey is generated - so I was wondering if it&amp;#39;s possible to write a devkey into the node using the serial protocol - the dev key could be generated by a RNG on our host processor.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Also the serial example&amp;nbsp;nrf5_SDK_for_Mesh_v4.0.0_src\examples\serial does not appear to contain support for being a mesh over-the-air &lt;em&gt;provisionee.&amp;nbsp;&lt;/em&gt;I&amp;#39;m not sure how complex or how much work it is to add the provisionee functionality into the serial example (by copying out of the light server, for example).&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh serial - cannot set the device key via UART</title><link>https://devzone.nordicsemi.com/thread/241434?ContentTypeID=1</link><pubDate>Tue, 24 Mar 2020 16:26:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b983d526-e48d-49c4-913f-d25972e76a9f</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Regarding provisioning using a serial protocol, I suggest you have a look at our &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v4.0.0/md_scripts_interactive_pyaci_README.html?cp=7_2_2_6_1" rel="noopener noreferrer" target="_blank"&gt;Interactive PyACI&lt;/a&gt;&lt;span&gt;&amp;nbsp;script and&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v4.0.0/md_scripts_interactive_pyaci_doc_demo_configuration.html"&gt;Interactive mesh provisioning and configuration&lt;/a&gt;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote user=""]If no device key is set in a node does this then mean that the node cannot be configured to publish a periodic heartbeat ?&amp;nbsp; &amp;nbsp;(And another node could not subscribe to that heartbeat).[/quote]
&lt;p&gt;&amp;nbsp;Yes, that is correct. I would suggest you read through &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v4.0.0/md_doc_introduction_basic_concepts.html?cp=7_2_0_1" rel="noopener noreferrer" target="_blank"&gt;this&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>