Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* HELP:Serial Program in Digital Alpha
@ 1998-02-18  5:00 jeong wung kee
  0 siblings, 0 replies; only message in thread
From: jeong wung kee @ 1998-02-18  5:00 UTC (permalink / raw)





Hi,

I am trying to communicate with two computers through
serial port. One is PC with Linux the other is Digital Alpha.
I have barrowed basic structure from miniterm
and SERIAL-PROG-HOWTO.  Thing is the same code that works between
Linux<-> Linux with null cale, does not work between Linux and
Digital Alpha. I would appreciated if anyone enlighten me on this.
Here is what I did.

onions@doosan.com


 Serial Port Used
 --------------------------------
  Linux            Digital Alpha
 --------------------------------
  ttyS0             tty01
  crw-rw-rw-        crw-rw-rw-
 --------------------------------

 sNewsetting.c_cflag = LINE_SPEED| CRTSCTS | CS8 | CLOCAL | CREAD;
 sNewsetting.c_iflag = IGNPAR | CRNL ;
 sNewsetting.c_oflag = 0 ;
/*   sNewsetting.c_lflag = 0 ;   */
 sNewsetting.c_lflag = ECHOCTL  ;
 sNewsetting.c_cc[VMIN] = 1 ;
 sNewsetting.c_cc[VTIME]= 0 ;
 tcflush(fd, TCIFLUSH)   ;
 tcsetattr(fd, TCSANOW, &sNewsetting) ;

 tcgetattr(STDIN, &sNewstdio) ;
 sNewstdio.c_lflag &= ~(ICANON | ECHO) ;
 tcsetattr(STDIN, TCSANOW, &sNewstdio) ;

 fork() {
 ........  read(fd, &c, 1) ;
 }





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-02-18  5:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-02-18  5:00 HELP:Serial Program in Digital Alpha jeong wung kee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox