Notifications
Clear all

[Solved] PI Zero 2W / Witty Pi 4 L3V7 / Kali Linux

5 Posts
2 Users
0 Likes
333 Views
 spel
(@spel)
Posts: 3
Active Member
Topic starter
 

Hello,

I am happy to have found a product like the Witty Pi 4 L3V7 including RTC and BMS / UPS. I also know that support is generally only provided for Raspian.

I use Kali Linux (Linux kali-raspberry-pi-zero-2-w 5.15.44-Re4son-v7+ #1 SMP Debian kali-pi (2022-07-03) armv7l) and need help with the necessary adjustments.

Under ./wittyPi.sh I get the error:
/home/kali/wittypi/gpio-util.sh: line 231: raspi-gpio: command not found

I adapted the uwi.conf for the web server to the user name kali, but the web server does not display any values. In the CLI I see the voltage values.

I would be grateful for any help!

 
Posted : 14/10/2023 10:00 am
(@admin)
Posts: 268
Member Admin
 

The gpio-util.sh is the substitute of the "gpio" utility from the wringPi library. If you can manage to install wiringPi on Kali Linux, you can comment out the reference of gpio-util.sh and let the software to directly use the real wiringPi.

https://github.com/uugear/Witty-Pi-4/blob/main/Software/wittypi/daemon.sh#L14

https://github.com/uugear/Witty-Pi-4/blob/main/Software/wittypi/wittyPi.sh#L23

Otherwise, you may have to install the raspi-gpio on Kali Linux to make the gpio-util.sh work.

Maybe you can try copying the executable from Raspberry Pi OS to Kali Linux and see if it works. You can also find the source code of raspi-gpio here.

 

 

 
Posted : 16/10/2023 3:55 pm
 spel
(@spel)
Posts: 3
Active Member
Topic starter
 

Hello, I couldn't get it to work. The goal was to use the internal WiFi interface of the PI Zero W. I've said goodbye to that now.

But thanks for the detailed help. Now the next step is to use a GPS/IoT module and plug it in additionally.

The SIM7000E from Waveshare ( https://www.waveshare.com/sim7000e-nb-iot-hat.htm) is on the shortlist.

If I read it correctly (Manual page 6, Waveshare, https://www.waveshare.com/w/upload/7/76/SIM7000E-NB-IoT-HAT-Manual-EN.pdf), only P4 (GPIO4 ) used for control power supply via pin.
I'm not entirely sure about GPIO14 TXD whether there is a problem with the Witty. I suspect that the level is correspondingly high/low depending on the operating status of the SIM7000E module...

I know, different hardware, but maybe you can give an assessment.

Thank you and
Greetings

 
Posted : 08/03/2024 8:55 pm
(@admin)
Posts: 268
Member Admin
 

I want to remind you that Witty Pi also uses GPIO4 as power switch signal, and you will need to modify your Witty Pi 4's hardware and software if you want to use them together.

Don't know if that module will (too) strongly pull up TXD. If it does and TXD can't go back to LOW after shutdown, then Witty Pi can't cut the power.

 
Posted : 09/03/2024 8:56 am
 spel
(@spel)
Posts: 3
Active Member
Topic starter
 

Thank you for the fast reaction!

I'll probably use a USB device or a Pi 4 etc. here.

Your products are very good.

 

 
Posted : 09/03/2024 9:32 am
Join Waitlist We will inform you when the product arrives in stock. Please leave your valid email address below.