LoRa Gateway Bridge to TTN


#21

I’ve updated the repo with the commit below. I hope this helps you:


#22

Hi, nice. got it compiled an the multiplexer recieves packets. But it won’t connect to my loraserver and/ or TTN.
My config.
Packetforwarder(ttn etc) -> port 1800 to multiplexer -> Multiplexer Host ttn.x.y.:1700 is that correct?
Thx daniel


#23

Hello Daniel,

Post your config.

This is how I have the port multiplexer configured and it works fine:

Packet forwarder -> multiplexer -> backends(this could be lora-gateway-bridge, TTN, Loriot or all the above). Remember it’s multiplexing UDP so everything that understands the packet forwarder protocol should go after or out(backend section) of the multiplexer.

I run the packet multiplexer on a separate box.

Configure the packet forwarder to send to the ip address that the multiplexer is running on at port 1800 for instance.

log_level=4
bind="0.0.0.0:1800"
#To lora-gateway-bridge which then sends to Loraserver
 [[packet_multiplexer.backend]]
 host="lora-gateway-bridge-ip-here:1700"
 gateway_ids = [
   "gatewayid0","gatewayid1","gatewayid2","gatewayid3"
 ]

#This sends the same traffic from the forwarder to TTN
[[packet_multiplexer.backend]]
host=“router.us.thethings.network:1700”
gateway_ids = [
“gatewayid0”,“gatewayid1”,“gatewayid2”,“gatewayid3”
]

Understand that this might cause scheduling conflict issues with down links if you’re using different network servers like TTN plus Loriot plus Loraserver but it’ll send all of the packets to multiple locations. I have tested it with 5 backends and it works as it should.


#24

Hi,

thx for this answer. My config is like yours, but the Gateways in TTN and loraserver don’t show status connected. Is that correct?
netstat -na shows Port 1700/ 1800 connections but the status of the gateways woun’t become conected.
Debug =5 shows “packet recieved from gateway, and sending packet to gateway” in lora-multiplexer-console.
TTN-Service ist ok, shows packet transmitted, with CRC OK 100%. TTN PAcket forwarder as desicribed " localserver, port 1800" .

Any Idea?

thx Daniel


#25

Hi, the multiplexer doesn’t forward any data to the loraserver. Gateway direct (without multiplexer) to loraserver works fine.In the console there is sending, recieving but with a tcpdump on the loraserver i cannot see any packets. I switched to a standalone multiplexer, so i can say it’s not a firewall problem.


#26

What does your multiplexer config look like?

Once you start the multiplexer you’ll see traffic come in on the console. If you don’t see traffic then your packet forwarder is not sending to the multiplexer.


#27

log_level=4
bind=“0.0.0.0:1800”

[[packet_multiplexer.backend]]
host=“lip-of-my-loraserver:1700”
gateway_ids = [
“macbased-ID.”,
]

Console shows traffic, packet send to gateway, packet recieved from gateway.