From: Karsten O. <kar...@go...> - 2009-11-18 16:15:16
|
zam...@gm... schrieb: > Hi, > Yes, the reader was unstable. I changed the usb-serial converter, now > works better. > > This is the output of get_status -element 80 > > get_status -element 80 > Command --> 80F28000024F0000 > Wrapped command --> 84F2800010F5A2FB96B63303BAE5DF43FACFC9A1E700 > Response <-- 08A0000000030000000F9E9000 > GP211_get_status() returned 1 items > List of elements (AID state privileges) > a000000003000000 f 9e > card_disconnect > release_context OK, a000000003000000 is the AID. Does it work now? Karsten > > From Nokia-UnlockMidlet-REAME: > "DO NOT DELETE THE FOLLOWING Application IDs from the secure element: > A000000003000000 > D276000005AB0503E0040101 > A0000000035350 > D276000005AA040360010410 > D276000005AA0503E00401 > The following AIDs are not mandatory for unlocked secure element > operation, and may be deleted if required for saving EEPROM space: > D276000005AA0503E0050101 > D276000005AA0503E00501" > > > > Thanks. > > > > Il giorno , Karsten Ohme <kar...@go...> ha scritto: > > zam...@gm... schrieb: > > > > > Hi, > > > > > Sorry, but I do not understand what you mean .. > > > > > (Can you find out the aid the Card Manager or Security Domain AID of > > > > > the smart card?) > > > > > You can explain it better? What should I do? Maybe you want this: > > > > Hi, > > > > > > > > Yes. Good idea. > > > > > > > > Try to issue get_status -element 80. The aid contained there is the > > > > Security domain AID I mean for the select command. > > > > > > > > If the card is not implemented correctly then this might not work. Blame > > > > the card manufacturer. > > > > > > > > I'm not sure but you also try a0000000035350 as the AID for the select > > > > command. > > > > > > > > The output from version1.4.2 is better, but there is a problem in the > > > > communication layer. Is the smartcard correctly connected? Has the > > > > reader problems? Is the contactless reader close enough? I cannot > > > > influence this behavior. > > > > > > > > BR, > > > > Karsten > > > > > > > > > > mode_211 > > > > > enable_trace > > > > > establish_context > > > > > card_connect > > > > > * reader name FEIG ID CPR.M02.VP/AB-C 0 > > > > > open_sc -security 3 -keyver 42 -mac_key > > > > > 404142434445464748494A4B4C4D4E4F -enc_ke > > > > > y 404142434445464748494A4B4C4D4E4F -kek_key > > > > > 404142434445464748494A4B4C4D4E4F > > > > > Command --> 80CA006600 > > > > > Wrapped command --> 80CA006600 > > > > > Response > > > 664C734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864 > > > > > > 886FC6B03640B06092A864886FC6B040255650B06092B8510864864020103660C060A2B060104012 > > > > > A026E01029000 > > > > > Command --> 80502A0008F4B11F2FF3A529D700 > > > > > Wrapped command --> 80502A0008F4B11F2FF3A529D700 > > > > > Response > > > Command --> 848203001084E2011D9F2FBDF101B8A29BD96692FF > > > > > Wrapped command --> 848203001084E2011D9F2FBDF101B8A29BD96692FF > > > > > Response > > > get_status -element 20 > > > > > Command --> 80F22000024F0000 > > > > > Wrapped command --> 84F22000106FD558A18D06BD3317C2834FBDE639B900 > > > > > Response > > > 07A000000003535001000CD276000005AA04036001041001000BD276000005AA050 > > > > > 3E0040101000BD276000005AA0503E0050101009000 > > > > > GP211_get_status() returned 4 items > > > > > > > > > > List of elements (AID state privileges) > > > > > a0000000035350 1 0 > > > > > d276000005aa040360010410 1 0 > > > > > d276000005aa0503e00401 1 0 > > > > > d276000005aa0503e00501 1 0 > > > > > card_disconnect > > > > > release_context > > > > > > > > > > > > > > > However I try a000000003000000 and I get a step forward ( with 1.4.2!) > > > > > > > > > > mode_211 > > > > > enable_trace > > > > > establish_context > > > > > card_connect > > > > > * reader name FEIG ID CPR.M02.VP/AB-C 0 > > > > > select -AID a000000003000000 > > > > > Command --> 00A4040008A000000003000000 > > > > > Wrapped command --> 00A4040008A000000003000000 > > > > > Response > > > open_sc -security 3 -keyver 42 -mac_key > > > > > 404142434445464748494A4B4C4D4E4F -enc_ke > > > > > y 404142434445464748494A4B4C4D4E4F -kek_key > > > > > 404142434445464748494A4B4C4D4E4F > > > > > Command --> 80CA006600 > > > > > Wrapped command --> 80CA006600 > > > > > Response > > > 664C734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864 > > > > > > 886FC6B03640B06092A864886FC6B040255650B06092B8510864864020103660C060A2B060104012 > > > > > A026E01029000 > > > > > Command --> 80502A0008C9F6A8AAA063845300 > > > > > Wrapped command --> 80502A0008C9F6A8AAA063845300 > > > > > Response > > > Command --> 8482030010108DCF253D220762B371CB7F3EFF7A0B > > > > > Wrapped command --> 8482030010108DCF253D220762B371CB7F3EFF7A0B > > > > > Response > > > install -file HelloWorld.cap -priv 2 > > > > > file name HelloWorld.cap > > > > > Command --> > > > > > 80E602001C09A00000006203010C0108A0000000030000000006EF04C60201A80000 > > > > > Wrapped command --> > > > > > 84E6020028BC61022952CE14237C8BD3588EC062E6E607AD50755F5BE7AA > > > > > D9C9B0E207A8642B72A1309ED6D01C00 > > > > > Response > > > Command --> > > > > > 80E80000EFC482019B010013DECAFFED010204000109A00000006203010C0102001F > > > > > > 0013001F000E000B0036000C0067000A00130000006C00000000000001010004000B01000107A000 > > > > > > 000062010103000E010AA00000006203010C0101001406000C00800301000107010000001F070067 > > > > > > 000210188C000118110100900B8700188B00027A02308F00033D8C00043B7A0523198B00052D198B > > > > > > 00063203290470191A08AD0016041F8D000B3B16041F41290419088B000C321F64E8198B00073B19 > > > > > > 160408418B00081903088B000919AD000316048B000A7A08000A0000000000000000000005003600 > > > > > 0D020000000680030003 > > > > > Wrapped command --> > > > > > 84E80000F8BF2991D032CB541685823E5095B87C377B937F8F7F6CA47F8F > > > > > > 7786911CD3B82497AD3D4C59194065F59AF6D8B2F5587F38392FD9F4D91578885E7C3CE37E88E38D > > > > > > 19686AF526B0F36DB0E8805157D49435511EC056E7E3D9B5C28D8630E85F7E772948D893F19FF955 > > > > > > 932A6FAB28C0F040C2A1AD68903342B5591FE094AF643736EA224DC629FE37DF8A6614A1D87C6D84 > > > > > > B16A472820700A12415434C398C34C00442BC74E7AD41802C0CDC992BD95FE70AB15B3498DC76BBF > > > > > > 8904921DFD3A522DBC3968C36F8242329EFDBAB6D4F23C11D8156E71FA783AFA89ADF41AB693B551 > > > > > 486F9513BA2F5EA921308A5CC95212735AE19999F38C44 > > > > > load_applet() returns 0x8010002F (Errore di comunicazione con la smart > > > > > card. Riprovare.) > > > > > > > > > > > > > > > Again many thanks. > > > > > > > > > > > > > > > > > > > > Il giorno , Karsten Ohme kar...@go...> ha scritto: > > > > > > andrea zambon schrieb: > > > > > > > > > > > > > Hi, thanks for reply, very kind. > > > > > > > > > > > > > I added the select command but the result has not changed. > > > > > > > > > > > > > I'm working on the same PC. I do not know the reason for the > language, > > > > > > > > > > > > > I have 2 folders GPshell 1.4.1 and 1.4.2. Downloaded from > Sourceforge. > > > > > > > > > > > > > > > > > > > > > > > > > > Result with 1.4.2: > > > > > > > > > > > > > > > > > > > > > > > > Can you find out the aid the card manager or Security Domain AID > of the > > > > > > > > > > > > smart card? I still think this is the problem. Maybe it is also > > > > > > > > > > > > a000000003000000. > > > > > > > > > > > > > > > > > > > > > > > > Karsten > > > > > > > > > > > > > > > > > > > > > > > > > > mode_211 > > > > > > > > > > > > > enable_trace > > > > > > > > > > > > > establish_context > > > > > > > > > > > > > card_connect > > > > > > > > > > > > > * reader name FEIG ID CPR.M02.VP/AB-C 0 > > > > > > > > > > > > > select -AID a0000000030000 > > > > > > > > > > > > > Command --> 00A4040007A0000000030000 > > > > > > > > > > > > > Wrapped command --> 00A4040007A0000000030000 > > > > > > > > > > > > > Response > > > > > > > open_sc -security 3 -keyver 42 -mac_key > > > > > > > > > > > > > 404142434445464748494A4B4C4D4E4F -enc_ke > > > > > > > > > > > > > y 404142434445464748494A4B4C4D4E4F -kek_key > > > > > > > > > > > > > 404142434445464748494A4B4C4D4E4F > > > > > > > > > > > > > Command --> 80CA006600 > > > > > > > > > > > > > Wrapped command --> 80CA006600 > > > > > > > > > > > > > Response > > > > > > > > 664C734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864 > > > > > > > > > > > > > > > > > > > 886FC6B03640B06092A864886FC6B040255650B06092B8510864864020103660C060A2B060104012 > > > > > > > > > > > > > A026E01029000 > > > > > > > > > > > > > Command --> 80502A0008A427CC0E0ABB8FB600 > > > > > > > > > > > > > Wrapped command --> 80502A0008A427CC0E0ABB8FB600 > > > > > > > > > > > > > Response > > > > > > > Command --> 8482030010D847E0B2509D16D7C0178374D5976F7E > > > > > > > > > > > > > Wrapped command --> 8482030010D847E0B2509D16D7C0178374D5976F7E > > > > > > > > > > > > > Response > > > > > > > install -file HelloWorld.cap -priv 2 > > > > > > > > > > > > > file name HelloWorld.cap > > > > > > > > > > > > > Command --> > > > > > > > > > > > > > 80E602001B09A00000006203010C0107A00000000300000006EF04C60201A80000 > > > > > > > > > > > > > Wrapped command --> > > > > > > > > > > > > > 84E602002899F4BD84D036511FF66AB18927AF89865DA1BA8A5DAFB78BBC > > > > > > > > > > > > > C7908BBA3499B6164B61196F2FBAB700 > > > > > > > > > > > > > Response > > > > > > > install_for_load() returns 0x80206A88 (6A88: Referenced data not > > > > > found.) > > > > > > > > > > > > > > > > > > > > > > > > > > Result with 1.4.1: > > > > > > > > > > > > > > > > > > > > > > > > > > mode_211 > > > > > > > > > > > > > enable_trace > > > > > > > > > > > > > establish_context > > > > > > > > > > > > > card_connect > > > > > > > > > > > > > * reader name FEIG ID CPR.M02.VP/AB-C 0 > > > > > > > > > > > > > select -AID a0000000030000 > > > > > > > > > > > > > --> 00A4040007A0000000030000 > > > > > > > > > > > > > > > > > > > > open_sc -security 3 -keyver 42 -mac_key > > > > > > > > > > > > > 404142434445464748494A4B4C4D4E4F -enc_ke > > > > > > > > > > > > > y 404142434445464748494A4B4C4D4E4F -kek_key > > > > > > > > > > > > > 404142434445464748494A4B4C4D4E4F > > > > > > > > > > > > > --> 00CA006600 > > > > > > > > > > > > > > > > > > > > > > > > > > 734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864886FC6B03640B > > > > > > > > > > > > > > > > > > > 06092A864886FC6B040255650B06092B8510864864020103660C060A2B060104012A026E01029000 > > > > > > > > > > > > > --> 80502A00081937B683882CF88500 > > > > > > > > > > > > > > > > > > > > --> 84820300100B0E61E989E5B545E29954DD6542C624 > > > > > > > > > > > > > > > > > > > > install -file HelloWorld.cap -priv 2 > > > > > > > > > > > > > file name HelloWorld.cap > > > > > > > > > > > > > --> 80E602001409A00000006203010C01000006EF04C60201A80000 > > > > > > > > > > > > > > > > > > > > --> > > > > > > > > > > > > > > > > > > > 80E80000EFC482019B010013DECAFFED010204000109A00000006203010C0102001F0013001F > > > > > > > > > > > > > > > > > > > 000E000B0036000C0067000A00130000006C00000000000001010004000B01000107A00000006201 > > > > > > > > > > > > > > > > > > > 0103000E010AA00000006203010C0101001406000C00800301000107010000001F07006700021018 > > > > > > > > > > > > > > > > > > > 8C000118110100900B8700188B00027A02308F00033D8C00043B7A0523198B00052D198B00063203 > > > > > > > > > > > > > > > > > > > 290470191A08AD0016041F8D000B3B16041F41290419088B000C321F64E8198B00073B1916040841 > > > > > > > > > > > > > > > > > > > 8B00081903088B000919AD000316048B000A7A08000A00000000000000000000050036000D020000 > > > > > > > > > > > > > 000680030003 > > > > > > > > > > > > > load_applet() returns 0x8010002F (Errore di comunicazione con > la smart > > > > > > > > > > > > > card. Rip > > > > > > > > > > > > > rovare. > > > > > > > > > > > > > ) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Other people have worked with this phone. > > > > > > > > > > > > > These problems could be due to a permanent block of the SE? How do > > > > > I know? > > > > > > > > > > > > > > > > > > > > > > > > > > I have strong doubts about the stability of the reader PCSC, > sometimes > > > > > > > > > > > > > this happens: > > > > > > > > > > > > > mode_211 > > > > > > > > > > > > > enable_trace > > > > > > > > > > > > > establish_context > > > > > > > > > > > > > card_connect > > > > > > > > > > > > > * reader name FEIG ID CPR.M02.VP/AB-C 0 > > > > > > > > > > > > > select -AID A000000003000000 > > > > > > > > > > > > > Command --> 00A4040008A000000003000000 > > > > > > > > > > > > > Wrapped command --> 00A4040008A000000003000000 > > > > > > > > > > > > > select_application() returns 0x8010002F (Errore di > comunicazione con > > > > > > > > > > > > > la smart card. Riprovare.) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Could be the player to not operate properly and generate these > > > > > errors? > > > > > > > > > > > > > > > > > > > > > > > > > > I am an engineering student at the University of Padova - IT, > and I'm > > > > > > > > > > > > > writing a thesis on NFC. I'd like to better understand these > commands, > > > > > > > > > > > > > you can recommend some useful reading in addition to the > > > > > > > > > > > > > GlobalPlatform specifications? > > > > > > > > > > > > > Thank you. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 2009/11/17 Karsten Ohme kar...@go... > > > > > > > > > > > > > kar...@go...>> > > > > > > > > > > > > > > > > > > > > > > > > > > Hi Andrea, > > > > > > > > > > > > > > > > > > > > > > > > > > install_for_load() returns 0x80206A88 (6A88: Referenced > data not > > > > > > > > > > > > > found.) > > > > > > > > > > > > > > > > > > > > > > > > > > is the first command which prepares the card for the > loading of an > > > > > > > > > > > > > application. If this step fails something is wrong with the > > > > > parameters > > > > > > > > > > > > > given, e.g. not enough size on the card for the applet or the > > > > > Security > > > > > > > > > > > > > Domain in which the applet should be installed does not exist. > > > > > > > > > > > > > Referenced data not found implies the last. > > > > > > > > > > > > > > > > > > > > > > > > > > 80E602001B > > > > > > > > > > > > > 09 A00000006203010C01 -> package AID of the applet to install > > > > > > > > > > > > > 07 A0000001510000 -> Security Domain AID > > > > > > > > > > > > > 00 -> no hash value given > > > > > > > > > > > > > 06 EF 04 C6 02 01 A8 -> 01A8 = 424 bytes to send > > > > > > > > > > > > > 00 -> No load token > > > > > > > > > > > > > 00 -> Le = Maximum bytes expected in response APDU > > > > > > > > > > > > > > > > > > > > > > > > > > The communication error with 1.4.1 seems to be worse. But why > > > > > is the > > > > > > > > > > > > > last output English and the second Italian? Different pc? > > > > > > > > > > > > > > > > > > > > > > > > > > So I think the security domain A0000001510000 does not > exist. Try > > > > > > > > > > > > > > > > > > > > > > > > > > "select -AID A000000003000000" after the card_connect to > > > > > select the > > > > > > > > > > > > > security domain. > > > > > > > > > > > > > > > > > > > > > > > > > > Karsten > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > andrea zambon schrieb: > > > > > > > > > > > > > > I'm trying to install HelloWorld.cap in a Nokia 6212 NFC > > > > > unlocked by > > > > > > > > > > > > > > Nokia Midlet. > > > > > > > > > > > > > > Nokia 6212 should contain G&D smartcafe. > > > > > > > > > > > > > > > > > > > > > > > > > > > > Try with gpshell 1.4.2: > > > > > > > > > > > > > > > > > > > > > > > > > > > > mode_211 > > > > > > > > > > > > > > enable_trace > > > > > > > > > > > > > > establish_context > > > > > > > > > > > > > > card_connect > > > > > > > > > > > > > > * reader name FEIG ID CPR.M02.VP/AB-C 0 > > > > > > > > > > > > > > open_sc -security 3 -keyver 42 -mac_key > > > > > > > > > > > > > > 404142434445464748494A4B4C4D4E4F -enc_ke > > > > > > > > > > > > > > y 404142434445464748494A4B4C4D4E4F -kek_key > > > > > > > > > > > > > > 404142434445464748494A4B4C4D4E4F > > > > > > > > > > > > > > Command --> 80CA006600 > > > > > > > > > > > > > > Wrapped command --> 80CA006600 > > > > > > > > > > > > > > Response > > > > > > > > > > > > > 664C734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 886FC6B03640B06092A864886FC6B040255650B06092B8510864864020103660C060A2B060104012 > > > > > > > > > > > > > > A026E01029000 > > > > > > > > > > > > > > Command --> 80502A00087B1EB2D3E35BD35800 > > > > > > > > > > > > > > Wrapped command --> 80502A00087B1EB2D3E35BD35800 > > > > > > > > > > > > > > Response > > > > > > > 00007320CCAAA75453292A02002B4111DDD715BBB83BB0AD42D591A09000 > > > > > > > > > > > > > > Command --> 84820300103FA3EF3687F9719E00A40C3279DC17A0 > > > > > > > > > > > > > > Wrapped command --> > 84820300103FA3EF3687F9719E00A40C3279DC17A0 > > > > > > > > > > > > > > Response > > > > > > > > install -file HelloWorld.cap -priv 2 > > > > > > > > > > > > > > file name HelloWorld.cap > > > > > > > > > > > > > > Command --> > > > > > > > > > > > > > > > > > > > 80E602001B09A00000006203010C0107A00000015100000006EF04C60201A80000 > > > > > > > > > > & |