From: Kieran A. <ka...@op...> - 2000-04-04 21:59:09
|
Dan, Do you have Perl installed? (and in your path?) If so, here's the steps I took. (I'm on WINNT4.0, but prefer running the Perl version). I copied the cm17 module to my g:\mh\lib\site\ControlX10\CM17.pm I copied test_cm17_ir.pl to g:\mh\bin\test_cm17_ir.pl I then edited the require statement to read /mh/lib/site/controlx10/cm17.pm and ran the command line Bruce suggested, preceded by perl... My starting point is g:\mh\bin. I cd there, get the following prompt ( g:\mh\bin> ) and run g:\mh\bin> perl mh -run test_cm17_ir.pl COM2 If Perl is not in your path, you can also do the following: g:\directory\of\mh\bin> c:\path_to_perl\perl\bin\perl mh -run test_cm17_ir.pl COM2 HTH Kieran Daniel Levine wrote: > Bruce, > > I was trying to reproduce your results with the CM17a.pm and test_cm17_ir.pl > files without success at a basic level. > > I am on Windows using the Windows comiler version of MH. I dropped both of > these files into the mh/code/test area. Changed require line to point to > where the CM17a.pm is. > > Then from the code directory: mh -run test_cm17_ir.pl COM1 > produces: Can not find -run pgm: test_cm17_ir.pl > > Perhaps the windows version of MH doesn't support -run option. > > Then I tried: mh test_cm17_ir.pl COM1 > This eventually leads to: Error, can not find file C:/..blah.../COM1 > > Then I tried what I normally do: mh test_cm17_ir.pl > This eventually leads to: Global symbol "$loaded" requires explicit package > name at (eval 38) line 29. > > Why can I figure out the protocol and yet not this part? :) > > Any help is appreciated! > > -Dan > > >From: "Bruce Winter" <br...@mi...> > >Reply-To: mis...@li... > >To: <mis...@li...> > >Subject: RE: [misterhouse-users] The IR Commander Translation Project: > >Rosetta Stone > >Date: Tue, 4 Apr 2000 08:51:36 -0500 > > > > > I like your idea of using PERL instead. Whew! Looks like I did a > >decent > > > job at least. Still like your way better. I'll stop translating > > > and make > > > more codes tomorrow. I do feel like we are getting somewhere. > > > Perhaps we > > > can send out protocol documentation to X10.com for their perusal. :) > > > > > >I got far enough on the ir extentions to CM17.pm to prove it works!! > > > >If you want to give it a try, pick up these 2 files: > > > > http://misterhouse.net/mh/lib/site/ControlX10/CM17.pm > > > > http://misterhouse.net/public/test_cm17_ir.pl > > > >Edit the 'require ...' at the top of the test_cm17_ir.pl file, then run > >(from mh/bin): > > > > mh -run test_cm17_ir.pl COM2 > > > >Change COM2 to whereever your CM17 is plugged into. It should work on unix > >also (e.g. /dev/ttyS0), but I have not tried it yet. > > > >Next we need to add a device table, so we can select devices (e.g. VCR -vs- > >TV) and fill in the rest of the command table in CM17.pm (currently it only > >has POWER, MUTE, VOL, and CH). Now, however, I gotta go to work ... > > > >Bruce > > > > > > > >________________________________________________________ > >To unsubscribe from this list, go to: > >http://sourceforge.net/mail/?group_id=1365 > > > > ______________________________________________________ > Get Your Private, Free Email at http://www.hotmail.com > > ________________________________________________________ > To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365 |