Dragino gateway -- support TTN Basic Station

if your gateway is LPS8,LIG16,LG308,DLOS8, you can refer this wiki to connect to TTN via Basic Station.
Basic Station is more stable and secure than the generic Semtech UDP
https://wiki.dragino.com/index.php?title=Notes_for_TTN#Gateway_Registration_for_Basics_Station
access gateway GUI
station_live_date

2 Likes

I tried to connect my Dragino LPS8 with TTN Basic Station today. It does not seem to connect because of excessive clock drift.

2021-08-27 08:40:29.801 [SYN:INFO] Time sync qualities: min=81 q90=138 max=183 (previous q90=138)
2021-08-27 08:40:29.802 [SYN:ERRO] Repeated excessive clock drifts between MCU/SX130X#0 (3 retries): 4.3ppm (threshold 2.9ppm)
2021-08-27 08:40:32.953 [SYN:VERB] Time sync rejected: quality=144 threshold=138
2021-08-27 08:40:35.053 [SYN:ERRO] Repeated excessive clock drifts between MCU/SX130X#0 (6 retries): 3.3ppm (threshold 2.9ppm)
2021-08-27 08:40:38.204 [SYN:INFO] MCU/SX130X drift stats: min: -0.2ppm  q50: +2.2ppm  q80: +4.3ppm  max: +8.1ppm - threshold q90: +6.2ppm
2021-08-27 08:40:38.204 [SYN:INFO] Mean MCU drift vs SX130X#0: 1.5ppm
2021-08-27 08:40:57.107 [SYN:VERB] Time sync rejected: quality=139 threshold=138
2021-08-27 08:41:03.408 [SYN:ERRO] Repeated excessive clock drifts between MCU/SX130X#0 (3 retries): 6.9ppm (threshold 6.2ppm)
2021-08-27 08:41:06.559 [SYN:ERRO] Repeated excessive clock drifts between MCU/SX130X#0 (6 retries): 6.5ppm (threshold 6.2ppm)
2021-08-27 08:41:07.610 [SYN:VERB] Time sync rejected: quality=142 threshold=138
2021-08-27 08:41:09.710 [SYN:VERB] Time sync rejected: quality=139 threshold=138
2021-08-27 08:41:16.011 [SYN:INFO] MCU/SX130X drift stats: min: -0.5ppm  q50: +6.3ppm  q80: +7.6ppm  max: +9.0ppm - threshold q90: +9.0ppm
2021-08-27 08:41:16.012 [SYN:INFO] Mean MCU drift vs SX130X#0: 5.9ppm
2021-08-27 08:41:18.112 [SYN:INFO] Time sync qualities: min=87 q90=139 max=144 (previous q90=138)
2021-08-27 08:41:22.313 [SYN:VERB] Time sync rejected: quality=141 threshold=139
2021-08-27 08:41:28.614 [SYN:VERB] Time sync rejected: quality=167 threshold=139
2021-08-27 08:41:34.915 [SYN:VERB] Time sync rejected: quality=145 threshold=139
2021-08-27 08:41:43.316 [SYN:ERRO] Repeated excessive clock drifts between MCU/SX130X#0 (3 retries): 11.7ppm (threshold 9.0ppm)
2021-08-27 08:41:46.467 [SYN:ERRO] Repeated excessive clock drifts between MCU/SX130X#0 (6 retries): 10.3ppm (threshold 9.0ppm)
2021-08-27 08:41:49.618 [SYN:VERB] Time sync rejected: quality=199 threshold=139

My old Dragino LPS8 does not seem to be good enough for TTN Basic Station.
Amendment: Now, after a “Reboot” of the gateway it is connected but still problems with time-sync.
Note: LoRa packet
2021-08-27 08:55:21.527 [SYN:INFO] Time sync qualities: min=80 q90=119 max=135 (previous q90=2147483647)
2021-08-27 08:55:21.527 [SYN:VERB] Time sync rejected: quality=135 threshold=119
2021-08-27 08:55:36.228 [SYN:VERB] Time sync rejected: quality=135 threshold=119
2021-08-27 08:55:38.329 [SYN:VERB] Time sync rejected: quality=134 threshold=119

could you share your station confiuration page in the gateway GUI?

Here we go:

BasicStation_config

Keep us posted !

Following snapshot is showing similar issues/values as well. Snapshot is from the setup Wiki for LPS8+BasicStation Notes for TTN - Wiki for Dragino Project
image

Maybe start comparing hardware revisons of LPS8?
New features advertised by Dragino, are not necessarily supported by “older” hardware.
Just had a case like that with a 6 month old LDDS75.

Anyhow, I’ll keep my LPS8 on the UDP forwarder for now.

1 Like

I didn’t use the version of the firmware linked (as there was a later version) but I was unable to get the DEFAULT_CERTIFICATE button to do anything on that screen. The page would re-render and some input controls would appear and then disappear but it would show a similar message:

Not Found CA certificate,User can clicking DEFAULTde CERTIFICATE to install certificate

(That’s copied exactly from the screen: typos, spacing and all)

What later version do you mean? In the moment I only find the openvpn-version with the implementation of Basicstation and an experimental version with BasicStation without openvpn.
Both versions are causing timing-errors in the log of my LIG16 and LPS8 and I cannot see the gateway-traffic anymore.

I had no problems to install the certificate, neither on LIG16 nor on LPS8 using the experimental firmware.

I downloaded the Sep 29th version from here (The linked article points you to the Aug 27th one).

I’ll wait for the October one and see if that fixes it. Sticking with UDP for now

This is the experimental firmware. I have some problems with this version (timing errors, missing “Gateway Traffic”).

I use the latest firmware of lgw–build-v5.4.1633695703-20211008-2023 which is working fine
https://www.dragino.com/downloads/downloads/LoRa_Gateway/LG02-OLG02/Firmware/Release/lgw--build-v5.4.1633695703-20211008-2023/dragino-lgw--v5.4.1633695703-squashfs-sysupgrade.bin
image
image
image

bc5035c184e61f8a6a6d54126c35d6d

You are totally right. There is a new firmware since a few hours. I can confirm that “LogRead/GatewayTraffic” now works.

But only for Semtech UDP. Using Basics Station with firmware lgw-5.4.1633695703 the “LogRead/GatewayTraffic” stays empty.
“Previous Log: Station” is still filled up with: “Time sync rejected: quality=348 threshold=341” - whatever this means.

This morning I switched back to Semtech UDP. I need to monitor my gateway-traffic.

do you use the gateway is LIG16?

you can back to the Semtech UDP without complex operations,I will check this function of station traffic monitor

Yes, this gateway is a LIG16. It was no problem to switch back to Semtech UDP.

Tried to migrate my LPS8 from V2 to V3 console. Using the Basic Station setup as described above. Console says “disconnected”, but the blue light on the device is steady which indicates “device alive with lorawan connection”. Using the LPS8 LogRead, gateway traffic is empty. Am I connected or not?