Skip to content

Commit df5ddb0

Browse files
committed
Rename lora-semtech-bridge > lora-gateway-bridge.
1 parent faa62d7 commit df5ddb0

File tree

15 files changed

+104
-87
lines changed

15 files changed

+104
-87
lines changed

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,22 @@ deploy:
3131
skip_cleanup: true
3232
access_key_id: AKIAIOU53PLXIUE7YBBQ
3333
secret_access_key:
34-
secure: icpQ0132LlnZD6b2m8o/Bhe9JJnuSJh9hDv1OCmS+h4xO1DSfn1hNuk05a6oyDSwPF04HCbmncTLDcGLnbokK+dL2mrlT6M3BCbC29orLcP7rrUKnq5VLCrVI2jdyBAtLmzNIzPYci8dVuJfj9Voom4/BXosxM+2ry2xa0uvl5dYtzQS7yoocxpl7j3LfzP3hM6GEx64ePIikdOC9U6f1wtdMJ/GjDOUOEl4KqRXYcbOKvufXg+HW3BKLskZsFFn2xoUNvG6rMQZGmirJpiKN+GinEW06HmLEKqynsAMEJEoUw4L40kPhLmT2rm3kUbAQU99ZEitBPmAmh9jA85f6bO1kOVYF9J5S7EVIDUCbqCpaIDoG4w5iVNodb/7VHM5j+6SVjnHHNTpZ3LIF6GD4W6775DzZECU6vZELHymy4ro0haMYRcU3xp+rD/OT1LE031lZK8VcakpyJKb8d2/JO8r22SLBqOI7qV96rhtHSzPxdG4Dug3jXr8Cio/mfHVJOZu9WU37xWhPhjRLPta6AIQAbG+AySptCu/3mqq3uKUFsP9YZQYkCgr4kR7H3hMlvYOVSwmhcQReHuFLN5DotoHFA2f2CgVh1uVaSGoNKDDMK8Zf8ArOslGhRzZrSGRYuxKqbWdae9EIhWyPR4cdnzT11C5/Kdfdj9CqQPgvb0=
34+
secure: h5ku+etn/Y+CDyXoVIoImMgc5sP1cOjQ0rDSt60sdEUsboHHo7sFfPRybTppcTJwZe33bMl5/nrW0GGHpMpbotWB2ifxe/irRPsRpuXzy2lc0rq1DaT9mHK1SJ3VYEYjIJVH+G5GQFzt5cPxgPagkpPMZyLth+liCg0ry7tz/P1MxGg5Ltn9yIOKjyNBeEIKYGDzsyUlTDlTrN6xKmic9aHa5yulXdyS0r8XVZ6YqT/CLEWS2fF16XnQ3OqNXjh8beBHj7oRxj9Z/SWAS82PBO8WBBQ9wrT7JDuP7oSPKpjZPnbHcOxSCHiakzaVqGAJCTQJ7ndjIYLItQoKJxs1t2XM8NUd10o87d3XE5yDcGvFBkAI53oAIFa/2nmJSyNwBnutp8xg+JcuexxZKZsPwKk8mh0vIpmM0JcWTHIjW+ATskjUkMiX3ap/nn2uvGTBXIC4X9wSNKySkx0yKiM4nW+6U5fseAz4X9zkUby/STEGtIfGIaiFba3AH0d+Ld+qwzdS3RTLIWwIAdvWodekW2YPpeITsaBFpAyKxw5eTQ6GkgOOOV8se4sEY2EDarWlC/xAyPdIpJtveos8SR+uG8z9E030keglZLl49GjBbEgWrMwxAji9p/S3dY0SrBIHtKmEaP2lI7F8uL0dMG49yiY6LUcInhuOPkZ+oXnHn+c=
3535
bucket: docs.loraserver.io
3636
local-dir: site
37-
upload-dir: lora-semtech-bridge
37+
upload-dir: lora-gateway-bridge
3838
acl: public_read
3939
region: eu-west-1
4040
on:
41-
repo: brocaar/lora-semtech-bridge
41+
repo: brocaar/lora-gateway-bridge
4242
branch: master
4343

