<?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>How to tell a peripheral to switch to central mode and connect to another specific peripheral?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40445/how-to-tell-a-peripheral-to-switch-to-central-mode-and-connect-to-another-specific-peripheral</link><description>Hello, 
 I&amp;#39;m not posting this as a problem, but rather to get some suggestions and ideas about this feature. I have a device based on the NRF52832. It is meant to work as a peripheral, but now I want to extend its features by connecting to other peripherals</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 15 Nov 2018 15:41:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40445/how-to-tell-a-peripheral-to-switch-to-central-mode-and-connect-to-another-specific-peripheral" /><item><title>RE: How to tell a peripheral to switch to central mode and connect to another specific peripheral?</title><link>https://devzone.nordicsemi.com/thread/157572?ContentTypeID=1</link><pubDate>Thu, 15 Nov 2018 15:41:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81b7323c-b9af-407c-a26c-219f773c15ad</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;See &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/40445/how-to-tell-a-peripheral-to-switch-to-central-mode-and-connect-to-another-specific-peripheral/157565#157565"&gt;comment &lt;/a&gt;about having the nRF doing the scanning ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to tell a peripheral to switch to central mode and connect to another specific peripheral?</title><link>https://devzone.nordicsemi.com/thread/157571?ContentTypeID=1</link><pubDate>Thu, 15 Nov 2018 15:31:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f08aed3-9f1e-47ca-a976-d2a3c2dc5452</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;Yeah, again, I thought about sending the MAC address from my device to the app, but then it is useless on iOS since the phone can&amp;#39;t match it to anything. And it&amp;#39;s not like showing the MAC address is either useful or user friendly anyway.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to tell a peripheral to switch to central mode and connect to another specific peripheral?</title><link>https://devzone.nordicsemi.com/thread/157565?ContentTypeID=1</link><pubDate>Thu, 15 Nov 2018 15:05:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74858384-2f48-47c5-871c-a03d32798785</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Note that an nRF52832 can&amp;nbsp;have both a peripheral connection (to your app) and also be scanning at the same time - so it could all be done in your &amp;quot;peripheral&amp;quot;, and just &amp;quot;directed&amp;quot; from the phone app...&lt;/p&gt;
