1 /* DVB CI Application Manager */
3 #include <lib/dvb_ci/dvbci_appmgr.h>
5 int eDVBCIApplicationManagerSession::receivedAPDU(const unsigned char *tag,const void *data, int len)
7 printf("SESSION(%d)/APP %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]==0x80))
19 printf("application info:\n");
20 printf(" len: %d\n", len);
21 printf(" application_type: %d\n", ((unsigned char*)data)[0]);
22 printf(" application_manufacturer: %02x %02x\n", ((unsigned char*)data)[2], ((unsigned char*)data)[1]);
23 printf(" manufacturer_code: %02x %02x\n", ((unsigned char*)data)[4],((unsigned char*)data)[3]);
24 printf(" menu string: ");
25 dl=((unsigned char*)data)[5];
28 printf("warning, invalid length (%d vs %d)\n", dl+6, len);
31 for (int i = 0; i < dl; ++i)
32 printf("%c", ((unsigned char*)data)[i+6]);
37 printf("unknown APDU tag 9F 80 %02x\n", tag[2]);
44 int eDVBCIApplicationManagerSession::doAction()
50 const unsigned char tag[3]={0x9F, 0x80, 0x20}; // application manager info e sendAPDU(tag);
56 printf("in final state.\n");
60 printf("wantmenu: sending Tenter_menu\n");
61 const unsigned char tag[3]={0x9F, 0x80, 0x22}; // Tenter_menu