<div dir="ltr"><div>In that case, your problem is likely to be with the DSR pin handling.</div><div>Experiment with dsrdtr flow control and with toggling the dsr pin manually.<br></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 20 Sep 2019 at 14:40, Henrik Morsing via GLLUG <<a href="mailto:gllug@mailman.lug.org.uk">gllug@mailman.lug.org.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, Sep 20, 2019 at 01:23:44PM +0100, Adrian McMenamin via GLLUG wrote:<br>
>Did permissions change on your script or on the python exec on an update?<br>
>Sorry, just a guess but if an ordinary user can see what's crossing the<br>
>port but your code can't that would seem like something to check.<br>
<br>
Hi,<br>
<br>
Munin runs as root:<br>
<br>
root 1386 0.0 0.0 24212 3560 ? Ss Aug31 1:26 /usr/bin/perl -wT /usr/sbin/munin-node<br>
<br>
Device is set as per recommendation:<br>
<br>
root@albert:/dev# ls -l ttyACM0<br>
crw-rw---- 1 root dialout 166, 0 Sep 20 14:32 ttyACM0<br>
<br>
Python script as follows:<br>
<br>
root@albert:/dev# ls -l /etc/munin/plugins/mvhr_temp<br>
lrwxrwxrwx 1 root root 41 Dec 23 2018 /etc/munin/plugins/mvhr_temp -> /usr/local/munin/lib/plugins/mvhr_temp.py<br>
root@albert:/dev# ls -l /usr/local/munin/lib/plugins/mvhr_temp.py<br>
-rwxr-xr-x 1 root staff 1085 Sep 20 11:51 /usr/local/munin/lib/plugins/mvhr_temp.py<br>
<br>
And python:<br>
<br>
root@albert:/dev# ls -l $(which python2.7)<br>
-rwxr-xr-x 1 root root 3685224 Apr 6 02:42 /usr/bin/python2.7<br>
<br>
I run tail as root, haven't tried anything else. And the python/munin module can open the device, it just gets no output unless tail reads it as well.<br>
<br>
TBH, Arduinos reboot when something opens the port, and that is how my Arduino code works. <br>
<br>
I think the problem is not so much that python/munin can't read the output but that the Arduino doesn't output anything because it no longer gets the signal to reset when python opens it.<br>
<br>
Thanks<br>
<br>
<br>
-- <br>
GLLUG mailing list<br>
<a href="mailto:GLLUG@mailman.lug.org.uk" target="_blank">GLLUG@mailman.lug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/gllug" rel="noreferrer" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/gllug</a></blockquote></div>