Connecting SWIOTT GTW721 to Chirpstack

Viewed 7

Hello
i am very new to chirpstack and LORAWAN devices.
I managed to install chirpstack on my pc. (WINDOWS), with docker
the server is running localhost:8083. the standard 8080 was not working for some reason.

Now i want to add the gateway to my chirpstack server.
but it does not see it. Never Seen.
At the gateway side i need to fill in the server adress.
since it is hosted locally i entered the IP adress of my PC
this is not working.
what am i doing wrong?
any idea?

Kimble

2 Answers

A few hints that might help:

  • There is a difference between binding to localhost and a network interface, in the first case, it will only work on your computer, if you bind to an interface (or 0.0.0.0) it will be publicly available
  • Your computer might have a firewall, preventing others from accessing services running on your computer
  • Your question does not mention if you are trying to connect the gateway over UDP or MQTT. Are you sure your gateway can connect to the ChirpStack Gateway Bridge (in case of UDP) or to the MQTT broker (in case of MQTT)

This guide might help you:
https://www.chirpstack.io/docs/guides/connect-gateway.html

OK let me start at the beginning

The chirpstack server I installed is from this website.
https://github.com/chirpstack/chirpstack-docker
In docker-compose.yml I made the following changes

I changed the region to US915
environment:
- INTEGRATION__MQTT__EVENT_TOPIC_TEMPLATE=us915/gateway/{{ .GatewayID }}/event/{{ .EventType }}
- INTEGRATION__MQTT__STATE_TOPIC_TEMPLATE=us915/gateway/{{ .GatewayID }}/state/{{ .StateType }}
- INTEGRATION__MQTT__COMMAND_TOPIC_TEMPLATE=us915/gateway/{{ .GatewayID }}/command/#

I also had to change to ports because 8080 is occupied by windows processes.
it is now 8888
ports:
- "8888:8888"

In chirpstack.toml
I edited this.
bind="0.0.0.0:8888"

With either localhost:8888 or 192.1687.10.100:8888 I can access the Chirpstack dashboard.

Windows Defender Firewall is disabled. To be sure I also made the exceptions for ports 1700 and 8888.
I think all the forwarding is done

Listen on ipv4: Connect to ipv4:

Address Port Address Port


0.0.0.0 1700 172.29.31.19 1700
0.0.0.0 8888 172.29.31.19 8888
192.168.100.10 8888 172.29.31.19 8888

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
925f03cca141 chirpstack/chirpstack-rest-api:4 "/usr/bin/chirpstack…" 30 minutes ago Up 30 minutes 0.0.0.0:8090->8090/tcp, [::]:8090->8090/tcp chirpstack-docker-master-chirpstack-rest-api-1

c348afe12d4b chirpstack/chirpstack-gateway-bridge:4 "/usr/bin/chirpstack…" 30 minutes ago Up 30 minutes 0.0.0.0:3001->3001/tcp, [::]:3001->3001/tcp chirpstack-docker-master-chirpstack-gateway-bridge-basicstation-1

76850d3d88b1 chirpstack/chirpstack-gateway-bridge:4 "/usr/bin/chirpstack…" 30 minutes ago Up 30 minutes 0.0.0.0:1700->1700/udp, [::]:1700->1700/udp chirpstack-docker-master-chirpstack-gateway-bridge-1

826fbbdff45d chirpstack/chirpstack:4 "/usr/bin/chirpstack…" 30 minutes ago Up 30 minutes 0.0.0.0:8888->8888/tcp, [::]:8888->8888/tcp chirpstack-docker-master-chirpstack-1

3862ae758bea postgres:14-alpine "docker-entrypoint.s…" 30 minutes ago Up 30 minutes 5432/tcp chirpstack-docker-master-postgres-1

f8f5e745d986 redis:7-alpine "docker-entrypoint.s…" 30 minutes ago Up 30 minutes 6379/tcp chirpstack-docker-master-redis-1

7f87077976b5 eclipse-mosquitto:2 "/docker-entrypoint.…" 30 minutes ago Up 30 minutes 0.0.0.0:1883->1883/tcp, [::]:1883->1883/tcp chirpstack-docker-master-mosquitto-1

In Chirpstack when I want to add a Gateway I only need to provide the EUI64: fffedca632fef7d9

On the gateway side, there are only these fields
ID: fffedca632fef7d9
Server: 192.168.100.10
Port up: 1700
Port down: 1700
Region: US915

Result: not connecting.
Last seen: Never.
For reference, this is the gateway i want to connect: https://swiott.com/products/gtw721-iot-lorawan-gateway

I hope this is sufficient information so you can help me