<?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>Alternating between Central + Peripheral and Peripheral + Peripheral in a memory constrained environment</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111029/alternating-between-central-peripheral-and-peripheral-peripheral-in-a-memory-constrained-environment</link><description>I have an existing application that leverages a permanent Central and Peripheral role on the same device to communicate with other devices. 
 The application is quite memory constrained (I&amp;#39;ve been optimizing for dozens of bytes here and there for a little</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 May 2024 09:15:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111029/alternating-between-central-peripheral-and-peripheral-peripheral-in-a-memory-constrained-environment" /><item><title>RE: Alternating between Central + Peripheral and Peripheral + Peripheral in a memory constrained environment</title><link>https://devzone.nordicsemi.com/thread/482976?ContentTypeID=1</link><pubDate>Mon, 13 May 2024 09:15:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:284d733e-af05-43f2-97b6-957efdd9f00d</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;As the device has the control in exposing what capability it has, you can simply implement some logic to let it advertise and not scan when it is to serve as P2, or let it scan and not advertise when it is to serve as C.&lt;/p&gt;
&lt;p&gt;You can also reconfigure the SoftDevice with &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.2.0/group___b_l_e___c_o_m_m_o_n___f_u_n_c_t_i_o_n_s.html#ga4edae2bac8c68b672c0fa101ed2c687f"&gt;sd_ble_cfg_set()&lt;/a&gt;. However, because you are using so few connections, that isn&amp;#39;t required. It also doesn&amp;#39;t bring any benefit in your use case. Furthermore, its usage&amp;nbsp;is wrapped in &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/group__nrf__sdh.html"&gt;the SoftDevice handler library&lt;/a&gt;, so you need to understand how it is used there and make sure there is no conflicts.&amp;nbsp;Overall, just very little benefit, so I don&amp;#39;t recommend this approach.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Alternating between Central + Peripheral and Peripheral + Peripheral in a memory constrained environment</title><link>https://devzone.nordicsemi.com/thread/482873?ContentTypeID=1</link><pubDate>Fri, 10 May 2024 21:45:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28a09d31-aa3a-4192-bc94-8524744a45ec</guid><dc:creator>Kelso</dc:creator><description>&lt;p&gt;While I see that is possible (and I note that it uses less memory), it&amp;#39;s not clear to me how I&amp;#39;m supposed to manage the connections so only one of P2 or C are active, particularly while P1 is in use.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Alternating between Central + Peripheral and Peripheral + Peripheral in a memory constrained environment</title><link>https://devzone.nordicsemi.com/thread/482872?ContentTypeID=1</link><pubDate>Fri, 10 May 2024 21:29:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bcb7469-25f1-4db2-8081-869dce3e835d</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hello Kelso,&lt;/p&gt;
&lt;p&gt;It seems possible to reduce &lt;span&gt;NRF_SDH_BLE_TOTAL_LINK_COUNT&amp;nbsp;to 2, while still keeping the Peripheral Link Count at 2.&lt;/span&gt;&amp;nbsp;&lt;br /&gt;However, please let me double check with someone more familiar with the topic before giving you the final conclusion.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>