4444
- provider: releases
4545
skip_cleanup: true
4646
api_key:
47-
secure: hue09xkRBLJpF5gR7nBCn1CySTTwUwe2ZYZA4Q2RjqdQ6Tk8KXgaJp+wk3xl24oWUb4l6dv2dETy+awT/G1DsOz6z5oGzuNFvAuTIqWgk5eIpctwPYlc9t0mgUnBJCx/eDYIoN/ogBxoE2QFE4CCfYcGd5iFpYb2aPw8oP6Pc5LYsm6PYUHi1IE69tyMj9aFWgtMYX8OxjhTx4vFpDvQmipQE3LqYlu9z7DyeIeuxLBgGFnrjOBQsjlUsQcsgmyeazUBN8qSUhYTdhSwYw5OEI45Ddc/Pkj/pz6HbHygUmO6FIa64rLADVK0Cuaw8+jxYSgeFu2sdIk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gz"
5050
on:
5151
tags: true
52-
repo: brocaar/lora-semtech-bridge
52+
repo: brocaar/lora-gateway-bridge

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM golang:1.6.2
22

3-
ENV PROJECT_PATH=/go/src/github.com/brocaar/lora-semtech-bridge
3+
ENV PROJECT_PATH=/go/src/github.com/brocaar/lora-gateway-bridge
44
ENV PATH=$PATH:$PROJECT_PATH/build
55

66
# install tools
@@ -17,4 +17,4 @@ COPY . $PROJECT_PATH
1717
# build
1818
RUN make build
1919

20-
CMD ["semtech-bridge"]
20+
CMD ["lora-gateway-bridge"]

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ GOARCH ?= amd64
77
build:
88
@echo "Compiling source for $(GOOS) $(GOARCH)"
99
@mkdir -p build
10-
@GOOS=$(GOOS) GOARCH=$(GOARCH) go build -ldflags "-X main.version=$(VERSION)" -o build/semtech-bridge$(BINEXT) cmd/semtech-bridge/main.go
10+
@GOOS=$(GOOS) GOARCH=$(GOARCH) go build -ldflags "-X main.version=$(VERSION)" -o build/lora-gateway-bridge$(BINEXT) cmd/lora-gateway-bridge/main.go
1111

