home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / next / misc / 23663 < prev    next >
Encoding:
Internet Message Format  |  1993-01-10  |  1.5 KB

  1. Xref: sparky comp.sys.next.misc:23663 comp.sys.next.hardware:3219
  2. Newsgroups: comp.sys.next.misc,comp.sys.next.hardware
  3. Path: sparky!uunet!psinntp!cubetech.com!imladris!andrew
  4. From: andrew@cubetech.com
  5. Subject: Re: Reading data from serial ports
  6. Message-ID: <1993Jan10.214647.17818@cubetech.com>
  7. Organization: Cube Technologies, Inc.
  8. References: <1if20rINNfjn@menudo.uh.edu>
  9. Date: Sun, 10 Jan 1993 21:46:47 GMT
  10. Lines: 27
  11.  
  12. In article <1if20rINNfjn@menudo.uh.edu> sears@uh.edu writes:
  13. >
  14. >Is there a way to read data in from the serial ports?  We have tried  
  15. >something to the effect of
  16. >
  17. >cat /dev/ttya | od -c
  18. >
  19. >but we are not getting any results.  We need to grab all data comming in  
  20. >via either serial port and the data is 8-bit (binary, thus the need to  
  21. >pipe to od).  Can anyone tell me what we are doing wrong? Which of the  
  22. >ttys would be best to use (ttya, ttyda, ttydfa, ttydfa)?
  23.  
  24. The best way would probably be to get one of the serial port objects.
  25. To read the data from the port you basically send a readData: message
  26. to the object and pass it a buffer...
  27.  
  28. BenaTong has an object called SerialSolutions.  I think it's $50, and
  29. it looks easy to use (I have only seen the API - I have not used it).
  30. It's probably worth checking it out.
  31.  
  32.  
  33. andrew
  34. -- 
  35. andrew@cubetech.com      | "We cannot dwell in the time that is to come,
  36. Andrew Loewenstern       |  lest we lose our now for a phantom of our
  37. Cube Technologies, Inc.  |  own design." - Erendis
  38. 0000000701B61D1ADF0DFC9C16185CEA055200000007EB4A9FEB1922065D471A89E905B5
  39.