<?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>I want to send data from sensors to central Android via BLE communication</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46066/i-want-to-send-data-from-sensors-to-central-android-via-ble-communication</link><description>Hello 
 I am using Android and BLE communication with nRF52832 (BLENano2) now. 
 I am using SDK 15.0.0 with keil uversion. 
 Central is Android and peripheral is nRF52832. 
 Use the SDK &amp;quot;app_ble_blinky&amp;quot; We were able to write 0x01 to characteristic from</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Apr 2019 01:10:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46066/i-want-to-send-data-from-sensors-to-central-android-via-ble-communication" /><item><title>RE: I want to send data from sensors to central Android via BLE communication</title><link>https://devzone.nordicsemi.com/thread/182480?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2019 01:10:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec1e404a-7b69-4c17-a551-93e7546be467</guid><dc:creator>y001</dc:creator><description>&lt;p&gt;&lt;span class="tlid-translation translation" style="background-attachment:scroll;background-color:transparent;background-image:none;background-repeat:repeat;background-size:auto;color:rgba(0, 0, 0, 0.87);font-style:normal;font-weight:400;letter-spacing:normal;line-height:32px;padding-right:8px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:pre-wrap;" lang="en"&gt;&lt;span style="background-attachment:scroll;background-color:transparent;background-image:none;background-repeat:repeat;background-size:auto;" title=""&gt;Thank you for reply!&lt;/span&gt;&lt;br style="background-attachment:scroll;background-color:transparent;background-image:none;background-repeat:repeat;background-size:auto;" /&gt;&lt;span style="background-attachment:scroll;background-color:transparent;background-image:none;background-repeat:repeat;background-size:auto;" title=""&gt;I&amp;#39;ll try!&lt;/span&gt;&lt;/span&gt;&lt;span class="tlid-translation-gender-indicator translation-gender-indicator" style="background-attachment:scroll;background-color:transparent;background-image:none;background-repeat:repeat;background-size:auto;color:#5f6368;font-style:italic;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;&lt;/span&gt;&lt;span class="tlid-trans-verified-button trans-verified-button" style="background-attachment:scroll;background-color:transparent;background-image:url(&amp;#39;https://ssl.gstatic.com/images/icons/material/system_gm/1x/verified_user_black_24dp.png&amp;#39;);background-repeat:no-repeat;background-size:auto;color:#777777;display:inline-block;font-style:normal;font-weight:400;height:24px;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;vertical-align:text-bottom;white-space:normal;width:24px;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to send data from sensors to central Android via BLE communication</title><link>https://devzone.nordicsemi.com/thread/181610?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2019 12:50:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33185522-13f9-4732-8c4e-68a8e84defe1</guid><dc:creator>William E.</dc:creator><description>&lt;p&gt;When I created my first custom BLE service I followed this guide:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicPlayground/nRF5x-custom-ble-service-tutorial"&gt;https://github.com/NordicPlayground/nRF5x-custom-ble-service-tutorial&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It takes some time but the guide is complete and good for creating your first service.&lt;/p&gt;
&lt;p&gt;You can design you service how ever you like but for accelerometer data I suggest that you use notification and serialize the data into an array of values that you then deserialize on the Android side for best performance.&lt;/p&gt;
&lt;p&gt;For example a very simple accelerometer service might have a xyz characteristic where you pack a constant number of bits for each x, y, z-axis, depending on the characteristic max length you can then fit many samples into one notification.&lt;/p&gt;
&lt;p&gt;On the app-side you can use&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicSemiconductor/Android-nRF-Toolbox"&gt;https://github.com/NordicSemiconductor/Android-nRF-Toolbox&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;and modify the Template application to fit your needs.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>