Re: snmpset(), X10, and other stuff
| From: | Alex Belits | Date: | Mon, 12 Jul 1999 01:43:42 +0000 |
| Subject: | Re: snmpset(), X10, and other stuff | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-8372@lists.php.net to get a copy of this message | ||
On 12 Jul 1999, Jim Winstead wrote:
> Steven Lawrance wrote:
> > I was thinking about porting my X10-CP290 home automation library to UNIX so
> > it can also be in PHP. Does this seem like something that would be useful?
> > It only uses the CP290 unit, but it supports all the operations that it can
> > do and has been tested over several years in its Win32 DLL form.
CP-290 is probably the worst serial->X-10 thing around -- it's
transmit-only and has no collision detection. I use
"Two-Way" with TW523 with my HTTP <-> X-10 thing
(http://phobos.illtel.denver.co.us/~abelits/apartment.php3), and CM11
seems to be a good choice, too.
PHP probably isn't the best language to implement such a thing either --
delays and locking will cause a lot of trouble. I wrote the program that
control my x-10 devices as fhttpd module in C, and while it probably will
be a good idea to use php frontend (my page with cameras and x-10 link is
in php after all), the "engine" should be very careful about simultaneous
requests, spontaneous responses, delays, error recovery and collisions.
PHP isn't designed for this.
> This sounds pretty cool, but one problem is that talking to X10 devices
> usually requires the correct permissions to open a serial device, which
> PHP may not have.
This is the least of your problems.
--
Alex
----------------------------------------------------------------------
Excellent.. now give users the option to cut your hair you hippie!
-- Anonymous Coward