Monks, =)

I've been playing around with POE and want to make a small daemon that interfaces a COM port and binds it to a tcp port. This way you can just telnet to a port from external of my machine and talk to the device connected(which in this case is a GPS receiver) to it and the app just passes the information in a nice non-blocking manner in both directions.

I have made a few scripts now that work with the clients and servers on the TCP side (with POE), but am not sure how to interface to the serial port. The POE CookBook eludes to POE having a serial port abstraction, however there isn't an example (yet...).

Can anyone point me in the direction of a POE/Serial port interface example or throw a snippet my way? I've had a bit of a look around the traps and there is lots of 'serial' stuff, but can it be done via a POE method.

The only parameters the script will have in the end are the bind port for the local TCP side of things and the port and baud etc for the serial stuff.


Any advice is appreciated.

Regards Paul

In reply to POE & Serial Ports by thekestrel

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.