Trying to create a node with a Cytron Shield-LoRa-RFM on Arduino Uno

Hello:

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?

Thanks,

Rob.

off course not… This is an example tutorial of point-to-point wireless communication between 2 Arduinos using RFM LoRa Shields.

that’s why I don’t understand your remark ’ The Gateway is connected and seems to work

I suggest you start reading a bit about The Things Network and LoRaWAN … here :wink:

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”.

Thank you for your time,

Rob.

I also tried the sketch that Andreas Spiess used in his “#117 DIY LoRa Node with Arduino and Dragino Shield connected to TTN LoRaWAN” youtube video: https://github.com/matthijskooijman/arduino-lmic/blob/master/examples/ttn-abp/ttn-abp.ino

I thought that that might work but it did not.

I see now that your single channel ! gateway is indeed connected

what’s important now is to find out how the connections of that Cytron board are so you can adjust some lmic settings in the arduino sketch.

Hello:

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.

https://www.thethingsnetwork.org/docs/devices/registration.html

  • what sketch ? and only a link
  • 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

Hi BoRRoZ:

I followed the step-by-step example provided by Cytron linked below but still not working.
I really do not understand why it does not work.

Thank you, again, for your time. :slight_smile:
Rob.

What sketch ? https://tutorial.cytron.io/2017/09/15/lesson-1-build-simple-arduino-lora-node-10-minutes/

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⸮⸮

1 Like