From: Gaetan l. L. <ga...@sg...> - 2002-05-10 13:17:13
|
The BX24 will replace the CM11 and the CM17 as well. For MH, the CM11 don't exist, you talk to the BX24 only So, defininng X10 item like you did > $masterbedroom_light = new X10_Item('A1', 'CM11'); is not the right way, mh is trying to send via a defined cm11 interface. Remove the cm17_port definition, unless you don't want to use the trasnceiver capabilities of the BX24. Then define you X10 device like $masterbedroom_light = new X10_Item('A1'); this should work as expected On Thu, May 09, 2002 at 11:06:34PM -0400, Ernie Oporto wrote: > I have my BX24-AHT assembled and working. Currently, I define is as follows in mh.private.ini: > > @ cm11_port (For X10 ActiveHome interface) > @ cm17_port (For X10 Firecracker interface) > @ Note: You can put both of these on the same port > @ cm11_port= /dev/ttyS0 #com1 > cm17_port= /dev/ttyS1 #com2 > > @ > @ BX24 > @ > @ BX24_module = X10_BX24 > BX24_port = /dev/ttyS9 > > in lights.pl in my codedir (note the CM11 as the device - is there one for BX24 that I should instead be setting?): > > # > # BX24 item > $v_BX24 = new X10_BX24; > # regular items > $masterbedroom_light = new X10_Item('A1', 'CM11'); > $livingroom_light = new X10_Item('A2', 'CM11'); > $toggle_lr_light = new X10_Item('A7', 'CM11'); > > > My transceiver is currently unplugged. The logs show that the BX24 is sending code to MH because I programmed the BX24 to send an A2-off when it saw code from a certain X10-security device. The logs say: > > 05/09/02 22:00:23 XA2AJ: livingroom_light on > > when I click on a palmpad code A7-on, which is supposed to do this from lights.pl... > > if (state_now $toggle_lr_light eq ON) > { > set $livingroom_light ON; > set $livingroom_light '-50'; > } > > I see... > > 05/09/02 22:04:58 XA7AJ: toggle_lr_light on > > but in neither case does the light do its thing. It seems like signal that is sent to the BX24 by MH does not actually go to the CM11. The BX24 is obviously seeing the wireless traffic, but MH is not acting on it. I noticed in the perldoc for the module that I should do something like > > if ( state = state_now $livingroom_light) { > my $level = level $livingroom_light > print "A2 state is $state and level is $level\n"; > set $livingroom_light 'on'; > } > > but would I really have to do that for each and every X10 code in existence? I would prefer that anything the BX24 sees be broadcast out the CM11A by MH as well as being processed...that's the same case we have with the transceivers sending down the wire back when it was only a CM11A receiving the signal for MH. Besides that, what do I need to set for MH to handle my $toggle_lr_light item and other items? > > Ernie > > -- -- ---------------------------------------------------------------------- Gaetan Lord - FTA - ga...@sg... - SGI - Montreal, Canada pager: gae...@mo... (200 car. max) "There is no future in time traveling" ---------------------------------------------------------------------- 9:09am up 8 days, 18:08, 12 users, load average: 1.39, 1.34, 1.22 |