<?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>Custom Radio channel</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107583/custom-radio-channel</link><description>&amp;quot;Hello, I&amp;#39;m using NCS v2.4.2 with an nRF52840DK and attempting to configure a custom radio channel with frequencies like 2403MHz and 2405MHz. I followed the provided instructions; 
 https://github.com/Simula-UiB/mesh-node/blob/main/net_core/src/radio</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 30 Jan 2024 11:33:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107583/custom-radio-channel" /><item><title>RE: Custom Radio channel</title><link>https://devzone.nordicsemi.com/thread/466731?ContentTypeID=1</link><pubDate>Tue, 30 Jan 2024 11:33:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f073678f-b427-469f-a451-74437713a71d</guid><dc:creator>hari</dc:creator><description>&lt;p&gt;&lt;span&gt;Thank you so much for your help! I really appreciate it. Everything is working fine now&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Radio channel</title><link>https://devzone.nordicsemi.com/thread/466214?ContentTypeID=1</link><pubDate>Fri, 26 Jan 2024 12:41:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43021afb-5822-40eb-a7fa-e1c177d7c8ca</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>[quote user="Neeveetech"]&lt;p&gt;My current question is, how do I configure my BLE advertising packets as ADV_NONCONN_IND, including parameters like Tx Address (such as BLE source address)?&lt;/p&gt;
