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

Rs232 Comms
 Moderated by: slychiu Page:    1  2  Next Page Last Page  
 New Topic   Reply   Printer Friendly 
 Rate Topic 
AuthorPost
 Posted: Monday Jul 30th, 2007 06:55 am
   PM  Quote  Reply 
1st Post
dcrera
Comfort Installers


Joined: Monday Aug 7th, 2006
Location: Durban, South Africa
Posts: 279
Status: 
Offline

  back to top

Hi,

When I query an output status eg O?89, I am returned with either OP8900 or OP8901 using Hyperterm.

If I query the status of an output using a Response with Get Value, I am returned a value of OK

Please explain why I am not getting either OP8900 or OP8901

Thanks

Last edited on Thursday Aug 2nd, 2007 12:15 pm by slychiu



 Posted: Monday Jul 30th, 2007 07:20 am
   PM  Quote  Reply 
2nd Post
adlim
Member


Joined: Wednesday May 3rd, 2006
Location: Singapore
Posts: 210
Status: 
Offline

  back to top

That action (Get ouput state) is meant for conditional programming and not meant for querying.



 Posted: Monday Jul 30th, 2007 07:46 am
   PM  Quote  Reply 
3rd Post
dcrera
Comfort Installers


Joined: Monday Aug 7th, 2006
Location: Durban, South Africa
Posts: 279
Status: 
Offline

  back to top

Hi,

How can I create a response that will return the status of an output ?

I am doing a touch screen interface and I want to report the status of numerous outputs.

Thanks

 



 Posted: Monday Jul 30th, 2007 07:51 am
   PM  Quote  Reply 
4th Post
adlim
Member


Joined: Wednesday May 3rd, 2006
Location: Singapore
Posts: 210
Status: 
Offline

  back to top

Doesn't the O? command work like you mentioned earlier? I would suggest that you change your program such that it would be able to handle the replies.



 Posted: Monday Jul 30th, 2007 08:01 am
   PM  Quote  Reply 
5th Post
dcrera
Comfort Installers


Joined: Monday Aug 7th, 2006
Location: Durban, South Africa
Posts: 279
Status: 
Offline

  back to top

Hi,

The O? only works for single commands, I want to do a group using R! prefix.
Any ideas or alternatives for a group query.
 
Thanks again
 

Last edited on Thursday Aug 2nd, 2007 12:16 pm by slychiu



 Posted: Monday Jul 30th, 2007 08:29 am
   PM  Quote  Reply 
6th Post
adlim
Member


Joined: Wednesday May 3rd, 2006
Location: Singapore
Posts: 210
Status: 
Offline

  back to top

You could make use of the Y? or y? commands instead then.



 Posted: Monday Jul 30th, 2007 08:32 am
   PM  Quote  Reply 
7th Post
dcrera
Comfort Installers


Joined: Monday Aug 7th, 2006
Location: Durban, South Africa
Posts: 279
Status: 
Offline

  back to top

Hi,

I tried that.

I expected a flood of status feedbacks but all I got was OK.

Thanks

 

 



 Posted: Monday Jul 30th, 2007 08:47 am
   PM  Quote  Reply 
8th Post
adlim
Member


Joined: Wednesday May 3rd, 2006
Location: Singapore
Posts: 210
Status: 
Offline

  back to top

Could it be due to the version of the UCM/main board?



 Posted: Monday Jul 30th, 2007 09:07 am
   PM  Quote  Reply 
9th Post
dcrera
Comfort Installers


Joined: Monday Aug 7th, 2006
Location: Durban, South Africa
Posts: 279
Status: 
Offline

  back to top

Hi,

I am using the UCM/Ethernet. What version no is compatible ?

Thanks

 



 Posted: Monday Jul 30th, 2007 03:08 pm
   PM  Quote  Reply 
10th Post
ident
Administrator


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

  back to top

Not all UCM/Ethernet and Comfort versions support the Y? and y? commands. These were introduced at various stages over the years
Can you use the V? command (gives you Comfort version) and U? (UCM Version) and let us know what the replies are


The R! command causes Responses to be executed. Get Value of Ouput within the Response returns the value of the output to the next Action in the Response.
eg
Get Output 1
If value > 0 then...
Else
...
Endif

You can see from the above example , that it does not cause a OP reply on the UCM



Instead You can use the DA command (DO Action). DA4D 01 is Do Action 77 , 01 which means Get Output 1

This replies with RA followed by the value returned by the action, ie the value of Output 1
eg
DA4D10  (Get Output 16 - values are in hexadecimal)
RA01 (Return Value 1, meaning Output 16 is on)

I am not exactly sure what you want to achieve but I hope this is what you require




 Posted: Tuesday Jul 31st, 2007 04:45 am
   PM  Quote  Reply 
11th Post
dcrera
Comfort Installers


Joined: Monday Aug 7th, 2006
Location: Durban, South Africa
Posts: 279
Status: 
Offline

  back to top

Hi,

If DO would will give me the disired results then that's what I will DO.

Thanks

 



 Posted: Wednesday Aug 1st, 2007 06:49 am
   PM  Quote  Reply 
12th Post
dcrera
Comfort Installers


Joined: Monday Aug 7th, 2006
Location: Durban, South Africa
Posts: 279
Status: 
Offline

  back to top

Hi,

I tried this but it amounts to sending individual commands to the Comfort.

Let me explain in more detail as to what I am looking for.

