Mug schrieb:
On Aug 30, 8:58 pm, "Diez B. Roggisch" wrote:
Mug schrieb:
hello, i'm new in python, i used to program in C,
i have a small problem, i tryed to do some serial port things
manipulation
with python.
i have something like:
import sys,termios
fd = sys.stdin.fileno()
term_conf=termios
On Aug 30, 4:59 pm, Mug wrote:
(snip)
> is there a fonction like "memset" or "bzero" in python?
Not that i know of ;). Try this link for a coverage of the Python
built-in functions. You cannot write quality Python code without
them.
http://docs.python.org/3.1/library/functions.html
What you refe
On 2009-08-31, Grant Edwards wrote:
> If you want a configuration that's all zeros, why bother
> calling tcgetattr() at all? Just set the configuration to
> zeros:
>
> term_conf = [0,0,0,0,0,0]
Oops, I forgot about cc. That should be:
term_conf = [0,0,0,0,0,0,['\x00']*32]
That's why it's e
On 2009-08-30, Mug wrote:
> hello, i'm new in python, i used to program in C, i have a
> small problem, i tryed to do some serial port things
You're probably better off just using pyserial:
http://pyserial.sourceforge.net/
If you really want to muck about with termios stuff, you can
look at
On Aug 30, 8:58 pm, "Diez B. Roggisch" wrote:
> Mug schrieb:
>
> > hello, i'm new in python, i used to program in C,
> > i have a small problem, i tryed to do some serial port things
> > manipulation
> > with python.
> > i have something like:
>
> > import sys,termios
>
> > fd = sys.stdin.fileno()
Mug schrieb:
hello, i'm new in python, i used to program in C,
i have a small problem, i tryed to do some serial port things
manipulation
with python.
i have something like:
import sys,termios
fd = sys.stdin.fileno()
term_conf=termios.tcgetattr(fd);
now i want to modify the actuall values in t
hello, i'm new in python, i used to program in C,
i have a small problem, i tryed to do some serial port things
manipulation
with python.
i have something like:
import sys,termios
fd = sys.stdin.fileno()
term_conf=termios.tcgetattr(fd);
now i want to modify the actuall values in term_conf zone