You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I recently switched to this project to communicate my RPI2 with one nrf chip.
It seems everything works except for ack payload from PRX.
Please refer to the code below. If you look at the line with comment <---look at this line, it failed the tx code. The PTX failed with MAX_RT. If I comment out this line, the PRX does receive the transmitted data.
I forked your project and add the FIFO_STATUS in printDetails, which confirmed that the ack payload has been written (TX not empty).
My guess is that the register is not configured properly. After terminate the program, the registers maintain the values. If I remove the line, the TX can still work (before the RX FIFO is full). If I leave this line here, the PTX fails directly.
I wonder, should I configure any extra options for PTX or PRX, if I need to use ack payload?
The receiver code:
varspiDev="/dev/spidev0.0",cePin=25,irqPin=24varnrf=require('nrf').connect(spiDev,cePin,irqPin);nrf.reset(function(){nrf.channel(0x4c).dataRate('1Mbps').crcBytes(2).autoRetransmit({count:15,delay:4000});nrf.begin(function(){varrx=nrf.openPipe('rx',0xF0F0F0F0E1);rx.on('ready',function(){printSelf();rx.write("helloWorld!");// <----------- look at this line});rx.on('data',function(d){console.log("Data:"+d);});});functionprintSelf(){nrf.printDetails();setTimeout(printSelf,2000);}});
Hi,
I recently switched to this project to communicate my RPI2 with one nrf chip.
It seems everything works except for ack payload from PRX.
Please refer to the code below. If you look at the line with comment
<---look at this line
, it failed the tx code. The PTX failed with MAX_RT. If I comment out this line, the PRX does receive the transmitted data.I forked your project and add the FIFO_STATUS in printDetails, which confirmed that the ack payload has been written (TX not empty).
My guess is that the register is not configured properly. After terminate the program, the registers maintain the values. If I remove the line, the TX can still work (before the RX FIFO is full). If I leave this line here, the PTX fails directly.
I wonder, should I configure any extra options for PTX or PRX, if I need to use ack payload?
The receiver code:
Receiver Status: (With write payload line)
Receiver Status: (remove that line)
The transmitter:
Transmitter status (failing)
The text was updated successfully, but these errors were encountered: