<?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>Enabling Data Whitening for ESB Data Communication</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42804/enabling-data-whitening-for-esb-data-communication</link><description>I have one TX and another RX codes for data communication by ESB protocol. To verify whether data whitening can be enabled, I added below register setting on TX side only and let RX side use its default setting (data whitening disabled): 
 
 NRF_RADIO</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 10 Aug 2021 22:19:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42804/enabling-data-whitening-for-esb-data-communication" /><item><title>RE: Enabling Data Whitening for ESB Data Communication</title><link>https://devzone.nordicsemi.com/thread/324332?ContentTypeID=1</link><pubDate>Tue, 10 Aug 2021 22:19:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67054eea-a3c8-468b-85a3-b49f8f8a8f2c</guid><dc:creator>Thomas_E</dc:creator><description>&lt;p&gt;I was also interested in data whitening with ESB.&lt;/p&gt;
&lt;p&gt;Seems if I modify ESB such that:&lt;/p&gt;
&lt;p&gt;1) Set Radio&amp;#39;s MODE to BLE_2Mbit (as described earlier)&lt;/p&gt;
&lt;p&gt;2) Enable data whitening in PCNF1 register (as described earlier)&lt;/p&gt;
&lt;p&gt;3) &amp;nbsp; *** Initialize DATAWHITEIV to 0x40 (Reset value)&lt;/p&gt;
&lt;p&gt;If I apply these settings to TX and RX:&amp;nbsp; radio transmissions are successful.&lt;/p&gt;
&lt;p&gt;If I apply these settings with the exception of turning off the PCNF1 whitening register bit on 1 side or the other (so TX PCNF1 whitening enabled / RX PCNF1 whitening disabled, or vice versa) :&amp;nbsp; radio transmissions stop working in both cases.&lt;/p&gt;
&lt;p&gt;I am guessing that data whitening is functional when both sides have the 3 modifications applied.&lt;/p&gt;
&lt;p&gt;Tommy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling Data Whitening for ESB Data Communication</title><link>https://devzone.nordicsemi.com/thread/167840?ContentTypeID=1</link><pubDate>Fri, 25 Jan 2019 09:38:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7aafd0c-6eb7-47d6-a9b9-58edc236a330</guid><dc:creator>shchu</dc:creator><description>&lt;p&gt;I am clear now. Thanks for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling Data Whitening for ESB Data Communication</title><link>https://devzone.nordicsemi.com/thread/167765?ContentTypeID=1</link><pubDate>Thu, 24 Jan 2019 19:32:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a2019a9-9d3c-4716-8988-7f6c07c0648c</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;&amp;quot;Legacy 2Mbps&amp;quot; mode I meant RADIO_MODE_MODE_Nrf_2Mbit&lt;br /&gt;&lt;span&gt;&amp;quot;BLE 2Mbps&lt;/span&gt;&lt;span&gt;&amp;quot; mode I meant&lt;/span&gt;&lt;span&gt; RADIO_MODE_MODE_Ble_2Mbit&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The mode&amp;nbsp;control the modulation of the on-air carrier, there is also some differences to radio ramp-up time depending on the mode, as long as both transmitter and receiver use the same mode they can communicate.&lt;/p&gt;
&lt;p&gt;The packet format/layout will be the same for both, all other functionality is also the same.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling Data Whitening for ESB Data Communication</title><link>https://devzone.nordicsemi.com/thread/167587?ContentTypeID=1</link><pubDate>Thu, 24 Jan 2019 10:09:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b7a4e5a-5892-40ff-89b6-ba470a75c7a2</guid><dc:creator>shchu</dc:creator><description>&lt;p&gt;At this moment, I can use the BLE mode in a proprietary protocol to improve sensitivity instead.&amp;nbsp;Using data whitening or not&amp;nbsp;does not matter now. But I would like to know more about this BLE mode setting.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1. What did you mean by &amp;quot;legacy 2Mbps&amp;quot;? &amp;quot;Legacy 2Mbps&amp;quot; is exactly the MODE = BLE_2MBit, right?&lt;/p&gt;
&lt;p&gt;2. This mode setting (MODE = BLE_2MBit) will use proprietary protocol (non-standard BLE), right?&lt;/p&gt;
&lt;p&gt;3. If yes for question 2 above, does&amp;nbsp;the structure of this proprietary protocol follow the packet layout in figure 2 (packet configuration) of this link:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Fradio.html&amp;amp;cp=2_1_0_22_1&amp;amp;anchor=concept_hz4_cjl_4r"&gt;http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Fradio.html&amp;amp;cp=2_1_0_22_1&amp;amp;anchor=concept_hz4_cjl_4r&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;4. This mode setting (MODE = BLE_2MBit) also supports auto packet retransmission upon packet loss, right?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you so much.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling Data Whitening for ESB Data Communication</title><link>https://devzone.nordicsemi.com/thread/167360?ContentTypeID=1</link><pubDate>Wed, 23 Jan 2019 12:10:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0fd9357-62be-44e0-9958-59780ac3ae69</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am not sure why you are not able to make data whitening work. It doesn&amp;#39;t seem as we have any example with it, and the reason is simply that it doesn&amp;#39;t add any performance improvement. If it is a really important feature for you then I can try to look into modify the ESB examples to make it work.&lt;/p&gt;
&lt;p&gt;You can find the receiver sensitivity values depending on the operation mode here:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/radio.html?cp=2_1_0_22_14_4#unique_919665808"&gt;http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/radio.html?cp=2_1_0_22_14_4#unique_919665808&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The reason for difference in sensitivity between legacy 2Mbps and ESB 2Mbps is due to the frequency deviation (increased deviation typically improve the sensitivity):&lt;/p&gt;
&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/radio.html?cp=2_1_0_22_14_0#unique_1056325669"&gt;http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/radio.html?cp=2_1_0_22_14_0#unique_1056325669&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;A new feature in BLE v5.0 was the introduction of 2Mbps on-air data rate, it is used by the softdevice if enabled and both peers support it. The time on-air is halved compared to 1Mbps yes.&lt;/p&gt;
&lt;p&gt;You may use the BLE modes in a proprietary protocol also, but then it will not be backwards compatible with existing equipment you may have using legacy radio mode.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling Data Whitening for ESB Data Communication</title><link>https://devzone.nordicsemi.com/thread/167325?ContentTypeID=1</link><pubDate>Wed, 23 Jan 2019 10:20:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a151f888-0df4-4051-83fe-953ebf126552</guid><dc:creator>shchu</dc:creator><description>&lt;p&gt;I tested as you suggested. Both PRX and PTX were set to BLE_1Mbit and below are the 3 test cases.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;(1) If no data whitening on both PRX and PTX, PRX could receive what PTX had sent. This proves the BLE_1Mbit could work.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;(2) If data whitening on PTX, PRX could not receive anything from PTX no matter data whitening was set on PRX or not.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;(3) If no data whitening on PTX and PRX with data whitening, PRX could still receive correct payload data from PTX. This looks like data whitening was still not working.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For another matter, I also tested BLE_2Mbit on both PRX and PTX without data whitening. The PRX could receive correct data from PTX, and this could improve the PRX sensitivity about 3dB (same as specification).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What is the difference in the protocal level by this setting (MODE set to BLE_2Mbit) as compared to using the &amp;quot;SoftDevice&amp;quot; stack? Maybe this setting uses non-standard BLE protocol, e.g. no GATT and no profile? If yes, this means it uses &amp;quot;shorter&amp;quot; packet data&amp;nbsp;than the one by standard BLE protocol? This MODE setup is only for testing, but not suggest for our find products?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Sorry for so many questions as I would like to explore some &amp;quot;software&amp;quot; methods that can improve the PRX sensitivity while power consumption can be close to the our existing measurement level by ESB at 2Mbps. One of these is by data whitening even I guess this does not improve a lot.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you so much.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling Data Whitening for ESB Data Communication</title><link>https://devzone.nordicsemi.com/thread/167019?ContentTypeID=1</link><pubDate>Tue, 22 Jan 2019 08:38:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b890023-b319-44c8-bef6-1ec476dc7cdd</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;This is just a test setup, so my suggestion is for test that you set MODE to BLE_1MBit on both PRX and PTX. No other change should be required for test. Then you can try&amp;nbsp;to enable&amp;nbsp;data whitening on the PTX, to check if PRX still receive the correct data.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling Data Whitening for ESB Data Communication</title><link>https://devzone.nordicsemi.com/thread/166984?ContentTypeID=1</link><pubDate>Tue, 22 Jan 2019 02:18:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3444bd0c-17d8-4f9c-8fdb-15dd2308d4d3</guid><dc:creator>shchu</dc:creator><description>&lt;p&gt;To test BLE from ESB mode, it should not simply change the MODE register&amp;#39;s value from 1 (Nrf_2Mbit) to 4 (Ble_2Mbit), right?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As our TX &amp;amp; RX codes were already associated with some feature functions by us, it is not easy and fastly to change to BLE if not just a change in the MODE register&amp;#39;s value.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But I guess the data whitening function can be both applied to BLE and ESB if according to the radio block disgram of figure 1 below&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Fradio.html&amp;amp;anchor=concept_lhd_ygj_4r__fig"&gt;http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Fradio.html&amp;amp;anchor=concept_lhd_ygj_4r__fig&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Any suggestion?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you so much&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling Data Whitening for ESB Data Communication</title><link>https://devzone.nordicsemi.com/thread/166962?ContentTypeID=1</link><pubDate>Mon, 21 Jan 2019 18:17:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72c7b496-6d3f-4785-9129-6da0f6afb37c</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hmm.. it may only work in BLE mode?&lt;/p&gt;
&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/radio.html?cp=2_1_0_22_13_10#register.MODE"&gt;http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/radio.html?cp=2_1_0_22_13_10#register.MODE&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you give that a try also?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling Data Whitening for ESB Data Communication</title><link>https://devzone.nordicsemi.com/thread/166906?ContentTypeID=1</link><pubDate>Mon, 21 Jan 2019 15:17:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1743183-713b-46ef-82b7-3849500056c2</guid><dc:creator>shchu</dc:creator><description>&lt;p&gt;Yes, I checked the packet content on RX. No data whitening on them after received.&lt;/p&gt;
&lt;p&gt;You are right for the CRC check. I misunderstand it.&lt;/p&gt;
&lt;p&gt;Any other reasons? Data whitening not worked on TX?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling Data Whitening for ESB Data Communication</title><link>https://devzone.nordicsemi.com/thread/166843?ContentTypeID=1</link><pubDate>Mon, 21 Jan 2019 12:50:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45fefe99-dc74-4669-9fb4-c8cfceec575e</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Have you checked the packet content? I would assume that CRC is calculated over the packet content, and thereby be valid depending on the content (with or without data whitening), the actual data however may be whitened.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>