<?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>nrf52832 , switch central mode to peripheral mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52075/nrf52832-switch-central-mode-to-peripheral-mode</link><description>Hi, 
 I have to nrf52832 , s132 modules working as peripheral and central. 
 I would like to get an idea and input on how to change central mode to peripheral mode. 
 The purpose of my project is to fetch the advertising device RSSI (nrf52832- peripheral</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 Sep 2019 05:57:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52075/nrf52832-switch-central-mode-to-peripheral-mode" /><item><title>RE: nrf52832 , switch central mode to peripheral mode</title><link>https://devzone.nordicsemi.com/thread/210263?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2019 05:57:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc6621aa-4d1c-444d-b01c-a9c6ce360bbc</guid><dc:creator>guma</dc:creator><description>&lt;p&gt;I did go through relay example , let me know if i have understood it correctly.&lt;br /&gt;&lt;br /&gt;The connection parameters, scan parameters , for central to scan a peripheral and connect.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;The gap parameters and connection parameters are for peripheral to advertise and connect to central.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;So combining the two together, and checking &lt;span&gt;device&amp;nbsp;&lt;/span&gt;state if central or peripheral and their respective events.&lt;/p&gt;
&lt;p&gt;is what it refers to running both modes at the same time and there is no need to switch?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 , switch central mode to peripheral mode</title><link>https://devzone.nordicsemi.com/thread/210153?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2019 13:38:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90854d06-f266-49aa-8fa8-1179acaa9b53</guid><dc:creator>awneil</dc:creator><description>[quote userid="6462" url="~/f/nordic-q-a/52075/nrf52832-switch-central-mode-to-peripheral-mode/210143"]In that diagram, everything within the red box is running on a &lt;em&gt;&lt;strong&gt;single&lt;/strong&gt; &lt;/em&gt;nRF device - isn&amp;#39;t it[/quote]
&lt;p&gt;Like this?&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Drawing1.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 , switch central mode to peripheral mode</title><link>https://devzone.nordicsemi.com/thread/210143?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2019 13:16:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6448a2de-d0b6-472e-93cb-390bf9b8d169</guid><dc:creator>awneil</dc:creator><description>[quote userid="82507" url="~/f/nordic-q-a/52075/nrf52832-switch-central-mode-to-peripheral-mode/210136"]I am able to collect the RSSI values and transmit that data (the first half of the diagram on the left).[/quote]
&lt;p&gt;Now I&amp;#39;m lost again!&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1568726034522v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;In that diagram, everything within the red box is running on a &lt;em&gt;&lt;strong&gt;single&lt;/strong&gt; &lt;/em&gt;nRF device - isn&amp;#39;t it?&lt;/p&gt;
&lt;p&gt;If not, please provide a more complete diagram.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 , switch central mode to peripheral mode</title><link>https://devzone.nordicsemi.com/thread/210136?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2019 12:54:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3dbf6eda-5311-45b1-8edc-2143ac14e517</guid><dc:creator>guma</dc:creator><description>&lt;p&gt;I am able to collect the RSSI values and transmit that data (the first half of the diagram on the left).&lt;/p&gt;
&lt;p&gt;what i want to do now is i want hose obtained values to be sent over ble to another peripheral device.&lt;/p&gt;
&lt;p&gt;To do this i need to establish connection right?&lt;/p&gt;
&lt;p&gt;to get understand how i should proceed i tried to connect peripheral and central&amp;nbsp;using gap connection , scan parametrs and i am able to connect obtain nrf success with&amp;nbsp;&lt;span style="text-decoration:underline;"&gt;sd_ble_gap_connect .&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;i am connecting based on peer address.&lt;/p&gt;
&lt;p&gt;scan, get scan report, BLE_GAP_EVT_ADV_REPORT:,&amp;nbsp;i called sd_ble_gap_connect and when success fetched rssi. The connected state&amp;nbsp;BLE_GAP_EVT_CONNECTED, i don tget continuous.&lt;/p&gt;
&lt;p&gt;So is this the correct way to connect?&lt;/p&gt;
&lt;p&gt;how can i get continuously rssi values ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 , switch central mode to peripheral mode</title><link>https://devzone.nordicsemi.com/thread/210033?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2019 08:41:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74e21f74-1d30-4275-b711-7a10f546e6b7</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;As with any project, take it one step at a time:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Just Collect RSSI; store in an array (or whatever).&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Just&amp;nbsp;&lt;/span&gt;Transmit data - any data - from an array (or whatever).&lt;/li&gt;
&lt;li&gt;Combine the two.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 , switch central mode to peripheral mode</title><link>https://devzone.nordicsemi.com/thread/209968?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2019 05:10:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e1d5f9d-d8fb-499d-8e15-7c27fe06ed10</guid><dc:creator>guma</dc:creator><description>&lt;p&gt;yes thats correct.&lt;/p&gt;
&lt;p&gt;how can i implement that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 , switch central mode to peripheral mode</title><link>https://devzone.nordicsemi.com/thread/209867?ContentTypeID=1</link><pubDate>Mon, 16 Sep 2019 14:04:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f564843-05a2-442f-af96-eb47b933ef19</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;To clarify, your device is the bit within the red box:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1568642509023v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;yes?&lt;/p&gt;
&lt;p&gt;So what you have is&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&amp;quot; Central&amp;quot; part - collects RSSI data; stores it in suitable variables;&lt;/li&gt;
&lt;li&gt;&amp;quot;Peripheral&amp;quot; part - reads from those variables; sends the collected data on ...&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;yes?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 , switch central mode to peripheral mode</title><link>https://devzone.nordicsemi.com/thread/209743?ContentTypeID=1</link><pubDate>Mon, 16 Sep 2019 06:23:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:871a2949-4e19-4411-9050-71446879bfa9</guid><dc:creator>guma</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1568614531415v1.png" alt=" " /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This&amp;nbsp;is what trying to achieve.&lt;br /&gt;&lt;br /&gt;Device 1:&amp;nbsp;&lt;span&gt;in the broadcaster role. This is the device advertising.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Device 2 :&amp;nbsp;&lt;span&gt;in the broadcaster role. This is the device advertising.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Central :Scanning and getting RSSI (as of now this is just as observer)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Another peripheral : have to establish connection with that central and get the RSSI values and publish to know &lt;span style="font-size:12px;"&gt;which&lt;/span&gt;&amp;nbsp;device is &lt;span style="font-size:12px;"&gt;nearer to&lt;/span&gt;&amp;nbsp;central.(something like having the advertising devices on the assets and then tracking them ).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I hope i am a bit more clear&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 , switch central mode to peripheral mode</title><link>https://devzone.nordicsemi.com/thread/209567?ContentTypeID=1</link><pubDate>Fri, 13 Sep 2019 09:16:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:917842e6-9ff5-41c7-9d2f-69ed9ae202bc</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;This kind of thing is really hard to explain in words - especially when there&amp;#39;s also a language barrier!&lt;/p&gt;
&lt;p&gt;I think&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/guma"&gt;guma&lt;/a&gt;&amp;nbsp;needs to provide a&amp;nbsp;&lt;strong&gt;diagram&lt;/strong&gt; illustrating the requirement.&lt;/p&gt;
&lt;p&gt;This is from the Relay example that I mentioned earlier:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/relay_example.svg" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So, in&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/tesc"&gt;tesc&lt;/a&gt;&amp;#39;s post,&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;&amp;#39;Device A&amp;#39; would be the &amp;#39;Peripherals&amp;#39;;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&amp;#39;Device B&amp;#39; would be the &amp;#39;Relay&amp;#39; - which would be&amp;nbsp;&lt;/span&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/members/guma"&gt;guma&lt;/a&gt;&amp;#39;s device;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&amp;#39;Device C&amp;#39; would be the &amp;#39;Central&amp;#39;.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 , switch central mode to peripheral mode</title><link>https://devzone.nordicsemi.com/thread/209565?ContentTypeID=1</link><pubDate>Fri, 13 Sep 2019 09:10:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ce15c73-7a15-48e0-a74b-0232784e48a6</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Is the following what you are looking for?&lt;/p&gt;
&lt;p&gt;Device A, in the broadcaster role. This is the device advertising.&lt;/p&gt;
&lt;p&gt;Device B, combining the observer and peripheral roles. This is the device listening to the advertisements to determine RSSI, which it then sends over a BLE link to device C.&lt;/p&gt;
&lt;p&gt;Device C, in central role. This is the device receiving the RSSI reports. (The reports describe the signal strength of Device A when received by Device B.)&lt;/p&gt;
&lt;p&gt;S132 lets you run roles concurrently, so you use the SoftDevice API (either directly or through SDK libraries) to set up the activities that you need. They will then run concurrently (you do not have to manually switch between e.g. observing and connecting as peripheral.) I can direct you to relevant examples when I know what roles and behavior you are looking for.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 , switch central mode to peripheral mode</title><link>https://devzone.nordicsemi.com/thread/209560?ContentTypeID=1</link><pubDate>Fri, 13 Sep 2019 08:55:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6647e288-6c2a-4cab-9b9e-57f8e440357f</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;If you have both modes running at the same time, and all the time, then there is no need for mode switching.&lt;/p&gt;
&lt;p&gt;As far as putting stuff into a Scan Report, it really makes no difference where the data comes from - it&amp;#39;s just data!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 , switch central mode to peripheral mode</title><link>https://devzone.nordicsemi.com/thread/209516?ContentTypeID=1</link><pubDate>Fri, 13 Sep 2019 05:12:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4b77873-45d1-41a8-8ec1-320eb48d9d3e</guid><dc:creator>guma</dc:creator><description>&lt;p&gt;is there a way where i do not switch modes but send over the advertising device RSSI&amp;nbsp; in the scan report of central to other device?&lt;br /&gt;How can do that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 , switch central mode to peripheral mode</title><link>https://devzone.nordicsemi.com/thread/209428?ContentTypeID=1</link><pubDate>Thu, 12 Sep 2019 12:30:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0e1ea6c-dbc8-4cda-8431-920dc4e6d436</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Note that (some of) the SoftDevices support both Central &amp;amp; Peripheral at the same time - so no need to switch between the two roles&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you looked at the Relay example?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/ble_sdk_app_rscs_relay.html"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/ble_sdk_app_rscs_relay.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>