home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / biz / sco / general / 4924 < prev    next >
Encoding:
Internet Message Format  |  1993-01-01  |  2.4 KB

  1. Path: sparky!uunet!olivea!xenitec!news
  2. From: belal@sco.COM (Bela Lubkin)
  3. Newsgroups: biz.sco.general
  4. Subject: Re: Logitech C9 Serial Mouse at 9600 Baud
  5. Message-ID: <9212311731.aa13710@scoke.sco.COM>
  6. Date: 1 Jan 93 01:31:17 GMT
  7. Sender: news@xenitec.on.ca (xenitec.on.ca News Administrator)
  8. Organization: [resent by] The SCOGEN gateway and Propagation Society
  9. Lines: 41
  10. Resent-From: mmdf@xenitec.on.ca
  11. Submit-To: scogen@xenitec.on.ca
  12. Precedence: bulk
  13.  
  14. Kevin Smith wrote:
  15.  
  16. > It doesn't appear that the STTY and INIT strings are in any way
  17. > configured into the kernel.  For a serial mouse, then, this must be
  18. > handled by the event library calls (By the way, I seem to be missing
  19. > my ev_open() man pages).  The sequence would be, I believe, to apply
  20. > the STTY to the port then send the INIT string, after which,
  21. > everything should be ready to go.
  22.  
  23. I've included ev_open(S) below (compressed, uuencoded -- it has
  24. formatting which will not necessarily transport correctly over the
  25. Internet).
  26.  
  27. It is ev_open() which sends the INIT string to the mouse port.  The
  28. string itself is meaningful to the mouse, not the kernel.  The serial
  29. mouse init strings in /usr/lib/event/devices all have the form "*nNx",
  30. where "x" varies depending on the mouse mode to be used.  So presumably
  31. either "n" or "N" is the baud rate specifier.  I'd say, experiment with
  32. it.  With nothing using the serial mouse, do this:
  33.  
  34.   on multiscreen 1: sleep 10000 < /dev/tty1a    # keep the port open
  35.   on multiscreen 2: hd /dev/tty1a               # log mouse output
  36.   on multiscreen 3: stty 1200 < /dev/tty1a
  37.   on multiscreen 3: echo "*nNU\c" > /dev/tty1a  # init to default mode
  38.   <move mouse around, look at the hex output on screen 2, get an idea of
  39.    what it's supposed to look like when it's working correctly>
  40.   on multiscreen 3: stty 2400 < /dev/tty1a
  41.   on multiscreen 3: echo "*nOU\c" > /dev/tty1a  # init 2400??
  42.   <move mouse around: is it making sense on screen 2?>
  43.  
  44. I learned from the ev_open() source that the baud rate is set before the
  45. init string is sent.  So I'm guessing that the mouse automatically
  46. handles varying baud rates for the init string, which probably means the
  47. first two characters are just to get it in sync.  So the third is
  48. probably the baud rate, thus the guess of "*nOU" to initialize the same
  49. mouse mode at 2400bps.
  50.  
  51. Anyone with tech docs for a Logitech serial mouse should be able to
  52. answer this instantly...
  53.  
  54. >Bela<
  55.