<?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>central device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18950/central-device</link><description>main.c 
 something 
 hello there i want to scan perticular device. can any one helo me?? . i am using heart rate sdk 11 example 
 static void on_ble_evt(ble_evt_t * p_ble_evt)
{
 uint32_t err_code;
 uint8_t target_address[6] = {0xD1,0x2A,0xF7,0x62</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 13 Jan 2017 09:51:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18950/central-device" /><item><title>RE: central device</title><link>https://devzone.nordicsemi.com/thread/73253?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2017 09:51:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6285bf80-8654-4282-b413-6bf2b9322256</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;If you only want advertising reports from your device address you need to put it in a whitelist and use it when you scan. There are several questions about whitelisting in here, have a look. If you get into trouble please add a new question and explain what you have done. If I answer your question please accept my answer by clicking the grey circle next to it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: central device</title><link>https://devzone.nordicsemi.com/thread/73255?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2017 09:30:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc912fa5-1e16-4edc-b937-0143ebdc8283</guid><dc:creator>nordicbeginner</dc:creator><description>&lt;p&gt;i think &amp;quot;p_adv_report-&amp;gt;peer_addr&amp;quot; provide all scannable device address.
now i want only my wanded device&amp;#39;s data then what should i do??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: central device</title><link>https://devzone.nordicsemi.com/thread/73254?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2017 09:26:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72599494-db64-487a-875a-cbc9b6bd4c46</guid><dc:creator>nordicbeginner</dc:creator><description>&lt;p&gt;ok it solved&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: central device</title><link>https://devzone.nordicsemi.com/thread/73252?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2017 08:59:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1fa43bd5-d6d1-44a8-8d9e-972798030453</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I believe this is happening because you are getting too many advertising events, and staying in interrupt context 3 forever. The UART peripheral is configured to use the same interrupt priority, so it is not able to interrupt to tell that another character can be sent.&lt;/p&gt;
&lt;p&gt;Possible solutions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Stop scanning when you want to print something&lt;/li&gt;
&lt;li&gt;Raise the interrupt priority of the UART from APP_IRQ_PRIORITY_LOW to APP_IRQ_PRIORITY_HIGH inside log_uart_init()&lt;/li&gt;
&lt;li&gt;Try using Segger RTT instead of UART to print&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: central device</title><link>https://devzone.nordicsemi.com/thread/73251?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2017 06:05:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:188e989a-bb20-4d1e-a9cb-e61f1ce54223</guid><dc:creator>nordicbeginner</dc:creator><description>&lt;p&gt;i have uploaded main file and screenshot.
according to my code it should print address.
but it is printing only &amp;quot;a&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: central device</title><link>https://devzone.nordicsemi.com/thread/73250?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2017 05:48:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3f9f241-0b5c-4d39-be31-13851e311e13</guid><dc:creator>nordicbeginner</dc:creator><description>&lt;p&gt;why?? what should i do if i want to print wanted device&amp;#39;s address.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: central device</title><link>https://devzone.nordicsemi.com/thread/73249?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2017 15:32:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:756f22d4-3fbf-4bd5-9b11-4ace28a11766</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Of course it will, it is before the if statement? How exactly is it printing your device address?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: central device</title><link>https://devzone.nordicsemi.com/thread/73248?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2017 15:25:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac7a9025-4650-43bd-84e6-bd763351274b</guid><dc:creator>nordicbeginner</dc:creator><description>&lt;p&gt;but if unwanted device is on then it will print unwanted device&amp;#39;s address&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: central device</title><link>https://devzone.nordicsemi.com/thread/73247?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2017 15:24:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a071f5c-0c76-4cfc-9a4f-25d5bbab4370</guid><dc:creator>nordicbeginner</dc:creator><description>&lt;p&gt;yes. it will print my device address&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: central device</title><link>https://devzone.nordicsemi.com/thread/73246?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2017 15:23:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bc9f878-a3be-4874-aa0a-906cbad8d628</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;So nothing is ever printed? Are you receiving any advertisments from your device if you turn off the unwanted device? Does&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;APPL_LOG(&amp;quot;%02x%02x%02x%02x%02x%02x\r\n&amp;quot;,
                             p_adv_report-&amp;gt;peer_addr.addr[0],
                             p_adv_report-&amp;gt;peer_addr.addr[1],
                             p_adv_report-&amp;gt;peer_addr.addr[2],
                             p_adv_report-&amp;gt;peer_addr.addr[3],
                             p_adv_report-&amp;gt;peer_addr.addr[4],
                             p_adv_report-&amp;gt;peer_addr.addr[5]
                             );
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;print your device address?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: central device</title><link>https://devzone.nordicsemi.com/thread/73245?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2017 15:07:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2404899c-5f20-4232-993c-25e1a2ab2708</guid><dc:creator>nordicbeginner</dc:creator><description>&lt;p&gt;but my problem is that i want to print my devices data&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: central device</title><link>https://devzone.nordicsemi.com/thread/73244?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2017 15:06:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1fd10c9c-0d7c-43d3-b36f-a249b1c2f006</guid><dc:creator>nordicbeginner</dc:creator><description>&lt;p&gt;yes nothing is printed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: central device</title><link>https://devzone.nordicsemi.com/thread/73243?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2017 15:05:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cb3742a-ad41-4d7f-88e6-36a443ee997b</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I&amp;#39;m sorry, but I still don&amp;#39;t understand, if p=0x44, q =0x55, r = 0x66, s =0x77, t= 0x88 and u =0x99, (p == 0xD1 &amp;amp;&amp;amp; q == 0x2A &amp;amp;&amp;amp; r == 0xF7 &amp;amp;&amp;amp; s==0x62 &amp;amp;&amp;amp; t ==0x2f &amp;amp;&amp;amp; u ==0xdb) should evaluate to false and nothing should be printed. Are you saying that it evaluates to true? If that is what you are saying I would appreciate if you could put a breakpoint on APPL_LOG(&amp;quot;yes\r\n&amp;quot;); and use the debugger to show that p=0x44, q =0x55, r = 0x66, s =0x77, t= 0x88 and u =0x99. Take a screenshot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: central device</title><link>https://devzone.nordicsemi.com/thread/73242?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2017 14:08:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:989ac1d7-f298-4637-bd5f-807078e5b462</guid><dc:creator>nordicbeginner</dc:creator><description>&lt;p&gt;my devices&amp;#39;s mac address is 0xD1:0x2A:0xF7:0x62:0x2F:0xDB.
if other device&amp;#39;s mac address is 0x44:0x55:0x66:0x77:0x88:0x99 then i will get p=0x44, q =0x55, r = 0x66, s =0x77, t= 0x88 and u =0x99.&lt;/p&gt;
&lt;p&gt;so this condition
if( p == 0xD1 &amp;amp;&amp;amp; q == 0x2A &amp;amp;&amp;amp; r == 0xF7 &amp;amp;&amp;amp; s==0x62 &amp;amp;&amp;amp; t ==0x2f &amp;amp;&amp;amp; u ==0xdb)
will not be satisfied&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: central device</title><link>https://devzone.nordicsemi.com/thread/73241?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2017 13:53:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a2a1ed2-d821-4d00-b9bd-bee4dd70b4b2</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;What do you mean by getting the wrong value?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: central device</title><link>https://devzone.nordicsemi.com/thread/73240?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2017 13:18:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bee8cb7b-d371-45ba-9b05-809a19259e01</guid><dc:creator>nordicbeginner</dc:creator><description>&lt;p&gt;i have put condition
if( p == 0xD1 &amp;amp;&amp;amp; q == 0x2A &amp;amp;&amp;amp; r == 0xF7 &amp;amp;&amp;amp; s==0x62 &amp;amp;&amp;amp; t ==0x2f &amp;amp;&amp;amp; u ==0xdb)
but if other device is in range then i am getting wrong value.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: central device</title><link>https://devzone.nordicsemi.com/thread/73239?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2017 13:17:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f4acbfe-8f36-496a-9854-3b86174a2a62</guid><dc:creator>nordicbeginner</dc:creator><description>&lt;p&gt;yes i want to printout content of advertisement when i get a match on address.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: central device</title><link>https://devzone.nordicsemi.com/thread/73238?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2017 12:48:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2d3d390-e77e-43b2-94b0-72bbfbcb8a3a</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I&amp;#39;m having trouble understanding what the problem is here. Do you want to print out the content of the advertisment when you get a match on the address? And now it print outs even though there is no address match?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>