<?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>BLE - advertising and connect</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76802/ble---advertising-and-connect</link><description>Hi, 
 I understand that when a peripheral is advertising it is also waiting for connection/scan requests. 
 Does those requests and responses sent via the same advertising channels (37, 38, 39)? 
 In addition - which layer converts those outgoing/incoming</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Jun 2021 10:50:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76802/ble---advertising-and-connect" /><item><title>RE: BLE - advertising and connect</title><link>https://devzone.nordicsemi.com/thread/317437?ContentTypeID=1</link><pubDate>Mon, 28 Jun 2021 10:50:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62e40791-3d8c-4bd3-85ed-9a5861a4d0b0</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="Roei"]Thanks![/quote]
&lt;p&gt;No problem at all, I am happy to help!&lt;/p&gt;
[quote user="Roei"]when receiving and transmitting data via Rx and Tx pins, as part of NUS service[/quote]
&lt;p&gt;I did not know you were working on the BLE Nordic UART examples, thank you for clarifying.&lt;/p&gt;
[quote user="Roei"]I assume that those pins has any connection to the data radio channels which physically send and receive this data.[/quote]
&lt;p&gt;The connection between the physical UART and the SoftDevice&amp;#39;s BLE transmission is setup as event handlers. When there is a&amp;nbsp;APP_UART_DATA_READY event the data is queued for sending through the UART event handler. Likewise, the data received over the NUS service is handled in the nus_data_handler function, which outputs the received data on the physical UART TX pin.&lt;/p&gt;
[quote user="Roei"]from Tx to the radio channels[/quote]
&lt;p&gt;Please look at the&amp;nbsp;&lt;em&gt;uart_event_handle&lt;/em&gt; function in the ble_app_uart example. This function receives data on the physical UART&amp;#39;s RX pin, and queues it for sending to a connected device through its call to&amp;nbsp;&lt;em&gt;ble_nus_data_send&lt;/em&gt;.&lt;/p&gt;
[quote user="Roei"]from the radio channels to Rx[/quote]
&lt;p&gt;Please look at the&amp;nbsp;&lt;em&gt;nus_data_handler&amp;nbsp;&lt;/em&gt;function in the ble_app_uart example. It moves the data from the radio RX to the physical UART TX.&lt;br /&gt;&lt;br /&gt;Please do not hesitate to ask if anything still should be unclear!&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: BLE - advertising and connect</title><link>https://devzone.nordicsemi.com/thread/317418?ContentTypeID=1</link><pubDate>Mon, 28 Jun 2021 09:39:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c45c13e8-3a9d-433b-bae8-486703a31f7c</guid><dc:creator>Roei</dc:creator><description>&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Yes, I will elaborate - when receiving and transmitting data via Rx and Tx pins, as part of NUS service, I assume that those pins has any connection to the data radio channels which physically send and receive this data. So how this data is converted from Tx to the radio channels, and from the radio channels to Rx?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE - advertising and connect</title><link>https://devzone.nordicsemi.com/thread/317409?ContentTypeID=1</link><pubDate>Mon, 28 Jun 2021 08:58:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8510ef8a-79c8-463e-978e-690b1c2d19c5</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]&lt;p&gt;I understand that when a peripheral is advertising it is also waiting for connection/scan requests.&lt;/p&gt;
&lt;p&gt;Does those requests and responses sent via the same advertising channels (37, 38, 39)?&lt;/p&gt;[/quote]
&lt;p&gt;Yes, this is correct. When the peripheral is advertising as &lt;em&gt;connectable / scannable&lt;/em&gt; it will listen for a little period directly following its advertising, to see if it receives a SCAN or CONNECT request.&lt;br /&gt;This listening period happens on the channel which it just advertised on.&lt;/p&gt;
[quote user=""]In addition - which layer converts those outgoing/incoming packets from radio channels to Rx and Tx?[/quote]
&lt;p&gt;I am not exactly sure what you mean by this question, could you elaborate?&lt;br /&gt;The Link Layer (LL) is responsible for establishing and maintaining links, including to send the packets such as when a connection is established, or when a scan request is to be sent.&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></channel></rss>