<?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>Beacon and Service in one app - dynamic switching</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/31036/beacon-and-service-in-one-app---dynamic-switching</link><description>Hi, 
 We have a need to have a Nordic app for nRF51822 which both serves as a beacon and also offers a connectable service. 
 It&amp;#39;s my distinct impression at present we cannot do both these things at the same time, because it looks from the API like one</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 15 Mar 2018 17:42:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/31036/beacon-and-service-in-one-app---dynamic-switching" /><item><title>RE: Beacon and Service in one app - dynamic switching</title><link>https://devzone.nordicsemi.com/thread/124643?ContentTypeID=1</link><pubDate>Thu, 15 Mar 2018 17:42:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f9fb2b8-f9b6-44a9-ae9a-38f0a7009b1a</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Yes, you can only change the advertising data. You will still run the GATT server for the custom service in the background, but no devices will connect when the non-connectable iBeacon advertising is happening. You should put the UUID of the custom service in the advertising data of the second advertiser, with the correct data type. Have a look at the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.3.0/ble_sdk_app_nus_eval.html?cp=4_0_5_4_2_2_19"&gt;ble_app_uart example&lt;/a&gt; on how to advertise a 128-bit customer service UUID.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Beacon and Service in one app - dynamic switching</title><link>https://devzone.nordicsemi.com/thread/124470?ContentTypeID=1</link><pubDate>Thu, 15 Mar 2018 00:31:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55b205e0-4f0b-45f1-8bb6-bacca32c064d</guid><dc:creator>Jandyman</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Initially, we thought I would need the concurrent timeslot advertising, so I mechanically went through the trouble to get the timeslot example to compile and link under SDK12 and SD130 (nRF51822). It isn&amp;#39;t clear whether it is working, partially because I haven&amp;#39;t gotten to the point where I really understand the code.&lt;/p&gt;
&lt;p&gt;However, in the meantime, the team has decided that it will be OK to use the second approach you mention above, running one advertiser for a few seconds and then switching to the other. That seems easier and more standard. But I do have a question.&lt;/p&gt;
&lt;p&gt;One of the advertisers is a custom service, the other is just an iBeacon, which has no service and is not connectable. I do a bunch of setup for the service and gap params and so forth. Can I leave all that stuff alone and just stop advertising, switch the advertising data, and start advertising again? And how in that case is the service associated with the advertising data?&lt;/p&gt;
&lt;p&gt;Thanks for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Beacon and Service in one app - dynamic switching</title><link>https://devzone.nordicsemi.com/thread/122781?ContentTypeID=1</link><pubDate>Mon, 05 Mar 2018 09:49:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77dc002a-7bb2-445f-8842-51d7cc9073cd</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Unfortunately, it will not work with SDK 12 and s130 out of the box, only SDK 9 and S110 v8.0. You will have to migrate the example to use the later SDK and softdevice. Most of this should be softdevice API changes. Please have a look at the migration guides included in the softdevice zip files.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Beacon and Service in one app - dynamic switching</title><link>https://devzone.nordicsemi.com/thread/122619?ContentTypeID=1</link><pubDate>Fri, 02 Mar 2018 14:18:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40f2ad4f-3249-443b-a44f-3346554397d3</guid><dc:creator>Jandyman</dc:creator><description>&lt;p&gt;Will the last solution work with SoftDevice 130 and SDK12? If so, has the API changed? We recently went to the trouble to move our app to SD 130 and SDK12. We are now wishing to just add the beacon functionality. So moving back to SD 110 would be undesirable.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Beacon and Service in one app - dynamic switching</title><link>https://devzone.nordicsemi.com/thread/122573?ContentTypeID=1</link><pubDate>Fri, 02 Mar 2018 09:24:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91c2feab-4d6f-4b99-ae72-837e1ff05234</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Multiple advertisers is not something that is supported by our softdevices at the moment. If you search DevZone, you should find multiple cases with users looking for the same thing. There are a number of ways this can be done, depending on your requirements:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Do you require the advertising to be two separate instances, advertising independently and concurrently? If not, you can combine the advertisement data in one advertiser. When a connection is made, you can continue to advertise the beacon data in a non-connectable mode.&lt;/li&gt;
&lt;li&gt;Start one of the advertisers, run it for a while. After a while, stop the first advertiser, update the data/configuration, and start the second advertiser. Continue to switch between the advertisers as long as needed.&lt;/li&gt;
&lt;li&gt;You can use the timeslot API in the softdevice to do simple advertising using the RADIO peripheral directly, You can find a complete example showing this on our &lt;a href="https://github.com/NordicPlayground/nRF51-multi-role-conn-observer-advertiser"&gt;GitHub page&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The last option is the only one that will run both advertisers concurrently.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>