1 /* DVB CI DateTime Manager */
3 #include <lib/dvb_ci/dvbci_datetimemgr.h>
5 int eDVBCIDateTimeSession::receivedAPDU(const unsigned char *tag,const void *data, int len)
7 printf("SESSION(%d)/DATETIME %02x %02x %02x: ", session_nb, tag[0],tag[1], tag[2]);
8 for (int i=0; i<len; i++)
9 printf("%02x ", ((const unsigned char*)data)[i]);
12 if ((tag[0]==0x9f) && (tag[1]==0x84))
17 state=stateSendDateTime;
21 printf("unknown APDU tag 9F 84 %02x\n", tag[2]);
28 int eDVBCIDateTimeSession::doAction()
34 case stateSendDateTime:
36 unsigned char tag[3]={0x9f, 0x84, 0x41}; // date_time_response
37 unsigned char msg[7]={0, 0, 0, 0, 0, 0, 0};
38 sendAPDU(tag, msg, 7);
42 printf("stateFinal und action! kann doch garnicht sein ;)\n");