ADICON Support Forum Applied Digital, Inc.
Page 1 of 1 1
Topic Options
#9059 - 01/29/03 07:30 PM Gary's RCS X-10 Thermostat Control
Anonymous
Unregistered



Gary contributed:

I've attached 4 CMAX snp files in prj form that I copied from my code.

I have my RCS set up on house code J using preset dim commands.

The "RCS decode mode from preset dims" code decodes the preset dim
commands coming from the RCS after a request has been sent and sets
variables with values to indicate the current mode (heat, cool, off,
auto, setback, fan)

http://www.appdigsupport.com/ADI_Files/RCSdecodemodefrompresetdims.prj
http://www.appdigsupport.com/ADI_Files/RCSdecodemodefrompresetdims.SNP
http://www.appdigsupport.com/ADI_Files/RCSdecodemodefrompresetdims.TCH

The "RCS decode temp from preset dim" code decodes the temperature from
the preset dim commands and stores it in different variables depending
on whether it is a set point or actual room temperature.

http://www.appdigsupport.com/ADI_Files/RCSdecodetempfrompresetdim.prj
http://www.appdigsupport.com/ADI_Files/RCSdecodetempfrompresetdim.SNP
http://www.appdigsupport.com/ADI_Files/RCSdecodetempfrompresetdim.TCH

The "RCS send new set point" takes the temperature stored in a variable
(entered on the Leopard) and determines the proper preset dim command to
send to the RCS to change the set point.

http://www.appdigsupport.com/ADI_Files/RCSsendnewsetpoint.prj
http://www.appdigsupport.com/ADI_Files/RCSsendnewsetpoint.SNP
http://www.appdigsupport.com/ADI_Files/RCSsendnewsetpoint.TCH

The "RCS request temp" shows how the request for setpoint or temp is
sent and identified so that the "RCS decode temp from preset dim" knows
what type of temp it is to decode

http://www.appdigsupport.com/ADI_Files/RCSrequesttemp.prj
http://www.appdigsupport.com/ADI_Files/RCSrequesttemp.SNP
http://www.appdigsupport.com/ADI_Files/RCSrequesttemp.TCH

There are quite a few lines of code here but it is not as bad as it
looks. Most of it is used for handling the preset dim decodes.

Gary

Top
#9060 - 01/30/03 08:54 AM Re: Gary's RCS X-10 Thermostat Control
JAL Offline
junior


Registered: 01/27/03
Posts: 27
Loc: Arizona
Any idea on how I can open these files so I can see the lines of code? I am interested in seeing how to request info from the RCS stats. I have the Bi-directional stat but only know how to send commands to it but not how to receive and set the info to variables.
Top
#9061 - 01/30/03 09:27 AM Re: Gary's RCS X-10 Thermostat Control
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6548
Loc: Montreal, QC, Canada
the person who submitted those files sent the program code as snippets instead of .pgm files (probably to show just the lines that apply to the function being discussed) so to see the code, open a blank C-Max session and then right click over the empty editor area and choose "Load code snippet from disk". You can then browse to wherever you stored the files and load the .snp file.
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#9062 - 07/20/05 02:11 AM Re: Gary's RCS X-10 Thermostat Control
mg Offline
newbie


Registered: 12/12/04
Posts: 7
Hi all,

am resurrecting an old message here, I've tried to download Gary's snippets of how to receive preset dim commands froman RCS thermostat, I;'m only able to save as an 'html' page when I try to save the .SNP code. Can anyone assist me in how to get a .snp file?

Rgds,
Martin

Top
#9063 - 07/20/05 10:54 AM Re: Gary's RCS X-10 Thermostat Control
Rex Offline
active contributor


Registered: 09/15/04
Posts: 106
Loc: UK
Here's how to do it:

Right-click the links ending with ".snp" then select Save Target As.. from the context menu. This should open the Save As dialog box. Select All Files in the Save as type dropdown box and edit File name so the extension is ".snp". Browse to an appropriate folder and click Save to transfer the file.

Top
#9064 - 07/22/05 03:24 AM Re: Gary's RCS X-10 Thermostat Control
mg Offline
newbie


Registered: 12/12/04
Posts: 7
Thanks very much Rex!

Rgds,
Martin

Top
#9065 - 10/05/05 06:41 AM Re: Gary's RCS X-10 Thermostat Control
gdm Offline
newbie


