Application is not showing any data but gateway shows traffic

Hi everyone, I’m trying to pair my gateway with a node by following this getting started tutorial and I’d say that I’ve got a similar problem than this one, but in my case I’ve got the gateway set up and apparently working; this is my hardware:

photo_2020-05-08_15-13-29

Both are SX1276

I’ve modified the suggested sketch to include the Device Address, Network Session Key and App Session Key; I’ve compiled the sketch (from apart a little issue related with LMIC library, which I’ve solved cloning the last version of the library directly) … and as you can see the Serial Monitor is showing entries every minute. Even I can see traffic in the Gatway Overview

image_2020-05-08_14-21-23

and I’d say this traffic is being caused by the node. In fact dual_chan_pkt_fwd.service is journaling also a few related entries as you can see

may 08 14:10:12 raspberrypi dual_chan_pkt_fwd[565]: stat update: 2020-05-08 12:06:18 GMT 29 packets received                                                                                                                                  
may 08 14:10:12 raspberrypi dual_chan_pkt_fwd[565]: stat update: 2020-05-08 12:06:48 GMT 29 packets received                                                                                                                                  
may 08 14:10:12 raspberrypi dual_chan_pkt_fwd[565]: stat update: 2020-05-08 12:07:18 GMT 29 packets received                                                                                                                                  
may 08 14:10:12 raspberrypi dual_chan_pkt_fwd[565]: stat update: 2020-05-08 12:07:48 GMT 29 packets received                                                                                                                                  
may 08 14:10:12 raspberrypi dual_chan_pkt_fwd[565]: stat update: 2020-05-08 12:08:18 GMT 29 packets received                                                                                                                                  
may 08 14:10:12 raspberrypi dual_chan_pkt_fwd[565]: stat update: 2020-05-08 12:08:48 GMT 29 packets received                                                                                                                                  
may 08 14:10:12 raspberrypi dual_chan_pkt_fwd[565]: stat update: 2020-05-08 12:09:18 GMT 29 packets received                                                                                                                                  
may 08 14:10:12 raspberrypi dual_chan_pkt_fwd[565]: stat update: 2020-05-08 12:09:48 GMT 29 packets received                                                                                                                                  
may 08 14:10:12 raspberrypi dual_chan_pkt_fwd[565]: CE0 Packet RSSI: -30, RSSI: -94, SNR: 9, Length: 26 Message:'@c..&.@.....x|P....Z?.H.t.'                                                                                                  
may 08 14:10:12 raspberrypi dual_chan_pkt_fwd[565]: rxpk update: {"rxpk":[{"tmst":3776099361,"freq":868.1,"chan":0,"rfch":0,"stat":1,"modu":"LORA","datr":"SF7BW125","codr":"4/5","rssi":-30,"lsnr":9.0,"size":26,"data":"QGMRASaAQAABnaTPeHxQ
zBqTyVo/90gfdNE="}]}                                                                                                                                                                                                                          
may 08 14:13:25 raspberrypi dual_chan_pkt_fwd[565]: stat update: 2020-05-08 12:10:18 GMT 30 packets received                                                                                                                                  
may 08 14:13:25 raspberrypi dual_chan_pkt_fwd[565]: stat update: 2020-05-08 12:10:48 GMT 30 packets received                                                                                                                                  
may 08 14:13:25 raspberrypi dual_chan_pkt_fwd[565]: stat update: 2020-05-08 12:11:18 GMT 30 packets received                                                                                                                                  
may 08 14:13:25 raspberrypi dual_chan_pkt_fwd[565]: stat update: 2020-05-08 12:11:48 GMT 30 packets received                                                                                                                                  
may 08 14:13:25 raspberrypi dual_chan_pkt_fwd[565]: stat update: 2020-05-08 12:12:18 GMT 30 packets received                                                                                                                                  
may 08 14:13:25 raspberrypi dual_chan_pkt_fwd[565]: stat update: 2020-05-08 12:12:48 GMT 30 packets received                                                                                                                                  
may 08 14:13:25 raspberrypi dual_chan_pkt_fwd[565]: stat update: 2020-05-08 12:13:18 GMT 30 packets received                                                                                                                                  
may 08 14:13:25 raspberrypi dual_chan_pkt_fwd[565]: CE0 Packet RSSI: -96, RSSI: -96, SNR: -12, Length: 112 Message:'.mP.A...$..H.......y{....0i.J..!..Q{z.. !..j.1.N.'...(..q...........9...V.....?..].|\..Z...m6...w....d.u..j....F'         
may 08 14:13:25 raspberrypi dual_chan_pkt_fwd[565]: rxpk update: {"rxpk":[{"tmst":3969443103,"freq":868.1,"chan":0,"rfch":0,"stat":1,"modu":"LORA","datr":"SF7BW125","codr":"4/5","rssi":-96,"lsnr":-12.0,"size":112,"data":"4G1QiEGQuNYk3ZtIq
ZPG5wyXqHl7owvwpTBpzUoYvSEexFF7epPfICG9imoQMQROjSfHxJsoqZBxBQsY9rUUy/bf98E55p+lVu6a+cUBP5+xXfl8XJy6WvAVCW0286rId6Xdp5xkzHXgxGrFiYrWRg=="}]}                                                                                                   
may 08 14:18:30 raspberrypi dual_chan_pkt_fwd[565]: stat update: 2020-05-08 12:13:48 GMT 31 packets received                                                                                                                                  
may 08 14:18:30 raspberrypi dual_chan_pkt_fwd[565]: stat update: 2020-05-08 12:14:18 GMT 31 packets received                                                                                                                                  
may 08 14:18:30 raspberrypi dual_chan_pkt_fwd[565]: stat update: 2020-05-08 12:14:48 GMT 31 packets received                                                                                                                                  
may 08 14:18:30 raspberrypi dual_chan_pkt_fwd[565]: stat update: 2020-05-08 12:15:18 GMT 31 packets received                                                                                                                                  
may 08 14:18:30 raspberrypi dual_chan_pkt_fwd[565]: stat update: 2020-05-08 12:15:48 GMT 31 packets received                                                                                                                                  
may 08 14:18:30 raspberrypi dual_chan_pkt_fwd[565]: stat update: 2020-05-08 12:16:18 GMT 31 packets received                                                                                                                                  
may 08 14:18:30 raspberrypi dual_chan_pkt_fwd[565]: stat update: 2020-05-08 12:16:48 GMT 31 packets received                                                                                                                                  
may 08 14:18:30 raspberrypi dual_chan_pkt_fwd[565]: stat update: 2020-05-08 12:17:18 GMT 31 packets received                                                                                                                                  
may 08 14:18:30 raspberrypi dual_chan_pkt_fwd[565]: stat update: 2020-05-08 12:17:48 GMT 31 packets received                                                                                                                                  
may 08 14:18:30 raspberrypi dual_chan_pkt_fwd[565]: stat update: 2020-05-08 12:18:18 GMT 31 packets received                                                                                                                                  
may 08 14:18:30 raspberrypi dual_chan_pkt_fwd[565]: CE0 Packet RSSI: -31, RSSI: -96, SNR: 9, Length: 26 Message:'@c..&.H..A..#..H.....4.2}B'                                                                                                  
may 08 14:18:30 raspberrypi dual_chan_pkt_fwd[565]: rxpk update: {"rxpk":[{"tmst":4274836837,"freq":868.1,"chan":0,"rfch":0,"stat":1,"modu":"LORA","datr":"SF7BW125","codr":"4/5","rssi":-31,"lsnr":9.0,"size":26,"data":"QGMRASaASAABQQPgI/Oz
SMTdmJ+nNLcyfUI="}]} 

But the point is … the device keeps as “status: never seen” in the Device Overview

image

And I cannot see anything inside Data tab either

image

What I’m doing wrong?

Thank you all

Hacks where a node-class radio tries to impersonate a gateway (ie, “single channel” or “dual channel”) are not and can never be proper LoRaWAN gateways. They are detrimental to other TTN users because they can cause other people’s nodes to adapt data rate to the false belief that there is a functioning gateway at your location, which can lead to failure to reach the actual gateways installed at more distant locations.

As such they should not be connected to TTN and are not supported here.

(Incidentally, your log off the pi shows traffic from two different nodes, at least one of which presumably belongs to someone else)

1 Like

Well this is for a final degree project, so it is a prototype, just to learn more about LoRa. I apreciate your info and in a productive environment I’d use a specifically designed gatway.

But I would like to use this raspberrypi a first. Anyway … which comercial gatways do you recommend me? (I’m not sure to be able to afford one of them; I’d like a cheap one)

The point is … I need to learn first how is working TTN and LoRa, and I think the raspberrypi is enough to this matter.

The problem is that you are running in a “production environment” - TTN is production for other people and connecting a device that lies and claims to be a gateway when it actually isn’t can be detrimental to their operations. Your box has already picked up traffic belonging to someone who is not you.

The problem is not the raspberry pi, but rather using the hat with a node class radio on it. To make a gateway from a raspberry pi you need a lora concentrator card with a proper SX1301 or SX1308 chip on it.

1 Like

so the problem is not the raspberrypi but the hat … :thinking: I see … But … I don’t know how could I connect such a thing to my raspberrypi (which has not Mini PCIe)

Also I find it so expensive for a prototype, I guess it must be an alternative to TTN then to build this prototype …

Also, you’re probably disturbing operations of some of your fellow students.

Please, just don’t. With a proper node you can probably use their gateway.

Badajoz

The utilized part of mPCIe is the 3v3 power supply and the embedded USB bus. There are plenty of adapters on the market to go from a standard USB port to that (just beware that some have the voltage regulator set too high, requiring that you change the resistors before putting in your expensive radio card)

However most LoRaWAN concentrator cards have an SPI interface, not a USB one. Eg, something like a RAK833.

(The nFuse card is at least a proper 2nd-generation USB interface. Things with first-generation FT2232 based USB interfaces are deprecated and not a good investment. So for example the RAK SPI cards are fine, but their FT2232 based USB models are not)

@cslorabox so I guess you are suggesting something like this right?

At the end, my idea is to use Fiware as platform to manage the context info, but its LoRa agent it supports just two stacks as you can see here … so I guess I should research about LoRaServer and do this by my own, instead use TTN