<?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>Receving advertisement packets in scanner problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22250/receving-advertisement-packets-in-scanner-problem</link><description>Hi Team, 
 Iam doing project called automation of light using BLE technology.
 
 Here Iam using sdk 12.1.0(ble_app_hrs_c) example for scanning or receiving and i flashed the ble_app_hrs_c example in nRF51822 Dk.This nRF51822Dk acting as receiver.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 29 May 2017 07:44:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22250/receving-advertisement-packets-in-scanner-problem" /><item><title>RE: Receving advertisement packets in scanner problem</title><link>https://devzone.nordicsemi.com/thread/87461?ContentTypeID=1</link><pubDate>Mon, 29 May 2017 07:44:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7750a51c-ebcf-4980-abaa-e1fa82523baa</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.0.0/group__app__timer.html#gae36265bac1480fbb1522f63f70ac369f"&gt;app_timer_cnt_get()&lt;/a&gt; returns the current value of the RTC1 counter.&lt;/p&gt;
&lt;p&gt;What kind of functionality are you looking for? A type of stopwatch/time taker function? or time elapsed since program startup?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receving advertisement packets in scanner problem</title><link>https://devzone.nordicsemi.com/thread/87460?ContentTypeID=1</link><pubDate>Wed, 24 May 2017 12:01:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db4a7d6a-9fc3-4eb7-ad7c-a6120a267ccd</guid><dc:creator>mani</dc:creator><description>&lt;p&gt;ok.
what does this function returns app_timer_cnt_get().how can i calculate time from this function in one second.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receving advertisement packets in scanner problem</title><link>https://devzone.nordicsemi.com/thread/87459?ContentTypeID=1</link><pubDate>Wed, 24 May 2017 11:37:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b913a55-d3d0-4776-8537-1f57ee4857eb</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Q: how can i calculate numbers of ticks does ble_app_hrs_c example can generate in one second&lt;/p&gt;
&lt;p&gt;A: You can use the function &lt;code&gt;APP_TIMER_TICKS(..)&lt;/code&gt;. If you call the function with &lt;code&gt;APP_TIMER_TICKS(1000,APP_TIMER_PRESCALER&lt;/code&gt;) it will return the number of ticks for 1000 ms(=1 second).&lt;/p&gt;
&lt;p&gt;The app timer uses the RTC timer, which have a frequency of 32768 Hz. So it wil generate 32768 ticks in 1 second.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receving advertisement packets in scanner problem</title><link>https://devzone.nordicsemi.com/thread/87458?ContentTypeID=1</link><pubDate>Wed, 24 May 2017 10:33:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3f64517-e98f-44b0-b16f-13c908c63fdd</guid><dc:creator>mani</dc:creator><description>&lt;p&gt;Thanks very much .this information is very useful to me.&lt;/p&gt;
&lt;p&gt;one more question ,how can i calculate numbers of ticks does ble_app_hrs_c  example can generate in one second.by using this function app_timer_cnt_get(); iam able to receive  ticks.by using this how can i calculate the time in seconds only???
by the way iam using nrf51822 Dk.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receving advertisement packets in scanner problem</title><link>https://devzone.nordicsemi.com/thread/87467?ContentTypeID=1</link><pubDate>Tue, 23 May 2017 13:54:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e623accb-2cf3-4cb8-8d9c-bbc0182a25ca</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Note that the &lt;code&gt;ble_app_beacon&lt;/code&gt; example is meant to be a pure beacon, where it &lt;strong&gt;only&lt;/strong&gt; does advertising. If you want to &lt;strong&gt;connect&lt;/strong&gt; to the central(in order to e.g. send information from the central to the beacon), I would not recommend using the &lt;code&gt;ble_app_beacon&lt;/code&gt; example, but instead use e.g. the &lt;code&gt;experimental_ble_app_blinky&lt;/code&gt; example for your peripherals(&amp;quot;beacons&amp;quot;).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receving advertisement packets in scanner problem</title><link>https://devzone.nordicsemi.com/thread/87466?ContentTypeID=1</link><pubDate>Tue, 23 May 2017 13:35:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b4c6621-017b-4b4c-817b-63ac2a0abea6</guid><dc:creator>Sigurd</dc:creator><description>&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Yes, by default the ble_app_multilink_central example will try to connect to all peripherals that are named &amp;quot;Nordic_Blinky&amp;quot;. (it will look for the name in the on_adv_report() function).  It will continue to scan and connect until it have connected to the number of peripherals defined by &lt;code&gt;CENTRAL_LINK_COUNT&lt;/code&gt;. By default this is set to 8, but can be increased to 20. The &lt;code&gt;CENTRAL_LINK_COUNT&lt;/code&gt; is the number of central links used by the application. When changing this number remember to adjust the RAM settings&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Yes, the central will scan on all 3 advertising channels (37,39 and 39). When you send an advertising packet from the peripheral, the peripheral will actually send the packet on all 3 advertising channels. It will first send it on channel 37, then on 38 and then on 39.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img src="https://image.slidesharecdn.com/bleoverviewandimplementation-140910203445-phpapp02/95/ble-overview-andimplementation-4-638.jpg?cb=1410381369" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receving advertisement packets in scanner problem</title><link>https://devzone.nordicsemi.com/thread/87465?ContentTypeID=1</link><pubDate>Tue, 23 May 2017 12:41:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57f3c29c-5335-40a3-a988-3b5839cd104b</guid><dc:creator>mani</dc:creator><description>&lt;p&gt;Thanks for information.
In my project iam using central as ble_app_multilink_central example and peripheral as bel_app_beacon example. Iam receiving the multiple peripheral uuid&amp;#39;s and some data from this function  on_adv_report(p_ble_evt) located under  [BLE_GAP_EVT_ADV_REPORT case] in [ble_app_multilink_central] example.I have to use only this [BLE_GAP_EVT_ADV_REPORT case] while  receive the uuid and some data.&lt;/p&gt;
&lt;p&gt;My question is ,by doing above modification in source code ,do this central example is still connects to the multiple  peripherals ??&lt;/p&gt;
&lt;p&gt;Do this central scans on a different advertising channel when the packet is sent??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receving advertisement packets in scanner problem</title><link>https://devzone.nordicsemi.com/thread/87464?ContentTypeID=1</link><pubDate>Tue, 23 May 2017 12:02:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0aed016d-b973-4ec1-93ae-3af89beced8a</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Yes, the ble_app_multilink_central will continue to scan for advertising packets, even when connected to other peripherals. When only doing advertisement, there is a small chance that an advertisement packet is lost, since the central might be scanning on a different advertising channel when the packet is sent. So if you need that no packets are dropped, you will need to connect with your &amp;quot;beacons&amp;quot; to the central.&lt;/p&gt;
&lt;p&gt;In a connection, Bluetooth low energy uses CRC and the packet contains a sequence number and next expected sequence number to ack/nack a packet. Every packet will be acknowledged at the link layer, so if there isn&amp;#39;t an acknowledgement, the packet will be retransmitted.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receving advertisement packets in scanner problem</title><link>https://devzone.nordicsemi.com/thread/87463?ContentTypeID=1</link><pubDate>Tue, 23 May 2017 11:54:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ec141b6-1e48-4054-a226-48a01bde3924</guid><dc:creator>mani</dc:creator><description>&lt;p&gt;Thanks for replay.
Do this  ble_app_multilink_central example can receive  multiple beacons advertisement packets without any loss in central ??do i need to modify anything??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receving advertisement packets in scanner problem</title><link>https://devzone.nordicsemi.com/thread/87462?ContentTypeID=1</link><pubDate>Tue, 23 May 2017 11:25:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a90cabaf-9553-463e-8914-4db5037e635c</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Please let me know if anything is unclear, or if you have other questions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receving advertisement packets in scanner problem</title><link>https://devzone.nordicsemi.com/thread/87457?ContentTypeID=1</link><pubDate>Tue, 23 May 2017 10:53:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2254494-8d2f-4efb-a2a2-b92b80d90e10</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If you want to connect to the “beacons” from a central, I would instead recommend using the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.3.0/ble_sdk_app_multilink.html?cp=4_0_1_4_2_0_1"&gt;ble_app_multilink_central example&lt;/a&gt; as the central. With this central example, you should be able to connect to up-to 20 peripherals/beacons. For the “beacons” you can use the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.3.0/ble_sdk_app_blinky.html?cp=4_0_1_4_2_2_20"&gt;BLE Blinky Application&lt;/a&gt; (experimental_ble_app_blinky).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>