<div><div dir="auto">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.</div></div><div dir="auto">Best,</div><div dir="auto">Popesz</div><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 18 Feb 2019 at 10:50, michael strohmann <<a href="mailto:itsnotfair9@gmail.com">itsnotfair9@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">wow, that looks interesting!<br>
so which object do you use to read out the gpio?<br>
would you be so kind as to share your gpioReading-demo.pd ?<br>
thanks!<br>
<br>
<br>
> On 18 Feb 2019, at 10:54, Peter P. <<a href="mailto:peterparker@fastmail.com" target="_blank">peterparker@fastmail.com</a>> wrote:<br>
> <br>
> * michael strohmann <<a href="mailto:itsnotfair9@gmail.com" target="_blank">itsnotfair9@gmail.com</a>> [2019-02-18 10:47]:<br>
>> <br>
>>> On 18 Feb 2019, at 10:36, Peter P. <<a href="mailto:peterparker@fastmail.com" target="_blank">peterparker@fastmail.com</a>> wrote:<br>
>>> <br>
>>> * michael strohmann <<a href="mailto:itsnotfair9@gmail.com" target="_blank">itsnotfair9@gmail.com</a>> [2019-02-18 10:22]:<br>
>>>> good morning, <br>
>>> Guten Morgen!<br>
>>> <br>
>>> I know you didn't want this answer, but, is there a chance you can<br>
>>> figure out why you are getting the watchdog message in Pd in the first<br>
>>> hand place?<br>
>> <br>
>> yes, i think/hope i found the reason (network related) but still would be happy to have a safetynet.<br>
>> can only access wiringPI_gpio in sudo mode (raspberry…)<br>
> <br>
> On an RPi 1 I managed to read the gpio pins as normal user by executing<br>
> the following script, which starts pd at the end.<br>
> <br>
>       #!/bin/bash<br>
> <br>
>       # set the TX RX pins to become inputs as well<br>
>       gpio -g mode 14 in<br>
>       gpio -g mode 15 in<br>
> <br>
>       # set the following pins to low by default<br>
>       gpio -g mode 4 down<br>
>       gpio -g mode 5 down<br>
>       gpio -g mode 0 down<br>
>       gpio -g mode 6 down<br>
> <br>
>       gpio -g mode 15 down<br>
>       gpio -g mode 8 down<br>
>       gpio -g mode 7 down<br>
>       gpio -g mode 1 down<br>
> <br>
>       # export the pins to be read by a normal user<br>
>       # This numbering is already by BCM_GPIO number<br>
>       gpio export 2 in<br>
>       gpio export 3 in<br>
>       gpio export 4 in<br>
>       gpio export 17 in<br>
>       gpio export 27 in<br>
>       gpio export 22 in<br>
>       gpio export 10 in<br>
>       gpio export 9 in<br>
>       gpio export 11 in<br>
>       gpio export 0 in<br>
>       gpio export 5 in<br>
>       gpio export 6 in<br>
>       gpio export 13 in<br>
>       gpio export 19 in<br>
>       gpio export 26 in<br>
> <br>
>       gpio export 14 in<br>
>       gpio export 15 in<br>
>       gpio export 18 in<br>
>       gpio export 23 in<br>
>       gpio export 24 in<br>
>       gpio export 25 in<br>
>       gpio export 8 in<br>
>       gpio export 7 in<br>
>       gpio export 1 in<br>
>       gpio export 12 in<br>
>       gpio export 16 in<br>
>       gpio export 20 in<br>
>       gpio export 21 in<br>
> <br>
>       pd -rt gpioReading-demo.pd<br>
> <br>
> <br>
> <br>
> _______________________________________________<br>
> <a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
> UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div></div>