Which approach to use for new hardware
Posted: Tue Oct 18, 2011 8:56 am
Hi,
I've just taken the plunge and ordered a TR60 RS485 Thermostat form the US (I'm in the UK). Whlie its in transit I want to start on the interface to Housebot. I was hoping someone could give me some advice on which approach to use? I'm going to use an RS232 converter so it will be an RS232 interface.
How the TR60 works
The TR60 can be polled using a variety of messages (of variable length) and returns a load of ASCII characters in its respone (again variable length). For example in terminal you type “A=1 R=1” which is a status request for a TR60 at address 1, and returns something like: "A=00 O=1 Z=1 T=68 SP=70 SPH=70 SPC= 74 M=0 F=0". I have the full protocol documentation.
What I want to do:
1) Display all current thermostat settings in housebot / remote - i.e. poll all the settings and display them or mirror them in some housebot variables
2) Set all current thermostat settings in housebot / remote
Options for attack
It seems like there are several options for attacking this:
1) Use the "Generic Serial Plugin" as in the online tutorial here: http://www.housebot.com/frame_content_tutorials.htm; and try to exploit the existing capability
2) Write a VB script (I've only ever written very basic scripts in VB using housebot)
3) Write a new hardware and/or device plugin
Questions
What do people suggest? Has anyone done anything similar? Will option 1) provide me with all the flexibilty I need? Do I really need to do option 3) - I don't really understand what this involves?
I have basic C/C++ skills and am happy with scripting.
Thanks in advance,
Z.
I've just taken the plunge and ordered a TR60 RS485 Thermostat form the US (I'm in the UK). Whlie its in transit I want to start on the interface to Housebot. I was hoping someone could give me some advice on which approach to use? I'm going to use an RS232 converter so it will be an RS232 interface.
How the TR60 works
The TR60 can be polled using a variety of messages (of variable length) and returns a load of ASCII characters in its respone (again variable length). For example in terminal you type “A=1 R=1” which is a status request for a TR60 at address 1, and returns something like: "A=00 O=1 Z=1 T=68 SP=70 SPH=70 SPC= 74 M=0 F=0". I have the full protocol documentation.
What I want to do:
1) Display all current thermostat settings in housebot / remote - i.e. poll all the settings and display them or mirror them in some housebot variables
2) Set all current thermostat settings in housebot / remote
Options for attack
It seems like there are several options for attacking this:
1) Use the "Generic Serial Plugin" as in the online tutorial here: http://www.housebot.com/frame_content_tutorials.htm; and try to exploit the existing capability
2) Write a VB script (I've only ever written very basic scripts in VB using housebot)
3) Write a new hardware and/or device plugin
Questions
What do people suggest? Has anyone done anything similar? Will option 1) provide me with all the flexibilty I need? Do I really need to do option 3) - I don't really understand what this involves?
I have basic C/C++ skills and am happy with scripting.
Thanks in advance,
Z.