Look at the RCS_xxxx.pm files in the /lib folder for examples. These
thermostats communicate simply with 232 and 485.
-J
On Fri, 16 Mar 2007, Pilfos wrote:
>
> Hello,
>
> I'm starting to study MisterHouse "architecture", and before going deep I
> would like to know If it will be easy to develop a new serial protocol.
>
> I have a "custom" hardware, IHC from Denmark. This hardware has it's own
> protocol that works with RS485, but I could communicate with a RS232/RS485
> converter. Basically, I can send & receive hex numbers in ascii. For
> example, each message that I send or receive, start with 0x02. Each message
> ends with 0x17. After the 0x17 always a CRC appears, that is the sum of all
> the numbers of the message. For example, to get the status of all the
> outputs of the system:
>
> a) IHC is sending this commmand: 02 1C 30 17 65 ( The system is ready)
>
> b) After that, the PC sends: 02 12 82 17 AD (ask for Getting the output
> status, lights)
>
> c) IHC answers: 02 1C 83 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 17
> B9 (Return the outputs on)
>
> There is 1 light ON.
>
> There are commands to switch ON & switch OFF outputs, requests the inputs
> (buttons pressed).
>
> As you can see the protocol is easy to understand. Is there any source code
> with sending & receiving ascii through serial, with events, which I could
> modify easily under Misterhouse?
>
> Thanks in advance!
>
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV________________________________________________________
To unsubscribe from this list, go to:
http://sourceforge.net/mail/?group_id=1365