Re: [Tutor] question about serial coms

2005-11-15 Thread Python
The device at the far end of the serial connection is echoing what you write back to you. This is a convenience for someone typing at a terminal, but a nuisance when you are programming. The easier way out is to turn echoing off at the far device. Failing that, you will want to provide a copy of

Re: [Tutor] question about serial coms

2005-11-14 Thread Bennett, Joe
I think so, what I'm doing is opening a text file, reading line 1 and writing that text to the serial port. Then read line 2 and so on... So it mimics a string rather than a list or dictionary. But I would think this would give you a similiar result. I can try it to confirm. Here is the entire c

Re: [Tutor] question about serial coms

2005-11-14 Thread Hans Dushanthakumar
=== Cheers Hans -Original Message- From: nephish [mailto:[EMAIL PROTECTED] Sent: Tuesday, 15 November 2005 2:10 p.m. To: [EMAIL PROTECTED] Cc: Hans Dushanthakumar; tutor Subject: Re: [Tutor] question about serial coms oh yeah, i will need this too! sk On Mon,

Re: [Tutor] question about serial coms

2005-11-14 Thread nephish
gt; > http://docs.python.org/lib/module-threading.html > > > & > > > http://docs.python.org/lib/lock-objects.html > > > > > > Cheers > > > Hans > > > > > > > > > -Original Message- > > > From: nephish [

Re: [Tutor] question about serial coms

2005-11-14 Thread Bennett, Joe
l > > & > > http://docs.python.org/lib/lock-objects.html > > > > Cheers > > Hans > > > > > > -Original Message- > > From: nephish [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, 15 November 2005 11:23 a.m. > > To: Hans D

Re: [Tutor] question about serial coms

2005-11-14 Thread nephish
b/lock-objects.html > > Cheers > Hans > > > -Original Message- > From: nephish [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 15 November 2005 11:23 a.m. > To: Hans Dushanthakumar > Cc: Hugo González Monteverde; tutor > Subject: RE: [Tutor] question about seria

Re: [Tutor] question about serial coms

2005-11-14 Thread Hans Dushanthakumar
r Cc: Hugo González Monteverde; tutor Subject: RE: [Tutor] question about serial coms ok, lock is something you wrote yourself ? i can't find it in the docs. However, i think i can essentially build the same thing. the serial module i use is pyserial. pyserial.sourceforge.net. the docs are

Re: [Tutor] question about serial coms

2005-11-14 Thread nephish
vember 2005 10:47 a.m. > To: Hans Dushanthakumar > Cc: Hugo González Monteverde; tutor > Subject: RE: [Tutor] question about serial coms > > well thats encouraging, did you have to do anything special to prevent an > error when trying to read or write at the same time ? > > thanks

Re: [Tutor] question about serial coms

2005-11-14 Thread Hans Dushanthakumar
port Release lock Cheers Hans -Original Message- From: nephish [mailto:[EMAIL PROTECTED] Sent: Tuesday, 15 November 2005 10:47 a.m. To: Hans Dushanthakumar Cc: Hugo González Monteverde; tutor Subject: RE: [Tutor] question about serial coms well thats encouraging, did you have to do

Re: [Tutor] question about serial coms

2005-11-14 Thread nephish
rt and another one to handle the writes. > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hugo González > Monteverde > Sent: Tuesday, 15 November 2005 7:36 a.m. > To: nephish > Cc: tutor > Subject: Re: [Tutor] question abo

Re: [Tutor] question about serial coms

2005-11-14 Thread Hans Dushanthakumar
: tutor Subject: Re: [Tutor] question about serial coms Hi Nephish, Are you using pyserial or rolling your own? Normally you can write and read to the /dev/ttySXX file at the same time; since they're special files, not ordinary files, the driver handles that. Handling both writing and readi

Re: [Tutor] question about serial coms

2005-11-14 Thread nephish
Yeah, i am using pyserial, i think, in debian its called python serial and i use import serial to get things going. Really easy, just wanted to know about this stuff before i start scrambling this like so many eggs. i will not be using two different scripts, but likely two threads in the same scr

Re: [Tutor] question about serial coms

2005-11-14 Thread Hugo González Monteverde
Hi Nephish, Are you using pyserial or rolling your own? Normally you can write and read to the /dev/ttySXX file at the same time; since they're special files, not ordinary files, the driver handles that. Handling both writing and reading in your program's flow control is a wholly different mat

[Tutor] question about serial coms

2005-11-14 Thread nephish
Hey there, i am developing on a linux computer with the serial module. Now, i already am able to recieve info from a serial RS232 device and process everything ok. What i need to do now is write to the serial device, but i also need to be able to not interrupt the script that is reading fro