From: Mario M. <mar...@ri...> - 2009-10-25 13:52:55
|
Hi to everyone! My name is Mario Markovic. I am from Rijeka (Croatia) and I am studying electrical engineering at the Faculty of Engineering, University of Rijeka. I am currently working on my diploma-thesis which topic is X10 protocol and everything that goes with it. Very important part of my thesis is enabling X10 CM15Pro (CM15A) Computer Interface to work under Linux (Ubuntu). So far I managed to install some drivers and turn on/off lights with small Perl script. Now I want to make MisterHouse to work with CM15Pro. But, here is where I've encountered on a problem. So, how do implement CM15Pro (CM15A) support for MisterHouse? So far I tried to follow instructions from this link http://misterhouse.wikispaces.com/X10-CM15A but with no success. Thanks in advance for Your answers. Best regards, Mario Markovic |
From: Marc M. <ma...@me...> - 2009-10-26 14:39:11
|
On Sun, Oct 25, 2009 at 02:52:39PM +0100, Mario Markovic wrote: > Hi to everyone! > > My name is Mario Markovic. I am from Rijeka (Croatia) and I am studying > electrical engineering at the Faculty of Engineering, University of > Rijeka. I am currently working on my diploma-thesis which topic is X10 > protocol and everything that goes with it. > > > Very important part of my thesis is enabling X10 CM15Pro (CM15A) Computer > Interface to work under Linux (Ubuntu). So far I managed to install some > drivers and turn on/off lights with small Perl script. Now I want to make > MisterHouse to work with CM15Pro. But, here is where I've encountered on a > problem. So, how do implement CM15Pro (CM15A) support for MisterHouse? > > So far I tried to follow instructions from this link > http://misterhouse.wikispaces.com/X10-CM15A > but with no success. > > Thanks in advance for Your answers. Please don't take this the wrong way, but you first must learn how to ask questions in a way that makes it likely that you're going to get an answer, especially if you add the latency of Email. Let me explain: "Hi, I just installed misterhouse and it doesn't work. Please let me know what's wrong with it." In other words, put yourself in the shoes of the person who's going to try to help you when you ask a question if you're hoping for an answer :) Read this, carefully: http://catb.org/~esr/faqs/smart-questions.html putting aside http://catb.org/~esr/faqs/smart-questions.html#homework if you show you did enough work when asking your question :) Marc -- "A mouse is a device used to point at the xterm you want to type in" - A.S.R. Microsoft is to operating systems & security .... .... what McDonalds is to gourmet cooking Home page: http://marc.merlins.org/ |
From: Mario M. <mar...@ri...> - 2009-10-27 09:38:58
Attachments:
from_terminal.txt
|
> On Sun, Oct 25, 2009 at 02:52:39PM +0100, Mario Markovic wrote: >> Hi to everyone! >> >> My name is Mario Markovic. I am from Rijeka (Croatia) and I am studying >> electrical engineering at the Faculty of Engineering, University of >> Rijeka. I am currently working on my diploma-thesis which topic is X10 >> protocol and everything that goes with it. >> >> >> Very important part of my thesis is enabling X10 CM15Pro (CM15A) >> Computer >> Interface to work under Linux (Ubuntu). So far I managed to install some >> drivers and turn on/off lights with small Perl script. Now I want to >> make >> MisterHouse to work with CM15Pro. But, here is where I've encountered on >> a >> problem. So, how do implement CM15Pro (CM15A) support for MisterHouse? >> >> So far I tried to follow instructions from this link >> http://misterhouse.wikispaces.com/X10-CM15A >> but with no success. >> >> Thanks in advance for Your answers. > > Please don't take this the wrong way, but you first must learn how to ask > questions in a way that makes it likely that you're going to get an > answer, > especially if you add the latency of Email. > > Let me explain: > "Hi, I just installed misterhouse and it doesn't work. Please let me know > what's wrong with it." > > In other words, put yourself in the shoes of the person who's going to try > to help you when you ask a question if you're hoping for an answer :) > > Read this, carefully: > http://catb.org/~esr/faqs/smart-questions.html > > putting aside http://catb.org/~esr/faqs/smart-questions.html#homework > if you show you did enough work when asking your question :) > > Marc > -- > "A mouse is a device used to point at the xterm you want to type in" - > A.S.R. > Microsoft is to operating systems & security .... > .... what McDonalds is to gourmet > cooking > Home page: http://marc.merlins.org/ > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > ________________________________________________________ > To unsubscribe from this list, go to: > http://sourceforge.net/mail/?group_id=1365 > Thanks for the advices. The thing is that I successfully installed MH (at least I think I did). Then I followed instructions from http://misterhouse.wikispaces.com/X10-CM15A but with no result. First, I can't open http://localhost:8080 (I tried to change the port, it didn't help). I found out that I can access MH web menu by typing my IP address. But, I get two new lines (commands) in the blue window of MH (not in web browser) that state "turn test cm15a lights on" and "turn test cm15a lights off" but nothing happens when I run them. Everything that came up in Terminal window since running MH till issuing upper commands You can find in the attachment. Thanks in advance. |
From: Marc M. <ma...@me...> - 2009-10-27 16:17:57
|
On Tue, Oct 27, 2009 at 10:38:42AM +0100, Mario Markovic wrote: > But, I get two new lines (commands) in the blue window of MH (not in web > browser) that state "turn test cm15a lights on" and "turn test cm15a > lights off" but nothing happens when I run them. I don't use cm15a so I cna't help you with that, but look at the error log you posted: > - creating generic device cm15a on /dev/usb/cm15a0 > 10/27/09 10:19:27 AM Can't open generic device cm15a: /dev/usb/cm15a0: No such file or directory That's obviously a clue that something is wrong :) > - process id 5627 written to ./../data/mh.pid > - setting up main window > - external command file (xcmd_file): ./../house_cmd.txt > - HTML file : ./../web/ia5/index.shtml > > Warning: password_file ./../data/.password not found. Run mh/bin/set_password That too. > Socket_Item client start error: could not start a tcp client socket > - host=localhost port=8080: IO::Socket::INET: Bad hostname 'localhost' That explains why the web interface doesn't work. Don't you have localhost in /etc/hosts? > 10/27/09 10:26:00 AM Oops2: Number found where operator expected at (eval 2314) line 1, near "09 10" > > > 10/27/09 10:26:00 AM Oops2: (Missing operator before 10?) > > 10/27/09 10:26:00 AM Oops2: Bareword found where operator expected at (eval 2314) line 1, near "00 AM" > > > 10/27/09 10:26:00 AM Oops2: (Missing operator before AM?) > > > 10/27/09 10:26:00 AM Oops2: Bareword found where operator expected at (eval 2314) line 1, near "8080 is" not sure where those strings came from, but you need to fix that. > 10/27/09 10:26:00 AM Oops2: (Missing operator before is?) > > Error, socket_close sock port undefined for port http > Running external command: turn on the cm15a test light set by tk > Error found in user code file: ./../data/mh_temp.user_code > 10/27/09 10:26:11 AM: Cannot open device No such file or directory at (eval 524) line 2787. > Line 2782: > Line 2783: > Line 2784: if ( $state = said $v_cm15_cmd ) { > Line 2785: print_log "Turning the test light $state"; > Line 2786: > Line 2787: sysopen( CM15A, "/dev/usb/cm15a0", O_RDWR |O_NOCTTY | O_NONBLOCK ) || die "Cannot open device $!"; > Line 2788: > Line 2789: if ( $state eq "on" ) { > Line 2790: #set $test_light "on"; > Line 2791: send_cm15a( \*CM15A, "A6J" ); # turn A6 ON > Line 2792: } else { > Error logged to: ./../data/error.log > Running external command: turn off the cm15a test light set by tk > Error in user code: Cannot open device No such file or directory at (eval 524) line 2787. And that's obviously the error you generated, so things won't work until the device is there. Marc -- "A mouse is a device used to point at the xterm you want to type in" - A.S.R. Microsoft is to operating systems & security .... .... what McDonalds is to gourmet cooking Home page: http://marc.merlins.org/ |
From: Seann C. <nom...@ts...> - 2009-10-27 17:29:35
Attachments:
smime.p7s
|
Marc MERLIN wrote: >> 10/27/09 10:26:11 AM: Cannot open device No such file or directory at (eval 524) line 2787. >> Line 2782: >> Line 2783: >> Line 2784: if ( $state = said $v_cm15_cmd ) { >> Line 2785: print_log "Turning the test light $state"; >> Line 2786: >> Line 2787: sysopen( CM15A, "/dev/usb/cm15a0", O_RDWR |O_NOCTTY | O_NONBLOCK ) || die "Cannot open device $!"; >> Line 2788: >> Line 2789: if ( $state eq "on" ) { >> Line 2790: #set $test_light "on"; >> Line 2791: send_cm15a( \*CM15A, "A6J" ); # turn A6 ON >> Line 2792: } else { >> Error logged to: ./../data/error.log >> Running external command: turn off the cm15a test light set by tk >> Error in user code: Cannot open device No such file or directory at (eval 524) line 2787. >> > > And that's obviously the error you generated, so things won't work until the > device is there. > > Marc > Getting the cm15A to run can be a bit on the tricky side. If you have the module loaded and the device plugged in, you see an entry LIKE /dev/usb/cm15a0. In my distribution of linux I got a /dev/cm15a0 (This was on a CentOS 5 system). After you find that and make sure your device is seen in the system (you should see the standard usb devices plugged into system alerts in the kernel log, including where they are assigned in the /dev directory) so if you could do an lsmod to see if cm15a is in the list, as well as doing a generic lsusb you should also see the X10 controller on one of the USB entries. I would provide working examples, but my CM15A is packed in a box right now (I hate moving) and I can't connect it at the moment to provide you a little more help on the example side. Now, if the lsmod doesn't provide a cm15a item in the list you need to find the modules you compiled (if you followed the instructions you should have done that already) and need to try an insmod cm15a.ko (or cm15.a.o if you are running a 2.4 kernel). Please include an output of the lsmod and lsusb in the response for a little better help. I think making sure the O/s sees your cm15a first would be a great step, and then nail out the MH stuff afterwards. As a side note, the test routines you mentioned aren't linked to anything by default, so you have to set up items that point to real X10 devices to get those to work. Seann |
From: Neil C. <nc...@li...> - 2009-10-27 17:53:45
|
Seann Clark wrote: > Marc MERLIN wrote: >>> 10/27/09 10:26:11 AM: Cannot open device No such file or directory at >>> (eval 524) line 2787. >>> Line 2782: Line 2783: Line 2784: if ( $state = said $v_cm15_cmd ) { >>> Line 2785: print_log "Turning the test light $state"; >>> Line 2786: Line 2787: sysopen( CM15A, "/dev/usb/cm15a0", O_RDWR >>> |O_NOCTTY | O_NONBLOCK ) || die "Cannot open device $!"; >>> Line 2788: Line 2789: if ( $state eq "on" ) { >>> Line 2790: #set $test_light "on"; >>> Line 2791: send_cm15a( \*CM15A, "A6J" ); # turn A6 ON >>> Line 2792: } else { >>> Error logged to: ./../data/error.log >>> Running external command: turn off the cm15a test light set by tk >>> Error in user code: Cannot open device No such file or directory at >>> (eval 524) line 2787. >>> >> >> And that's obviously the error you generated, so things won't work >> until the >> device is there. >> >> Marc >> > > > > Getting the cm15A to run can be a bit on the tricky side. If you have > the module loaded and the device plugged in, you see an entry LIKE > /dev/usb/cm15a0. In my distribution of linux I got a /dev/cm15a0 (This > was on a CentOS 5 system). After you find that and make sure your device I'd expect /dev/cm15a0, at some point there was some sub-system that automagically built the device dynamically and there was a change to the /dev/ directory instead of the /dev/usb/ directory. -- 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 |
From: Mario M. <mar...@ri...> - 2009-10-29 11:03:44
|
First of all, I want to thank you all for your suggestions. I changed /dev/usb/cm15a to /dev/usb/iplc0 and that helped becuse that is my device file. Now, running "turn on (off) the test light" from blue MH windows actually turn on and off the light. So MH is communicating with CM15Pro. Next thing that I want to do is to add support for CM15A in MH web menu where I can select lamp module address and turn it, on, off, dim, bright... I tried to enter following code in the mh.privte.ini file but it didn't help: cm15a_device=/dev/usb/iplc0 x10_interface=cm15a debug=X10 x10_errata=4 Thanks once again. > On Tue, Oct 27, 2009 at 10:38:42AM +0100, Mario Markovic wrote: >> But, I get two new lines (commands) in the blue window of MH (not in web >> browser) that state "turn test cm15a lights on" and "turn test cm15a >> lights off" but nothing happens when I run them. > > I don't use cm15a so I cna't help you with that, but look at the error log > you posted: > >> - creating generic device cm15a on /dev/usb/cm15a0 >> 10/27/09 10:19:27 AM Can't open generic device cm15a: /dev/usb/cm15a0: >> No such file or directory > > That's obviously a clue that something is wrong :) > >> - process id 5627 written to ./../data/mh.pid >> - setting up main window >> - external command file (xcmd_file): ./../house_cmd.txt >> - HTML file : ./../web/ia5/index.shtml >> >> Warning: password_file ./../data/.password not found. Run >> mh/bin/set_password > > That too. > >> Socket_Item client start error: could not start a tcp client socket >> - host=localhost port=8080: IO::Socket::INET: Bad hostname 'localhost' > > That explains why the web interface doesn't work. Don't you have localhost > in /etc/hosts? > >> 10/27/09 10:26:00 AM Oops2: Number found where operator expected at >> (eval 2314) line 1, near "09 10" >> >> >> 10/27/09 10:26:00 AM Oops2: (Missing operator before 10?) > >> >> 10/27/09 10:26:00 AM Oops2: Bareword found where operator expected at >> (eval 2314) line 1, near "00 AM" >> >> >> 10/27/09 10:26:00 AM Oops2: (Missing operator before AM?) >> >> >> 10/27/09 10:26:00 AM Oops2: Bareword found where operator expected at >> (eval 2314) line 1, near "8080 is" > > not sure where those strings came from, but you need to fix that. > >> 10/27/09 10:26:00 AM Oops2: (Missing operator before is?) >> >> Error, socket_close sock port undefined for port http >> Running external command: turn on the cm15a test light set by tk >> Error found in user code file: ./../data/mh_temp.user_code > >> 10/27/09 10:26:11 AM: Cannot open device No such file or directory at >> (eval 524) line 2787. >> Line 2782: >> Line 2783: >> Line 2784: if ( $state = said $v_cm15_cmd ) { >> Line 2785: print_log "Turning the test light $state"; >> Line 2786: >> Line 2787: sysopen( CM15A, "/dev/usb/cm15a0", O_RDWR |O_NOCTTY | >> O_NONBLOCK ) || die "Cannot open device $!"; >> Line 2788: >> Line 2789: if ( $state eq "on" ) { >> Line 2790: #set $test_light "on"; >> Line 2791: send_cm15a( \*CM15A, "A6J" ); # turn A6 ON >> Line 2792: } else { >> Error logged to: ./../data/error.log >> Running external command: turn off the cm15a test light set by tk >> Error in user code: Cannot open device No such file or directory at >> (eval 524) line 2787. > > And that's obviously the error you generated, so things won't work until > the > device is there. > > Marc > -- > "A mouse is a device used to point at the xterm you want to type in" - > A.S.R. > Microsoft is to operating systems & security .... > .... what McDonalds is to gourmet > cooking > Home page: http://marc.merlins.org/ > |
From: Neil C. <nc...@li...> - 2009-10-29 14:52:02
|
Mario Markovic wrote: > First of all, I want to thank you all for your suggestions. > > I changed /dev/usb/cm15a to /dev/usb/iplc0 and that helped becuse that is > my device file. Now, running "turn on (off) the test light" from blue MH > windows actually turn on and off the light. So MH is communicating with > CM15Pro. What driver are you using? What Distribution? The iplc should only appear with the Insteon PLC (2414). Something is really odd. -- 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 |
From: Mario M. <mar...@ri...> - 2009-10-29 15:15:45
|
> Mario Markovic wrote: >> First of all, I want to thank you all for your suggestions. >> >> I changed /dev/usb/cm15a to /dev/usb/iplc0 and that helped becuse that >> is >> my device file. Now, running "turn on (off) the test light" from blue MH >> windows actually turn on and off the light. So MH is communicating with >> CM15Pro. > > What driver are you using? What Distribution? The iplc should only appear > with the Insteon PLC (2414). Something is really odd. > > -- I've installed CM15Pro drivers by following http://scottzumwalt.blogspot.com/2008/07/cm15a-x10-home-automation-with-linux.html When I think about it, maybe it's iplc0 because in one step I issued "mknod --mode=a=rw /dev/usb/iplc0 c 180 240" |
From: Neil C. <nc...@li...> - 2009-10-29 15:31:21
|
Mario Markovic wrote: >> Mario Markovic wrote: >>> First of all, I want to thank you all for your suggestions. >>> >>> I changed /dev/usb/cm15a to /dev/usb/iplc0 and that helped becuse that >>> is >>> my device file. Now, running "turn on (off) the test light" from blue MH >>> windows actually turn on and off the light. So MH is communicating with >>> CM15Pro. >> What driver are you using? What Distribution? The iplc should only appear >> with the Insteon PLC (2414). Something is really odd. >> >> -- > > I've installed CM15Pro drivers by following > > http://scottzumwalt.blogspot.com/2008/07/cm15a-x10-home-automation-with-linux.html > > When I think about it, maybe it's iplc0 because in one step I issued > "mknod --mode=a=rw /dev/usb/iplc0 c 180 240" Ah! You just used a different name, that's okay. It might be wiser to change: mknod --mode=a=rw /dev/usb/iplc0 c 180 240 to mknod --mode=a=rw /dev/usb/cm15a0 c 180 240 -- 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 |
From: Mario M. <mar...@ri...> - 2009-10-30 18:10:02
Attachments:
pack_problem.pl
|
Hi. I have a new question. It's not about MH, it about Perl. But since MH is based on Perl, you might now the answer. I want to make a script which I can run from Ubuntu Terminal window. So when I type, e.g. "perl name_of_the_script.pl A6", light with the A6 address should turn on. I read the "A6" by using the ARGV. But later on, I can't enter the variable (or appropriate format of it) in the "pack" function. In the attachment is the .pl script with comments to help you to see what I want. I kindly ask for Your help. |
From: Mario M. <mar...@ri...> - 2009-10-31 10:23:41
|
> Hi. > > I have a new question. It's not about MH, it about Perl. But since MH is > based on Perl, you might now the answer. > > I want to make a script which I can run from Ubuntu Terminal window. So > when I type, e.g. "perl name_of_the_script.pl A6", light with the A6 > address should turn on. I read the "A6" by using the ARGV. But later on, I > can't enter the variable (or appropriate format of it) in the "pack" > function. In the attachment is the .pl script with comments to help you to > see what I want. > > I kindly ask for Your help. Meanwhile, I've solved the problem. Thanks anyway. Cheers. |