RAKWireless 2245 PiHat With Jetson Xavier Dev-Kit

Issue: Firmware and Chirpstack have been installed. Gateway shows up on the web-interface, but the last seen value doesn’t change from “Never”

Setup: Jetson Xavier Dev-Kit + RAKWireless 2245

Server: Ubuntu 18.04

Details:
I had to modify the install.sh script slightly to ensure compatibility with the Jetson Xavier. SPI has been enabled on the board and the pins have been installed correctly into the hat. Are there any troubleshooting details I can provide? I’ve followed all the guides and suggestions in similar topics so I should be able to provide quick replies.

I think I need to account for the different GPIO numbers for the reset and standby pins:

image

Where are these specified? The Pi has them as GPIO 13 and 19 but the Jetson has them as 38 and 76. This is of course only an issue depending on the numbering schema used by the firmware.

I’m not entirely sure that there would be any effort to reset the GPS, but if there is, the GPIOs are probably in a script. You could search through whatever software repository you used for GPIO operations beyond those that reset the concentrator.

As for basic functionality, you’ll want to be looking at log messages from the packet forwarder, presumably ending up in the jounalctl log (at least in a systemd-ish linux)

Having GPS time fixes is to a degree an optional extension beyond basic functionality, log messages should make it clear if the packet forwarder is running at all, if it is receiving LoRa traffic, and if it is getting usable timefixes from the GPS, unusuable timefixes, or nothing.

Thanks for your reply, I’ve been poking around over the last few days and I’ve not been able to make much progress. I’ve altered the GPIO references in the scripts and reinstalled the rak-common-gateway package but to no avail.

Would you be able to provide me the journalctl command to pull the log data for the packet forwarder? Looking through /var/logs/syslog but there’s no real evidence of what triggers the failure, just an ominous:

rak-gateway ttn-gateway[8636]: ERROR: [main] failed to start the concentrator

EDIT: Found it:

sudo journalctl -f -n 100 -u chirpstack-network-server
sudo journalctl -f -n 100 -u chirpstack-gateway-bridge
sudo journalctl -f -n 100 -u chirpstack-application-server

The logs for the application server and the gateway bridge show them both receiving a termination signal and closing:

Application Server

