logo elektroda
logo elektroda
X
logo elektroda

RC system data synchronisation with ESP32 and nrf24l01 without using interrupts

michalek002a 429 2
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 19898239
    michalek002a
    Level 6  
    Hi. I am building an RC aircraft on an ESP32 processor and communicating using the nrf24l01. Control data is sent from the remote control and telemetry from the aircraft. The communication is going smoothly, but I don't know how to synchronise the data so that there isn't a situation where both modules are sending data at the same time (which happens), causing them to lose individual packets. I don't want to use interrupts because the processors perform several functions that could behave unpredictably when interrupted, and if I disable them for the moment, then I could also lose data. Of course, the communication should work at the highest possible frequency(I mean the frequency of sending data).

    Alternatively you could try to use the second processor core just for communication via nrf, but I don't know how to synchronise the data between the two processors.
  • ADVERTISEMENT
  • #2 19898261
    mtbchn
    Level 3  
    One question comes to mind. Why do you need nrf when you have the ESP-NOW protocol at hand? Why are you duplicating it?
  • #3 19898303
    michalek002a
    Level 6  
    mtbchn wrote:
    This raises one question for me. Why do you need a nrf when you have the ESP-NOW protocol at hand? Why are you duplicating it?
    .
    Better coverage
ADVERTISEMENT