Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: jeong wung kee <youyou@soback.kornet.nm.kr>
Subject: HELP:Serial Program in Digital Alpha
Date: 1998/02/18	[thread overview]
Message-ID: <6cdaql$q62$1@news.kornet.nm.kr> (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) ;
 }





                 reply	other threads:[~1998-02-18  5:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

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