From: Glenn T. <gle...@sh...> - 2006-04-19 16:33:13
|
I've been working with the test program that Neil Cherry sent. It works well with the Powerlinc controller that I am using so the serial port baudrate, the rights, etc. seem to be set correctly. When I revert to mh version 2.101 however, the mh hangs up on the chkxbit routine (or at least appears to hang here) as this is the last print out on the console screen. I'm running it from root just so I can ensure that I don't have any privilege issues. This is all being done on my mrhouse test machine running Debian Sarge. It's been a long time since I have done much programming so it fun to get back into it. However, I have never programmed in Perl before (I've programmed Basic, Fortran and Forth, ie controls stuff) so armed with Llama I'm pouring through the code. I therefore, have a couple of questions about Perl. First I notice some of Bruce's programs end in .pl while others end in .pm? What is the difference? Second, Llama donesn't deal much with Debug, so my question is what is the best way to follow the program code? I've determined how iplcs.pm is called but I seem to be missing how the individual sub routines such as swrite, sread, etc get called. Also, I notice that Bruce has included a lib module called X10_iplcs.pm and I don't see where it is called or used. What am I missing here? Brent I checked out your latest Web interface postings and I like your work very much. The question I have is why are you going to Java rather than using Perl? Finally, I would be interested in comments about incorporating security panel controls and code directly into mh? Would there be any point in doing this? Or is having a stand alone system with RS232 interface a better approach? Sorry for all the Newbie questions but we all got to learn by asking? Sometimes RTFM just doesn't cut it. Cheers. Glenn. |