Paul,
It's actually isn't a modem but I don't think that will matter. Once the "black box" receives the T1 signal it does a function (in this case allows electricity to flow to port T1 thus turning on a light) If I send T0 or T2 it effect different devices within the home. All testing works...
#!/usr/bin/perl -w
use strict;
use Win32::SerialPort;
sub openPort($);
sub closePort($);
my $DEVICE = "COM1";
my $serial = openPort ($DEVICE);
$serial->write("T1");
closePort ($serial);
sub openPort($)
{my ($device) = @_;
my $serial = Win32::SerialPort->new ($device, 1);
die "Can't open serial...
Paul,
Currently I'm only running MS Pers Web Server. This is a smaller home automation project so up 'til now it has been usable. I'm not tied to PWS and would make changes if I know those changes will help me reach my goal.
Thanks for the reply perluser,
I can successfully achieve this through hyperterm but I guess I didn't elaborate enough in my first post. I need to be able to trigger this event via a button on my webpage, thus I turned to perl. Seemed so simple a month ago but I still don't have an answer. I...
I'm fairly new at Perl but have been fighting with SerialPort.pm and Commport.pm for too long now. All I need to do is send a very simple command out of the serial port into an electrical device. A batch file won't work for this project but if it would this is how it would read
MODE COM1...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.