X10 Community Forum
🖥️ActiveHome Pro => ActiveHome Pro General => Topic started 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
-
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.)
-
Oh, I am so sorry.
I writed the worng device module name.
I want to control the LM465 module, not TM751.
Hope for help,
-
who can give me a sample code to perform my purpose (in JSR80)?
need help....
yutse