&lt;p&gt;I have come across several references, but I couldn&amp;#39;t find a clear understanding of how to configure the advertising PDU exactly for Bluetooth advertisement. I need to configure it in a way that aligns with my radio configuration, specifying a custom frequency for the BLE advertising packet.&lt;/p&gt;[/quote]
&lt;p&gt;As said before, the Bluetooth Core specification is the best source for understanding the packet structure of advertising packets.&lt;/p&gt;
&lt;p&gt;The previously linked GitHub example is an open-source implementation of a Bluetooth advertiser. These links should help you understand how to construct the package and set the correct registers in the RADIO peripheral:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Radio config: &lt;a href="https://github.com/NordicPlayground/nRF51-multi-role-conn-observer-advertiser/blob/master/btle_hci/advertiser/ts_peripheral.c#L66-L106"&gt;https://github.com/NordicPlayground/nRF51-multi-role-conn-observer-advertiser/blob/master/btle_hci/advertiser/ts_peripheral.c#L66-L106&lt;/a&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;BLE packet type:&amp;nbsp;&lt;a href="https://github.com/NordicPlayground/nRF51-multi-role-conn-observer-advertiser/blob/master/btle_hci/advertiser/ts_controller.c#L424-L425"&gt;https://github.com/NordicPlayground/nRF51-multi-role-conn-observer-advertiser/blob/master/btle_hci/advertiser/ts_controller.c#L424-L425&lt;/a&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;BLE address:&amp;nbsp;&lt;a href="https://github.com/NordicPlayground/nRF51-multi-role-conn-observer-advertiser/blob/master/btle_hci/advertiser/ts_controller.c#L561-L564"&gt;https://github.com/NordicPlayground/nRF51-multi-role-conn-observer-advertiser/blob/master/btle_hci/advertiser/ts_controller.c#L561-L564&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;PDU struct:&amp;nbsp;&lt;a href="https://github.com/NordicPlayground/nRF51-multi-role-conn-observer-advertiser/blob/master/advertiser/main.c#L106-L124"&gt;https://github.com/NordicPlayground/nRF51-multi-role-conn-observer-advertiser/blob/master/advertiser/main.c#L106-L124&lt;/a&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;PDU into packet + length:&amp;nbsp;&lt;a href="https://github.com/NordicPlayground/nRF51-multi-role-conn-observer-advertiser/blob/master/btle_hci/advertiser/ts_controller.c#L626-L637"&gt;https://github.com/NordicPlayground/nRF51-multi-role-conn-observer-advertiser/blob/master/btle_hci/advertiser/ts_controller.c#L626-L637&lt;/a&gt;&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
[quote user="Neeveetech"]If I send the packet on Bluetooth advertisement channels, will the sniffer be able to receive the message?[/quote]
&lt;p&gt;Yes, as long as the package is constructed following the Bluetooth Core specifications, the sniffer should be able to receive the advertising packets transmitted on advertising channels.&lt;/p&gt;
[quote user="Neeveetech"]If i send the packet on custom channels (such as 2403, 2405, etc.), I will still be able to receive it from receiver.[/quote]
&lt;p&gt;Yes, as long as the receiver is configured to receive packets on that frequency, address, etc, it should receive the packet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Radio channel</title><link>https://devzone.nordicsemi.com/thread/466098?ContentTypeID=1</link><pubDate>Thu, 25 Jan 2024 16:51:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0784fda6-7c9a-4ced-94ea-f3fc5ece96cb</guid><dc:creator>hari</dc:creator><description>&lt;p&gt;&lt;span&gt;Thank you for providing this information!&lt;/span&gt;&lt;/p&gt;
[quote userid="14926" url="~/f/nordic-q-a/107583/custom-radio-channel/465323"]If you set the correct address, the sniffer should be able to receive the packets. However, I&amp;#39;m not sure if the sniffer will also filter packets that do not follow the packet structure of BLE advertising packets.[/quote]
&lt;p&gt;Now that I have set the correct address (access address), I can successfully receive it from another development kit with a radio receiver example, as you suggested earlier.&lt;/p&gt;
&lt;p&gt;My current question is, how do I configure my BLE advertising packets as ADV_NONCONN_IND, including parameters like Tx Address (such as BLE source address)?&lt;/p&gt;
&lt;p&gt;I have come across several references, but I couldn&amp;#39;t find a clear understanding of how to configure the advertising PDU exactly for Bluetooth advertisement. I need to configure it in a way that aligns with my radio configuration, specifying a custom frequency for the BLE advertising packet.&lt;/p&gt;
&lt;p&gt;If I send the packet on Bluetooth advertisement channels, will the sniffer be able to receive the message?&lt;br /&gt;&lt;br /&gt;&lt;span&gt; If i send the packet on custom channels (such as 2403, 2405, etc.), I will still be able to receive it from receiver.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Radio channel</title><link>https://devzone.nordicsemi.com/thread/465323?ContentTypeID=1</link><pubDate>Mon, 22 Jan 2024 13:12:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42b78d88-9d19-4bb0-bb5e-85db1f9161d1</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>[quote user="Neeveetech"]If I change the access address for Bluetooth LE packets, will I be able to observe it on the sniffer, given the constraint that the sniffer hardware can only scan one channel at a time with a specific device selected to follow?[/quote]
&lt;p&gt;If you set the correct address, the sniffer should be able to receive the packets. However, I&amp;#39;m not sure if the sniffer will also filter packets that do not follow the packet structure of BLE advertising packets.&lt;/p&gt;
[quote user="Neeveetech"]Additionally, when using BLE APIs, I can easily monitor the BLE address, but in this scenario, how can I effectively monitor it? How can I set a BLE static address?[/quote]
&lt;p&gt;The BLE address is part of the packet header. I recommend you to read the Bluetooth Core specifications to understand how Bluetooth packets are formatted.&lt;/p&gt;
[quote user="Neeveetech"]Lastly, if the sniffer disregards channels not defined by the Bluetooth specification (2402-2480 MHz in 2 MHz steps), what alternatives are available to monitor whether packets have been sent on (2403,2405MHz)or not?[/quote]
&lt;p&gt;It does not disregard packets, but since it is implemented to scan for BLE packets, it only supports scanning on channels that are defined by the BLE specifications.&lt;/p&gt;
&lt;p&gt;You can implement your own custom receiver using code similar to&amp;nbsp;&lt;a title="Radio Receiver Example" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/nrf_dev_radio_rx_example.html?cp=9_1_4_6_29"&gt;Radio Receiver Example&lt;/a&gt;&amp;nbsp;from nRF5 SDK, but this will not integrate with Wireshark. Wireshark will also not work with non-Bluetooth formatted packets without writing your own packet dissector plugin.&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><item><title>RE: Custom Radio channel</title><link>https://devzone.nordicsemi.com/thread/465137?ContentTypeID=1</link><pubDate>Fri, 19 Jan 2024 18:12:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f28e380-dc60-442d-9b1c-9f64fc4b3f56</guid><dc:creator>hari</dc:creator><description>&lt;p&gt;Thanks for your quick response&amp;nbsp;&lt;/p&gt;
[quote userid="14926" url="~/f/nordic-q-a/107583/custom-radio-channel/465129"]All Bluetooth LE packets are using the same access address, see &lt;a href="https://github.com/NordicPlayground/nRF51-multi-role-conn-observer-advertiser/blob/master/btle_hci/advertiser/ts_peripheral.c#L77-L79"&gt;this example&lt;/a&gt;. It looks like you are using a different address in your code, so the packets are not received by the sniffer.[/quote]
&lt;p&gt;If I change the access address for Bluetooth LE packets, will I be able to observe it on the sniffer, given the constraint that the sniffer hardware can only scan one channel at a time with a specific device selected to follow?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="14926" url="~/f/nordic-q-a/107583/custom-radio-channel/465129"]The sniffer hardware can only scan on one channel at a time. Until you select a device to follow, it will only look for packets on the advertising channels (channel 37-39),[/quote]
&lt;p&gt;Additionally, when using BLE APIs, I can easily monitor the BLE address, but in this scenario, how can I effectively monitor it? How can I set a BLE static address?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="14926" url="~/f/nordic-q-a/107583/custom-radio-channel/465129"]and it will not use any channels not defined by the Bluetooth specification (2402-2480 MHz in 2 MHz steps).[/quote]
&lt;p&gt;Lastly, if the sniffer disregards channels not defined by the Bluetooth specification (2402-2480 MHz in 2 MHz steps), what alternatives are available to monitor whether packets have been sent on (2403,2405MHz)or not?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Radio channel</title><link>https://devzone.nordicsemi.com/thread/465129?ContentTypeID=1</link><pubDate>Fri, 19 Jan 2024 17:31:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb43694d-0489-4306-b8b1-7e4770bd5a36</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]Despite the code running without issues, I&amp;#39;m not receiving any messages on nRF Sniffer when monitoring with Wireshark.[/quote]
&lt;p&gt;If you are using the&amp;nbsp;&lt;a title="nRF Sniffer for Bluetooth LE" href="https://infocenter.nordicsemi.com/topic/ug_sniffer_ble/UG/sniffer_ble/intro.html?cp=11_5"&gt;nRF Sniffer for Bluetooth LE&lt;/a&gt;&amp;nbsp;to sniff for packets, this is configured to look for Bluetooth LE packets only, on valid channels according to the Bluetooth specifications.&lt;/p&gt;
&lt;p&gt;All Bluetooth LE packets are using the same access address, see &lt;a href="https://github.com/NordicPlayground/nRF51-multi-role-conn-observer-advertiser/blob/master/btle_hci/advertiser/ts_peripheral.c#L77-L79"&gt;this example&lt;/a&gt;. It looks like you are using a different address in your code, so the packets are not received by the sniffer.&lt;/p&gt;
&lt;p&gt;The sniffer hardware can only scan on one channel at a time. Until you select a device to follow, it will only look for packets on the advertising channels (channel 37-39), and it will not use any channels not defined by the Bluetooth specification (2402-2480 MHz in 2 MHz steps).&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>