Data interfaces
151
850-164692 / Rev.B
The server application will respond with a
Response
message.
The
Subscribe
method has the following output parameters.
Parameter name
Description
SubscriptionID
The identification of the current
subscription -- can be used to
differentiate between multiple
subscriptions on the same port.
An example of the contents of the
Response
field of a
Subscribe
command to the
RemoteDataServer
is shown
below.
<response>
<clientInfo>
<cid dt=”3”>1</cid>
<rid dt=”3”>1</rid>
</clientInfo>
<fault>
<detail>
<errorcode dt=”3”>0</errorcode>
</detail>
</fault>
<SubscribeResponse>
<subscriptionID dt=”3”></ subscriptionID >
</SubscribeResponse>
</response>
Handling data
Data from the
RemoteDataServer
are wrapped in a
ProcessedData
structure.
struct ProcessedData
{
char Header[4];
// ”PRD\0”
long SeqNo;
// Sequence number of the current
// UDP message
long SubscriptionID;
// Identification of the current data
unsigned short CurrentMsg;
// Current message number
unsigned short TotalMsg;
// Total number of UDP messages
unsigned short NoOfBytes;
// Number of bytes in the following
// Data field
unsigned short Data[];
// Actual data
};
Содержание ER60
Страница 2: ......
Страница 3: ...850 164692 ER60 Scientific echo sounder Operator manual...
Страница 181: ......