# RHF0M301 Raspberry Pi with Basics Station

**URL:** <https://www.thethingsnetwork.org/forum/t/rhf0m301-raspberry-pi-with-basics-station/52595>\
**Category:** Raspberry Pi Gateways\
**Created:** [October 21, 2021, 10:32pm UTC](https://www.thethingsnetwork.org/forum/t/rhf0m301-raspberry-pi-with-basics-station/52595 "2021-10-21T22:32:24Z")\
**Posts on this page:** 12\
**Page:** 2

<div class="post-metadata">

**Author:** ![AndyG](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/andyg/32/35697_2.png) [@AndyG](https://www.thethingsnetwork.org/forum/u/AndyG)\
**Post date:** [March 31, 2022, 7:22am UTC](https://www.thethingsnetwork.org/forum/t/rhf0m301-raspberry-pi-with-basics-station/52595/21 "2022-03-31T07:22:23Z")

</div>

Trace the circuit between the reset pin on the rhf0m301 and the RPi pin to make absolutely certain that you have the correct pin number.

If that is correct, you might try adjusting the speed of the SPI bus down to a lower level. I’m using an RPi 3B+. Is the RPi 4 SPI bus faster?

---

<div class="post-metadata">

**Author:** ![cslorabox](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/cslorabox/32/35697_2.png) [@cslorabox](https://www.thethingsnetwork.org/forum/u/cslorabox)\
**Post date:** [March 31, 2022, 7:29am UTC](https://www.thethingsnetwork.org/forum/t/rhf0m301-raspberry-pi-with-basics-station/52595/22 "2022-03-31T07:29:44Z")

</div>

Note that while miswiring or SPI clock issues could cause the concentrator not to operate, neither can explain the software error of the reset script itself.

That script would work just fine on a properly configured pi that didn’t have any concentrator attached at all, it’s the next stage of trying to actually talk to the concentrator where a wiring or signal integrity issue would present itself.

Checking that the pin wasn’t reserved in the boot config for another purpose was a good idea.

Beyond that, I personally would make sure I’d disabled any autorun of the gateway software, then reboot the pi, and try manually doing what the script does while checking to see if the /sys/class/gpio/gpio7 directory gets created and lets me manipulate the IO settings.

---

<div class="post-metadata">

**Author:** ![chriswilliam](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/chriswilliam/32/35697_2.png) [@chriswilliam](https://www.thethingsnetwork.org/forum/u/chriswilliam)\
**Post date:** [March 31, 2022, 7:47am UTC](https://www.thethingsnetwork.org/forum/t/rhf0m301-raspberry-pi-with-basics-station/52595/23 "2022-03-31T07:47:26Z")

</div>

![2C0CFALL$4UI8](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/d/e/de43922d1f85d4a993198649170c6f8d161be11d.png)  
my list doesn’t has this directory

---

<div class="post-metadata">

**Author:** ![chriswilliam](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/chriswilliam/32/35697_2.png) [@chriswilliam](https://www.thethingsnetwork.org/forum/u/chriswilliam)\
**Post date:** [March 31, 2022, 7:51am UTC](https://www.thethingsnetwork.org/forum/t/rhf0m301-raspberry-pi-with-basics-station/52595/24 "2022-03-31T07:51:02Z")

</div>

![CDN4Q%Z552GAIMQHAZP$GM](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/3/4/349b86084bb92b44bfb9ba3f65b633e27cd410ae.png)  
And my gpio is just like this

---

<div class="post-metadata">

**Author:** ![chriswilliam](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/chriswilliam/32/35697_2.png) [@chriswilliam](https://www.thethingsnetwork.org/forum/u/chriswilliam)\
**Post date:** [March 31, 2022, 7:52am UTC](https://www.thethingsnetwork.org/forum/t/rhf0m301-raspberry-pi-with-basics-station/52595/25 "2022-03-31T07:52:25Z")

</div>

![KC~T202B$TTWTV8MNWO~}O](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/7/f/7f7bf5ed83eec471a31a388cd7fa8866c621bd92.png)

---

<div class="post-metadata">

**Author:** ![cslorabox](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/cslorabox/32/35697_2.png) [@cslorabox](https://www.thethingsnetwork.org/forum/u/cslorabox)\
**Post date:** [March 31, 2022, 3:44pm UTC](https://www.thethingsnetwork.org/forum/t/rhf0m301-raspberry-pi-with-basics-station/52595/26 "2022-03-31T15:44:37Z")

</div>

> [@chriswilliam](#):
>
> my list doesn’t has this directory

Then you’re in a position to try manually exporting it.

If the directory already existed, it would be already exported.

---

<div class="post-metadata">

**Author:** ![AndyG](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/andyg/32/35697_2.png) [@AndyG](https://www.thethingsnetwork.org/forum/u/AndyG)\
**Post date:** [March 31, 2022, 7:23pm UTC](https://www.thethingsnetwork.org/forum/t/rhf0m301-raspberry-pi-with-basics-station/52595/27 "2022-03-31T19:23:06Z")

</div>

Hi, This is what I see on my Pi. Note that gpio-7 is not listed as spi0 CS1, and I only have gpio-8 as spi0 CS0

```auto
pi@salemfarms2:~ $ sudo cat /sys/kernel/debug/gpio
gpiochip0: GPIOs 0-53, parent: platform/3f200000.gpio, pinctrl-bcm2835:
 gpio-8 ( |spi0 CS0 ) out hi ACTIVE LOW
 gpio-29 ( |led0 ) out lo

gpiochip1: GPIOs 504-511, parent: platform/soc:firmware:expgpio, raspberrypi-exp-gpio, can sleep:
 gpio-506 ( |led1 ) out lo ACTIVE LOW
pi@salemfarms2:~ $

```

and this is the end of my config.txt file

```auto
[all]
#dtoverlay=vc4-fkms-v3d
dtoverlay=spi0-1cs

start_x=0
enable_uart=0
pi@salemfarms2:/boot $

```

---

<div class="post-metadata">

**Author:** ![AndyG](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/andyg/32/35697_2.png) [@AndyG](https://www.thethingsnetwork.org/forum/u/AndyG)\
**Post date:** [March 31, 2022, 7:39pm UTC](https://www.thethingsnetwork.org/forum/t/rhf0m301-raspberry-pi-with-basics-station/52595/28 "2022-03-31T19:39:01Z")

</div>

This is after adding the dtoverlay=spi0-1cs in the [all] section at the end of the /boot/config.txt file on a Pi4

```auto
pi@raspberrypi:~ $ sudo cat /sys/kernel/debug/gpio
gpiochip0: GPIOs 0-57, parent: platform/fe200000.gpio, pinctrl-bcm2711:
 gpio-0 (ID_SDA )
 gpio-1 (ID_SCL )
 gpio-2 (SDA1 )
 gpio-3 (SCL1 )
 gpio-4 (GPIO_GCLK )
 gpio-5 (GPIO5 )
 gpio-6 (GPIO6 )
 gpio-7 (SPI_CE1_N )
 gpio-8 (SPI_CE0_N |spi0 CS0 ) out hi ACTIVE LOW
 gpio-9 (SPI_MISO )
 gpio-10 (SPI_MOSI )
 gpio-11 (SPI_SCLK )
 gpio-12 (GPIO12 )
 gpio-13 (GPIO13 )

```

Note that gpio-7 does not have

```auto
|spi0 CS1 ) out hi ACTIVE LOW

```

---

<div class="post-metadata">

**Author:** ![cslorabox](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/cslorabox/32/35697_2.png) [@cslorabox](https://www.thethingsnetwork.org/forum/u/cslorabox)\
**Post date:** [March 31, 2022, 7:54pm UTC](https://www.thethingsnetwork.org/forum/t/rhf0m301-raspberry-pi-with-basics-station/52595/29 "2022-03-31T19:54:00Z")

</div>

And what happens when you try to manually export and operate the GPIO after a fresh boot when the script has never run?

---

<div class="post-metadata">

**Author:** ![renanandrez](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/renanandrez/32/35697_2.png) [@renanandrez](https://www.thethingsnetwork.org/forum/u/renanandrez)\
**Post date:** [July 14, 2022, 7:09pm UTC](https://www.thethingsnetwork.org/forum/t/rhf0m301-raspberry-pi-with-basics-station/52595/30 "2022-07-14T19:09:41Z")

</div>

Hi Andre, I have the same problem. Did you manage to solve it?

---

<div class="post-metadata">

**Author:** ![kskenyon](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/k/54ee81/32.png) [@kskenyon](https://www.thethingsnetwork.org/forum/u/kskenyon)\
**Post date:** [February 3, 2025, 10:03pm UTC](https://www.thethingsnetwork.org/forum/t/rhf0m301-raspberry-pi-with-basics-station/52595/31 "2025-02-03T22:03:55Z")

</div>

FYI and future reference.

Adding [all]  
dtoverlay=spi0-1cs

to

config.txt allows this old concentrator board to work with Raspberry Pi OS in it’s current state.

Kevin

---

<div class="post-metadata">

**Author:** ![galalhassan](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/g/71e660/32.png) [@galalhassan](https://www.thethingsnetwork.org/forum/u/galalhassan)\
**Post date:** [May 19, 2025, 2:21pm UTC](https://www.thethingsnetwork.org/forum/t/rhf0m301-raspberry-pi-with-basics-station/52595/33 "2025-05-19T14:21:50Z")

</div>

agreed, I got things to work using `dtoverlay=spi0-cs,cs1_pin=25` to reroute the cs1 pin. I have not tried `spi0-1cs` though

[Previous page](https://www.thethingsnetwork.org/forum/t/rhf0m301-raspberry-pi-with-basics-station/52595.md?page=1)
