<?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 Schnittstelle (String etc) through ble instead uart?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55454/sending-schnittstelle-string-etc-through-ble-instead-uart</link><description>Hi, 
 
 I want send a Data such as string or array, for that i took a look example ble_app_uart from the example we send a data from smartphone through ble but the microcontroller send it to pc via UART my question is, is it possible to send string direct</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 02 Jan 2020 09:43:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55454/sending-schnittstelle-string-etc-through-ble-instead-uart" /><item><title>RE: sending Schnittstelle (String etc) through ble instead uart?</title><link>https://devzone.nordicsemi.com/thread/227207?ContentTypeID=1</link><pubDate>Thu, 02 Jan 2020 09:43:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b11c46e-1c41-4b89-9497-178661ca5e65</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Andhika,&lt;/p&gt;
&lt;p&gt;It&amp;#39;s ok to parse/interpret the command input inside the&amp;nbsp;&lt;span&gt;nus_data_handler(), it doesn&amp;#39;t require much processing so the ISR will still be short.&amp;nbsp;Other&lt;/span&gt;&amp;nbsp;time-consuming or potentially blocking operations can be moved to the main loop.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sending Schnittstelle (String etc) through ble instead uart?</title><link>https://devzone.nordicsemi.com/thread/227102?ContentTypeID=1</link><pubDate>Mon, 30 Dec 2019 16:46:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06cb26f9-fa93-4b39-a01a-dbe9b5bcda3f</guid><dc:creator>Andhika</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;thanks for your respond yeah i found it, and i tried to&amp;nbsp; rewrite it in main in the main loop but it doesn&amp;#39;t work, is it safe to write my switch case in nus_data_handler instead? because i considering the existence of interrupt in the function.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sending Schnittstelle (String etc) through ble instead uart?</title><link>https://devzone.nordicsemi.com/thread/227053?ContentTypeID=1</link><pubDate>Mon, 30 Dec 2019 11:00:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5d088a0-5b58-4406-bf10-25a0bbdc9aee</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Andhika,&lt;/p&gt;
&lt;p&gt;p_evt-&amp;gt;params.rx_data.p_data inside&amp;nbsp;nus_data_handler() points to the data buffer where the BLE message is stored. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sending Schnittstelle (String etc) through ble instead uart?</title><link>https://devzone.nordicsemi.com/thread/226940?ContentTypeID=1</link><pubDate>Fri, 27 Dec 2019 14:08:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46519b81-f2bc-4c8d-a2d9-ec242c82dfac</guid><dc:creator>Andhika</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi thanks for your respond but i&amp;#39;m having a hard time finding where the received data stored.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;my idea is using a switch case,&amp;nbsp;&lt;/span&gt;&lt;span&gt;example if i send &amp;#39;1&amp;#39; from a phone i want the board gives me &amp;#39;Hello&amp;#39;,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;other microcontroller that i used to work with has a variable or memory called sbuff where all the received data stored in.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;do we have such a variable so i can easily used for my switch case?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;best regard and happy new year&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Andhika&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sending Schnittstelle (String etc) through ble instead uart?</title><link>https://devzone.nordicsemi.com/thread/224934?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2019 13:33:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75d335f3-4400-4303-97da-c01c3efdd243</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Yes, it shouldn&amp;#39;t be a problem. But you need to modify the example code. The documentation I linked to in my previous answer shows where received data is handled, and where the UART data is passed through to BLE.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sending Schnittstelle (String etc) through ble instead uart?</title><link>https://devzone.nordicsemi.com/thread/224764?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2019 13:56:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e69a6212-f6ba-4b59-ace5-ff57abf2b6ae</guid><dc:creator>Andhika</dc:creator><description>&lt;p&gt;hi vidar, yes i tried it but i still need the uart cable to read the message that send to the board&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;or i rephrase my question, is it possible send a schnittstelle via custon gatt and get feedback from the board which i can read on terminal i smartphone? like example i send 1 to the board and get feedback like &amp;#39;Hello&amp;#39; that the board send via ble?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;thanks for your respond&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sending Schnittstelle (String etc) through ble instead uart?</title><link>https://devzone.nordicsemi.com/thread/224758?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2019 13:40:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f047398d-42da-4175-9780-64c300595d20</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, please take a look at our&amp;nbsp;&lt;a title="UART/Serial Port Emulation over BLE" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/ble_sdk_app_nus_eval.html?cp=6_1_4_2_2_25"&gt;UART/Serial Port Emulation over BLE&lt;/a&gt;&amp;nbsp;example.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>