Help for turning x10 LM465 devices ON/OFF with cm15a controller by java code

Started by yutse, June 05, 2006, 09:35:19 PM

Previous topic - Next topic

yutse

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

Charles Sullivan

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.)
Yesterday it worked.
Today it doesn't work.
X10 on Windows is like that.

HEYU - X10 Automation for Linux, Unix, and Mac OS X     http://www.heyu.org

yutse

Oh, I am so sorry.
I writed the worng device module name.
I want to control the LM465 module, not TM751.

Hope for help,


yutse

who can give me a sample code to perform my purpose (in JSR80)?
need help....

yutse

SMF spam blocked by CleanTalk