Comments (4)
Don't ask my why, i am just a technology enthusiast but when i put in
TX:
nrf24.setChannel(1);
(in setup())
and
RX:
nrf24.setChannel(5);
(again in setup())
it works brilliantly and consistently each time without any queuing.
Some radio genius should be able to answer it.
Try and see if it works for you!
from radiohead.
I will probably give it another go after finals, I have NO time to mess with this right now
but if this does indeed fix the problem, thank you
from radiohead.
I had similar problem. I wired two nRFs to a STM32F4 board, where one was sending and the other receiving and I compared what was sent with the data received. And to my surprise data I was receiving sometimes would arrive in wrong order (BTW the same code on much slower STM32F0 board was fine)! My problem proved to be due to wrong CE pin code in my transmit function (I use my own nRF lib). So faulty code looked like that :
void Nrf24L01P::transmit (uint8_t *data, size_t len)
{
setCe (true);
spi->setNss (false);
spi->transmit8 (W_TX_PAYLOAD);
spi->transmit8 (data, len, nullptr, bogoDelay);
spi->setNss (true);
setCe (false);
}
And the code that fixed my problem :
void Nrf24L01P::transmit (uint8_t *data, size_t len)
{
spi->setNss (false);
spi->transmit8 (W_TX_PAYLOAD);
spi->transmit8 (data, len, nullptr, bogoDelay);
spi->setNss (true);
setCe (true);
HAL_Delay (1);
setCe (false);
}
Only after the data to be transmitted is put into the RX FIFO, I make a HI pulse on CE pin. Diagram on page 35 of nRF24L01+ pointed me in the right direction. PS of course 1ms is too long and this delay is to be modified. Full code is here : https://github.com/iwasz/libmicro/tree/master/src/rf
from radiohead.
Greetings, great library, but I have this issue as well. Since I'm sending a joystick control position several times a second over RF, it's not too big an issue, but the "solution" by dangerverma, above makes no sense, and Radiohead uses spiburstwrite and not the method shown by iwasz. Any assistance on this would be helpful.
from radiohead.
Related Issues (20)
- How to change default SPI port for RH_RF69 ? HOT 3
- Example code cleanup : remove unused variable declaration
- NRF24.send lose my end data but for next time send that HOT 1
- "ISR not in IRAM" crash when RH_RF95.ccp is used with ESP8266 using latest "github.com/esp8266/Arduino" code HOT 2
- RH_RF95 received packet length
- Usage of Cad Detection
- Separate networks on RH_RF95
- Kommunication to a RN2483 node HOT 1
- setTxPower() serious output power bug
- Error compiling ask_transmitter example on Arduino Nano Every HOT 4
- Issue with Arduino Mega board (and probably others ?) HOT 1
- Library not up to date with RadioHead HOT 2
- RH_E32.h error: Cannot compile to Rocketscream Mini Ultra Pro HOT 1
- stm32l0_gpio.h not found HOT 1
- problem at nodemcu 1.0 HOT 1
- RH_ASK.h compiles with NANO, wont compile with NANO EVERY HOT 3
- Struggling using RF95 in an Interrupt function (ISR), help please ! HOT 6
- 2 LOM204 (STM32L072 + SX1272) HOT 2
- RH_NRF24.h: No such file or directory
- htons redefined
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from radiohead.