From: Neil C. <nc...@li...> - 2007-11-10 22:01:45
|
Tom wrote: > Neil Cherry wrote: >> Tom wrote: >> >>> I was having trouble with John's code when I simply added the cm15a >>> device info in mh.private.ini and copied his files. >>> >>> After working with him last night we got it working by making some >>> modifications but we aren't sure why it worked for him without the mods. >>> >>> Here are the steps I followed and which files had to be modified. >>> ------------------------------------------------------------------------------ >>> I added the following to mh.private.ini >>> -- >>> cm15a_device=/dev/usb/cm15a >>> x10_interface=cm15a >>> debug=X10 >>> x10_errata=4 >>> -- >>> and copied over John's files and started up MH >>> >>> MH gave the following: >>> >>> - creating generic device cm15a on /dev/usb/cm15a >>> ... >>> ERROR: CM15A didn't come up >>> ... >>> ... >>> CM15A data=165 hex=a5 >>> >>> CM15A power fail detected.Undefined subroutine >>> &ControlX10::CM15A::setClock called at >>> /usr/local/mh/bin/../lib/site/ControlX10/CM15A.pm line 619, <GEN24> line 1. >>> >>> -----------MH crashes and dies------------- >>> >>> I then added "sub setClock {}" before "sub send_cm15a" >>> lib/site/ControlX10/CM15A.pm >>> >>> it now starts but I get: >>> --- >>> CM15A data=165 hex=a5 >>> >>> CM15A power fail detected.mh CM15a >>> data=¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥ >>> data_d=165 >>> --- >>> This repeats over and over. >>> -----------MH works (showing the power fail errors but I can send X10 >>> commands from the CM15A)--------------- >>> >>> Next, in bin/mh.. at line 1826, After the line: "sub >>> check_for_cm15a_data {" I add: >>> "return;" >>> -----------MH works (and the "CM15A power fail detected" lines are >>> gone..they seem to be suppressed)--------------- >>> >>> It ran over night without crashing so it seems to be closer to working >>> at least with sending X10. >>> >>> I did notice that dmesg shows the following: >>> >>> interrupt_in_callback: read_buffer overflow, 1 bytes dropped (511/512) >>> this repeats until I stop MH, and starts up again a few seconds after MH >>> is started. >>> >>> ERROR: CM15A didn't come up --- also is shown at startup throughout >>> the process. >>> >>> anyone have any ideas? >>> >> What version of the cm15a driver are you using? If it's the latest >> then use /dev/cm15a0 instead. If not we need the output from >> >> dmesg >> lsmod > I removed the module: rmmod cm15a and started again.. > I'm using the one you linked to in your last email iplc-20071006.tgz > and am now pointing to /dev/cm15a0 > > at this point dmesg shows: > /install/cm15a/iplc/driver/linux-2.6/cm15a.d/cm15a.c: cm15a USB #254 now > attached to major 180 minor 254 > usbcore: registered new driver cm15a > /install/cm15a/iplc/driver/linux-2.6/cm15a.d/cm15a.c: X10 CM15A USB > Driver v0.02 > > and lsmod shows: > cm15a 17424 0 > > I still need to make the modifications to get it working > and it seems to act the same. I'm not sure what modifications. I'll give this a try tomorrow night with the new code. Is it the code that's now in the repository? -- Linux Home Automation Neil Cherry nc...@li... http://www.linuxha.com/ Main site http://linuxha.blogspot.com/ My HA Blog Author of: Linux Smart Homes For Dummies |