Registered: 01/25/05
Posts: 18
Loc: VA
Suppose you have 4 different house codes for 4 different thermostats in the same house. Does this code need to be repeated for each house code. e.g. Assume A,B,C,D are used for 4 zones. Is there a way to use one decoder scheme for all 4 zones. Gary
Top
#9066 - 10/05/05 11:26 AM Re: Gary's RCS X-10 Thermostat Control
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6548
Loc: Montreal, QC, Canada
I don't have any devices that use preset dims but my understanding is that you could set a variable as a flag to remember which thermostat it is that you're polling and then instead of stopping the timer in every possible response, catch the response in a variable and then when the timer expires after a few more seconds then is needed to get a response, store the setpoint or whatever value you obtained based on the flag value. For example, set the flag to 1 for house code A and then have code like (pseudo code):

IF Timer #1 becomes >4 //after 4 seconds
AND Variable flag = 1 //and house code A was polled
THEN Variable setpointA = Variable captured response //save response for house code A
THEN Timer #1 = 0 //and stop the timer

IF Timer #1 becomes >4 //after 4 seconds
AND Variable flag = 2 //and house code B was polled
THEN Variable setpointB = Variable captured response //save response for house code B
THEN Timer #1 = 0 //and stop the timer

and so on...
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#9067 - 09/06/06 11:28 AM Re: Gary's RCS X-10 Thermostat Control [Re: Guy Lavoie]
jrfuda Offline
junior


Registered: 08/10/03
Posts: 45
Loc: San Antonio, TX
What ever happened to these files? There seems to be replies to a topic that's no longer here in its original format?
_________________________
John http://fudaserve.net

Top
#9068 - 09/06/06 12:11 PM Re: Gary's RCS X-10 Thermostat Control [Re: jrfuda]
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6548
Loc: Montreal, QC, Canada
Some posts got lost during the forum migration. Looks like it happened here. Let me look around...
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#9069 - 09/06/06 12:33 PM Re: Gary's RCS X-10 Thermostat Control [Re: Guy Lavoie]
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6548
Loc: Montreal, QC, Canada
Found them!

Here they are along with Gary's original post:


Gary contributed:

I've attached 4 CMAX snp files in prj form that I copied from my code.

I have my RCS set up on house code J using preset dim commands.

The "RCS decode mode from preset dims" code decodes the preset dim
commands coming from the RCS after a request has been sent and sets
variables with values to indicate the current mode (heat, cool, off,
auto, setback, fan)

http://www.appdigusers.com/ADI_2/Gary/RCSdecodemodefrompresetdims.prj
http://www.appdigusers.com/ADI_2/Gary/RCSdecodemodefrompresetdims.SNP
http://www.appdigusers.com/ADI_2/Gary/RCSdecodemodefrompresetdims.TCH

The "RCS decode temp from preset dim" code decodes the temperature from
the preset dim commands and stores it in different variables depending
on whether it is a set point or actual room temperature.

http://www.appdigusers.com/ADI_2/Gary/RCSdecodetempfrompresetdim.prj
http://www.appdigusers.com/ADI_2/Gary/RCSdecodetempfrompresetdim.SNP
http://www.appdigusers.com/ADI_2/Gary/RCSdecodetempfrompresetdim.TCH

The "RCS send new set point" takes the temperature stored in a variable
(entered on the Leopard) and determines the proper preset dim command to
send to the RCS to change the set point.

http://www.appdigusers.com/ADI_2/Gary/RCSsendnewsetpoint.prj
http://www.appdigusers.com/ADI_2/Gary/RCSsendnewsetpoint.SNP
http://www.appdigusers.com/ADI_2/Gary/RCSsendnewsetpoint.TCH

The "RCS request temp" shows how the request for setpoint or temp is
sent and identified so that the "RCS decode temp from preset dim" knows
what type of temp it is to decode

http://www.appdigusers.com/ADI_2/Gary/RCSrequesttemp.prj
http://www.appdigusers.com/ADI_2/Gary/RCSrequesttemp.SNP
http://www.appdigusers.com/ADI_2/Gary/RCSrequesttemp.TCH

There are quite a few lines of code here but it is not as bad as it
looks. Most of it is used for handling the preset dim decodes.

Gary

Top
Page 1 of 1 1


Moderator:  Dan Smith, Monte G, ADI Tech Support, Guy Lavoie 
Hop to:
Who's Online
0 registered and 62 anonymous users online.
Recent Posts
Ocelot not working
by JPO
11/08/17 06:02 AM
Shout Box

Newest Members
brigiel, vevevie, zhutree, 416, saiqul
3003 Registered Users
Forum Stats
3003 Members
19 Forums
4004 Topics
23442 Posts

Max Online: 132 @ 11/13/16 10:07 AM
November
Su M Tu W Th F Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30