Comfort Home Automation/ Security System Forums Home
 Search       Members   Calendar   Help   Home 
Search by username
Not logged in - Login | Register 

Rs232 Comms
 Moderated by: slychiu, adlim  
 New Topic   Reply   Print 
AuthorPost
dcrera
Comfort Installers
 

Joined: Monday Aug 7th, 2006
Location: South Africa
Posts: 134
Status:  Offline
 Posted: Monday Jul 30th, 2007 07:55 am
 Quote  Reply 
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 01:15 pm by slychiu

adlim
Member


Joined: Wednesday May 3rd, 2006
Location: Singapore
Posts: 210
Status:  Offline
 Posted: Monday Jul 30th, 2007 08:20 am
 Quote  Reply 
That action (Get ouput state) is meant for conditional programming and not meant for querying.

dcrera
Comfort Installers
 

Joined: Monday Aug 7th, 2006
Location: South Africa
Posts: 134
Status:  Offline
 Posted: Monday Jul 30th, 2007 08:46 am
 Quote  Reply 
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

 

adlim
Member


Joined: Wednesday May 3rd, 2006
Location: Singapore
Posts: 210
Status:  Offline
 Posted: Monday Jul 30th, 2007 08:51 am
 Quote  Reply 
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.

dcrera
Comfort Installers
 

Joined: Monday Aug 7th, 2006
Location: South Africa
Posts: 134
Status:  Offline
 Posted: Monday Jul 30th, 2007 09:01 am
 Quote  Reply 
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 01:16 pm by slychiu

adlim
Member


Joined: Wednesday May 3rd, 2006
Location: Singapore
Posts: 210
Status:  Offline
 Posted: Monday Jul 30th, 2007 09:29 am
 Quote  Reply 
You could make use of the Y? or y? commands instead then.

dcrera
Comfort Installers
 

Joined: Monday Aug 7th, 2006
Location: South Africa
Posts: 134
Status:  Offline
 Posted: Monday Jul 30th, 2007 09:32 am
 Quote  Reply 
Hi,

I tried that.

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

Thanks

 

 

adlim
Member


Joined: Wednesday May 3rd, 2006
Location: Singapore
Posts: 210
Status:  Offline
 Posted: Monday Jul 30th, 2007 09:47 am
 Quote  Reply 
Could it be due to the version of the UCM/main board?

dcrera
Comfort Installers
 

Joined: Monday Aug 7th, 2006
Location: South Africa
Posts: 134
Status:  Offline
 Posted: Monday Jul 30th, 2007 10:07 am
 Quote  Reply 
Hi,

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

Thanks

 

ident
Administrator


Joined: Wednesday Aug 9th, 2006
Location: Singapore
Posts: 286
Status:  Offline
 Posted: Monday Jul 30th, 2007 04:08 pm
 Quote  Reply 
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


dcrera
Comfort Installers
 

Joined: Monday Aug 7th, 2006
Location: South Africa
Posts: 134
Status:  Offline
 Posted: Tuesday Jul 31st, 2007 05:45 am
 Quote  Reply 
Hi,

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

Thanks

 

dcrera
Comfort Installers
 

Joined: Monday Aug 7th, 2006
Location: South Africa
Posts: 134
Status:  Offline
 Posted: Wednesday Aug 1st, 2007 07:49 am
 Quote  Reply 
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

ident
Administrator


Joined: Wednesday Aug 9th, 2006
Location: Singapore
Posts: 286
Status:  Offline
 Posted: Wednesday Aug 1st, 2007 02:06 pm
 Quote  Reply 
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

dcrera
Comfort Installers
 

Joined: Monday Aug 7th, 2006
Location: South Africa
Posts: 134
Status:  Offline
 Posted: Wednesday Aug 1st, 2007 07:48 pm
 Quote  Reply 
Hi,

UCM chip is 5.92

Version is FE0536222001

Y? retruns Y?0000

Comfort Ultra version 5.054

Thanks   

adlim
Member


Joined: Wednesday May 3rd, 2006
Location: Singapore
Posts: 210
Status:  Offline
 Posted: Thursday Aug 2nd, 2007 03:50 am
 Quote  Reply 
Y?0000 would mean all outputs 1-64 are all off.

dcrera
Comfort Installers
 

Joined: Monday Aug 7th, 2006
Location: South Africa
Posts: 134
Status:  Offline
 Posted: Thursday Aug 2nd, 2007 06:00 am
 Quote  Reply 
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

 

 

adlim
Member


Joined: Wednesday May 3rd, 2006
Location: Singapore
Posts: 210
Status:  Offline
 Posted: Thursday Aug 2nd, 2007 06:18 am
 Quote  Reply 
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?

dcrera
Comfort Installers
 

Joined: Monday Aug 7th, 2006
Location: South Africa
Posts: 134
Status:  Offline
 Posted: Thursday Aug 2nd, 2007 06:30 am
 Quote  Reply 
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

slychiu
Administrator


Joined: Saturday Apr 29th, 2006
Location: Singapore
Posts: 1029
Status:  Offline
 Posted: Thursday Aug 2nd, 2007 01:25 pm
 Quote  Reply 
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



dcrera
Comfort Installers
 

Joined: Monday Aug 7th, 2006
Location: South Africa
Posts: 134
Status:  Offline
 Posted: Thursday Aug 2nd, 2007 01:48 pm
 Quote  Reply 
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:24 pm
Page:    1  2  Next Page Last Page  




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