JCOP Activation

Hi,

I'm trying to activate JCOP plug-in for Eclipse. I have a JCOP Engineering Sample Card and a Philips Pegoda Reader (contactless).

I choose "Check a JCOP Engineering Sample Card" from the JCOP Licensing Wizard, then I select Philips Pegoda Reader.

When I press "Finish" it give me this error:

Cannot load DLL: C:\eclipse\plugins\com.ibm.bluez.jcop.eclipse_3.1.1.b\os\win32\x86\tcl.dll

can you help me?

thanks

[457 byte] By [alez_a] at [2007-11-27 11:31:08]
# 1

Try to locate this dll and copy it to a path folder (e.g. system32).

lexdabeara at 2007-7-29 16:37:56 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 2

Thanks for your advice. I have copied dll in system32 but I receive the same error.

alez_a at 2007-7-29 16:37:56 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 3

Hmm, maybe you need Mifare Wnd (Pegoda tool) installed as well:

http://www.nxp.com/files/markets/identification/download/pe089917.zip

lexdabeara at 2007-7-29 16:37:56 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 4

I have installed Mifare Wnd but it doesn't solve the problem.

I have also another reader: NFC encoder by TopTunniste.

Pegoda reader is the default in the JCOP Licensing Wizard. Can I add

the topTunniste' s reader in order to activate JCOP tools? How can i add it?

Thanks

alez_a at 2007-7-29 16:37:56 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 5

Probably a really stupid question, but you have made sure you have installed all necessary drivers?

Lillesanda at 2007-7-29 16:37:56 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 6

When i use Pegoda with mifare wnd it works well. Also topTunniste's reader works with its software. They read and write tags so i think that there are all the necessary drivers.

alez_a at 2007-7-29 16:37:56 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 7

tcl.dll attempts to load the Philips Mifare DLLs which in your case fails and thus tcl.dll refuses to load alltogether. Since tcl.dll uses LoadLibrary(), standard Win32 search procedure applies (you can look that up on MSDN).

There are (at least) two ways to get around the problem:

1) (preferred): Add the the MifareWnd directory (usually C:\Program Files\Philips Semiconductors\MifareWnd) to your PATH environment variable.

or

2) Copy all DLLs from the MifareWnd directory to system32.

mkdataa at 2007-7-29 16:37:56 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 8

Thank you! Now it loads dll and detects the reader, but it says that the detected card is not a JCOP Sample Card. I have Eclipse 3.2 and JCOP 3.1.1.b

alez_a at 2007-7-29 16:37:56 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 9

It should give you an error number, can you tell me what it is?

mkdataa at 2007-7-29 16:37:56 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 10

Code: 0x3

alez_a at 2007-7-29 16:37:56 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 11

This usually means that the card manager could not be selected. You should try to select the card manager using MifareWnd -- if that doesn't work, something is wrong with your sample card. The command APDU to select the card manager is "00 A4 04 00 08 A0 00 00 00 03 00 00 00 00"

mkdataa at 2007-7-29 16:37:56 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 12

The card is probably in the life cycle 'terminated'. This is the only time the ISD cannot be selected.

lexdabeara at 2007-7-29 16:37:56 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 13

Or the card manager has a different AID. Unlikely, but possible.

mkdataa at 2007-7-29 16:37:56 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 14

In MifareWnd i select File->New TCL. I press "Act. Idle Loop + get ATS" then i send the APDU command. I receive 0x6A82. Is it the right way?

alez_a at 2007-7-29 16:37:56 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 15

mkdata is right. '6A82' means that the AID was not found. Can you send the IDENTIFY command: ==> 00 A4 04 00 09 A0 00 00 01 67 41 30 00 FF 00

lexdabeara at 2007-7-29 16:38:01 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 16

thanks for your replies.

With IDENTIFY command I receice:

30 04 01 24 00 00 00 00 50 48 35 32 32 44 00 03 D8 8D 93 6A 82. I've tried to send this response and i receive 6A81.

What does it mean?

alez_a at 2007-7-29 16:38:01 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 17

fabkey ID: 0x30

patch ID: 0x04

target ID: SmartMX

mask ID: 0x24

mask name: PH522D

Fused? No

ROM check sum: 0x03 D8 8D 93

Did you get a transport key with your samples?

lexdabeara at 2007-7-29 16:38:01 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 18

With MifareWnd I write mifare blocks with default key "FF FF FF......" and it works.

Is this the key you refer to? (Sorry i'm new in Java card). I didn't receive any key with samples.

alez_a at 2007-7-29 16:38:01 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 19

The transport key is a NXP proprietary key to pre-personalize the card. You could have used it to boot the card.

I suggest you contact the customer support wherever you purchased it.

lexdabeara at 2007-7-29 16:38:01 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 20

I need card only for the activation of JCOP plug-in. Do i have to boot the card in order to do this? In what consist of the booting of the card?

Thanks.

alez_a at 2007-7-29 16:38:01 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 21

It's interesting that you've received a Mask36 card that is unfused. May I ask where you obtained that sample from?

mkdataa at 2007-7-29 16:38:01 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 22

What is so special about Mask ID 36? The newer JCOP 41 all comes with Mask ID 39 except some customer masked as far as I know.

sonnyyua at 2007-7-29 16:38:01 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 23

Mask36 is a pretty old mask (the last one from the Zurich labs). The special thing is that it was supplied to a customer unfused. That's why I'd like to know where it came from before supplying any further information.

mkdataa at 2007-7-29 16:38:01 > top of Java-index,Java Mobility Forums,Consumer and Commerce...