<?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 data received with BLE scanner to esp32 with uart</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84354/sending-data-received-with-ble-scanner-to-esp32-with-uart</link><description>Hi everyone. I want to take advertising data with ble scanner and transmit to esp32 via uart. But I don&amp;#39;t know how to do this. Is there an example for this? I need your help on this.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Feb 2022 14:33:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84354/sending-data-received-with-ble-scanner-to-esp32-with-uart" /><item><title>RE: Sending data received with BLE scanner to esp32 with uart</title><link>https://devzone.nordicsemi.com/thread/355319?ContentTypeID=1</link><pubDate>Mon, 28 Feb 2022 14:33:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6621812-385e-4fbf-9670-50f4e81f1504</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="sasci"]When I use app_uart_put(), don&amp;#39;t read received data.[/quote]
&lt;p&gt;Specifically which error does the function return?&lt;br /&gt;Please make sure to have DEBUG defined in your preprocessor defines like shown in the included image:&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/3377.enabling_5F00_debug_5F00_SES.PNG" /&gt;&lt;br /&gt;This will make your logger output a detailed error message whenever a non-NRF_SUCCESS error code is passed to an APP_ERROR_CHECK.&lt;/p&gt;
[quote user="sasci"]But I can read that on J-link RTT.[/quote]
&lt;p&gt;If you have configured the logger to use the RTT backend you will see the NRF_LOG_* statements printed to RTT. The RTT terminal does not output UART messages.&lt;br /&gt;&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: Sending data received with BLE scanner to esp32 with uart</title><link>https://devzone.nordicsemi.com/thread/355297?ContentTypeID=1</link><pubDate>Mon, 28 Feb 2022 13:51:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b1695ca-9396-4e75-a0a8-51cacd97e2ed</guid><dc:creator>sasci</dc:creator><description>&lt;p&gt;When I use app_uart_put(), don&amp;#39;t read received data. But I can read that on J-link RTT.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending data received with BLE scanner to esp32 with uart</title><link>https://devzone.nordicsemi.com/thread/355295?ContentTypeID=1</link><pubDate>Mon, 28 Feb 2022 13:45:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fe62646-7831-47d1-a46f-9ce027e6d811</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;What error do you get when you try to use app_uart_put?&lt;br /&gt;printf prints on UART if RETARGET_ENABLED is defined to 1 in the sdk_config.h.&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: Sending data received with BLE scanner to esp32 with uart</title><link>https://devzone.nordicsemi.com/thread/355292?ContentTypeID=1</link><pubDate>Mon, 28 Feb 2022 13:33:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7d5e2a4-4e7d-455b-ac87-b09627f35693</guid><dc:creator>sasci</dc:creator><description>&lt;p&gt;Hi Karl,&lt;/p&gt;
&lt;p&gt;I have a problem. I worked hard on this subject but every time i got error on app_uart_put(). I can&amp;#39;t send data with app_uart_put() but when I use printf() I can read data from esp32. Which is correct for uart? And why?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending data received with BLE scanner to esp32 with uart</title><link>https://devzone.nordicsemi.com/thread/354855?ContentTypeID=1</link><pubDate>Thu, 24 Feb 2022 14:41:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d02e325-548d-420b-b35f-633110b1fc13</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="sasci"]Thank you for your advice.[/quote]
&lt;p&gt;No problem at all, I am happy to help!&lt;/p&gt;
[quote user="sasci"]I want to write a code that sends battery advertisement of many bluetooth devices to esp and want it to establish esp communication with uart. Which SDK should I choose for the examples you mention?[/quote]
&lt;p&gt;We generally recommend that new developments make use of the new nRF Connect SDK, but the application you describe sound very similar to the existing &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/ble_sdk_app_nus_c.html"&gt;BLE NUS central application in the nRF5 SDK&lt;/a&gt;. This application scans for specific devices (filters on advertised UUID&amp;#39;s) and has UART already in use.&lt;br /&gt;You will need to remove the UUID filter, and have the advertising reports output on the UART as described in my previous comment.&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: Sending data received with BLE scanner to esp32 with uart</title><link>https://devzone.nordicsemi.com/thread/354794?ContentTypeID=1</link><pubDate>Thu, 24 Feb 2022 11:48:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f070a8be-4d66-415d-8c63-7fef69aad4b0</guid><dc:creator>sasci</dc:creator><description>&lt;p&gt;Hello Karl,&lt;/p&gt;
&lt;p&gt;Thank you for your advice. I want to write a code that sends battery advertisement of many bluetooth devices to esp and want it to establish esp communication with uart. Which SDK should I choose for the examples you mention?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending data received with BLE scanner to esp32 with uart</title><link>https://devzone.nordicsemi.com/thread/351473?ContentTypeID=1</link><pubDate>Mon, 07 Feb 2022 09:02:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f759c9e-ccea-4370-b7da-cd9c91543992</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello sasci,&lt;br /&gt;&lt;br /&gt;Have I understood you correctly that you intend to use a nRF52840 SoC as a scanner device that forwards the advertising reports it finds through to a esp32 module through an UART connection? If so, do you intend this to scan for all devices, or only looking for a specific device?&lt;br /&gt;&lt;br /&gt;If looking for a specific device&amp;#39;s advertising you may start out with &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/ble_sdk_app_nus_c.html"&gt;the BLE APP UART&amp;nbsp;central&amp;nbsp;example&lt;/a&gt;, and then use the&amp;nbsp;BLE_GAP_EVT_ADV_REPORT from the filter match to be output on the UART.&lt;br /&gt;You can re-use the section from the&amp;nbsp;BLE_NUS_C_EVT_NUS_TX_EVT event to print the data to UART.&lt;br /&gt;You will also need to set&amp;nbsp;connect_if_match to false, if you intend not to connect to a device that matches your scanner filters.&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: Sending data received with BLE scanner to esp32 with uart</title><link>https://devzone.nordicsemi.com/thread/351335?ContentTypeID=1</link><pubDate>Fri, 04 Feb 2022 12:54:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd53e435-6be5-4a81-ac8a-3a9880fb2fc8</guid><dc:creator>sasci</dc:creator><description>&lt;p&gt;&amp;nbsp;I am looking for is an example that combines beacon scanner and uart communication. I didn&amp;#39;t think I&amp;#39;d find something like this in the esp32 forum.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending data received with BLE scanner to esp32 with uart</title><link>https://devzone.nordicsemi.com/thread/351079?ContentTypeID=1</link><pubDate>Thu, 03 Feb 2022 12:02:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b22903c8-176b-4f3e-9def-ae94ab624a3a</guid><dc:creator>ketiljo</dc:creator><description>&lt;p&gt;Maybe ask in a ESP32 forum?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>