Article View: comp.sys.next.misc
Article #4926Re: Reading data from serial ports
From: andrew
Date: Sun, 10 Jan 1993 21:46
Date: Sun, 10 Jan 1993 21:46
27 lines
1502 bytes
1502 bytes
In article <1if20rINNfjn@menudo.uh.edu> sears@uh.edu writes: > >Is there a way to read data in from the serial ports? We have tried >something to the effect of > >cat /dev/ttya | od -c > >but we are not getting any results. We need to grab all data comming in >via either serial port and the data is 8-bit (binary, thus the need to >pipe to od). Can anyone tell me what we are doing wrong? Which of the >ttys would be best to use (ttya, ttyda, ttydfa, ttydfa)? The best way would probably be to get one of the serial port objects. To read the data from the port you basically send a readData: message to the object and pass it a buffer... BenaTong has an object called SerialSolutions. I think it's $50, and it looks easy to use (I have only seen the API - I have not used it). It's probably worth checking it out. andrew -- andrew@cubetech.com | "We cannot dwell in the time that is to come, Andrew Loewenstern | lest we lose our now for a phantom of our Cube Technologies, Inc. | own design." - Erendis 0000000701B61D1ADF0DFC9C16185CEA055200000007EB4A9FEB1922065D471A89E905B5
Technical Details
Message-ID:
<1993Jan10.214647.17818@cubetech.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!psinntp!cubetech.com!imladris!andrewReferences:
<1if20rINNfjn@menudo.uh.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.misc,comp.sys.next.hardware Path: arc1-ca.pugleaf.net!sparky!uunet!psinntp!cubetech.com!imladris!andrew From: andrew@cubetech.com Subject: Re: Reading data from serial ports Message-ID: <1993Jan10.214647.17818@cubetech.com> Organization: Cube Technologies, Inc. References: <1if20rINNfjn@menudo.uh.edu> Date: Sun, 10 Jan 1993 21:46:47 GMT Lines: 27