Arcam DV79 manual Appendix Serial programming interface, Command and response formats

Page 27

Appendix: Serial programming interface

Introduction

This section of the document describes the remote control protocol for controlling the DV79 via the

RS232 interface.

Conventions

nThe remote controller is referred to as the ‘RC’, with the DV79 called the ‘DV79’.

nAll values in this section are hexadecimal values, unless otherwise specified.

Data transfer format

nTransfer rate: 19,200bps.

n1 start bit, 8 data bits, 1 stop bit, no parity, no flow control.

Command and response formats

Communication between the RC and the DV79 takes the form of sequences of ASCII characters, with all commands and responses having the same basic format. With the exception of status triggers (see below), the DV79 shall transmit only to respond to communication from the RC. The DV79 shall always respond to a received command.

Each transmission by the RC shall be five bytes long in the following format: <STR> <CC> <P1> <P2> <ETR>

nSTR (Start transmission): 0x21

nCC (Command code): the code for the command

nPx (Parameter code): the parameters for the command

nETR (End transmission): 0xD

Each response by the DV79 shall be seven bytes long in the following format: <STR> <RC> <AC> <P1> <P2> <P3> <ETR>

nSTR (Start transmission): 0x21

nRC (Reply code): = command code

nAC (Answer code): answer code (see below)

nPx (Parameter code): the parameters for the reponse

nETR (End transmission): 0xD

The RC shall transmit commands and receive answers according to the following procedure:

1.The RC shall transmit a command.

2.Having issued a command, the RC shall wait at least 100ms before transmitting a subsequent command (otherwise commands may be lost). Ideally, the RC shall wait for an answer from the DV79 before issuing the next command.

3.The RC shall analyse the RC, AC and Px values of a received message to decide whether the command has been executed normally.

4.The time from the completion of command transmission by the RC to the beginning of the response by the DV79 shall be maximum two seconds.

5.The DV79 shall not accept any commands from the RC for five seconds after the power switch is turned on or a ‘power-on’ command is recieved.

The exception to the above communication protocol is when ‘status triggers’ are enabled by the RC (using the ‘Status Triggers’ command). In this case, the DV79 shall transmit messages whenever the status of the player changes. These messages shall be transmitted by the DV79 at asynchronous intervals.

State changes as a result of other inputs

It is possible that the state of the DV79 may be changed as a result of user input via the front panel buttons or via the IR remote control. Changes resulting from these inputs shall be relayed to the RC (using the appropriate message type) only if ‘status triggers’ have been enabled by the RC.

For example, if the user changed the front panel display brightness using the DISP button on the remote control, a display message (defined below) would be sent to the RC. A similar action would be taken for all other state changes.

Answer codes

The following answer codes are defined:

nCommand OK ‘@’ (0x40): The command has been accepted and processed completely.

nCommand ACC ‘A’ (0x41): The command has been accepted but not yet processed fully.

nStatus update ‘B’ (0x42): Status change message

nInvalid command ‘0’ (0x30): The command or command format was invalid

nInvalid request ‘5’ (0x35): The command is not valid for the current player state

English

If the answer code returned is anything other than ‘Command OK’ or ‘Status update’ then all parameter

DV79

fields in the return message become ‘reserved’.

 

E-27

Image 27
Contents Arcam DV79 DVD player Safety guidelines Important safety instructionsSafety compliance Contents What’s in the box? Using this handbookInserting the batteries into the remote control Before you startHdmi digital interface Disc types supportedInstallation Connecting the video outputPositioning the unit Remote-control input Connecting the digital-audio outputConnecting the analogue-audio output Connecting to a power supplyPlaying a disc Basic use of your DVD playerIntroduction Front-panel controlsAbout Hdmi Connecting using HdmiTroubleshooting Hdmi interfaceUsing the CR-415 remote control Srch search Advanced controls CR-415Subt subtitle RTN returnConfiguring your DVD player Using the Set-up menusObtaining a picture Operational set-up Progressive Video set-upOutput Priority TV SystemAudio set-up Speaker set-up Trim set-up Delay set-upRating Access set-upPassword Completing the set-upAdvanced DVD and VCD features Jumping to a particular pointSpecial playback modes General Programmed playback DVD-videoProgram DVD-audio Programmed playback VCDAdvanced MP3/WMA/JPEG and audio-CD features Player modeScreen layout Browsing the disc Browse mode Programmed playback Audio CDsProgrammed playback CD-ROM Shuffle and Repeat Advanced control commands Power commandsPlayback control commands Display control commandsContinual improvement policy Technical specificationsOn line registration GuaranteeAppendix Serial programming interface Command and response formatsStatus codes Example command and response sequenceExample / Exemple / Beispiel / Voorbeeld Power / Alimentation / Betriebsbereitschaft / StroomRemarques HinweiseOpmerkingen Aangevraagd worden Systemzustand abfragen / Status systeem aanvragen Request system status / Demande d’état systèmeRemarque Version / Version / Version / VersieZoom / Zoom / Zoom / Zoom Command/response sequence to set the zoom level to ‘3’Search speed return values Slow-Fast / Lent-rapide / Langsam-Schnell / Langzaam-snelAudio format codes Audio channel codes Dialogue codes Audio / Audio / Audio / GeluidShuffle / Lecture aléatoire / Zufall / Shuffle / Page / Seite / PaginaSubtitle language codes Subtitle / Sous-titre / Untertitel / OndertitelingPlayer menu / Menu du lecteur / Gerätemenü / Spelermenu Angle / Angle / Winkel / HoekClear / Effacement / Löschen / Wissen Number / Nombre / Zahl / NummerTitle menu / Menu des titres / Titelmenü / Titelmenu Top menu / Menu principal / Hauptmenü / HoofdmenuRepeat / Lecture répétée / Wiederholung / Herhaling Return / Retour / Zurück / Terug