From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,dc8c06886b452f5 X-Google-Attributes: gidfee84,public X-Google-Thread: 1164f8,dc8c06886b452f5 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1995-02-23 02:01:59 PST Path: nntp.gmd.de!stern.fokus.gmd.de!ceres.fokus.gmd.de!zib-berlin.de!uni-duisburg.de!RRZ.Uni-Koeln.DE!news.dfn.de!scsing.switch.ch!news.rediris.es!news.uoregon.edu!vixen.cso.uiuc.edu!howland.reston.ans.net!pipex!sunic!news.funet.fi!news.cc.tut.fi!news.cc.tut.fi!sjm From: sjm@koti.ton.tut.fi (Sami J. M{kinen) Newsgroups: comp.sys.dec,comp.unix.osf.osf1 Subject: Re: DEC AXP, OSF1 3.0 and modems @38400bps -> problems Followup-To: comp.sys.dec,comp.unix.osf.osf1 Date: 23 Feb 1995 10:01:59 GMT Organization: Tampereen seudun opiskelija-asuntos��ti� TOAS Distribution: world Message-ID: References: <3idfh1$91o@pirates.cs.swt.edu> NNTP-Posting-Host: koti.ton.tut.fi In-reply-to: peng@pirates.cs.swt.edu's message of 21 Feb 1995 19:39:13 GMT Xref: nntp.gmd.de comp.sys.dec:21973 comp.unix.osf.osf1:8032 In article <3idfh1$91o@pirates.cs.swt.edu> peng@pirates.cs.swt.edu (Wuxu Peng) writes: > Are you sure that your modem is set right? I have a straight flat calbe between the Alpha and the modem. I have also setup RTS/CTS flow control on at the modem. Actually, I managed to get a bearable connection when I enable XON/XOFF between Alphas and modems, between modems (rarely needed) and issue stty ixon ixoff on Alpha shell. I could even transfer some files with zmodem. I think xon/xoff sucks, but this the best I could manage to set up. I even tried to set up RTS/CTS flags on the tty with my own tiny C program, since the OSF stty knows absolutely nothing about RTS/CTS. I wonder why? Anyway, here's my program: --- 8< --- /* * myrtscts.c * * This source code is in public domain. * You may do whatever you want with it. */ #include #include void usage(const char *progname) { fprintf(stderr, "Usage: %s [on|off]\n", progname); } int main(int argc, char *argv[]) { struct termios tp; memset(&tp, 0, sizeof(struct termios)); if (tcgetattr(0, &tp)) { perror("tcgetattr"); exit(1); } switch(argc) { case 1: fprintf(stderr, "RTS/CTS %s\n", tp.c_cflag & CRTSCTS ? "on" : "off"); exit(0); case 2: if (!strcmp(argv[1], "on")) tp.c_cflag |= CRTSCTS; else if (!strcmp(argv[1], "off")) tp.c_cflag &= ~CRTSCTS; else { usage(argv[0]); exit(-1); } if (tcsetattr(0, TCSANOW, &tp)) { perror("tcsetattr"); exit(1); } exit(0); default: usage(argv[0]); exit(-1); } return 0; } --- 8< --- -- // sjm "I would rather spend 10 hours reading someone else's source code than 10 minutes listening to Musak waiting for technical support which isn't." - Dr. G.W. Wettstein