1 /* DVB CI DateTime Manager */
3 #include <lib/base/eerror.h>
4 #include <lib/dvb_ci/dvbci_datetimemgr.h>
6 int eDVBCIDateTimeSession::receivedAPDU(const unsigned char *tag,const void *data, int len)
8 eDebugNoNewLine("SESSION(%d)/DATETIME %02x %02x %02x: ", session_nb, tag[0],tag[1], tag[2]);
9 for (int i=0; i<len; i++)
10 eDebugNoNewLine("%02x ", ((const unsigned char*)data)[i]);
13 if ((tag[0]==0x9f) && (tag[1]==0x84))
18 state=stateSendDateTime;
22 eDebug("unknown APDU tag 9F 84 %02x", tag[2]);
29 int eDVBCIDateTimeSession::doAction()
35 case stateSendDateTime:
37 unsigned char tag[3]={0x9f, 0x84, 0x41}; // date_time_response
38 unsigned char msg[7]={0, 0, 0, 0, 0, 0, 0};
39 sendAPDU(tag, msg, 7);
43 eDebug("stateFinal und action! kann doch garnicht sein ;)");