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

Building RS232 commands
 Moderated by: slychiu
 New Topic   Reply   Printer Friendly 
 Rate Topic 
AuthorPost
 Posted: Thursday Jun 4th, 2009 09:27 pm
   PM  Quote  Reply 
1st Post
juwi_uk
Member


Joined: Friday May 25th, 2007
Location: Newbury, United Kingdom
Posts: 1255
Status: 
Offline

  back to top

Hi,

I have a question on  the "Escape" character 15.

I assume this applies to ZWave ID's as with the dim value etc as both can take "15" or "255" as valid settings, right?

So if I need to command for say  ID 15 and 16 in a basic commannd (multicast then by type) ,  does the command string look like

197,{ucm#},1, {# of ID's}, 15. 15, 16 , {dim level}

But does the {# of ID's}  include or exclude the Escape Character(s); ie is it 2 or 3 in the above example?

Regards

Julian

 

 

 

 

 



 Posted: Friday Jun 5th, 2009 12:35 am
   PM  Quote  Reply 
2nd Post
ident
Administrator


Joined: Wednesday Aug 9th, 2006
Location: Singapore
Posts: 3493
Status: 
Offline

  back to top

The number of ids should exclude the escape character
The string in action 197 is parsed by Comfort to remove the escape characters before they get sent to the UCM/Zwave
The need for escape is just to handle the 255 byte which is a terminator in action codes (a remnant of keypad programming)



 Posted: Friday Jun 5th, 2009 04:25 am
   PM  Quote  Reply 
3rd Post
juwi_uk
Member


Joined: Friday May 25th, 2007
Location: Newbury, United Kingdom
Posts: 1255
Status: 
Offline

  back to top

OK

So the {# of ID}'s  value itself doesn't include the extra escape characters.

But if the {#of ID's} is 15 itself then it's 15,15 before the first real ID value is listed in the string?

Julian

 

 

 

Last edited on Friday Jun 5th, 2009 04:25 am by juwi_uk



 Posted: Friday Jun 5th, 2009 08:17 am
   PM  Quote  Reply 
4th Post
ident
Administrator


Joined: Wednesday Aug 9th, 2006
Location: Singapore
Posts: 3493
Status: 
Offline

  back to top

that is correct (I think)



 Posted: Friday Jun 5th, 2009 09:26 am
   PM  Quote  Reply 
5th Post
Ingo
UCM Pi Users


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

  back to top

Correct me if I am wrong but the ucm# is actually 16 + UCM#, I think.... UCM01 in the system will have an ID of 17, UCM02 will be 18 and so on...

Ingo



 Posted: Friday Jun 5th, 2009 09:40 am
   PM  Quote  Reply 
6th Post
ident
Administrator


Joined: Wednesday Aug 9th, 2006
Location: Singapore
Posts: 3493
Status: 
Offline

  back to top

Yes you are right. The 1st UCM  is 17, so you dont have to worry about an ID of 15, as it does noty exist



 Current time is 06:44 am
Top




UltraBB 1.172 Copyright © 2007-2014 Data 1 Systems