Mar 09 02:02:39 rak-gateway systemd[1]: Started ChirpStack Application Server.
Mar 09 02:02:41 rak-gateway chirpstack-application-server[5625]: time="2022-03-09T02:02:41Z" level=info msg="starting ChirpStack Application Server" docs="https://www.chirpstack.io/" version=3.10.0
Mar 09 02:02:41 rak-gateway chirpstack-application-server[5625]: time="2022-03-09T02:02:41Z" level=info msg="storage: setting up storage package"
Mar 09 02:02:41 rak-gateway chirpstack-application-server[5625]: time="2022-03-09T02:02:41Z" level=info msg="storage: setup metrics"
Mar 09 02:02:41 rak-gateway chirpstack-application-server[5625]: time="2022-03-09T02:02:41Z" level=info msg="storage: setting up Redis client"
Mar 09 02:02:41 rak-gateway chirpstack-application-server[5625]: time="2022-03-09T02:02:41Z" level=info msg="storage: connecting to PostgreSQL database"
Mar 09 02:02:42 rak-gateway chirpstack-application-server[5625]: time="2022-03-09T02:02:42Z" level=warning msg="storage: ping PostgreSQL database error, will retry in 2s" error="pq: the database system is starting up"
Mar 09 02:02:45 rak-gateway chirpstack-application-server[5625]: time="2022-03-09T02:02:45Z" level=info msg="storage: applying PostgreSQL data migrations"
Mar 09 02:02:45 rak-gateway chirpstack-application-server[5625]: time="2022-03-09T02:02:45Z" level=info msg="storage: PostgreSQL data migrations applied" count=0
Mar 09 02:02:45 rak-gateway chirpstack-application-server[5625]: time="2022-03-09T02:02:45Z" level=info msg="integration/mqtt: TLS config is empty"
Mar 09 02:02:45 rak-gateway chirpstack-application-server[5625]: time="2022-03-09T02:02:45Z" level=info msg="integration/mqtt: connecting to mqtt broker" server="tcp://localhost:1883"
Mar 09 02:02:45 rak-gateway chirpstack-application-server[5625]: time="2022-03-09T02:02:45Z" level=info msg="api/as: starting application-server api" bind="0.0.0.0:8001" ca_cert= tls_cert= tls_key=
Mar 09 02:02:45 rak-gateway chirpstack-application-server[5625]: time="2022-03-09T02:02:45Z" level=info msg="integration/mqtt: connected to mqtt broker"
Mar 09 02:02:45 rak-gateway chirpstack-application-server[5625]: time="2022-03-09T02:02:45Z" level=info msg="integration/mqtt: subscribing to tx topic" qos=0 topic=application/+/device/+/tx
Mar 09 02:02:45 rak-gateway chirpstack-application-server[5625]: time="2022-03-09T02:02:45Z" level=info msg="api/external: starting api server" bind="0.0.0.0:8080" tls-cert= tls-key=
Mar 09 02:02:45 rak-gateway chirpstack-application-server[5625]: time="2022-03-09T02:02:45Z" level=info msg="api/external: registering rest api handler and documentation endpoint" path=/api
Mar 09 02:02:45 rak-gateway chirpstack-application-server[5625]: time="2022-03-09T02:02:45Z" level=info msg="api/js: starting join-server api" bind="0.0.0.0:8003" ca_cert= tls_cert= tls_key=
Mar 09 02:30:14 rak-gateway systemd[1]: Stopping ChirpStack Application Server...
Mar 09 02:30:14 rak-gateway chirpstack-application-server[5625]: time="2022-03-09T02:30:14Z" level=info msg="signal received" signal=terminated
Mar 09 02:30:14 rak-gateway chirpstack-application-server[5625]: time="2022-03-09T02:30:14Z" level=warning msg="stopping chirpstack-application-server"
Mar 09 02:30:14 rak-gateway systemd[1]: Stopped ChirpStack Application Server.
Mar 09 02:30:16 rak-gateway systemd[1]: Started ChirpStack Application Server.
Mar 09 02:30:16 rak-gateway chirpstack-application-server[11675]: time="2022-03-09T02:30:16Z" level=info msg="starting ChirpStack Application Server" docs="https://www.chirpstack.io/" version=3.10.0
Mar 09 02:30:16 rak-gateway chirpstack-application-server[11675]: time="2022-03-09T02:30:16Z" level=info msg="storage: setting up storage package"
Mar 09 02:30:16 rak-gateway chirpstack-application-server[11675]: time="2022-03-09T02:30:16Z" level=info msg="storage: setup metrics"
Mar 09 02:30:16 rak-gateway chirpstack-application-server[11675]: time="2022-03-09T02:30:16Z" level=info msg="storage: setting up Redis client"
Mar 09 02:30:16 rak-gateway chirpstack-application-server[11675]: time="2022-03-09T02:30:16Z" level=info msg="storage: connecting to PostgreSQL database"
Mar 09 02:30:16 rak-gateway chirpstack-application-server[11675]: time="2022-03-09T02:30:16Z" level=info msg="storage: applying PostgreSQL data migrations"
Mar 09 02:30:16 rak-gateway chirpstack-application-server[11675]: time="2022-03-09T02:30:16Z" level=info msg="storage: PostgreSQL data migrations applied" count=0
Mar 09 02:30:16 rak-gateway chirpstack-application-server[11675]: time="2022-03-09T02:30:16Z" level=info msg="integration/mqtt: TLS config is empty"
Mar 09 02:30:16 rak-gateway chirpstack-application-server[11675]: time="2022-03-09T02:30:16Z" level=info msg="integration/mqtt: connecting to mqtt broker" server="tcp://localhost:1883"
Mar 09 02:30:16 rak-gateway chirpstack-application-server[11675]: time="2022-03-09T02:30:16Z" level=info msg="integration/mqtt: connected to mqtt broker"
Mar 09 02:30:16 rak-gateway chirpstack-application-server[11675]: time="2022-03-09T02:30:16Z" level=info msg="integration/mqtt: subscribing to tx topic" qos=0 topic=application/+/device/+/tx
Mar 09 02:30:16 rak-gateway chirpstack-application-server[11675]: time="2022-03-09T02:30:16Z" level=info msg="api/as: starting application-server api" bind="0.0.0.0:8001" ca_cert= tls_cert= tls_key=
Mar 09 02:30:16 rak-gateway chirpstack-application-server[11675]: time="2022-03-09T02:30:16Z" level=info msg="api/external: starting api server" bind="0.0.0.0:8080" tls-cert= tls-key=
Mar 09 02:30:16 rak-gateway chirpstack-application-server[11675]: time="2022-03-09T02:30:16Z" level=info msg="api/external: registering rest api handler and documentation endpoint" path=/api
Mar 09 02:30:16 rak-gateway chirpstack-application-server[11675]: time="2022-03-09T02:30:16Z" level=info msg="api/js: starting join-server api" bind="0.0.0.0:8003" ca_cert= tls_cert= tls_key=
Mar 09 02:30:22 rak-gateway systemd[1]: Stopping ChirpStack Application Server...
Mar 09 02:30:22 rak-gateway chirpstack-application-server[11675]: time="2022-03-09T02:30:22Z" level=info msg="signal received" signal=terminated
Mar 09 02:30:22 rak-gateway chirpstack-application-server[11675]: time="2022-03-09T02:30:22Z" level=warning msg="stopping chirpstack-application-server"
Mar 09 02:30:22 rak-gateway systemd[1]: Stopped ChirpStack Application Server.
Mar 09 02:30:22 rak-gateway systemd[1]: Started ChirpStack Application Server.
Mar 09 02:30:22 rak-gateway chirpstack-application-server[12491]: time="2022-03-09T02:30:22Z" level=info msg="starting ChirpStack Application Server" docs="https://www.chirpstack.io/" version=3.10.0
Mar 09 02:30:22 rak-gateway chirpstack-application-server[12491]: time="2022-03-09T02:30:22Z" level=info msg="storage: setting up storage package"
Mar 09 02:30:22 rak-gateway chirpstack-application-server[12491]: time="2022-03-09T02:30:22Z" level=info msg="storage: setup metrics"
Mar 09 02:30:22 rak-gateway chirpstack-application-server[12491]: time="2022-03-09T02:30:22Z" level=info msg="storage: setting up Redis client"
Mar 09 02:30:22 rak-gateway chirpstack-application-server[12491]: time="2022-03-09T02:30:22Z" level=info msg="storage: connecting to PostgreSQL database"
Mar 09 02:30:22 rak-gateway chirpstack-application-server[12491]: time="2022-03-09T02:30:22Z" level=info msg="storage: applying PostgreSQL data migrations"
Mar 09 02:30:22 rak-gateway chirpstack-application-server[12491]: time="2022-03-09T02:30:22Z" level=info msg="storage: PostgreSQL data migrations applied" count=0
Mar 09 02:30:22 rak-gateway chirpstack-application-server[12491]: time="2022-03-09T02:30:22Z" level=info msg="integration/mqtt: TLS config is empty"
Mar 09 02:30:22 rak-gateway chirpstack-application-server[12491]: time="2022-03-09T02:30:22Z" level=info msg="integration/mqtt: connecting to mqtt broker" server="tcp://localhost:1883"
Mar 09 02:30:22 rak-gateway chirpstack-application-server[12491]: time="2022-03-09T02:30:22Z" level=info msg="integration/mqtt: connected to mqtt broker"
Mar 09 02:30:22 rak-gateway chirpstack-application-server[12491]: time="2022-03-09T02:30:22Z" level=info msg="integration/mqtt: subscribing to tx topic" qos=0 topic=application/+/device/+/tx
Mar 09 02:30:22 rak-gateway chirpstack-application-server[12491]: time="2022-03-09T02:30:22Z" level=info msg="api/as: starting application-server api" bind="0.0.0.0:8001" ca_cert= tls_cert= tls_key=
Mar 09 02:30:22 rak-gateway chirpstack-application-server[12491]: time="2022-03-09T02:30:22Z" level=info msg="api/external: starting api server" bind="0.0.0.0:8080" tls-cert= tls-key=
Mar 09 02:30:22 rak-gateway chirpstack-application-server[12491]: time="2022-03-09T02:30:22Z" level=info msg="api/external: registering rest api handler and documentation endpoint" path=/api
Mar 09 02:30:22 rak-gateway chirpstack-application-server[12491]: time="2022-03-09T02:30:22Z" level=info msg="api/js: starting join-server api" bind="0.0.0.0:8003" ca_cert= tls_cert= tls_key=

