Go to advanced search

by thagrol
Thu Nov 26, 2020 6:52 pm
Forum: Raspberry Pi 400
Topic: Using ASUS MB169+ USB Monitor with pi400
Replies: 10
Views: 262

Re: Using ASUS MB169+ USB Monitor with pi400

Looks like you need to find and install the headers for your current kernel.

https://www.raspberrypi.org/documentati ... headers.md
by thagrol
Thu Nov 26, 2020 1:17 pm
Forum: Networking and servers
Topic: AOE boot raspberry pi
Replies: 3
Views: 133

Re: AOE boot raspberry pi

I've not done this so treat with caution.

I don't believe that AOE (ATA over Ethernet?) is supported by the firmware (4B only), bootcode.bin (and other boot files. Other Pi mdoels), or the default kernel.

That means you'll need a custom kernel and an initramfs on an SD card.
by thagrol
Thu Nov 26, 2020 1:12 pm
Forum: Compute Module
Topic: CM4 SSD Boot
Replies: 22
Views: 599

Re: CM4 SSD Boot

I suspect it won't be possible. New firmware would be needed that included drivers for the many different SATA?SAS controller chipsets available.

Then you'd need a custom kernel with the relevant flags enabled. SATA/SAS isn't supported in the default kernel.
by thagrol
Thu Nov 26, 2020 1:09 pm
Forum: Troubleshooting
Topic: Crontab not running ImageJ
Replies: 7
Views: 141

Re: Crontab not running ImageJ

AFAIK adding "PATH=" to crontab will do nothing except, maybe, cause cron to throw an error. As with any debuging exercise the first thing to do is find out why it's failing. Change yor crontab entry to: 0 * * * * sh /home/pi/auto_cf_imaging.sh >>/tmp/auto_cf_imaging.log 2>&1 Let it run at least onc...
by thagrol
Thu Nov 26, 2020 12:47 pm
Forum: Python
Topic: GPIOZERO button control
Replies: 13
Views: 332

Re: GPIOZERO button control

Using this code I can view the python scripts running: ps -aef | grep python This has shown me that whenever I press a button that runs in a script, the script then exits and is no longer running. So I need to either make my code continue to run after the button has been pressed and the script run ...
by thagrol
Thu Nov 26, 2020 12:45 pm
Forum: Python
Topic: GPIOZERO button control
Replies: 13
Views: 332

Re: GPIOZERO button control

A while True: loop does not seem to work, the first time I press the button it starts, but if I stop feh and and press the button again this code has no effect. Something else is required. from gpiozero import Button import subprocess from subprocess import Popen from signal import pause while True...
by thagrol
Thu Nov 26, 2020 12:23 pm
Forum: Troubleshooting
Topic: Wiring a USB Hub to A Raspberry PI Zero 1.3
Replies: 8
Views: 260

Re: Wiring a USB Hub to A Raspberry PI Zero 1.3

Or is it simply that you haven't pulled the OTG ID signal to 0V, haven't configured Raspberry Pi OS so you don't have to ? IIRC there is no test point available for the ID pin so it's either solder to the micor UBS connector or do it in software via a droverlay parameter (see /boot/overlays/README)
by thagrol
Wed Nov 25, 2020 9:16 pm
Forum: Python
Topic: GPIOZERO button control
Replies: 13
Views: 332

Re: GPIOZERO button control

I tried to make Python kill feh by calling a bash script to do the job but that failed as well - possibly either because check_call will not understand os.system or my code is simply grammatically incorrect. from gpiozero import Button from subprocess import check_call from signal import pause impo...
by thagrol
Wed Nov 25, 2020 2:04 pm
Forum: Python
Topic: GPIOZERO button control
Replies: 13
Views: 332

Re: GPIOZERO button control

Thank you for the swift response. I used the subprocess check_call directly from the GPIOZERO recipe here: https://gpiozero.readthedocs.io/en/stable/recipes.html#shutdown-button , presumably it works for my reboot and shutdown commands as it no longer needs anything else to be running afterwards. I...
by thagrol
Wed Nov 25, 2020 1:26 pm
Forum: Troubleshooting
Topic: dtoverlay=dwc2 causing errors and kernel OOPS on Raspberry Pi 1 Model B (256 MB RAM)
Replies: 13
Views: 439

