From: Daniel L. <dan...@ho...> - 2000-04-04 23:29:14
|
Ok, I have the IR Commnder tester working now on Win 98 with the compiled version. Here were the necessary breakthroughs: 1. Put stuff in the right place: a. CM17.pm goes under mh\lib\site\ControlX10 b. test_cm17_ir.pl goes under mh\lib\test 2. Comment out the line from your mh.ini (or you special one) file that has cm17=comx. Add a new line with just: cm17= Bruce has not gotten this far and when you set this up, it interfers with the simple serial driving code he's writen to test the IR Stuff. 3. Edit the test_cm17_ir.pl file in three places. a. On line 5 change the path to point to the absolute path to where you put the CM17.pm file in step 1a. b. On line 7 change add $loaded inside the parens like this: use vars qw($OS_win $port $loaded) c. On the 7th line after the end of the "black magic" is a line which has COM1 on it. Change it to the com port which has you CM17a. Again this is likely to go away once Bruce integrates the CM17a X10 and IR code and we again use the cm17= line in the .ini file. d. Down at the bottom I also uncommeted the first ControlX10::CM17::send_ir($serial_port, 'POWER'); line so it would turn my TV on first anf the do the other commands. Now goto the mh\bin directory and type: mh test_cm17_ir.pl Assuming your TV is configured using the initial setup of IR Commander for the necessary codes, this should turn your TV POWER (on), TV CH+, TV Vol+, TV MUTE (muting), TV CH-, TV MUTE (unmuting), TV Vol- Mine also turns off the TV. Bruce, do you do this somewhere I don't know about? Ok, so I should probably start generating the files as Bruce recommeded of the IR Commnder recordings for each possible command on each device. I only have TV and VCR setup, but now that this is working (in a hacked sort of way) I could configure up a CD player. I guess it realy doesn't matter what I actually have, since I can just set anything up and record the commands. Let the translation process begin! -Dan P.S. I'll probably just send the recordings to Bruce to reduce bandwidth. I'll let the list know what I'm sending him. >From: Kieran Ames <ka...@op...> >Reply-To: mis...@li... >To: mis...@li... >Subject: Re: [misterhouse-users] The IR Commander Translation Project: >Rosetta Stone >Date: Tue, 04 Apr 2000 17:53:30 -0400 > >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 ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com |