pulsartronic / LoRaWANGatewaySC

LoRa WAN Single Channel Gateway
GNU General Public License v3.0
41 stars 25 forks source link

No connection to eu1.cloud.thethings.network #9

Open OZ1BV opened 2 years ago

OZ1BV commented 2 years ago

Hi

I have 2 gateways, one that uses the ESP8266 library v3.0.2 and another using v2.7.4 and none of them are able to connect. The RFM is initialized and WiFi is up and running.

I have created 2 gateways using the console (https://eu1.cloud.thethings.network/console/gateways) and I am 100% sure that the ID's are correct. The port is not changed so it should be ok (1700). The status is continuously "Disconnected" for both.

I see no error output in the "Wan Server connection console log" so I have no idea about what is wrong. The gateways are seeing packages and seems to forward them.

Best regards, Brian

pulsartronic commented 2 years ago

Hello @OZ1BV , check that your router hasn't an active firewall .... communication between the gateway and TTN is over UDP, and some routers are configured by default to allow outgoing packets but not incoming ones, thus, TTN receives your data yet the gateway receives no acknowledge at all, which is needed to show as "connected" ... if you don't know how to set it up, try another connection/router to see if it is the case

OZ1BV commented 2 years ago

Hi again

The router has no active FW and I had a Raspberry pi that acted like a gateway without problems. Beside this I am using VOIP.

Best regards, Brian

OZ1BV commented 2 years ago

I got access to a remote Linux machine outside my home and I have configured the local router to forward UDP traffic on port 1700. I am able to send UDP messages to this machine. Then I changed the host on the LoRa gateway to the remote Linux machines external IP-address. I am using netcat. This is the raw console output:

oz8sma@SMA01 ~ $ nc -l -u -p 1700 ���[���KH4[�[���KH4�9�[���KH4�i�[���KH4{"stat":{"lati":1,"long":1,"alti":1,"rxnb":0,"rxok":0,"rxfw":0,"ackr":0,"dwnb":0,"txnb":0}}n��[���KH4��[���KH4�&�[���KH4-#�[���KH4{"stat":{"lati":1,"long":1,"alti":1,"rxnb":0,"rxok":0,"rxfw":0,"ackr":0,"dwnb":0,"txnb":0}}���[���KH4$9�[���KH4

This is making me 100% sure that my local router is not blocking the traffic. But, I am not sure how to test if incoming packages are rejected. I will be back later when I have figured this out.

rena2019 commented 1 year ago

Hey guys, is it still possible to use this single channel packet forwarder? Or is it not working anymore because TTN is blocking such forwarder?