<?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>Connect to closest Central</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52972/connect-to-closest-central</link><description>Hi, 
 Let&amp;#39;s say I have 2 nrf52 Centrals in a room , now - I&amp;#39;m adding a peripheral and I&amp;#39;d like it to connect to the central with the better RSSI ( out of the 2 ) 
 My idea involves role switching and seems pretty complicated. 
 
 Thanks, 
 Ran</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Oct 2019 10:20:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52972/connect-to-closest-central" /><item><title>RE: Connect to closest Central</title><link>https://devzone.nordicsemi.com/thread/214117?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2019 10:20:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ddeae47e-be44-4d20-9afa-246098db5c68</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;So that&amp;#39;s your design decision - not a requirement or restriction of using a mesh.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect to closest Central</title><link>https://devzone.nordicsemi.com/thread/214109?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2019 10:12:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afd40dad-5982-46ec-b5fe-e341817a02b4</guid><dc:creator>ran</dc:creator><description>&lt;p&gt;&lt;span&gt;&amp;quot; I will need to connect to each one of the nodes from a mobile phone and set\get configuration&amp;quot; - this is regardless of Mesh but operational , for example elec. meter S\N and initial reading .&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This is per meter configuration and will have to be done using Tech, App running on iOS\Android&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect to closest Central</title><link>https://devzone.nordicsemi.com/thread/214107?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2019 10:09:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6458f92-b05f-42f7-9308-974d14607de1</guid><dc:creator>awneil</dc:creator><description>[quote userid="75383" url="~/f/nordic-q-a/52972/connect-to-closest-central/213997"]So , If I&amp;#39;ll be using Mesh , I will have to define a gateway that all nodes &amp;quot;publish&amp;quot; to him ?[/quote]
