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
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
===
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,
gt; > http://docs.python.org/lib/module-threading.html
> > > &
> > > http://docs.python.org/lib/lock-objects.html
> > >
> > > Cheers
> > > Hans
> > >
> > >
> > > -Original Message-
> > > From: nephish [
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
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
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
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
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
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
: 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
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
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
13 matches
Mail list logo