thekestrel has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: POE & Serial Ports
by PodMaster (Abbot) on Oct 29, 2004 at 13:10 UTC | |
|
Re: POE & Serial Ports
by rcaputo (Chaplain) on Oct 30, 2004 at 21:05 UTC |