jpmeijers / ttn-resin-gateway-rpi

81 stars 41 forks source link

Can't connect to a private instance of ttn server #17

Closed Maoie86 closed 6 years ago

Maoie86 commented 6 years ago

Greetings!

We subscribe to a private instance of ttn and we are having problems connecting to it. I edited run.py to get the gateway details to get it from our own instance. The gateway has no problem with that as it can get the freq, gateway key, gps etec. But the gateway can't connect to the private instance.

I keep getting this error on the resin dashboard log.

clipboard02

jpmeijers commented 6 years ago

I normally use the UDP/Semtech protocol to connect to private TTI instances. Normally what happens is that private instances use different ports for the different services. As far as I know MP-packet-forwarder can't be told to use a different port for the TTN connector (mqtt/protobuf) protocol. So the port it is trying to connect to is most likely the incorrect one for you server.

Maoie86 commented 6 years ago

Thanks for replying. I'll message kersing. Maybe he can help me. :)

jpmeijers commented 6 years ago

Should be fixed now thanks to a contribution by @dotpy3

Maoie86 commented 6 years ago

yes! thanks! :)