Re: dtoverlay=dwc2 causing errors and kernel OOPS on Raspberry Pi 1 Model B (256 MB RAM)

Far as I know there is no advantage to using the dwc2 driver over the default dwc one when any model Pi is operating as a USB host. In fact there was a time when it not recommended, performance as a host was worse with dwc2, IIRC it was an issue related to interrupts. When not using the Pi as a USB...
by thagrol
Wed Nov 25, 2020 1:21 pm
Forum: Beginners
Topic: TimeMachine NAS NVMe via 802.11ac speeds ?
Replies: 4
Views: 166

Re: TimeMachine NAS NVMe via 802.11ac speeds ?

Don't bother with NVMe. You won't see any performance advantage over a SATA SSD so the extra money is wasted. Why? Maximum performance on NVMe requires four PCIe lanes. The 4B has one. Then you have the overhead of converting interfaces from the NVMe's PCIe to USB 3... Put anyting else on the USB po...
by thagrol
Wed Nov 25, 2020 1:14 pm
Forum: General discussion
Topic: Turntable for camera
Replies: 6
Views: 230

Re: Turntable for camera

BMS Doug wrote:
Tue Nov 24, 2020 12:16 pm
Or replace the pan servo with one with a bigger travel range.
Sail winch servos can be good for that. Designed for model boats they have atleast one full rotation of travel, some have more. Not seen any in the submicro size though.
by thagrol
Wed Nov 25, 2020 1:01 pm
Forum: Troubleshooting
Topic: dtoverlay=dwc2 causing errors and kernel OOPS on Raspberry Pi 1 Model B (256 MB RAM)
Replies: 13
Views: 439

Re: dtoverlay=dwc2 causing errors and kernel OOPS on Raspberry Pi 1 Model B (256 MB RAM)

Far as I know there is no advantage to using the dwc2 driver over the default dwc one when any model Pi is operating as a USB host. In fact there was a time when it not recommended, performance as a host was worse with dwc2, IIRC it was an issue related to interrupts. When not using the Pi as a USB ...
by thagrol
Wed Nov 25, 2020 12:56 pm
Forum: Python
Topic: GPIOZERO button control
Replies: 13
Views: 332

Re: GPIOZERO button control

I suspect it's you use of subprocess.check_call that's causing the issues. subprocess.check_call won't return until the called process completes. That means your python code can do nothing until then, inculding handle button callbacks. This isn't restricted to subprocess.check_call, any long runnnin...
by thagrol
Wed Nov 25, 2020 12:00 am
Forum: HATs and other add-ons
Topic: RPI4 USB gadget with POE HAT
Replies: 5
Views: 209

Re: RPI4 USB gadget with POE HAT

It just struck me that there might be another possibility that is unrelated to cutting the +5v wire. Early 4Bs had a design fault on the USB connector that caused it to be incorrectly recognised by a host/PSU when using a fully wired USB 3 cable. The fault caused the host to refuse to send power to ...
by thagrol
Tue Nov 24, 2020 11:53 pm
Forum: Troubleshooting
Topic: Wiring a USB Hub to A Raspberry PI Zero 1.3
Replies: 8
Views: 260

Re: Wiring a USB Hub to A Raspberry PI Zero 1.3

Some info I think might be helpful is when I had the USB wired, the main microUSB port didn't work on the Pi. As soon as it was unwired, it did work. The SoC on a zero* has a single USB controller with a single USB port. You can access that through the data micro socket or the test points but not b...
by thagrol
Tue Nov 24, 2020 11:37 pm
Forum: HATs and other add-ons
Topic: RPI4 USB gadget with POE HAT
Replies: 5
Views: 209

Re: RPI4 USB gadget with POE HAT

Gillou68310 wrote:
Tue Nov 24, 2020 3:19 pm
Thanks for the replies!