Gateway Bridge

Mar 09 02:02:39 rak-gateway systemd[1]: Started ChirpStack Gateway Bridge.
Mar 09 02:02:41 rak-gateway chirpstack-gateway-bridge[5633]: time="2022-03-09T02:02:41.166666176Z" level=info msg="starting ChirpStack Gateway Bridge" docs="https://www.chirpstack.io/gateway-bridge/" version=3.11.0
Mar 09 02:02:41 rak-gateway chirpstack-gateway-bridge[5633]: time="2022-03-09T02:02:41.16693344Z" level=info msg="backend/semtechudp: starting gateway udp listener" addr="0.0.0.0:1700"
Mar 09 02:02:42 rak-gateway chirpstack-gateway-bridge[5633]: time="2022-03-09T02:02:42.856871328Z" level=info msg="integration/mqtt: connected to mqtt broker"
Mar 09 02:02:42 rak-gateway chirpstack-gateway-bridge[5633]: time="2022-03-09T02:02:42.857009376Z" level=warning msg="[store]    memorystore wiped" module=mqtt
Mar 09 02:30:17 rak-gateway systemd[1]: Stopping ChirpStack Gateway Bridge...
Mar 09 02:30:17 rak-gateway chirpstack-gateway-bridge[5633]: time="2022-03-09T02:30:17.644223646Z" level=info msg="signal received" signal=terminated
Mar 09 02:30:17 rak-gateway chirpstack-gateway-bridge[5633]: time="2022-03-09T02:30:17.645122565Z" level=warning msg="shutting down server"
Mar 09 02:30:17 rak-gateway chirpstack-gateway-bridge[5633]: time="2022-03-09T02:30:17.646332046Z" level=error msg="[client]   Connect comms goroutine - error triggered EOF" module=mqtt
Mar 09 02:30:17 rak-gateway systemd[1]: Stopped ChirpStack Gateway Bridge.
Mar 09 02:30:19 rak-gateway systemd[1]: Started ChirpStack Gateway Bridge.
Mar 09 02:30:19 rak-gateway chirpstack-gateway-bridge[12005]: time="2022-03-09T02:30:19.238898882Z" level=info msg="starting ChirpStack Gateway Bridge" docs="https://www.chirpstack.io/gateway-bridge/" version=3.11.0
Mar 09 02:30:19 rak-gateway chirpstack-gateway-bridge[12005]: time="2022-03-09T02:30:19.239074756Z" level=info msg="backend/semtechudp: starting gateway udp listener" addr="0.0.0.0:1700"
Mar 09 02:30:19 rak-gateway chirpstack-gateway-bridge[12005]: time="2022-03-09T02:30:19.242786529Z" level=warning msg="[store]    memorystore wiped" module=mqtt
Mar 09 02:30:19 rak-gateway chirpstack-gateway-bridge[12005]: time="2022-03-09T02:30:19.243235588Z" level=info msg="integration/mqtt: connected to mqtt broker"
Mar 09 02:30:22 rak-gateway systemd[1]: Stopping ChirpStack Gateway Bridge...
Mar 09 02:30:22 rak-gateway chirpstack-gateway-bridge[12005]: time="2022-03-09T02:30:22.483352497Z" level=info msg="signal received" signal=terminated
Mar 09 02:30:22 rak-gateway chirpstack-gateway-bridge[12005]: time="2022-03-09T02:30:22.483470642Z" level=warning msg="shutting down server"
Mar 09 02:30:22 rak-gateway systemd[1]: Stopped ChirpStack Gateway Bridge.
Mar 09 02:30:22 rak-gateway systemd[1]: Started ChirpStack Gateway Bridge.
Mar 09 02:30:22 rak-gateway chirpstack-gateway-bridge[12517]: time="2022-03-09T02:30:22.597065612Z" level=info msg="starting ChirpStack Gateway Bridge" docs="https://www.chirpstack.io/gateway-bridge/" version=3.11.0
Mar 09 02:30:22 rak-gateway chirpstack-gateway-bridge[12517]: time="2022-03-09T02:30:22.597202061Z" level=info msg="backend/semtechudp: starting gateway udp listener" addr="0.0.0.0:1700"
Mar 09 02:30:22 rak-gateway chirpstack-gateway-bridge[12517]: time="2022-03-09T02:30:22.600218981Z" level=info msg="integration/mqtt: connected to mqtt broker"
Mar 09 02:30:22 rak-gateway chirpstack-gateway-bridge[12517]: time="2022-03-09T02:30:22.600796009Z" level=warning msg="[store]    memorystore wiped" module=mqtt

I’ll take a closer look at all the config files in the morning.

No, you need the packet forwarder log, whatever the setup you are using calls that task. But it’s probably not going to show more than you already see.

Prime suspect at this point would be that your SPI or reset connections are incorrect, you may want to look at what is actually going on with a scope or logic analyzer, also at least if you use the upstream semtech packet forwarder and HAL repos there are some test programs that check register access rather than full LoRa functionality.

Or that your SPI clock is too fast - I think officially 2 MHz is supposed to work but I’ve always used 1 MHz, on account of the relatively slow and generally unnecessary level translator in these concentrator implementations.

Thanks so much for that, you’ve given me a lot of good stuff to start looking into. I believe the issue is with the reset pin assignment.

1 Like

Hey! I am experiencing a similar issue and I’m trying to resolve it all week!
Would you mind sharing what kind of raspberry pi did you use?
Also, do you remember what was the pin assignment that fixed your issue?

Default for raspberry pi 4 is pin 17 but I have also tried 22 but it didn’t work.
Cheers!