<?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>Configuring BLE on nRF52 using modern TWS mechanism</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119866/configuring-ble-on-nrf52-using-modern-tws-mechanism</link><description>Hi to you all. I have a question about how I can apply this mechanism in nRF52. 
 In modern TWS, it works like the phone or PC connects earbuds separately and sends and receives data between them. So, I want to apply this mechanism to the BLE service</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 24 Mar 2025 09:32:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119866/configuring-ble-on-nrf52-using-modern-tws-mechanism" /><item><title>RE: Configuring BLE on nRF52 using modern TWS mechanism</title><link>https://devzone.nordicsemi.com/thread/528562?ContentTypeID=1</link><pubDate>Mon, 24 Mar 2025 09:32:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:439b8b65-bb07-4bc5-b7e8-72db55dfe8dc</guid><dc:creator>omerBzkrt</dc:creator><description>&lt;p&gt;Thanks for your quick reply, Hung Bui.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring BLE on nRF52 using modern TWS mechanism</title><link>https://devzone.nordicsemi.com/thread/528561?ContentTypeID=1</link><pubDate>Mon, 24 Mar 2025 09:30:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74fdccb1-46ca-4ab0-bc74-e89aa32326f1</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Omer,&amp;nbsp;&lt;br /&gt;So you want to have two separate connection to two separate peripherals ?&lt;br /&gt;If it&amp;#39;s the case&amp;nbsp;I think any sample in the SDK can do that. You just need to flash them with the same sample, for example peripheral_uart . The phone will then see 2 devices and can connect to them one by one.&amp;nbsp;&lt;br /&gt;If you want that the phone only&amp;nbsp;see one but when connecting it connect to two. Then you need to implement your&amp;nbsp; mechanism in the phone&amp;#39;s app to do so. As AI already mentioned, the phone need to handle the sync&amp;nbsp;of the two peripherals and the connect/disconnect need to be done for both peripherals.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring BLE on nRF52 using modern TWS mechanism</title><link>https://devzone.nordicsemi.com/thread/528556?ContentTypeID=1</link><pubDate>Mon, 24 Mar 2025 09:00:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ccc3c6b-5b89-4793-b420-4853d7611341</guid><dc:creator>omerBzkrt</dc:creator><description>&lt;p&gt;Thanks for your reply Hung Bui,&lt;br /&gt;This is the result that I gave from one of the AI tools. According to this table, there are two options for creating my project based on my requirements. So you answered my question using the first option which is this one&amp;nbsp;&lt;strong data-start="114" data-end="164"&gt;Dual Peripheral Mode (One Connection to Phone).&amp;nbsp;&lt;/strong&gt;So now I am wondering if there are any examples of the second option which is&amp;nbsp;&lt;strong data-start="167" data-end="232"&gt;Independent Connections (TWS-Style, Two Connections to Phone).&amp;nbsp;&lt;/strong&gt;&lt;span&gt;If so, which examples should I review? &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for your reply.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;table data-start="84" data-end="1412"&gt;
