sandeepmistry / arduino-LoRa

An Arduino library for sending and receiving data using LoRa radios.
MIT License
1.67k stars 634 forks source link

Support for Gateway #253

Closed manvendra88 closed 5 years ago

manvendra88 commented 5 years ago

Hi! Thanks for such a great library to learn and tinker lora. I have been using LoRaSender and LoRaReceiver code for two Dragino Lora Sheilds. So far, i am able collect the meta data for my Sender at receiver. My questions are :-

  1. Can i use the same LoRaReceiver code for the radio of my LG-01 Gateway?
  2. Can the LoRaReceiver code can recept from two different Senders?
morganrallen commented 5 years ago

1) Unfamiliar with that device so it's hard to say, I would say most likely, but you'd have to implement what ever protocol they use.

2) Yes, so long as all their settings are the same.

manvendra88 commented 5 years ago

Thanks, @morganrallen for the quick reply. As I was digging to find the solution to the problems, here are some useful things that I found, in case if it will help someone else too.

  1. LG-01 gateway is from Dragino and it can be easily programmed to be used by Sandeep's library (Which is great!). Dragino has an example code that supports LG-01 (https://github.com/dragino/Arduino-Profile-Examples/blob/master/libraries/Dragino/examples/LoRa/LoRa_Receive/LoRa_Receive.ino#L3). Moreover, if you were to use another library for LG-01, then check for https://github.com/dragino/Arduino-Profile-Examples/tree/master/libraries/Dragino/examples/LoRa.
  2. I am a little confused about how to set the same settings. If I set the SF same for receiver same as that of node-1. Should I change the SF of the receiver corresponding to node-2 in a loop?

Thanks :)

manvendra88 commented 5 years ago

As the gateway issue is solved already. I shall close this issue. :)