<?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>Communicate in BLE with NRF52 using Android</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11387/communicate-in-ble-with-nrf52-using-android</link><description>Hi everyone, 
 I&amp;#39;m a beginner in Android development and BLE environment, and I want to communicate with the nRF52 card using an Android app. In fact I have to develop an access control, using the nRF52 board and an Android App. 
 For now I&amp;#39;m able to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Jan 2016 07:59:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11387/communicate-in-ble-with-nrf52-using-android" /><item><title>RE: Communicate in BLE with NRF52 using Android</title><link>https://devzone.nordicsemi.com/thread/42914?ContentTypeID=1</link><pubDate>Thu, 21 Jan 2016 07:59:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fe68561-1555-4be6-86e9-cf928bcc267e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Vivien,&lt;/p&gt;
&lt;p&gt;Please have  a look at our examples the nRF5 SDK v.11. For example the experimental_ble_app_blinky where you can turn off and on an LED using an app (nRF Blinky) You can find the app source code &lt;a href="https://github.com/NordicSemiconductor/Android-nRF-Blinky"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Note that we don&amp;#39;t call sd_ble_gatts_value_get() to get the value of the characteristic to change the LED state but we catch the BLE_GATTS_EVT_WRITE event to change the LED state.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communicate in BLE with NRF52 using Android</title><link>https://devzone.nordicsemi.com/thread/42913?ContentTypeID=1</link><pubDate>Wed, 20 Jan 2016 17:51:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b62256d-9273-43ee-a6c4-ad93178b069e</guid><dc:creator>Vivien</dc:creator><description>&lt;p&gt;Hi Hung,
Thanks again four your help and your time. For the moment, I&amp;#39;m able to write on a characteristic of the card using an external Android app called : BLE Scanner. I&amp;#39;m writting on the characteristic : &amp;quot;Device Name&amp;quot; under the service &amp;quot;Generic Access Service&amp;quot;. Now I would like to compare this value with another value and then turn on a LED on the board. The point is I don&amp;#39;t know how to call the function &amp;quot;sd_ble_gatts_value_get()&amp;quot; in the main file (especially the attribute tu use : conn_handle &amp;amp; handle).
Do you have an example of this function ?&lt;/p&gt;
&lt;p&gt;Thanks again for your time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communicate in BLE with NRF52 using Android</title><link>https://devzone.nordicsemi.com/thread/42912?ContentTypeID=1</link><pubDate>Wed, 20 Jan 2016 10:14:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44cd8e11-118a-4df3-859a-fbf9709e84db</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Vivien: You don&amp;#39;t have to access RAM directly to get the char value. You can call sd_ble_gatts_value_get() to get the value of a characteristic.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communicate in BLE with NRF52 using Android</title><link>https://devzone.nordicsemi.com/thread/42915?ContentTypeID=1</link><pubDate>Wed, 20 Jan 2016 09:00:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8301f3a0-c339-41a5-a728-df454c2067da</guid><dc:creator>Vivien</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Thanks for your advice, I&amp;#39;ll take a look in the RAM if I can retrieve my value.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communicate in BLE with NRF52 using Android</title><link>https://devzone.nordicsemi.com/thread/42911?ContentTypeID=1</link><pubDate>Tue, 19 Jan 2016 09:45:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:221787d9-e0ff-4c67-bb55-51cd9753268e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Vivien,&lt;/p&gt;
&lt;p&gt;Please have a look at our example apps, such as the nRF UART app or the nRF Toolbox app. You can find how to do a write on a characteristic.
The value of a BLE characteristic is stored in the Attribute table on RAM (could be in the Stack&amp;#39;s RAM area or in the application&amp;#39;s RAM area)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>