Full-Douplex interrupt driven communication using SX1278. #237
Replies: 2 comments 6 replies
-
A slightly nitpicky correction - this is not full duplex, it's a time division full duplex emulation. Full duplex means having the ability to transmit while receiving. SX127x (and all the other radio modules supported here) are half-duplex devices, they can't transmit while they're receiving, so to really achieve true full duplex, you'd need two SX127x modules. Regardless, thanks for sharing :) |
Beta Was this translation helpful? Give feedback.
-
Using the same code as above, however instead of the respond feauture after the receive, I have mine constantly transmitting a string in the main loop. Doing this however seems to prevent it from receiving anything. below is my code main loop. How can make this happen without it having to receive then transmit. I want it constantly transmit until it receives something.
|
Beta Was this translation helpful? Give feedback.
-
Hi
Thanks @jgromes for your support, I've solved my issue, It was due to ordering/timing. The other node can easily read the response from my gateway (ESP8266).
Emplying
getIRQFlags()
, I can easily identify the interrupt source, It had a discussion and collaboration here within issues.The code is using only one flag inside the ISR, Two global flags to identify TX from RX packets.
Here's the Code :
It 's a demo to respond to an incoming message. the routines which separate TX and RX flags can easily extracted from the code above.
Hope you all the best success
Hamza Hajeir
Beta Was this translation helpful? Give feedback.
All reactions