Receive data from propel tx use XN297lbw chip

More
19 Apr 2022 17:44 - 19 Apr 2022 17:50 #77947 by Bangdc
Dear All,

I have TX with XN297lb RF chip inside.
I want to use this TX to send data to arduino + NRF24L01+
In order to do that, I collected sequence from TX via PulseView tool and found:
- TX address: 0x12, 0xd6, 0x74, 0xbd, 0x71
- RX address: 0x15, 0x59, 0x23, 0xc6, 0x29
- Bind Channel: 0x0B
- Payload: 16
Then I used these value to config for my NRF24L01+ chip
#define BAYANG_RX_PACKET_SIZE 12 //Even though payload is 16, but I found with Configure XN297_CRCEN, payload will be add more 4 and set 16 via XN297_SetRXAddr()

	XN297_Configure(XN297_CRCEN, XN297_SCRAMBLED, XN297_1M);
	const uint8_t tx_address[BAYANG_RX_ADDRESS_LENGTH] = { 0x15, 0x59, 0x23, 0xc6, 0x29 };
	const uint8_t bind_address[BAYANG_RX_ADDRESS_LENGTH] = { 0x12, 0xd6, 0x74, 0xbd, 0x71 };
	XN297_SetTXAddr(tx_address, BAYANG_RX_ADDRESS_LENGTH);
	XN297_SetRXAddr(bind_address, BAYANG_RX_PACKET_SIZE);	
	XN297_RFChannel(0x0B);
	XN297_SetTxRxMode(TXRX_OFF);
	XN297_SetTxRxMode(RX_EN);
But with this RF setup, I can not get any payload from TX, ( NRF24L01_ReadReg(NRF24L01_07_STATUS) & _BV(NRF24L01_07_RX_DR) ) is alway False
Will be very appriciate if anyone help me check why this problem happened.
I also attached PulseView data that I collected via Saleae Logic tool.

File Attachment:

File Name: bind_seque...4-19.zip
File Size:11 KB
Attachments:
Last edit: 19 Apr 2022 17:50 by Bangdc.

Please Log in or Create an account to join the conversation.

More
22 Apr 2022 09:08 #77951 by goebish
Replied by goebish on topic Receive data from propel tx use XN297lbw chip
Hi, maybe you lack some nrf24 init code, can you post your whole code?
( setup(), loop() ) or share it on github ?

Please Log in or Create an account to join the conversation.

More
22 Apr 2022 11:08 #77952 by Bangdc
Dear Goebish,
Thank you very much for your attention to my problem.
I will upload the whole source code based on this github: github.com/bikemike/nrf24_multipro/tree/rx_mode soon (about 5 hours latter when I come back home)
I'm using esp32 and nrf24L01+ so I modified that github for esp32.

Please Log in or Create an account to join the conversation.

More
22 Apr 2022 15:59 - 22 Apr 2022 16:02 #77954 by Bangdc

goebish wrote: Hi, maybe you lack some nrf24 init code, can you post your whole code?
( setup(), loop() ) or share it on github ?

Dear Goebish,
I attached source code (I converted your code to build on platform IO IDE)

File Attachment:

File Name: rx_nrf24_esp32.zip
File Size:25 KB

Detail:
1. I am using file Bayang.cpp to modify NRF config fit with tx address, bind channel, payload length
const uint8_t bind_address[] = {0x12, 0xd6, 0x74, 0xbd, 0x71};

NRF24L01_WriteReg(NRF24L01_11_RX_PW_P0, BAYANG_PACKET_SIZE); // length is 18

NRF24L01_WriteReg(NRF24L01_05_RF_CH, BAYANG_RF_BIND_CHANNEL); // Bind channel is 0x0B
if possible could you please help me confirm these values via Pulseview data that i attached?
One more thing: I uploaded an esp32 board as TX mode and the rest as RX mode(uncomment #define RX_MODE in file board.h), I received bind packet, but with PROPEL Remote control I was still not sucessful, there is no data come esp32+nrf24 module.
PROPEL TX:
Attachments:
Last edit: 22 Apr 2022 16:02 by Bangdc.

Please Log in or Create an account to join the conversation.

Time to create page: 0.049 seconds
Powered by Kunena Forum