Native OffCard API's

Hello everyone.

From topics posted int his forum I found out that there is ability to write OffCard-side application for working with JCOP card not inly Java, but also in C/ C++?I am right?

What are the native languages and interfaces/classes, that I can use to program host-side application for sending APDU's to my Applet installed on JCOP card?

Where can i find more info about that?

It would be very nice,

if you could tell me more about such OffCard solutions.

Bes regards,

Eve

[534 byte] By [Ievaa] at [2007-11-27 2:27:40]
# 1

To make it more clear,

I decided to explain, why I am so interested in alternative offCard solutions.

See, I have already developed an Java Card Applet.

I implemented Java OffCard API program, that enables to call to the Applet functions, installed on card.

But I also have a project, written in C++. So, I need to write some C functions, that just would send several APDU's to my implemented applet on-card.

I suppose, that communicating to the card is something quite similar to communication through sockets, just sending predefined APDU array. (simulation works just like that). So I think there must be some possibility in C/C++/.Net to send APDU's to the pcsc reader to use my applet. But there is no documentation to jct.dll that is used.

I hadn't been able to find more concrete information in the Internet.

Could you help me?

Best regards,

Eve

Ievaa at 2007-7-12 2:38:40 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 2
jct.dll is part of JCOP Tools anD IBM IP. The interface is not open. Contact scard@de.ibm.comAlternatively you should have a look at this open source project, where they plan to support the NXP Mifare reader Pegoda: http://www.openmrtd.org/projects/librfid/index.html
lexdabeara at 2007-7-12 2:38:40 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 3
How about using the WINSCARD APIs (PC/SC) provided by Microsoft Windows? This will work with any PC/SC compliant reader.
forum__usera at 2007-7-12 2:38:40 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 4
This is true, but the Pegoda reader can be used without PC/SC --> control and information according to ISO14443-4. Reasoning: E.g. PC/SC specification does not reflect the Answer To Select (ATS) --> no info about baud rate, WTX ...
lexdabeara at 2007-7-12 2:38:40 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 5

where can I find more info about winscard API's?

And what about MUSCLE pc/cs solutions? Are those developed only for linux os?

@lexdabear

so there are no non-Java (C/C#/C++) interfaces for Gemplus or Suns's reader?

I have to get pegoda reader? Where can I buy one?

Thank you very much for your help.

Eve

Ievaa at 2007-7-12 2:38:40 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 6
@lexdabear:talking about the project, you posted the link to, they really are only PLANNINGto support pegoda. So, if i understood everything well, the free version supports only con tactless card interface.?thanks a lot,Eve
Ievaa at 2007-7-12 2:38:40 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 7

Hello,

I found out that winscard.dll must be use to communicate with Java Card through the pc/sc card reader using .NET techniques. But were can I find some wrappers, classes or interfaces (or even winscard .dll) documentation to work with it?

Please, give me some hints. I really need those.

Best regards,

Eve

Ievaa at 2007-7-12 2:38:40 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 8
Have u tried the J2SE 6.0 ? It contains off card APIs
Joseph.Smitha at 2007-7-12 2:38:40 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 9
Not true. U may use c/c++ without .NET environment. Also, the winscard.dll is for communicating to a PC/SC reader, it doesn't care about the card type. For C# wrappers, take a look at this http://www.codeproject.com/smartclient/smartcardapi.asp
Joseph.Smitha at 2007-7-12 2:38:40 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 10

Thanks, Joseph, for your replies a lot. I have already found this project.

Talking about Java OfffCard API, I have already implement it using JCOP tools OffCard API classes & interfaces.

But I needed some native solutions, to make it compatible with other C/C++/C# code projects. The project you posted link to is the only solution i have found.

Thanks a lot for your help.

Best regards,

Eve

Ievaa at 2007-7-12 2:38:40 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 11

I'm not a fan of JCOP tools Offcard APIs in a deployment environment, that's why I pointed to the JDK 6.

I'm still confused. You state native, but you mention C#. (A VM platform) The site I pointed you to is how I did C# P/Invoke implementation a while back. The problem is that in Microsoft, typically, you must engineer your wrappers. For C/C++, in Windows, use the SCardAPIs, for native C/C++ in Linux try the MUSCLE. All utilize PC/SC.

Joseph.Smitha at 2007-7-12 2:38:40 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 12

I am sorry for my mistake, talking about C#. Actually, I had been working with it just a bit. I am not good at it.

Mostly I program in Java & C++. But this time i need to use C++. So this one would be the best solution for me.

Thanks for your advices,

Best regards,

Eve

Ievaa at 2007-7-12 2:38:40 > top of Java-index,Java Mobility Forums,Consumer and Commerce...