Hi guys and girls.
Last week I was able to setup my ESP8266 to send data to the TTN by using the standard “network session key” and " application session key". The data is going fine in the direction of. https://thethingsnetwork.org/api/v0/nodes/xxxxxx
I see a lot of data.
I moved over to my own environment using ttnctl. I can see data comming in.
But only one message. The frames up I have to reset to be able to receive the next message. I already added the flag " relax-fcnt" to my node.
I know my problem is explained right here:
http://staging.thethingsnetwork.org/wiki/LoRaWAN/Security#security-in-lorawan-and-ttn_frame-counters
But I cannot find the solution. Which field ( assume field tmst) is not correctly?
Here is my data that I have send.
{“stat”:{“time”:“2016-06-16 19:54:57 CDT”,“lati”:0.0,“long”:0.0,“alti”:0,“rxnb”:296,“rxok”:296,“rxfw”:0,“ackr”:0.0,“dwnb”:0,“txnb”:0,“pfrm”:“ESP8266 1ChannelGateway”,“mail”:“jbeemster@quicknet.nl”,“desc”:“Arduino Based ESP8266 gateway Jeroen Beemster”}}
{“rxpk”:[{“tmst”:2547361648,“chan”:0,“rfch”:295,“freq”:868.100000,“stat”:1,“modu”:“LORA”,“datr”:“SF7BW125”,“codr”:“4/5”,“lsnr”:10,“rssi”:-38,“size”:31,“data”:“QK7SvYKAAAABJrRjlqbPpgJIAiyx6eIG7RqqgAOfZA==”}]}
{“rxpk”:[{“tmst”:3450412648,“chan”:0,“rfch”:296,“freq”:868.100000,“stat”:1,“modu”:“LORA”,“datr”:“SF7BW125”,“codr”:“4/5”,“lsnr”:10,“rssi”:-38,“size”:31,“data”:“QK7SvYKAAAABJrRjlqbPpgJIAiyx6eIG7RqqgAOfZA==”}]}
Looking forward to hear from you specialists.
BTW: I have setup Node-red. I am connected but do not see any data coming in (even not the first message). But I think that will be a topic of “part 3” .