News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

CM15A and LinuxMCE

Started by LucasG2000, June 08, 2008, 07:27:48 PM

Previous topic - Next topic

LucasG2000

Hello,

I've been playing with a Marmitek CM15A interface for controlling X10 devices. Using the driver in http://home.comcast.net/~ncherry/common/cm15d/cm15d.html and the scripts in http://users.zoominternet.net/~cm15a/ I have a command line script which turns on and off an X10 controlled light. This is only a proof of concept for assuring that the USB device is able to talk to other X10 devices from linux and that the OS setup is correct.

Now I'm trying to take the next step, that is connect this to LMCE. The driver creates the device in /dev/cm15a0, that it's working because the perl scripts use it without problems, but there's no way to configure LMCE for using it correctly.

Anyone can shed some light about this? Any ideas ?

Thanks in advance.

Maxx


tschak909

a DCE device needs to be created for dealing with the CM15A. Please look at the existing device template for the CM11A, and the relevant code in our SVN for adapting to the new device.

-Thom

Hagen

Also looking at the CM15 for LinuxMCE

tschak909

cool, okay then, somebody needs to write a driver.

-Thom

broadbandequipment

Regarding the CM15 ' problem'  i found something on the net... Im not a specialist on this but maybe you guys can use it i order to ' write'  a driver. It looks like it that someone already has the CM15 up and running on Ubuntu.

http://scottzumwalt.blogspot.com/2008/07/cm15a-x10-home-automation-with-linux.html
http://www.eclipsehomeauto.com/cm15a_on_linux/cm15a.shtml
http://www.somethinginteractive.com/index.php/2009/05/06/guide-x10-cm15a-ubuntu/

Hope this will be usefull.

nosilla99

#6
I don't have a CM15 but would happy to write a driver for LinuxMCE by either intergrating support within the CM11A driver or adding a new driver.  If someone or ideally a couple of people who have this device and have the time to spend testing and assisting let me know.

No need for programming skills required, just your time to debug driver

NOS

Hagen

I will get the core machine up and running sometime next week, but I have not yet bought the CM15. not sure when I will get that in house, but when I do my time is yours, of course  ;D

mythtified

I have a cm15 connected to a 0810 machine to test the link that was mentioned.  Those work when the software is compiled.

What do you need?  How can I help? 

Let me know

nosilla99

@hagen and mythtified,

Will start on the LinuxMCE integration at the weekend, will send you both a PM in the next two days after I have identified the differences between CM15A and CM11A protocols.

Cheers guys

NOS


dlewis

nosilla99, please send this info on the forum instead of using PM. It would be good for everyone to read.

nosilla99

#11
dlewis,

I was only going to PM to discuss availability for chatting on IRC, I will open a thread in the developers section to discuss actual implementation.

Infact can you move this thread to the developers section please  ;D

NOS

nosilla99

mythtified,

Did you have to remove the usbhid module to allow the cm15a device driver to function, or have you rebuilt the 8.10 kernel to stop HID from grabbing the cm15a ?

NOS

mythtified

No I did not remove the usbhid module.  I just followed the directions listed at the somethinginteractive.com site, downloaded, compiled the utilities, and ran the cm15demo utility.  I did nothing beyond that.  The background info there is sketchy and I cannot follow code well enough to understand what was being done.  I don't have it on the machine at this time.  I had read something Thom wrote in the wiki about the beta and decided to blow the software away and reload to see what would happen if I were more patient.

Without anything installed and the CM15A connected I can do an lsusb and see the device if that is any help.

nosilla99

Sorry for the delay guys, have had to rebuild my server, should have 8.10 build environment setup tonight so can start working on the CM15 support.

The good news is that the protocols for CM15 and CM11 are very similar with only a few variations so it should not be too hard to implement support. 

The easiest option would be to use the device driver approach although this would require some customisation of the kernel which would be in contrast to the direction LMCE is taking.  Therefore I will look at using the libusb code which although more difficult allows the CM15 to be supported without impacting on the kernel.

NOS