Pinedio Project: Notes Sharing/Log
#3
(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. Smile  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. Smile

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. Smile

Any insights by anyone reading appreciated! Smile
- 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



  Reply


Messages In This Thread
Pinedio Project: Notes Sharing/Log - by RTP - 04-22-2021, 03:15 PM
RE: Pinedio Project: Notes Sharing/Log - by JF002 - 04-28-2021, 12:14 PM
RE: Pinedio Project: Notes Sharing/Log - by RTP - 04-29-2021, 11:52 AM
RE: Pinedio Project: Notes Sharing/Log - by RTP - 04-30-2021, 10:52 AM
RE: Pinedio Project: Notes Sharing/Log - by RTP - 05-06-2021, 01:49 AM
RE: Pinedio Project: Notes Sharing/Log - by RTP - 05-12-2021, 02:16 PM
RE: Pinedio Project: Notes Sharing/Log - by RTP - 05-16-2021, 10:22 PM
RE: Pinedio Project: Notes Sharing/Log - by RTP - 05-28-2021, 04:22 PM
RE: Pinedio Project: Notes Sharing/Log - by RTP - 06-05-2021, 11:47 PM
RE: Pinedio Project: Notes Sharing/Log - by RTP - 07-12-2021, 07:03 PM
RE: Pinedio Project: Notes Sharing/Log - by tllim - 08-06-2021, 11:37 PM
RE: Pinedio Project: Notes Sharing/Log - by RTP - 08-08-2021, 10:38 PM
RE: Pinedio Project: Notes Sharing/Log - by RTP - 08-20-2021, 04:41 PM
RE: Pinedio Project: Notes Sharing/Log - by tllim - 09-25-2021, 12:01 PM
RE: Pinedio Project: Notes Sharing/Log - by RTP - 09-25-2021, 10:50 PM
RE: Pinedio Project: Notes Sharing/Log - by tllim - 09-30-2021, 04:08 PM
RE: Pinedio Project: Notes Sharing/Log - by tllim - 09-30-2021, 04:08 PM
RE: Pinedio Project: Notes Sharing/Log - by RTP - 10-13-2021, 11:40 AM
Pinedio Project: Notes Sharing/Log - by lupyuen - 11-07-2021, 08:13 PM
RE: Pinedio Project: Notes Sharing/Log - by tllim - 11-08-2021, 09:19 PM
RE: Pinedio Project: Notes Sharing/Log - by RTP - 11-09-2021, 12:54 PM
RE: Pinedio Project: Notes Sharing/Log - by RTP - 11-30-2021, 07:45 PM
Pinedio Project: Notes Sharing/Log - by lupyuen - 11-30-2021, 07:54 PM
RE: Pinedio Project: Notes Sharing/Log - by RTP - 12-02-2021, 01:34 PM
RE: Pinedio Project: Notes Sharing/Log - by RTP - 01-09-2022, 07:02 PM
RE: Pinedio Project: Notes Sharing/Log - by RTP - 01-16-2022, 02:52 AM
RE: Pinedio Project: Notes Sharing/Log - by RTP - 02-16-2022, 04:17 PM
Where can we buy PINEDIO? - by cyberchucktx - 03-29-2022, 11:35 AM
RE: Where can we buy PINEDIO? - by RTP - 04-02-2022, 11:17 AM
RE: Pinedio Project: Notes Sharing/Log - by RTP - 09-25-2022, 03:38 PM
RE: Pinedio Project: Notes Sharing/Log - by RTP - 11-30-2022, 02:23 AM
RE: Pinedio Project: Notes Sharing/Log - by RTP - 02-05-2023, 03:49 PM
RE: Pinedio Project: Notes Sharing/Log - by RTP - 03-04-2023, 06:18 PM
RE: Pinedio Project: Notes Sharing/Log - by RTP - 03-19-2023, 11:39 AM
RE: Pinedio Project: Notes Sharing/Log - by RTP - 04-23-2023, 05:06 PM
RE: Pinedio Project: Notes Sharing/Log - by RTP - 05-07-2023, 08:05 PM
RE: Pinedio Project: Notes Sharing/Log - by RTP - 05-08-2023, 11:05 AM
RE: Pinedio Project: Notes Sharing/Log - by RTP - 08-22-2023, 10:16 PM
RE: Pinedio Project: Notes Sharing/Log - by RTP - 08-29-2023, 09:59 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)