Could not read gateway_id - Full Gateway OS on Pi 3B+ and PiSupply Hat (RAK2247)

Hi, hoping someone can get me on the right track here. :confused:

I’ve a Raspberry Pi 3B+ and PiSupply (RAK2247) Hat. I’ve set up the Gateway OS (4.2.0 Full) and configured Concentratored to SX1301 as below:
Untitled

I can’t however seem to get it to show the Gateway ID in the footer - I get “Gateway ID: could not read gateway_id”.

I’m assuming the concentrator is not starting properly and the logs appear to show a loop:

Thu Jan  4 17:46:49 2024 user.info chirpstack-concentratord-sx1301[4061]: Starting the concentrator
Thu Jan  4 17:46:54 2024 user.info chirpstack-concentratord-sx1301[4085]: Configuring reset pin, dev: /dev/gpiochip0, pin: 22
Thu Jan  4 17:46:54 2024 user.info chirpstack-concentratord-sx1301[4085]: Starting Concentratord SX1301 (version: 4.3.0, docs: www.chirpstack.io/docs/chirpstack-concentratord/)
Thu Jan  4 17:46:54 2024 user.info chirpstack-concentratord-sx1301[4085]: Triggering sx1302 reset
Thu Jan  4 17:46:54 2024 user.info chirpstack-concentratord-sx1301[4085]: Setting spi device path, spidev_path: /dev/spidev0.0
Thu Jan  4 17:46:54 2024 user.info chirpstack-concentratord-sx1301[4085]: Setting board configuration, lorawan_public: true, clock_source: 1
Thu Jan  4 17:46:54 2024 user.info chirpstack-concentratord-sx1301[4085]: Setting up concentrator radios
Thu Jan  4 17:46:54 2024 user.info chirpstack-concentratord-sx1301[4085]: Configuring radio, radio: 0, enabled: true, center_freq: 867500000, type: SX1257
Thu Jan  4 17:46:54 2024 user.info chirpstack-concentratord-sx1301[4085]: Configuring radio, radio: 1, enabled: true, center_freq: 868500000, type: SX1257
Thu Jan  4 17:46:54 2024 user.info chirpstack-concentratord-sx1301[4085]: Setting up concentrator channels
Thu Jan  4 17:46:54 2024 user.info chirpstack-concentratord-sx1301[4085]: Configuring multi-SF LoRa channel, channel: 0, enabled: true, freq: 868100000, rf_chain: 1, if_freq: -400000
Thu Jan  4 17:46:54 2024 user.info chirpstack-concentratord-sx1301[4085]: Configuring multi-SF LoRa channel, channel: 1, enabled: true, freq: 868300000, rf_chain: 1, if_freq: -200000
Thu Jan  4 17:46:54 2024 user.info chirpstack-concentratord-sx1301[4085]: Configuring multi-SF LoRa channel, channel: 2, enabled: true, freq: 868500000, rf_chain: 1, if_freq: 0
Thu Jan  4 17:46:54 2024 user.info chirpstack-concentratord-sx1301[4085]: Configuring multi-SF LoRa channel, channel: 3, enabled: true, freq: 867100000, rf_chain: 0, if_freq: -400000
Thu Jan  4 17:46:54 2024 user.info chirpstack-concentratord-sx1301[4085]: Configuring multi-SF LoRa channel, channel: 4, enabled: true, freq: 867300000, rf_chain: 0, if_freq: -200000
Thu Jan  4 17:46:54 2024 user.info chirpstack-concentratord-sx1301[4085]: Configuring multi-SF LoRa channel, channel: 5, enabled: true, freq: 867500000, rf_chain: 0, if_freq: 0
Thu Jan  4 17:46:54 2024 user.info chirpstack-concentratord-sx1301[4085]: Configuring multi-SF LoRa channel, channel: 6, enabled: true, freq: 867700000, rf_chain: 0, if_freq: 200000
Thu Jan  4 17:46:54 2024 user.info chirpstack-concentratord-sx1301[4085]: Configuring multi-SF LoRa channel, channel: 7, enabled: true, freq: 867900000, rf_chain: 0, if_freq: 400000
Thu Jan  4 17:46:54 2024 user.info chirpstack-concentratord-sx1301[4085]: Configuring Std LoRa channel, enabled: true, freq: 868300000, rf_chain: 1, if_freq: -200000
Thu Jan  4 17:46:54 2024 user.info chirpstack-concentratord-sx1301[4085]: Configuring FSK channel, enabled: true, freq: 868800000, rf_chain: 1, if_freq: 300000
Thu Jan  4 17:46:54 2024 user.info chirpstack-concentratord-sx1301[4085]: Starting the concentrator
Thu Jan  4 17:46:59 2024 user.info chirpstack-concentratord-sx1301[4122]: Configuring reset pin, dev: /dev/gpiochip0, pin: 22
Thu Jan  4 17:46:59 2024 user.info chirpstack-concentratord-sx1301[4122]: Starting Concentratord SX1301 (version: 4.3.0, docs: www.chirpstack.io/docs/chirpstack-concentratord/)
Thu Jan  4 17:46:59 2024 user.info chirpstack-concentratord-sx1301[4122]: Triggering sx1302 reset
Thu Jan  4 17:47:00 2024 user.info chirpstack-concentratord-sx1301[4122]: Setting spi device path, spidev_path: /dev/spidev0.0
Thu Jan  4 17:47:00 2024 user.info chirpstack-concentratord-sx1301[4122]: Setting board configuration, lorawan_public: true, clock_source: 1
Thu Jan  4 17:47:00 2024 user.info chirpstack-concentratord-sx1301[4122]: Setting up concentrator radios
Thu Jan  4 17:47:00 2024 user.info chirpstack-concentratord-sx1301[4122]: Configuring radio, radio: 0, enabled: true, center_freq: 867500000, type: SX1257
Thu Jan  4 17:47:00 2024 user.info chirpstack-concentratord-sx1301[4122]: Configuring radio, radio: 1, enabled: true, center_freq: 868500000, type: SX1257
Thu Jan  4 17:47:00 2024 user.info chirpstack-concentratord-sx1301[4122]: Setting up concentrator channels
Thu Jan  4 17:47:00 2024 user.info chirpstack-concentratord-sx1301[4122]: Configuring multi-SF LoRa channel, channel: 0, enabled: true, freq: 868100000, rf_chain: 1, if_freq: -400000
Thu Jan  4 17:47:00 2024 user.info chirpstack-concentratord-sx1301[4122]: Configuring multi-SF LoRa channel, channel: 1, enabled: true, freq: 868300000, rf_chain: 1, if_freq: -200000
Thu Jan  4 17:47:00 2024 user.info chirpstack-concentratord-sx1301[4122]: Configuring multi-SF LoRa channel, channel: 2, enabled: true, freq: 868500000, rf_chain: 1, if_freq: 0
Thu Jan  4 17:47:00 2024 user.info chirpstack-concentratord-sx1301[4122]: Configuring multi-SF LoRa channel, channel: 3, enabled: true, freq: 867100000, rf_chain: 0, if_freq: -400000
Thu Jan  4 17:47:00 2024 user.info chirpstack-concentratord-sx1301[4122]: Configuring multi-SF LoRa channel, channel: 4, enabled: true, freq: 867300000, rf_chain: 0, if_freq: -200000
Thu Jan  4 17:47:00 2024 user.info chirpstack-concentratord-sx1301[4122]: Configuring multi-SF LoRa channel, channel: 5, enabled: true, freq: 867500000, rf_chain: 0, if_freq: 0
Thu Jan  4 17:47:00 2024 user.info chirpstack-concentratord-sx1301[4122]: Configuring multi-SF LoRa channel, channel: 6, enabled: true, freq: 867700000, rf_chain: 0, if_freq: 200000
Thu Jan  4 17:47:00 2024 user.info chirpstack-concentratord-sx1301[4122]: Configuring multi-SF LoRa channel, channel: 7, enabled: true, freq: 867900000, rf_chain: 0, if_freq: 400000
Thu Jan  4 17:47:00 2024 user.info chirpstack-concentratord-sx1301[4122]: Configuring Std LoRa channel, enabled: true, freq: 868300000, rf_chain: 1, if_freq: -200000
Thu Jan  4 17:47:00 2024 user.info chirpstack-concentratord-sx1301[4122]: Configuring FSK channel, enabled: true, freq: 868800000, rf_chain: 1, if_freq: 300000
Thu Jan  4 17:47:00 2024 user.info chirpstack-concentratord-sx1301[4122]: Starting the concentrator
Thu Jan  4 17:47:05 2024 user.info chirpstack-concentratord-sx1301[4129]: Configuring reset pin, dev: /dev/gpiochip0, pin: 22
Thu Jan  4 17:47:05 2024 user.info chirpstack-concentratord-sx1301[4129]: Starting Concentratord SX1301 (version: 4.3.0, docs: www.chirpstack.io/docs/chirpstack-concentratord/)
Thu Jan  4 17:47:05 2024 user.info chirpstack-concentratord-sx1301[4129]: Triggering sx1302 reset
Thu Jan  4 17:47:05 2024 user.info chirpstack-concentratord-sx1301[4129]: Setting spi device path, spidev_path: /dev/spidev0.0
Thu Jan  4 17:47:05 2024 user.info chirpstack-concentratord-sx1301[4129]: Setting board configuration, lorawan_public: true, clock_source: 1
Thu Jan  4 17:47:05 2024 user.info chirpstack-concentratord-sx1301[4129]: Setting up concentrator radios
Thu Jan  4 17:47:05 2024 user.info chirpstack-concentratord-sx1301[4129]: Configuring radio, radio: 0, enabled: true, center_freq: 867500000, type: SX1257
Thu Jan  4 17:47:05 2024 user.info chirpstack-concentratord-sx1301[4129]: Configuring radio, radio: 1, enabled: true, center_freq: 868500000, type: SX1257
Thu Jan  4 17:47:05 2024 user.info chirpstack-concentratord-sx1301[4129]: Setting up concentrator channels
Thu Jan  4 17:47:05 2024 user.info chirpstack-concentratord-sx1301[4129]: Configuring multi-SF LoRa channel, channel: 0, enabled: true, freq: 868100000, rf_chain: 1, if_freq: -400000
Thu Jan  4 17:47:05 2024 user.info chirpstack-concentratord-sx1301[4129]: Configuring multi-SF LoRa channel, channel: 1, enabled: true, freq: 868300000, rf_chain: 1, if_freq: -200000
Thu Jan  4 17:47:05 2024 user.info chirpstack-concentratord-sx1301[4129]: Configuring multi-SF LoRa channel, channel: 2, enabled: true, freq: 868500000, rf_chain: 1, if_freq: 0
Thu Jan  4 17:47:05 2024 user.info chirpstack-concentratord-sx1301[4129]: Configuring multi-SF LoRa channel, channel: 3, enabled: true, freq: 867100000, rf_chain: 0, if_freq: -400000
Thu Jan  4 17:47:05 2024 user.info chirpstack-concentratord-sx1301[4129]: Configuring multi-SF LoRa channel, channel: 4, enabled: true, freq: 867300000, rf_chain: 0, if_freq: -200000
Thu Jan  4 17:47:05 2024 user.info chirpstack-concentratord-sx1301[4129]: Configuring multi-SF LoRa channel, channel: 5, enabled: true, freq: 867500000, rf_chain: 0, if_freq: 0
Thu Jan  4 17:47:05 2024 user.info chirpstack-concentratord-sx1301[4129]: Configuring multi-SF LoRa channel, channel: 6, enabled: true, freq: 867700000, rf_chain: 0, if_freq: 200000
Thu Jan  4 17:47:05 2024 user.info chirpstack-concentratord-sx1301[4129]: Configuring multi-SF LoRa channel, channel: 7, enabled: true, freq: 867900000, rf_chain: 0, if_freq: 400000
Thu Jan  4 17:47:05 2024 user.info chirpstack-concentratord-sx1301[4129]: Configuring Std LoRa channel, enabled: true, freq: 868300000, rf_chain: 1, if_freq: -200000
Thu Jan  4 17:47:05 2024 user.info chirpstack-concentratord-sx1301[4129]: Configuring FSK channel, enabled: true, freq: 868800000, rf_chain: 1, if_freq: 300000
Thu Jan  4 17:47:05 2024 user.info chirpstack-concentratord-sx1301[4129]: Starting the concentrator
Thu Jan  4 17:47:10 2024 user.info chirpstack-concentratord-sx1301[4134]: Configuring reset pin, dev: /dev/gpiochip0, pin: 22
Thu Jan  4 17:47:10 2024 user.info chirpstack-concentratord-sx1301[4134]: Starting Concentratord SX1301 (version: 4.3.0, docs: www.chirpstack.io/docs/chirpstack-concentratord/)
Thu Jan  4 17:47:10 2024 user.info chirpstack-concentratord-sx1301[4134]: Triggering sx1302 reset
Thu Jan  4 17:47:10 2024 user.info chirpstack-concentratord-sx1301[4134]: Setting spi device path, spidev_path: /dev/spidev0.0
Thu Jan  4 17:47:10 2024 user.info chirpstack-concentratord-sx1301[4134]: Setting board configuration, lorawan_public: true, clock_source: 1
Thu Jan  4 17:47:10 2024 user.info chirpstack-concentratord-sx1301[4134]: Setting up concentrator radios
Thu Jan  4 17:47:10 2024 user.info chirpstack-concentratord-sx1301[4134]: Configuring radio, radio: 0, enabled: true, center_freq: 867500000, type: SX1257
Thu Jan  4 17:47:10 2024 user.info chirpstack-concentratord-sx1301[4134]: Configuring radio, radio: 1, enabled: true, center_freq: 868500000, type: SX1257
Thu Jan  4 17:47:10 2024 user.info chirpstack-concentratord-sx1301[4134]: Setting up concentrator channels
Thu Jan  4 17:47:10 2024 user.info chirpstack-concentratord-sx1301[4134]: Configuring multi-SF LoRa channel, channel: 0, enabled: true, freq: 868100000, rf_chain: 1, if_freq: -400000
Thu Jan  4 17:47:10 2024 user.info chirpstack-concentratord-sx1301[4134]: Configuring multi-SF LoRa channel, channel: 1, enabled: true, freq: 868300000, rf_chain: 1, if_freq: -200000
Thu Jan  4 17:47:10 2024 user.info chirpstack-concentratord-sx1301[4134]: Configuring multi-SF LoRa channel, channel: 2, enabled: true, freq: 868500000, rf_chain: 1, if_freq: 0
Thu Jan  4 17:47:10 2024 user.info chirpstack-concentratord-sx1301[4134]: Configuring multi-SF LoRa channel, channel: 3, enabled: true, freq: 867100000, rf_chain: 0, if_freq: -400000
Thu Jan  4 17:47:10 2024 user.info chirpstack-concentratord-sx1301[4134]: Configuring multi-SF LoRa channel, channel: 4, enabled: true, freq: 867300000, rf_chain: 0, if_freq: -200000
Thu Jan  4 17:47:10 2024 user.info chirpstack-concentratord-sx1301[4134]: Configuring multi-SF LoRa channel, channel: 5, enabled: true, freq: 867500000, rf_chain: 0, if_freq: 0
Thu Jan  4 17:47:10 2024 user.info chirpstack-concentratord-sx1301[4134]: Configuring multi-SF LoRa channel, channel: 6, enabled: true, freq: 867700000, rf_chain: 0, if_freq: 200000
Thu Jan  4 17:47:10 2024 user.info chirpstack-concentratord-sx1301[4134]: Configuring multi-SF LoRa channel, channel: 7, enabled: true, freq: 867900000, rf_chain: 0, if_freq: 400000
Thu Jan  4 17:47:10 2024 user.info chirpstack-concentratord-sx1301[4134]: Configuring Std LoRa channel, enabled: true, freq: 868300000, rf_chain: 1, if_freq: -200000
Thu Jan  4 17:47:10 2024 user.info chirpstack-concentratord-sx1301[4134]: Configuring FSK channel, enabled: true, freq: 868800000, rf_chain: 1, if_freq: 300000
Thu Jan  4 17:47:10 2024 user.info chirpstack-concentratord-sx1301[4134]: Starting the concentrator
Thu Jan  4 17:47:15 2024 user.info chirpstack-concentratord-sx1301[4139]: Configuring reset pin, dev: /dev/gpiochip0, pin: 22
Thu Jan  4 17:47:15 2024 user.info chirpstack-concentratord-sx1301[4139]: Starting Concentratord SX1301 (version: 4.3.0, docs: www.chirpstack.io/docs/chirpstack-concentratord/)
Thu Jan  4 17:47:15 2024 user.info chirpstack-concentratord-sx1301[4139]: Triggering sx1302 reset
Thu Jan  4 17:47:15 2024 user.info chirpstack-concentratord-sx1301[4139]: Setting spi device path, spidev_path: /dev/spidev0.0
Thu Jan  4 17:47:15 2024 user.info chirpstack-concentratord-sx1301[4139]: Setting board configuration, lorawan_public: true, clock_source: 1
Thu Jan  4 17:47:15 2024 user.info chirpstack-concentratord-sx1301[4139]: Setting up concentrator radios
Thu Jan  4 17:47:15 2024 user.info chirpstack-concentratord-sx1301[4139]: Configuring radio, radio: 0, enabled: true, center_freq: 867500000, type: SX1257
Thu Jan  4 17:47:15 2024 user.info chirpstack-concentratord-sx1301[4139]: Configuring radio, radio: 1, enabled: true, center_freq: 868500000, type: SX1257
Thu Jan  4 17:47:15 2024 user.info chirpstack-concentratord-sx1301[4139]: Setting up concentrator channels
Thu Jan  4 17:47:15 2024 user.info chirpstack-concentratord-sx1301[4139]: Configuring multi-SF LoRa channel, channel: 0, enabled: true, freq: 868100000, rf_chain: 1, if_freq: -400000
Thu Jan  4 17:47:15 2024 user.info chirpstack-concentratord-sx1301[4139]: Configuring multi-SF LoRa channel, channel: 1, enabled: true, freq: 868300000, rf_chain: 1, if_freq: -200000
Thu Jan  4 17:47:15 2024 user.info chirpstack-concentratord-sx1301[4139]: Configuring multi-SF LoRa channel, channel: 2, enabled: true, freq: 868500000, rf_chain: 1, if_freq: 0
Thu Jan  4 17:47:15 2024 user.info chirpstack-concentratord-sx1301[4139]: Configuring multi-SF LoRa channel, channel: 3, enabled: true, freq: 867100000, rf_chain: 0, if_freq: -400000
Thu Jan  4 17:47:15 2024 user.info chirpstack-concentratord-sx1301[4139]: Configuring multi-SF LoRa channel, channel: 4, enabled: true, freq: 867300000, rf_chain: 0, if_freq: -200000
Thu Jan  4 17:47:15 2024 user.info chirpstack-concentratord-sx1301[4139]: Configuring multi-SF LoRa channel, channel: 5, enabled: true, freq: 867500000, rf_chain: 0, if_freq: 0
Thu Jan  4 17:47:15 2024 user.info chirpstack-concentratord-sx1301[4139]: Configuring multi-SF LoRa channel, channel: 6, enabled: true, freq: 867700000, rf_chain: 0, if_freq: 200000
Thu Jan  4 17:47:15 2024 user.info chirpstack-concentratord-sx1301[4139]: Configuring multi-SF LoRa channel, channel: 7, enabled: true, freq: 867900000, rf_chain: 0, if_freq: 400000
Thu Jan  4 17:47:15 2024 user.info chirpstack-concentratord-sx1301[4139]: Configuring Std LoRa channel, enabled: true, freq: 868300000, rf_chain: 1, if_freq: -200000
Thu Jan  4 17:47:15 2024 user.info chirpstack-concentratord-sx1301[4139]: Configuring FSK channel, enabled: true, freq: 868800000, rf_chain: 1, if_freq: 300000

