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

James Attard james_attard at ieee.org
Wed Sep 3 20:27:01 UTC 2003


(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.


> 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
>



More information about the linuxCprogramming mailing list