Koozali.org: home of the SME Server

Caputring data from serial port

Adam

Caputring data from serial port
« on: June 19, 2003, 07:08:00 AM »
I hoping someone may be able to help me with what I am sure is a really simple problem.
A bit of background - my office phone system allows you to connect a serial line printer to it which will then print every inbound and outbound call and the station used. Instead of connecting this to an old serial line printer I have simply plugged it into the SME server's serial port as it is nearby. Now my question is - how do I capture all data from that serial port and place it into a file, ie the reverse of doing a #echo 'Hello World' > ttyS0. Furthermore I would want to set this up permantly so that each time the server boots it starts automatically.

cheers,

adam

Nathan Fowler

Re: Caputring data from serial port
« Reply #1 on: June 25, 2003, 11:16:13 PM »
I've done something similar to this, are you talking about the XIOX call reporting system?  I wrote a file in Basic to do this, I could easily port it over to C/C++ if you wish.