&lt;thead data-start="84" data-end="234"&gt;
&lt;tr data-start="84" data-end="234"&gt;
&lt;th data-start="84" data-end="112"&gt;&lt;strong data-start="86" data-end="97"&gt;Feature&lt;/strong&gt;&lt;/th&gt;
&lt;th data-start="112" data-end="165"&gt;&lt;strong data-start="114" data-end="164"&gt;Dual Peripheral Mode (One Connection to Phone)&lt;/strong&gt;&lt;/th&gt;
&lt;th data-start="165" data-end="234"&gt;&lt;strong data-start="167" data-end="232"&gt;Independent Connections (TWS-Style, Two Connections to Phone)&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody data-start="366" data-end="1412"&gt;
&lt;tr data-start="366" data-end="500"&gt;
&lt;td&gt;&lt;strong data-start="368" data-end="389"&gt;Phone Connections&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;1 BLE connection (Primary forwards Secondary data)&lt;/td&gt;
&lt;td&gt;2 BLE connections (Each nRF52 connects directly)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr data-start="501" data-end="626"&gt;
&lt;td&gt;&lt;strong data-start="503" data-end="522"&gt;Synchronization&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Easier (Primary syncs Secondary before sending)&lt;/td&gt;
&lt;td&gt;Harder (Phone must handle desync issues)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr data-start="627" data-end="746"&gt;
&lt;td&gt;&lt;strong data-start="629" data-end="640"&gt;Latency&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Slightly higher (due to forwarding)&lt;/td&gt;
&lt;td&gt;Lower (direct phone communication)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr data-start="747" data-end="864"&gt;
&lt;td&gt;&lt;strong data-start="749" data-end="764"&gt;Scalability&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;More complex to add extra devices&lt;/td&gt;
&lt;td&gt;Easier to extend to more devices&lt;/td&gt;
&lt;/tr&gt;
&lt;tr data-start="865" data-end="993"&gt;
&lt;td&gt;&lt;strong data-start="867" data-end="888"&gt;Power Consumption&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Lower (only 1 device actively connected to phone)&lt;/td&gt;
&lt;td&gt;Higher (both devices maintain a connection)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr data-start="994" data-end="1132"&gt;
&lt;td&gt;&lt;strong data-start="996" data-end="1010"&gt;Robustness&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;More reliable (only 1 phone connection)&lt;/td&gt;
&lt;td&gt;Potential instability (phone handles two connections)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr data-start="1133" data-end="1273"&gt;
&lt;td&gt;&lt;strong data-start="1135" data-end="1152"&gt;BLE Bandwidth&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;More efficient (1 connection uses less BLE bandwidth)&lt;/td&gt;
&lt;td&gt;Higher BLE bandwidth usage (two active connections)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr data-start="1274" data-end="1412"&gt;
&lt;td&gt;&lt;strong data-start="1276" data-end="1305"&gt;Implementation Complexity&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;More complex (requires BLE Peripheral + Central roles)&lt;/td&gt;
&lt;td&gt;Simpler (both act as independent peripherals)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div id="gtx-trans" style="left:250px;position:absolute;top:50px;"&gt;
&lt;div class="gtx-trans-icon"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring BLE on nRF52 using modern TWS mechanism</title><link>https://devzone.nordicsemi.com/thread/527781?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 08:55:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e84d402a-245d-4aba-9a05-e3148dbb5bc6</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Omer,&amp;nbsp;&lt;/p&gt;
[quote user="omerBzkrt"]But I also try to make independent connections via Bluetooth.&amp;nbsp;I want the phone or PC to be connected to the devices separately. Just like in modern TWS headphones. Can I integrate this? Does it allow such a configuration? If so, which examples should I review?[/quote]
&lt;p&gt;Please elaborate more on what you want on this.&amp;nbsp;&lt;br /&gt;So you want the possibility of connect to either of the device and then can request data from the other device, correct ? I think it&amp;#39;s possible. You will need both device can act as central + peripheral and they can share data between each other.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring BLE on nRF52 using modern TWS mechanism</title><link>https://devzone.nordicsemi.com/thread/527765?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 08:10:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa1dd2ee-a0d0-4926-9730-7f45a102938b</guid><dc:creator>Janiya Marks</dc:creator><description>&lt;p&gt;Hello, I am also using and have an idea to develop according to NRF Connect SDK, but during use I often encounter errors. I have read your article but have not found the desired answer. Are you willing to help me?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring BLE on nRF52 using modern TWS mechanism</title><link>https://devzone.nordicsemi.com/thread/527756?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 07:16:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1213ef1b-906a-4819-9035-3b0ad7edf64a</guid><dc:creator>omerBzkrt</dc:creator><description>&lt;p&gt;Hi Hung Bui,&lt;/p&gt;
&lt;p&gt;Thanks for your reply. I am using nRF5 SDK. Thanks for your advice. The working mechanism of this configuration is like master-slave right? One of them will be the slave and send data to the master device and the master device will communicate with a PC or phone. I will try this configuration.&lt;/p&gt;
&lt;p&gt;But I also try to make independent connections via Bluetooth.&amp;nbsp;I want the phone or PC to be connected to the devices separately. Just like in modern TWS headphones. Can I integrate this? Does it allow such a configuration? If so, which examples should I review?&lt;/p&gt;
&lt;p&gt;Again thanks for your reply. Have a great day.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring BLE on nRF52 using modern TWS mechanism</title><link>https://devzone.nordicsemi.com/thread/527650?ContentTypeID=1</link><pubDate>Mon, 17 Mar 2025 13:40:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecb19a2b-a81f-4be7-9f5b-085606dfa356</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Omer,&amp;nbsp;&lt;br /&gt;Could you let me know which SDK you are using ?&lt;br /&gt;If you are using nRF Connect SDK you can take a look here:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.0/page/nrf/samples/bluetooth/central_and_peripheral_hr/README.html"&gt;https://docs.nordicsemi.com/bundle/ncs-2.9.0/page/nrf/samples/bluetooth/central_and_peripheral_hr/README.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you are using nRF5 SDK please look at&amp;nbsp;\examples\ble_central_and_peripheral\experimental\ble_app_hrs_rscs_relay&lt;br /&gt;&lt;br /&gt;The way is work is that the relay device will act as both peripheral and central. It will collect data from the&amp;nbsp;extra peer as the central . Then it will deliver the data to the phone as the peripheral to the phone.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>