I’ve just put the kit together and it seems that the OLED display works but not the switch or fan. It’s running pretty hot even without the case. Any ideas for getting the fan running?
OLED works but no Fan or switch
Please tell me to print the following commands
$ sudo systemctl status rockpi-sata.service
$ netstat -l | grep -o '\S*:8888'
rockpi-sata.service - Rockpi SATA Hat
Loaded: loaded (/lib/systemd/system/rockpi-sata.service; enabled; vendor pres
Active: active (running) since Wed 2020-08-19 21:01:23 BST; 1 day 15h ago
Main PID: 703 (python3)
Tasks: 6 (limit: 3862)
CGroup: /system.slice/rockpi-sata.service
├─ 703 /usr/bin/python3 /usr/bin/rockpi-sata/main.py on
├─1092 /usr/bin/python3 /usr/bin/rockpi-sata/main.py on
├─1093 /usr/bin/python3 /usr/bin/rockpi-sata/main.py on
├─1094 /usr/bin/python3 /usr/bin/rockpi-sata/main.py on
└─1095 /usr/bin/python3 /usr/bin/rockpi-sata/main.py on
Aug 19 21:01:23 BiBiStore systemd[1]: Started Rockpi SATA Hat.
and
netstat -l | grep -o '\S*:8888'
localhost:8888
Thanks
Can anyone offer any suggestions on this?
I’m sorry for the late reply.
Judging from the status of the program, the top-board is broken. Please contact Allnet to replace a new one.
ok thanks for your help with this.
i have had the same issue of the fan not powering on, the OLED and switch however do work,
here are my command outputs below:
pi@raspberrypi:~ $ sudo systemctl status rockpi-sata.service
● rockpi-sata.service - Rockpi SATA Hat
Loaded: loaded (/lib/systemd/system/rockpi-sata.service; enabled; vendor pres
Active: active (running) since Thu 2020-10-15 00:25:22 AEDT; 15h ago
Main PID: 780 (python3)
Tasks: 5 (limit: 4915)
Memory: 19.8M
CGroup: /system.slice/rockpi-sata.service
├─780 /usr/bin/python3 /usr/bin/rockpi-sata/main.py on
├─992 /usr/bin/python3 /usr/bin/rockpi-sata/main.py on
├─993 /usr/bin/python3 /usr/bin/rockpi-sata/main.py on
└─998 /usr/bin/python3 /usr/bin/rockpi-sata/main.py on
Oct 15 00:25:55 raspberrypi python3[780]: self._target(*self.args, **self.
Oct 15 00:25:55 raspberrypi python3[780]: File “/usr/bin/rockpi-sata/fan.py”,
Oct 15 00:25:55 raspberrypi python3[780]: change_dc(get_dc())
Oct 15 00:25:55 raspberrypi python3[780]: File “/usr/bin/rockpi-sata/fan.py”,
Oct 15 00:25:55 raspberrypi python3[780]: gpio.hardware_PWM(12, 25000, dc *
Oct 15 00:25:55 raspberrypi python3[780]: File "/usr/lib/python3/dist-packages
Oct 15 00:25:55 raspberrypi python3[780]: self.sl, _PI_CMD_HP, gpio, PWMfreq
Oct 15 00:25:55 raspberrypi python3[780]: File "/usr/lib/python3/dist-packages
Oct 15 00:25:55 raspberrypi python3[780]: sl.s.sendall(ext)
Oct 15 00:25:55 raspberrypi python3[780]: AttributeError: ‘NoneType’ object has
pi@raspberrypi:~ $ netstat -l | grep -o ‘\S*:8888’
localhost:8888
uname -a
pigpiod -v
here are the outputs
pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.19.118-v7l+ #1311 SMP Mon Apr 27 14:26:42 BST 2020 armv7l GNU/Linux
pi@raspberrypi:~ $ pigpiod -v
71
@jikky1800, I had the same problem with mine. LCD worked but no fan. Turns out the issue was that I had disabled IPv6 due to me not needing it. Make sure your IPv6 is enabled on the Pi. Otherwise GPIO cannot communicate.
Hope this helps.
i tried with guide
and this one
https://bneijt.nl/blog/post/enable-ipv6-on-your-raspberry-pi/
buy they didnt work or havent any effect
I would say it depends on the distro you are running on the pi. I personally use Dietpi. To make sure its enabled there its just a matter of doing a “sudo dietpi-config” command and making sire its enabled.
im just using plain raspbain buster, not sure if i can keep my raid if i change distros
Hi
unfortunately, I have the same issue. But with all the settings above.
$ uname -a
Linux nextpy01-aro 5.4.72-v7l+ #1356 SMP Thu Oct 22 13:57:51 BST 2020 armv7l GNU/Linux
$ systemctl status pigpiod.service
● pigpiod.service - Daemon required to control GPIO pins via pigpio
Loaded: loaded (/lib/systemd/system/pigpiod.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/pigpiod.service.d
└─public.conf
Active: active (running) since Fri 2020-11-13 21:12:32 CET; 29min ago
Main PID: 470 (pigpiod)
Tasks: 4 (limit: 4915)
CGroup: /system.slice/pigpiod.service
└─470 /usr/bin/pigpiod
Nov 13 21:12:32 nextpy01-aro systemd[1]: Starting Daemon required to control GPIO pins via pigpio…
Nov 13 21:12:32 nextpy01-aro systemd[1]: Started Daemon required to control GPIO pins via pigpio.
$ systemctl status rockpi-sata.service
● rockpi-sata.service - Rockpi SATA Hat
Loaded: loaded (/lib/systemd/system/rockpi-sata.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2020-11-13 21:39:09 CET; 3min 50s ago
Main PID: 7172 (python3)
Tasks: 4 (limit: 4915)
CGroup: /system.slice/rockpi-sata.service
├─7172 /usr/bin/python3 /usr/bin/rockpi-sata/main.py on
├─7200 /usr/bin/python3 /usr/bin/rockpi-sata/main.py on
├─7201 /usr/bin/python3 /usr/bin/rockpi-sata/main.py on
└─7202 /usr/bin/python3 /usr/bin/rockpi-sata/main.py on
Nov 13 21:39:11 nextpy01-aro python3[7172]: self._target(*self._args, **self._kwargs)
Nov 13 21:39:11 nextpy01-aro python3[7172]: File “/usr/bin/rockpi-sata/fan.py”, line 81, in running
Nov 13 21:39:11 nextpy01-aro python3[7172]: change_dc(get_dc())
Nov 13 21:39:11 nextpy01-aro python3[7172]: File “/usr/bin/rockpi-sata/fan.py”, line 75, in change_dc
Nov 13 21:39:11 nextpy01-aro python3[7172]: gpio.hardware_PWM(12, 25000, dc * 10000)
Nov 13 21:39:11 nextpy01-aro python3[7172]: File “/usr/lib/python3/dist-packages/pigpio.py”, line 2013, in hardware_PWM
Nov 13 21:39:11 nextpy01-aro python3[7172]: self.sl, _PI_CMD_HP, gpio, PWMfreq, 4, extents))
Nov 13 21:39:11 nextpy01-aro python3[7172]: File “/usr/lib/python3/dist-packages/pigpio.py”, line 1030, in _pigpio_command_ext
Nov 13 21:39:11 nextpy01-aro python3[7172]: sl.s.sendall(ext)
Nov 13 21:39:11 nextpy01-aro python3[7172]: AttributeError: ‘NoneType’ object has no attribute ‘sendall’
$ lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 10 (buster)
Release: 10
Codename: buster
I can’t find the problem. Maybe someone has an idea.
Thanks for your help
i checked my pigpio.service
pi@raspberrypi:~ $ systemctl status pigpiod.service
● pigpiod.service - Daemon required to control GPIO pins via pigpio
Loaded: loaded (/lib/systemd/system/pigpiod.service; enabled; vendor preset:
Active: failed (Result: exit-code) since Sat 2020-12-05 21:27:01 AEDT; 11s ag
Process: 16925 ExecStart=/usr/bin/pigpiod -l (code=exited, status=0/SUCCESS)
Main PID: 16926 (code=exited, status=1/FAILURE)
Dec 05 21:27:01 raspberrypi systemd[1]: Starting Daemon required to control GPIO
Dec 05 21:27:01 raspberrypi systemd[1]: Started Daemon required to control GPIO
Dec 05 21:27:01 raspberrypi pigpiod[16925]: 2020-12-05 21:27:01 initInitialise:
Dec 05 21:27:01 raspberrypi pigpiod[16925]: Can’t initialise pigpio library
Dec 05 21:27:01 raspberrypi systemd[1]: pigpiod.service: Main process exited, co
Dec 05 21:27:01 raspberrypi systemd[1]: pigpiod.service: Failed with result 'exi
lines 1-12/12 (END)…skipping…
● pigpiod.service - Daemon required to control GPIO pins via pigpio
Loaded: loaded (/lib/systemd/system/pigpiod.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2020-12-05 21:27:01 AEDT; 11s ago
Process: 16925 ExecStart=/usr/bin/pigpiod -l (code=exited, status=0/SUCCESS)
Main PID: 16926 (code=exited, status=1/FAILURE)
Dec 05 21:27:01 raspberrypi systemd[1]: Starting Daemon required to control GPIO pins via pigpio…
Dec 05 21:27:01 raspberrypi systemd[1]: Started Daemon required to control GPIO pins via pigpio.
Dec 05 21:27:01 raspberrypi pigpiod[16925]: 2020-12-05 21:27:01 initInitialise: bind to port 8888 failed (Can
Dec 05 21:27:01 raspberrypi pigpiod[16925]: Can’t initialise pigpio library
Dec 05 21:27:01 raspberrypi systemd[1]: pigpiod.service: Main process exited, code=exited, status=1/FAILURE
Dec 05 21:27:01 raspberrypi systemd[1]: pigpiod.service: Failed with result ‘exit-code’.
~
says port cannot bind to port 8888
any ideas why the top fan wont spin
Top fan doesn’t spin because of the failing pigpio as the PWM used for the fan is generated by that pigpio.
You should however be in the possibility to pilot the fan on/off (so no PWM) So you can exclude mechanical fan issues.
However PiGPIO is not used for the switch. That uses the standard RPi gpio library.
So looking at your issue from that point of view there might be something else in play here.
sudo rm -rf /*
just kidding…
The tophat fan is connected to BCM mode GPIO13 so technically if you would fire up that pin in a small python script (with the sata hat service stopped to make sure there’s no interference) the fan should start spinning at full speed. If not: there’s a connection/fan issue.
got it working. had to kill pigpiod and restart it with ipv4 127.0.0.1 connected for the local host rather than ipv6.
these are the commands i used below to get the fan working per session after reboot you’ll have to do the commands again.
pi@raspberrypi:~ $ sudo killall pigpiod
pi@raspberrypi:~ $ sudo pigpiod -n 127.0.0.1
pi@raspberrypi:~ $ sudo systemctl restart rockpi-sata.service
to make it permanent at boot i changed pigpiod.services to at boot use 127.0.0.1
i located the file below and edited with nano
pi@raspberrypi:~ $ locate pigpiod.service
/etc/systemd/system/multi-user.target.wants/pigpiod.service
/lib/systemd/system/pigpiod.service
sudo nano /etc/systemd/system/multi-user.target.wants/pigpiod.service
[Unit]
Description=Daemon required to control GPIO pins via pigpio
[Service]
ExecStart=/usr/bin/pigpiod -l
ExecStop=/bin/systemctl kill pigpiod
Type=forking
[Install]
WantedBy=multi-user.target
to
[Unit]
Description=Daemon required to control GPIO pins via pigpio
[Service]
ExecStart=/usr/bin/pigpiod -l -n 127.0.0.1
ExecStop=/bin/systemctl kill pigpiod
Type=forking
[Install]
WantedBy=multi-user.target
i then reboot
with sudo reboot
this may work for you @orionzrh thank you your post made me look in the correct place to get this working.