<?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>Ranging of connectable device based on nRF51822</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11341/ranging-of-connectable-device-based-on-nrf51822</link><description>Hi, 
 I&amp;#39;m developing nRF51 proximity based device using nRF51822 that acts as BLE peripheral. It advertises continuously using connectable indirect mode.
User has Android smartphone with dedicated application. When user comes closer to the device than</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 23 Jan 2016 11:51:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11341/ranging-of-connectable-device-based-on-nrf51822" /><item><title>RE: Ranging of connectable device based on nRF51822</title><link>https://devzone.nordicsemi.com/thread/42695?ContentTypeID=1</link><pubDate>Sat, 23 Jan 2016 11:51:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82560e29-1ce2-4091-9ebe-fbff7d6ccc25</guid><dc:creator>Keton</dc:creator><description>&lt;p&gt;Many thanks. That solves my problem. Using app_beacon_timeslot.c as a template I was able to implement my coustom beacon format and use it in my project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ranging of connectable device based on nRF51822</title><link>https://devzone.nordicsemi.com/thread/42694?ContentTypeID=1</link><pubDate>Fri, 22 Jan 2016 12:45:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40c4833d-4a7f-4272-99b1-e1c262e3d958</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I think instead of using the nRF51-multi-role-conn-observer-advertiser example on github, which is made for SDK 9.0, it would be worth having a look at the SDK 10.0 &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk51.v10.0.0%2Fble_sdk_radio_time_slot_api.html&amp;amp;cp=4_0_1_4_2_2_23_0&amp;amp;anchor=ble_sdk_adv_beacon"&gt;examples\ble_peripheral\experimental_ble_app_multiactivity_beacon_hrs_advertiser&lt;/a&gt; example.&lt;/p&gt;
&lt;p&gt;It is an extension on top of the hrs example, which originally used app_timer (and it still does). The example advertises as a beacon when connected, but it should be relatively easy to invert this behaviour. Also, in advertiser_beacon.c you can see the m_beacon struct, which contains a ble_gap_adv_params_t struct with the advertising parameters.&lt;/p&gt;
&lt;p&gt;I have not had time to look deeply into the example, but I do hope it proves helpful.&lt;/p&gt;
&lt;p&gt;Regards, Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ranging of connectable device based on nRF51822</title><link>https://devzone.nordicsemi.com/thread/42693?ContentTypeID=1</link><pubDate>Fri, 22 Jan 2016 09:50:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e09c3892-babf-489a-af56-88e27fb3943c</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;If you create a support case &lt;a href="https://www.nordicsemi.com/eng/nordic/mypage"&gt;on My Page&lt;/a&gt;, you will get a closer follow-up on the case. Everything there is kept confidential, and you can even attach your project for us to have a look at it. Anyway, I will try and see if I can answer your questions here on DevZone some time today. Others that may have some input are of course also encouraged to reply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ranging of connectable device based on nRF51822</title><link>https://devzone.nordicsemi.com/thread/42692?ContentTypeID=1</link><pubDate>Thu, 21 Jan 2016 11:44:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90c1db50-bd2d-4b88-953a-873eff9d278c</guid><dc:creator>Keton</dc:creator><description>&lt;p&gt;bump, can anybody advise? This issue is halting our whole project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ranging of connectable device based on nRF51822</title><link>https://devzone.nordicsemi.com/thread/42691?ContentTypeID=1</link><pubDate>Mon, 18 Jan 2016 18:34:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94f03c5a-4d42-4629-a160-8aceb089df6f</guid><dc:creator>Keton</dc:creator><description>&lt;p&gt;Øyvind,&lt;/p&gt;
&lt;p&gt;Thanks for your answer.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve decided to try concurrent approach based on Github &lt;a href="https://github.com/NordicSemiconductor/nRF51-multi-role-conn-observer-advertiser/tree/master/advertiser"&gt;example&lt;/a&gt;. I&amp;#39;ve managed to compile the project under SDK10 and gcc 4.9.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m afraid I don&amp;#39;t understand exactly how it works. Could you provide barebones example of connectable service running along non-connectable time slot advertiser?&lt;/p&gt;
&lt;p&gt;My other questions are as follows:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;In order to compile this project I had to remove &lt;code&gt;app_timer.c&lt;/code&gt; and &lt;code&gt;softdevice_handler.c&lt;/code&gt; from my project because of duplicate declarations of &lt;code&gt;SD_EVT_IRQHandler&lt;/code&gt; and &lt;code&gt;SWI0_IRQ_Handler&lt;/code&gt; in advertiser code. My application uses app_timer a lot. Is there a way to use provided time slot advertiser library with app_timer? Also is it possible to use standard softdevice handler in order to use event handlers it generates (I have connectable service which has to receive ble events and for that I&amp;#39;ve used &lt;code&gt;softdevice_ble_evt_handler_set()&lt;/code&gt;)?&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Is there any way to pause time slot advertiser so it doesn&amp;#39;t broadcast when user connects to the device via connectable advertising (non timeslot) part?&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Another issue is setting advertisement data for timeslot advertiser. Github readme mentions functions &lt;code&gt;void btle_hci_adv_params_set(btle_cmd_param_le_write_advertising_parameters_t* adv_params)&lt;/code&gt; and &lt;code&gt;void btle_hci_adv_data_set(btle_cmd_param_le_write_advertising_data_t* adv_data)&lt;/code&gt; but they are never used in the example code. Also time slot advertiser beacon doesn&amp;#39;t advertise anything apart from appearance and name. Is this correct behavior?&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In order to compile the code I&amp;#39;ve had to define &lt;code&gt;DEFAULT_DEVICE_ADDRESS&lt;/code&gt; in &lt;code&gt;ts_controller.c&lt;/code&gt;. I reckon that modifying library code provided by Nordic isn&amp;#39;t a recommended way of doing things. Is there any better solution? Specifically I&amp;#39;m thinking about deriving time slot advertiser address from BLE address hardcoded in each nRF51 chip but that would require further modifications to the library. Or maybe I&amp;#39;m missing something that should set &lt;code&gt;DEFAULT_DEVICE_ADDRESS&lt;/code&gt;?&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ranging of connectable device based on nRF51822</title><link>https://devzone.nordicsemi.com/thread/42690?ContentTypeID=1</link><pubDate>Mon, 18 Jan 2016 13:32:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3ec5bcf-578c-4362-b741-3ecdced5dd4d</guid><dc:creator>&amp;#216;yvind Karlsen</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;As you say some phones will only report each device once. This can be circumvented by stopping and starting scanning on the android device.&lt;/p&gt;
&lt;p&gt;Alternately you can have your device in multibroadcast mode where it is both a beacon and connectable, then when the beacon is within 2m range you can connect to the connectable advertiser and turn off the beacon. In SDK 11 we have a &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/ble_sdk_app_gzll.html?cp=4_0_0_4_1_2_13"&gt;multiprotocol example&lt;/a&gt; that explains how concurrent protocols work in our stack.&lt;/p&gt;
&lt;p&gt;The multiprotocol example runs BLE concurrently with gazell, what you want is two BLE services concurrently. We have an example available on github that demonstrates this functionality. It can be found &lt;a href="https://github.com/NordicSemiconductor/nRF51-multi-role-conn-observer-advertiser"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I also recommend having a look at the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/ble_sdk_app_proximity.html?cp=4_0_0_4_1_2_15"&gt;proximity application example&lt;/a&gt; from SDK11.&lt;/p&gt;
&lt;p&gt;Hopefully this answers your question. Best regards,&lt;/p&gt;
&lt;p&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>