<?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>Broadcaster mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28998/broadcaster-mode</link><description>Hello, 
 I want to use broadcaster mode for nrf51822, could you tell me please what I must to do to use this mode? 
 I suppose I must to set BLE_GAP_ADV_TYPE_ADV_NONCONN_IND mode, configure &amp;#39;interval&amp;#39;(as I read in specification it must be greater than</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Jan 2018 17:26:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28998/broadcaster-mode" /><item><title>RE: Broadcaster mode</title><link>https://devzone.nordicsemi.com/thread/114658?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2018 17:26:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb6a5c6f-7d55-47a5-b547-4ff081d535a2</guid><dc:creator>venerley</dc:creator><description>&lt;p&gt;Hi Ole, is there new &lt;code&gt;ble_app_temp.zip&lt;/code&gt; there have been a lot of changes since October 2013.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Broadcaster mode</title><link>https://devzone.nordicsemi.com/thread/114657?ContentTypeID=1</link><pubDate>Thu, 07 Jul 2016 10:06:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:451b6b19-ffee-4a07-a7b4-bb6b3ceb4a87</guid><dc:creator>Mich</dc:creator><description>&lt;p&gt;This is using the Segger firmware and Keil uVision? How about an example using ARM mbed, would this work:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.mbed.org/teams/Bluetooth-Low-Energy/code/BLE_Thermometer/file/tip/main.cpp"&gt;developer.mbed.org/.../main.cpp&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;...and lastly, does the nRF51-DK board have a thermometer sensor? If it doesn&amp;#39;t I&amp;#39;ll just wire up a DHT11 (or DHT22) to the GPIO headers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Broadcaster mode</title><link>https://devzone.nordicsemi.com/thread/114667?ContentTypeID=1</link><pubDate>Fri, 31 Oct 2014 09:53:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd4681f9-1f6b-450f-a00d-e40a46b2274d</guid><dc:creator>Giovanni</dc:creator><description>&lt;p&gt;hi
