Events of server -4 data transmission -5, Events of server, Data transmission – Rockwell Automation 2727-M7P20D1P1, -M7P20D1Q2,-M7P20D1Q3 MobileView Machine Terminal MT750 User Manual

Page 86

Advertising
background image

Publication 2727-UM003D-EN-P

6-4 Windows CE Applications

Events of Server

By sending a package to the client, the server can set the current
value of the handwheel, or request the current values (position of
handwheel and override potentiometer, as well as state of keys). The
server can also read the current states of the values which can be
modified by the server.

Data Transmission

Client to Server

typedef enum {

eKVCJoystickIsZero

0x0001

eKVCJoystickNotZero

0x0002

eKVCSpaceMouseIsZero

0x0004

eKVCSpaceMouseNotZero

0x0008

eKVCHandWheelChanged

0x0010

eKVCOverrideChanged

0x0020

eKVCKeyPressed

0x0040

eKVCKeyReleased

0x0080

eKVCLedValue

0x0100

eKVCContrast

0x0200

eKVCBrightness

0x0300

eKVCVolume

0x0400

eKVCScreensaverTime

0x0500

eKVCScreensaverState

0x0600

eKVCBacklightState

0x0700

eKVCLed

0x0800

eKVCJoystickResp

0x0900

eKVCSpaceMouseResp

0x0A00

eKVCHandWheelResp

0x0B00

eKVCOverrideResp

0x0C00

eKVCAlive

0xFE00

eKVCClientDisconnect

0xFF00

} TKVCEvent;

typedef struct {

UINT16 event;
struct {

UINT8 overrideVal;
UINT8 keyVal;
TKVCJostickData joystickVal;
SINT16 handWheelVal;
TKVCSpaceMouseData spaceMouseVal;

} data;

} TKVCClientData;

typedef enum {

eKtpKeyboardLedOff = 1,

Advertising