home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / ultrix / 9169 < prev    next >
Encoding:
Text File  |  1993-01-05  |  1.2 KB  |  40 lines

  1. Newsgroups: comp.unix.ultrix
  2. Path: sparky!uunet!caen!nic.umass.edu!umassd.edu!jdoyle
  3. From: jdoyle@phy.umassd.edu (Jim Doyle)
  4. Subject: Re: modem at 38400 Baud on DECstation5000/200?
  5. Message-ID: <C0CynI.J9H@umassd.edu>
  6. Keywords: serial line modem baudrate
  7. Sender: usenet@umassd.edu (USENET News System)
  8. Organization: University of Massachusetts Dartmouth
  9. References: <rosenth.726186590@batman>
  10. Date: Tue, 5 Jan 1993 01:54:53 GMT
  11. Lines: 27
  12.  
  13. In <rosenth.726186590@batman> rosenth@vision.ethz.ch (Lukas Rosenthaler) writes:
  14.  
  15. >Hi,
  16. >I try to get a high speed modem, attached to a DECstation5000/200 running
  17. >Ultrix 4.2A to work at speeds of 38400 baud. The problem is that neither
  18. >kermit (C-kermit) nor "tip" seem to work at this baud rate. I understand that
  19.  
  20. Yes, the fix is rather easy... 
  21.  
  22. Read the man page for tty(4) for more info ;
  23. basically, find where in kermit the baudrate is set and use this 
  24. blurb as a template:
  25.  
  26. #include <sgtty.h>
  27. struct sgttyb *mode;
  28.  
  29. ioctl(ttydev,TIOCGETN,mode)    /* get current mode  ; change speed */
  30.  
  31. mode.sg_ispeed = 15;    /* input speed : 15=EXTB (38.4K)    */
  32. mode.sg_ospeed = 15;    /* output speed                */
  33.  
  34. ioctl(ttydev,TIOCSETN,mode)    /* set speed */
  35.  
  36. Enjoy,
  37.  
  38. ...... J.D.
  39.  
  40.