<?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>Sending a string over BLE using a characteristic</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52402/sending-a-string-over-ble-using-a-characteristic</link><description>Hello, 
 
 I want to develop a data transfer service which has a control characteristic that is used to write commands on the phone app and if the command matches any command in the command list the corresponding response (a string) is sent over another</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 20 Sep 2019 11:22:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52402/sending-a-string-over-ble-using-a-characteristic" /><item><title>RE: Sending a string over BLE using a characteristic</title><link>https://devzone.nordicsemi.com/thread/210910?ContentTypeID=1</link><pubDate>Fri, 20 Sep 2019 11:22:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e0751b8-c583-4d6b-81d7-b57df0b886e6</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Great - so that&amp;#39;s answered the question for this thread.&lt;/p&gt;
&lt;p&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f603.svg" title="Smiley"&gt;&amp;#x1f603;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;So please verify the answer:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2538._5F00_Verify_2D00_answer_2D00_nordic.png" /&gt;&lt;/p&gt;
&lt;p&gt;See this for porting to nRF52810:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/33812/developing-for-nrf52810---the-full-story"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/33812/developing-for-nrf52810---the-full-story&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Start a new thread for new a new question.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending a string over BLE using a characteristic</title><link>https://devzone.nordicsemi.com/thread/210905?ContentTypeID=1</link><pubDate>Fri, 20 Sep 2019 11:10:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c3b963c-7dfa-42b0-827e-3a93c2c618be</guid><dc:creator>Sudeep R J</dc:creator><description>&lt;p&gt;Yea thanks for that link. I got to know the reason why i am getting that RAMcode error. Its because i am dumping it on softdevice s112 where as it is only for s132 and s140.&lt;/p&gt;
&lt;p&gt;I will try to port it to s112. Do you think it is possible?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending a string over BLE using a characteristic</title><link>https://devzone.nordicsemi.com/thread/210899?ContentTypeID=1</link><pubDate>Fri, 20 Sep 2019 10:38:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8e5a50a-229e-4a3e-a7a9-e5145cb07492</guid><dc:creator>awneil</dc:creator><description>[quote userid="83501" url="~/f/nordic-q-a/52402/sending-a-string-over-ble-using-a-characteristic/210895"]Does Segger embedded studio need any license to try out these examples[/quote]
&lt;p&gt;No.&lt;/p&gt;
&lt;p&gt;But you can get a free licence for using it with Nordic products:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.segger.com/news/segger-embedded-studio-ide-now-free-for-nordic-sdk-users/"&gt;https://www.segger.com/news/segger-embedded-studio-ide-now-free-for-nordic-sdk-users/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="83501" url="~/f/nordic-q-a/52402/sending-a-string-over-ble-using-a-characteristic/210895"]Also can you explain me what the ble app uart program does as i am unable to run and debug it for myself[/quote]
&lt;p&gt;It is described in the link I posted earlier.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending a string over BLE using a characteristic</title><link>https://devzone.nordicsemi.com/thread/210895?ContentTypeID=1</link><pubDate>Fri, 20 Sep 2019 10:33:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93aedd6d-317d-4b1b-9a80-6fad536c2bc8</guid><dc:creator>Sudeep R J</dc:creator><description>&lt;p&gt;Hey Awneil,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thats right. I have already worked with nRF52832 DK and i have tried the blinky example on that. I have also written characteristics for writing a byte of data and some thing like that. I want to know how to send data from my program to a phone app using a characteristic and thats it.&lt;/p&gt;
&lt;p&gt;Does Segger embedded studio need any license to try out these examples?&lt;/p&gt;
&lt;p&gt;Also can you explain me what the ble app uart program does as i am unable to run and debug it for myself. It would be really kind of you if you could help me in this. I want to know what is the role of UART in this? I mean how is data exchange taking place between BLE and phone app?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; regards&lt;/p&gt;
&lt;p&gt;Sudeep R J&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending a string over BLE using a characteristic</title><link>https://devzone.nordicsemi.com/thread/210888?ContentTypeID=1</link><pubDate>Fri, 20 Sep 2019 10:24:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:458bdac0-2b3c-4e1b-bf8e-1701e68705e8</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Sorry, I am not familiar with IAR - I have no idea what it&amp;#39;s talking about there with &amp;quot;RAMCode&amp;quot;.&lt;/p&gt;
&lt;p&gt;You will find that IAR is a &amp;quot;minority interest&amp;quot; here - so support here will be limited.&lt;/p&gt;
&lt;p&gt;Perhaps you should contact IAR about that?&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re trying to load the code into RAM, that won&amp;#39;t work - it&amp;#39;s designed to go into Flash.&lt;/p&gt;
[quote userid="83501" url="~/f/nordic-q-a/52402/sending-a-string-over-ble-using-a-characteristic/210886"]The target hardware I am using is the BL651 from Laird[/quote]
&lt;p&gt;I would strongly recommend that you &lt;em&gt;&lt;strong&gt;start&lt;/strong&gt; &lt;/em&gt;with a Nordic Dev&amp;nbsp;Kit - that way you will get proven, ready-to-use examples and people here will be familiar with the Target and able to help you easily.&lt;/p&gt;
&lt;p&gt;Use the&amp;nbsp;&lt;span&gt;Nordic Dev&amp;nbsp;&lt;/span&gt;&lt;span&gt;Kit to gain familiarity with the product and the tools.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Once you are&amp;nbsp;familiar with the product and the tools, &lt;em&gt;&lt;strong&gt;then&lt;/strong&gt; &lt;/em&gt;is the time to move onto 3rd-party modules.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Alternatively, go to Laird for specific support and examples with their product.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Again, Nordic &amp;#39;Getting Started&amp;#39; resources:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.nordicsemi.com/Get-Started"&gt;https://www.nordicsemi.com/Get-Started&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/introduction-to-bluetooth-low-energy-and-ble-devel"&gt;https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/introduction-to-bluetooth-low-energy-and-ble-devel&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending a string over BLE using a characteristic</title><link>https://devzone.nordicsemi.com/thread/210886?ContentTypeID=1</link><pubDate>Fri, 20 Sep 2019 10:11:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49597810-5fd6-4773-ab62-af75d04db72a</guid><dc:creator>Sudeep R J</dc:creator><description>&lt;p&gt;Hey Awneil,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for your quick response. The target hardware I am using is the BL651 from Laird which has a nRF52810.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/5226.Capture.PNG" /&gt;The attached Screenshot shows the error that pops up when I try to erase memory using IAR embedded workbench. The general protocol that I follow Debug any program on IAR is to erase memory, download respective hex file and then go for download and debug.&lt;/p&gt;
&lt;p&gt;Do you have any fix for this?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Waiting for your reply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending a string over BLE using a characteristic</title><link>https://devzone.nordicsemi.com/thread/210885?ContentTypeID=1</link><pubDate>Fri, 20 Sep 2019 10:02:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:736b4b10-4851-4536-82e3-3d2b8bf3cc3b</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Nordic &amp;#39;Getting Started&amp;#39; resources:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.nordicsemi.com/Get-Started"&gt;https://www.nordicsemi.com/Get-Started&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/introduction-to-bluetooth-low-energy-and-ble-devel"&gt;https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/introduction-to-bluetooth-low-energy-and-ble-devel&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="83501" url="~/f/nordic-q-a/52402/sending-a-string-over-ble-using-a-characteristic"]I saw many posts on Devzone regarding this and all those posts mention about the same ble uart example[/quote]
&lt;p&gt;Yes - that &lt;em&gt;&lt;strong&gt;is&lt;/strong&gt; &lt;/em&gt;the one to look at!&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/ble_sdk_app_nus_eval.html"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/ble_sdk_app_nus_eval.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="83501" url="~/f/nordic-q-a/52402/sending-a-string-over-ble-using-a-characteristic"]there is a RAMcode error that pops up whenever i try to download and debug this example[/quote]
&lt;p&gt;Post a screenshot of what pops up.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/49995/twi-nrf52dk-ble/199526#199526"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/49995/twi-nrf52dk-ble/199526#199526&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Are you building the example from source, or just using the pre-built Hex?&lt;/p&gt;
&lt;p&gt;How, exactly, are you downloading?&lt;/p&gt;
&lt;p&gt;Have you loaded the SoftDevice?&lt;/p&gt;
&lt;p&gt;What target hardware are you using?&lt;/p&gt;
[quote userid="83501" url="~/f/nordic-q-a/52402/sending-a-string-over-ble-using-a-characteristic"]Is there any other way to do what i want to do?[/quote]
&lt;p&gt;Yes - the NUS example is a great place to start.&lt;/p&gt;
[quote userid="83501" url="~/f/nordic-q-a/52402/sending-a-string-over-ble-using-a-characteristic"]i dont want to involve uart or anything else[/quote]
&lt;p&gt;I strongly suggest that you start with the example as-is, and spend time studying it to see how the data is passed to &amp;amp; from BLE.&lt;/p&gt;
&lt;p&gt;Once you understand that, you can easily modify it to take data from anywhere else.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you&amp;nbsp;then want to go on and create your own custom Services &amp;amp; Characteristics, follow these tutorials:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/ble-services-a-beginners-tutorial"&gt;https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/ble-services-a-beginners-tutorial&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/ble-characteristics-a-beginners-tutorial"&gt;https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/ble-characteristics-a-beginners-tutorial&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>