<?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>Setting up broadcast packages ble4.2</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59228/setting-up-broadcast-packages-ble4-2</link><description>Hello, 
 
 For my project I want to use broadcast packages to send data to multiple devices at the same time. 
 I&amp;#39;ve seen that there is a beacon application that &amp;quot;should&amp;quot; broadcast but I&amp;#39;ve noticed that it just sends out advertisement packages with manufacture</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 23 Mar 2020 10:51:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59228/setting-up-broadcast-packages-ble4-2" /><item><title>RE: Setting up broadcast packages ble4.2</title><link>https://devzone.nordicsemi.com/thread/241086?ContentTypeID=1</link><pubDate>Mon, 23 Mar 2020 10:51:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf4b012e-67fb-4d9c-8684-e5da066e47e5</guid><dc:creator>Simon</dc:creator><description>[quote user="T IJsselmuiden"]I always thought broadcasting was done at channel 0.[/quote]
&lt;p&gt;&amp;nbsp;Advertising is done on the advertising channels (&lt;span&gt;37, 38 &amp;amp; 39). Read more about it &lt;a href="https://www.argenox.com/library/bluetooth-low-energy/ble-advertising-primer/"&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;[quote user="T IJsselmuiden"][/quote]&lt;/p&gt;
&lt;p&gt;The problem that I face is that not all LEDs blink at the same moment, I believe from the 6 devices I got a maximum of two LEDs blinking simultaneous.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In the end I want to have my beacon transmit a special package every 1, 2 or 3 seconds or so but all devices must receive this package.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Try to set scan interval equal to scan window in the observers, which will make the devices scan all the time, and catch all the advertising packets. Read more in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/34990/how-can-i-decide-scan-window-interval-for-continuous-scanning-for-central"&gt;this ticket&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up broadcast packages ble4.2</title><link>https://devzone.nordicsemi.com/thread/240603?ContentTypeID=1</link><pubDate>Thu, 19 Mar 2020 10:29:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7d6e39d-2579-499a-ba34-52142b8e2210</guid><dc:creator>T IJ</dc:creator><description>&lt;p&gt;Hey Simon,&lt;/p&gt;
[quote userid="72692" url="~/f/nordic-q-a/59228/setting-up-broadcast-packages-ble4-2/240601"]Even though the devices don&amp;#39;t scan at the same time, they can still see the broadcasting. This is because the beacon device will send several advertising packets. You can change the number of packets sent in a given period, by changing the advertising interval.[/quote]
&lt;p&gt;I always thought broadcasting was done at channel 0.&lt;/p&gt;
&lt;p&gt;I have tested the beacon app and configured multiple servers to listen to advertisement packages with a specific uuid, upon match I blink a LED.&lt;/p&gt;
&lt;p&gt;The problem that I face is that not all LEDs blink at the same moment, I believe from the 6 devices I got a maximum of two LEDs blinking simultaneous.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In the end I want to have my beacon transmit a special package every 1, 2 or 3 seconds or so but all devices must receive this package.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up broadcast packages ble4.2</title><link>https://devzone.nordicsemi.com/thread/240601?ContentTypeID=1</link><pubDate>Thu, 19 Mar 2020 10:21:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5fd4b80-9962-4901-9433-fa13ecd17a97</guid><dc:creator>Simon</dc:creator><description>[quote user=""]I&amp;#39;ve seen that there is a beacon application that &amp;quot;should&amp;quot; broadcast but I&amp;#39;ve noticed that it just sends out advertisement packages with manufacture specific data in it.[/quote]
&lt;p&gt;&amp;nbsp;You can easily change what&amp;#39;s inside the advertisement package. Check out the &lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/ble-advertising-a-beginners-tutorial"&gt;BLE Advertising Tutorial&lt;/a&gt; to get a better understanding.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]This isn&amp;#39;t really helpful because not all devices scan at the exact same moment so the chance of missing a package is quite large.[/quote]
&lt;p&gt;Even though the devices don&amp;#39;t scan at the same time, they can still see the broadcasting. This is because the beacon device will send several advertising packets. You can change the number of packets sent in a given period, by changing the advertising interval.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Furthermore I saw that when setting up a characteristic, you can change the property to broadcast,&amp;nbsp;char_md.char_props.broadcast&amp;nbsp; &amp;nbsp;= 1;[/quote]
&lt;p&gt;&amp;nbsp;If you are only going to broadcast data using a beacon, you don&amp;#39;t need to use char_md and its underlying structures, since it will define a characteristics metadata. For broadcasting/advertising, you don&amp;#39;t need to set up characteristics, since they are only used once a connection is set up.&lt;/p&gt;
[quote user=""]But what does this do? Do I set the data in att_char_value.p_value? Can this be variable data or is it static?[/quote]
&lt;p&gt;&amp;nbsp;Same as the answer above, you don&amp;#39;t need to use this since it only concerns characteristics.&lt;/p&gt;
[quote user=""]My goal is to have a piconet of one central and multiple servers, the central should broadcast a specific package to all devices simultaneous.[/quote]
&lt;p&gt;I assume you mean one broadcaster and multiple observers? Learn the difference between these roles in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/71/what-is-a-client-and-server-in-ble"&gt;this thread&lt;/a&gt;. But to answer your question, I would recommend you to go through the following tutorials (which will help you understand how to set up one&lt;span&gt;&amp;nbsp;broadcaster that broadcast to multiple&amp;nbsp;&lt;/span&gt;&lt;span&gt;observers simultaneously&lt;/span&gt;):&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/ble-advertising-a-beginners-tutorial"&gt;Bluetooth low energy Advertising, a beginner&amp;#39;s tutorial&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/ble-central-tutorial"&gt;Bluetooth low energy central tutorial&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>