Replies: 1 comment
-
In principle the idea is solid, however, I would not choose blocking methods Here's an outline of what I would do:
Also, don't use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone!
I'm trying to send a small picture (about 1KB) with LoRa. I turned the picture into small packets about 200 bayt and want to send it with that way. To do that I'll need a ACK mechanism. Basically I'll send a packet to receiver and receiver will send me the packet number as ACK. If I receive ACK from transmitter then I'll send the next packet. It'll go all along the packets.
The part that I stuck is sending ACK from receiver. I can send ACK for just one time if I receive the packet without error. But just one sending process is not enough to work. Need to send continuously old ACK data. So transmitter can catch that easily and jump to the next packet.
I'm not sure that I explain correctly but If you ask a part I'll try to explain it much better.
Here's my simple version of my code:
It's not working correctly. There are a lot of radio.sleep or begin functions, I'm actually not sure that is I need them but I worked better then without them. And there's a weird things like sometimes when I change the code Arduino waits like 7 seconds however there's no any delay function. I think that is listening time or something but I cannot find it in the libraries.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions