Go to advanced search

by guym
Tue Sep 08, 2020 3:22 pm
Forum: Troubleshooting
Topic: pigpiod error message?
Replies: 13
Views: 443

Re: pigpiod error message?

Hmmm. If you have a GitHub account, then attach this file to issue #274 (Delay on reboot/shutdown) on the pigpio repository.
by guym
Sun Sep 06, 2020 12:53 am
Forum: Troubleshooting
Topic: pigpiod error message?
Replies: 13
Views: 443

Re: pigpiod error message?

At 17:59:59, the log shows the kill signal issued after a timeout - the problem we are troubleshooting. But there is nothing in the log earlier in time showing a 'sigterm' signal being issued to the process which is what pigpio daemon is trapping (along with sighup). A couple of requests: 1) Can you...
by guym
Fri Sep 04, 2020 3:35 pm
Forum: Troubleshooting
Topic: pigpiod error message?
Replies: 13
Views: 443

Re: pigpiod error message?

Please provide system log information to help troubleshoot: First, verify how your systemd journal is configured. By default it should be 'auto'. grep -i storage /etc/systemd/journald.conf #Storage=auto To get a persistent logging across reboot/shutdowns, you'll need to create this directory to save...
by guym
Sat Aug 29, 2020 3:27 pm
Forum: Troubleshooting
Topic: pigpiod error message?
Replies: 13
Views: 443

Re: pigpiod error message?

The pigpiod service file changed to Type=forking but did not specify the path to the main process id. Adding the following line to the [Service] section of that file (/etc/systemd/system/pigpiod.service) should fix the problem: [Service] PIDFile=pigpio.pid If you could provide feedback on this fix I...
by guym
Tue Jul 28, 2020 10:51 am
Forum: Python
Topic: Strange behaviour with pigpio and threading.Timer
Replies: 30
Views: 1154

Re: Strange behaviour with pigpio and threading.Timer

Affirmative.
by guym
Mon Jul 27, 2020 11:09 pm
Forum: Python
Topic: Strange behaviour with pigpio and threading.Timer
Replies: 30
Views: 1154

Re: Strange behaviour with pigpio and threading.Timer

Can you confirm the 20-100 millisecond delay that guym noted. I apologize for misrepresenting how pigpio handles watchdog (and other alerts). The alert thread is scheduled to run every msec, so on average a 0.5msec latency should be expected. This latency, however, is subject to OS preemption. Inst...
by guym
Sun Jul 26, 2020 3:14 pm
Forum: Python
Topic: Strange behaviour with pigpio and threading.Timer
Replies: 30
Views: 1154

Re: Strange behaviour with pigpio and threading.Timer

Just to provide some insight, the watchdog event is the result of post processing gpio events that have occurred 20-100msec earlier in time. Not sure what you are doing with it (watchdog event) but using it to react in real time may be too late.
by guym
Sun Jul 26, 2020 1:16 pm
Forum: Python
Topic: Strange behaviour with pigpio and threading.Timer
Replies: 30
Views: 1154

Re: Strange behaviour with pigpio and threading.Timer

You have a very tight wait loop in your tx.send that perhaps is blocking the receive events.

Code: Select all

while self.pi.wave_tx_busy():
            time.sleep(0.001)[/]
by guym
Fri Jul 03, 2020 3:13 pm
Forum: General discussion
Topic: PIGPIO longest wave?
Replies: 2
Views: 122

Re: PIGPIO longest wave?

This is a limitation of the socket maximum data length. You can create a longer wave by appending more pulses - ie, call wave_add_generic multiple times.
by guym
Wed Jun 24, 2020 9:55 pm
Forum: Troubleshooting
Topic: PIGPIO encoder script affected by other threads
Replies: 5
Views: 329

Re: PIGPIO encoder script affected by other threads

Try using a single global instance of 'pi=pigpio.pi()' shared amongst your threads. For more information see issue #357 on the pigpio github repo.
by guym
Fri Jun 14, 2019 6:26 pm
Forum: Automation, sensing and robotics
Topic: Sharing hardware controlled by pigpio daemon
Replies: 0
Views: 203

Sharing hardware controlled by pigpio daemon

I wish to share hardware attached to a rpi host running pigpiod among several remote clients. I know this is a bad idea in general as any client can clobber the values written to the gpio pins: Client A writes gpio17 high, client B writes gpio17 low. However, what I'd like to accomplish is sending a...

Go to advanced search