&lt;p&gt;Then you have no problems with iOS hiding MAC addresses from you, etc!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to tell a peripheral to switch to central mode and connect to another specific peripheral?</title><link>https://devzone.nordicsemi.com/thread/157558?ContentTypeID=1</link><pubDate>Thu, 15 Nov 2018 14:52:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:108e5253-d905-4606-ad33-cf1790d2084b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;1 and 2 will not be possible for a 3rd party device. The RSSI part should be easy to do in the app.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to tell a peripheral to switch to central mode and connect to another specific peripheral?</title><link>https://devzone.nordicsemi.com/thread/157554?ContentTypeID=1</link><pubDate>Thu, 15 Nov 2018 14:42:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:880fb42d-0a80-4179-9e34-e9845ac175fb</guid><dc:creator>awneil</dc:creator><description>[quote userid="15909" url="~/f/nordic-q-a/40445/how-to-tell-a-peripheral-to-switch-to-central-mode-and-connect-to-another-specific-peripheral/157168"] it&amp;#39;s not like the user will see 0x53af2043bd or whatever and then say yeah that&amp;#39;s my device.[/quote]
&lt;p&gt;If you&amp;#39;re (very?) lucky, the MAC address &lt;em&gt;might&lt;/em&gt; be printed on the unit or its packaging or documentation.&lt;/p&gt;
&lt;p&gt;But, in general, you&amp;#39;re probably right - it&amp;#39;s not meaningful to the user.&lt;/p&gt;
&lt;p&gt;But it &lt;em&gt;&lt;strong&gt;is&lt;/strong&gt; &lt;/em&gt;meaningful to the nRF - so you can use it to distinguish devices &lt;em&gt;to the nRF&lt;/em&gt;. And the nRF can give it to the app.&lt;/p&gt;
&lt;p&gt;So you&amp;#39;d probably still need some guided user interaction at the app for the user to identify which peripheral is which.&lt;/p&gt;
&lt;p&gt;Yes, you still have troubles with the iOS restrictions.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But it&amp;#39;s your project. I don&amp;#39;t know the (full) details of what you&amp;#39;re trying to achieve or why. I&amp;#39;m just throwing you some ideas - you need to think it all through.&lt;/p&gt;
&lt;p&gt;PM me if you want to discuss private consultancy...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to tell a peripheral to switch to central mode and connect to another specific peripheral?</title><link>https://devzone.nordicsemi.com/thread/157536?ContentTypeID=1</link><pubDate>Thu, 15 Nov 2018 14:07:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5dec7c5b-0d89-4e0e-b5eb-43aa95912282</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure if I will have control of these things in 3rd-party devices. I have thought about the RSSI to at least differentiate similar devices, but I think I will pass the issue to the user so that he&amp;#39;s responsible for turning off conflicting devices.&lt;/p&gt;
&lt;p&gt;I think in the end I&amp;#39;ll just send the advertised name from the phone to my device and I&amp;#39;ll use it in the device to scan and connect to a 3rd device with a matching name.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to tell a peripheral to switch to central mode and connect to another specific peripheral?</title><link>https://devzone.nordicsemi.com/thread/157526?ContentTypeID=1</link><pubDate>Thu, 15 Nov 2018 13:40:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a922ee0f-d2ab-42aa-8f6a-9ecf99d181ed</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I have some general suggestions that you may consider.&amp;nbsp; Some of these assumes you have control of the GPS receiver implementation, not sure if that&amp;#39;s the case or not.&lt;/p&gt;
&lt;p&gt;1. Include a unique service uuid in the advertisement packet for the GPS receiver so only relevant devices are displayed to user&lt;/p&gt;
&lt;p&gt;2. Append a unique number to the device name. Part of the mac address for instance.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;3. Include measured RSSI along with device name&amp;nbsp;&lt;/p&gt;
&lt;p&gt;4. Scan and select device to connect from the phone, then send a command to the peripheral telling it what device to connect to.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to tell a peripheral to switch to central mode and connect to another specific peripheral?</title><link>https://devzone.nordicsemi.com/thread/157282?ContentTypeID=1</link><pubDate>Wed, 14 Nov 2018 12:11:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20836c53-70a0-4b84-9d06-4d202abded40</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;There are some workarounds when dealing with other peripherals on the same device, but not across different devices. Apple has some sort of MAC address or UUID that&amp;#39;s unique for each peripheral the phone is dealing with. But this UUID is different on every phone, and it has nothing to do with the actual MAC address of the device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to tell a peripheral to switch to central mode and connect to another specific peripheral?</title><link>https://devzone.nordicsemi.com/thread/157277?ContentTypeID=1</link><pubDate>Wed, 14 Nov 2018 12:06:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:283f335c-391d-4117-a605-ffb0432b5247</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Apple making life difficult again!&lt;br /&gt;&lt;br /&gt;I know nothing about iOS development, but I&amp;#39;ve heard there may be &amp;quot;workarounds&amp;quot; to get BLE MAC addresses - so it might be worth searching around some iOS developer forums ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to tell a peripheral to switch to central mode and connect to another specific peripheral?</title><link>https://devzone.nordicsemi.com/thread/157274?ContentTypeID=1</link><pubDate>Wed, 14 Nov 2018 12:00:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9555df7b-0f76-4673-b647-c7de755409db</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;Oh I get it. Sorry&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to tell a peripheral to switch to central mode and connect to another specific peripheral?</title><link>https://devzone.nordicsemi.com/thread/157273?ContentTypeID=1</link><pubDate>Wed, 14 Nov 2018 11:59:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8454e455-5ca5-423c-998c-df6dccf72f3d</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;like I said, you&amp;#39;d have to get your device to send&amp;nbsp;&lt;span&gt;a list of MAC+Name pairs to the app...&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to tell a peripheral to switch to central mode and connect to another specific peripheral?</title><link>https://devzone.nordicsemi.com/thread/157270?ContentTypeID=1</link><pubDate>Wed, 14 Nov 2018 11:37:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53a13e53-7c60-4b5c-aa69-dc88cea304a3</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;But the problem is that I can&amp;#39;t tell the MAC address in iOS&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to tell a peripheral to switch to central mode and connect to another specific peripheral?</title><link>https://devzone.nordicsemi.com/thread/157268?ContentTypeID=1</link><pubDate>Wed, 14 Nov 2018 11:21:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d34c5c9-41a9-4c78-8a09-f63b3c9aec6a</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Correct.&lt;/p&gt;
&lt;p&gt;But, once your app has identified which device is which, it can tell your device the appropriate MAC address.&lt;/p&gt;
&lt;p&gt;Or, back to the earlier suggestion, your device sends a list of MAC+Name pairs to the app...&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="15909" url="~/f/nordic-q-a/40445/how-to-tell-a-peripheral-to-switch-to-central-mode-and-connect-to-another-specific-peripheral/157264"]Maybe I should just ask the user in the app to turn off conflicting devices[/quote]
&lt;p&gt;Well, if the devices can&amp;#39;t be distinguished by their names (which seems common), then you&amp;#39;re going to have to work out some plan for how to distinguish them - maybe by the app telling the user to switch only one on at a time...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to tell a peripheral to switch to central mode and connect to another specific peripheral?</title><link>https://devzone.nordicsemi.com/thread/157264?ContentTypeID=1</link><pubDate>Wed, 14 Nov 2018 11:15:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3549de2-9990-40e8-b556-0e8d6aa94524</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;Maybe I should just ask the user in the app to turn off conflicting devices and that&amp;#39;s it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to tell a peripheral to switch to central mode and connect to another specific peripheral?</title><link>https://devzone.nordicsemi.com/thread/157263?ContentTypeID=1</link><pubDate>Wed, 14 Nov 2018 11:14:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61a0d52a-0990-4ed5-a845-d0c4edf0994f</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;They&amp;#39;re 3rd-party devices. But still, let&amp;#39;s say that there are two devices advertising the name &amp;quot;GPS&amp;quot;. Even if I filter out one of them, if I tell my device to go to central mode and connect to &amp;quot;GPS&amp;quot;, there&amp;#39;s no way to guarantee that the device will connect to the same &amp;quot;GPS&amp;quot; that was on the list. Right?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to tell a peripheral to switch to central mode and connect to another specific peripheral?</title><link>https://devzone.nordicsemi.com/thread/157182?ContentTypeID=1</link><pubDate>Tue, 13 Nov 2018 19:26:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb2a5f65-d83c-4a8c-9f39-5b1805588696</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Yeah - that&amp;#39;s the catch.&lt;/p&gt;
&lt;p&gt;Are they 3rd-party devices?&lt;/p&gt;
&lt;p&gt;If they were your own devices, perhaps you could incorporate some &amp;quot;unique ID&amp;quot; into the advertising name?&lt;/p&gt;
&lt;p&gt;Otherwise you&amp;#39;re just going to have to ensure that only 1 of each type is &amp;quot;visible&amp;quot; at a time...&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to tell a peripheral to switch to central mode and connect to another specific peripheral?</title><link>https://devzone.nordicsemi.com/thread/157181?ContentTypeID=1</link><pubDate>Tue, 13 Nov 2018 19:07:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:528927f2-56d0-4a9b-9f34-82f571b3e62a</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;Yeah I thought so too, but I can&amp;#39;t guarantee that all devices will have different advertising names&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to tell a peripheral to switch to central mode and connect to another specific peripheral?</title><link>https://devzone.nordicsemi.com/thread/157171?ContentTypeID=1</link><pubDate>Tue, 13 Nov 2018 17:16:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a8fe892-6d67-4c83-b2cc-ab6b619185c0</guid><dc:creator>awneil</dc:creator><description>[quote userid="15909" url="~/f/nordic-q-a/40445/how-to-tell-a-peripheral-to-switch-to-central-mode-and-connect-to-another-specific-peripheral"]My initial idea is that the app should scan for devices, then the user would choose one [/quote]
&lt;p&gt;So how did you envisage that the user would distinguish devices in that scenario?&lt;/p&gt;
&lt;p&gt;Were you assuming that they would have different advertising names?&lt;/p&gt;
&lt;p&gt;In that case, have the app tell the nRF which advertising name to connect to ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to tell a peripheral to switch to central mode and connect to another specific peripheral?</title><link>https://devzone.nordicsemi.com/thread/157168?ContentTypeID=1</link><pubDate>Tue, 13 Nov 2018 16:48:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c0637f7-6eee-466e-ac55-b5dfb112aa57</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;But I still don&amp;#39;t understand how to use that MAC address on the phone. I mean, it&amp;#39;s not like the user will see 0x53af2043bd or whatever and then say yeah that&amp;#39;s my device. Since the iOS app does not have access to the MAC address, it wouldn&amp;#39;t know how to match the addresses to the devices the iOS app is scanning for&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to tell a peripheral to switch to central mode and connect to another specific peripheral?</title><link>https://devzone.nordicsemi.com/thread/157166?ContentTypeID=1</link><pubDate>Tue, 13 Nov 2018 16:40:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1206c926-0870-4f6e-84a4-e63c997d1e97</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;sounds like a plan ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to tell a peripheral to switch to central mode and connect to another specific peripheral?</title><link>https://devzone.nordicsemi.com/thread/157164?ContentTypeID=1</link><pubDate>Tue, 13 Nov 2018 16:25:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40d4a5c8-af28-41a2-9379-c102482eb9f9</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;So I could scan all devices with the nRF, pass the MAC addresses to the phone and let the user choose one?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to tell a peripheral to switch to central mode and connect to another specific peripheral?</title><link>https://devzone.nordicsemi.com/thread/157163?ContentTypeID=1</link><pubDate>Tue, 13 Nov 2018 16:21:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f73b1b9f-b4a0-4210-91f5-572bcedd6e1d</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Android gives it; iOS doesn&amp;#39;t.&lt;/p&gt;
&lt;p&gt;If you had your nRF do the scanning, it would see it - and could pass it on to the app ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to tell a peripheral to switch to central mode and connect to another specific peripheral?</title><link>https://devzone.nordicsemi.com/thread/157161?ContentTypeID=1</link><pubDate>Tue, 13 Nov 2018 16:13:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:208889da-1f47-4c9b-b1b0-675a33d88fbd</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;Moreover, do iOS and Android have access to this information? I believe iOS restricts access to the MAC address but I&amp;#39;m not 100% sure about this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to tell a peripheral to switch to central mode and connect to another specific peripheral?</title><link>https://devzone.nordicsemi.com/thread/157160?ContentTypeID=1</link><pubDate>Tue, 13 Nov 2018 16:12:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:685fead9-e08f-4fc7-8375-7ad8f87cf421</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;Can I have access to that information without actually connecting to the device? Imagine a situation where I choose one device out of 50 in range. Can I determine the MAC address of a device just by scanning the advertisement packets?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to tell a peripheral to switch to central mode and connect to another specific peripheral?</title><link>https://devzone.nordicsemi.com/thread/157159?ContentTypeID=1</link><pubDate>Tue, 13 Nov 2018 16:03:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afa47461-fcc2-4f44-8391-9a9d249344e2</guid><dc:creator>awneil</dc:creator><description>[quote userid="15909" url="~/f/nordic-q-a/40445/how-to-tell-a-peripheral-to-switch-to-central-mode-and-connect-to-another-specific-peripheral"]What would be a good way to identify the same device in both the app and the device?[/quote]
&lt;p&gt;MAC address?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>