Just write a POE component that has one session to handle the serial
port connection (Using Device::Serial?), and then one session to handle
client requests?  With all of the tools POE provides, you could make
that session a TCP socket, unix socket, web server with SOAP or XMLRPC
type structure or pretty much anything you can imagine.

There's excellent documentation on the POE site.

Or, if you want cheaper implementation, write a cron job that checks the
status and then puts it in a database, then just query the database in
your mason site.

There's a bunch of ways to do it, it depends on your particular comfort
one.

On Mon, Nov 26, 2007 at 05:09:45PM -0600, Ryan wrote:
> I'm monitoring a laboratory scale through the serial port.  Opening  
> that connection is expensive (I think) so I'd like to run a program  
> in the background that continually monitors the port and reports data  
> to my Mason site when it asks for it.  What's my best solution?
> 
> 
> Thanks!
> 
> Ryan
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Mason-users mailing list
> Mason-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mason-users
> 

-- 
Brad Lhotsky

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to