We help IT Professionals succeed at work.

Capturing data through a serial port

quamper
quamper asked
on
3,887 Views
Last Modified: 2008-01-09
We have a Lucent Definity phone system that has a DSU unit attached to an okidata dot matrix printer at the moment (through a serial connection). What this does is anytime a phone call is made it prints a line with the extension it came from the number dialed a few other bits of info. We would like to setup a machine running linux to handle the info it is recieving instead of the printer. So my question is are there any programs (preferrably linux) available out there to capture data coming into the serial port and add it to some sort of text file?
Comment
Watch Question

Commented:
A quick search on freshmeat turned these up.  I've never used either of them, but maybe they'll help you get pointed in the right direction...

------------------------------------------------------------------------
http://freshmeat.net/appindex/2000/06/25/961975783.html

ComScan
   god_of_pain <silicontao_roy at technologist.com> - June 25th 2000, 19:29 EST

   ComScan reads input from a serial port and shows it as ASCII and hex. It can also log the input to files. The package  includes a serial port C++ object to simplify the use of serial port programming in Linux.

------------------------------------------------------------------------
http://freshmeat.net/appindex/1999/09/28/938505706.html

Linux Serial Sniffer
   SLUGer <gmkelly at zip.com.au> - September 28th 1999, 04:01 EST

   The Linux Serial Sniffer allows you to sniff serial data up to 460Kbs via a Comtrol RocketPort or to 115Kbs using the
   standard ttyS0 and ttyS1 ports. Sniffed output can be captured to disk or displayed directly on screen. A user filter is
   included to assist specific customisation. The Linux Serial Sniffer can selectively operate in either a "ghost mode"
   where there is no data flow time impediments, or via a "capture and forward mode", where the user can flexibily
   intercept and extend the data stream to suit from either direction.

------------------------------------------------------------------------
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Thanks a bunch dj segfault.. i had done a quick scan at freshmeat and had turned up a few things but nothing like what I was looking for... thats a big help!
examine, it looks like we both had the same idea at the same time WRT freshmeat.  Funny how that works.  Thanks, Quamper

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.