- Posts: 7
Receive data from propel tx use XN297lbw chip
- Bangdc
- Topic Author
- Offline
Less
More
19 Apr 2022 17:44 - 19 Apr 2022 17:50 #77947
by Bangdc
Receive data from propel tx use XN297lbw chip was created 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+ chipBut 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.
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);
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.
Attachments:
Last edit: 19 Apr 2022 17:50 by Bangdc.
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
Less
More
- Posts: 2631
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 ?
( setup(), loop() ) or share it on github ?
Please Log in or Create an account to join the conversation.
- Bangdc
- Topic Author
- Offline
Less
More
- Posts: 7
22 Apr 2022 11:08 #77952
by Bangdc
Replied by Bangdc on topic Receive data from propel tx use XN297lbw chip
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.
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.
- Bangdc
- Topic Author
- Offline
Less
More
- Posts: 7
22 Apr 2022 15:59 - 22 Apr 2022 16:02 #77954
by Bangdc
I attached source code (I converted your code to build on platform IO IDE)
Detail:
1. I am using file Bayang.cpp to modify NRF config fit with tx address, bind channel, payload lengthif 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:
Replied by Bangdc on topic Receive data from propel tx use XN297lbw chip
Dear Goebish,goebish wrote: Hi, maybe you lack some nrf24 init code, can you post your whole code?
( setup(), loop() ) or share it on github ?
I attached source code (I converted your code to build on platform IO IDE)
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
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:
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
- Home
- Forum
- Development
- Protocol Development
- Receive data from propel tx use XN297lbw chip