From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,ac278c123a5583a3,start X-Google-Attributes: gidfee84,public From: jeong wung kee Subject: HELP:Serial Program in Digital Alpha Date: 1998/02/18 Message-ID: <6cdaql$q62$1@news.kornet.nm.kr>#1/1 X-Deja-AN: 326040997 Organization: Korea Telecom User-Agent: tin/pre-1.4-980105 (UNIX) (SunOS/5.5.1 (sun4u)) Newsgroups: comp.unix.osf.osf1 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) ; }