Two things strike me.

  • It references “Triggering sx1302 reset”, but should this not be “sx1301” ?
  • Also there is reference to “Configuring reset pin, dev: /dev/gpiochip0, pin: 22” and I’ve seen some posts about the RAK2247 that says this should be pin 17 - I think though that this is if you are not using the pisupply hat.

The only other thing that might be relevent is that I’m using the Pisupply ip67 hat holder (Nebra IP67 Case - Gateway HAT Mounting & Raspberry Pi Expansion Board — Pi Supply) with the RAK2247 hat in location 3

Hopefully someone can point me in the right direction … :confused: :confused: :confused:

The reset pin number is related to the GPIO pin which the reset signal is connected to, which depends on what sort of HAT you are using. If you got documentation for this HAT, you can tell which GPIO pin that signal is connected to.

SX1301 has no gateway ID built into it. If that message is meant to indicate the gateway ID of the hardware, that could be why.

Thanks for the suggestions @sp193. I’ve done a little digging and the the reset on the RAK 2247 is pin 22 which on the hat comes through to pin 15 on the pi which I believe is GPIO22. That seems to tie to the Gateway OS config for the PI Supply hat.

The Chirpstack OS interface shows a gateway ID in the config for sx1301 (see first image) and I’d assumed that was what it had set the ID to be ?

