<?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>Keyfob / remote control of the smart lock via zigbee using single nRF52840 based on input pin states.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66248/keyfob-remote-control-of-the-smart-lock-via-zigbee-using-single-nrf52840-based-on-input-pin-states</link><description>Dear fellow developers 
 
 I would like to integrate a smart lock ( danalock v3 ) with the alarm system, so that I can control the lock via the alarm system. The alarm provides outputs via relays. If danalock had a key fob, I would wire key fob buttons</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Sep 2020 09:13:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66248/keyfob-remote-control-of-the-smart-lock-via-zigbee-using-single-nrf52840-based-on-input-pin-states" /><item><title>RE: Keyfob / remote control of the smart lock via zigbee using single nRF52840 based on input pin states.</title><link>https://devzone.nordicsemi.com/thread/271265?ContentTypeID=1</link><pubDate>Thu, 24 Sep 2020 09:13:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6489d912-0cb7-4ff7-b4b3-3b4b4bae0544</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;&amp;nbsp;Hi Andrew,&lt;/p&gt;
&lt;p&gt;I recommend going for the nRF52840 DK for the developing process. The reason being that the nRF52840 DK includes an on-board debugger which will make your life much easier, specially if you are new to Nordic development: &lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Kits/nRF52840-DK"&gt;https://www.nordicsemi.com/Software-and-tools/Development-Kits/nRF52840-DK&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can find a local distributor for the nRF52840 DK here: &lt;a href="https://www.nordicsemi.com/About-us/BuyOnline"&gt;https://www.nordicsemi.com/About-us/BuyOnline&lt;/a&gt;&lt;br /&gt;&lt;br /&gt; After you have a working prototype you will be of course free to scale down the hardware and use instead a dongle like the one you linked to or our official nRF52840 dongle &lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Kits/nRF52840-Dongle"&gt;https://www.nordicsemi.com/Software-and-tools/Development-Kits/nRF52840-Dongle&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Or perhaps make your own custom hardware &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I would anyways recommend getting your hands on a nRF52840 dongle, since it&amp;#39;s highly recommended you set up a Zigbee sniffer when developing for Zigbee, it&amp;#39;s easy to setup using Wireshark:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_tz_v4.1.0/nrf802154_sniffer.html"&gt;https://infocenter.nordicsemi.com/topic/sdk_tz_v4.1.0/nrf802154_sniffer.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;A sniffer trace would be one of the best sources for debugging information when working with Zigbee.&lt;br /&gt;&lt;br /&gt;To answer your questions about integrating the Danalock v3 as a part of a Zigbee network using the nRF52840 as the network coordinator the answer will beyes, this should be achievable. How easy or time consuming this will be will depend on your previous knowledge of Zigbee protocol and Nordic devices and SDK. You can always get help along the way from us here in Devzone if you struggle with something.&lt;/p&gt;
&lt;p&gt;In the nRF5 Thread and Zigbee SDK we have a door lock example which uses the door lock cluster which can be controlled using commands from the Zigbee CLI example: &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_tz_v4.1.0/zigbee_multi_dynamic_door_lock_nus_example.htm"&gt;https://infocenter.nordicsemi.com/topic/sdk_tz_v4.1.0/zigbee_multi_dynamic_door_lock_nus_example.htm&lt;/a&gt;l&lt;/p&gt;
&lt;p&gt;So first step would be to dig in in our the door lock cluster works and how you can interact with it.&lt;/p&gt;
&lt;p&gt;About storing the network parameters in the persistent storage, this is actually what it&amp;#39;s done by default by the Zigbee stack, but in the CLI example the persistent storage is erased using&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;zigbee_erase_persistent_storage(ZB_TRUE);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;after a reboot or power-off just to make the developement and testing process easier for developers.&lt;/p&gt;
&lt;p&gt;Let me know if you have any more question and good luck in your Zigbee journey! &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>