<?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>nrf51822 password on characteristic</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28747/nrf51822-password-on-characteristic</link><description>Good evening. I write a project on nrf51822 in which there are a number of services with a set of characteristics (write and read). I need to limit access to some characteristics with a password. Is it possible?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 Dec 2017 09:46:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28747/nrf51822-password-on-characteristic" /><item><title>RE: nrf51822 password on characteristic</title><link>https://devzone.nordicsemi.com/thread/113910?ContentTypeID=1</link><pubDate>Fri, 22 Dec 2017 09:46:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65d6d752-03bf-4c2f-84b4-61a210707b26</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;This question has a &lt;a href="https://devzone.nordicsemi.com/question/184940/nrf51822-password-on-characteristic/"&gt;duplicate&lt;/a&gt; with additional information.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 password on characteristic</title><link>https://devzone.nordicsemi.com/thread/113922?ContentTypeID=1</link><pubDate>Thu, 21 Dec 2017 20:50:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:254e3305-1033-41fa-b56a-d3976ab98504</guid><dc:creator>Foxek</dc:creator><description>&lt;p&gt;Thank you, I will consider this and choose the right solution&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 password on characteristic</title><link>https://devzone.nordicsemi.com/thread/113921?ContentTypeID=1</link><pubDate>Thu, 21 Dec 2017 20:44:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f4c7654-3f20-4af9-899b-0e2231755203</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;It&amp;#39;s higher layer so whatever you consider as &amp;quot;authenticated&amp;quot; to perform (G)ATT action which is requested by the stack that it will be. Good thing: you can do whatever you want. Bad thing: you need to be damn sure what you are doing, you are on your own.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 password on characteristic</title><link>https://devzone.nordicsemi.com/thread/113920?ContentTypeID=1</link><pubDate>Thu, 21 Dec 2017 20:42:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07efe80d-a8cf-4a29-9140-2452ab46e43a</guid><dc:creator>Foxek</dc:creator><description>&lt;p&gt;how specifically does authentication work? By what principle does it allow / disallow devices?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 password on characteristic</title><link>https://devzone.nordicsemi.com/thread/113919?ContentTypeID=1</link><pubDate>Thu, 21 Dec 2017 20:40:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8164c594-891b-47e8-a8ee-1c8a1a019550</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;It should work with Read/Write with authorization as per the message sequence chart. &amp;quot;Password and then you can do anything&amp;quot; isn&amp;#39;t really secure but yes, it&amp;#39;s slightly better then nothing. If this is enough for you it should work, sorry to pushing you to something more complex...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 password on characteristic</title><link>https://devzone.nordicsemi.com/thread/113918?ContentTypeID=1</link><pubDate>Thu, 21 Dec 2017 20:34:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d6c93a0-c70c-45e4-9ef8-251df4cd232c</guid><dc:creator>Foxek</dc:creator><description>&lt;p&gt;I have a problem with the following character. I have two services. One device (administrator) must have access to one service, the other device (user) must have access to the other. Neither the user nor the administrator has access to someone else&amp;#39;s service.
there is a possibility to implement it on the stack or you will have to implement it in app?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 password on characteristic</title><link>https://devzone.nordicsemi.com/thread/113917?ContentTypeID=1</link><pubDate>Thu, 21 Dec 2017 20:28:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20903a45-7068-4ed3-90e1-234b38bb5b67</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Just to complete: if you are not using encrypted link that using passwords is useless because anyone with 40$ equipment will hear it in 20-100m diameter. If you are using properly secured link then why would you protect one part of the client from another when it must come from the same device? And if you don&amp;#39;t trust each other then fine, deploy proper secure channel based on symmetric or asymmetric keys and not passwords, that should have died in 80s...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 password on characteristic</title><link>https://devzone.nordicsemi.com/thread/113916?ContentTypeID=1</link><pubDate>Thu, 21 Dec 2017 20:25:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43667c51-f7cb-4fcf-acc9-e28e19c7fc81</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;You are right, there exist two levels on (G)ATT layer: Authorization to Read/Write and Authentication to Read/Write. It seems that authorization is what you are looking for (that depends on App proprietary state and explicit permission to execute while the other should just relate to Link state - if it uses encryption or not). See &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v5.0.0%2Fgroup___b_l_e___g_a_t_t_s___m_s_c.html"&gt;GATT Server message sequence charts here&lt;/a&gt;. I&amp;#39;ve totally forgotten about these and reason probably is that I&amp;#39;ve never seen this in use. Passwords are adding typically almost no security at all so if you are not able to utilize BLE security inside the stack (e.g. because it doesn&amp;#39;t scale to fleet of many devices) then you should design proper secure channel protocol on APP layer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 password on characteristic</title><link>https://devzone.nordicsemi.com/thread/113915?ContentTypeID=1</link><pubDate>Thu, 21 Dec 2017 19:04:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88dae384-aee3-4b79-a5df-650d6c6ff5eb</guid><dc:creator>Foxek</dc:creator><description>&lt;p&gt;And what about rd_auth/wr_auth?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 password on characteristic</title><link>https://devzone.nordicsemi.com/thread/113914?ContentTypeID=1</link><pubDate>Thu, 21 Dec 2017 17:27:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a57c6a3-bc54-4f7e-a72b-f04c867f0901</guid><dc:creator>Foxek</dc:creator><description>&lt;p&gt;I write password in the WRITE characteristic and it NOTIFIES me with data if password is correct? thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 password on characteristic</title><link>https://devzone.nordicsemi.com/thread/113913?ContentTypeID=1</link><pubDate>Thu, 21 Dec 2017 17:21:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:712bfd72-7d53-4db8-8d8b-13c72c1db40d</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Basically yes, just translate it to language of (G)ATT methods such as Read/Write/Notify...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 password on characteristic</title><link>https://devzone.nordicsemi.com/thread/113912?ContentTypeID=1</link><pubDate>Thu, 21 Dec 2017 17:15:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5ac311d-4f69-4351-978e-1b89b9b72c1e</guid><dc:creator>Foxek</dc:creator><description>&lt;p&gt;That is, it is necessary to implement the response function at the application level. I write password  to the character , and it gives me the data if the password is correct?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 password on characteristic</title><link>https://devzone.nordicsemi.com/thread/113911?ContentTypeID=1</link><pubDate>Thu, 21 Dec 2017 17:12:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9b83742-356b-4fa1-b376-ab13fbd908cd</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;You can do whatever you want on APP layer so if you define protocol on top of that Characteristic and implement some password verification the it will work. On BLE level you have only Security Manager methods which restrict access to certain (G)ATT objects as per link (encrypted/unencrypted) status but that is global for the link and GATT Server, you cannot make it more granular and define some additional PINs or passwords for each object...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>