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

Multiple DA's
 Moderated by: slychiu
 New Topic   Reply   Printer Friendly 
 Rate Topic 
AuthorPost
 Posted: Tuesday Jan 20th, 2009 06:31 pm
   PM  Quote  Reply 
1st Post
Richie
Member
 

Joined: Tuesday Jan 20th, 2009
Location:  
Posts: 3
Status: 
Offline

  back to top

Hi,

Quick question regarding the serial command interface.

Is it ok to spam out multiple DA's or should we be waiting for an RA before sending the next DA? (we are using an ethernet interface).

Reason I ask, is that I am having some issues when sending 5 or so DA's back to back without waiting.  Sometimes comfort acts on them, sometimes it does not.

The DA's are related to counters and the cbus interface.  For example the following is sent out...

<03>DAC5132F01<0d><03>DAC5132901<0d><03>DAC5132A01<0d><03>DAC5132C01<0d><03>DAC5132701<0d>

and we get a random number of RA's and CT's back.  The number of RA's do not match the number of DA's sent.  However the number of RA's match the number of CT's.  A sample return is shown below...

<03>RA00<0d><03>CT2F00<0d><03>RA00<0d><03>CT2A00<0d><03>RA00<0d><03>CT2700<0d>


Also, the spec document mentions the following as the byte return value for the RA.

"Note: The returned value may not necessarily be meaningful."

What exactly does this mean? I guess it is for actions that have no meaningful return value.


Cheers,

Richie.

 

Last edited on Tuesday Jan 20th, 2009 06:33 pm by Richie



 Posted: Wednesday Jan 21st, 2009 03:31 am
   PM  Quote  Reply 
2nd Post
slychiu
Administrator


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

  back to top

You may not have to wait for the DA but I think there needs te be a slight delay between the end of 1 message <CR> and the start of the next <STX>

RA is the return value of the action, Some or most actions have no return value eg Siren On. It is only query actions like Get Flag which have  a meaningful return value



 Posted: Wednesday Jan 21st, 2009 09:40 am
   PM  Quote  Reply 
3rd Post
Richie
Member
 

Joined: Tuesday Jan 20th, 2009
Location:  
Posts: 3
Status: 
Offline

  back to top

slychiu wrote: You may not have to wait for the DA but I think there needs te be a slight delay between the end of 1 message <CR> and the start of the next <STX>

RA is the return value of the action, Some or most actions have no return value eg Siren On. It is only query actions like Get Flag which have  a meaningful return value



ah !

In cases such as the siren on, will we still get an RA message?  I assume it would be RA00.  Dont have access to the alarm here at the moment to test it.

If we always get an RA, then it would probably be best to wait until we receive it before sending another DA (or after some timeout due to a failure of some sort).

Cheers,

Richie.



 Posted: Wednesday Jan 21st, 2009 12:15 pm
   PM  Quote  Reply 
4th Post
slychiu
Administrator


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

  back to top

You always get an  RA reply immediately, whether it is meaningful or not
Yes it would be much better to wait for the reply before sending the next command.
Can you reveal what it is that you are working on, wil it be useful for other users?



 Posted: Wednesday Jan 28th, 2009 06:15 pm
   PM  Quote  Reply 
5th Post
Richie
Member
 

Joined: Tuesday Jan 20th, 2009
Location:  
Posts: 3
Status: 
Offline

  back to top

slychiu wrote: You always get an  RA reply immediately, whether it is meaningful or not
Yes it would be much better to wait for the reply before sending the next command.
Can you reveal what it is that you are working on, wil it be useful for other users?



It is someone elses HomeSeer plugin for Comfort, which doesnt work correctly as it seems to spam out serial commands to comfort without waiting for any response.  I was trying to diagnose the problem.

I will probably be frequenting the forums often soon because I need to write one that works.  I am also hopefully about to start on some other comfort system integration with touch screen platform but need to get the details sorted (nda's etc) before I can say what it is.

Cheers,

Richie.



 Posted: Thursday Jan 29th, 2009 01:18 am
   PM  Quote  Reply 
6th Post
admin
Administrator


Joined: Saturday Mar 3rd, 2007
Location: Singapore
Posts: 1200
Status: 
Offline

  back to top

Good luck, let us know if you have any questions about the protocol



 Current time is 12:44 pm
Top




UltraBB 1.172 Copyright © 2007-2014 Data 1 Systems