I have two sx1278 Lora transceivers where both are connected to two Arduino Uno boards. I want to trigger a function in the Arduino Uno board where receiver side of LoRa connected using the signal received by Lora receiver.
-
Do you have a specific question? Have you looked at the examples of whatever LoRa library you’re using?StarCat– StarCat2021年01月11日 07:08:05 +00:00Commented Jan 11, 2021 at 7:08
-
"LoRa by sandeepmistry" is the library I am using. I was able to send hello packets between two LoRa modules. Now what I want is trigger a function of receiver side of Arduino from a message get from LoRa moduleThisura– Thisura2021年01月11日 08:06:28 +00:00Commented Jan 11, 2021 at 8:06
-
1what is preventing you from doing that? ... you still have not asked a questionjsotola– jsotola2021年01月11日 10:14:36 +00:00Commented Jan 11, 2021 at 10:14
-
I suggest writing code for that.ocrdu– ocrdu2021年01月11日 11:36:58 +00:00Commented Jan 11, 2021 at 11:36
1 Answer 1
I'm assuming you have read the datasheet for the SX1278. If not, please refer to it at:
On page 69 you will see a couple of tables regarding the functions possible on the digital I/O (i.e. DIO) pins:
I'm not clear what exactly you are looking for or which mode you are operating in (you have provided almost no information about your project) but all the information you might need is available on these DIO pins.
You can connect the appropriate pin or pins to some of the edge sensitive lines on your Arduino and define and enable an INTERRUPT in your code. So when the event you are waiting for happens, an interrupt will occur, you can go and read the data and do whatever with it.