When it comes to this sort of gateways with the SX1301, it is a practice to the Ethernet interface’s MAC address to create an EUI-64 for the gateway EUI (or gateway ID). If you never had to set a value, it implies that the Gateway OS is aware of what to use for the EUI.

According to PiSupply’s documentation, the reset is indeed GPIO 22: https://github.com/PiSupply/IoTLoRaRange/tree/master/IoT%20Lora%20Gateway%20HAT
This is not really related to the RAK2247, but the HAT itself.
In the thread I linked to below, it appears that Chirpstack Gateway OS refers to the GPIO number as just “pin”, so 22 is probably correct.

Are you sure that the HAT and the RAK2247 are connected securely?
Something similar unfolded here: Unable to get Waveshare Gateway HAT working - #11 by Vilberg_Sindri

Thanks for the suggestions - yes I’ve checked the connection and tried it with a ribbon cable. I’ve reseated the RAK board on the hat too so pretty sure it’s not that.

I’ve also posted on the RAK forum in the hope that someone on there has some ideas.

I might try the Chirpstack OS v3 but if that doesn’t work I’m not sure where to go other than look to upgrade to an sx1302 ? :thinking:

Your logs are truncated, could you please post the full log messages?

As a new user on the forum I’m not able to upload files but they are on the RAK forum here: 2247 Concentrator not starting with Chirpstack OS 4.2.0 and Pi 3B+ - Network Server Stack for LoRaWAN - RAKwireless Forum

As I understand it the logs overwrite as they’re only held in memory in the Gateway OS however those on the thread above I’ve captured from boot in the system log (together with the kernel.log)

There have been some pin related refactoring recently, maybe that could have caused a regression? Let me re-test with my Pi Supply shield to see if I can reproduce the issue and get back to you.

1 Like

Have you ever tried with the images from RAK or perhaps even PiSupply? If the HAT has some fault, then there is nothing that can be done from the software level.

Thanks @sp193 - That’s a valid point. I’ll dig out another sd card and see if I can try another image in the next couple of days.

This topic was automatically closed after 90 days. New replies are no longer allowed.