
© Copyright 2006 Autonomic Controls, Inc.
- 7 -
Revision 1, Build 1171 www.autonomichome.com
© Copyright 2006 Autonomic Controls, Inc
Programming the HAI to communicate with MCE.
Basic Concepts
Sending Commands to Media Center
The Omni Send Message command allows you to send any of the text messages through the
Pro-Link serial port. This is what will be used to send messages through the serial connection
to the Autonomic Controls software running on the host Media Center PC.
The message is sent out through the specified Pro-Link port exactly as the message was
entered in Setup | Names | Message.
The Autonomic Controls server requires all commands to be terminated with a carriage return
or line feed. Carriage returns and line feed characters are not automatically appended to the
end of HAI messages. To send ASCII control as part of the message, you must use the caret
"^" character in the message. This character specifics that the next character is to be
interpreted as an ASCII control character, such as "^M" to represent a carriage return.
Each message can be up to 15 characters long. To send a longer message, simply program two
messages to be sent one after the other.
Receiving Feedback from Media Center
Pro-Link also has the capability to monitor the serial port for incoming text messages. When a
text message is received, Pro-Link searches through all 128 messages for a matching message.
If one is found, the Program Command (macro) corresponding to the matching message is
activated. It is then possible to use a “When message cmd…” program in the Omni to take
action based on Media Center feedback.
When receiving an ASCII message that is over 15 characters, OmniPro II only processes the
last 15 characters of the message.
Pro-Link determines that a message has been received when:
• One or more characters have been received followed by 100 ms of silence
• One or more characters followed by a carriage return character are received
• One or more characters followed by a line feed character are received
It is not necessary to enter the terminating carriage return or line feed character as part of the
message name.
Komentarze do niniejszej Instrukcji