&lt;p&gt;Yes - that is a standard concept in meshes&lt;/p&gt;
[quote userid="75383" url="~/f/nordic-q-a/52972/connect-to-closest-central/213997"]&amp;nbsp; I will need to connect to each one of the nodes from a mobile phone and set\get configuration[/quote]
&lt;p&gt;Not necessarily.&lt;/p&gt;
&lt;p&gt;You can provision over the mesh - again,&amp;nbsp;&lt;span&gt;a standard concept in meshes&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect to closest Central</title><link>https://devzone.nordicsemi.com/thread/213997?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 18:00:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ccee948-5ea1-4d97-88af-966773e72abe</guid><dc:creator>ran</dc:creator><description>&lt;p&gt;Just to complete the picture - the metering data goes up to the cloud. In the installation I&amp;#39;ve described - the star central is equipped with LTE modem . ( gateway )&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So , If I&amp;#39;ll be using Mesh , I will have to define a gateway that all nodes &amp;quot;publish&amp;quot; to him ?&lt;/p&gt;
&lt;p&gt;Also -&amp;nbsp; I will need to connect to each one of the nodes from a mobile phone and set\get configuration&lt;/p&gt;
&lt;p&gt;(probably over NUS ) , will that be a problem ?&lt;/p&gt;
&lt;p&gt;(I see that in latest mesh sdk, proxy node was remove from lightning client, available only on server ).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect to closest Central</title><link>https://devzone.nordicsemi.com/thread/213995?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 17:11:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac7f8843-1091-4c5a-a66a-bdd00cd5c8fb</guid><dc:creator>awneil</dc:creator><description>[quote userid="75383" url="~/f/nordic-q-a/52972/connect-to-closest-central/213991"]Mesh provisioning of a new device seems pretty complicated last time I&amp;#39;ve tried it[/quote]
&lt;p&gt;Are you thinking of the Nordic demo?&lt;/p&gt;
&lt;p&gt;That is, of course, just a manual demo - you wouldn&amp;#39;t do it that way for a real project!&lt;/p&gt;
[quote userid="75383" url="~/f/nordic-q-a/52972/connect-to-closest-central/213992"]Mesh does not support Coded PHY&amp;nbsp; ( at least officially ) [/quote]
&lt;p&gt;That&amp;#39;s true,&amp;nbsp; but your alternative is entirely proprietary anyhow - so that shouldn&amp;#39;t be an issue.&lt;/p&gt;
[quote userid="75383" url="~/f/nordic-q-a/52972/connect-to-closest-central/213991"]Boss man wants this fast[/quote]
&lt;p&gt;Don&amp;#39;t they always.&lt;/p&gt;
&lt;p&gt;The trouble is, you are basically re-inventing (a lot of) what a mesh already does for you - so, while you might come up with something that &amp;quot;works&amp;quot; in a basic case in the lab, transferring that to a fully reliable deployment in the field and covering all corner cases is a whole different ballpark ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect to closest Central</title><link>https://devzone.nordicsemi.com/thread/213992?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 16:42:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70326479-54bc-4968-8434-172dcd17ed48</guid><dc:creator>ran</dc:creator><description>&lt;p&gt;Oh...also - key consideration.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Mesh does not support Coded PHY&amp;nbsp; ( at least officially ) - which might be needed for more rural environment.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect to closest Central</title><link>https://devzone.nordicsemi.com/thread/213991?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 16:42:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f74d7b4-7d8e-490f-84f1-851a8ee75f23</guid><dc:creator>ran</dc:creator><description>&lt;p&gt;About Mesh - Understood, I&amp;#39;ve been struggling with this for a while.&lt;/p&gt;
&lt;p&gt;This is why I&amp;#39;m thinking a star will be better for this case :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. The requirement is that an installation of a new peripheral will be EASY. Mesh provisioning of a new device seems pretty complicated last time I&amp;#39;ve tried it.&amp;nbsp; Installation is done by Electricians.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. This installation can be transferred to a battery operated environment, where I will have to add powered Friend-Nodes .&lt;/p&gt;
&lt;p&gt;3. I hope I&amp;#39;m wrong, but the whole BLE mesh looks like it is meant at this stage for lightning projects.&lt;/p&gt;
&lt;p&gt;4. Learning curve for Mesh ....Boss man wants this fast :)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect to closest Central</title><link>https://devzone.nordicsemi.com/thread/213982?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 15:48:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0f1383b-e44a-455c-b0ff-76fd5579bf8b</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Indeed - sounds like exactly the kind of thing Meshes were invented for!&lt;/p&gt;
&lt;p&gt;and then you&amp;#39;re not limited to there being just 2 &amp;quot;stars&amp;quot;, or 2 Centrals in range, or ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect to closest Central</title><link>https://devzone.nordicsemi.com/thread/213979?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 15:19:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b44ee6e-5939-4786-9191-1139ff6fc3c0</guid><dc:creator>Mojo</dc:creator><description>&lt;p&gt;I think a bluetooth mesh network would be a better choice for this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect to closest Central</title><link>https://devzone.nordicsemi.com/thread/213978?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 15:14:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8448055d-890c-46b5-88ef-4c9bb771bee1</guid><dc:creator>ran</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Imagine 2 stars ( central connected to 4 peripherals ) .&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Those 2 stars can overlap.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;d like to add another peripheral to the 1st star. Both Central are in range, one will be further away.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So - I need the peripheral to automatically &amp;quot;choose&amp;quot; which central should connect to him.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is for electricity meters monitoring in a building&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect to closest Central</title><link>https://devzone.nordicsemi.com/thread/213973?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 14:46:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb5f10ae-87f2-4002-9260-68ea931bf619</guid><dc:creator>Mojo</dc:creator><description>&lt;p&gt;Any particular reason why you need this complication ? &amp;nbsp;Why not just reverse it. &amp;nbsp;2 periph instead of 2 centrals, and the centra (instead of periph) &amp;nbsp;decides which periph to connect to ? Wouldn&amp;#39;t that be simpler ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect to closest Central</title><link>https://devzone.nordicsemi.com/thread/213963?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 14:15:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9bcd2b8-bf14-4951-b967-3863f7189b07</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;OK: so instead of the original proposal, where the Centrals decide between them before making any connection, you&amp;#39;re now going to have the Peripheral connect to &lt;em&gt;&lt;strong&gt;all&lt;/strong&gt; &lt;/em&gt;Centrals, and then decide which connection to keep?&lt;/p&gt;
&lt;p&gt;Which should achieve the same end.&lt;/p&gt;
&lt;p&gt;The only slight downside is that it means more &amp;quot;intelligence&amp;quot; in the Peripherals - which is usually the most-constrained device.&lt;/p&gt;
&lt;p&gt;It also means more radio traffic.&lt;/p&gt;
&lt;p&gt;But these things may not matter in your use case.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/1134._5F00_Verify_2D00_answer_2D00_nordic_5F00_2.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect to closest Central</title><link>https://devzone.nordicsemi.com/thread/213960?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 14:07:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98b1c7d0-a7b7-49fb-9fcd-78a3ba67dfe9</guid><dc:creator>ran</dc:creator><description>&lt;p&gt;Since I have my peripheral connected to 2 centrals now, I can get the rssi of the connections , and then decide which connection I should drop.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t think a peripheral can be connected to more then 1 central until today :)&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect to closest Central</title><link>https://devzone.nordicsemi.com/thread/213954?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 13:55:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:564cd600-3a80-42b3-a2f1-cddbc7a3b25c</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;That helps you with obtaining the RSSI value at&amp;nbsp;each Central separately.&lt;/p&gt;
&lt;p&gt;It doesn&amp;#39;t help you with how one Central knows the RSSI at the other.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect to closest Central</title><link>https://devzone.nordicsemi.com/thread/213950?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 13:46:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5512906-12ac-48bb-92d7-231cf57d4b32</guid><dc:creator>ran</dc:creator><description>&lt;p&gt;I guess I can try this&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/38457/can-a-peripheral-device-know-the-rssi-for-a-connected-central/148512#148512"&gt;Peripheral-Central RSSI&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect to closest Central</title><link>https://devzone.nordicsemi.com/thread/213847?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 10:20:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3eb315cb-143a-4471-b438-184c9971c820</guid><dc:creator>awneil</dc:creator><description>[quote userid="75383" url="~/f/nordic-q-a/52972/connect-to-closest-central/213835"]&amp;quot;So you will need some kind of communication between the 2 Centrals ...&amp;quot; - this means that one is a central and the other one is a peripheral[/quote]
&lt;p&gt;Not necessarily.&lt;/p&gt;
&lt;p&gt;You might have non-BLE comms between them.&lt;/p&gt;
&lt;p&gt;If it&amp;#39;s BLE comms, use a SoftDevice which supports both Central &amp;amp; Peripheral&amp;nbsp;simultaneously.&lt;/p&gt;
[quote userid="75383" url="~/f/nordic-q-a/52972/connect-to-closest-central/213835"]roll switching[/quote]
&lt;p&gt;* role&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect to closest Central</title><link>https://devzone.nordicsemi.com/thread/213835?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 09:40:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09b34399-e916-44c7-b672-8f2378817bcf</guid><dc:creator>ran</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/awneil"&gt;awneil&lt;/a&gt;&amp;nbsp;- Comment accepted - I&amp;#39;ve modified the question.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I understand that the central initiate the connection - this is why this is a challenge .&lt;/p&gt;
&lt;p&gt;As you&amp;#39;ve mentioned&lt;/p&gt;
&lt;p&gt;&amp;quot;So you will need some kind of communication between the 2 Centrals ...&amp;quot; - this means that one is a central and the other one is a peripheral , hence the role switching .&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class="quote-header"&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect to closest Central</title><link>https://devzone.nordicsemi.com/thread/213698?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2019 14:14:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12875193-757a-4bdf-b435-98280a36a14a</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Also note that RSSI gives only a &lt;em&gt;&lt;strong&gt;very&lt;/strong&gt; &lt;/em&gt;course indication of distance - especially in an enclosed area like a room!&lt;/p&gt;
&lt;p&gt;See numerous previous forum discussions!&lt;/p&gt;
&lt;p&gt;The strongest RSSI may not necessarily be the closest!&lt;/p&gt;
&lt;p&gt;So probably best if you just say, &amp;quot;strongest RSSI&amp;quot; - and don&amp;#39;t mention distance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect to closest Central</title><link>https://devzone.nordicsemi.com/thread/213697?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2019 14:11:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74816e36-d56a-42be-afef-c82e8cd1f27d</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;It is the Central which initiates the connection.&lt;/p&gt;
&lt;p&gt;Therefore, if only the &amp;quot;nearest&amp;quot; &lt;em&gt;(sic)&lt;/em&gt; Central is going to connect, then each Central will need to know the RSSI of the Peripheral at the other Central.&lt;/p&gt;
&lt;p&gt;So you will need some kind of communication between the 2 Centrals ...&lt;/p&gt;
[quote userid="75383" url="~/f/nordic-q-a/52972/connect-to-closest-central"]My idea involves role switching[/quote]
&lt;p&gt;Does it - why ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>