JaapBraam / LoRaWanGateway

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

Problem uploading lua files #43

Closed covra closed 6 years ago

covra commented 6 years ago

I am trying to build a single channel lora gateway with a Lorago dock v1.1 board(ESP8266 and SX1276) and trought ttn I arrived to this repository. It seems exactly what I want, but, I found some problems:

"Node custom build by....... ......no config found, use default values" ... and nothing else...

any idea? thank you in advance!

JaapBraam commented 6 years ago

Have you done the configuration steps described in the Readme?

covra commented 6 years ago

The only step I had to change was the uploader software, I used ESPlorer tool instead

nodemcu-uploader.py

even I could see the 4 files uploaded, but "...no config found, use default values" message repeated.... ;(

Other question: I have been reading the "1 channel gateway" posts and it is said that TTN doesnt support 1cgw's (one channel, SF, downlink messages.. etc) ... this firmware works anyway? i am getting mad cause I have two nodes for testing and I have not none gateway near. This code is "my last chance" (I tried other codes and this seems the most complet)

thank you again!

JaapBraam commented 6 years ago

Have you configured the wifi connection as described in 'Register your wifi network'? When the gateway starts it first connects to your wifi network. It will not show any responses until a succesfull connection is made.

It looks like your gateway cannot establish a connection to your network. Check your wifi credentials...

covra commented 6 years ago

OOOhh! Thank you very much!! I wasnt able to undestand the "readme" filr :(. In addition I didnt know how lua scripts work. All ritght, I set the lua wifi comands and, at least! I have a gateway on green connected :) Now I have to configure well two gps beams (TTGO T-beam & DeuxVis/Lora-TTNMapper-T-Beam) in order to link them with the gw...

One more question... Should I see the way to modify the firmware of these nodes to work only in one channel? they use lmic, arduino library

Thanks in advance!!!

JaapBraam commented 6 years ago

It should not be necessary to modify your nodes. Just be aware that this gateway will not be able to receive all messages. When using OTA on your node, it will transmit on one of 3 frequencies, so you will have a chance of 1 in 3 that your gateway will receive the OTA request. Your node will try all three frequencies, so be patient, it will get activated. When your gateway receives the OTA request TTN will send an OTA respose to the node using your gateway. Your will be connected to TTN now, and will start sending messages. It typically will use one of 8 frequencies of which only one will be received by your gateway so you will have a chance of 1 in 8 that your gateway receives the message. Again: be patient, some messages will be received.