From: Thorsten W. <tho...@we...> - 2007-06-01 05:31:31
|
I did a wiki artickel for my solution. I've added a new version of my code because now i can split the telegramms into the different messages but i could not tell MH which button is pressed... http://misterhouse.wikispaces.com/HS485+HA-System HS485-Wiki Pilfos wrote: > > I'll take a look at your code. > > Thanks! > > > Thorsten Weiss wrote: >> >> Hello Pilfos, >> i have a similar problem with my RS485 bus system from ELV. >> Sending commands over the webinterface also works , but i didn't know how >> to translate the received data into mh ... >> >> You don't need to define your items with a *.mht file, you could define >> your items alternatively in this way: >> >> use HS485_Item; >> $HS485 = new Group(); >> $HS485PCI1 = new HS485PCI; >> $Schalter1 = new HS485S_Item ('$HS485PCI1','00000e30','02'); >> $Schalter2 = new HS485S_Item ('$HS485PCI1','00000e30','03'); >> $HS485 -> add ($Schalter1, $Schalter2); >> >> i splitted my support for my hs485 system in two files. >> This modules based on the UPB_Device.pm and UPBPIM.pm modules of Jason >> Sharpee. >> >> regards, >> Thorsten >> > > -- View this message in context: http://www.nabble.com/Programming-a-new-serial-protocol-tf3417211.html#a10906919 Sent from the Misterhouse - User mailing list archive at Nabble.com. |