CC-1077-03 Interface domótica A[...]
Transcripción
CC-1077-03 Interface domótica A[...]
EIS Electrónica Integral de Sonido 43493 E INTERFACE DE COMANDOS serie 400 pg.1 ENG COMMAND INTERFACE 400 series pg.13 AENOR CC-1077-03 E Indice 1.- Introducción 2.- Esquema de instalación 3.- Configuración del puerto de comunicaciones 4.- Direccionamiento de un módulo de la serie 400: mapa de direcciones de red 5.- Tipos de servicios 5.1.- Servicio de escritura a una dirección individual 5.2.- Servicio de escritura a una dirección de grupo 5.3.- Servicio de lectura a una dirección individual 6.- Formato de trama 7.- Lista de comandos 7.1.- Manejo de las funciones de audio 7.2.- Manejo del sintonizador FM 7.3.- Propiedades globales de la instalación 7.4.- Acciones especiales 7.5.- Comandos de sistema 7.6.- Comandos de manejo del interface de comandos Anexo .- Tabla de caracteres ASCII 3 3 5 5 6 7 7 11 EIS 2 E 1.- Introducción El Interface de Comandos 43493 es un dispositivo de la serie 400 que permite manejar cualquier elemento de una instalación de dicha serie 400 desde un equipo programable externo, que en adelante denominaremos equipo HOST. Para ello se suministra un conjunto de comandos gracias a los cuales se pude recibir información y transmitir órdenes a cualquier dispositivo. Para una completa información acerca de las prestaciones, manejo e instalación de la serie 400, consultar el manual de usuario e instalación CC-1023. 2.- Esquema de instalación El esquema básico de conexión del Interface de Comandos 43493 a una instalación de la serie 400 puede verse en el diagrama adjunto. Otras variantes de instalación de elementos de la serie 400 pueden consultarse en el manual de esquemas CC-1003 EIS 3 HOST Rx (2) Tx-(3) GND (5) Rx (2) Tx-(3) GND (5) EIS 43493 41 491 /92 11295 11296 4 2 1 02 03 02 03 Y0 10 7 92 91 4 1 Ro Am Ver Az Ma Vio Na Bl Ne Ma Ne Az Ver Vio Na Bl Am Ro 42 891 42 991 30 40 50 60 M A -+ +- 2 4 91 92 7 10 20 04 05 06 EIS 16 Ω 16 Ω 76cm EIS 4 -+ +- 93 06 05 04 60 50 40 30 20 10 7 92 91 4 2 42291 /92 Ma Ne Az Ver Vio Na Bl Am Ro 16 Ω 16 Ω E 3.- Configuración del puerto de comunicaciones La conexión entre el equipo HOST y el Interface de Comandos 43493 se lleva a cabo a través de un puerto standard de comunicaciones tipo RS232, configurado con las siguientes propiedades - Tipo de comunicación: HALF-DUPLEX Velocidad: 9600bps Formato de trama: 8 bits de datos Paridad par 1 bit de stop 4.- Direccionamiento de un módulo de la serie 400: mapa de direcciones de red El elemento básico de comunicación utilizado en la serie 400 es lo que denominaremos “unidad”. Una “unidad” es todo módulo conectado al bus de comunicaciones de la serie 400, que ofrece sus recursos al resto, y a su vez puede acceder a los recursos que le ofrecen los demás módulos. Son ejemplos de “unidades” - central de control: módulos 41491, 41492, … mando de control: módulos 42291, 42292, 42891, … interface de PC: módulo 43491 interface de avisos telefónicos: módulo 43492 interface comandos: módulo 43493 pupitre de llamadas: módulo 13503 Toda “unidad” se identifica dentro de una instalación a través de: - un número de dirección individual o de zona hasta un máximo de tres direcciones de grupo De esta manera, todo módulo de la serie 400 dispone de una dirección de red individual que no tiene por qué ser consecutiva pero que debe ser única en la instalación. Es decir, no pueden existir en una misma instalación dos módulos con la misma dirección de red individual. La distribución de direcciones de red individuales o de zona es la siguiente: 0 1 .. 200 201.. 252 253 .. 255 central de control mandos de control módulos especiales (por ejemplo, interfaces) reservadas Además de la dirección individual, cada módulo puede responder a un máximo de 3 direcciones de grupo, esto es, direcciones que están compartidas entre varias unidades y cuyo propósito es el poder dirigir un mensaje o una orden a un conjunto de módulos, en lugar de a uno solo. EIS 5 E Las direcciones de grupo preasignadas son las siguientes: 0 1 .. 253 254 y 255 dirección global direcciones de grupo libres para ser utilizadas reservadas 5.- Tipos de servicios Existen básicamente 3 tipos de servicios u operaciones que pueden llevarse a cabo desde el HOST hacia cualquier unidad de la serie 400 a través del Interface de Comandos 43493 5.1.- Servicio de escritura a una dirección individual 400 SERIES OBJECT-ADDRESS-DATA HOST RESULT COMMAND INTERFACE 43493 UNIT (ADDRESS) 5.2.- Servicio de escritura a una dirección de grupo 400 SERIES OBJECT-ADDRESS-DATA HOST RESULT COMMAND INTERFACE 43493 UNIT (GROUP ADDRESS) UNIT (GROUP ADDRESS) UNIT (GROUP ADDRESS) UNIT (GROUP ADDRESS) 5.3.- Servicio de lectura a una dirección individual 400 SERIES OBJECT-ADDRESS-DATA HOST RESULT-RESPONSE COMMAND INTERFACE 43493 request response UNIT (ADDRESS) EIS 6 E 6.- Formato de trama Cualquier comunicación entre el equipo HOST y el Interface de Comandos 43493 tiene el siguiente formato de trama: OBJECT ADDRESS DATA (opt ional) (opt ional) \r RESPONSE RESULT \n (opt ional) La primera parte de la trama es el COMANDO u orden enviada desde el HOST al Interface de Comandos 43493. Su formato es una cadena de caracteres ASCII de longitud variable acabada con el carácter ‘\r’ (0x0D). Consta de tres campos separados por espacios en blanco (carácter 0x20) - OBJECT hace referencia al objeto sobre el que se quiera actuar, como por ejemplo ‘VOLUME’, ‘CHANNEL’, ‘SEEK’, etc. Todos los objetos tienen, además de su descriptor, un comando numérico alternativo de la forma ‘C15’, ‘XC101’, etc. - ADDRESS es un parámetro que depende en cada caso del comando e indica la dirección de la unidad (o grupo de unidades) sobre la que se quiere actuar o o - ‘ZX’ indicará una dirección X de tipo individual o de zona, por ejemplo ‘Z1’, ‘Z56’, ‘Z105’, … ‘GX’ indicará una dirección X de grupo, por ejemplo ‘G0’, ‘G3’, ‘G26’… DATA es un parámetro opcional que depende de cada comando La segunda parte de la trama es la información devuelta desde el Interface de Comandos 43493 al HOST. Su formato es una cadena de caracteres ASCII de longitud variable acabada con el carácter ‘\n’ (0x0A). Consta de dos campos separados por espacios en blanco (carácter 0x20) - RESPONSE es un campo opcional dependiendo en cada caso del comando, y estará presente únicamente en los servicios de tipo lectura - RESULT toma el valor ‘OK’ si la acción se ha llevado a cabo de manera correcta o ‘ERROR en caso contrario 7.- Lista de comandos Se adjuntan en las siguientes tablas los comandos disponibles para la comunicación entre el HOST y el Interface de Comandos 43493. Observar que todos los datos son cadenas de caracteres codificadas en ASCII y que el descriptor del campo OBJECT siempre dispone de una alternativa abreviada EIS 7 EIS 8 C03 C04 C15 C16 C17 C18 C13 C14 C19 C20 C23 C05 C06 C07 C08 C09 C10 C11 C12 C21 C22 C31 C24 C25 C26 C28 C27 C30 C29 C73 C74 OBJECT TURNON TURNOFF VOLUME BASS TREBLE BALANCE LOUDNESSON LOUDNESSOFF MUTEON MUTEOFF CHANNEL VOLUMEUP VOLUMEDOWN BASSUP BASSDOWN TREBLEUP TREBLEDOWN BALANCEUP BALANCEDOWN CHANNELUP CHANNELDOWN GETON GETVOLUME GETBASS GETTREBLE GETBALANCE GETLOUDNESS GETMUTE GETCHANNEL SAVEIDEAL SETIDEAL ADDRESS ZX / GX ZX / GX ZX / GX ZX / GX ZX / GX ZX / GX ZX / GX ZX / GX ZX / GX ZX / GX ZX / GX ZX ZX ZX ZX ZX ZX ZX ZX ZX ZX ZX ZX ZX ZX ZX ZX ZX ZX ZX / GX ZX / GX 7.1.- Manejo de las funciones de audio ON / OFF 0 (FM), 1 .. 6 , 7(CD) 0 .. 99 -50 .. 50 -50 .. 50 -50 .. 50 DATA ON / OFF level level level level ON / OFF ON / OFF channel RESPONSE RESULT OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR Descripción Enciende un mando o un grupo de mandos. Apaga un mando o un grupo de mados. Asigna un nuevo valor de volumen a un mando o grupo de mandos Asigna un nuevo valor de graves a un mando o grupo de mandos Asigna un nuevo valor de agudos a un mando o grupo de mandos Asigna un nuevo valor de balance a un mando o grupo de mandos Activa el loudness en un mando o grupo de mandos. Desactiva el loudness en un mando o grupo de mandos. Activa el mute en un mando o grupo de mandos. Desactiva el mute en un mando o grupo de mandos. Asigna un nuevo canal a un mando o grupo de mandos. Incrementa en uno el nivel de volumen de un mando. Decrementa en uno el nivel de volumen de un mando. Incrementa en uno el nivel de graves de un mando. Decrementa en uno el nivel de graves de un mando. Incrementa en uno el nivel de agudos de un mando. Decrementa en uno el nivel de agudos de un mando. Incrementa en uno el nivel de balance de un mando. Decrementa en uno el nivel de balance de un mando. Incrementa en uno el canal de un mando. Decrementa en uno el canal de un mando. Pregunta el estado del encendido de un mando. Pregunta el nivel de volumen de un mando. Pregunta el nivel de graves de un mando. Pregunta el nivel de agudos de un mando. Pregunta el nivel de balance de un mando. Pregunta el estado de loudness de un mando. Pregunta el estado del mute de un mando. Pregunta el canal en el que se encuentra un mando. Graba los niveles actuales de audio como valores ideales. Activa los niveles de audio del valor de ideal. Ejemplo TURNON Z9 OK TURNOFF G1 OK VOLUME G0 65 OK BASS Z1 10 OK TREBLE Z2 15 OK BALANCE Z4 -32 OK LOUDNESSON Z23 OK LOUDNESSOGG Z25 OK MUTEON G0 OK MUTEOFF G0 OK CHANNEL G3 0 OK C05 z2 OK C06 z2 OK C07 z2 OK C08 z2 OK C09 z2 OK C10 z2 OK C11 z2 OK C12 z2 OK C21 z2 OK C22 z2 OK GETON Z1 ON OK C24 z2 45 OK C25 z2 15 OK C26 z2 -10 OK C28 z2 0 OK C27 z2 OFF OK C30 z2 OFF OK C29 z2 3 OK SAVEIDEAL Z42 ON OK SETIDEAL G0 OK EIS 9 ADDRESS ZX / GX ZX / GX ZX / GX ZX / GX ZX ZX ZX ZX ZX ZX ZX / GX ZX / GX ZX ZX ZX ZX ZX ZX ZX C01 C02 C34 C35 C36 C37 C76 C77 C75 OBJECT TURNONALL TURNOFFALL SETDATE SETTIME GETDATE GETTIME TELECONTROLON TELECONTROLOFF SYNCGLOBALPROPERTIES ADDRESS 7.3.- Propiedades globales de la instalación C44 C53 C60 C61 C38 C39 C40 C41 C42 C43 C49 C50 C51 C52 C54 C55 C56 C57 C58 OBJECT TUNEFM SENSITIVITYFM FMFORCEDMONOON FMFORCEDMONOOFF TUNEFMUP TUNEFMDOWN MEMORYFMUP MEMORYFMDOWN TUNEFINEFMUP TUNEFINEFMDOWN DELALLMEMORIESTUNER SEEK SENSITIVITYFMUP SENSITIVITYFMDOWN GETTUNEFM GETMEMORYFM GETSENSITIVITYFM ISFORCEDMONOFM ISSTEREOFM 7.2.- Manejo del sintonizador de FM DD/MM/YY HH:MM:SS DATA ON / OFF DATA 87,50 .. 108,00 1 .. 3 DD/MM/YY weekday HH:MM:SS RESPONSE frequency memory 1..3 YES / NO YES / NO RESPONSE RESULT OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR RESULT OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR Descripción Conecta la alimentacion de los mandos. Desconecta la alimentacion de los mandos. Activa un nueva fecha en la instalacion Activa una nueva hora en la instalacion Pregunta la fecha de la instalacion Pregunta la hora de la instalacion Activa el telecontrol. Desactiva el telecontrol. Ordena a la central que envie las propiedades globales. Descripción Coloca el sintonizador de un mando o grupo en una emisora determinada Asigna una nueva sensibilidad de recepción al sintonizador de un mando o grupo. Activa el forced mono en un mando o grupo. Desactiva el forced mono en un mando o grupo. Manda a un mando que realice un scan ascendente. Manda a un mando que realice un scan descendente. Manda a un mando que se posicione en la memoria siguiente. Manda a un mando que se posicione en la memoria anterior. Manda a un mando que incremente la sintonia en 50KHz Manda a un mando que decremente la sintonia en 50KHz Manda a un mando o grupo que borre todas sus memorias. Necesita parametro on. Ordena a un mando o grupo que busque automáticamente las emisoras. Incrementa la sensibilidad de recepción del sintonizador en un mando. Decrementa la sensibilidad de recepción del sintonizador en un mando. Pregunta por la sintonia de un mando. Pregunta por la memoria en la que se encuentra un mando. Pregunta por la sensibilidad en la que se encuentra un mando. Pregunta el estado del forced mono. Pregunta si la sintonia es estereo. Ejemplo TURNONALL OK TURNOFFALL OK SETDATE 03/08/06 OK SETTIME 12:46:00 OK GETDATE 04/08/06, FRIDAY OK GETTIME 05:55:21 OK TELECONTROLON OK TELECONTROLOFF OK C75 OK Ejemplo TUNEFM G0 98.60 OK C54 G0 2 OK C61 G0 OK C62 G0 OK TUNEFMUP Z8 OK C39 z2 OK C40 z2 OK C41 z2 OK C42 z2 OK C43 z2 OK C50 g0 ON OK SEEK Z101 OK C52 z2 OK C53 z2 OK GETTUNEFM Z6 99.40 OK GETMEMORYFM Z1 17 OK C57 z2 1 OK C58 z2 YES OK C59 z2 YES OK EIS 10 OBJECT ADDRESS EXRESET ZX / GX EXEXIST ZX / GX EXCONFIGUSERDEFAULT ZX / GX EXCONFIGGLOBALDEFAULT ZX / GX EXINICONFIG ZX / GX MODEL ZX HASTUNERFM ZX HASIRRECEIVER ZX EXRESETTUNER ZX / GX EXSAVEAUDIOLEVELS ZX/GX EXLASTCHANNEL EXGETLASTCHANNEL ADDRESS ZX ZX ZX / GX XC108 XC100 XC101 XC102 XC105 XC106 XC107 OBJECT XRESET XECHOON XECHOOFF XDATEFORMAT XVERSION XSETADDRESS XGETADDRESS ADDRESS DATA 1 .. 249 1/0 DATA 0 .. 6 ON / OFF ON / OFF ON / OFF DATA ON / OFF 7.6.- Comandos de manejo del interface de comandos EXC64 EXC63 EXC68 EXC69 EXC70 C65 C66 C67 EXC62 EXC80 EXC78 EXC79 7.5.- Comandos de sistema C32 C33 C71 OBJECT ALARMON ALARMOFF SENDMESSAGE 7.4.- Acciones especiales address model & firmware version RESPONSE Interface Domotico © EIS … 0 .. 6 model & firmware version YES / NO YES / NO RESPONSE RESPONSE OK / ERROR OK / ERROR OK / ERROR RESULT OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR RESULT OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR RESULT Descripción Reset del Interface de Comandos Configura el interface para que devuelva un eco de cada carácter enviado. Configura el interface para que deje de enviar el eco de cada carácter enviado. Hace que la fecha se represente en formato Inglés o Europeo. Pide el modelo y versión del interface. Asigna una nueva dirección al interface. Pide el numero de dirección que tiene asignado el interface. Descripción Provoca que los mandos se reinicien. Necesita parametro confirmacion. Pregunta si existe una direccion individual o de grupo. Restaura los parametros de fabrica a nivel de usuario Restaura los parametros de fabrica a nivel de instalación. Recupera de la memoria los ultimos valores almacenados. Pregunta el modelo a un mando Pregunta si tiene sintonizador. Pregunta si tiene receptor de infrarrojos. Hace un reset del sintonizador Graba los niveles actuales de audio como valores iniciales Asigna el numero de canales de música que tiene la instalación Pregunta el número de canales de música que tiene la instalación Descripción Activa el sonido del despertador en un mando. Desactiva el sonido del despertador en un mando. Envia a un mando o grupo un mensaje de texto. OK OK OK Ejemplo XRESET Interf… XECHOON OK XECHOOFF OK XDATEFORMAT 1 OK XC105 43493 I062106 120552 OK XSETADDRESS 120 OK XGETADDRESS 120 OK Ejemplo EXC65 g0 ON OK EXC64 Z211 ERROR EXC68 g0 ON OK EXC69 z0 ON OK EXC70 z0 ON OK C65 Z4 42292 M062106 120552 OK HASTUNERFM Z6 NO OK HASIRRECEIVER Z6 NO OK EXC63 z2 OK EXC80 Z3 OK EXC78 3 OK EXC79 3 OK Ejemplo ALARMON Z3 ALARMOFF G0 C71 z2 HOLA PEPE E Anexo .- Tabla de caracteres ASCII Binario Decimal Hex Abreviatura Repr[2] AT[3] 0000 0000 0 00 NUL ֙ ^@ Null character 0000 0001 1 01 SOH ֚ ^A Start of Header 0000 0010 2 02 STX ֛ ^B Start of Text 0000 0011 3 03 ETX ֜ ^C End of Text 0000 0100 4 04 EOT ֝ ^D End of Transmission 0000 0101 5 05 ENQ ֞ ^E Enquiry 0000 0110 6 06 ACK ֟ ^F Acknowledgement 0000 0111 7 07 BEL ֠ ^G Bell 0000 1000 8 08 BS ֡ ^H Backspace[4][5] 0000 1001 9 09 HT ֢ ^I Horizontal Tab 0000 1010 10 0A LF ֣ ^J Line feed 0000 1011 11 0B VT ֤ ^K Vertical Tab 0000 1100 12 0C FF ֥ ^L Form feed 0000 1101 13 0D CR ↵ ^M Carriage return[6] 0000 1110 14 0E SO ֧ ^N Shift Out 0000 1111 15 0F SI ֨ ^O Shift In 0001 0000 16 10 DLE ֩ ^P Data Link Escape 0001 0001 17 11 DC1 ֪ ^Q Device Control 1 — oft. XON 0001 0010 18 12 DC2 ֫ ^R Device Control 2 Nombre/Significado EIS 11 0001 0011 19 13 DC3 ֬ ^S Device Control 3 — oft. XOFF 0001 0100 20 14 DC4 ֭ ^T Device Control 4 0001 0101 21 15 NAK ֮ ^U Negative Acknowledgement 0001 0110 22 16 SYN ֯ ^V Synchronous Idle 0001 0111 23 17 ETB ְ ^W End of Trans. Block 0001 1000 24 18 CAN ֱ ^X Cancel 0001 1001 25 19 EM ֲ ^Y End of Medium 0001 1010 26 1A SUB ֳ ^Z Substitute 0001 1011 27 1B ESC ִ ^[ or ESC Escape[7] 0001 1100 28 1C FS ֵ ^\ File Separator 0001 1101 29 1D GS ֶ ^] Group Separator 0001 1110 30 1E RS ַ ^^ Record Separator 0001 1111 31 1F US ָ ^_ Unit Separator 0111 1111 127 7F DEL ֺ ^?, Delete, or Backspace Delete [8][9] EIS 12 ENG Index 1.- Introduction 2.- Installation scheme 3.- Configuration of communication port 4.- Addressing 400 series devices 5.- Types of Services 5.1.- Writing services to an individual address 5.2.- Writing services to a group address 5.3.- Reading services to an individual address 6.- Frame format 7.- List of commands 7.1.- Audio functions 7.2.- FM tuner functions 7.3.- Installation functions 7.4.- Special functions 7.5.- System commands 7.6.- Command interface functions Annex .- Table de ASCII characters 14 14 16 16 17 18 18 22 EIS 13 ENG 1.- Introduction Command interface 43493 is a device belonging to 400 series. When present in a 400 series installation, this device allows the control of the installation from an external programmable device called HOST. Command interface 43493 provides the HOST with a set of functions to have full control over all devices of the 400 series installation. In order to have more information about general features, installation and use of 400 series installations, please consult the document “User’s and installation manual” CC-1034 2.- Installation scheme Following diagram shows a basic scheme of one 400 series installation with a command interface. Other different examples of 400 series installations can be found in the wiring diagram document CD-1003. EIS 14 HOST Rx (2) Tx-(3) GND (5) Rx (2) Tx-(3) GND (5) EIS 43493 41 491 /92 11295 11296 4 2 1 02 03 02 03 Y0 10 7 92 91 4 1 Ro Am Ver Az Ma Vio Na Bl Ne Ma Ne Az Ver Vio Na Bl Am Ro 42 891 42 991 30 40 50 60 M A -+ +- 2 4 91 92 7 10 20 04 05 06 EIS 16 Ω 16 Ω 76cm EIS 15 -+ +- 93 06 05 04 60 50 40 30 20 10 7 92 91 4 2 42291 /92 Ma Ne Az Ver Vio Na Bl Am Ro 16 Ω 16 Ω ENG 3.- Configuration of communication port Command interface 43493 uses an RS232 standard serial port to communicate with the HOST. This serial port must be configured by the HOST according to the following specifications: - Type or communication: HALF-DUPLEX Speed: 9600bps Frame format: 8 bits Even parity 1 stop bit 4.- Addressing 400 series devices Let’s call “unit” to every device in the 400 series installation connected to the communication bus. Through the communication bus, every “unit” offers it own resources to the rest of them and, at the same time, is able to use and control the resources of other “units” Examples of “units” are: - Central unit: modules 41491, 41492, … Control unit: modules 42291, 42292, 42891, … PC interface: module 43491 Telephone interface: module 43492 Command interface: module 43493 Intercom microphone base: module 13503 Every “unit” identifies itself in the installation by means of: - An individual zone number Up to three group numbers Every “unit” has an individual address. Individual addresses do not need to be consecutive, but they must be unique. That means that can not exist two “units” in the same installation with the same individual address. Assignation of individual addresses uses the following rules: 0 1 .. 200 201.. 252 253 .. 255 Central unit Control units Special modules (interfaces and microphones) reserved Together with the individual address, each module may have up to 3 group addresses. Group address can be shared among several “units”. These group addresses make possible to send command to several “units” at the same time. EIS 16 ENG Group addresses are assigned according to the following rules: 0 1 .. 253 254 y 255 global address group addresses free to be used as wanted reserved 5.- Types of services We call services to the different operations that the HOST can make on the “units” of the installation by means of the command interface 43493. Services are classified in 3 types: Individual writing, group writing and individual reading. Following drawings explain the different types of services: 5.1.- Individual writing service 400 SERIES OBJECT-ADDRESS-DATA HOST RESULT COMMAND INTERFACE 43493 UNIT (ADDRESS) 5.2.- Group writing service 400 SERIES OBJECT-ADDRESS-DATA HOST RESULT COMMAND INTERFACE 43493 UNIT (GROUP ADDRESS) UNIT (GROUP ADDRESS) UNIT (GROUP ADDRESS) UNIT (GROUP ADDRESS) 5.3.- Individual reading service 400 SERIES OBJECT-ADDRESS-DATA HOST RESULT-RESPONSE COMMAND INTERFACE 43493 request response UNIT (ADDRESS) EIS 17 ENG 6.- Frame format Communication between HOST and command interface 43493 has always the next frame format: OBJECT ADDRESS DATA (opt ional) (opt ional) \r RESPONSE RESULT \n (opt ional) First part of the frame is the Command. This command is sent by the HOST to the command interface 43493. Its format is a chain of ASCII characters with a variable length. Commands must be always ended by the character ‘\r’ (0x0D). Commands have three fields separated by spaces (0x20): - OBJECT indicates the instruction to be sent. Examples of OBJECTs are ‘VOLUME’, ‘CHANNEL’, ‘SEEK’, etc. All OBJECTs have, beside its name, an alternative shortened code as follows: ‘C15’, ‘XC101’, etc. - ADDRESS is optional depending on the OBJECT and indicates the destination of the command. o o - ‘ZX’ means individual address: ‘Z1’, ‘Z56’, ‘Z105’, … ‘GX’ means group address: ‘G0’, ‘G3’, ‘G26’… DATA is an optional parameter depending on the OBJECT. Second part of the frame is the answer returned by the command interface 43493 to the HOST. Answer format is a chain of ASCII characters with a variable length. Commands are always ended by the character ‘\n’ (0x0A). Answer have two fields separated by spaces (0x20): - RESPONSE is an optional field depending on the Command and type of service. Only reading services have RESPONSE. - RESULT returns ‘OK’ if the command has been executed correctly and ‘ERROR’ in other cases. 7.- List of commands Next tables list all commands available between the HOST and the command interface 43493. Note that all fields are chains of ASCII characters. Note also that OBJECT field has always an alternative shortened code. EIS 18 EIS 19 C03 C04 C15 C16 C17 C18 C13 C14 C19 C20 C23 C05 C06 C07 C08 C09 C10 C11 C12 C21 C22 C31 C24 C25 C26 C28 C27 C30 C29 C73 C74 OBJECT TURNON TURNOFF VOLUME BASS TREBLE BALANCE LOUDNESSON LOUDNESSOFF MUTEON MUTEOFF CHANNEL VOLUMEUP VOLUMEDOWN BASSUP BASSDOWN TREBLEUP TREBLEDOWN BALANCEUP BALANCEDOWN CHANNELUP CHANNELDOWN GETON GETVOLUME GETBASS GETTREBLE GETBALANCE GETLOUDNESS GETMUTE GETCHANNEL SAVEIDEAL SETIDEAL 7.1.- Audio functions ADDRESS ZX / GX ZX / GX ZX / GX ZX / GX ZX / GX ZX / GX ZX / GX ZX / GX ZX / GX ZX / GX ZX / GX ZX ZX ZX ZX ZX ZX ZX ZX ZX ZX ZX ZX ZX ZX ZX ZX ZX ZX ZX / GX ZX / GX ON / OFF 0 (FM), 1 .. 6 , 7(CD) 0 .. 99 -50 .. 50 -50 .. 50 -50 .. 50 DATA ON / OFF level level level level ON / OFF ON / OFF channel RESPONSE RESULT OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR Description Turn On a device or group of devices Turn Off a device or group of devices Set a new volume value to a device or group of devices Set a new bass value to a device or group of devices Set a new treble value to a device or group of devices Set a new bass value to a device or group of devices Activate loudness in a device or group of devices Deactivate loudness in a device or group of devices Activate Mute in a device or group of devices Deactivate Mute in a device or group of devices Select a channel of music in a device or group of devices Increase one step the volume level in a device Decrease one step the volume level in a device Increase one step the bass level in a device Decrease one step the bass level in a device Increase one step the treble level in a device Decrease one step the treble level in a device Increase one step the balace level in a device Decrease one step the balace level in a device Select next channel of music in a device Select previous channel of music in a device Ask the On / Off state to a device Ask the volume level to a device Ask the bass level to a device Ask the treble level to a device Ask the balance level to a device Ask the loudness state to a device Ask the mute state to a device Ask the current channel of music to a device Store current audio levels as ideal levels Set ideal audio levels as current levels Example TURNON Z9 OK TURNOFF G1 OK VOLUME G0 65 OK BASS Z1 10 OK TREBLE Z2 15 OK BALANCE Z4 -32 OK LOUDNESSON Z23 OK LOUDNESSOGG Z25 OK MUTEON G0 OK MUTEOFF G0 OK CHANNEL G3 0 OK C05 z2 OK C06 z2 OK C07 z2 OK C08 z2 OK C09 z2 OK C10 z2 OK C11 z2 OK C12 z2 OK C21 z2 OK C22 z2 OK GETON Z1 ON OK C24 z2 45 OK C25 z2 15 OK C26 z2 -10 OK C28 z2 0 OK C27 z2 OFF OK C30 z2 OFF OK C29 z2 3 OK SAVEIDEAL Z42 ON OK SETIDEAL G0 OK EIS 20 C01 C02 C34 C35 C36 C37 C76 C77 C75 OBJECT TURNONALL TURNOFFALL SETDATE SETTIME GETDATE GETTIME TELECONTROLON TELECONTROLOFF SYNCGLOBALPROPERTIES 7.3.- Installation functions C44 C53 C60 C61 C38 C39 C40 C41 C42 C43 C49 C50 C51 C52 C54 C55 C56 C57 C58 OBJECT TUNEFM SENSITIVITYFM FMFORCEDMONOON FMFORCEDMONOOFF TUNEFMUP TUNEFMDOWN MEMORYFMUP MEMORYFMDOWN TUNEFINEFMUP TUNEFINEFMDOWN DELALLMEMORIESTUNER SEEK SENSITIVITYFMUP SENSITIVITYFMDOWN GETTUNEFM GETMEMORYFM GETSENSITIVITYFM ISFORCEDMONOFM ISSTEREOFM 7.2.- FM Tunner functions ADDRESS ADDRESS ZX / GX ZX / GX ZX / GX ZX / GX ZX ZX ZX ZX ZX ZX ZX / GX ZX / GX ZX ZX ZX ZX ZX ZX ZX DD/MM/YY HH:MM:SS DATA ON / OFF DATA 87,50 .. 108,00 1 .. 3 DD/MM/YY weekday HH:MM:SS RESPONSE frequency memory 1..3 YES / NO YES / NO RESPONSE RESULT OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR RESULT OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR Description Turn on the installation Turn off the installation Set a new date in the installation Set a new time in the installation Ask current date to the installation Ask current time to the installation Activate telecontrol function Deactivate telecontrol function Ask global properties to the central unit Example TURNONALL OK TURNOFFALL OK SETDATE 03/08/06 OK SETTIME 12:46:00 OK GETDATE 04/08/06, FRIDAY OK GETTIME 05:55:21 OK TELECONTROLON OK TELECONTROLOFF OK C75 OK Description Example Set the tunning frequency in a device or group of devices TUNEFM G0 98.60 OK Set a new searching sensitivity value in a device or group of devices C54 G0 2 OK Active forced mono state in a device or group of devices C61 G0 OK Deactivate forced mono state in a device or group of devices C62 G0 OK Order an ascending scan in a device TUNEFMUP Z8 OK Order an descending scan in a device C39 z2 OK Select next FM memory in a device C40 z2 OK Select previous FM memory in a device C41 z2 OK Increase 50 KHz the tunning frequency in a device C42 z2 OK Decrease 50 KHz the tunning frequency in a device C43 z2 OK Delete FM memories in a device or group of devices. 'On' parameter necessary to confirm C50 g0 ON OK Order an automatic search of FM stations SEEK Z101 OK Increase the FM searching sensitivity of a device C52 z2 OK Decrease the FM searching sensitivity of a device C53 z2 OK Ask current tunning frequency to a device GETTUNEFM Z6 99.40 OK Ask current FM memory to a device GETMEMORYFM Z1 17 OK Ask current searching sensitivity to a device C57 z2 1 OK Ask forced mono state to a device C58 z2 YES OK Ask stereo / mono state to a device C59 z2 YES OK EIS 21 XC108 XC100 XC101 XC102 XC105 XC106 XC107 ADDRESS ZX ZX ZX / GX OBJECT XRESET XECHOON XECHOOFF XDATEFORMAT XVERSION XSETADDRESS XGETADDRESS ADDRESS OBJECT ADDRESS EXRESET ZX / GX EXEXIST ZX / GX EXCONFIGUSERDEFAULT ZX / GX EXCONFIGGLOBALDEFAULT ZX / GX EXINICONFIG ZX / GX MODEL ZX HASTUNERFM ZX HASIRRECEIVER ZX EXRESETTUNER ZX / GX EXSAVEAUDIOLEVELS ZX/GX EXLASTCHANNEL EXGETLASTCHANNEL 7.6.- Interface commands EXC64 EXC63 EXC68 EXC69 EXC70 C65 C66 C67 EXC62 EXC80 EXC78 EXC79 7.5.- System commands C32 C33 C71 OBJECT ALARMON ALARMOFF SENDMESSAGE 7.4.- Special functions 1 .. 249 1/0 DATA 0 .. 6 ON / OFF ON / OFF ON / OFF DATA ON / OFF DATA address model & firmware version RESPONSE Interface Domotico © EIS … 0 .. 6 model & firmware version YES / NO YES / NO RESPONSE RESPONSE OK / ERROR OK / ERROR OK / ERROR RESULT OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR RESULT OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR OK / ERROR RESULT Description Order a Reset procedure in the command interface Set the command interface to send an echo after every received character Set the command interface to not send echo after reception of any character Select english / european date format Ask model and firmware version to the command interface Set a new command interface address Ask current address to the command interface Description Order a reset procedure to a device or group of devices Look for some device with the selected number of zone / group Set parameters to user defualt values in a device or group of devices Set parameters to manufacturer default values in a device or group of devices Refresh last audio values stored in a device or group of devices Ask model and firmware version to a device Ask for the presence of FM tunner in a device Ask for the presence or IR sensor in a device Orden a Reset procedure in the FM tunner of a device or group of devices Store current audio values as initial values Set number of channels in the installation Ask number of channels in the installation Description Activate alarm sound in a device Deactivate alarm sound in a device Send a text message to a device or group of devices OK OK OK Example XRESET Interf… XECHOON OK XECHOOFF OK XDATEFORMAT 1 OK XC105 43493 I062106 120552 OK XSETADDRESS 120 OK XGETADDRESS 120 OK Example EXC65 g0 ON OK EXC64 Z211 ERROR EXC68 g0 ON OK EXC69 z0 ON OK EXC70 z0 ON OK C65 Z4 42292 M062106 120552 OK HASTUNERFM Z6 NO OK HASIRRECEIVER Z6 NO OK EXC63 z2 OK EXC80 Z3 OK EXC78 3 OK EXC79 3 OK Example ALARMON Z3 ALARMOFF G0 C71 z2 HOLA PEPE ENG Annex .- Table of ASCII characters Binary Decimal Hex Abbreviation Repr[2] AT[3] 0000 0000 0 00 NUL ֙ ^@ Null character 0000 0001 1 01 SOH ֚ ^A Start of Header 0000 0010 2 02 STX ֛ ^B Start of Text 0000 0011 3 03 ETX ֜ ^C End of Text 0000 0100 4 04 EOT ֝ ^D End of Transmission 0000 0101 5 05 ENQ ֞ ^E Enquiry 0000 0110 6 06 ACK ֟ ^F Acknowledgement 0000 0111 7 07 BEL ֠ ^G Bell 0000 1000 8 08 BS ֡ ^H Backspace[4][5] 0000 1001 9 09 HT ֢ ^I Horizontal Tab 0000 1010 10 0A LF ֣ ^J Line feed 0000 1011 11 0B VT ֤ ^K Vertical Tab 0000 1100 12 0C FF ֥ ^L Form feed 0000 1101 13 0D CR ↵ ^M Carriage return[6] 0000 1110 14 0E SO ֧ ^N Shift Out 0000 1111 15 0F SI ֨ ^O Shift In 0001 0000 16 10 DLE ֩ ^P Data Link Escape 0001 0001 17 11 DC1 ֪ ^Q Device Control 1 — oft. XON 0001 0010 18 12 DC2 ֫ ^R Device Control 2 Name/Meaning EIS 22 0001 0011 19 13 DC3 ֬ ^S Device Control 3 — oft. XOFF 0001 0100 20 14 DC4 ֭ ^T Device Control 4 0001 0101 21 15 NAK ֮ ^U Negative Acknowledgement 0001 0110 22 16 SYN ֯ ^V Synchronous Idle 0001 0111 23 17 ETB ְ ^W End of Trans. Block 0001 1000 24 18 CAN ֱ ^X Cancel 0001 1001 25 19 EM ֲ ^Y End of Medium 0001 1010 26 1A SUB ֳ ^Z Substitute 0001 1011 27 1B ESC ִ ^[ or ESC Escape[7] 0001 1100 28 1C FS ֵ ^\ File Separator 0001 1101 29 1D GS ֶ ^] Group Separator 0001 1110 30 1E RS ַ ^^ Record Separator 0001 1111 31 1F US ָ ^_ Unit Separator 0111 1111 127 7F DEL ֺ ^?, Delete, or Backspace Delete [8][9] EIS Electrónica Integral de Sonido Electrónica Integral de Sonido S.A. se reserva el derecho de introducir modificaciones sin previo aviso. Electrónica Integral de Sonido S.A. no se responsabiliza de los errores u omisiones de este manual. CENTRAL: Polígono Malpica, Calle F Oeste Grupo Gregorio Quejido, 87-88 50016 Zaragoza (España) Tel.: 34 976 465550 Fax: 34 976 465559 [email protected] MADRID: Paseo de Europa 13, 2ºB 28700 San Sebastián de los Reyes - Madrid (España) Tel.: 34 91 6593678 Fax: 34 91 6239525 [email protected] Electrónica Integral de Sonido, S.A. reserves the right to make changes without prior notice. Electrónica Integral de Sonido, S.A. is not responsible for any errors or omissions that may appear in this manual. 64460030 EIS 23