Re: pySerial in a daemon process

2007-08-27 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], paul wrote: Before I had posted this question first thing I did was to look at / dev/ttyS0, and indeed the group is dialout (gid=20)... What are the full protections on the serial port? That is, can you post the output of ls -l /dev/ttyS0 please? --

pySerial in a daemon process

2007-08-26 Thread paul
I am writing a daemon process that reads data from the serial port / dev/ttyS0. I am using pyserial the method for setting up a daemon described in Chris' Python Page (http://homepage.hispeed.ch/py430/ python/) on an Ubuntu linux pc. Everything works great EXCEPT... in the daemon script, there

Re: pySerial in a daemon process

2007-08-26 Thread Bjoern Schliessmann
paul wrote: If I put these back in and try to run the daemon, the script fails when I try to connect to the serial port, with this error: serial.serialutil.SerialException: Could not open port: [Errno 13] Permission denied: '/dev/ttyS0' Did you check the permissions on this file? Often you

Re: pySerial in a daemon process

2007-08-26 Thread paul
On Aug 26, 5:20 pm, Bjoern Schliessmann usenet- [EMAIL PROTECTED] wrote: paul wrote: If I put these back in and try to run the daemon, the script fails when I try to connect to the serial port, with this error: serial.serialutil.SerialException: Could not open port: [Errno 13] Permission