Comfort Home Automation/ Security System Forums Home
 Search       Members   Calendar   Help   Home 
Search by username
Not logged in - Login | Register 
Comfort Home Automation/ Security System Forums > Comfort > UCM > Querying flag state using RS232

Querying flag state using RS232
 Moderated by: slychiu, adlim  
 New Topic   Reply   Print 
AuthorPost
Tas
Member
 

Joined: Monday Feb 11th, 2008
Location: London, United Kingdom
Posts: 12
Status:  Offline
 Posted: Thursday Oct 2nd, 2008 08:46 pm
 Quote  Reply 
Searched all the manuals and can't see a way to do this.

slychiu
Administrator


Joined: Saturday Apr 29th, 2006
Location: Singapore
Posts: 1029
Status:  Offline
 Posted: Thursday Oct 2nd, 2008 10:40 pm
 Quote  Reply 
Use the Do Action command (DA)
Action 132, 2. flag returns the state of the flag ie 0 or 1
Above is WRONG, Action 132, flag, 2 returns the state of the Flag ie 0 or 1
eg DA840302 means check Flag 3 (84 in hexadecimal is 132)
RAnn is the reply which is the flag state eg RA00 or RA01


Last edited on Friday Oct 31st, 2008 04:18 am by slychiu

Tas
Member
 

Joined: Monday Feb 11th, 2008
Location: London, United Kingdom
Posts: 12
Status:  Offline
 Posted: Thursday Oct 2nd, 2008 11:48 pm
 Quote  Reply 
This is great. I will try that.

Many Thanks,

Tas

Tas
Member
 

Joined: Monday Feb 11th, 2008
Location: London, United Kingdom
Posts: 12
Status:  Offline
 Posted: Thursday Oct 30th, 2008 10:40 pm
 Quote  Reply 
I've have been trying what you suggest but can't get it to work.

The response I get back from the "DA840203" command alternates between RAC2 and RAC0 which isn't what I expected.

Any idea what I might be doing wrong?

Thanks,

Tas

slychiu
Administrator


Joined: Saturday Apr 29th, 2006
Location: Singapore
Posts: 1029
Status:  Offline
 Posted: Friday Oct 31st, 2008 04:17 am
 Quote  Reply 
Sorry, my mistake. The correct syntax is
action 132, flag, 02 for check Flag
Actipn 132, flag, 01 for Set Flag
Action 132, flag, 00 for clear flag

In your case to check Flag 3, you need DA840302, not DA840203



 Current time is 12:24 pm




Powered by WowBB 1.7 - Copyright © 2003-2006 Aycan Gulez
We insist that you abide by the rules and policies stated below. Although the moderators of the Comfort Forums will attempt to keep all objectionable messages off this forum, it is not possible for us to filter all messages. All messages express the views of the author. Cytech Technology is not responsible for the content, views or advice of any message posted by members, including staff of Cytech. By registering for the forums, you warrant that you will not post any messages that are obscene, vulgar, of a sexual nature, abusive, hateful, threatening, of racist nature or otherwise in breach of any laws. Cytech reserves the right to remove, edit or move message or topic for any reason