Change port of UDP listener for the packet-forwarder data

Hi,

From the documentation(https://github.com/brocaar/loraserver-setup/blob/master/README.md), I understood that LoRa gateway bridge is using 1700 port for both uplink and downlink communication. Why same port number 1700 is used for both uplink and downlink sessions?
I would like to use two separate ports for uplink and downlink (Say 1690 and 1691).
Is it possible to configure the UDP listener to different ports ?

Thanks and regards,
Krishna

Hi,

Any documentation available for configuring the UDP listener port number from 1700 to other port?

Regards,
Krishna

Have you checked the LoRa Gateway Bridge configuration documentation?

Yes. I have gone through below link.
https://www.loraserver.io/lora-gateway-bridge/install/config/

Here udp_bind = “0.0.0.0:1700” related to packet forwarder port.

By the documentation, It looks like for both uplink and downlink(‘serv_port_up’ and ‘serv_port_down’) same port(1700) is used. Is that correct? Whether any other configuration is available for UDP port (uplink and downlink) configuration?

LoRa Gateway Bridge uses the UDP port from which the packet-forwarder sends its data. I believe this is the right implementation as when your gateway is behind a NAT, this is (I believe?) the only way your NAT is able to figure out to which internal IP the UDP packet must be routed. Please correct me if I’m wrong here.

There is no problem in the Lora gateway bridge functionality. Currently for both uplink and downlink, single UDP session is used.
I just wanted to use two independent session for uplink and downlink for specific requirement. Is that possible?

No, but you can also make these modifications yourself if needed for your case.

Ok. understood. Currently single socket UDP session is used for both uplink and downlink communication. Is that correct?

yes it’s correct
You have to change your global_conf.json or local_conf.json, to set the UDP socket on the same port, i’m assuming that your are using the packet_forwarder

Yes. Ok. whether LoRa gateway bridge can receive data from two LoRa gateway (two packet forwarder) at same time?
In my case, 2 packet forwarder is running on LoRa gateway and brocaar Lora server + bridge running on Linux PC.

This is documented here: https://www.loraserver.io/lora-gateway-bridge/install/deployment/.

I think that you can try to configure your 2 packet forwarder to bind the same address, by changing server_address in global_conf.json

I never test it

ok. Understood. from packet forwarder, i would like to send diagnosis, communication/error log messages and some custom packets using same UDP session and I want it to be published by LoRa application server to external application (through MQTT).
Currently I am receiving gateway status packet and LoRa node rx data through MQTT. If I send any of the additional packet from packet forwarder, how it will be received?