Thursday, February 21, 2008

Terminal Response

  • OPEN CHANNEL <-- Channel Identifier
ProactiveResponseHandler ProRespHdlr; // get the system instance
ProRespHdlr = ProactiveResponseHandlerSystem.getTheHandler();
ChannelID = ProRespHdlr.getChannelIdentifier() ;
  • SEND DATA <-- Channel Data Length
  • CLOSE CHANNEL <-- OK
  • GET CHANNEL STATUS <-- Channel Status
  • RECEIVE DATA <-- Channel Data Length , Data
ProactiveResponseHandler ProRespHdlr; // get the system instance
ProRespHdlr = ProactiveResponseHandlerSystem.getTheHandler();
ProRespHdlr.findTLV(TAG_CHANNEL_DATA ,0);
sOffset= ProRespHdlr.copyChannelData(byte[] dstBuffer, short dstOffset, short dstLength) ;
ProRespHdlr.findTLV(TAG_CHANNEL_DATA_LENGTH ,0);
datalength=ProRespHdlr.getValueVyte((short)0x0000);