• Interactive CD-I Date: August 1990 Media Systems Technical Info Pointing Devices i00€mtA®='J tation wi th other leading player and The reason for this device manufacturers. specification. This specification is intended to guide all CD-I product manufacturers, who are urged to give it their full support. Pointing devices play a significant part in CD-I systems. The CD-I The benefits of this specification. standard (Green Book) lays down only very general requirements other For the CD-I player manufacturer. this than to classify pointing devices. specification offers the prospect of an Clearly, it is in the interest of all CD-I insta lled base of compatible pointing developers to assure that pointing devices and simplified so urc ing . The devices and CD-I players from any input device manufacturer can look manufacturer be both plug com- forward to an installed base of patible and interface compatible, compatible CD-1 players, lowe r costs except in special cases where the for new device development, pointing device is either built in or complete interface specifications, and dedicated to the player system. no software interfa ce problems. For dealers, there wil l be fewer stock There is a need for a de facto standard risks and increased demand. fo r pointing devices. Thus. Philips Consumers can be offered products Interacti ve Media Systems has with good avai lability, reasonable ..c: a.. produced this specificat ion in consu l- prices, and a variety of choices . PHILIPS PHILIPS 9 Interactive Media Systems This specification defines the These devices output the absolute CONTENTS interface for CD-I pointing devices position of the pen in relationship to for connection to a general CD-I the grid and its resolution. Introduction pointing device port. Examples: graphics tablets, The interface is specified so that the absolute coordinate mice. CD-I player can recognize the device type. Device characteristics are RELATIVE COORDINATE Connector dependent on the device type. POINTING DEVICES Pointing devices that deliver ,,,-.. DEFINITIONS AND GENERIC relative coordinate positions for the TERMS screen pointer include mouse and Data signals The classification of pointing trackball devices. These devices devices used in this specification is provide output with incremental or based on Appendix Vll.2, paragraph decremental values for both x ·and 2.5. 1.1. of the Green Book. The y coordinates, relative to the last Device identification classifications follow below. read out. Examples: mice, trackballs. ABSOLUTE SCREEN POINTING DEVICES MANEUVERING POINTING Relative coordinate Pointing devices used directly on DEVICES the screen include light pens and Pointing devices that deliver control devices touch screens. The screen position information to maneuver the screen given by the pointer is tied to the pointer to its desired position location on the display screen. include joysticks and joypads. The Maneuvering Examples: light pens, touch output from these devices specifies screens. the direction in which the cursor is devices to be moved with a fixed or variable ABSOLUTE COORDINATE (optional) velocity. At least sixteen POINTING DEVICES directions, equally spaced around a Pointing devices that deliver 360 degree area, must be available Absolute coordinate absolute coordinate positions for to the pointing device. the screen pointer include graphics Examples: joysticks, joypads. devices tablets and absolute coordinate mice. Absolute screen devices Remarks maneuvering devices • DATA SIGNALS Communications should use the RS-232-C interface. For details of this see the EI A RS-232-C standard. Signalling rate: 1200 or 9600 bauds Data format: 8 pins mini-DIN Hosiden TCP 8500 • 1 start bit CONNECTOR series 8a type (e.g. TCP 8580-01-01 0) or compatible plug on the device (male), with mating TCS 7500 series or compatible socket on the CD-I • 7 data bits LSB first • 2 stop bits player. Data Format The miniature circular connector's fitting dimension of 9mm is far smaller than the conventional DIN or D-sub type connector. Start ~ 01,12131415161 1 ~p 2 1 Start ~ The miniature circular connector is approximately one fourth the vo lu me Signal Name Convention: of the equivalent DIN connector and is For pointing devices only two signal Mini Din Ba connector both visually attractive and space lines carry data. saving . Th e first is RTS, which is always output from the CD- I player. The second is Specifying this connector RXD, which is always input to the ensures: CD-I player. - Regular availability RXD: Carries the data from pointing - Free sourcing of cable assemblies device to player. - Free choice of plug (straight, ang le or RTS: Used for device identification even screw lock) (see Device Identification). - Free choice of sockets (unshielded, shielded, installation Signal Flow Mini Din Ba pinning hole, switched, chassis mounted). RATINGS: • + 5V output from the CD-I player: - accuracy: +5V 10 % - supply current: 50mA ILJl~®O - ---- ®®®ii - ---- m I 11111110 • RXD - log ica l 1: -15V < signal level< +0.8V - logical 0: +2.4V < signal level COi PLAYER < + 15V (Output impedance 0 CJ) >< l- pointing device max 4.7kOhm) a: a: POINTING DEVICE Connector pinning pin Reserved In/Out 1 N.C. Not connected 2 RXD Rece ived data Input* 3 Rese rved 4 Reserved 5 GND Signal ground 6 Reserved 7 RTS Request to send Output* 8 +5V Powe r supp ly for th e dev ice *Input: an input signal to the CD-I player. Output: an output signal from the CD-I player. • RTS Note: Some CD-I players may sup- - Off (Negated) : -1 5V < signal level ply up to 200mA on the +5V power <+0.8V supply line. Input devices requiring - On (Asserted) : +2.4V < signal over 50mA should have a provision level< +15V for an external power supply. DEVICE IDENTIFICATION Eve ry po inting device should transmit its type id entifi cation (ID) byte on request. T his allows t he CD-I player to ide ntify the device type and the Timing Chart and Legend transmissio n speed of the pointing device that is connected to it. Thi s guarantees maximum flex ibility and ease of use. Devicu power Device ID sequence B 1. Negate RTS: Cu rrent data transmission to the CD-I player is stopped. RTS _j 2. Asse rt RTS . 3. T he device sends its 1-byte device ID . RXD II I I I I I I Device ID codes i: I I I I L...l......L... I '1 --M- ~ Device Type d6- --d 0 ASCII A C D Relative: 1001101 'M' Maneuvering: 1001010 'J' Absolute: 10 10 100 ' T' Absolute Screen: 10 100 1 1 'S' Device ID timing C: Res idual data tran s mis sion tim e w hen RTS is negated: A: device power-on to ID byte timing Min. Oms. Note: It is advisable to send a com- M in . 100ms M ax. 1 byte period (1200 baud = plete data packet after the ide ntifi- Max. 500ms. 8.3ms, 9600 baud =1 ms) cation byt e to establish the state of B: negate RTS timing: D : Assert RTS to ID byte timing w hen t he buttons at startup. Min. 10ms device is pow ered: Max . irre levant. Max. 10ms. • To allow for additional buttons on the righ t direction = positiv e RELATIVE po inting device , one add itional byte (with d6 =0) may be added to the data package at the d iscretion of the ($01 ..$7F) Y7 .. YO: 8-bit data vertical movement. 2's comp leme nt. COORDINATE manufacturer. Systems specifi ed to work w ith the specifi c device wil l react up direction = negative ($FF.. $80) DEVICES to this byte ; other system s w ill ignore it. down direction = positive ($0LS7F) -A va lu e of $00 for horizontal or vertical Data Format movement indicates no moveme nt in e.g. Mice, Trackballs. Sig nal ling rate: 1200 o r 9600 bauds. that direction. d6 d5 d4 d3 d2 d1 dO Data Flow During normal operation Mouse Byte 0 1 bt1 bt2 Y7 Y6 X7 X6 (RTS asse rt ed): Byt e 1 0 X5 X4 X3 X2 X1 XO • Data is sent to the CD-I player via Byte 2 0 Y5 Y4 Y3 Y2 Y1 YO RXD . • Every time th e device is moved or button state is changed , 3-byte data bt 1 = button 1 : 1 = pressed packet s s hould be t ra nsm itted to t he 0 = not pressed player. bt 2 = button 2: 1 = pressed • No data should be transmitted when 0 = not pressed the device is stationary (in ce nter X7 .. XO: 8-bit data horizontal position) and the button state is move m e nt. unchanged (pressed or released). 2's complement. • A button state change or device left direction = negati ve position c hange should not inte rr upt a ($FF $80) dat a packet tra nsmissio n. • Data Format Signalling rate:1200 or 9600 bauds. d6 d5 d4 d3 d2 d1 d 0 Byte 0 bt1 bt2 Y7 Y6 X7 X6 Byte 1 0 X5 X4 X3 X2 X1 XO Byte 2 0 Y5 Y4 Y3 Y2 Y1 YO Joystick bt 1 = button 1 : 1 = pressed • A 3-byte data packet should be sent 0 = not pressed MANEUVERING to the CD-I player every time a button changes state . • No data should be transmitted when bt 2 = button 2: 1 = pressed 0 = not pressed X7 .. XO: 8-bit data horizontal DEVICES the device is stationary (in center position} and the button state is movement. 2's complement. unchanged (pressed or released) up direction = negative e.g. Joysticks and Joypads • A button state change or device ($FF $80) position change should not interrupt a down direction = positive Joysticks and joy pads are devices data packet transmission. ($0L$7F) with identical functions although they • To allow for additional buttons on the Y7 .. YO: 8-bit data vertical movement. are physically different. pointing device, one additional byte 2's complement. (with d6 =0} may be added to the data up direction - negative Data flow package at the discretion of the ($FF.. $80) During normal operation (RTS manufacturer. Systems specified to dow n direction = positiv e asserted}: work with the specific device will react ($0L$7F) • Data is sent to the CD-I player via to this byte; other systems will ignore A value of $00 for horizontal or vertical RXD. it. movement indicates no movement in • Three-byte data packets should be that direction . sent continuously to the CD-I player See Remarks Maneuvering when the device is moved out of Devices. center position. • No data should be transmitted when Data Format ABSOLUTE the pointing indicator is not in the active area and t he button state is unchanged (pressed or released}. Signalling rate: 1200 or 9600 bauds. d6 d5 d4 d3 d2 d1 dO COORDINATE • A 4-byte data packet should be sent to the CD-I player every time a button Byte 0 Byte 1 1 0 bt1 bt2 X9 pd 0 Y9 XS Y8 X7 X6 Y7 X6 DEVICES changes state (button 1, button 2 or pen down}. • A button state change or pointing Byte 2 Byte 3 0 0 X5 X4 X3 Y5 Y4 Y3 X2 Y2 X1 XO Y1 YO indicator position change should not e.g. Graphics Tablets, Light Pens. interrupt a data packet transmission. bt 1 = button 1 : 1 = pressed • To aiiow for additional buttons on the 0 = not pressed Data Flow pointing device, one additional byte bt 2 = button 2: 1 = pressed During normal operation (with d6 =0} may be added to the data 0 = not pressed (RTS asserted}: package at the discretion of the pd= pen down: • Data is sent to the CD-I player via manufacturer. Systems specified to 1 = pointing indicator on active RXD. w ork with the specific device w ill react area • Four-byte data packets should be to this tsyte; other-systems will1 gnore 0 = pointing indicator not on sent continuously to the CD-I player it. active area. when the pointing indicator, e.g.,,.lignt X9 . ,XO: 10-bit absolute horizontal pen, is in motion on the tablet's active position area. outermost left position: $000 ,,...,o utef m st right position: $3F'F, Y9 .. YO A 0-bit absolute vertical position outermost upper position: $000 outermost lower position : $3FF ABSOLUTE SCREEN DEVICES e.g. Touch Screens, Light Pens. out ermost right position: SP : Cursor speed ( in seconds) $3FF DR: Data rate ( in data packets Data Flow Y8 .. YO: 10-bit abso lute vertical per second) During normal operation (RTS position asserted) outermost upper position: Analog and Digital Devices • Data is se nt to the CD- I player via $000 The fo llowi ng examp les indi cate some RXD. out ermost lower position: fact ors to co nsider w hen developi ng • Four-byte data packets shoul d be $3FF analog or dig ital maneuvering devices. sent cont inuously t o the CD-I player when the pointing indicator, e.g., ANALOG Type f inger or lig ht pen, is in motion on the sc ree n's active area . • No data shou ld be transmitted w hen REMARKS • Th e data va lue transmitted at max imum X and/or Y deflection to represent maximu m speed depends th e pointing indicator is not in the Maneuvering Devices on th e time allowed for the curso r to active area and th e button state is cross the screen (see the Cu rsor unchanged (pressed or released). Speed formula above). If, for example , • A 4-byte data packet shou ld be sent Green Book Specifications the tim e chosen is 1 second, the value to the CD-I player every time a button required is approximately $ 13 (768/1 x changes state (button 1, button 2, pen • The pointing device must make 40) down, or cha nge of finger pressure). avai lab le at least 16 different • The center position should give a • A button state change or pointing directions equa lly spaced around a full value of $00 . ind icator position change should not 360-degree area. (Green Boo k, • The remaining data va lues ($01 to interrupt a data packet transm ission. A ppend ix Vll.2-1 7.) $12) should be spread over the • To allow for add ition al buttons on t he • A pointing device must be ab le to deflection angle. pointing device, one additional byte point to every p ixe l on a normal (with d6 =0) may be added to the data reso lution screen. The PT_coord DIGITAL Type package at the discretion of the coordinates are in high reso lution. • The maxi mum data va lue can be manufacturer. Systems specif ied to derived in the same way as for th e work w ith the specific dev ice w il l react - - - - 753 - - -+ analog type. l to this byte; other systems w ill ignore • It should be possible to pinpoint · it. eve ry pixel on the sc ree n. When th e stick. is in the f irst position (from Data Format 480 ce nter) , the X and/or Y data sent Signalling rate: 1200 or 9600 bauds . d6 d5 d4 d3 d2 d1 d 0 l should be + 1 or -1 to give the slowest speed . • For a three -speed device, the va lue for the midpoint deflection sho uld be Byte 0 1 bt1 bt2 X9 X8 X7 X6 High Resolution Screen Pixel midway between the maximum va lu e Byte 1 0 pd O Y9 Y8 Y7 X6 Density-525 line mode and zero. This results in med ium Byte 2 0 X5 X4 X3 X2 X1 XO Parameters speed. The follow ing values result Byte 3 0 Y5 Y4 Y3 Y2 Y1 YO • Data rate: at 1200 bauds t he when the maximum traverse speed is maximum possible data rate from a 768 pixels per second. bt 1 = button 1 : 1 = pressed joystick to a CD-I player is 1 byte every Pos it ive: $0 1, $09, and $12. 0 = not pressed 8.3 ms. A compl ete data packet Negative: $ FF, $F7, and $EE. bt 2 = button 2: 1 = pressed packet takes 3*8.3=25 ms. • For dev ices w ith more or less than 0 = not pressed The max imum data rate is then 40 three-speeds, intermediate values can pd = pen down: packets per second. be interpol ated . 1 = pointing in dicato r on active· • Pixels in X and Y: high resol ution = area 678x480 (525 lin e mode) Note: Compared with relative coor- 0 = pointing indicator not on • Cursor speed: General formula = di nate devices, the MS bits of the active area . D = NP/SP *D R X and Y data bytes are less mean- X9 .XO: 10-b it abso lute horizontal ingful for maneuvring . However, position D Data value at maxim um speed the data packet format is kept the oute rmost left position: $000 NP : Number of pixels same. PHILIPS PHILIPS 9