Thread /dev/ttySx lesen (4 answers)
Opened by willi at 2010-02-15 22:16

willi
 2010-02-15 22:37
#133023 #133023
User since
2010-02-14
7 Artikel
BenutzerIn
[default_avatar]
DANKE aber das mache ich schon mit:

Code (perl): (dl )
1
2
3
4
5
6
7
8
9
$mo = POSIX::Termios->new;  

$mo->setiflag(0 | IXON | IXOFF);        
$mo->setoflag(0);
$mo->setlflag(0);
$mo->setcc(VMIN, 3);                             # N3; = 3 Zeichen
$mo->setcc(VTIME, 0);
$mo->setcflag(CREAD | CS8 | B9600);
$mo->setattr(fileno(Serial), TCSANOW);

View full thread /dev/ttySx lesen