Data interfaces
147
850-164692 / Rev.B
Issue commands on server
Request
A
Request
message must be sent to the server application in
order to issue a command on one of the available command
targets in the server application. An example of the main
elements of a command request is shown below.
struct Request
{
char Header[4];
// ”REQ\0”
char MsgControl[22];
// Sequence no, Current msg no, Total msg no
char MsgRequest[1400];
// XML based command request
}
MsgControl
The
MsgControl
field consists of the following parts:
•
Sequence number
- incremented for each request message
sent to the server
•
Current message
- contains the current message in case a
request must be split into several UDP messages.
•
Total message
- contains the total number of messages the
current request consists of.
If the contents of
MsgControl
is ”2,1,3\0” it means that the
current UDP message is the second request message sent from
the client to the server, and that the current message is message
number 1 of a request that consists of a total of three UDP
messages.
MsgRequest
The contents of the
MsgRequest
depend on the current
command target and will be described in detail later. For the
moment it is enough to say that the format of the request is
XML based and that the request must specify a command target,
a method on the command target and any input parameters
relevant for the current method. The general structure of a
request is shown below.
<request>
<clientInfo>
<cid>clientid</cid>
<rid>requestid</rid>
</clientInfo>
<type>invokeMethod</type>
<targetComponent>xx</targetComponent>
Summary of Contents for ER60
Page 2: ......
Page 3: ...850 164692 ER60 Scientific echo sounder Operator manual...
Page 181: ......