What do I do to make it work with SDK 6.1 and 7.1 soft device?
Thank you for your attention
Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Broadcaster mode</title><link>https://devzone.nordicsemi.com/thread/114661?ContentTypeID=1</link><pubDate>Tue, 03 Jun 2014 12:28:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb7ee235-a91a-4b65-8ede-ecf3da2d9753</guid><dc:creator>sushil</dc:creator><description>&lt;p&gt;Hi Morten, In bluetoothstarter kit provided by Bluetooth SIG ,it is mentioned that any one can create custom profiles/services for their device. So i think it is perfectly fine to create custom services with custom UUIDs. In the service one has to mention all the custom UUIDs of related custom services.&lt;/p&gt;
&lt;p&gt;Am I correct? Because in &amp;quot;ble_app_uart&amp;quot; example source code has custom serives.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Broadcaster mode</title><link>https://devzone.nordicsemi.com/thread/114666?ContentTypeID=1</link><pubDate>Wed, 28 May 2014 11:45:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32ae1659-7fc0-4888-b96e-f6a1d3b196dd</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;The code is available on GitHub, so I&amp;#39;d recommend you to get it from there: &lt;a href="https://github.com/NordicSemiconductor/nrf51-ble-app-temp"&gt;github.com/.../nrf51-ble-app-temp&lt;/a&gt;
However, I&amp;#39;ll look into the link not working as well. Thanks for letting us know!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Broadcaster mode</title><link>https://devzone.nordicsemi.com/thread/114665?ContentTypeID=1</link><pubDate>Wed, 28 May 2014 05:57:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe7e09a1-4343-4897-ae56-aa2ff608e810</guid><dc:creator>kchuva</dc:creator><description>&lt;p&gt;I join this request.
Thanks a lot&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Broadcaster mode</title><link>https://devzone.nordicsemi.com/thread/114664?ContentTypeID=1</link><pubDate>Tue, 27 May 2014 21:27:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13d90bef-90e7-4fc8-b185-2f474b147a4d</guid><dc:creator>jupa</dc:creator><description>&lt;p&gt;Would it be possible to renew the link to the example zip file. I am really interested in developing a similar application. Since I am a total beginner it would be very useful for me to start with something working.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Broadcaster mode</title><link>https://devzone.nordicsemi.com/thread/114663?ContentTypeID=1</link><pubDate>Mon, 16 Dec 2013 12:45:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cfbf93e-64fd-428d-8c7d-76bfc697a0af</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;As you can see by looking at the code in ble_advdata.c, the function you&amp;#39;ve found is the one that will eventually be called, but only after all the data has been encoded appropriately. If you want to use sd_ble_gap_adv_data_set() directly, you&amp;#39;ll have to do this encoding yourself, which is quite cumbersome and not something I&amp;#39;d recommend.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Broadcaster mode</title><link>https://devzone.nordicsemi.com/thread/114662?ContentTypeID=1</link><pubDate>Thu, 12 Dec 2013 06:13:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fba57b3-876d-4812-931e-0f383e364b1b</guid><dc:creator>sam_football</dc:creator><description>&lt;p&gt;why not use this method sd_ble_gap_adv_data_set(uint8_t const * const p_data, uint8_t dlen, uint8_t const * const p_sr_data, uint8_t srdlen)?
/**@brief Set, clear or update advertisement and scan response data.
*&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;@note The format of the advertisement data will be checked by this call to ensure interoperability.&lt;/li&gt;
&lt;li&gt;
&lt;pre&gt;&lt;code&gt;  Limitations imposed by this API call to the data provided include having a flags data type in the scan response data and
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;pre&gt;&lt;code&gt;  duplicating the local name in the advertisement data and scan response data. 
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;/li&gt;
&lt;li&gt;@note: To clear the advertisement data and set it to a 0-length packet, simply provide a valid pointer (p_data/p_sr_data) with its corresponding&lt;/li&gt;
&lt;li&gt;
&lt;pre&gt;&lt;code&gt;   length (dlen/srdlen) set to 0.
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;/li&gt;
&lt;li&gt;@note: The call will fail if p_data and p_sr_data are both NULL since this would have no effect.&lt;/li&gt;
&lt;li&gt;&lt;/li&gt;
&lt;li&gt;@param[in] p_data    Raw data to be placed in advertisement packet. If NULL, no changes are made to the current advertisement packet data.&lt;/li&gt;
&lt;li&gt;@param[in] dlen      Data length for p_data. Max size: @ref BLE_GAP_ADV_MAX_SIZE octets. Should be 0 if p_data is NULL, can be 0 if p_data is not NULL.&lt;/li&gt;
&lt;li&gt;@param[in] p_sr_data Raw data to be placed in scan response packet. If NULL, no changes are made to the current scan response packet data.&lt;/li&gt;
&lt;li&gt;@param[in] srdlen    Data length for p_sr_data. Max size: @ref BLE_GAP_ADV_MAX_SIZE octets. Should be 0 if p_sr_data is NULL, can be 0 if p_data is not NULL.&lt;/li&gt;
&lt;li&gt;&lt;/li&gt;
&lt;li&gt;@return @ref NRF_SUCCESS Advertisement data successfully updated or cleared.&lt;/li&gt;
&lt;li&gt;@return @ref NRF_ERROR_INVALID_ADDR Invalid pointer supplied.&lt;/li&gt;
&lt;li&gt;@return @ref NRF_ERROR_INVALID_FLAGS Invalid combination of advertising flags supplied.&lt;/li&gt;
&lt;li&gt;@return @ref NRF_ERROR_INVALID_DATA Invalid data type(s) supplied, check the advertising data format specification.&lt;/li&gt;
&lt;li&gt;@return @ref NRF_ERROR_INVALID_LENGTH Invalid data length(s) supplied.&lt;/li&gt;
&lt;li&gt;@return @ref BLE_ERROR_GAP_UUID_LIST_MISMATCH Invalid UUID list supplied.&lt;/li&gt;
&lt;li&gt;@return @ref NRF_ERROR_BUSY The stack is busy, process pending events and retry.
*/
SVCALL(SD_BLE_GAP_ADV_DATA_SET, uint32_t, sd_ble_gap_adv_data_set(uint8_t const * const p_data, uint8_t dlen, uint8_t const * const p_sr_data, uint8_t srdlen));&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Broadcaster mode</title><link>https://devzone.nordicsemi.com/thread/114660?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2013 06:25:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:993d2dba-0357-4ac0-aacb-5800b32a2084</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;Actually, it is per the Bluetooth spec not legal to advertise so called service data with a custom UUID, so creating a custom service and advertise like that wouldn&amp;#39;t work.&lt;/p&gt;
&lt;p&gt;I have however extended my answer above a little, so that you can see how you can use the manufacturer specific data field.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Broadcaster mode</title><link>https://devzone.nordicsemi.com/thread/114656?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2013 17:59:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3703c2c9-21d0-492c-a32a-875f682821a1</guid><dc:creator>Artem Zemlyanukhin</dc:creator><description>&lt;p&gt;Thanks a lot!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Broadcaster mode</title><link>https://devzone.nordicsemi.com/thread/114659?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2013 16:09:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:205d21f1-d6e5-43ef-a6fd-935ba6c4d8cd</guid><dc:creator>Shafy</dc:creator><description>&lt;p&gt;Hi Morten,&lt;/p&gt;
&lt;p&gt;In the sample code you have attached, BLE_UUID_HEALTH_THERMOMETER_SERVICE is used for broadcasting the temperature data.  So is the broadcasting functionality  tied to a service ?&lt;/p&gt;
&lt;p&gt;Suppose I want to broadcast the value of ambient light.  Do I have to create a custom service for light and use that UUID for broadcast ?&lt;/p&gt;
&lt;p&gt;But in the sample code you have provided , I couldnt find any calls to the functions provided by the health thermometer service for  initializing the service.  Please advise how this works .&lt;/p&gt;
&lt;p&gt;Thanks
Shafy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Broadcaster mode</title><link>https://devzone.nordicsemi.com/thread/114655?ContentTypeID=1</link><pubDate>Fri, 04 Oct 2013 13:47:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49d8d222-066a-41f2-8d1f-88089ccf67ba</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;You&amp;#39;re quite correct in your assumptions. You can take a look at the attached project for an example of such application.&lt;/p&gt;
&lt;p&gt;This one will send advertisement data in the format expected by nRF Temp smart phone application, but the basic principles of how to do non-connectable advertising are the same.&lt;/p&gt;
&lt;p&gt;Edit: If the data you want to advertise does not belong to a service, you can use the manufacturer specific data format, like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
ble_advdata_manuf_data_t manuf_specific_data;
manuf_specific_data.company_identifier = YOUR_BLUETOOTH_ASSIGNED_NUMBER;
manuf_specific_data.data.p_data = YOUR_DATA
manuf_specific_data.data.size = sizeof(YOUR_DATA);
...
advdata.p_manuf_specific_data   = &amp;amp;manuf_specific_data;

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The different formats you can use for advertisement data is given in the Core specification, Volume 3, Part C, chapter 18 Appendix C.&lt;/p&gt;
&lt;p&gt;Edit 2: I&amp;#39;ve updated the zip with a new one, including nrf_temp_init().&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_temp.zip"&gt;ble_app_temp.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Broadcaster mode</title><link>https://devzone.nordicsemi.com/thread/114653?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2013 12:56:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ed1be89-617f-47df-a87c-3e114f5404ba</guid><dc:creator>Bastiaan</dc:creator><description>&lt;p&gt;I have the same need.  Very interested in the response.&lt;/p&gt;
&lt;p&gt;Thanks,
Ryan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Broadcaster mode</title><link>https://devzone.nordicsemi.com/thread/114654?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2013 12:56:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9057dbf1-1da7-47ea-9445-9445bf4fa08c</guid><dc:creator>Guest</dc:creator><description>&lt;p&gt;I have the same need.  Very interested in the response.&lt;/p&gt;
&lt;p&gt;Thanks,
Ryan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>