RS-232
Bassoukos Tassos
abas at aix.meng.auth.gr
Tue Jul 27 01:49:30 EEST 1999
[snip megalo mail]
[Ta grafw ayta 01:20, opote mporei na exw kanei la8h, plz dio8wste na ma8w
kai tiptis]
Kati paromoio eixa kanei prin apo ligo kairo,kai douleyei sxetika kala -
alla egw to egrapsa se perl...
Loipon, ean to programma pou exeis kanei gia to microcontroler sou einai
plhrws symbato me to RS-232, isws na mhn xreiastei kan programmatismos.
Mporeis na to kaneis na stelnei ta dedomena amesws molis anoi3ei thn
syndesh o ypologisths (me kati apo DTR nomizw) - aplws ena cat(1) 8a sou
kanei thn douleia, 8a sou balei oti er8ei apo thn seiriakh se ena arxeio.
An xreiastei amfidromh epikoinwnia, 8a anagasteis na grapseis ton diko sou
kwdika. Exe yp'opsin sou thn filosofia tou Unix: Ola Einai Ena Arxeio(tm).
Apo mia glwsa ypsilou epipedou aplws anoigeis to /dev/ttyS?[0][1], kai
diabazeis apo/grafeis se ayto, kai ola phgainoerxontai sthn seiriakh. Apo
thn C yparxei to termios(3) me to opoio ry8mizeis ta eidika
xarakthristika (taxythta, parity, stop bits etc), enw se pio pshles
glwsses yparxei kati antistoixo.
O datalogger aytos, 8a exei synexeia dipla tou ton ypologisth, h 8a
leitourgei ane3arthta (me mpataria isws)? Sthn prwth periptwsh, mporeis na
baleis katey8eian ton ypologisth na pairnei tis metrhseis.
Elpizw na boh8hsa.
Tassos
[0] sto directory /dev/ einai ta perissotera eikonika arxeia - seiriakes,
paralhles, sklhroi diskoi, floppy drives etc.
[1] ttyS? => ttyS0, ttyS1, ttyS2 ... einai ta eikonika arxeia twn
seiriakwn, ean baleis kapoia multiport serial card, 8a exeis para
polla ap'ayta....
--
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