Technical information

Datasubscriptionandremotecontrol
AnexampleofthecontentsoftheRequesteldofaSubscribecommandtothe
RemoteDataServerisshownbelow:
<request>
<clientInfo>
<cid>1</cid>
<rid>1</rid>
</clientInfo>
<type>invokeMethod</type>
<targetComponent>RemoteDataServer
</targetComponent>
<method>
<Subscribe>
<requestedPort>12345</requestedPort>
<dataRequest>BottomDetection</dataRequest>
</Subscribe>
</method>
</request>
TheserverapplicationwillrespondwithaResponsemessage.TheSubscribemethodhas
thefollowingoutputparameters:
SubscriptionID:Theidenticationofthecurrentsubscription-canbeusedto
differentiatebetweenmultiplesubscriptionsonthesameport
AnexampleofthecontentsoftheResponseeldofaSubscribecommandtothe
RemoteDataServerisshownbelow.
<response>
<clientInfo>
<ciddt=”3”>1</cid>
<riddt=”3”>1</rid>
</clientInfo>
<fault>
<detail>
<errorcodedt=”3”>0</errorcode>
</detail>
</fault>
<SubscribeResponse>
<subscriptionIDdt=”3”></subscriptionID>
</SubscribeResponse>
</response>
Handlingdata
DatafromtheRemoteDataServerarewrappedinaProcessedDatastructure.
structProcessedData
{
charHeader[4];//”PRD\0”
longSeqNo;
//Sequencenumberofthecurrent
//UDPmessage
longSubscriptionID;
//Identificationofthecurrentdata
unsignedshortCurrentMsg;
//Currentmessagenumber
unsignedshortTotalMsg;
//TotalnumberofUDPmessages
unsignedshortNoOfBytes;
//Numberofbytesinthefollowing
//Datafield
unsignedshortData[];
//Actualdata
};
164692/D
207