Difference between revisions of "User:RTP/Pinedio: Armbian Notes"
(+cat) |
(corr) |
||
Line 1: | Line 1: | ||
This pages has additional notes regarding [[Pinedio#Armbian|Armbian on the Pinedio]]. | This pages has additional notes regarding [[Pinedio#Armbian|Armbian on the Pinedio Gateway]]. | ||
== Check the ttn-gateway == | == Check the ttn-gateway == |
Revision as of 23:29, 24 March 2023
This pages has additional notes regarding Armbian on the Pinedio Gateway.
Check the ttn-gateway
journalctl -u ttn-gateway
-- Journal begins at Fri 2023-03-24 04:53:25 PDT, ends at Fri 2023-03-24 11:10:25 PDT. -- Mar 24 04:53:25 pine-gateway ttn-gateway[1992]: # SX1302 counter (PPS): 933424896 Mar 24 04:53:25 pine-gateway ttn-gateway[1992]: # BEACON queued: 0 Mar 24 04:53:25 pine-gateway ttn-gateway[1992]: # BEACON sent so far: 0 Mar 24 04:53:25 pine-gateway ttn-gateway[1992]: # BEACON rejected: 0 Mar 24 04:53:25 pine-gateway ttn-gateway[1992]: ### [JIT] ### Mar 24 04:53:25 pine-gateway ttn-gateway[1992]: src/jitqueue.c:440:jit_print_queue(): INFO: [jit] queue is empty Mar 24 04:53:25 pine-gateway ttn-gateway[1992]: #-------- Mar 24 04:53:25 pine-gateway ttn-gateway[1992]: src/jitqueue.c:440:jit_print_queue(): INFO: [jit] queue is empty Mar 24 04:53:25 pine-gateway ttn-gateway[1992]: ##### END ##### Mar 24 04:53:25 pine-gateway ttn-gateway[1992]: JSON up: {"stat":{"time":"2023-03-24 11:51:55 GMT","rxnb":0,"rxok":0,"rxfw":0,"ackr":0.0,"dwnb":0,"txnb":0,"temp":0.0}} Mar 24 04:53:25 pine-gateway ttn-gateway[1992]: INFO: [down] PULL_ACK received in 76 ms Mar 24 04:53:25 pine-gateway ttn-gateway[1992]: INFO: [down] PULL_ACK received in 77 ms Mar 24 04:53:25 pine-gateway ttn-gateway[1992]: INFO: [down] PULL_ACK received in 77 ms Mar 24 04:53:25 pine-gateway ttn-gateway[1992]: ##### 2023-03-24 11:52:25 GMT ##### Mar 24 04:53:25 pine-gateway ttn-gateway[1992]: ### [UPSTREAM] ### Mar 24 04:53:25 pine-gateway ttn-gateway[1992]: # RF packets received by concentrator: 0 Mar 24 04:53:25 pine-gateway ttn-gateway[1992]: # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00% Mar 24 04:53:25 pine-gateway ttn-gateway[1992]: # RF packets forwarded: 0 (0 bytes) Mar 24 04:53:25 pine-gateway ttn-gateway[1992]: # PUSH_DATA datagrams sent: 1 (122 bytes) Mar 24 04:53:25 pine-gateway ttn-gateway[1992]: # PUSH_DATA acknowledged: 0.00% Mar 24 04:53:25 pine-gateway ttn-gateway[1992]: ### [DOWNSTREAM] ### Mar 24 04:53:25 pine-gateway ttn-gateway[1992]: # PULL_DATA sent: 3 (100.00% acknowledged) Mar 24 04:53:25 pine-gateway ttn-gateway[1992]: # PULL_RESP(onse) datagrams received: 0 (0 bytes) Mar 24 04:53:25 pine-gateway ttn-gateway[1992]: # RF packets sent to concentrator: 0 (0 bytes) Mar 24 04:53:25 pine-gateway ttn-gateway[1992]: # TX errors: 0 Mar 24 04:53:25 pine-gateway ttn-gateway[1992]: ### SX1302 Status ### Mar 24 04:53:25 pine-gateway ttn-gateway[1992]: # SX1302 counter (INST): 4026531840 Mar 24 04:53:25 pine-gateway ttn-gateway[1992]: # SX1302 counter (PPS): 939524096 Mar 24 04:53:25 pine-gateway ttn-gateway[1992]: # BEACON queued: 0 Mar 24 04:53:25 pine-gateway ttn-gateway[1992]: # BEACON sent so far: 0 Mar 24 04:53:25 pine-gateway ttn-gateway[1992]: # BEACON rejected: 0
Switch between Chirpstack / TTN (TheThingsNetwork)
Use the command gateway-config
to switch between Chirpstack / TTN (TheThingsNetwork).
Then select:
Setup RAK Gateway Channel Plan
Next for TTN (TheThingsNetwork) select:
Server is TTN
Or for Chirpstack select:
Server is Other server
Access
The Chirpstack admin page can be accessed by point the web browser to http://gatewayIPaddress:8080
.
Default credentials | |
---|---|
Default Chirpstack Credentials | admin/admin
|
SSH Credentials | pinedio/SoPinePass!!!
|
Changing EUI
EUI stored in file:
/opt/ttn-gateway/packetforwarder/lorapkt_fwd/local_conf.json
(edit EUI file above if you wish change it, and run: sudo systemctl restart ttn-gateway)
Additional Shell Commands
View gateway ID/EUI gateway-version
Restart packet forwarder / concentrator using sudo systemctl restart ttn-gateway
Check status using sudo systemctl status ttn-gateway
Enabling Concentrator/GPS
Below steps are already completed for the above images:
Inside armbian-config -> system -> Bootenv (edit boot environment), enter the following 2 lines (to create spidev0.0):
overlays=spi-spidev uart2 i2c0 param_spidev_spi_bus=0
Or you may hand edit: /boot/armbianEnv.txt to add the above overlays/param_spidev_spi_bus lines.
Then save and reboot.
After rebooting you should see a new device /dev/spidev0.0. This will be the concentrator device for gateway related setup.
GPS will be /dev/ttyS2 and should work (after editing armbianEnv.txt + reboot). Make sure to offer GPS antenna a strong signal, preferably by a window (if indoors).