Having trouble setting up Shield-Lora-RFM

Talk about Arduino board, sheilds. Sharing Arduino projects, program, problems, solutions, suggestions..... many more, all are welcome.

Having trouble setting up Shield-Lora-RFM

Postby robertthompson » Sat Mar 31, 2018 7:37 am

Hello:

I set up my Cytron shield according to https://tutorial.cytron.io/2017/09/15/l ... 0-minutes/ but I do not see any data when I "Just go to Device page of each device, choose Data from top-menu from top-right corner and start viewing the data."

Can anyone help me trouble shoot this problem?

***Warning*** I am a newbie.

Thanks,

Rob.
robertthompson
Freshie
 
Posts: 6
Joined: Fri Mar 30, 2018 12:02 am

Re: Having trouble setting up Shield-Lora-RFM

Postby bengchet » Sat Mar 31, 2018 8:05 am

Hi,

You will need a LoRa Gateway nearby for it to work. Do you have any LoRa Gateway around? You can find the next tutorial LESSON 2: SETTING UP A RASPBERRY PI 3 LORA GATEWAY WITH HAT-LRGW-915 for more info.
bengchet
Moderator
 
Posts: 237
Joined: Tue Aug 25, 2015 8:29 am

Re: Having trouble setting up Shield-Lora-RFM

Postby robertthompson » Sat Mar 31, 2018 8:27 am

Hello:

Thanks for answering my post.

Yes, I followed this video by Andreas Spiess: https://www.youtube.com/watch?v=Ya-QlEa ... 7U&index=6

My gateway is happily living on TTN - just northwest of Montreal, Quebec, Canada: Gateway ID: eui-b827ebfffffc46a3

I just don't think that my arduino/Cytron node is communicating with gateway.

Rob.
robertthompson
Freshie
 
Posts: 6
Joined: Fri Mar 30, 2018 12:02 am

Re: Having trouble setting up Shield-Lora-RFM

Postby bengchet » Sat Mar 31, 2018 9:24 am

Hi,

Ah yes, if you are following the tutorial, problem might be coming from unmatched frequency and the server you are forwarding. Which frequency you are using? Which server you are using?
The tutorial https://tutorial.cytron.io/2017/09/15/lesson-1-build-simple-arduino-lora-node-10-minutes/ is based on frequency 920000000, 920200000, 920400000, 920600000, 920800000, 921000000, or 921200000, and is forwarded to router.au.thethings.network. It depends on you want to change settings at node or at gateway.

It is preferable to change gateway settings (frequency to 920000000, and server to router.au.thethings.network). Remember since you are using single channel gateway, you will see data coming at dashboard at every TX INTERVAL * 8. TX_INTERVAL is refered to Arduino LoRa node sketch. If you want to see data coming faster, change TX_INTERVAL to shorter time like 10 (10 seconds). Remember not to change it to lower values, it might cause trouble to server.

If you can see data coming in, I will teach you a way to modify(hack) library to make data coming in every TX_INTERVAL as expected.
bengchet
Moderator
 
Posts: 237
Joined: Tue Aug 25, 2015 8:29 am

Re: Having trouble setting up Shield-Lora-RFM

Postby robertthompson » Sat Mar 31, 2018 10:00 am

Hello:

My gateway settings are:

Spreading factor: SF7
Frequency: 902300000
Server1: 13.66.213.36
Port: 1700

The node:
const unsigned TX_INTERVAL = 10;

// Pin mapping according to Cytron LoRa Shield RFM
const lmic_pinmap lmic_pins = {
.nss = 10,
.rxtx = LMIC_UNUSED_PIN,
.rst = 7,
.dio = {2, 5, 6},
};

Is that what you were asking?

Thanks,

Rob.
robertthompson
Freshie
 
Posts: 6
Joined: Fri Mar 30, 2018 12:02 am

Re: Having trouble setting up Shield-Lora-RFM

Postby bengchet » Sat Mar 31, 2018 7:24 pm

Hi,

You can just set frequency to one of the frequncies mentioned (such as 92000000) and server1 to router.au.thethings.network.

Just note that your gateway must be 915MHz type to work ya. Check your gateway lora module correctly to make sure it supports 900-930Mhz frequency.
bengchet
Moderator
 
Posts: 237
Joined: Tue Aug 25, 2015 8:29 am

Re: Having trouble setting up Shield-Lora-RFM

Postby robertthompson » Sat Mar 31, 2018 11:00 pm

Hi bengchet:

Do you want me to make these changes to main.cpp on my gateway?

// Set center frequency
uint32_t freq = 920000000;

#define SERVER1 "router.au.thethings.network"

I am in Canada so I don't understand "router.au.thethings.network". Also, should it be in IP format?

Rob.
robertthompson
Freshie
 
Posts: 6
Joined: Fri Mar 30, 2018 12:02 am

Re: Having trouble setting up Shield-Lora-RFM

Postby bengchet » Sun Apr 01, 2018 12:31 am

Hi,

Personally I think this single channel packet forwarder is better https://github.com/hallard/single_chan_pkt_fwd as you can change settings in a file called global_conf.json.Can try to read through the readme.

The Arduino lora node tutorial is based on lorawan in Australia band 915 to 923 Mhz. And the lora node will transmit data based on 8 different frequencies in sequence in every TX interval. So that the gateway frequency must match with one of those frequencies (since it is single channel gateway it only supports one frequency)

Server can be URL if you are using the packet forwarder I suggested. router.au.thethings.network is the server your gateway connect to as it supports filter and processing data in Australia band which lora node currently using. It doesn't matter you are in Canada or any places. I am at Malaysia, and I am using it as well.

The only matter if frequency 915 to 923Mhz is legal in Canada. You will have to search which range of frequencies appropriate to your country.
bengchet
Moderator
 
Posts: 237
Joined: Tue Aug 25, 2015 8:29 am

Re: Having trouble setting up Shield-Lora-RFM

Postby robertthompson » Sun Apr 01, 2018 12:46 am

Hi bengchet:

Thank you, I'll look into https://github.com/hallard/single_chan_pkt_fwd

It is very late in Malaysia, maybe you should sleep now.

I'll get back to you later.

Rob
robertthompson
Freshie
 
Posts: 6
Joined: Fri Mar 30, 2018 12:02 am

Re: Having trouble setting up Shield-Lora-RFM

Postby robertthompson » Sun Apr 01, 2018 2:01 am

Hi bengchet:

My brain is so sore from this LoRaWAN stuff that I need a break.

I am putting everything on hold for a few days.

Thanks again for your help. :)

Rob.
robertthompson
Freshie
 
Posts: 6
Joined: Fri Mar 30, 2018 12:02 am

Next

Return to Arduino Based

Who is online

Users browsing this forum: No registered users and 21 guests