Thanks for the info @brocaar
##Updated## 24/04/21
Here are some logs from the gateway and ChrirpStack Bridge regarding GPS:
2021-04-24 12:36:12.569 [AIO:DEBU] [7|WS] > {"msgtype":"event","evcat":"gps","evmsg":{"evtype":"move","lat":xx.6285,"lon":-x.84577,"alt":72.7,"dilution":2.38,"satellites":6,"quality":1}}
2021-04-24 12:36:12.569 [AIO:DEBU] ------------------------------
2021-04-24 12:36:12.569 [GPS:INFO] GPS move 0.0000000,0.0000000 => xx.6285324,-x.8457704 (alt=72.7 dilution=2.380000 satellites=6 quality=1)
2021-04-24 12:36:12.569 [AIO:DEBU] ------------------------------
2021-04-24 12:36:12.569 [AIO:DEBU] sending msg...len=134
2021-04-24 12:36:12.569 [AIO:DEBU] [7|WS] > {"msgtype":"alarm","text":"GPS move 0.0000000,0.0000000 => xx.6285324,-x.8457704 (alt=72.7 dilution=2.380000 satellites=6 quality=1)"}
2021-04-24 12:36:12.569 [AIO:DEBU] ------------------------------
Apr 24 12:36:12 GATEWAY1 chirpstack-gateway-bridge[27679]: time="2021-04-24T12:36:12+01:00" level=info msg="backend/basicstation: raw packet-forwarder event received" gateway_id=xxxxxxxxxxxx0880 raw_id=db7a9515-abe7-4c46-9293-cd4c7f93cb94
Apr 24 12:36:12 GATEWAY1 chirpstack-gateway-bridge[27679]: time="2021-04-24T12:36:12+01:00" level=info msg="integration/mqtt: publishing event" event=raw qos=0 raw_id=db7a9515-abe7-4c46-9293-cd4c7f93cb94 topic=gateway/xxxxxxxxxxxx0880/event/raw
Apr 24 12:36:12 GATEWAY1 chirpstack-gateway-bridge[27679]: time="2021-04-24T12:36:12+01:00" level=info msg="backend/basicstation: raw packet-forwarder event received" gateway_id=xxxxxxxxxxxx0880 raw_id=8703619f-9882-4599-9907-6e6bfe5bd02c
Apr 24 12:36:12 GATEWAY1 chirpstack-gateway-bridge[27679]: time="2021-04-24T12:36:12+01:00" level=info msg="integration/mqtt: publishing event" event=raw qos=0 raw_id=8703619f-9882-4599-9907-6e6bfe5bd02c topic=gateway/xxxxxxxxxxxx0880/event/raw
It looks as though the GPS updates aren’t being interpreted by the bridge? Not sure. Interested to hear your thoughts.
I’ve taken some more time to watch the timesync requests and after a while they eventually disappear, so I think it’s behaving as it’s supposed to.
I’ve done some digging into the antenna issue and spoken with the manufacturer - basically the gateway will configure the SX1301’s to what’s been specified in the router_config message, I think there’s a discrepancy between what’s configured in the chirpstack bridge config file and what’s received or implemented by the gateway.
Config:
# Gateway backend configuration.
[backend]
# Backend type.
type="basic_station"
# Basic Station backend.
[backend.basic_station]
# ip:port to bind the Websocket listener to.
bind=":3001"
# Region.
region="EU868"
# Minimal frequency (Hz).
frequency_min=863000000
# Maximum frequency (Hz).
frequency_max=870000000
# Concentrator configuration.
# Note: this is defined twice as the Cisco gateway has two SX1301 chips.
[[backend.basic_station.concentrators]]
# Multi-SF channel configuration.
[backend.basic_station.concentrators.multi_sf]
# Frequencies (Hz).
frequencies=[
868100000,
868300000,
868500000,
867100000,
867300000,
867500000,
867700000,
867900000,
]
# LoRa STD channel.
[backend.basic_station.concentrators.lora_std]
# Frequency (Hz).
frequency=868300000
# Bandwidth (Hz).
bandwidth=250000
# Spreading factor.
spreading_factor=7
# FSK channel.
[backend.basic_station.concentrators.fsk]
# Frequency (Hz).
frequency=868800000
[[backend.basic_station.concentrators]]
# Multi-SF channel configuration.
[backend.basic_station.concentrators.multi_sf]
# Frequencies (Hz).
frequencies=[
868100000,
868300000,
868500000,
867100000,
867300000,
867500000,
867700000,
867900000,
]
# LoRa STD channel.
[backend.basic_station.concentrators.lora_std]
# Frequency (Hz).
frequency=868300000
# Bandwidth (Hz).
bandwidth=250000
# Spreading factor.
spreading_factor=7
# FSK channel.
[backend.basic_station.concentrators.fsk]
# Frequency (Hz).
frequency=868800000
And this is the debug from the gateway:
{
"msgtype": "router_config",
"NetID": null,
"JoinEui": null,
"region": "EU863",
"hwspec": "sx1301/2",
"freq_range": [
863000000,
870000000
],
"DRs": [
[
12,
125,
0
],
[
11,
125,
0
],
[
10,
125,
0
],
[
9,
125,
0
],
[
8,
125,
0
],
[
7,
125,
0
],
[
7,
250,
0
],
[
0,
0,
0
],
[
-1,
0,
0
],
[
-1,
0,
0
],
[
-1,
0,
0
],
[
-1,
0,
0
],
[
-1,
0,
0
],
[
-1,
0,
0
],
[
-1,
0,
0
],
[
-1,
0,
0
]
],
"sx1301_conf": [
{
"radio_0": {
"enable": true,
"freq": 867500000
},
"radio_1": {
"enable": true,
"freq": 868500000
},
"chan_FSK": {
"enable": true
},
"chan_Lora_std": {
"enable": true,
"radio": 1,
"if": -200000,
"bandwidth": 250000,
"spread_factor": 7
},
"chan_multiSF_0": {
"enable": true,
"radio": 0,
"if": -400000
},
"chan_multiSF_1": {
"enable": true,
"radio": 0,
"if": -200000
},
"chan_multiSF_2": {
"enable": true,
"radio": 0,
"if": 0
},
"chan_multiSF_3": {
"enable": true,
"radio": 0,
"if": 200000
},
"chan_multiSF_4": {
"enable": true,
"radio": 0,
"if": 400000
},
"chan_multiSF_5": {
"enable": true,
"radio": 1,
"if": -400000
},
"chan_multiSF_6": {
"enable": true,
"radio": 1,
"if": -200000
},
"chan_multiSF_7": {
"enable": true,
"radio": 1,
"if": 0
}
},
{
"radio_0": {
"enable": true,
"freq": 867500000
},
"radio_1": {
"enable": true,
"freq": 868500000
},
"chan_FSK": {
"enable": true
},
"chan_Lora_std": {
"enable": true,
"radio": 1,
"if": -200000,
"bandwidth": 250000,
"spread_factor": 7
},
"chan_multiSF_0": {
"enable": true,
"radio": 0,
"if": -400000
},
"chan_multiSF_1": {
"enable": true,
"radio": 0,
"if": -200000
},
"chan_multiSF_2": {
"enable": true,
"radio": 0,
"if": 0
},
"chan_multiSF_3": {
"enable": true,
"radio": 0,
"if": 200000
},
"chan_multiSF_4": {
"enable": true,
"radio": 0,
"if": 400000
},
"chan_multiSF_5": {
"enable": true,
"radio": 1,
"if": -400000
},
"chan_multiSF_6": {
"enable": true,
"radio": 1,
"if": -200000
},
"chan_multiSF_7": {
"enable": true,
"radio": 1,
"if": 0
}
}
]
}
At current, even though there are two radios in these gateways and both antennas are connected, only one (ANT1) is working. On the gateway both have been configured:
gatewayid <GATEWAYID>
gps enable
ipaddr 192.xxx.xxx.xxx port 3001
antenna 1 sector gain 8.0 loss 0.1
antenna 2 sector gain 8.0 loss 0.1
cpf enable
Even with both antennas disabled on the gateway, it’s still able to receive packets so I’ll post an update when i’ve had more clarity from the manufacturer on this issue.