arduino-libraries / MKRWAN

An Arduino library for sending and receiving data using LoRaWAN protocol and LoRa® radios.
https://www.arduino.cc
GNU Lesser General Public License v3.0
88 stars 60 forks source link

Set channel not implemented? #26

Closed Michael-List closed 5 years ago

Michael-List commented 6 years ago

I've build a single channel lora gateway. So my problem is that the Arduino MKR 1300 iterates over the different channels that can be found here(https://www.thethingsnetwork.org/docs/lorawan/frequency-plans.html). Is there a way to set a channel?

Michael-List commented 5 years ago

Could solve my problem with the following library: https://github.com/sandeepmistry/arduino-LoRa

deanpretorius commented 5 years ago

Hi @Michael-List Could you please explain how you managed to set the channel on the MKR WAN 1300?

Michael-List commented 5 years ago

I used this library: arduino-LoRa. I have an example project which contains this file: arduino_lora_weatherstation

In line 11 I set the frequency/channel:

static int frequency = 868300000;

Frequency 868 with channel 2 -> See Frequency plans (2. 868.3 - SF7BW125 to SF12BW125 and SF7BW250)

If you have further questions feel free to ask me

deanpretorius commented 5 years ago

Hi Michael I managed to set the Spreading Factor using the library that you suggested. But currently I am still facing a problem with the frequency hopping of the MKRWAN. Please email me at deanpretorius@outlook.com I have a few more questions that I would like to ask.

Michael-List commented 5 years ago

Hi deanpretorius, did you use the MKRWAN or arduino-LoRa library for sending data?

deanpretorius commented 5 years ago

arduino-LoRa