Please login or register.

Login with username, password and session length

Author Topic: Help for turning x10 LM465 devices ON/OFF with cm15a controller by java code  (Read 7649 times)

yutse

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 3

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
« Last Edit: June 05, 2006, 10:53:26 PM by yutse »
Logged

Charles Sullivan

  • Hero Member
  • *****
  • Helpful Post Rating: 94
  • Posts: 1565
    • HEYU - X10 Automation for Linux, Unix, and Mac OSX

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.)
Logged
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

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 3

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

Hope for help,

Logged

yutse

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 3

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

yutse
« Last Edit: June 22, 2006, 11:30:40 PM by yutse »
Logged
 

X10.com | About X10 | X10 Security Systems | Cameras| Package Deals
© Copyright 2014-2016 X10.com All rights reserved.