Presentation is loading. Please wait.

Presentation is loading. Please wait.

Status of InterCommunication on FeeControl Meeting Report Communication between DCS-Layers State of 2003-09-08 Sebastian Bablok Christian Kofler Ralf Keidel.

Similar presentations


Presentation on theme: "Status of InterCommunication on FeeControl Meeting Report Communication between DCS-Layers State of 2003-09-08 Sebastian Bablok Christian Kofler Ralf Keidel."— Presentation transcript:

1 Status of InterCommunication on FeeControl Meeting Report Communication between DCS-Layers State of 2003-09-08 Sebastian Bablok Christian Kofler Ralf Keidel http://www.ztt.fh-worms.de

2 FEE Server (DIM - Server on RCU - Card) FEE Server (DIM - Server on RCU - Card) FEE Server (DIM - Server) PVSS Server (DIM - Server) FEE Client (DIM - Client) InterCom Layer (Application layer) Database Access PVSS Client (DIM - Client) Layers 2003-09-08, http://www.ztt.fh-worms.de Status of InterCommunication on FeeControl CE (Detector specific)

3 Status of InterCommunication on FeeControl TOC Interface FeeServer - ControlEngine Sequence of communication FeeServer - ControlEngine Data access on InterComLayer 2003-09-08, http://www.ztt.fh-worms.de

4 Interface FeeServer - Control Engine 2003-09-08, http://www.ztt.fh-worms.de Status of InterCommunication on FeeControl Interfacecalled byimplemented byamount of calls void initializeCE()FeeServerCEonce int publish(...)CEFeeServerzero to several times on start up void signalCEready()CEFeeServeronce int issue(...)FeeServerCEn - times void cleanUpCE()FeeServerCEonce

5 Interface FeeServer  Control Engine 2003-09-08, http://www.ztt.fh-worms.de Status of InterCommunication on FeeControl void initializeCE() Initializes the ControlEngine on the board. bus driver can be loaded Items for monitoring can be published runs in its own thread (controlable from FeeServer)

6 Interface FeeServer  Control Engine 2003-09-08, http://www.ztt.fh-worms.de Status of InterCommunication on FeeControl int publish(Item* item) Informs FeeServer about values for monitoring. gives „Item“ to the FeeServer name (char*) and location (volatile float*) [value] returns an error code, if call was unsuccessful, else 0 has to be called for every Item to be published

7 Interface FeeServer  Control Engine 2003-09-08, http://www.ztt.fh-worms.de Status of InterCommunication on FeeControl void signalCEready() Informs FeeServer that initialization has been finished the termination of this thread is in charge of the CE the init - thread has to continue, if „publish()“ has been called.

8 Interface FeeServer  Control Engine Status of InterCommunication on FeeControl int issue(char* command, char** result, int* size) FeeServer relays a command to the CE and retrieves the result of it. command: pointer to the command data (allocated and freed by FeeServer) result: pointer to the pointer where CE stores the result data (allocated by CE, freed by FeeServer) size: when called: size of command, when returning: size of result 2003-09-08, http://www.ztt.fh-worms.de

9 Interface FeeServer  Control Engine Status of InterCommunication on FeeControl int issue(char* command, char** result, int* size) returns an error code, if call was unsuccessful, else 0 is executed in an own thread to determine if CE is working (Watchdog) thread will be terminated by FeeServer after timeout, if CE gets stuck 2003-09-08, http://www.ztt.fh-worms.de

10 Interface FeeServer  Control Engine 2003-09-08, http://www.ztt.fh-worms.de Status of InterCommunication on FeeControl void cleanUpCE() Tells CE to clean up to shut down properly when the FeeServer exits.

11 Status of InterCommunication on FeeControl 2003-09-08, http://www.ztt.fh-worms.de FeeServer init process CE initializeCE() signalCEready() publish(Item*) start server Sequence of Communication (initialization, called once)

12 Status of InterCommunication on FeeControl 2003-09-08, http://www.ztt.fh-worms.de FeeServer command received CE issue(...) return result deliver result to FeeClient Sequence of Communication (serving state, executed n-times) execute Command

13 Status of InterCommunication on FeeControl 2003-09-08, http://www.ztt.fh-worms.de FeeServer exit - command received CE cleanUpCE(...) clean up FeeServer and exit Sequence of Communication (clean up, called once) do the clean up stuff

14 Status of InterCommunication on FeeControl 2003-09-08, http://www.ztt.fh-worms.de Data access on InterComLayer Structure of Database ??? Naming conventions ??? When will it be defined ??? ?


Download ppt "Status of InterCommunication on FeeControl Meeting Report Communication between DCS-Layers State of 2003-09-08 Sebastian Bablok Christian Kofler Ralf Keidel."

Similar presentations


Ads by Google