<?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>Formatting data send through saadc ble uart example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15892/formatting-data-send-through-saadc-ble-uart-example</link><description>HI i need help in sending a data value of 700+ continuously 
 1)May i know how should i format my data packet to suit the current 20 bytes of data sent through BLE 
 2)Is there any protocol to follow to recognize the nrf52 ble using a normal bluetooth</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Aug 2016 13:18:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15892/formatting-data-send-through-saadc-ble-uart-example" /><item><title>RE: Formatting data send through saadc ble uart example</title><link>https://devzone.nordicsemi.com/thread/60624?ContentTypeID=1</link><pubDate>Mon, 22 Aug 2016 13:18:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b22a2d0-6282-4e38-b29b-7dd7c4960d24</guid><dc:creator>awneil</dc:creator><description>&lt;blockquote&gt;
&lt;p&gt;The UART profile is just a raw data profile, where you need to interpret data on the receiver side yourself&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;In other words, just like sending data over a &lt;strong&gt;real&lt;/strong&gt; UART - hence the name!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Formatting data send through saadc ble uart example</title><link>https://devzone.nordicsemi.com/thread/60623?ContentTypeID=1</link><pubDate>Mon, 22 Aug 2016 11:47:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:139562ec-90c4-40bd-ab01-3bf7b0328a30</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Transfer over BLE is via bytes. You can put up to 20 bytes in each packet. If you have a SAADC value that is e.g. 10 bit value, you can fragment each value into two bytes, higher and lower byte, and then send the two bytes over BLE. If you wish to fill up a data packet with 20 bytes, each packet will contain 10 SAADC values with this method. The BLE peer device is responsible for defragment/decode the received data. An example of SAADC value fragmentation is available on &lt;a href="https://github.com/NordicSemiconductor/nRF52-ADC-examples"&gt;Nordic&amp;#39;s Github page&lt;/a&gt;. In &lt;a href="https://github.com/NordicSemiconductor/nRF52-ADC-examples/blob/master/ble_app_uart__saadc_timer_driven__scan_mode/main.c"&gt;this example&lt;/a&gt; in function saadc_callback, all data in the SAADC buffer is transmitted over BLE via NUS service. Before transmission, the data is fragmented. Maximum 10 samples are sent in each packet.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;You can in theory send SAADC samples to any BLE profile you wish, but the data on the receiver side might not be interpreted correctly. The UART profile is just a raw data profile, where you need to interpret data on the receiver side yourself. A common example of SAADC use is to measure battery voltage, convert the measured voltage to battery level in % and send that value over BLE. An example of this is shown in &lt;a href="https://github.com/NordicSemiconductor/nrf51-ADC-examples/blob/master/ble_app_hrs_adc_battery_measurement/main.c"&gt;this example&lt;/a&gt;, see the adc_event_handler function. The battery level value can be received with e.g. nRFToolbox HRM app.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;To receive BLE data on PC, you need BLE device, e.g. BLE dongle. It can not be traditional Bluetooth dongle as that implements Bluetooth classic protocols. Bluetooth classic and Bluetooth low energy (BLE) are not compatible.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>