<?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>iBeacon emulator without SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65435/ibeacon-emulator-without-sdk</link><description>Hi, I am trying to make the iBeacon emulator using nRF52840-DK without SDK. I have found the iBeacon packet format. 
 
 When I send this packet using SDK, that worked. Now I want to change the MAC address to emulate hundreds of beacons, so I used NRF_RADIO</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 17 Sep 2020 12:47:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65435/ibeacon-emulator-without-sdk" /><item><title>RE: iBeacon emulator without SDK</title><link>https://devzone.nordicsemi.com/thread/270096?ContentTypeID=1</link><pubDate>Thu, 17 Sep 2020 12:47:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c41d71be-57b5-4c12-8781-9df90fb36de1</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Did you start the external HF crystal before starting the advertising?&lt;/p&gt;
&lt;p&gt;The 32MHz HF crystal is disabled by default, and if you don&amp;#39;t enable it the radio will not transmit on the correct frequency.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: iBeacon emulator without SDK</title><link>https://devzone.nordicsemi.com/thread/269721?ContentTypeID=1</link><pubDate>Tue, 15 Sep 2020 15:30:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:090fdd71-8725-48b7-a2ae-92881d7be115</guid><dc:creator>honestech74</dc:creator><description>&lt;p&gt;Hi, &lt;a href="https://devzone.nordicsemi.com/members/ovrebekk"&gt;ovrebekk&lt;/a&gt;&lt;br /&gt;I am sorry for the late reply.&lt;br /&gt;&lt;br /&gt;I already got started from your linked example but didn&amp;#39;t get a good result.&lt;br /&gt;But I think you answered as you can.&lt;br /&gt;If you can suggest any better example, I&amp;#39;ll like &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: iBeacon emulator without SDK</title><link>https://devzone.nordicsemi.com/thread/267549?ContentTypeID=1</link><pubDate>Wed, 02 Sep 2020 08:13:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9eb269b-e87f-44c9-b062-6bf0c8957054</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The green area is the HCI header, and you can find the full description at page 2382 of the Bluetooth 5.2 specification (Vol 4, Part E, Section 7.7.65.2).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;0x04 marks this as an HCI event. &lt;br /&gt;0x3E is the event code shared by all LE events.&amp;nbsp;&lt;br /&gt;0x2A is the length of the packet&lt;br /&gt;0x02 marks this as an advertising report event&lt;br /&gt;0x01 is the number of responses in the event&lt;br /&gt;0x00 means it is a connectable and scannable undirected advertising packet (ADV_IND)&lt;br /&gt;0x01 mean the device is using a random device address&lt;/p&gt;
&lt;p&gt;And the final 0xB4 at the end of the packet is the RSSI value.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;While you can use one device to simulate multiple beacons, one thing this will not allow you to simulate is how real beacons will have independent timing, and will at times get into timing conflicts where two or more beacons send data at the same time.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In order to simulate this behavior you need to use multiple beacon emulators, but at a minimum you can use this method to simulate more beacons than you would otherwise be able to.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;While we don&amp;#39;t have an official example showing how to implement a beacon from scratch, I would suggest having a look at hal_radio.c from the solar panel beacon example on Github:&lt;br /&gt;&lt;a href="https://github.com/NordicPlayground/solar_sensor_beacon/blob/master/src/hal_radio.c#L89"&gt;https://github.com/NordicPlayground/solar_sensor_beacon/blob/master/src/hal_radio.c#L89&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The function l linked to will set up the radio to be compatible with BLE, including the access address used for Bluetooth advertise packets.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>