1212
clean:
1313
@echo "Cleaning up workspace"
@@ -26,13 +26,13 @@ package: clean build
2626
@echo "Creating package for $(GOOS) $(GOARCH)"
2727
@mkdir -p dist/$(VERSION)
2828
@cp build/* dist/$(VERSION)
29-
@cd dist/$(VERSION)/ && tar -pczf ../lora_semtech_bridge_$(VERSION)_$(GOOS)_$(GOARCH).tar.gz .
29+
@cd dist/$(VERSION)/ && tar -pczf ../lora_gateway_bridge_$(VERSION)_$(GOOS)_$(GOARCH).tar.gz .
3030
@rm -rf dist/$(VERSION)
3131

3232
# shortcuts for development
3333

3434
serve: build
35-
./build/semtech-bridge
35+
./build/lora-gateway-bridge
3636

3737
run-compose-test:
38-
docker-compose run --rm semtechbridge make test
38+
docker-compose run --rm gatewaybridge make test

README.md

Lines changed: 29 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,48 @@
1-
# LoRa Semtech Bridge
1+
# LoRa Gateway Bridge
22

3-
[![Build Status](https://travis-ci.org/brocaar/lora-semtech-bridge.svg?branch=master)](https://travis-ci.org/brocaar/lora-semtech-bridge)
4-
[![Documentation Status](https://readthedocs.org/projects/lora-semtech-bridge/badge/?version=latest)](http://lora-semtech-bridge.readthedocs.org/en/latest/?badge=latest)
5-
[![Documentation Status](https://readthedocs.org/projects/lora-semtech-bridge/badge/?version=stable)](http://lora-semtech-bridge.readthedocs.org/en/stable/?badge=stable)
6-
[![GoDoc](https://godoc.org/github.com/brocaar/lora-semtech-bridge/cmd/semtech-bridge?status.svg)](https://godoc.org/github.com/brocaar/lora-semtech-bridge/cmd/semtech-bridge)
7-
8-
LoRa Semtech Bridge is a service which abstracts the
9-
[Semtech protocol](https://github.com/Lora-net/packet_forwarder/blob/master/PROTOCOL.TXT)
10-
into JSON over MQTT. This project is part of [LoRa Server](https://github.com/brocaar/loraserver).
3+
[![Build Status](https://travis-ci.org/brocaar/lora-gateway-bridge.svg?branch=master)](https://travis-ci.org/brocaar/lora-gateway-bridge)
4+
[![GoDoc](https://godoc.org/github.com/brocaar/lora-gateway-bridge/cmd/gateway-bridge?status.svg)](https://godoc.org/github.com/brocaar/lora-gateway-bridge/cmd/lora-gateway-bridge)
115

6+
LoRa Gateway Bridge is a service which abstracts the
7+
[packet_forwarder UDP protocol](https://github.com/Lora-net/packet_forwarder/blob/master/PROTOCOL.TXT)
8+
running on most LoRa gateways into JSON over MQTT. It enables you to use MQTT for
9+
receiving data from and sending data to your gateways.
10+
This project is part of [LoRa Server](https://github.com/brocaar/loraserver).
1211

1312
## Documentation
1413

15-
See the [http://lora-semtech-bridge.readthedocs.io/](http://lora-semtech-bridge.readthedocs.io/)
16-
for documentation about setting up LoRa Semtech Bridge.
14+
See [http://docs.loraserver.io/lora-gateway-bridge](http://docs.loraserver.io/lora-gateway-bridge)
15+
for documentation about setting up LoRa Gateway Bridge.
1716

1817
## Compatibility
1918

20-
The table below shows the compatibility between LoRa Semtech Bridge and the
21-
available Semtech UDP protocol versions:
19+
The table below shows the compatibility between LoRa Gateway Bridge and the
20+
packet_forwarder UDP protocol versions:
21+
22+
| LoRa Gateway Bridge | packet_forwarder protocol version | Note |
23+
|---------------------|-----------------------------------|---------------------------------------------------------------------|
24+
| 1.x.x | 1 | |
25+
| 2.x.x | 2 | This protocol is used since version 3.0.0 of the `packet_forwarder` |
26+
2227

23-
| LoRa Semtech Bridge | Semtech UDP protocol version | Note |
24-
|---------------------|------------------------------|---------------------------------------------------------------------|
25-
| 1.x.x | 1 | |
26-
| 2.x.x | 2 | This protocol is used since version 3.0.0 of the `packet_forwarder` |
28+
LoRa Gateway Bridge v1.x.x will be update with bugfixes for the near future as
29+
not all gateways are using packet_forwarder v3.0.0+ yet.
2730

2831
## Downloads
2932

30-
Pre-compiled binaries are available for:
33+
Pre-compiled binaries are available from the [releases](https://github.com/brocaar/lora-gateway-bridge/releases) page:
3134

32-
* Linux (and ARM build for e.g. Raspberry Pi)
35+
* Linux (including ARM / Raspberry Pi)
3336
* OS X
3437
* Windows
3538

36-
See [releases](https://github.com/brocaar/lora-semtech-bridge/releases).
39+
Source-code can be found at [https://github.com/brocaar/lora-gateway-bridge](https://github.com/brocaar/lora-gateway-bridge).
40+
41+
## Issues / feature-requests
42+
43+
Issues or feature-requests can be opened at [https://github.com/brocaar/lora-gateway-bridge/issues](https://github.com/brocaar/lora-gateway-bridge/issues).
3744

3845
## License
3946

40-
LoRa Server is licensed under the MIT license. See ``LICENSE``.
47+
LoRa Gateway Bridge is distributed under the MIT license. See
48+
[LICENSE](https://github.com/brocaar/lora-gateway-bridge/blob/master/LICENSE).
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/*
22
NAME:
3-
semtech-bridge - communicate with a LoRa gateway (Semtech UDP protocol) over MQTT
3+
lora-gateway-bridge - abstracts the packet_forwarder protocol into JSON over MQTT
44
55
USAGE:
66
main [global options] command [command options] [arguments...]
7-
7+
88
COMMANDS:
99
help, h Shows a list of commands or help for one command
10-
10+
1111
GLOBAL OPTIONS:
1212
--udp-bind "0.0.0.0:1700" ip:port to bind the UDP listener to [$UDP_BIND]
1313
--mqtt-server "tcp://127.0.0.1:1883" MQTT server [$MQTT_SERVER]
@@ -16,10 +16,10 @@ GLOBAL OPTIONS:
1616
--log-level "4" debug=5, info=4, warning=3, error=2, fatal=1, panic=0 [$LOG_LEVEL]
1717
--help, -h show help
1818
--version, -v print the version
19-
19+
2020
COPYRIGHT:
21-
See http://github.com/brocaar/lora-semtech-bridge for copyright information
22-
21+
See http://github.com/brocaar/lora-gateway-bridge for copyright information
22+
2323
2424
*/
2525
package main
File renamed without changes.

