3 #include <lib/dvb_ci/dvbci_mmi.h>
5 int eDVBCIMMISession::receivedAPDU(const unsigned char *tag, const void *data, int len)
7 printf("SESSION(%d)/MMI %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]==0x88))
17 printf("MMI display control\n");
18 if (((unsigned char*)data)[0] != 1)
19 printf("kann ich nicht. aber das sag ich dem modul nicht.\n");
20 state=stateDisplayReply;
25 unsigned char *d=(unsigned char*)data;
26 unsigned char *max=((unsigned char*)d) + len;
27 printf("Tmenu_last\n");
35 printf("%d texts\n", n);
36 for (int i=0; i < (n+3); ++i)
41 printf("text tag: %02x %02x %02x\n", d[0], d[1], d[2]);
43 d+=parseLengthField(d, textlen);
44 printf("%d bytes text\n", textlen);
45 if ((d+textlen) > max)
54 printf("unknown APDU tag 9F 88 %02x\n", tag[2]);
61 int eDVBCIMMISession::doAction()
68 case stateDisplayReply:
70 unsigned char tag[]={0x9f, 0x88, 0x02};
71 unsigned char data[]={0x01, 0x01};
72 sendAPDU(tag, data, 2);
79 unsigned char tag[]={0x9f, 0x88, 0x0b};
80 unsigned char data[]={5};
81 sendAPDU(tag, data, 1);