X10 Community Forum

🖥️ActiveHome Pro => ActiveHome Pro General => Topic started by: yutse on June 05, 2006, 09:35:19 PM

Title: Help for turning x10 LM465 devices ON/OFF with cm15a controller by java code
Post by: yutse on June 05, 2006, 09:35:19 PM
I hava already read the spec and related articles to want to set device ON/OFF by JSR80 java code.
I try to send the following command to control device A1 to turn on, see code:

//04 66 to designate A1 device
byte sendBuffer[]=new byte[2];
sendBuffer[0]=(byte)0x04;
sendBuffer[1]=(byte)0x66;   
outUsbIrp.setData(sendBuffer);
outUsbIrp.setUsbException(null);
outUsbIrp.setComplete(false);
outUsbPipe.syncSubmit(outUsbIrp);

and...

//06 62 to turn A1 on
byte sendBuffer[]=new byte[2];
sendBuffer[0]=(byte)0x06;
sendBuffer[1]=(byte)0x62;   
outUsbIrp.setData(sendBuffer);
outUsbIrp.setUsbException(null);
outUsbIrp.setComplete(false);
outUsbPipe.syncSubmit(outUsbIrp);

the above code are in the same method.
it doesnot work, and no any message response.
do I miss something or make something wrong?
thanks for any help.

yutse
Title: Re: Help for turning x10 TM751 devices ON/OFF with cm15a controller by java code
Post by: Charles Sullivan on June 05, 2006, 10:26:41 PM
The built-in appliance module in the TM751 responds by design ONLY to RF signals, not to any powerline signals.  (Which are what you have been sending.)
Title: Re: Help for turning x10 TM751 devices ON/OFF with cm15a controller by java code
Post by: yutse on June 05, 2006, 10:42:27 PM
Oh, I am so sorry.
I writed the worng device module name.
I want to control the LM465 module, not TM751.

Hope for help,

Title: Re: Help for turning x10 LM465 devices ON/OFF with cm15a controller by java code
Post by: yutse on June 13, 2006, 04:09:06 AM
who can give me a sample code to perform my purpose (in JSR80)?
need help....

yutse