Looking for sketches to link two LoRa boards so that if either one stops transmitting the other linked board will turn on an indicator light.
Take a look at LoRa example code as a start.
You need to accuratly define what you mean by 'stops transmitting'.
If one board is in receive mode, it cannot also transmit, so the other node would think its stopped transmitting.
This looks like an XY problem. https://xyproblem.info/
You are going to need 4 boards, two for transmit and two to monitor the transmitters. A better explanation is in order.
Yes, exactly what I want to do. Board A transmits to Board B, Board C transmits to Board D. If Board B loses signal from Board A, Board B gives loss of signal indicator. If Board D loses signal from board C, Board D gives loss of signal indicator. Both sets must operate simultaneously in the same environment.
Why not set up a protocol where the receiver has to Acknowledge the transmission, that will require 1/2 the hardware. Look at the CAN protocol it does this with an in frame response, you could do it with an out of frame response.
Which are the sets, A and B, C and D or A and C, B and D.
And for a set are the two boards close together ?
Transmitter A and receiver D would be collocated as one unit (Module AD). Transmitter C and receiver B would be collocated at a different location (Module CB). I would like to get 100 meters separation between the two units in an open air environment. If either receiver misses the “heartbeat” from the distant module, that receiver outputs to an LED that the link was broke. The sketch would have to include a series of missed heartbeats maybe over 500 milliseconds to ensure the system doesn’t false trigger for a single extraneous miss.
Cheers.
When transmitter A transmits, receiver D will be overwhelmed by the strong local signal and could thus miss the weak signal from remote transmitter C. The same applies at the BC node.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.