Lora-net / packet_forwarder

A LoRa packet forwarder is a program running on the host of a LoRa gateway that forwards RF packets receive by the concentrator to a server through a IP/UDP link, and emits RF packets that are sent by the server. This project is associated to the lora_gateway repository for SX1301 chip. For SX1302/1303, the repository sx1302_hal must be used.
Other
724 stars 668 forks source link

Reliability risk #50

Closed Rustie0125 closed 7 years ago

Rustie0125 commented 7 years ago

Is there anyway to run the same packet forwarder in TCP/IP mode, UDP over large networks is not advisable

mcoracin commented 7 years ago

You can use any type of link you want between the gateway and your network server. UDP is just given as a simple example.

Rustie0125 commented 7 years ago

Excuse my ignorance but how to i go about doing that ? looking for a UDP to TCP streamer or what ?

On Thu, Jul 20, 2017 at 9:10 AM, Michael Coracin notifications@github.com wrote:

You can use any type of link you want between the gateway and your network server. UDP is just given as a simple example.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Lora-net/packet_forwarder/issues/50#issuecomment-316617059, or mute the thread https://github.com/notifications/unsubscribe-auth/AaphckoqKJWicJ6d2hx050NoBKSRRHSYks5sPv2BgaJpZM4Odmrt .

--

Kind Regards Johann Van Niekerk

Your time true opinion and honesty is appreciated

brocaar commented 7 years ago

@Rustie0125 maybe this could be of interest: https://docs.loraserver.io/lora-gateway-bridge/use/data/? This transforms the UDP protocol in JSON over MQTT (thus TCP). It enables you to also use TLS to encrypt all data between your gateway and MQTT broker.

mcoracin commented 7 years ago

@Rustie0125 You can change the packet forwarder to use TCP instead of UDP. I'll let you search on the internet how to do that (google "linux socket TCP"). But you'll need a server on the other side which behave accordingly too.

I'm not sure which problem you're trying to solve? Are you experiencing issues with UDP already? Is it a reliability issue or a confidentiality issue, or both? For sure UDP is not advised for a real large scale usage anyway...