I'm currently using Java X10 API (http://x10.homelinux.org/docs/
) that utilized JavaComm (http://java.sun.com/products/javacomm/reference/api/index.html
) to communicate with a CM11 device that's connected to my computer throught a serial port.
Here's the protocol that CM11 uses (http://www.x10pro.com/pro/pdf/cm11a_protocol.txt
I've managed to send out X10 signals to a AM12 device connected to a standing fan to make it on/off. I'm now trying to send a Status Request command to the CM11 (0x8b), and apparently the CM11 sends data back to me through the serial port which i read off using the inputbuffer/outputbuffer.
I need to get bit range 31-16 as defined in the CM11 protocol so that i can monitor if a device is switched on/off from the byte that i picked off the inputbuffer.