KM3NeT CLB  2.0
KM3NeT CLB v2 Embedded Software
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Adding slow control commands

This document describes the steps required for adding new slow control commands to the embedded software.

There are three steps involved in adding slow control commands:

  1. Defining a new command in the configuration file
  2. Implementing the command in the embedded software
  3. Implementing the command in the Java API

The first step cfg_msg.h should be modified to contain the new command. A command must have a unique identifier. Commands are grouped. Each group roughly reflects the subsystems available, e.g. system, network, optics, acoustics and instrumentation. In addition it also has a CLB and debug set of commands. Each group may contain up to 64 commands, each having a unique identifier.

The following code shows how the ping and date revision commands are defined in cfg_msg.h

#define GROUP_SYS 0x02
#define MSG_SYS_PING MSG_TYPE(GROUP_SYS, 0x01)
#define MSG_SYS_DATEREV MSG_TYPE(GROUP_SYS, 0x02)

The MSG_TYP command combines