I am using RHF0M301 with RPI3.
Install chirpstack-gateway-bridge and chirpstack from the following manual.
[Debian / Ubuntu - ChirpStack open-source LoRaWAN® Network Server documentation]
It works fine when using Semtech UDP Packet Forward, but throws an error with Concentratord.
1
2
3
4
|
Mar 22 11:44:49 raspberrypi chirpstack-gateway-bridge[2701]: time="2023-03-22T11:44:49.774331622+09:00"
level=error msg="backend/concentratord: event socket dial error" error="dial event api url error: zmq4:
could not open a ZMTP connection: zmq4: could not exchange greetings: zmq4: could not recv greeting:
zmq4: invalid greeting received"
|
cs |
And download and use chirpstack-concentratord-sx1301_4.1.0_linux_armv7hf.tar.gz
concentratord.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
[concentratord.api]
# Event PUB socket bind.
event_bind="ipc:///tmp/concentratord_event"
# Command REP socket bind.
command_bind="ipc:///tmp/concentratord_command"
# LoRa gateway configuration.
[gateway]
# Antenna gain (dB).
antenna_gain=0
# Public LoRaWAN network.
lorawan_public=true
# Gateway vendor / model.
#
# This configures various vendor and model specific settings like the min / max
# frequency, TX gain table.
model="risinghf_rhf0m301_us915"
|
cs |
chirpstack-gateway-bridge.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# This configuration provides a ChirpStack Concentratord backend and
# integrates with a MQTT broker. Many options and defaults have been omitted
# for simplicity.
# For a full configuration example and documentation, see:
# https://www.chirpstack.io/docs/chirpstack-gateway-bridge/configuration.html
[general]
# debug=5, info=4, warning=3, error=2, fatal=1, panic=0
log_level=4
# Log to syslog.
#
# When set to true, log messages are being written to syslog.
log_to_syslog=true
# Gateway backend configuration.
[backend]
# Backend type.
type="concentratord"
# ChirpStack Concentratord backend.
[backend.concentratord]
# Check for CRC OK.
crc_check=true
# Event API URL.
event_url="ipc:///tmp/concentratord_event"
# Command API URL.
command_url="ipc:///tmp/concentratord_command"
# Integration configuration.
[integration]
# Payload marshaler.
#
# This defines how the MQTT payloads are encoded. Valid options are:
# * protobuf: Protobuf encoding
# * json: JSON encoding (for debugging)
marshaler="protobuf"
# MQTT integration configuration.
[integration.mqtt]
# Event topic template.
event_topic_template="us915_1/gateway/{{ .GatewayID }}/event/{{ .EventType }}"
# State topic template.
state_topic_template="us915_1/gateway/{{ .GatewayID }}/state/{{ .StateType }}"
# Command topic template.
command_topic_template="us915_1/gateway/{{ .GatewayID }}/command/#"
# MQTT authentication.
[integration.mqtt.auth]
# Type defines the MQTT authentication type to use.
type="generic"
# Generic MQTT authentication.
[integration.mqtt.auth.generic]
# MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws)
server="tcp://127.0.0.1:1883"
# Connect with the given username (optional)
username=""
# Connect with the given password (optional)
password=""
# CA certificate file (optional)
ca_cert=""
# mqtt TLS certificate file (optional)
tls_cert=""
# mqtt TLS key file (optional)
tls_key=""
|
cs |
FYI) “ChirpStack Gateway OS” operation was not available in version 4.1.0, but in version 4.0.0.