<?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>nRF51822 UART and BLE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/87069/nrf51822-uart-and-ble</link><description>Controller- MDBT40 (nrf51822 based) 
 Softdevice - S110 
 I have an application where data comes from UART and have to send over BLE simultaneously. When I initialize the BLE, the UART code gives unexpected behavior. But when I turn off the BLE, UART</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Apr 2022 10:09:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/87069/nrf51822-uart-and-ble" /><item><title>RE: nRF51822 UART and BLE</title><link>https://devzone.nordicsemi.com/thread/364169?ContentTypeID=1</link><pubDate>Thu, 21 Apr 2022 10:09:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93e00bb1-2341-4954-80b7-343f506476da</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The correct approach would be to use the function&amp;nbsp;&lt;a title="sd_ble_gap_disconnect" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s110.api.v8.0.0/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html?cp=5_7_0_6_2_1_4_15#ga4031d0e4034c6f5900ad6d35b763fb0d"&gt;sd_ble_gap_disconnect&lt;/a&gt;() and wait for the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s110.api.v8.0.0/group___b_l_e___g_a_p___e_n_u_m_e_r_a_t_i_o_n_s.html#ggada486dd3c0cce897b23a887bed284fefa057001bbd6ea9e615f19ef93cc0831ee"&gt;BLE_GAP_EVT_DISCONNECTED&lt;/a&gt;&lt;span&gt;&amp;nbsp;event. Note that the peripheral needs to start advertising when the Disconnected event is received, and the central needs to start scanning again when it wants to reconnect. It is not possible to initiate a connection from the central to the peripheral based on the address, if the peripheral is not advertising at the time.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Jørgen&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 UART and BLE</title><link>https://devzone.nordicsemi.com/thread/363656?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2022 14:21:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fce7046-7d73-4359-9a95-575f4218a658</guid><dc:creator>Sahil Sawant</dc:creator><description>&lt;p&gt;Thanks for your reply. So now I have written a code in the following sequence&lt;/p&gt;
&lt;p&gt;1. Take a data from UART for 10 secs&lt;/p&gt;
&lt;p&gt;2. Stop the UART and send start BLE -&amp;gt;send data over BLE for 10 secs&lt;/p&gt;
&lt;p&gt;3. Stop BLE start UART again&lt;/p&gt;
&lt;p&gt;I have used this approach and got a problem. BLE gets connected for only one time. In the second period, it does not show in the app. So could you tell me the API to terminate the BLE connection fully?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 UART and BLE</title><link>https://devzone.nordicsemi.com/thread/363647?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2022 14:02:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfda96c0-2ce4-46cd-ae3f-0d11c312c15d</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The priorities of the softdevice are fixed, you are not able to change these, as the softdevice needs to handle strict timing requirements from the BLE specifications.&lt;/p&gt;
&lt;p&gt;See &amp;quot;Exception (interrupt) management with a SoftDevice&amp;quot; on page 54-55 in&amp;nbsp;&lt;a title="S110 SoftDevice Specification v2.0" href="https://infocenter.nordicsemi.com/pdf/S110_SDS_v2.0.pdf?cp=5_7_0_0"&gt;S110 SoftDevice Specification v2.0&lt;/a&gt;&amp;nbsp;for more details.&lt;/p&gt;
&lt;p&gt;If you need to receive data on UART while CPU is busy with BLE operations, you need to upgrade to a nRF52 series IC, which have &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/uarte.html"&gt;UARTE peripherals&lt;/a&gt; with EasyDMA support, allowing you to send/receive data directly from/to RAM.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>