cmd/semtech-bridge/main.go renamed to cmd/lora-gateway-bridge/main.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"syscall"
99

1010
log "github.com/Sirupsen/logrus"
11-
"github.com/brocaar/lora-semtech-bridge/backend/mqttpubsub"
12-
"github.com/brocaar/lora-semtech-bridge/gateway"
11+
"github.com/brocaar/lora-gateway-bridge/backend/mqttpubsub"
12+
"github.com/brocaar/lora-gateway-bridge/gateway"
1313
"github.com/brocaar/lorawan"
1414
"github.com/codegangsta/cli"
1515
)
@@ -72,9 +72,9 @@ func run(c *cli.Context) error {
7272

7373
func main() {
7474
app := cli.NewApp()
75-
app.Name = "semtech-bridge"
76-
app.Usage = "communicate with a LoRa gateway (Semtech UDP protocol) over MQTT"
77-
app.Copyright = "See http://github.com/brocaar/lora-semtech-bridge for copyright information"
75+
app.Name = "lora-gateway-bridge"
76+
app.Usage = "abstracts the packet_forwarder protocol into JSON over MQTT"
77+
app.Copyright = "See http://github.com/brocaar/lora-gateway-bridge for copyright information"
7878
app.Version = version
7979
app.Action = run
8080
app.Flags = []cli.Flag{

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
semtechbridge:
1+
gatewaybridge:
22
build: .
33
command: make serve
44
ports:
55
- "1700/udp:1700/udp"
66
volumes:
7-
- ./:/go/src/github.com/brocaar/lora-semtech-bridge
7+
- ./:/go/src/github.com/brocaar/lora-gateway-bridge
88
links:
99
- mosquitto
1010
environment:

docs/changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 2.0.2
4+
5+
* Rename from `lora-semtech-bridge` to `lora-gateway-bridge`
6+
37
## 2.0.1
48

59
* Update `lorawan` vendor to fix a mac command related marshaling issue.

docs/frequently-asked-questions.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Frequently asked questions
2+
13
## Packet-loss (packet_forwarder)
24

35
There are many issues that can cause packet-loss (data is not received or
@@ -30,7 +32,7 @@ To be investigated
3032

3133
To be investigated
3234

33-
## semtech-bridge errors
35+
## lora-gateway-bridge errors
3436

3537
### `gateway: could not handle packet: gateway: invalid protocol version`
3638

0 commit comments

Comments
 (0)