hello,will you please tell me which code i have to use in the sdk 12.2.0 for rf communication with nrf51822 and nrf24l01 .and also tell me which settings i have to do for nrf24l01 side as a transmitter.so that i can receive data on nrf51822 side.
hello,will you please tell me which code i have to use in the sdk 12.2.0 for rf communication with nrf51822 and nrf24l01 .and also tell me which settings i have to do for nrf24l01 side as a transmitter.so that i can receive data on nrf51822 side.
Hi Pallavi
The ESB library in the nRF5 SDK v12.2.0 is designed to be backwards compatible with the nRF24L01/nRF24L01+, assuming you don't use the L01 device in legacy Shockburst mode (ACK's disabled).
On the nRF5 side you can use the esb_ptx and esb_prx examples as a starting point: \nRF5_SDK_12.2.0\examples\proprietary_rf\
For this to work you need the following settings on the nRF24L01 side:
Default address (0xE7E7E7E7E7), with 5 byte address length
16-bit CRC
2Mbps bitrate
Auto ACK and dynamic payload length enabled
For all other settings you can use the default values.
Edit: Added attachment.
Best regards
Torbjørn
Hi Pallavi
I still don't understand why you couldn't get it to work with dynamic payload length enabled. I have been able to do that with both an nRF24L01+ and an nRF24L01 module, without any issues (the main difference is I used address 0xE7E7E7E7E7).
That being said, I do see an issue when using the configuration you included above (dynamic payload length disabled). In this mode I see that the nRF51 receives the packet in the debugger, but for some reason the CRC fails and the packet is discarded.
I will have to do some more research to figure out why the packet is discarded in this case, and I will get back to you when I know more.
Best regards
Hi Pallavi
I still don't understand why you couldn't get it to work with dynamic payload length enabled. I have been able to do that with both an nRF24L01+ and an nRF24L01 module, without any issues (the main difference is I used address 0xE7E7E7E7E7).
That being said, I do see an issue when using the configuration you included above (dynamic payload length disabled). In this mode I see that the nRF51 receives the packet in the debugger, but for some reason the CRC fails and the packet is discarded.
I will have to do some more research to figure out why the packet is discarded in this case, and I will get back to you when I know more.
Best regards