Note: This is my first attempt with LoRaWAN, the Arduino IDE, the Ardunio Uno and the Dragino LoRa/GPS HAT.
TTN Gateway: eui-b827ebfffffc46a3 – Dragino - Lora/GPS HAT - 915Mhz
The Gateway is connected and seems to work.
I am trying to setup an Arduino Uno with a Cytron 915 Shield-LORA-RFM to send messages to the gateway.
I have tried the rf95_client sketch from https://github.com/CytronTechnologies/RFM-LoRa-Shield-Examples but it does not seem be correct to connect to TTN. It does not provide for the input of Device Address, Network Session Key and App Session Key – which, I think, are required.
Can anyone suggest the proper sketch that I require?
Hi: My raspberry pi 3 / Dragino LoRa/GPS HAT is connected on TTN as gateway “eui-b827ebfffffc46a3”, just north of Montreal, Quebec, Canada - that is what i meant by “connected”.
It seems that my “Arduino Uno with a Cytron 915 Shield-LORA-RFM” is registered as a a device, ie it says registered.
Can someone suggest how to send a message to my gateway?
When I use the Arduino IDE Serial Monitor after, uploading the sketch, to “SEND” - nothing happens on my gateway under Received Messages. My gateway is active.
did you change the sketch with the credentials you’ve received when registering your device in your application ?
if you want an answer you have to provide exactly what sketch you use in your single channel gateway and what sketch you use in your node.
did you find the board connections from your shield ?
both need to be on the same channel and that is configured in both sketches, together with the way the node joins the network… ABP or OTAA
also I suggest to search this forum more… there are many examples how to configure
Did you change the sketch with the credentials you’ve received when registering your device in your application ? Yes
My Raspberry Pi 3 settings:
• Spreading factor: SF7
• Frequency: 902300000
• Server1: 13.66.213.36
• Port: 1700
• sspin: 6
• dio: 7
• RST: 0
Notes:
1. At https://www.cytron.io/p-shield-lora-rfm the product Description ends with: * This is LoRa Radio shield, it does not contain LoRaWAN protocol, so the Arduino main board will require more program to store the LoRaWAN stack. I did nothing with my Arduino Uno other than remove it from its’ shipping box and then attaching the Cytron shield.
2. Sketch error: “ ‘LMIC_selectSubBand’ was not declared in this scope.” I read here, https://github.com/forrestfiller/-arduino-feather-32u4-lora/issues/1, to just comment out “LMIC_selectSubBand()” which is what I have done.
3. When I run the sketch, the Serial Monitor displays output like this: ⸮⸮⸮⸮⸮⸮e[⸮⸮⸮]⸮⸮⸮⸮⸮#⸮#R⸮j⸮⸮NO⸮⸮