I am actually working with a dragino LG308N using semtech UDP packet forwarder and chirpstack-gateway-bridge_3.8.0-r1_mips_24kc.ipk to connect to a chirpstack v4 network server.
I followed chirpstack documents (Dragino - ChirpStack open-source LoRaWAN® Network Server documentation) and the connection between the gateway and the network server is OK.
The problem is when I try to connect and end-device (in this case dragino LSN50v2.D20), the gateway receives the Join.Request frame but the end-device is not receiving Join Accept, I don´t know if the gateway is not sending it or the end device is not listening. I am using AU915 (SB 915,2 - 916,6).
Below you can find the chirpstack-gateway-bridge.toml file of the gateway and the JoinRequest frame.
This configuration provides a Semtech UDP packet-forwarder backend and
integrates with a MQTT broker. Many options and defaults have been omitted
for simplicity.
See Configuration - ChirpStack open-source LoRaWAN<sup>®</sup> Network Server for a full
configuration example and documentation.
region=“AU915”
Minimal frequency (Hz).
frequency_min=915200000
Maximum frequency (Hz).
frequency_max=928000000
[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=“semtech_udp”
Semtech UDP packet-forwarder backend.
[backend.semtech_udp]
ip:port to bind the UDP listener to
Example: 0.0.0.0:1700 to listen on port 1700 for all network interfaces.
This is the listener to which the packet-forwarder forwards its data
so make sure the ‘serv_port_up’ and ‘serv_port_down’ from your
packet-forwarder matches this port.
udp_bind = “0.0.0.0:1700”
Integration configuration.
[integration]
Payload marshaler.
This defines how the MQTT payloads are encoded. Valid options are:
* protobuf: Protobuf encoding
* json: JSON encoding (easier for debugging, but less compact than ‘protobuf’)
marshaler=“protobuf”
MQTT integration configuration.
[integration.mqtt]
Event topic template.
event_topic_template=“gateway/{{ .GatewayID }}/event/{{ .EventType }}”
Command topic template.
command_topic_template=“gateway/{{ .GatewayID }}/command/#”
MQTT authentication.
[integration.mqtt.auth]
Type defines the MQTT authentication type to use.
Set this to the name of one of the sections below.
type=“generic”
# Generic MQTT authentication.
[integration.mqtt.auth.generic]
# MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws)
server="ssl://a1bs1xt73qee52-ats.iot.us-east-1.amazonaws.com:8883"
#CA cert.
ca_cert="/etc/chirpstack-gateway-bridge/certs/AmazonRootCA1.pem"
#TLS cert.
tls_cert="/etc/chirpstack-gateway-bridge/certs/588a6e18e5096e0122a4b6796e57713ffa759f0e98b7135f6001707c92f4393e-certificate.pem.crt"
#TLS key.
tls_key="/etc/chirpstack-gateway-bridge/certs/588a6e18e5096e0122a4b6796e57713ffa759f0e98b7135f6001707c92f4393e-private.pem.key"
# Connect with the given username (optional)
username=""
# Connect with the given password (optional)
password=""
-
-
- m_type:“JoinRequest”
- major:“LoRaWANR1”
-
mic:[] 4 items
* 0:157
* 1:155
* 2:194
* 3:50
payload:{} 3 keys
* dev_eui:“a8404139c18398c9”
* dev_nonce:45643
* join_eui:“a000000000000101”
rx_info:[] 2 items
0:{} 8 keys
* channel:2
* context:“GHLBzQ==”
* gatewayId:“a8404122c81c4150”
*
location:{} 2 keys
* latitude:-17.7836957
* longitude:-63.1678783
*
metadata:{} 2 keys
* region_common_name:“AU915”
* region_name:“au915_0”
* rssi:-105
* snr:9.199999809265137
* uplinkId:2756136792
1:{} 8 keys
* channel:2
* context:“GHLBzQ==”
* gatewayId:“a8404122c81c4150”
*
location:{} 2 keys
* latitude:-17.7836957
* longitude:-63.1678783
*
metadata:{} 2 keys
* region_common_name:“AU915”
* region_name:“au915_0”
* rssi:-105
* snr:9.199999809265137
* uplinkId:2484542456
tx_info:{} 2 keys
- frequency:915600000
modulation:{} 1 key
*
lora:{} 3 keys
* bandwidth:125000
* codeRate:“CR_4_5”
* spreadingFactor:10