<?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>how to send a char to bluetooth to mobile</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85973/how-to-send-a-char-to-bluetooth-to-mobile</link><description>Hi i am new to nrf52840 i want to send a char continuously through bluetooth to mobile, im using sdk 17.1.0 and i have tried ble_app_uart in the example but the blue tooth is not advertising where do i miss i donot know, can any body help me out by suggesting</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Mar 2022 09:31:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85973/how-to-send-a-char-to-bluetooth-to-mobile" /><item><title>RE: how to send a char to bluetooth to mobile</title><link>https://devzone.nordicsemi.com/thread/360215?ContentTypeID=1</link><pubDate>Mon, 28 Mar 2022 09:31:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93e0b111-f939-4e6b-b852-c8af6af99b34</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again,&lt;br /&gt;&lt;br /&gt;I am glad to hear that you are now properly receiving the transfers between your phone and computer.&lt;/p&gt;
[quote user="Nagaraj JP"]i need to find out which function is responsible for sending the message through bluetooth and i need to find where the handlers are available in the example code.[/quote]
&lt;p&gt;This happens in the UARTs event handler, as a handler for the TX event. Essentially, &amp;#39;when a character is received over UART, check it, and queue it for transfer to the connected peer over BLE&amp;#39;.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to send a char to bluetooth to mobile</title><link>https://devzone.nordicsemi.com/thread/359535?ContentTypeID=1</link><pubDate>Wed, 23 Mar 2022 09:15:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1cec341-dd47-4433-a10c-03eaa54bbffd</guid><dc:creator>Nagaraj JP</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/85973/how-to-send-a-char-to-bluetooth-to-mobile/359368#359368"]You can &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/ble_sdk_app_nus_eval.html"&gt;read about how the example functions in the example documentation&lt;/a&gt;. The example does not utilize any security, so you only need to connect to it in order to access its services. The device will output anything it received in the NUS RX characteristic on it&amp;#39;s UART - so if your device is connected to a PC with a serial monitor it will display the received message there.[/quote]
&lt;p&gt;Yes thankyou Karl i will go through the article, and now i got the message recieving in both serial monitor and in my mobile only thing is i need to find out which function is responsible for sending the message through bluetooth and i need to find where the handlers are available in the example code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to send a char to bluetooth to mobile</title><link>https://devzone.nordicsemi.com/thread/359368?ContentTypeID=1</link><pubDate>Tue, 22 Mar 2022 12:53:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41c34580-8d28-4922-b806-d49d11bea9ac</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Oh, yes, in Keil you will need to flash the SoftDevice separatly, apologies for not being explicit about this earlier.&lt;/p&gt;
[quote user="Nagaraj JP"]now it is advertising but the thing is it is not paring to my mobile and i want to know what is the exact functionality of the &amp;quot;ble_app_uart&amp;quot; example cany you please help me out in that[/quote]
&lt;p&gt;You can &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/ble_sdk_app_nus_eval.html"&gt;read about how the example functions in the example documentation&lt;/a&gt;. The example does not utilize any security, so you only need to connect to it in order to access its services. The device will output anything it received in the NUS RX characteristic on it&amp;#39;s UART - so if your device is connected to a PC with a serial monitor it will display the received message there.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to send a char to bluetooth to mobile</title><link>https://devzone.nordicsemi.com/thread/359353?ContentTypeID=1</link><pubDate>Tue, 22 Mar 2022 12:02:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee2de3a1-9da0-4e74-878d-727274488d82</guid><dc:creator>Nagaraj JP</dc:creator><description>&lt;p&gt;Hi i just now got the bluetooth advertising the issue is because of the softdevices i uploaded the latest version of the softdevices into the nrf52840 now it is advertising but the thing is it is not paring to my mobile and i want to know what is the exact functionality of the &amp;quot;ble_app_uart&amp;quot; example cany you please help me out in that&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to send a char to bluetooth to mobile</title><link>https://devzone.nordicsemi.com/thread/359350?ContentTypeID=1</link><pubDate>Tue, 22 Mar 2022 11:56:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:847910a9-c3b4-479f-aed1-bbbc8d95050a</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="Nagaraj JP"]The image i shared you is just to show you how do I erase and load a program in the nrf52840 dk board. The below is the log which i get for erasing and loading the program.[/quote]
&lt;p&gt;Thank you for clarifying this.&lt;/p&gt;
[quote user="Nagaraj JP"]yes when i load a uart program it works fine but for ble app it is not advertising any bluetooth.[/quote][quote user="Nagaraj JP"]The example which i load is not modified it is exactly the same example in the sdk i just copied and pasted into my folder.[/quote]
&lt;p&gt;Then it is quite strange that you are not seeing it function as expected.&lt;br /&gt;Could you try to run this in a debug session to see if the program unexpectedly is getting stuck anywhere?&lt;br /&gt;Could you also open an RTT terminal, like the&amp;nbsp;&lt;em&gt;Segger RTT Viewer&amp;nbsp;&lt;/em&gt;to see if there are any unexpected logs being written there?&lt;br /&gt;The &amp;#39;UART example started&amp;#39; message should appear in a regular Serial terminal, but all error loggings etc. will require an RTT terminal to view.&lt;/p&gt;
[quote user="Nagaraj JP"]yes sure i will consider this point.[/quote]
&lt;p&gt;Great, I am happy to hear that!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to send a char to bluetooth to mobile</title><link>https://devzone.nordicsemi.com/thread/359262?ContentTypeID=1</link><pubDate>Tue, 22 Mar 2022 04:12:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1dd3a82c-f34f-4f36-91eb-4020d167bf08</guid><dc:creator>Nagaraj JP</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/85973/how-to-send-a-char-to-bluetooth-to-mobile/359101#359101"]From your logs it seems like your flash downloads are failing, are you certain that the programming succeeds as expected?[/quote]
&lt;p&gt;&lt;span&gt;The image i shared you is just to show you how do I erase and load a program in the nrf52840 dk board. The below is the log which i get for erasing and loading the program.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1647921981782v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1647922039952v2.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/85973/how-to-send-a-char-to-bluetooth-to-mobile/359101#359101"]Are you getting any logs at all, or is the device behaving anything like you would have expected?[/quote]
&lt;p&gt;&lt;span&gt;yes when i load a uart program it works fine but for ble app it is not advertising any bluetooth.&lt;/span&gt;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/85973/how-to-send-a-char-to-bluetooth-to-mobile/359101#359101"]I think you should try to run an unmodified example first, to make sure that your setup is correct, before you try to run your modified example.[/quote]
&lt;p&gt;The example which i load is not modified it is exactly the same example in the sdk i just copied and pasted into my folder.&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/85973/how-to-send-a-char-to-bluetooth-to-mobile/359101#359101"]Furthermore, it seems that your path to your project is very long. This could cause issues on a Windows based machine because windows has a path limit of 266 characters. I would recommend that you reduce your projects path length and also make sure not to use blank spaces in the path to your project.[/quote]
&lt;p&gt;yes sure i will consider this point.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to send a char to bluetooth to mobile</title><link>https://devzone.nordicsemi.com/thread/359101?ContentTypeID=1</link><pubDate>Mon, 21 Mar 2022 11:53:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bacec43-e0ba-43ef-b5cb-62a283476c32</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;From your logs it seems like your flash downloads are failing, are you certain that the programming succeeds as expected?&lt;br /&gt;Are you getting any logs at all, or is the device behaving anything like you would have expected?&lt;br /&gt;I think you should try to run an unmodified example first, to make sure that your setup is correct, before you try to run your modified example.&lt;br /&gt;&lt;br /&gt;Furthermore, it seems that your path to your project is very long. This could cause issues on a Windows based machine because windows has a path limit of 266 characters. I would recommend that you reduce your projects path length and also make sure not to use blank spaces in the path to your project.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to send a char to bluetooth to mobile</title><link>https://devzone.nordicsemi.com/thread/359065?ContentTypeID=1</link><pubDate>Mon, 21 Mar 2022 10:06:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56f8d171-26f8-4ba7-900f-c65f047456a1</guid><dc:creator>Nagaraj JP</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/85973/how-to-send-a-char-to-bluetooth-to-mobile/359045#359045"]How have you verified whether or not the board is actually advertising? Does LED1 blink slowly? This is the usual advertising indication used in the SDK examples.[/quote]
&lt;p&gt;The led is not blinking slowly it actually is continuously on and off for 100 ms.&amp;nbsp;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/85973/how-to-send-a-char-to-bluetooth-to-mobile/359045#359045"]How do you perform the programming of the device?[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;i load the program using keil ide first i used to erase the chip as below..&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1647856990659v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;and i used to flash the program as below..&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1647857104268v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to send a char to bluetooth to mobile</title><link>https://devzone.nordicsemi.com/thread/359045?ContentTypeID=1</link><pubDate>Mon, 21 Mar 2022 09:25:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9034569a-4010-41b1-b895-6ff5e4026e5e</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="Nagaraj JP"]thankyou for the reply[/quote]
&lt;p&gt;No problem at all, I am happy to help!&lt;/p&gt;
[quote user="Nagaraj JP"]im using keil for building and loading the code into the nrf52840 dkboard, after loading the ble_app_uart code into the dk board as per my understanding the bluetooth device name as per the code is &amp;quot;Nordic_UART&amp;quot;&amp;nbsp; as below.[/quote]
&lt;p&gt;How have you verified whether or not the board is actually advertising? Does LED1 blink slowly? This is the usual advertising indication used in the SDK examples.&lt;br /&gt;If this does not happen we will need to look into how the device is flashed, and whether or not this is successful. How do you perform the programming of the device?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to send a char to bluetooth to mobile</title><link>https://devzone.nordicsemi.com/thread/358946?ContentTypeID=1</link><pubDate>Sat, 19 Mar 2022 05:30:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c18870b3-747f-44b9-8b34-2e5237320a9a</guid><dc:creator>Nagaraj JP</dc:creator><description>&lt;p&gt;Hi Karl thankyou for the reply, im using keil for building and loading the code into the nrf52840 dkboard, after loading the ble_app_uart code into the dk board as per my understanding the bluetooth device name as per the code is &amp;quot;Nordic_UART&amp;quot;&amp;nbsp; as below.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1647667397914v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;my question is this name does not get advertised when i open my bluetooth in my mobile, and also the iam not recieving any &amp;quot;Uart started&amp;quot; in my terminal as per the main code below when ever i restart the dk board.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;int main(void)
{
    bool erase_bonds;

    // Initialize.
    uart_init();
    log_init();
    timers_init();
    buttons_leds_init(&amp;amp;erase_bonds);
    power_management_init();
    ble_stack_init();
    gap_params_init();
    gatt_init();
    services_init();
    advertising_init();
    conn_params_init();

    // Start execution.
    printf(&amp;quot;\r\nUART started.\r\n&amp;quot;);
    NRF_LOG_INFO(&amp;quot;Debug logging for UART over RTT started.&amp;quot;);
    advertising_start();

    // Enter main loop.
    for (;;)
    {
        idle_state_handle();
    }
}
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to send a char to bluetooth to mobile</title><link>https://devzone.nordicsemi.com/thread/358883?ContentTypeID=1</link><pubDate>Fri, 18 Mar 2022 13:45:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e5257a5-2bec-4c1b-b17a-bd24f8ec40ce</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]can any body help me out by suggesting a good example for sending the character to mobile continuously.[/quote]
&lt;p&gt;I would here recommend the ble_app_uart example - it fits exactly the example description you are looking for, so let us look into why it is not working.&lt;/p&gt;
[quote user=""]and i have tried ble_app_uart in the example but the blue tooth is not advertising[/quote]
&lt;p&gt;Could you elaborate what you mean when you say that it is not working? What have you tried, and what did you observe? How did it diverge from what you would have expected?&lt;br /&gt;You say that it is not advertising - does everything up until the advertising work as expected? How did you&amp;nbsp;test whether or not it was advertising?&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>