<?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>Sending and receiving beacons on demand.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59313/sending-and-receiving-beacons-on-demand</link><description>Our device using nRF52840 is running an external (non-BT) radio most of the time. We need to send and receive data In between operations of this other radio. At any given time, there will be one sender and multiple receivers. Since there will be no BLE</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 24 Apr 2020 09:16:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59313/sending-and-receiving-beacons-on-demand" /><item><title>RE: Sending and receiving beacons on demand.</title><link>https://devzone.nordicsemi.com/thread/246431?ContentTypeID=1</link><pubDate>Fri, 24 Apr 2020 09:16:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5db0c08c-a084-419c-be3c-65220a207e54</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="ilnadi"]Please see attached wireshark log we took using a PCA10000 with&amp;nbsp;nrf_sniffer_for_bluetooth_le_3.0.0_129d2b3.&amp;nbsp; If the timing is what you would expect from S140, then we wil evaluate the timeslot example further.[/quote]
&lt;p&gt;I have taken a look at the provided sniffer trace, and I have some questions:&lt;br /&gt;I see 10+ devices - which one is the beacon in question? Please capture the traffic from the specific device, instead of capturing all devices(since there is a lot of BLE noise in development environments). We will only need to monitor and evaluate 1 of the beacons, to determine if their advertising timing is feasible for your application.&lt;br /&gt;&lt;br /&gt;I am also not sure what you mean when you say &amp;quot;if the timing is what you expect from S140&amp;quot;, could you elaborate?&lt;br /&gt;If you would like me to check if the beacon is behaving as expected, you would need to provide your connection parameters and wanted behavior.&lt;br /&gt;Could you also tell me more about your issue with the capture? Are the advertising intervals not as expected, or are you seeing other unexpected behavior?&lt;br /&gt;&lt;br /&gt;As a side note, are you planning on using scan requests and responses in your application?&lt;br /&gt;That could be something to look into doing, if you are going to use beacons.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending and receiving beacons on demand.</title><link>https://devzone.nordicsemi.com/thread/246133?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2020 02:02:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3f7f204-12f0-4b0f-83b1-929c2b00c68f</guid><dc:creator>ilnadi</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Advertising_5F00_9600ms_5F00_20200422.zip"&gt;devzone.nordicsemi.com/.../Advertising_5F00_9600ms_5F00_20200422.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending and receiving beacons on demand.</title><link>https://devzone.nordicsemi.com/thread/246132?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2020 01:47:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f78feace-2c1a-4696-8807-4c3e84273ed2</guid><dc:creator>ilnadi</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/59313/sending-and-receiving-beacons-on-demand/245856"]If this does not fit your application requirements, then I suggest making use of the Timeslot API to schedule proprietary radio communication window[/quote]
&lt;p&gt;Based on a quick look, this again seems to drive the radio registers directly.&amp;nbsp; we are trying to avoid operating at that level foe now.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/59313/sending-and-receiving-beacons-on-demand/245856"]The timing from the nRF Connect app is dependable, but as I mentioned earlier, I suggest that you use a Sniffer tool to analyze BLE traffic, since it gives you a much higher level of detail.[/quote]
&lt;p&gt;Please see attached wireshark log we took using a PCA10000 with&amp;nbsp;nrf_sniffer_for_bluetooth_le_3.0.0_129d2b3.&amp;nbsp; If the timing is what you would expect from S140, then we wil evaluate the timeslot example further.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending and receiving beacons on demand.</title><link>https://devzone.nordicsemi.com/thread/245856?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2020 13:37:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4e7d980-2931-4805-964b-cf55ca8c719c</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hi again,&lt;br /&gt;&lt;br /&gt;Thank you for your patience.&lt;/p&gt;
[quote user="ilnadi"]we have now run some experiments and not quite sure whether we are seeing an issue or not.[/quote]
&lt;p&gt;What do you mean by this, are you no longer seeing the original issue?&lt;/p&gt;
[quote user="ilnadi"]Have you been able to confirm how soon after&amp;nbsp;sd_ble_gap_adv_start() the first beacon will be transmitted?&amp;nbsp;&amp;nbsp;[/quote]
&lt;p&gt;I have not looked further into how long it takes the hardware to respond to the call, but &amp;nbsp;However, please keep in mind the random 3 - 13 ms delay added before advertising packets, as written about in the S140 documentation -&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/multilink_scheduling/advertiser_timing.html"&gt;advertising scheduling&lt;/a&gt;&amp;nbsp;and &lt;a href="https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/multilink_scheduling/suggested_intervals_windows_s132.html"&gt;suggested intervals and windows&lt;/a&gt;&amp;nbsp;in particular.&lt;br /&gt;The delay is part of the BLE specifications, and can not be omitted if you are to use BLE.&lt;br /&gt;You may check it by using a &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Sniffer-for-Bluetooth-LE/"&gt;Sniffer tool&lt;/a&gt;&amp;nbsp;for monitoring the BLE traffic, complete with timestamps and contents of each advertised packet.&lt;br /&gt;&lt;br /&gt;If this does not fit your application requirements, then I suggest making use of the Timeslot API to schedule proprietary radio communication windows.&lt;br /&gt;Using a proprietary protocol could significantly reduce your latency, which sounds to be your main concern. Timeslots will give you complete control(no SD interruption) over the radio for their duration. If you would like to take a look at this, I can recommend this tutorial on &lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/software-development-kit/posts/setting-up-the-timeslot-api"&gt;setting up the Timeslot API&lt;/a&gt;&amp;nbsp;for starters.&lt;br /&gt;&lt;a href="https://github.com/NordicPlayground/nRF51-multi-role-conn-observer-advertiser"&gt;This example code&lt;/a&gt; could also be useful to have a look at, when looking for demonstrations of Timeslot API usage for the purpose you describe. Unfortunetely, said example is now a bit old - written for the nRF51 DK - but it is still relevant and the principles still hold.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="ilnadi"]We are detecting the beacons using nRF Connect for Android v.4.24.1 and see a 30-50ms difference in beacon-to-beacon timing even though we are calling&amp;nbsp;&lt;span&gt;sd_ble_gap_adv_start() with fixed (3.2sec) intervals.&amp;nbsp; We are pretty sure about&amp;nbsp;our timing because this timing&amp;nbsp;also controls the other radio which has been tested in detail.&amp;nbsp; How dependable is the timing&amp;nbsp;from&amp;nbsp;nRF Connect for Android?&lt;/span&gt;[/quote]
&lt;p&gt;The timing from the nRF Connect app is dependable, but as I mentioned earlier, I suggest that you use a Sniffer tool to analyze BLE traffic, since it gives you a much higher level of detail.&lt;br /&gt;With the Sniffer tool running, you are also able to capture a sniffer trace - a log of the BLE traffic - so that I may better see what you are experiencing on your end.&lt;br /&gt;&lt;br /&gt;Looking forward to resolving this issue together,&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending and receiving beacons on demand.</title><link>https://devzone.nordicsemi.com/thread/245657?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2020 19:54:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a46714ec-dfc5-42c3-8819-9e82a1339d82</guid><dc:creator>ilnadi</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/59313/sending-and-receiving-beacons-on-demand/245311"]Yes, or at least immediate in the sense that it will not have to wait for a given timeslot to begin advertising.&lt;br /&gt;I am unsure of the real-time delay between the function call and the first advertisemen[/quote]
&lt;p&gt;we have now run some experiments and not quite sure whether we are seeing an issue or not.&lt;/p&gt;
&lt;p&gt;Have you been able to confirm how soon after&amp;nbsp;sd_ble_gap_adv_start() the first beacon will be transmitted?&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Additionally we need to know a few things about sd_ble_gap_adv_stop():&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;what would happen if we call this while the beacon is being transmitted?&lt;/li&gt;
&lt;li&gt;how soon after calling this are we guaranteed that the transmitter will not turn on&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We are detecting the beacons using nRF Connect for Android v.4.24.1 and see a 30-50ms difference in beacon-to-beacon timing even though we are calling&amp;nbsp;&lt;span&gt;sd_ble_gap_adv_start() with fixed (3.2sec) intervals.&amp;nbsp; We are pretty sure about&amp;nbsp;our timing because this timing&amp;nbsp;also controls the other radio which has been tested in detail.&amp;nbsp; How dependable is the timing&amp;nbsp;from&amp;nbsp;nRF Connect for Android?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending and receiving beacons on demand.</title><link>https://devzone.nordicsemi.com/thread/245311?ContentTypeID=1</link><pubDate>Fri, 17 Apr 2020 19:11:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4eb09de-8bd9-4ecc-bd61-b8f2da8ce3ae</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="ilnadi"]We will experiment and see if it works.&amp;nbsp; One question: will the first beacon go out immediately when we call&amp;nbsp;sd_ble_gap_adv_start()?[/quote]
&lt;p&gt;Great, I&amp;#39;ll look forward to any updates on the development!&lt;br /&gt;Yes, or at least immediate in the sense that it will not have to wait for a given timeslot to begin advertising.&lt;br /&gt;I am unsure of the real-time delay between the function call and the first advertisement.&lt;/p&gt;
[quote user="ilnadi"]Is this example relevant?[/quote]
&lt;p&gt;Yes, you may use the Eddystone beacon as your foundation instead of the beacon example. I do not suppose it will make you able to broadcast any faster or &amp;quot;on demand&amp;quot; - since it still follows the BLE Specifications - but you could definitely make use of its added security features.&lt;/p&gt;
[quote user="ilnadi"]Can we listen at specific times for beacons while transmitting a beacon?&amp;nbsp;[/quote]
&lt;p&gt;You may scan for advertisement packets at specific times, yes.&lt;br /&gt;Just remember that a beacon is non-connectable, so what you are listening for is advertising packets.&lt;/p&gt;
[quote user="ilnadi"]Does this mean we have to operate as &amp;quot;multirole&amp;quot;?&amp;nbsp; It looks like S140 can support this, please confirm.[/quote]
&lt;p&gt;I can confirm that S140 supports the multirole, as demonstrated in the experimental multirole exmaples from the SDK.&lt;br /&gt;However, I am not sure it is multirole you are looking for, since the functionality demonstrated in multirole is to act both as a central and peripheral device.&lt;br /&gt;The central role is the initiator of BLE connections and communication.&lt;br /&gt;However, I do not see why the beacons would need to act as a central at any time? Perhaps I am missing something in my understanding of your application?&lt;/p&gt;
[quote user="ilnadi"]I looked at the examples under &amp;quot;ble_central_and_peripheral&amp;quot; and &amp;quot;ble_app_hrs_rscs_relay&amp;quot; seems the most relevant.&amp;nbsp; is there a better multirole example?[/quote]
&lt;p&gt;Both these examples are good examples for demonstrating a device acting both as a central and a peripheral, but as I said I am not sure this is what you are looking for.&lt;br /&gt;Just remember that these are experimental examples.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending and receiving beacons on demand.</title><link>https://devzone.nordicsemi.com/thread/245052?ContentTypeID=1</link><pubDate>Thu, 16 Apr 2020 14:31:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e422b464-d304-4660-938b-3c11ab46d9c7</guid><dc:creator>ilnadi</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/59313/sending-and-receiving-beacons-on-demand/244915"]If you are concerned about IP, I can convert this ticket to a private ticket - viewable only to you and the support staff here at Nordic Semiconductor. Would you like me to do that?[/quote]
&lt;p&gt;I think you understood my problem so no need.&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/59313/sending-and-receiving-beacons-on-demand/244915"]&amp;nbsp;Aha, I see what you mean. Well, I suppose you could attempt to start an advertising at the beginning of the slot and stop it at the end - could you attempt this, and let me know if it suits your application?[/quote]
&lt;p&gt;We will experiment and see if it works.&amp;nbsp; One question: will the first beacon go out immediately when we call&amp;nbsp;sd_ble_gap_adv_start()?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is this example relevant?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v16.0.0%2Fble_sdk_app_es.html"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v16.0.0%2Fble_sdk_app_es.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It seems to be for telemetry, which is closer t what we&amp;#39;redoing than an information beacon. Plus the encryption part of is is compelling.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Now we have to discuss the second part: receiving.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;We need the same devices to listen for beacons when they are not transmitting (blue boxes in the picture above).&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Can we listen at specific times for beacons while transmitting a beacon?&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Does this mean we have to operate as &amp;quot;multirole&amp;quot;?&amp;nbsp; It looks like S140 can support this, please confirm.&lt;/li&gt;
&lt;li&gt;I looked at the examples under &amp;quot;ble_central_and_peripheral&amp;quot; and &amp;quot;ble_app_hrs_rscs_relay&amp;quot; seems the most relevant.&amp;nbsp; is there a better multirole example?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&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: Sending and receiving beacons on demand.</title><link>https://devzone.nordicsemi.com/thread/244915?ContentTypeID=1</link><pubDate>Thu, 16 Apr 2020 09:57:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13014f00-e2da-4a62-94c5-09faf5516d1f</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="ilnadi"]Please see attached drawing, this is the best I can do without violating NDA.[/quote]
&lt;p&gt;If you are concerned about IP, I can convert this ticket to a private ticket - viewable only to you and the support staff here at Nordic Semiconductor. Would you like me to do that?&lt;/p&gt;
[quote user="ilnadi"]I only asked about Radio HAL because of the solar beacon example you pointed to.&amp;nbsp; I have no desire to control the radio at that level.&amp;nbsp;[/quote]
&lt;p&gt;That is good. I linked you that example because I thought it sounded like you would like to control it directly - since it seemed SD scheduling of packet transfer was infeasible for your application.&lt;/p&gt;
[quote user="ilnadi"]This is why originally asked about how I can manually send/receive packets using the SDK.&amp;nbsp; If there are no examples, please point me to the drivers you mention above, and I&amp;#39;ll go from there.&amp;nbsp; I have not been able to find such in the SDK (see above for what I was able to find).[/quote]
&lt;p&gt;You are correct that there is no examples of this in the SDK, because of the specifications for BLE Communication. They dictate the possible range and order of connection- and advertising-intervals - so it is not supported to send packets whenever.&lt;br /&gt;However, I suppose you could attempt to start and stop advertising rapidly, to achieve this using the Beacon example - but I have not tried this myself so I can not guarantee it will work, but you may attempt it to see if it suits your requirements for on demand advertising.&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
[quote user="ilnadi"]The &amp;quot;problem&amp;quot; slots are the striped ones that he devices may use asynchronously based on events beyond this discussion.[/quote]
&lt;p&gt;&amp;nbsp;Aha, I see what you mean. Well, I suppose you could attempt to start an advertising at the beginning of the slot and stop it at the end - could you attempt this, and let me know if it suits your application?&lt;br /&gt;&lt;br /&gt;Looking forward to resolving this issue together,&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending and receiving beacons on demand.</title><link>https://devzone.nordicsemi.com/thread/244807?ContentTypeID=1</link><pubDate>Wed, 15 Apr 2020 17:47:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:328f25ee-cb7d-4182-b031-3d75d43f164b</guid><dc:creator>ilnadi</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/59313/sending-and-receiving-beacons-on-demand/244764"]The example demonstrates use of the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__nrf__radio__hal.html"&gt;Radio HAL&lt;/a&gt; directly, which you could read more about &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fradio.html"&gt;here&lt;/a&gt;. You are free to do this as well, but I would highly recommend that you rather make use of the drivers and examples from the SDK - to make things a lot easier.[/quote]
&lt;p&gt;Karl,&lt;/p&gt;
&lt;p&gt;I only asked about Radio HAL because of the solar beacon example you pointed to.&amp;nbsp; I have no desire to control the radio at that level.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is why originally asked about how I can manually send/receive packets using the SDK.&amp;nbsp; If there are no examples, please point me to the drivers you mention above, and I&amp;#39;ll go from there.&amp;nbsp; I have not been able to find such in the SDK (see above for what I was able to find).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/59313/sending-and-receiving-beacons-on-demand/244764"]Could you possibly provide an overview of the entire radio period, which indications of how long each time-slot is, and how many there are? I am having a hard time understanding why setting up a broadcaster, such as in the beacon example, is not feasible for your application[/quote]
&lt;p&gt;Please see attached drawing, this is the best I can do without violating NDA.&amp;nbsp; The &amp;quot;problem&amp;quot; slots are the striped ones that he devices may use asynchronously based on events beyond this discussion.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/478x197/__key/communityserver-discussions-components-files/4/BLEinterweaving.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending and receiving beacons on demand.</title><link>https://devzone.nordicsemi.com/thread/244764?ContentTypeID=1</link><pubDate>Wed, 15 Apr 2020 14:05:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9a69be7-f3bc-4665-a808-a5e605297577</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="ilnadi"]first,both radios are controlled by the 52840 so we can easily schedule both.&amp;nbsp; the question was more about sending BLE packets on demand.&amp;nbsp;&amp;nbsp;[/quote]
&lt;p&gt;I see. Well, here I would have to refer to the BLE specification with regards to how transfers between connected devices must be done - at the agreed upon connection intervals. However, with non-connectable devices such as beacons(broadcasters) in your case, the advertisements can happen at any given interval within the specific advertising range - by setting the advertisement interval accordingly. You could potentially also start the advertisement following an interrupt, thus ensuring that the advertisements sync up with your other devices.&lt;br /&gt;&lt;br /&gt;Alternatively, you can ensure that you are broadcasting in the allotted time-slot by having an advertising interval which is bound to occur within the time-slot(preferably also accounting for potential packet loss).&lt;/p&gt;
[quote user="ilnadi"]This is because in certain circumstances the customer wants us to re-broadcast in unused slots to increase the chance of reception.&amp;nbsp;[/quote]
&lt;p&gt;Could you possibly provide an overview of the entire radio period, which indications of how long each time-slot is, and how many there are? I am having a hard time understanding why setting up a broadcaster, such as in the beacon example, is not feasible for your application.&lt;/p&gt;
[quote user="ilnadi"]this example is 5yrs old and does not use softdevice or nRF SDK. Instead it writes directly to a handful of RADIO registers.&amp;nbsp; I want to make sure it is still OK to use.[/quote][quote user="ilnadi"]Is there any equivalent SDK functionality to use (without SD)?&amp;nbsp; I found ble_radio_notification, radio_config, and nrf_radio.h but none of these have send/receive functions.[/quote]
&lt;p&gt;The example demonstrates use of the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__nrf__radio__hal.html"&gt;Radio HAL&lt;/a&gt; directly, which you could read more about &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fradio.html"&gt;here&lt;/a&gt;. You are free to do this as well, but I would highly recommend that you rather make use of the drivers and examples from the SDK - to make things a lot easier.&lt;br /&gt;&lt;br /&gt;Looking forward to solving this issue together,&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending and receiving beacons on demand.</title><link>https://devzone.nordicsemi.com/thread/244559?ContentTypeID=1</link><pubDate>Tue, 14 Apr 2020 22:50:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:116bb62a-12e8-4d11-9b3e-11948ed123ad</guid><dc:creator>ilnadi</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/59313/sending-and-receiving-beacons-on-demand/244456"]This is demonstrated in the &lt;a href="https://github.com/NordicPlayground/solar_sensor_beacon"&gt;Solar Beacon example&lt;/a&gt;. Note how the sensor_handler is called at an interval, every time a reading is to be done and thereafter transferred, the rest of the time the device consumes very little power.[/quote]
&lt;p&gt;I wanted to confirm a few things:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;this example is 5yrs old and does not use softdevice or nRF SDK. Instead it writes directly to a handful of RADIO registers.&amp;nbsp; I want to make sure it is still OK to use.&lt;/li&gt;
&lt;li&gt;Is there any equivalent SDK functionality to use (without SD)?&amp;nbsp; I found ble_radio_notification, radio_config, and nrf_radio.h but none of these have send/receive functions.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending and receiving beacons on demand.</title><link>https://devzone.nordicsemi.com/thread/244461?ContentTypeID=1</link><pubDate>Tue, 14 Apr 2020 13:34:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50066942-aa78-4429-937f-985ccc97b7e6</guid><dc:creator>ilnadi</dc:creator><description>&lt;p&gt;[quote userid="87869" url="~/f/nordic-q-a/59313/sending-and-receiving-beacons-on-demand/244456"][/quote]&lt;/p&gt;
&lt;blockquote class="quote"&gt;
&lt;div class="quote-user"&gt;ilnadi said:&lt;/div&gt;
&lt;div class="quote-content"&gt;unfortunately the customer has additional requirements for repeating the information asynchronously based on criteria outside BLE considerations.&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div class="quote-footer"&gt;&lt;/div&gt;
&lt;p&gt;I am not sure I understood what you meant here. Is the intervals for transmission changing? If so, the GPIO interrupt might solve this as well.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;first,both radios are controlled by the 52840 so we can easily schedule both.&amp;nbsp; the question was more about sending BLE packets on demand.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What I meant above is: although we have a periodic schedule and a specific 20ms window allocated to each&amp;nbsp;device within that schedule, we cannot simply do a periodic beacon (even if we could synchronize).&amp;nbsp; This is because in certain circumstances the customer wants us to re-broadcast in unused slots to increase the chance of reception.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Having said all that, being able to transmit and receive on demand will meet all our needs.&lt;/p&gt;
&lt;p&gt;I will check the solar beacon example.&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: Sending and receiving beacons on demand.</title><link>https://devzone.nordicsemi.com/thread/244456?ContentTypeID=1</link><pubDate>Tue, 14 Apr 2020 13:25:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9e38774-f599-4c18-b2fd-35dad63dfa39</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;I understand.&lt;br /&gt;This is demonstrated in the &lt;a href="https://github.com/NordicPlayground/solar_sensor_beacon"&gt;Solar Beacon example&lt;/a&gt;. Note how the sensor_handler is called at an interval, every time a reading is to be done and thereafter transferred, the rest of the time the device consumes very little power.&lt;br /&gt;To make sure that the intervals are synchronized with your other device, could you for example use a GPIO interrupt? Would that be feasible?&lt;/p&gt;
[quote user="ilnadi"]unfortunately the beacon must fall in a specific 20ms window.&amp;nbsp; Is there a way to make the advertising scheduled synchronized or start i at a particular time?[/quote]
&lt;p&gt;Yes, this is possible. See the Solar Beacon example I linked above for an example on how to do this.&lt;/p&gt;
[quote user="ilnadi"]unfortunately the customer has additional requirements for repeating the information asynchronously based on criteria outside BLE considerations.[/quote]
&lt;p&gt;I am not sure I understood what you meant here. Is the intervals for transmission changing? If so, the GPIO interrupt might solve this as well.&lt;br /&gt;&lt;br /&gt;I would recommend using the Beacon examples as a basis for your application, instead of going the route with L2CAP.&lt;br /&gt;&lt;br /&gt;Looking forward to solving this issue together!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending and receiving beacons on demand.</title><link>https://devzone.nordicsemi.com/thread/244206?ContentTypeID=1</link><pubDate>Fri, 10 Apr 2020 02:51:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfd66faa-e60c-40cd-9467-eb7f3dc05531</guid><dc:creator>ilnadi</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/59313/sending-and-receiving-beacons-on-demand/240931"]Please also see the short tutorial I linked, as it details how you can easily set up the broadcasting/beacon in the manufacturer specific data field of the advertisement packets.[/quote]
&lt;p&gt;I have read the tutorial and run the example and they are both based on GAP/GATT-based scheduling (i.e. they use&amp;nbsp;sd_ble_gap_adv_start() ).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I need to be able to send the beacon on my own schedule&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;fortunately the main schedule is divisible by 625usec.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;unfortunately the beacon must fall in a specific 20ms window.&amp;nbsp; Is there a way to make the advertising scheduled synchronized or start i at a particular time?&lt;/li&gt;
&lt;li&gt;unfortunately the customer has additional requirements for repeating the information asynchronously based on criteria outside BLE considerations.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;All of this leads me to think we need to go back to L2CAP so we can&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;on the sender &amp;quot;send this packet now&amp;quot; (&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v6.1.1/group___b_l_e___l2_c_a_p___c_h___t_x___m_s_c.html"&gt;see message flow&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;on the receiver &amp;quot;turn on receiver&amp;quot; then after the window is over, &amp;quot;turn off receiver&amp;quot; (&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v6.1.1/group___b_l_e___l2_c_a_p___c_h___t_x___m_s_c.html"&gt;see message flow&lt;/a&gt;)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Are there any examples of L2CAP usage?&amp;nbsp; The only thing I can fidn related to L2CAP in the SDK (15.3.0) is related to serialization.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending and receiving beacons on demand.</title><link>https://devzone.nordicsemi.com/thread/240931?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2020 16:22:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f09909c7-c26a-4ccf-889b-6c7d6fe27d13</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Based on your replies I think you will find the BLE Beacon example very helpful.&lt;br /&gt;Please also see the short tutorial I linked, as it details how you can easily set up the broadcasting/beacon in the manufacturer specific data field of the advertisement packets.&lt;/p&gt;
[quote user="ilnadi"]thank you[/quote]
&lt;p&gt;No problem at all, I am happy to help!&lt;br /&gt;Let me know if you should encounter any issues or questions moving forward.&lt;br /&gt;&lt;br /&gt;Best of luck with you development!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending and receiving beacons on demand.</title><link>https://devzone.nordicsemi.com/thread/240929?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2020 16:06:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6925dbe-073a-4364-accf-ef67f0278168</guid><dc:creator>ilnadi</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/59313/sending-and-receiving-beacons-on-demand/240782"]What size is the data that you are looking to broadcast on the BLE transmit?[/quote]
&lt;p&gt;small, likely 2-3 bytes.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/59313/sending-and-receiving-beacons-on-demand/240782"]Since I do not know what other radio protocol you are using, I assume that you know you have sufficient time to switch between BLE and the other radio[/quote]
&lt;p&gt;We have a 20ms window to switch, transmit, switch back.&amp;nbsp; The receivers will be listening for as much of that 20ms as they can.&amp;nbsp; My calculations say this is enough.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/59313/sending-and-receiving-beacons-on-demand/240782"]Have you seen the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/ble_sdk_app_beacon.html"&gt;BLE Beacon example&lt;/a&gt;? If you are not familiar with advertising in BLE, I suggest reading &lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/ble-advertising-a-beginners-tutorial"&gt;this short tutorial&lt;/a&gt;.[/quote]
&lt;p&gt;I have not, I have used nRF parts &amp;amp; SD in classical peripheral devices but learning about beacons now.&amp;nbsp; I will read both of these and reply here if I have any questions.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/59313/sending-and-receiving-beacons-on-demand/240782"]Is this only because you want to have a non-connectable, broadcasting device?[/quote]
&lt;p&gt;Correct.&lt;/p&gt;
&lt;p&gt;&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: Sending and receiving beacons on demand.</title><link>https://devzone.nordicsemi.com/thread/240782?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2020 09:23:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b5b3362-b751-4188-93a2-e101d717ed26</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;What size is the data that you are looking to broadcast on the BLE transmit?&lt;br /&gt;As you said, the beacon functionality might be useful for your application.&lt;br /&gt;Beacons broadcast their data as part of the&amp;nbsp;&lt;em&gt;Manufacturer Specific Data&amp;nbsp;&lt;/em&gt;field of their advertising packages.&lt;br /&gt;Have you seen the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/ble_sdk_app_beacon.html"&gt;BLE Beacon example&lt;/a&gt;? If you are not familiar with advertising in BLE, I suggest reading &lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/ble-advertising-a-beginners-tutorial"&gt;this short tutorial&lt;/a&gt;.&lt;br /&gt;The main things for you to note here is the limited size of advertising packets, and that you may change your advertising interval period, to configure how often the transmits happen.&lt;br /&gt;&lt;br /&gt;Since I do not know what other radio protocol you are using, I assume that you know you have sufficient time to switch between BLE and the other radio.&lt;/p&gt;
[quote user=""]We are assuming/hoping this will be possible using L2CAP functions instead of GAP/GATT functions and never starting any GATT scheduling.&amp;nbsp; However the L2CAP message sequence charts in SD140 v7.0.1 all show two-way communication.[/quote]
&lt;p&gt;Is this only because you want to have a non-connectable, broadcasting device?&lt;br /&gt;If you, I think the beacon functionality might be what you are looking for.&lt;br /&gt;&lt;br /&gt;Please have a look at the BLE Beacon &amp;amp; Advertising tutorial, and get back to me with how you think this might fit with your application.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>