Re: Newbie: Python & Serial Port question

2005-12-01 Thread Grant Edwards
On 2005-12-01, Kinsley Turner <[EMAIL PROTECTED]> wrote: >> Am a python newbie. Does python have a native way to communicate with a >> PC serial port? I found that pyserial needs java. > You can't just open the serial port like a file? Yes. > Perhaps you'd need to set the correct port parameter

Re: Newbie: Python & Serial Port question

2005-12-01 Thread Grant Edwards
On 2005-11-30, Sanjay Arora <[EMAIL PROTECTED]> wrote: > Am a python newbie. Does python have a native way to communicate with a > PC serial port? Yes. Under Unix you can use os.open() os.read() os.write() and the termios module. > I found that pyserial needs java. No it doesn't. > I am using

Re: Newbie: Python & Serial Port question

2005-11-30 Thread Peter Hansen
Sanjay Arora wrote: > Am a python newbie. Does python have a native way to communicate with a > PC serial port? I found that pyserial needs java. This is not true unless you are using Jython. The code in serial/__init__.py does this: if os.name == 'nt': #sys.platform == 'win32': from seria

Re: Newbie: Python & Serial Port question

2005-11-30 Thread Kinsley Turner
[EMAIL PROTECTED] wrote on 30/11/2005 07:48:39 PM: > Am a python newbie. Does python have a native way to communicate with a > PC serial port? I found that pyserial needs java. > > I am using Linux..CentOS 4.2, to be exact, no java installed and > zilch/no/none/maybe never experience of java t

Newbie: Python & Serial Port question

2005-11-30 Thread Sanjay Arora
Am a python newbie. Does python have a native way to communicate with a PC serial port? I found that pyserial needs java. I am using Linux..CentOS 4.2, to be exact, no java installed and zilch/no/none/maybe never experience of java too. I have an application where I want to resd logs from the ser