Comfort  Automation/ Security System Forums Home
Home Search search Menu menu Not logged in - Login | Register

not getting the counter value I am expecting
 Moderated by: slychiu Page:    1  2  Next Page Last Page  
 New Topic   Reply   Printer Friendly 
 Rate Topic 
AuthorPost
 Posted: Friday Oct 28th, 2016 10:07 pm
   PM  Quote  Reply 
1st Post
wexfordman
UCM Pi Users
 

Joined: Monday Jan 1st, 2007
Location: Cork, Ireland
Posts: 546
Status: 
Offline

  back to top

Hi,
Still sruggling with getting my heating working corretly, and I think the problem is down to counters and adding etc.
Here is my response
Get counter 91

get negative
add living_stback_tmp
set living_stback_tmp
Get counter living_dset_temp
add living_stback_tmp
Set living_stback_temp
get counter heat_hyst
Get negative
add living_stback_tmp
Set heat_livingdelta
Do heat living allign

Before I execute, my counter value are as follows

counter 91 = 22
living_stback_tmp =100
living_dset_temp=25
heat_hyst= 2

After running, my values are
counter 91 = 2
living_stback_tmp =280
living_dset_temp=25
heat_hyst = 2
livingdelta = 65535


Can anyone explain this, as these are not the results I would expect at all!

Last edited on Friday Oct 28th, 2016 10:33 pm by wexfordman



 Posted: Friday Oct 28th, 2016 10:17 pm
   PM  Quote  Reply 
2nd Post
Ingo
UCM Pi Users


Joined: Sunday Jan 21st, 2007
Location: South Africa
Posts: 557
Status: 
Offline

  back to top

Please post the response in a code tags. What value do you get and what do you expect?

Last edited on Friday Oct 28th, 2016 10:19 pm by Ingo



 Posted: Friday Oct 28th, 2016 10:20 pm
   PM  Quote  Reply 
3rd Post
wexfordman
UCM Pi Users
 

Joined: Monday Jan 1st, 2007
Location: Cork, Ireland
Posts: 546
Status: 
Offline

  back to top

have them listed in the post (format cooming out all messed up, sorry)


 counter 91 =22

livingstback_tmp=280

livingdelta =65535

Last edited on Friday Oct 28th, 2016 10:22 pm by wexfordman



 Posted: Friday Oct 28th, 2016 10:21 pm
   PM  Quote  Reply 
4th Post
wexfordman
UCM Pi Users
 

Joined: Monday Jan 1st, 2007
Location: Cork, Ireland
Posts: 546
Status: 
Offline

  back to top

sorry ingo, what do you mean code tags ?



 Posted: Friday Oct 28th, 2016 10:24 pm
   PM  Quote  Reply 
5th Post
Ingo
UCM Pi Users


Joined: Sunday Jan 21st, 2007
Location: South Africa
Posts: 557
Status: 
Offline

  back to top

When you post you can wrap the text in tags. See one of the options when pressing 'reply' - NOT 'quick reply'.



 Posted: Friday Oct 28th, 2016 10:34 pm
   PM  Quote  Reply 
6th Post
wexfordman
UCM Pi Users
 

Joined: Monday Jan 1st, 2007
Location: Cork, Ireland
Posts: 546
Status: 
Offline

  back to top

sorry, done now :)



 Posted: Friday Oct 28th, 2016 11:08 pm
   PM  Quote  Reply 
7th Post
Ingo
UCM Pi Users


Joined: Sunday Jan 21st, 2007
Location: South Africa
Posts: 557
Status: 
Offline

  back to top

Should the answer be '101'?



 Posted: Friday Oct 28th, 2016 11:16 pm
   PM  Quote  Reply 
8th Post
wexfordman
UCM Pi Users
 

Joined: Monday Jan 1st, 2007
Location: Cork, Ireland
Posts: 546
Status: 
Offline

  back to top

Ingo wrote: Should the answer be '101'?

living_stback_temp should b 103, but is 280

living_delta should be 101 but is 95535

Last edited on Friday Oct 28th, 2016 11:17 pm by wexfordman



 Posted: Friday Oct 28th, 2016 11:30 pm
   PM  Quote  Reply 
9th Post
Ingo
UCM Pi Users


Joined: Sunday Jan 21st, 2007
Location: South Africa
Posts: 557
Status: 
Offline

  back to top

I'll let Cytech take a look. I think it has to do with High|Low bytes especially the very first -22 which is returned in two steps. First one by LastActionValue and next by using Action Code 38.



 Posted: Friday Oct 28th, 2016 11:43 pm
   PM  Quote  Reply 
10th Post
wexfordman
UCM Pi Users
 

Joined: Monday Jan 1st, 2007
Location: Cork, Ireland
Posts: 546
Status: 
Offline

  back to top

thanks Ingo



 Posted: Saturday Oct 29th, 2016 05:06 pm
   PM  Quote  Reply 
11th Post
Ingo
UCM Pi Users


Joined: Sunday Jan 21st, 2007
Location: South Africa
Posts: 557
Status: 
Offline

  back to top