Each lighting zone(a room) can have one or many lights, using touch screen control, when I navigate to a zone, I want to see want's On or Off.

To query a zone, I would like to have a response that will query specific outputs on that zone eg O?89, O?81 etc and based on the response eg OP8901/00 I can state that the Lounge light is On or OFF.

Can you look into :

1. Query an Input or Output in a Response

2. Have a Response with raw RS232 commands

 
Thanks



 Posted: Wednesday Aug 1st, 2007 01:06 pm
   PM  Quote  Reply 
13th Post
ident
Administrator


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

  back to top

Only the Y? command will give you all the outputs. Give us the Comfort and UCM version numbers to check if these will work for your system



 Posted: Wednesday Aug 1st, 2007 06:48 pm
   PM  Quote  Reply 
14th Post
dcrera
Comfort Installers


Joined: Monday Aug 7th, 2006
Location: Durban, South Africa
Posts: 279
Status: 
Offline

  back to top

Hi,

UCM chip is 5.92

Version is FE0536222001

Y? retruns Y?0000

Comfort Ultra version 5.054

Thanks   



 Posted: Thursday Aug 2nd, 2007 02:50 am
   PM  Quote  Reply 
15th Post
adlim
Member


Joined: Wednesday May 3rd, 2006
Location: Singapore
Posts: 210
Status: 
Offline

  back to top

Y?0000 would mean all outputs 1-64 are all off.



 Posted: Thursday Aug 2nd, 2007 05:00 am
   PM  Quote  Reply 
16th Post
dcrera
Comfort Installers


Joined: Monday Aug 7th, 2006
Location: Durban, South Africa
Posts: 279
Status: 
Offline

  back to top

Hi,

I now see where we are missing each other.

The outputs I was referring to was SCS/RIO outputs.

Any alternatives in this area ?

Please help me with this bit of confusion.

On the response page/function, I have fixed all the responses numbers I would be using via the touch screen interface. But of lately after adding more responses and downloading to Comfort, the reponses numbers are not in sync.

eg sending RS232 commands for a specific response is being executed on another response.

Any thoughts on why this might be happening ?

Thanks again

 

 



 Posted: Thursday Aug 2nd, 2007 05:18 am
   PM  Quote  Reply 
17th Post
adlim
Member


Joined: Wednesday May 3rd, 2006
Location: Singapore
Posts: 210
Status: 
Offline

  back to top

If you want the output status of the RIO outputs, you should send y? and not Y? (note the lower case character) to query.

As for the wrong response being executed, what string are you sending? Note that Comfort II Ultra has 2 byte responses, so did you send to the right response?



 Posted: Thursday Aug 2nd, 2007 05:30 am
   PM  Quote  Reply 
18th Post
dcrera
Comfort Installers


Joined: Monday Aug 7th, 2006
Location: Durban, South Africa
Posts: 279
Status: 
Offline

  back to top

Hi,
Thanks for clearing this one up, I will test and feed back.

With regards to the response numbers, I am pretty sure I am using the right code.

Take this example at one stage response number 100 was TV Room Lights, RS232 command sent is  R!64.

If I look at my response table now, Tv Room Lights shows up fixed in response number 116

Sending R!74 is turning some other outputs on,  but sending R!64 turns the Tv Room Lights on.

It would seem that the response numbers are out of sync.

Thanks



 Posted: Thursday Aug 2nd, 2007 12:25 pm
   PM  Quote  Reply 
19th Post
slychiu
Administrator


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

  back to top

adlim wrote: Y?0000 would mean all outputs 1-64 are all off.


Correction to this statement
Y?0000 means that 16 outputs (1 to 16 are off)
The parameter consists of inidividual bits representing an output
eg
Y?858F means
1st byte 85 is for outputs 1 to 8, 1st byte 8F is for  outputs 9 to 16
The least significant bit is the lowest numbered output

In the example
O/P 1 is ON
O/P 2 is OFF
O/P 3 is On
O/P 4 is Off
O/P 5 is Off
O/P 6 is Off
O/P 7 is Off
O/P 8 is ON

O/P 9 is ON
O/P 10 is ON
O/P 11 is On
O/P 12 is ON
O/P 13 is Off
O/P 14 is Off
O/P 15 is Off
O/P 16 is ON

There are only 16 outputs reported because there are no slaves
The command only reports outputs which exist

There is a similar command for Inputs/Zones Z? and for RIO inputs z?

I hope this makes it clearer





 Posted: Thursday Aug 2nd, 2007 12:48 pm
   PM  Quote  Reply 
20th Post
dcrera
Comfort Installers


Joined: Monday Aug 7th, 2006
Location: Durban, South Africa
Posts: 279
Status: 
Offline

  back to top

Thanks for that, I will play around with this and feed back soon.

Would I be able to see outputs status for all of my 12 SCS/RIO's ?

Also,

On the response page/function, I have fixed all the responses numbers I would be using via the touch screen interface. But of lately after adding more responses and downloading to Comfort, the reponses numbers are not in sync.


Take this example at one stage response number 100 was TV Room Lights, RS232 command sent is  R!64.

If I look at my response table now, Tv Room Lights shows up fixed in response number 116

Sending R!74 is turning some other outputs on,  but sending R!64 turns the Tv Room Lights on.

It would seem that the response numbers are out of sync.




 Current time is 01:28 pmPage:    1  2  Next Page Last Page  
Top




UltraBB 1.172 Copyright © 2007-2014 Data 1 Systems