<?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>Event received by BLE peripheral device when server requests to read from characteristic</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39394/event-received-by-ble-peripheral-device-when-server-requests-to-read-from-characteristic</link><description>Hello All, 
 
 I am developing an application using Nordic nRF_SDK_15.0.0, in which I need to make my BLE peripheral device as a peer device which will get/set data from/to the other micro-controller (Host device) through UART communication through set</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Nov 2018 07:50:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39394/event-received-by-ble-peripheral-device-when-server-requests-to-read-from-characteristic" /><item><title>RE: Event received by BLE peripheral device when server requests to read from characteristic</title><link>https://devzone.nordicsemi.com/thread/158757?ContentTypeID=1</link><pubDate>Fri, 23 Nov 2018 07:50:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a89469ce-94ad-484a-a15d-62177792d9be</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Happy to help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Event received by BLE peripheral device when server requests to read from characteristic</title><link>https://devzone.nordicsemi.com/thread/158740?ContentTypeID=1</link><pubDate>Fri, 23 Nov 2018 04:08:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3d430d4-bffb-415c-8d49-0dbe6acb6221</guid><dc:creator>Vineet Wadke</dc:creator><description>&lt;p&gt;I am able to capture &lt;span&gt;BLE_GATTS_EVT_RW_AUTHORIZE_REQUEST&lt;/span&gt; and update the characteristic value at that event. Just gone through some BLE service source codes in SDK. Also most of topics are already discussed on DevZone, so gone through it also. Thanks a lot Bjorn &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;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Event received by BLE peripheral device when server requests to read from characteristic</title><link>https://devzone.nordicsemi.com/thread/152652?ContentTypeID=1</link><pubDate>Fri, 12 Oct 2018 09:42:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8857f19a-5fc1-4ac4-950c-1023983d7d17</guid><dc:creator>Vineet Wadke</dc:creator><description>&lt;p&gt;Thanks a lot. :-)&lt;/p&gt;
&lt;p&gt;I will go through it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Event received by BLE peripheral device when server requests to read from characteristic</title><link>https://devzone.nordicsemi.com/thread/152638?ContentTypeID=1</link><pubDate>Fri, 12 Oct 2018 09:17:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:adee6257-2e97-4a61-b239-dbc480838adf</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;&lt;span&gt;Read Requests are used in the &lt;a href="https://devzone.nordicsemi.com/support-private/support/215208/nRF5%20SDK%20v15.0.0:%20Queued%20Writes%20module"&gt;QWR&lt;/a&gt; module which is included in most of the BLE peripheral examples.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Event received by BLE peripheral device when server requests to read from characteristic</title><link>https://devzone.nordicsemi.com/thread/152620?ContentTypeID=1</link><pubDate>Fri, 12 Oct 2018 08:32:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f62e4ce2-719b-4b28-8cd7-db4498cfdcd7</guid><dc:creator>Vineet Wadke</dc:creator><description>&lt;p&gt;Thanks a lot Bjorn for your response. I will evaluate the use of same for my development.&lt;/p&gt;
&lt;p&gt;Is there any example code or implemented service source code in Nordic SDK which uses GATTS Read Request with Authorization?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Event received by BLE peripheral device when server requests to read from characteristic</title><link>https://devzone.nordicsemi.com/thread/152617?ContentTypeID=1</link><pubDate>Fri, 12 Oct 2018 08:18:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b47fb03c-a07f-4074-af25-f930980e19e9</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Yes, you can achieve the behavior you are looking for by using Read requests with authorization, see the&amp;nbsp;&lt;a title="nRF52 Series" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.0.0/group___b_l_e___g_a_t_t_s___r_e_a_d___r_e_q___a_u_t_h___m_s_c.html?resultof=%22%47%41%54%54%53%22%20%22%67%61%74%74%22%20%22%52%65%61%64%22%20%22%72%65%61%64%22%20%22%52%65%71%75%65%73%74%22%20%22%72%65%71%75%65%73%74%22%20%22%41%75%74%68%6f%72%69%7a%61%74%69%6f%6e%22%20%22%61%75%74%68%6f%72%22%20"&gt;S132 SoftDevice v6.0.0: GATTS Read Request with Authorization&lt;/a&gt;&amp;nbsp;Message Sequence Chart for the event handling flow. You basically have to handle the BLE_GATTS_EVT_RW_AUTHORIZE_REQUEST event, which in your case will be to query the host device over UART and then call &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.0.0/group___b_l_e___g_a_t_t_s___f_u_n_c_t_i_o_n_s.html#ga6de7aea3a870669e1d869b047de95545"&gt;sd_ble_gatts_rw_authorize_reply&lt;/a&gt;&lt;span&gt;&amp;nbsp;with the value received from the host.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Bjørn&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Event received by BLE peripheral device when server requests to read from characteristic</title><link>https://devzone.nordicsemi.com/thread/152583?ContentTypeID=1</link><pubDate>Fri, 12 Oct 2018 06:41:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d8195a5-7039-4114-9524-1bebee5d4a7d</guid><dc:creator>Vineet Wadke</dc:creator><description>&lt;p&gt;I got some hints in&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/159/question-about-read-operation"&gt;this link&lt;/a&gt;. Some more information will be great.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>