RS-232

Bassoukos Tassos abas at aix.meng.auth.gr
Mon Jul 26 20:03:41 EEST 1999


(Ayth h apanthsh einai gia to linux mono)
man 4 ttys; man 3 termios; man 1 stty;

Gia na diabaseis/grapseis me ta trexonta settings ths 8yras, aplws kaneis
ena open("/dev/ttyS2",O_RDWR|O_NOCTTY); (h fopen, alla den 8a sou to
proteina gia logous buffering).

Ean 8eleis na setareis apo to programma sou ta settings ths 8yras,
xrhsimopoihse ta termios(3). Moreis omws kai na to kaneis kai me thn stty
prin 3ekinisei to programma sou, opote apofeygeis ligo kwdika px:

stty speed 9600 raw </dev/ttyS1;

man stty; gia perisotera. Oh, 8a sou xreiastei to stty -a;.

Tassos
PS: ioctl()'s 8a xrhsimopoieis sto linux, oxi INT's.
-- 
Bassoukos Tassos   +30 31 996011 / +30 93 7109954
 Computer Shaman and Informatics Thaumaturge

--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
Ta archives tis listas einai sto http://lists.hellug.gr/archives
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users at hellug.gr
====================================================================



More information about the Linux-greek-users mailing list