Ubiquity Applications Programming Interface (UAPI)for Controlling the Destiny Networks' Domain Controller via RS-232 Interfaces Version 2.6 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
OverviewThis document describes the basic UAPI protocol used to control the Domain Controller from external displays, keypads, and other controllers (hereafter referred to as the "controlling device") over RS-232. In this version, commands received can provide the "fully qualified absolute address" of the device to be controlled or the "relative address" of it. The fully qualified absolute address of the device can be used to control any device in the house. The relative address can only control devices located in the room in which the controlling device is located. For example, a display in the Family room can send a "lights on" command without specifying the Family room because the Domain Controller knows that the display is in the Family room. This latter case enables the same display to be used in other rooms (and even other houses) without additional programming. New in version 2.6 is that a serial port can be both a driver for an AV component (or other system) and a UAPI listener, but UAPI commands must be proceeded with the two characters "@#" and must be followed by the three characters "%^*".
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Direction of communicationFor communication over RS-232 the direction of communication is from the controlling device to the Domain Controller only. The Domain controller will not reply to or acknowledge the message. Initialization and Sequencing of CommandsAfter the serial line is up and running, the controlling device can initiate a command at any time by sending an ASCII string to the Domain 5000. No set up commands are required. Any command may be sent in any order. ChecksumThe ASCII commands do not have a checksum. Termination CharacterThe Domain Controller expects the linefeed character at the end of the command. Commands without the linefeed will not be processed. The linefeed character is "0A" in hexadecimal and is often represented as "\n".
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Leading zerosLeading zeros are not required. Therefore, values can be represented as 3 and 26, instead of 003 or 026 (however, 003 or 026 are allowed).
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
RS-232 Interface
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Commands:There are two types of commands:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Relative Address CommandsCommands that use the relative addresses of the devices in a room can only control those devices located in the room in which the controlling device is located (whose location is specified to the Domain Controller via the Design Module). The format of this type of command is: <device type abbreviation>:<value>\n where: <device type abbreviation> is defined in the list below ":" is the colon key <value> is the value to which all devices of this type will be set \n is "backslash n" representing a linefeed character
Room Scene
On/Off and Open/Close Devices
AV Entertainment
HVAC
Security System
Groups of Actions
Handsfree Automation
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Fully Qualified Absolute Address CommandsCommands that use the fully qualified absolute address of a device in the house have access to all of the devices in the house. These commands must provide the room name, device type, and device name of the device to be controlled, and they must provide the value to which the device should be set. The text string of these commands must be derived from the UAPI Action Tree and associated with commands from the controlling device. In general, these commands are of the format: <room name>.<device type>.<device name>^<device type abbreviation>:<value>\n where: <room name> is the name of the room "." is a period separating the room name from the device name <device name> is the name of the device in the room "^" is the up arrow key (usually shift 6) <device type abbreviation> is defined in the list below ":" is the colon key <value> is the value to which the specified device will be set \n is "backslash n" representing a linefeed character however, it is safer to obtain the exact value from the UAPI menu. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|