I tried cutting the 5V in the usb cable but the gadget is not recognized anymore by my computer (works with my laptop but not with my desktop). I guess I'll have a similar issue with the USB/PWR Splitter from 8086.net?
Posibly but I really can't say for sure.
by thagrol
Tue Nov 24, 2020 12:57 am
Forum: Troubleshooting
Topic: WiFi Association woes and a fix
Replies: 2
Views: 157

Re: WiFi Association woes and a fix

Excuse the question, but how your PSU is doing? PSU was the first thing I checked. Problem persists with several, including the official one. It's also definitely specific to those chipsets. The onboard WiFi and an RT5370 based dongle are fine. I would set "debug" in dhcpcd.conf, and read /var/log/...
by thagrol
Tue Nov 24, 2020 12:39 am
Forum: Beginners
Topic: Send UPC digits from raspberry pi to POS
Replies: 12
Views: 429

Re: Send UPC digits from raspberry pi to POS

You need two completely separate USB channels - one working in Host mode and one working in Device mode. USB ports on a Hub, like the one on your Pi Zero with HAT, can only work in Host mode. The Pi 4 uses two USB controllers. One uses the 4 main USB ports which can only run in Host mode. The other...
by thagrol
Tue Nov 24, 2020 12:36 am
Forum: Beginners
Topic: Send UPC digits from raspberry pi to POS
Replies: 12
Views: 429

Re: Send UPC digits from raspberry pi to POS

You could possibly do it with two Zeroes connected together by GPIOs (or WiFi if using Pi Zero Ws). One Pi would be set to USB Host mode and have the scanner plugged in. The other Zero would be in Device mode and connect to the PC. You would need a program on each Pi to handle the processing. As su...
by thagrol
Tue Nov 24, 2020 12:35 am
Forum: Beginners
Topic: Send UPC digits from raspberry pi to POS
Replies: 12
Views: 429

Re: Send UPC digits from raspberry pi to POS

Follow up questions: 1)The repository seems it's for password generation? Can you please refer me to the file for "making USB C port to act as a HID keyboard"? Can I do this with pyusb or just pure Python? There's no direct file for that. The code was written for a zero. However it's the same USB c...
by thagrol
Mon Nov 23, 2020 11:49 am
Forum: Python
Topic: Help with Python3, Raspberry PI Zero, and GPIOZERO
Replies: 2
Views: 153

Re: Help with Python3, Raspberry PI Zero, and GPIOZERO

Without seeing your code it next to impossible to suggest anything. However... Are you using callbacks to handle your button presses? If so, do your called functions return quickly? It's my experience that with call backs you see no further events until the call back returns unless you run it in a s...
by thagrol
Mon Nov 23, 2020 11:18 am
Forum: Beginners
Topic: Send UPC digits from raspberry pi to POS
Replies: 12
Views: 429

Re: Send UPC digits from raspberry pi to POS

I think what you said as a problem is RP zero has one usb, right? Yes. Not sure if that's the problem! Actually I use "4 Port USB HUB HAT" which makes my RP zero with 4 usb, how about this? Do I still need RP 4 instead of making RP zero 4usb with this HAT? As rpdom said. Plus the presence of an on ...
by thagrol
Sun Nov 22, 2020 8:56 pm
Forum: Advanced users
Topic: Booting from an SSD that's connected to Type C USB
Replies: 3
Views: 244

Re: Booting from an SSD that's connected to Type C USB

My gut says that the firmware doesn't support it and only checks the other controller for bootable devices. Without firmware support, none of the files on the boot partition of that drive will get read. Solution? Have just /boot on the SD card and the root partition on your SSD with ana proprite cmd...
by thagrol
Sun Nov 22, 2020 8:30 pm
Forum: Troubleshooting
Topic: WiFi Association woes and a fix
Replies: 2
Views: 157

WiFi Association woes and a fix

In "Troubleshooting" rather than "Networking and servers" as this is more troubleshooting than otherwise but Mods feel free to move this if I'm wrong. Anyway.... Posting this in the hope it may help someone. Been having a lot of problems with four different WiFi dongles recently. Pi model: zero, A+,...

Go to advanced search