[PD] watchdog -> force restart

Csaba Láng langcsaba at gmail.com
Mon Feb 18 12:46:01 CET 2019


Not sure if this is what you are looking for, but I use a python script to
run 2 pd instances connected via netsend. The main patch sends a ing every
second to the other patch, if the ping is stopped, the second kills the
main pd. What the script recognizes and restarts both pd patches.
Best,
Popesz
On Mon, 18 Feb 2019 at 10:50, michael strohmann <itsnotfair9 at gmail.com>
wrote:

> wow, that looks interesting!
> so which object do you use to read out the gpio?
> would you be so kind as to share your gpioReading-demo.pd ?
> thanks!
>
>
> > On 18 Feb 2019, at 10:54, Peter P. <peterparker at fastmail.com> wrote:
> >
> > * michael strohmann <itsnotfair9 at gmail.com> [2019-02-18 10:47]:
> >>
> >>> On 18 Feb 2019, at 10:36, Peter P. <peterparker at fastmail.com> wrote:
> >>>
> >>> * michael strohmann <itsnotfair9 at gmail.com> [2019-02-18 10:22]:
> >>>> good morning,
> >>> Guten Morgen!
> >>>
> >>> I know you didn't want this answer, but, is there a chance you can
> >>> figure out why you are getting the watchdog message in Pd in the first
> >>> hand place?
> >>
> >> yes, i think/hope i found the reason (network related) but still would
> be happy to have a safetynet.
> >> can only access wiringPI_gpio in sudo mode (raspberry…)
> >
> > On an RPi 1 I managed to read the gpio pins as normal user by executing
> > the following script, which starts pd at the end.
> >
> >       #!/bin/bash
> >
> >       # set the TX RX pins to become inputs as well
> >       gpio -g mode 14 in
> >       gpio -g mode 15 in
> >
> >       # set the following pins to low by default
> >       gpio -g mode 4 down
> >       gpio -g mode 5 down
> >       gpio -g mode 0 down
> >       gpio -g mode 6 down
> >
> >       gpio -g mode 15 down
> >       gpio -g mode 8 down
> >       gpio -g mode 7 down
> >       gpio -g mode 1 down
> >
> >       # export the pins to be read by a normal user
> >       # This numbering is already by BCM_GPIO number
> >       gpio export 2 in
> >       gpio export 3 in
> >       gpio export 4 in
> >       gpio export 17 in
> >       gpio export 27 in
> >       gpio export 22 in
> >       gpio export 10 in
> >       gpio export 9 in
> >       gpio export 11 in
> >       gpio export 0 in
> >       gpio export 5 in
> >       gpio export 6 in
> >       gpio export 13 in
> >       gpio export 19 in
> >       gpio export 26 in
> >
> >       gpio export 14 in
> >       gpio export 15 in
> >       gpio export 18 in
> >       gpio export 23 in
> >       gpio export 24 in
> >       gpio export 25 in
> >       gpio export 8 in
> >       gpio export 7 in
> >       gpio export 1 in
> >       gpio export 12 in
> >       gpio export 16 in
> >       gpio export 20 in
> >       gpio export 21 in
> >
> >       pd -rt gpioReading-demo.pd
> >
> >
> >
> > _______________________________________________
> > Pd-list at lists.iem.at mailing list
> > UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
>
>
>
>
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20190218/ec871769/attachment.html>


More information about the Pd-list mailing list