lnlp / LMIC-node

LMIC-node | One example to rule them all. LMIC-node is an example LoRaWAN application for a node that can be used with The Things Network. It demonstrates how to send uplink messages, how to receive downlink messages, how to implement a downlink command and it provides useful status information. With LMIC-node it is easy to get a working node quickly up and running. LMIC-node supports many popular (LoRa) development boards out of the box. It uses the Arduino framework, the LMIC LoRaWAN library and PlatformIO.
MIT License
209 stars 102 forks source link

Non-standard config for Feather M0 #10

Closed snoopen closed 3 years ago

snoopen commented 3 years ago

Line 88 of adafruit_feather_m0_lora.h has dio1 on pin 5. However the common pin used on all examples I've seen uses pin 6.

Additionally, and I'm not sure if it makes a difference, but the examples also has .rssi_cal = 8, instead of 10.

lnlp commented 3 years ago

Thanks for your feedback.

I must have forgotten to change it in the actual code (after changing it from 5 to 6 in the documentation). Not having the hardware to test makes this easier to slip through.

Additionally, and I'm not sure if it makes a difference, but the examples also has .rssi_cal = 8, instead of 10.

Ah, I see, the 'feather-us915' examples use 8, while file hal/getpinmap_featherm0lora.cpp uses 10. The 8 is possibly more correct. I'm not sure where you would see the actual difference. I suspect in reported RSSI value of downlink messages.

lnlp commented 3 years ago

DIO1 mapping has been fixed.

Will have a look at rssi_cal later.

lnlp commented 3 years ago

rssi_cal has been changed to 8.

snoopen commented 3 years ago

Awesome thank you!

My initial testing with these settings got the device working with the expected serial monitor output. Tho I haven't been able to test on TTN as there are no active gateways near enough to me.