Réponse acceptée !
je me sui aidé de
http://www.aurel32.net/elec/port_serie.php
merci a
SAKingdom
et de
http://www.aqra.ca/Port-serie-en-C-sous-Linux
http://www.aidoforum.com/forum/sujet-13957.html
http://www.pragmatux.net/viewtopic.php?p=2545&sid=27dde8df3a94ae0c7f7b99c0dcb24704
char* nomport;
int fd, n;
struct termios tio;
char c;
int rc;
nomport="/dev/ttyS0";
fd = open(nomport,O_WRONLY|O_NOCTTY);
tcgetattr(fd, &tio) ;
cfmakeraw(&tio) ;
cfsetspeed(&tio, B9600) ;
tcsetattr(fd, TCSAFLUSH, &tio);
rc=write(fd,"abcdef",6);
//rc=write(fd,"abcdef",nombre de caractaire);
je sui mintenent a la recherche une solution pour changer étas des sortie drt rts et pour finir le plus dur je pance txd