I did a quick test on your code and found that at the point shown below the results do not appear to be correct as per the documentation. Perhaps I am missing something but adding immediate '78' works but adding a counter with value '78' doesn't.
get counter 91
get negative
add living_stback_tmp
set living_stback_tmp
Get counter living_dset_temp
add living_stback_tmp <-- Here the result is not as expected.
Set living_stback_temp
get counter heat_hyst
Get negativeadd living_stback_tmp
Set heat_livingdelta
Do heat living allign



 Posted: Sunday Oct 30th, 2016 12:13 am
   PM  Quote  Reply 
12th Post
wexfordman
UCM Pi Users
 

Joined: Monday Jan 1st, 2007
Location: Cork, Ireland
Posts: 546
Status: 
Offline

  back to top

Thanks again ingo,

Cytech, can you help with this one?



 Posted: Sunday Oct 30th, 2016 06:06 am
   PM  Quote  Reply 
13th Post
tech07
Administrator
 

Joined: Thursday Jan 29th, 2009
Location: Singapore
Posts: 106
Status: 
Offline

  back to top

Is this what you expect and not getting?

get counter 91 (= 22)
get negative   ( -22)
add living_stback_tmp (+ 100 = 78)
set living_stback_tmp ( 78)
Get counter living_dset_temp (25 )

add living_stback_tmp (+78 = 103)

Set living_stback_temp (103)

get counter heat_hyst (2)

Get negative (-2)

add living_stback_tmp (+103 = 101)

Set heat_livingdelta (101)

counter 91 is not changed by the code but you say it becomes 2 so there may be other responses changing it
For testing can you send the cclx file to support@cytech.biz as it will be easier to simulate with the actual code

Last edited on Monday Oct 31st, 2016 01:15 pm by slychiu



 Posted: Sunday Oct 30th, 2016 03:23 pm
   PM  Quote  Reply 
14th Post
wexfordman
UCM Pi Users
 

Joined: Monday Jan 1st, 2007
Location: Cork, Ireland
Posts: 546
Status: 
Offline

  back to top

tech07 wrote: Is this what you expect and not getting?

get counter 91 (= 22)
get negative   ( -22)
add living_stback_tmp (+ 100 = 78)
set living_stback_tmp ( 78)
Get counter living_dset_temp (25 )add living_stback_tmp (+78 = 103)Set living_stback_temp (103)get counter heat_hyst (2)Get negative (-2)add living_stback_tmp (+103 = 101)Set heat_livingdelta (101)

counter 91 is not changed by the code but you say it becomes 2 so there may be other responses changing it
For testing can you send the cclx file to support@cytech.biz as it will be easier to simulate with the actual code


Hi,
Thats the problem alright, I am not getting the correct value in either living_stbck_temp or in heat_livingdelta
I have emailed my file, thanks.
Regards,Eamon



 Posted: Monday Oct 31st, 2016 05:52 pm
   PM  Quote  Reply 
15th Post
slychiu
Administrator


Joined: Saturday Apr 29th, 2006
Location: Singapore
Posts: 5493
Status: 
Offline

  back to top

There seems to be something wrong. we are investigating



 Posted: Monday Oct 31st, 2016 05:54 pm
   PM  Quote  Reply 
16th Post
wexfordman
UCM Pi Users
 

Joined: Monday Jan 1st, 2007
Location: Cork, Ireland
Posts: 546
Status: 
Offline

  back to top

slychiu wrote: There seems to be something wrong. we are investigating
Thanks slychiu, been doingng my head in the last few weeks, was convinced I had it wrong.



 Posted: Tuesday Nov 1st, 2016 08:41 am
   PM  Quote  Reply 
17th Post
slychiu
Administrator


Joined: Saturday Apr 29th, 2006
Location: Singapore
Posts: 5493
Status: 
Offline

  back to top

We have found a bug with add counter and add sensor actions and will get a new version with the fix soon
Thanks for the information



 Posted: Tuesday Nov 1st, 2016 01:22 pm
   PM  Quote  Reply 
18th Post
wexfordman
UCM Pi Users
 

Joined: Monday Jan 1st, 2007
Location: Cork, Ireland
Posts: 546
Status: 
Offline

  back to top

Brilliant thats slychiu.
How long do you think before a fix ? Winter encroaches, and I need this to get my scs thermostat controlled heating working 

Regards,Eamon

Last edited on Tuesday Nov 1st, 2016 01:23 pm by wexfordman



 Posted: Wednesday Nov 2nd, 2016 04:46 pm
   PM  Quote  Reply 
19th Post
slychiu
Administrator


Joined: Saturday Apr 29th, 2006
Location: Singapore
Posts: 5493
Status: 
Offline

  back to top

ULT 7.115 Beta can be diwnloaded from http://www.cytech.biz/product_details.php?item_id=210 to fix this problem
Please test and let me know that it fixes this problem for you



 Posted: Wednesday Nov 2nd, 2016 05:13 pm
   PM  Quote  Reply 
20th Post
wexfordman
UCM Pi Users
 

Joined: Monday Jan 1st, 2007
Location: Cork, Ireland
Posts: 546
Status: 
Offline

  back to top

Thanks slychiu, I will have a look this evening after work, thanks for quick response



 Current time is 07:50 amPage:    1  2  Next Page Last Page  
Top




UltraBB 1.172 Copyright © 2007-2014 Data 1 Systems