JaapBraam / LoRaWanGateway

A LoRaWan Gateway in LUA
MIT License
223 stars 74 forks source link

Attempting to connect to LoRaWanGateway with mdot. #23

Closed dmascord closed 7 years ago

dmascord commented 7 years ago

I have a ESP8266 (NodeMCU "V3" from LoLin) with an RFM95 breakout board (with RF96 chips and wire based antenna).

For the node, I am running with an Arduino Mega with the MultiTech mdot.

I am testing in the same room, so there shouldn't be much issue with range.

I have set both the gateway and the node to use channel 0, and 913600000, but the mdot is failing to join the gateway.

On occasion I get some messages showing up on the console of the gateway:

rxpk 01e6cd005ccf7ff42f871543 message {"rxpk":[{"rssi":-106,"stat":1,"modu":"LORA","rfch":1,"tmst":221788462,"datr":"SF10BW125","lsnr":-10,"time":"2017-04-07T08:20:34.707863Z","codr":"4/5","data":"AOARANB+1bNwqKsAAAAAgABjTLhVchE=","freq":913.600,"chan":0,"size":23}]} length 241 rx timeout 7 rssi 43 rx timeout 7 rssi 46 rxpk 0195b0005ccf7ff42f871543 message {"rxpk":[{"rssi":-107,"stat":1,"modu":"LORA","rfch":1,"tmst":261578378,"datr":"SF10BW125","lsnr":-9,"time":"2017-04-07T08:21:14.497774Z","codr":"4/5","data":"AOARANB+1bNwqKsAAAAAgABlnqW/KsA=","freq":913.600,"chan":0,"size":23}]} length 240

I'm not sure whether it is something wrong in my setup, so apologise in advance if this is a newbie error.

JaapBraam commented 7 years ago

You are receiving messages, so your (software) setup is probably ok.

The signal levels in this logging are very low... Especially because both the gateway and the node are in the same room (how big is your room ;-) )...

When I test in the same room, a normal value for rssi is about -45 with a snr of about +12. So I guess there is something wrong with one of your antennas.

Are you sure that the packages received are from your node????

Have you registered your node and gateway in the TTN console? Can you see any activity for your gateway or node (in logging or in the TTN console)?

What surprises me is that TTN does not try to send a JOIN response to the gateway, so maybe the messages you receive are not JOIN requests.