<?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>send data with BLE without UART</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16686/send-data-with-ble-without-uart</link><description>Hello. 
 I have a question.
I use nrf52 &amp;amp; Keil.
I want to get data from sensors and send it with BLE. 
 Now, I found sample codes.
It uses UART and sends with BLE. 
 Is there code or way of send data with BLE without UART? 
 Thanks,</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 03 Oct 2016 03:59:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16686/send-data-with-ble-without-uart" /><item><title>RE: send data with BLE without UART</title><link>https://devzone.nordicsemi.com/thread/63845?ContentTypeID=1</link><pubDate>Mon, 03 Oct 2016 03:59:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05fa6067-68b0-4bed-bf77-7696c8084374</guid><dc:creator>Sagisawa Yukichi</dc:creator><description>&lt;p&gt;Thanks comments!
I will read about sd_ble_gatts_hvx.
Thank you very much.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: send data with BLE without UART</title><link>https://devzone.nordicsemi.com/thread/63844?ContentTypeID=1</link><pubDate>Mon, 03 Oct 2016 03:53:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bf8ed1e-7964-4b89-8c54-bcafffa5659f</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;What @kristin said. What I meant was:&lt;/p&gt;
&lt;p&gt;1- There is no example that send actual sensor data&lt;/p&gt;
&lt;p&gt;2- But there are various example that send simulated data&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: send data with BLE without UART</title><link>https://devzone.nordicsemi.com/thread/63843?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2016 10:56:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8fbe6674-1aad-4e56-96a7-ede64325763f</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;As @Võ Thanh Hiêu says,  the health thermometer application, or any other example shows how to transmit data. The functions battery_level_update(..) and temperature_measurement_send(..) both show how to transmit data from a server to a client. To update data from a server to a client, the function sd_ble_gatts_hvx(..) is being used.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: send data with BLE without UART</title><link>https://devzone.nordicsemi.com/thread/63842?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2016 01:34:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a86ebcec-e76d-41b5-a3fe-1295dbc3490e</guid><dc:creator>Sagisawa Yukichi</dc:creator><description>&lt;p&gt;Thanks your comment &amp;amp;  sorry to reply late.
You mean There is not sample  code what nrf send any data?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: send data with BLE without UART</title><link>https://devzone.nordicsemi.com/thread/63841?ContentTypeID=1</link><pubDate>Tue, 27 Sep 2016 04:46:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d03ad89-9fec-42a9-96f8-fc3a1a089c6a</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;So in BLE, you send data over Services and Characteristics. &lt;a href="https://devzone.nordicsemi.com/tutorials/"&gt;There are tutorials here that can help you get start with those concepts&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The example that send data using UART you mentioned is probably the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk51.v10.0.0%2Fble_sdk_app_nus_eval.html&amp;amp;cp=4_0_2_4_2_2_18"&gt;UART/Serial Port Simulation example&lt;/a&gt;. It use the Service &amp;quot;Nordic UART Service&amp;quot; and the two Characteristics &amp;quot;TX&amp;quot; and &amp;quot;RX&amp;quot; to transfer data.&lt;/p&gt;
&lt;p&gt;If you want to see how to transfer data via the same Nordic UART Service, look at the function &lt;code&gt;uart_event_handle()&lt;/code&gt;. You could see that data receive over UART is stored in &lt;code&gt;data_array&lt;/code&gt; and send using &lt;code&gt;ble_nus_string_send()&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;If you want to see how to transfer data via some other standard BLE Service, you can look at the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk51.v10.0.0%2Fble_sdk_app_hrs.html&amp;amp;cp=4_0_2_4_2_2_8"&gt;Health Thermometer Application&lt;/a&gt;. In this one, you can find Battery state and Temperature data is simulated via the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk51.v10.0.0%2Fgroup__ble__sdk__lib__sensorsim.html"&gt;Sensor Data Simulator&lt;/a&gt; and send through the Battery Service and Health Thermometer Service in &lt;code&gt;battery_level_update()&lt;/code&gt; and &lt;code&gt;temperature_measurement_send()&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;There are a few more where they send simulated data over other BLE Services. However I am not aware of any stock nRF5 SDK example that use actual sensor data and send data using any BLE Services.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know which SDK version you are using so I provided links to documentation of SDK v10.0.0. But there should be similar articles in the version of the SDK you are using.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>