GithubHelp home page GithubHelp logo

lorawangateway's People

Contributors

avbentem avatar dlarue avatar gfnord avatar jaapbraam avatar paul-b avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lorawangateway's Issues

Tx freq different than Rx freq for downlink data

I thought I'd try sending down a few bytes to the node and I see the attempt to transmit to the node it fails since it's on the wrong channel as the node. In this case, the node is 902300 SF9 and the gateway tries to send the downlink packet on channel 923300. Shouldn't it be the same channel or is there something in my node code which is supposed to listen on the other channel?

Gateway output looks like this:

rxpk 017ce200a020a6f42f0277b7 message {"rxpk":[{"rssi":-45,"stat":1,"modu":"LORA","rfch":0,"tmst":404545573,"datr":"SF9BW8

txpk {"txpk":{"imme":false,"tmst":405545573,"freq":923.3,"rfch":0,"powe":20,"modu":"LORA","datr":"SF9BW500","codr":"4/5","ipol":}

txpk_ack {"txpk_ack":{"error":"NONE"}}
transmitPkt 10050 6494 -2 923300000 144 144 2 64 20 16

PANIC: unprotected error in call

Hello,
i get the following error:
PANIC: unprotected error in call to Lua API (bad argument #1 to 'mode' (number expected, got nil))
best regards,
jurkov

Operating on 433MHz

Dear @JaapBraam ,

I am trying your code on an ESP12E, so far so good, nodemcu firmware installed, files uploaded.
Since I have an SX1278 module (only low band ie. 433), I've modified the freq setting to 433175000.
Connections:
DIO0-ESP12E GPIO5 - Definition in code - 1
DIO1-ESP12E GPIO4 - Definition in code - 2
SCK - ESP12E GPIO14
MISO - ESP12E GPIO12
MOSI - ESP12E GPIO13
NSS-ESP12E GPIO16 - Definition in code - 0
Gateway registers with backend, and can see the regular stats messages.

But I don't see packets arriving from the node (RN2483, also configured for 433 band) to the gateway. Is this something that should work, or am I trying something that is not implemented? - yet :-)
Thanks. Cheers.
Tamás

Question: How to run this gateway for US915 band

Is all that is required is change the local CHN array defnintion to run in US 915Mhz

local CHN={}
CHN[0]=chan(902300000,"LoRa",MC1.BW125)
CHN[1]=chan(902500000,"LoRa",MC1.BW125)
CHN[2]=chan(902700000,"LoRa",MC1.BW125)
CHN[3]=chan(902900000,"LoRa",MC1.BW125)
CHN[4]=chan(903100000,"LoRa",MC1.BW125)
CHN[5]=chan(903300000,"LoRa",MC1.BW125)
CHN[6]=chan(903500000,"LoRa",MC1.BW125)
CHN[7]=chan(903700000,"LoRa",MC1.BW125)
CHN[8]=chan(903900000,"LoRa",MC1.BW250)
CHN[9]=chan(904100000,"FSK" ,MC1.BW150)

or do I have to do something more.

OTA issue with single channel gateway

Hi,

I have been working with the single channel gateway on Australian frequencies using this library. Its a fabulous piece of work that is helping many out there who are stepping into Lora.

I am able to send messages to TTN using ABP without any issues, but OTA does not work.Was anyone able to get this working for OTA.

From the logs i can see the transmit packet received buy the gateway from TNN (transmitPkt), so I assume the gateway is transmitting this. I have also adjusted the receive window on my node to sufficiently cover the transmit timeframe during both the windows, but still not receive by the node. It gets the Rxtimeout. 1st window at 5 seconds and second at 6 seconds.with max window time of 3 seconds.

For the node i am using this library https://github.com/Lora-net/LoRaMac-node I am using the nrf52 as the mcu.

Ive been tweaking and trying since a week, but unable to get OTA to work. Am I missing something? Can you please help?

Regards
Arif

I can not run your code on my board,plz help

I am not familiar with nodemcu and I just followed your steps.

I encountered a problems:
PANIC: unprotected error in call to Lua API (bad argument #1 to '?' (number expected, got nil))

and the nodemcu restart over and over. and I am confused.

ESP8266 --> GPIO 13 busy

Hi there,

I can´t connect the pins of ESP8266 to the SX1278 as you described.

on my Ai-thinker esp8266 12-e GPIO 13 is connected to GND, otherwise it will not boot up.
where in the Lua files i can change the GPIO 13 to GPIO02 ?

thanks for reply
best regards from Lorch / germany

Robert

ESP32

Thanks for this Gateway.
I would like to know if it will work also with ESP32?
Thank you.

connect to ttn-router-eu

Is it possible to connect the gateway to ttn-router-eu?
I would like to register my gateway to ttn

Can I assume
LoRa Gateway | Register Name |
---|---|---
GW_HOSTNAME | Gateway ID |
GW_ROUTER | ttn-router-eu |
| | Description | LoRaWanGateway SF12 and SX1276
??? | | Gateway Key

Where can I set the provided Gateway Key?

image

No data received on TTN

Hi, I'm receiving data from my test node:

rxpk 01f0db005ccf7ff42f2cd6be message {"rxpk":[{"rssi":-42,"stat":1,"modu":"LORA","rfch":1,"tmst":14490442,"datr":"SF7BW125","lsnr":8,"time":"2017-03-01T19:40:00.616803Z","codr":"4/5","data":"QNwSASYAAAABJPwj/fGgDeYDZRmgqqGoJbQ=","freq":868.100,"chan":0,"size":26}]} length 240

but nothing appears on TTN console.

Attempting to connect to LoRaWanGateway with mdot.

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.

PANIC: unprotected error in call to Lua API (bad argument #1 to 'mode' (number expected, got nil))

while loading lua files I got some warnings see attached zip.
After several restarts I got the following message.
PANIC: unprotected error in call to Lua API (bad argument #1 to 'mode' (number expected, got nil))

The config.lua contains:
CONFIG["GW_NSS"]=0
CONFIG["GW_DIO0"]=1
CONFIG["GW_DIO1"]=2
the wiring: NSS to D0, DIO0 to D1 and DIO1 to D2. The modules LolinV3 NodeMCU with ESP-12E and a RFM95W.
nodemculualog.zip

Any idea or hint?
Regards Bert

ESP8266 resets

Hello!
I try to use this library with olimex ESP8266 DEV
I installed NodeMCU but it resets.
This is the output
Unknown radio: 34 pin,mode,pullup= 1 2 0 Pin data at mode: 1 60000840, 5 0 0, fffffffe Function platform_gpio_mode() is called. pin_mux:1610614848, func:0 Pin data: 1 1 60000840, 5 0 0, 00000005 PANIC: unprotected error in call to Lua API (?:0: attempt to index field '?' (a nil value))

time format

Hi again!
I use loraserver the - "lora gateway bridge 1.1.5" and i have the following error
time="2016-07-06T10:50:57+03:00" level=info msg="gateway: received udp packet from gateway" addr=192.168.200.160:15274 type=PushData time="2016-07-06T10:50:57+03:00" level=error msg="gateway: could not handle packet: parsing time \"\"2016-07-06T07:51:59.396440Z\"\" as \"\"2006-01-02 15:04:05 MST\"\": cannot parse \"T07:51:59.396440Z\"\" as \" \"" addr=192.168.200.160:15274 data_base64="Ad/FABj+NP//of9jeyJzdGF0Ijp7InJ4ZnciOjIsImFsdGkiOjAsImxhdGkiOjAuMCwicnhvayI6MiwiZGVzYyI6IkVTUDgyNjYgR2F0ZXdheSAoTHVhKSIsImxvbmciOjAuMCwicGZybSI6IkVTUDgyNjYiLCJ0aW1lIjoiMjAxNi0wNy0wNlQwNzo1MTo1OS4zOTY0NDBaIiwidHhuYiI6MCwibWFpbCI6IiIsImR3bmIiOjAsInJ4bmIiOjIsImFja3IiOjg4Ljh9fQ==" time="2016-07-06T10:50:57+03:00" level=info msg="gateway: received udp packet from gateway" addr=192.168.200.160:15274 type=PullData

It seems that the format that the gateway sends it is wrong.

Add status messages

Some 'cosmetic' changes:

Maybe in a next version you can add a few extra status messages. When I first started the gateway, it seemed it wasn't responding, but then I realised it just couldn't find the wifi network. A message telling that the device is trying to connect to the network would be nice.

Same for the radio module: the software does tell you when an unknown radio is found, but not when a known radio is found. Same confusion: I thought the module had freezed, but it actually worked like a charm.

OTAA works with TTN router but not lorawan-server local server

I have the lorawan-server( https://github.com/gotthardp/lorawan-server ) on my machine and for some reason the LoRaWanGateway will not negotiate a join with that backend server. I can use the same arduino-lmic single channel code against the lorawan-server with a MultiTech MTAC gateway and full up standard OTAA works with the MTAC gateway. But when I turn the MTAC off and power up the LoRaWanGateway, I don't see it ever joining.

I did notice that with the MTAC it wants to join on Channel 65(dn2Chnl) in both single channel and multi-channel configuration. But even setting LMIC.txChnl=65 in the Join-failed switch/case does not help the LoRaWanGateway complete a join request.

Any ideas why this might work fine against TTN backend but not the local lorawan-server backend even though that backend works with the MultiTech MTAC gateway?

any suggestions to improve the performance ?

hi,
Thanks for your single channel lorawan gateway, especially the ideal of CAD with scanning SF. It cause my arouse my interest. but I find problems as follow:
The packet loss rate is pretty high, if CadDetected but receive packet failed, the time wasted will influence the following SF scanning procedure. It will cause packet loss. I do not know why The SF12 packet can cause the other SF CadDetected ? and the transmit payload also cause CadDetected.
rx timeout 7 0 rssi 50
rx timeout 8 0 rssi 45
Looking forward to your suggestion. Thanks a lot

Problem with lua shell

Using PuTTy under Windows 7 I have a problem with CONFIG.print() shows the current configuration

issue_lua_telnet

I also probe CONFIG.GW_HOSTNAME="LoRaWan_Dock_v1_1" and CONFIG.GW_NTP_SERVER="fr.pool.ntp.org" but I dont really know if the parameter was updated.

any idea about this?

Remote Access

Hi JaapBraam,

First of all, very nice work!
It's not an issue but a question.
Can I change the wifi configuration without using a serial connection ? This will be nice if the gateway ins installed inside a closed box or in a inaccessible place.

add localization to the time stamps

By adding CONFIG["GW_TZOFFSET"] = "-8" for PST and crate a localtime function instead of gmtime using this offset times the 3600(num sec in 1 hour). Currently get error though.

local function localtime(t,us)
-- HOW TO DO THIS? rtctime.epoch2cal doesn't like my "fixed" epoch time
local lt = t + CONFIG["GW_TZOFFSET"] * 3600
local tm = rtctime.epoch2cal(lt)
return string.format('%04d-%02d-%02d %02d:%02d:%02d GMT',tm["year"],tm["mon"],tm["day"],tm["hour"],tm["min"],tm["sec"])
end

Different freq detected 902.2999xx instead of 902.3xxx (channel 0, subband 0)

My node are using LMIC code and transmitting to ESP gateway.. Setup US-915 channel sub band 0, 0-7 and enable channel 0 only. The freq received is different compare what I got if using Raspi Single packet gateway source. Below are the rcd packet;

rxpk.017f1000600194ffff0b94cb.message.{"rxpk":[{"rssi":-105,"stat":1,"modu":"LORA","rfch":0,"tmst":61998373,"datr":"SF10BW125","lsnr":-2,"time":"2016-08-20T02:28:08.167523Z","codr":"4/5","data":"QMSAzwYAVAEOGm77NG9CjwcPdOph","freq":902.299987,"chan":0,"size":21}]}.length.238

[DELETED]

Followed the procedure and it's working again.

does not seem to be completing activation

I tried the new code(didn't change firmware though) and it seems to have a problem activating. After telneting in it looks ok but from a minicom console I'd previously seen a non 902.3MHz freq listed.
Here's the telnet output upon connecting:

LoRaWanGateway
Configuration
GW_HOSTNAME "lorawangw"
GW_ROUTER "router.us.thethings.network"
GW_FREQ 902300000
GW_BW "BW125"
GW_SF "ALL"
GW_LAT "32.79242"
GW_LON "-117.24457"
GW_ALT 2
GW_NSS 0
GW_DIO0 8
GW_DIO1 1
Statistics
Uptime 0 days, 0 hours, 3 minutes, 1 seconds
Memory free 9568 bytes
Rx packets 0
Rx packets OK 0
Rx timeouts 7
Rx forwarded 0
Tx packets 0
Tx packets sent 0
Ack ratio 100.0% (40/40)

Send to GW

Hey there!

Can't connect to TTN :(
my config:
Configuration
GW_HOSTNAME "wgloragw01"
GW_NTP_SERVER "0.hu.pool.ntp.org"
GW_ROUTER "router.eu.thethings.network"
GW_PORT "1700"
GW_FREQ 433175000
GW_BW "BW125"
GW_SF "ALL"
GW_LAT "0.00"
GW_LON "0.00"
GW_ALT 0
GW_NSS 0
GW_DIO0 1
GW_DIO1 2

And have a dumb question....
How can I send from a lora node to this gateway? I cant see nowhere syncword in the code :$

Thanks in advance.

rx timeout

The Gateway has been working great so far, but lately I get a lot of rx timeouts:

rx timeout	7	rssi	47
rx timeout	7	rssi	46
rxpk	018bbd005ccf7ff42f1c7c47	message	{"rxpk":[{"rssi":-60,"stat":1,"modu":"LORA","rfch":1,"tmst":1194235805,"datr":"SF7BW125","lsnr":9,"time":"2017-03-19T06:24:50.564980Z","codr":"4/5","data":"QHkSASaAKwABjE34bZxxnOYQ2zYIWZaqGO5DaF9ckUFbZA==","freq":916.800,"chan":0,"size":34}]}	length	254
rx timeout	7	rssi	45
rx timeout	7	rssi	46
rx timeout	7	rssi	45
rx timeout	7	rssi	48
rx timeout	7	rssi	52
rx timeout	7	rssi	52
rx timeout	7	rssi	46
rx timeout	7	rssi	45
rx timeout	7	rssi	42
rx timeout	7	rssi	54
rx timeout	7	rssi	50
rx timeout	7	rssi	51
rx timeout	7	rssi	46
rx timeout	7	rssi	45
rx timeout	7	rssi	49
rx timeout	7	rssi	46
rx timeout	7	rssi	48
rx timeout	7	rssi	45
rx timeout	7	rssi	51
rx timeout	7	rssi	43
rx timeout	7	rssi	46
rx timeout	7	rssi	42
rx timeout	7	rssi	47
rx timeout	7	rssi	46
rx timeout	7	rssi	46
rx timeout	7	rssi	46

only very rarely messages are transmitted - is there something that might have changed on the TTN side? Or did I do something else wrong when setting it up?

Slave Select pin

Hi,

Thanks for the amazing gateway. I did everything, but my gateway is not running. Tried to run
dofile("init.lua")

On Esplorer I uploaded:
init.lua
LoRaWanGW.lc
SX1276.lc

And then it dont print anything. Tried to include some prints at the end and beginning.

I'm quit new to nodemcu. I dont get errors only:
ntp synced using 89.xx.20.xx

Also have my Slave select on pin D8, so I changed in SX1276.lua:
gpiowrite(8, 0)
Maybe we can I can put it in init.lua, so we can choose the SS pin...

Any solutions to debug??

Output of telnet strange format

Accessing telnet via putty or mobaxterm gives an output unformatted (seems that the lines are too long or without line end). See picture attached.

screenshot 117

It works, buts it´s difficult to read.

Problem uploading lua files

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:

  • I am uploading lua files with ESPlorer tool, because I dont know how python works very well... Should have I a problem using this tool?

  • I gave 4 "succes uploading" (one for each lua file in src folder), but when I reset the board I get:

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

any idea? thank you in advance!

PANIC: unprotected error in call to Lua API (routing problem)

PANIC: unprotected error in call to Lua API (routing problem)

ets Jan 8 2013,rst cause:4, boot mode:(3,0)

wdt reset
load 0x40100000, len 26844, room 16
tail 12
chksum 0x12
ho 0 tail 12 room 4
load 0x3ffe8000, len 2192, room 12
tail 4
chksum 0x5f
load 0x3ffe8890, len 136, room 4
tail 4
chksum 0x5a
csum 0x5a
������o��r��o|� l�lld`���r�p��l�� ��

NodeMCU custom build by frightanic.com
branch: dev
commit: 5feae3fee1debe6aef75b8836fa86f9967037f2f
SSL: false
modules: bit,cjson,encoder,file,gpio,net,node,rtctime,sntp,spi,tmr,uart,wifi
build built on: 2017-03-01 07:31
powered by Lua 5.1.4 on SDK 2.0.0(656edbf)
no config found, using default values

got ip 192.168.1.123 255.255.255.0 192.168.1.1
Gateway ID 5CCF7FF42F2CD6BE
ntp synced using 213.239.154.12
2017-03-01 19:25:36 GMT
start allSF detector
router ip: 52.169.76.203
ntp synced using 94.228.220.14
rx timeout 7 rssi 50

Getting it to work with the Hallard WeMos board

I have a bunch of LoRa Single Channel Gateway by Hallard(https://github.com/hallard/WeMos-Lora) and would love to get full spread factor support. But the Hallard board and WeMos have DIO0 and DIO1 OR'ed through diodes to one pin on the WeMos. Would it still work?

So far I don't see any node messages going through to TTN and don't see anything on the console from the gateway but this:

**NodeMCU custom build by frightanic.com
        branch: dev
        commit: 5425adefff62f9ea2094e3e4581a79f1424e4433
        SSL: false
        modules: bit,cjson,encoder,file,gpio,net,node,rtctime,sntp,spi,tmr,uart,wifi
 build  built on: 2017-01-08 22:15
 powered by Lua 5.1.4 on SDK 2.0.0(656edbf)
> got ip        192.168.1.169   255.255.255.0   192.168.1.1
Gateway ID      A020A6F42F0277B7
ntp synced using 209.208.79.69
2017-01-17 02:47:34 GMT
start allSF detector
router ip:      13.66.213.36
ntp synced using 132.163.4.102**

I'm using US freq and inserted them as you mentioned while commenting out the EU freqs. My nodes are on ch0( 902300 and SF7 ).

UPDATE: Setting DIO0 and DIO1 to 8(D8) in init.lua and uploading I now see some scrolling data on the console. Still not getting messages through to TTN but it's something and when I force the node to transmit I see the rssi signal jump from ~55 to 119 so it's seeing something.

rx timeout 7 0 rssi 55 -- actually fluctuating

TheThingsNetwork

Is there problem connecting to TTN? The data is not transmitted to TTN. In the log i see that the gateway receives frames.

why the percent of receive success is low when set the GW_SF to ALL

Hi JaapBraam,I am coming again
When I set parameter GW_SF to a specific value(like SF10), the gateway can receive 100% ok,
But when I set the parameter GW_SF to ALL, the gateway mostly prompts "rx timeout", only about 20% can receive the data.So I want to know what about you reality test and if there are any advise for me to deal this problem
Great thank to you!!!

Incorrect transmit frequency

Gateway receives uplink ok at 865062500 but then transmits an ack at 865620000 when it should be the same as the Uplink frequency.

Could be misinterpreting the ack request from the LoRaWAN server as the same end node communicates with an 8+1 channel gateway (mcard on RPi) using the same router, exact same configuration, with no problem, i.e. 86506250 up and down.

This router is Orne Brocaar's LoRaWAN server, latest version.

Here's some output from the ESP8266 gateway via telnet:
rxpk 0176c600a020a6f42f19ff48 message {"rxpk":[{"rssi":-91,"stat":1,"modu":"LORA","rfch":1,"tmst":1590172565,"datr":"SF12BW125","lsnr":7,"time":"2017-10-28T22:54:58.558062Z","codr":"4/5","data":"gAEBAQGACgAPSO+NYWcB0v7UWQ==","freq":865.062,"chan":0,"size":19}]} length 235
txpk {"txpk":{"imme":false,"tmst":1591172565,"freq":865.062,"rfch":0,"powe":27,"modu":"LORA","datr":"SF12BW125","codr":"4/5","ipol":true,"size":12,"data":"YAEBAQEgFgBuDfmj"}}
txpk_ack {"txpk_ack":{"error":"NONE"}}
transmitPkt 16598 12388 -1 865620000 192 112 2 64 27 12

If I'm reading this correctly the LoRaWAN server request is 865.062 but actual transmission is 865.620.

Spectrum analyser indicates these frequencies are indeed being transmitted.

Probably a while since you've looked a this! So any suggestions would be appreciated.
Cheers, Ron

Compatibility RF95

Hi,

I installed your gateway and it makes contact with TTN as it should, it doesn't receive Lora messages. I am using a RF 95 module. I have been told it should be compatible with the SX1276, but I am wondering whether that's actually true?

I get this message after starting:

> got ip	192.168.43.93	255.255.255.0	192.168.43.1
Gateway ID	5CCF7FF42F82E338
ntp synced using 84.80.85.74
2017-06-01 09:44:14 GMT
Unknown radio: 	9
start allSF detector
router ip:	52.169.76.203
ntp synced using 91.148.192.49

So the radio is 'unknown'...

Should I get a 'real' SX1276 instead of the RF 95?

Node doesn't receive ack back

Hello,

I have the gateway up and running. It is forwarding the packets sent by the node to the TTN server and I can see them in the console. However, it seems that when the node sends a confirmed packet, the ack coming from the server does not reach the node. I can see that the gateway receives and apparently forwards the ack. I have also tried to simulate a downlink from the TTN console and seems to be working. I can't really see if what the gateway forwards is the simulated packet or something else because it is encrypted. Nevertheless, the address of the node is correct in both case. But I can't see the node receiving anything back (looking at the serial port of the node).

This is the output of the gateway:

rxpk 0142aa00600194f42f10187b message {"rxpk":[{"rssi":-42,"stat":1,"modu":"LORA","rfch":1,"tmst":2060746683,"datr":"SF7BW125","lsnr":9,"time":"2017-03-09T06:54:13.361317Z","codr":"4/5","data":"gGcZAiaA8AAB//oKi+EvV/YMaUY=","freq":903.900,"chan":0,"size":20}]} length 234

txpk {"txpk":{"imme":false,"tmst":2061746683,"freq":923.3,"rfch":0,"powe":20,"modu":"LORA","datr":"SF7BW500","codr":"4/5","ipol":true,"size":13,"data":"YGcZAiYgiQABNX0/eg=="}}

txpk_ack {"txpk_ack":{"error":"NONE"}}

transmitPkt 11626 6461 -1 923300000 112 144 2 64 20 13

And this is from the node:

215627791: TXMODE, freq=903900000, len=20, SF=7, BW=125, CR=4/5, IH=0
Packet queued
Device addresss is: 637671783
215693479: RXMODE_SINGLE, freq=923300000, SF=7, BW=500, CR=4/5, IH=0
215756338: RXMODE_SINGLE, freq=923300000, SF=9, BW=125, CR=4/5, IH=0
215896595: EV_TXCOMPLETE (includes waiting for RX windows)
Setting next callback
215902911: engineUpdate, opmode=0x800

I am using the LMIC-Arduino library developed by Matthijs Kooijman. Since I am not sure whether I'm doing something wrong on the gateway side or node side, I will also post this on his repo.

Thanks!

Asier

Component Question

Hi Jaap,

I'm getting started trying out your project, and I have a (I'm located in USA, so I use a 915MHz version) Adafruit RFM95W LoRa Radio Transceiver . Is that ok? Do you recommend any particular unit?

I was unable to figure out which SemTech radio Adafruit is using for the above product.

Thanks for your help!

Best regards,

Forrest

OTAA worked!

I still have one of your gateways running(one of 4 here) and after having built a full multi-channel gateway I was doing some testing and fired up a node which I'd previously provisioned with OTAA code. I saw some strange messages on TTN data page and then realized it was the single channel node with OTAA I had setup long ago without any luck getting it to work. Low and behold your gateway picked it up on the same Freq and up on TTN it showed data.

Fantastic!

Thanks for the great testbed and this might be an option for attendees of my workshops as long as they expect to use their nodes close to their homes or offices. IIRC you said the range of this multi SF gateway was down to a few hundred meters.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.