[LCP]Transforming a linux machine into a breakout box (Serial programming related question)

Andrew Weaver Andrew.Weaver at tecnomen.fi
Wed Sep 3 21:23:02 UTC 2003


On Wednesday, September 03, 2003 3:42 PM, James Attard
[SMTP:james_attard at ieee.org] wrote:
> (1) I didn't ever imagine that my first question in this mailing list to
> be such a big bait for flamers. (No offence, but can the flamers please do
> me a favour and shut up?)
> 
> (2) I don't want to pay money for something which is
> non-commercial/industrial, and since i consider myself as a linux
> developer exploring the world of serial programming, I feel that with a
> bit of help I can do it myself. (If you want money, find a job, or create
> one, but don't abuse from guys seeking help to make money!)
> 
> (3) I also appreciate your 'trivial' approach to the problem - that's what
> a breakout box is (doh).
> 
> 
> Back to my question:
> 
> In a serial programming scenario, how can i actually read data from serial
> port, process it, and send it to another serial port in a reliable
> fashion? I know that there is more than 1 mode for input processing. Does
> this one fall under the Canonical Input processing?
> 
> Thanks folks.
> 

Hmmm... I am somewhere between Greg and Mike here so let me repeat some
words from my first programming teacher:- "well, why don't you suck it and
see? You will learn more that way than if I just tell you the answer".


> 
> > On 2003-09-03, James Attard wrote:
> >
> >> (1) How can i read/process the CDRs in 'real time' ??
> >> (2) How can i make the linux machine as a breakout box so that control
> >> signals sent from the machine are directed to the pabx immediately and
> >> act
> >> accordingly?
> >
> > This is incredibly trivial.  The billing machine sends its query
> > to your Linux box, believing that it's actually the pabx.  The
> > Linux box sends the query on immediately.  The PABX returns the
> > data to the Linux box.  The Linux box immediately sends all the
> > data that it wishes to pass through on to the billing machine.
> > When the billing machine sends its stop signal to the Linux box,
> > it sends it on to the PABX.  What's complicated about this?
> >
> >> I'm a little bit confused as i'm still new to the world of serial
> >> programming. I would appreciate if you post sample codes.
> >
> > The usual deal is that you pay standard rates if you want people
> > to do your work for you.  Email me off-list for my rates.
> >
> > Cheers, Greg
> >
> > --
> > Greg Black <gjb at gbch.net> <http://www.gbch.net/gjb.html>
> > GPG signed mail preferred; further information in headers.
> > _______________________________________________
> > This is the Linux C Programming List
> > :  http://lists.linux.org.au/listinfo/linuxcprogramming List
> >
> _______________________________________________
> This is the Linux C Programming List
> :  http://lists.linux.org.au/listinfo/linuxcprogramming List



More information about the linuxCprogramming mailing list