So it's not supposed to work in Linux? Is Java the only API they have
available besides the C# which only works for Microsoft?
I do not know anything the X10 SDK for Java or Windows. I wrote mochad so I can
tell you more about it.
mochad is a TCP gateway for a CM15A, CM15Pro, or CM19A. It handles the low
level USB I/O and translates the binary packets into human readable text. To
turn a light on, an application must open a TCP socket and write a command to
the socket similar to "pl b3 on". To receive sensor input (motion/door/window
sensors), an application must read lines from the socket. This means
applications can be written in any language and run on any platform with a
network stack. mochad does not have any built-in security so should not be
exposed to the Internet. I use https to access my home web server which in turn
talks to mochad. For more details see the following.
http://sourceforge.net/apps/mediawiki/mochad/index.php?title=Main_PageI do have Heyu installed but I wanted to develop my own start to finish in
case I decide to incorporate the project at a later date.
Maybe I could just build a front end which sends command line arguments
to Heyu? That would for sure be easier.
Heyu has a socket server feature so the front-end could send commands to Heyu
via TCP. I think this is how the Melloware iPhone and Android applications can
use Heyu as a back-end X10 controller. Google for "heyu socket". I do not have
a CM11A so have never used Heyu.
Heyu supports many devices but does not support USB controllers such as the
CM19A and CM15A.
mochad supports the CM19A and CM15A but does not support other devices.