/lora-semtech-bridge

Bridge between LoRa gateways (Semtech UDP protocol) and the loraserver.

Primary LanguageGoMIT LicenseMIT

LoRa Semtech Bridge

Build Status GoDoc

LoRa Semtech Bridge is a service to handle LoRa gateway (Semtech UDP protocol) connections and communication with the loraserver (https://github.com/brocaar/loraserver).

Getting started

  • Download and unpack semtech-bridge: https://github.com/brocaar/lora-semtech-bridge/releases

  • Install a MQTT server (used for communication with loraserver). Mosquitto is a good option: http://mosquitto.org/.

  • Start the semtech-bridge service. The --help argument will show you all the available config options. When everything is setup correctly (your gateway is configured to send data to semtech-bridge), you should see PullData packets coming in. E.g.

$ ./bin/semtech-bridge
INFO[0000] backend/mqttpubsub: connecting to mqtt server  server=tcp://127.0.0.1:1883
INFO[0000] starting gateway udp listener                 addr=0.0.0.0:1700
INFO[0006] incoming gateway packet                       addr=192.168.1.4:54993 type=PullData
INFO[0006] backend/mqttpubsub: subscribing to topic      topic=gateway/1dee08d0b691d149/tx
INFO[0006] outgoing gateway packet                       addr=192.168.1.4:54993 type=PullACK
INFO[0006] incoming gateway packet                       addr=192.168.1.4:51926 type=PushData
INFO[0006] stat packet received                          addr=192.168.1.4:51926 mac=1dee08d0b691d149
INFO[0006] outgoing gateway packet                       addr=192.168.1.4:51926 type=PushACK
INFO[0006] backend/mqttpubsub: publishing message        topic=gateway/1dee08d0b691d149/stats

License

This package is licensed under the MIT license. See LICENSE.