(04-28-2021, 12:14 PM)JF002 Wrote: Thanks for sharing your experiments!
The GPS can be accessed independently from the Lora gateway. It's connected on UART2 on the Pine A64 board. For example, you can listen to NMEA frames using cat:
Code:cat /dev/ttyS2
Alternatively, you can use gpsd and gpsmon to display those frames in a human readable format.
So, the install script from RAK configures the gateway to connect on TTN, right? Do you know if it uses the legacy 'packet forwarder' protocol, or the new Basic Station protocol?
Also, I think the install script for the RPI can optionally install ChirpStack, which is an open source LoraWAN server stack that would be selfhosted on your A64-LTS board. Have you tried it yet?
Ah yes, thanks for sharing that - it was helpful for me getting the GPS to work reliably. First time working with LoRa gateway/GPS based hardware. I noticed once GPS signal becomes reliable (ran an antenna line to my window to get this) immediately my gateway appeared on The Things Network map.
Using latest rak_common_gateway packet forwarder (guessing this may answer that?) (recloning it to make some edits to reupload to github soon).
The gateway-config command it allows you to (at any time) set/change channel plan to either TTN or optionally chirpstack. Then from chirpstack option you have --->
1.) ChirpStack Channel-plan Configuration
2.) Chirpstack ADR configure.
(Then restart the packet forwarder).
I have not yet tried changing this yet and tbh am more interested in working towards self hosted than TTN but TTN is a nice starting experiment.
At first had some issues starting concentrator, but now, so far, everything is looking good (at least according to journalctl starting beacons/tx/rc, tcpdump/logs TTN radius packets all looking good, The Things Network map also now shows my gateway on the map).
Unfortunately having no nodes/gateways within about 50 miles limited tests (journalctl itself showing radio starting for tx/rx).
For most part everything looks to be starting okay (without any errors- still may need more edits somewhere (any insight appreciated as this first time starting a lora gateway))
(minor edits below to prevent identifiable info from being public)
Apr 29 13:53:01 rak-gateway ttn-gateway[3603]: ### [GPS] ###
Apr 29 13:53:01 rak-gateway ttn-gateway[3603]: # Valid time reference (age: 0 sec)
Apr 29 13:53:01 rak-gateway ttn-gateway[3603]: # GPS coordinates: latitude (COORDINATE ERASED FOR PRVCY longitude (COORDINATE ERASED FOR PRVCY), altitude 95 m
Apr 29 13:53:01 rak-gateway ttn-gateway[3603]: ##### END #####
Apr 29 13:53:01 rak-gateway ttn-gateway[3603]: JSON up: {"stat":{"time":"2021-04-29 17:52:31 GMT","lati": (COORDINATE ERASED FOR PRIVACY),"long": (COORDINATE ERASED FOR PRIVACY),"rxnb":0,"rxok":0,"rxfw":0,"ackr":0.0,"dwnb":0,"txnb":0,"temp":0.0}}
Apr 29 13:53:01 rak-gateway ttn-gateway[3603]: INFO: [down] PULL_ACK received in 75 ms
Apr 29 13:53:01 rak-gateway ttn-gateway[3603]: INFO: Beacon dequeued (count_us=93850158)
Apr 29 13:53:01 rak-gateway ttn-gateway[3603]: INFO: Beacon queued (count_us=435550494, freq_hz=926300000, size=23):
Apr 29 13:53:01 rak-gateway ttn-gateway[3603]: => 00 00 00 00 00 80 B6 B4 C5 XX
Apr 29 13:53:01 rak-gateway ttn-gateway[3603]: INFO: [down] PULL_ACK received in 78 ms
Apr 29 13:53:01 rak-gateway ttn-gateway[3603]: INFO: [down] PULL_ACK received in 82 ms
Apr 29 13:53:01 rak-gateway ttn-gateway[3603]: ##### 2021-04-29 17:53:01 GMT #####
Apr 29 13:53:01 rak-gateway ttn-gateway[3603]: ### [UPSTREAM] ###
Apr 29 13:53:01 rak-gateway ttn-gateway[3603]: # RF packets received by concentrator: 0
Apr 29 13:53:01 rak-gateway ttn-gateway[3603]: # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
Apr 29 13:53:01 rak-gateway ttn-gateway[3603]: # RF packets forwarded: 0 (0 bytes)
Apr 29 13:53:01 rak-gateway ttn-gateway[3603]: # PUSH_DATA datagrams sent: 1 (165 bytes)
Apr 29 13:53:01 rak-gateway ttn-gateway[3603]: # PUSH_DATA acknowledged: 0.00%
Apr 29 13:53:01 rak-gateway ttn-gateway[3603]: ### [DOWNSTREAM] ###
Apr 29 13:53:01 rak-gateway ttn-gateway[3603]: # PULL_DATA sent: 3 (100.00% acknowledged)
Apr 29 13:53:01 rak-gateway ttn-gateway[3603]: # PULL_RESP(onse) datagrams received: 0 (0 bytes)
Apr 29 13:53:01 rak-gateway ttn-gateway[3603]: # RF packets sent to concentrator: 1 (0 bytes)
Apr 29 13:53:01 rak-gateway ttn-gateway[3603]: # TX errors: 0
Apr 29 13:53:01 rak-gateway ttn-gateway[3603]: ### SX1302 Status ###
Apr 29 13:53:01 rak-gateway ttn-gateway[3603]: # SX1302 counter (INST): 109294901
Apr 29 13:53:01 rak-gateway ttn-gateway[3603]: # SX1302 counter (PPS): 108850234
Apr 29 13:53:01 rak-gateway ttn-gateway[3603]: # BEACON queued: 306
Apr 29 13:53:01 rak-gateway ttn-gateway[3603]: # BEACON sent so far: 297
Apr 29 13:53:01 rak-gateway ttn-gateway[3603]: # BEACON rejected: 0
Apr 29 13:53:01 rak-gateway ttn-gateway[3603]: ### [JIT] ###
Apr 29 13:53:01 rak-gateway ttn-gateway[3603]: src/jitqueue.c:444:jit_print_queue(): INFO: [jit] queue contains 3 packets:
Apr 29 13:53:01 rak-gateway ttn-gateway[3603]: src/jitqueue.c:445:jit_print_queue(): INFO: [jit] queue contains 3 beacons:
Apr 29 13:53:01 rak-gateway ttn-gateway[3603]: src/jitqueue.c:451:jit_print_queue(): - node[0]: count_us=23582325 - type=3
Apr 29 13:53:01 rak-gateway ttn-gateway[3603]: src/jitqueue.c:451:jit_print_queue(): - node[1]: count_us=34985234 - type=3
Apr 29 13:53:01 rak-gateway ttn-gateway[3603]: src/jitqueue.c:451:jit_print_queue(): - node[2]: count_us=45785234 - type=3
Starting some edits on fork + start readme w/things I've noticed to help/share on github hoping to provide some starting points.
Any insights by anyone reading appreciated!
- RTP
"In the beginner's mind there are many possibilities, in the expert's mind there are few." -Shunryu Suzuki
[ Pinephone Original | Pinetab v1 / v2 Enjoyer ]
Linux Device Privacy / Security Playlist
"In the beginner's mind there are many possibilities, in the expert's mind there are few." -Shunryu Suzuki
[ Pinephone Original | Pinetab v1 / v2 Enjoyer ]
Linux Device Privacy / Security Playlist