From: Derek W. <dr...@gm...> - 2008-10-24 14:31:50
|
Ok, getting an OmniPro application to work would be the end of this journey, but for now I really need some help in getting the serial port to talk. Does anybody have any ideas on what may be my problem, and how to test this in MH. Thanks Derek Joel Davidson wrote: > > Omnistat.pm is for communicating with an HAI thermostat. It wasn't > intended for talking to the OmniPro panel. I think there's a different > module for that, but I don't really know as I don't have the panel, just > the thermostat. > > Joel > > > On Fri, 17 Oct 2008, it would appear that Derek Walker wrote: > >> >> Hi Steve >> >> This is what I have from you:- >> >> #Category=Security >> >> =begin comment >> >> Joel Davidson June 2004 >> >> I've updated Omnistat.pm and I think gotten everything working. >> I added a couple of new functions (see below). See mh/lib/Omnistat.pm >> for more details. >> >> >>> From Kent Noonan on Jan 2002 >> >> I have another module for misterhouse. But it is not finished. This is a >> module for controling HAI Omnistat Communicating thermostats. It was >> specifically written against the RC80 but as far as I can tell it should >> work with any of them. There is a problem with it. I am not finished with >> it. I started working on it, then moved to a house with an older heater >> that the thermostat doesn't work with. It's going to be a couple of years >> before we can upgrade the heater, so I thought I'd send this incase >> somebody else wanted to continue where I left off before I can get back >> to >> it again. Right now I can't even gaurantee that it works at all, but I >> think it did.. >> >> =cut >> >> >> $omnipro=new Omnipro; >> >> if ($New_Minute) { >> $omnipro->request_system_information(); >> } >> >> But I don't know how it would work, because I don't have any other files >> that would provide for the Omnipro being called above. >> >> Any other files you may have, would be a great help, I would love to >> continue where you left off. >> >> Thanks >> Derek >> >> >> Steve Bailey-3 wrote: >>> >>> Derek, did you take a look at the code I sent you? I think I >>> actually had data coming in visible to MH before I gave up on the >>> effort. >>> >>> Steve >>> >>> On Oct 17, 2008, at 5:16 AM, Derek Walker wrote: >>> >>>> >>>> Hello >>>> >>>> I am wanting to connect MH to my HAI Omni Pro panel, it has a >>>> normal serial >>>> connection, that when I connect to my windows pc and run >>>> Hyperterminal, I am >>>> able to send and receive ascii messages. >>>> >>>> My MH server is running in Linux (Ubuntu 8.06) and when I use the >>>> "Screen" >>>> app I am able to see ascii messages coming from the Omni Pro, I >>>> have tested >>>> this with the MH user on the pc, so I don't think I have a serial port >>>> access problem. >>>> >>>> I added these lines to my mh private ini file >>>> >>>> ProLink_port=/dev/ttyS0 >>>> ProLink_baudrate=9600 >>>> ProLink_datatype=raw >>>> ProLink_parity=none >>>> ProLink_handshake=none >>>> ProLink_databits=8 >>>> ProLink_stopbits=1 >>>> >>>> And I created a new code file: prolink_serial.pl >>>> >>>> $prolink_serial_in = new Serial_Item(undef, undef, 'ProLink'); >>>> >>>> if (my $data = said $prolink_serial_in) { >>>> print "ProLink Says : $data\n"; >>>> } >>>> >>>> I add the file into the user code in MH and it shows no errors. >>>> >>>> The problem is I see no data coming in, I am a newbie to MH and >>>> really need >>>> some guidance with what to do to get this to work. >>>> >>>> Thanks >>>> Derek > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ________________________________________________________ > To unsubscribe from this list, go to: > http://sourceforge.net/mail/?group_id=1365 > > > -- View this message in context: http://www.nabble.com/Serial_Item-for-ascii-data---please-help-tp20029807p20151308.html Sent from the Misterhouse - User mailing list archive at Nabble.com. |