<?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 create a whitelist on the Central device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22428/how-to-create-a-whitelist-on-the-central-device</link><description>I want to create a whitelist on the Central device. Because there is a lot of peripheral devices around and I just want to connect one peripheral device. First I register the address of the central device to the peripheral device. When I work with a single</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 15 Jun 2017 11:24:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22428/how-to-create-a-whitelist-on-the-central-device" /><item><title>RE: How to create a whitelist on the Central device</title><link>https://devzone.nordicsemi.com/thread/88212?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2017 11:24:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f12bd146-ffbf-47b1-b82b-8f5656406739</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;br /&gt;
Petter is unavailable, and I will try to follow this up in the mean time.&lt;br /&gt;
Do you think it is possible to attach your code, so we can have a look at it?&lt;br /&gt;
Then it is easier for us to understand how your code is working, and what the problem might be.&lt;br /&gt;
If so, please just zip your project, and attach the zip file to this case (you can&amp;#39;t really attach a file to a comment, so just update you initial inquiry).&lt;br /&gt;
Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create a whitelist on the Central device</title><link>https://devzone.nordicsemi.com/thread/88198?ContentTypeID=1</link><pubDate>Mon, 12 Jun 2017 12:38:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04131241-3ee4-4c2f-810c-b43c9c98044b</guid><dc:creator>purgoufr</dc:creator><description>&lt;p&gt;I can connect to one of the peripheral devices, but I do not know which one. That&amp;#39;s why I can not send command . I used app_trace_log and I can see the device is connected in log datas(connect the device with uart). The central device is looking for uuid, but uuid is not a distinguishing feature. Because all peripheral devices use the same service uuid. I want to register the peer address of the peripheral device to the central device after I first make a healthy connection and send the command. Then I need to call the peer address instead of uuid to connect to the peripheral device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create a whitelist on the Central device</title><link>https://devzone.nordicsemi.com/thread/88221?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2017 11:46:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a19f0ba-bd7f-4c57-aa14-e5ba0311373f</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;So you are actually able to connect? Are you sure you are connecting to the peripheral you want to send commands to? How do you know? How does the central know which peripheral to connect to? (If all are advertising with the same UUID and this is what the central uses to filter what devices to connect to) You can use a whitelist to filter all advertisements that are not in the whitelist, but then you must put in the address of the device that you want to accept advertisements from.&lt;/p&gt;
&lt;p&gt;The button is used to start scanning and connection? What happens the second time it is pressed? Disconnection and then start scanning and new connection?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create a whitelist on the Central device</title><link>https://devzone.nordicsemi.com/thread/88220?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2017 10:02:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:180e9528-16ae-4430-a1cd-1e1d84a7fce2</guid><dc:creator>purgoufr</dc:creator><description>&lt;p&gt;Yes, I&amp;#39;m getting ad reports from peripheral device I want to connect to. (If there is no other peripheral device in the environment!)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create a whitelist on the Central device</title><link>https://devzone.nordicsemi.com/thread/88219?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2017 10:00:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2d5f764-1daf-4277-a496-5857dbcbafca</guid><dc:creator>purgoufr</dc:creator><description>&lt;p&gt;Ok. Mr Myhre. I&amp;#39;m sorry that I can not express well. I will try to answer your questions;&lt;/p&gt;
&lt;p&gt;If there is one peripheral and one central device, I can connect and send commands. But If there are other peripheral devices that broadcast with the same uuid around the Central device, I can not send commands even when I connect. When this happens, the central device behaves irrationally.When I am eliminating other peripheral devices from the environment (only one peripheral remains), the central device is working smoothly again. What I think I can not express here is that the central device must first register the peer address to the peripheral device in order to send the command. If the peer address of the central device is not registered in the peripheral, it can not send commands even when connected.&lt;/p&gt;
&lt;p&gt;The button is used to initiate the event.(Start scanning, connection etc.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create a whitelist on the Central device</title><link>https://devzone.nordicsemi.com/thread/88218?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2017 09:17:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27795e6e-5729-4c88-b0d0-617ea7b6d7d0</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Again, you need to include more code and explanation if I&amp;#39;m going to understand what you are doing/what is happening.&lt;/p&gt;
&lt;p&gt;Any idea why you can&amp;#39;t connect? Are you connecting to another peripheral? What is happening on your central? Are you getting advertising reports from the peripheral you want to connect to at all? What exactly does this button do?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create a whitelist on the Central device</title><link>https://devzone.nordicsemi.com/thread/88217?ContentTypeID=1</link><pubDate>Fri, 02 Jun 2017 13:37:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ef39ff8-1737-4c6f-973b-286afd188aaf</guid><dc:creator>purgoufr</dc:creator><description>&lt;p&gt;I noticed something interesting. I started all over again. I placed many peripheral devices around the central device, I pressed the button and the central device could not send commands again. Then I got angry and pressed the button many times. Then guess what? Central device sent command and peripheral device which I want took command. Then I tried this scenario many times. And Same thing happened.&lt;/p&gt;
&lt;p&gt;I summarize the result from this activity;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If many peripheral devices around the central device, you should to press the button many times&lt;/li&gt;
&lt;li&gt;If there is only one peripheral around the central device, you just press the button once.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;So, Do you have any idea about the problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create a whitelist on the Central device</title><link>https://devzone.nordicsemi.com/thread/88216?ContentTypeID=1</link><pubDate>Fri, 02 Jun 2017 06:59:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72cc5d96-c2b4-461f-896c-cdffe47da4d9</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;If you want store the peripherals address persistently you can use Pstorage or Fstorage.&lt;/p&gt;
&lt;p&gt;I have already told you how to add the peripheral address to the whitelist.&lt;/p&gt;
&lt;p&gt;Have you tried? What is the problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create a whitelist on the Central device</title><link>https://devzone.nordicsemi.com/thread/88215?ContentTypeID=1</link><pubDate>Fri, 02 Jun 2017 06:02:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57b97b49-aae2-4da5-a5e2-9ef7a3010716</guid><dc:creator>purgoufr</dc:creator><description>&lt;p&gt;How to store peer address of peripheral into central ? After that, how to add peer address into whitelist ?&lt;/p&gt;
&lt;p&gt;NOTE: I can store Central peer address into the peripheral because Peripheral can advertise and I can save peer address via pstorage register. But central device just scanning that&amp;#39;s why I couldn&amp;#39;t do that. I hope I could tell the problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create a whitelist on the Central device</title><link>https://devzone.nordicsemi.com/thread/88214?ContentTypeID=1</link><pubDate>Fri, 02 Jun 2017 06:00:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05c1cbb8-a698-41bd-b060-8ed4217a0809</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Yes, you can.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create a whitelist on the Central device</title><link>https://devzone.nordicsemi.com/thread/88213?ContentTypeID=1</link><pubDate>Fri, 02 Jun 2017 04:20:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf5afecd-fa4a-4f1e-94af-aae5ccc03ce3</guid><dc:creator>purgoufr</dc:creator><description>&lt;p&gt;Can I store the address in array with use &amp;quot;&lt;em&gt;evt.gap_evt.params.adv_report.peer_addr.addr[j];&lt;/em&gt;&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create a whitelist on the Central device</title><link>https://devzone.nordicsemi.com/thread/88211?ContentTypeID=1</link><pubDate>Thu, 01 Jun 2017 14:02:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f67920ec-28db-43ff-8fb1-6e36e8ff0472</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;You need to know which address to add the the whitelist.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create a whitelist on the Central device</title><link>https://devzone.nordicsemi.com/thread/88210?ContentTypeID=1</link><pubDate>Thu, 01 Jun 2017 13:18:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db20558d-471c-48de-858b-7976b177d57c</guid><dc:creator>purgoufr</dc:creator><description>&lt;p&gt;Yes I saw but in there he wrote &lt;em&gt;ble_gap_addr_t       whitelist_sensor_1     = {BLE_GAP_ADDR_TYPE_RANDOM_STATIC,{0xCE,0x1B,0x66,0x29,0xAE,0xEE}};&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;but I dont know address before connection. And before connection just I know the peripheral device according to service uuid.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create a whitelist on the Central device</title><link>https://devzone.nordicsemi.com/thread/88209?ContentTypeID=1</link><pubDate>Thu, 01 Jun 2017 12:58:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6925b5d-64d6-4cd1-a6a2-f16b5ac0af33</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Did you see the question I linked to?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create a whitelist on the Central device</title><link>https://devzone.nordicsemi.com/thread/88208?ContentTypeID=1</link><pubDate>Thu, 01 Jun 2017 12:55:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22e71649-0cec-465d-96cc-bc14f6d17816</guid><dc:creator>purgoufr</dc:creator><description>&lt;p&gt;I want to get &amp;quot;ble_gap_addr_t&amp;quot; automatically after the connection is established. Then I want to store this address into whitelist. So I will only need to connect once to add peripheral addresses into the whitelist.&lt;/p&gt;
&lt;p&gt;how to store &lt;em&gt;ble_gap_addr_t&lt;/em&gt; and &lt;em&gt;ble_gap_irk_t&lt;/em&gt; into whitelist?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create a whitelist on the Central device</title><link>https://devzone.nordicsemi.com/thread/88207?ContentTypeID=1</link><pubDate>Thu, 01 Jun 2017 12:46:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be258c2a-e5b4-45a7-92a3-91d5da76423a</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;If you have bonded dm_whitelist_create() should return addr_count != 0 and an address (if the peer is using a static address).&lt;/p&gt;
&lt;p&gt;If you want to whitelist without bonding you need to make the whitelist manually. Like &lt;a href="https://devzone.nordicsemi.com/question/81652/custom-whitelist-while-scanning/"&gt;this&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create a whitelist on the Central device</title><link>https://devzone.nordicsemi.com/thread/88206?ContentTypeID=1</link><pubDate>Thu, 01 Jun 2017 12:32:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:002c84b7-a2f1-49ab-a7ec-a9d11d995297</guid><dc:creator>purgoufr</dc:creator><description>&lt;p&gt;I want to create whitelist;
I initialized whitelist parameter such as add_count,irk_count etc. Then I request creating of whitelist ; err_code = dm_whitelist_create(&amp;amp;m_dm_app_id,&amp;amp;whitelist); APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;Now, how to add peripheral device to whitelist or how to store peripheral device address&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create a whitelist on the Central device</title><link>https://devzone.nordicsemi.com/thread/88205?ContentTypeID=1</link><pubDate>Thu, 01 Jun 2017 12:29:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f69385e-8562-43b9-b2cd-680671e574d8</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;You need to include more code and explanation if I&amp;#39;m going to understand what you are doing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create a whitelist on the Central device</title><link>https://devzone.nordicsemi.com/thread/88204?ContentTypeID=1</link><pubDate>Thu, 01 Jun 2017 12:17:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60f8eccf-bd37-409a-bec2-9b61ffdbd5d9</guid><dc:creator>purgoufr</dc:creator><description>&lt;p&gt;I debug again the central device, and I noticed&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;whitelist.addr_count == 0&lt;/li&gt;
&lt;li&gt;whitelist.irk_count == 0&lt;/li&gt;
&lt;li&gt;m_scan_mode != BLE_WHITELIST_SCAN&lt;/li&gt;
&lt;li&gt;m_whitelist_temporarily_disabled== True&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I can not add the peripheral device into central device.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Initialize whitelist parameters.&lt;/li&gt;
&lt;li&gt;Request creating of whitelist.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;But I can not add to whitelist .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create a whitelist on the Central device</title><link>https://devzone.nordicsemi.com/thread/88203?ContentTypeID=1</link><pubDate>Thu, 01 Jun 2017 10:26:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f6c7b7e-d29b-4a7c-9b05-252452978540</guid><dc:creator>purgoufr</dc:creator><description>&lt;p&gt;According to Mr.Ulrich Myhre : &lt;em&gt;If there is a lot of advertisers around, all advertising extremely fast, they might end up transmitting exactly at the same time as a connect request is being sent to another device. That will corrupt the request&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;In my opinion some signal confusion happened as Mr.Ulrich Myhre said.&lt;/li&gt;
&lt;li&gt;I can not connect another peripheral&lt;/li&gt;
&lt;li&gt;Central starts scanning and try to connect untill timeout.&lt;/li&gt;
&lt;li&gt;If there are multiple peripheral devices around, I can not get advertising reports from peripheral. Because the central device can only scanning, it can not do anything else. If there are not many peripheral devices around, it working smoothly.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;So, If I can extract advertising report from earlier connection event and create whitelist as you said, I think All problem will be solved.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create a whitelist on the Central device</title><link>https://devzone.nordicsemi.com/thread/88202?ContentTypeID=1</link><pubDate>Thu, 01 Jun 2017 08:42:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9dba1aca-5482-4588-91e0-ca9d5f310662</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Any idea why you can&amp;#39;t connect? Are you connecting to another peripheral? What is happening on your central? Are you getting advertising reports from the peripheral you want to connect to at all?&lt;/p&gt;
&lt;p&gt;If you want a whitelist on the central you need the peripherals device address. It will be in the advertising reports or you can extract it from an earlier connection event.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create a whitelist on the Central device</title><link>https://devzone.nordicsemi.com/thread/88200?ContentTypeID=1</link><pubDate>Wed, 31 May 2017 13:37:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3dae05e9-f96a-4942-b199-36a62069711a</guid><dc:creator>purgoufr</dc:creator><description>&lt;ul&gt;
&lt;li&gt;Peripheral device use SDK 8.0 Softdevice S110&lt;/li&gt;
&lt;li&gt;Central device use SDK10.0 Softdevice S130&lt;/li&gt;
&lt;li&gt;I do not use sdk examples.&lt;/li&gt;
&lt;li&gt;I am recording the peer address of the central device to the peripheral device. Because I just want only registered central device can send commands to the peripheral device.&lt;/li&gt;
&lt;li&gt;If there are more than one peripheral device I can not connect and send command to the correct device.&lt;/li&gt;
&lt;li&gt;I dont know address but I know ServicesCompleteListUuid. And If peripheral device advertise with this Uuid Central device can register itself.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create a whitelist on the Central device</title><link>https://devzone.nordicsemi.com/thread/88199?ContentTypeID=1</link><pubDate>Wed, 31 May 2017 10:28:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1878e90-5008-488d-9f52-fc74ce9376d7</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Which SDK are you using? Which peripheral and central examples are you using? What do you mean by register the address of the central device to the peripheral device?&lt;/p&gt;
&lt;p&gt;You say you are not able to send commands, but are you able to connect to the correct device?&lt;/p&gt;
&lt;p&gt;If you know the address of the peripheral device you want to connect to you can simply call sd_ble_gap_connect() with the specific device address. The SoftDevice will then look for that address and connect to it, and it will ignore advertisments from all other addresses.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create a whitelist on the Central device</title><link>https://devzone.nordicsemi.com/thread/88201?ContentTypeID=1</link><pubDate>Tue, 30 May 2017 11:04:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0522ed3-8a6d-4a15-85c3-04a890b924a9</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;A continuation of &lt;a href="https://devzone.nordicsemi.com/question/141992/there-are-more-than-one-peripheral-and-more-than-one-central-how-can-we-eliminate-the-signal-confusion/"&gt;this&lt;/a&gt; question.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>