SCardConnect returns 1

720 byte By zielonyplota at 2007-10-2 21:45:03
Hi!I have a smart card reader EZ100PR. I can do ScardEstablishContext and SCardListReaders, but when I do ScardConnect, I get an error with value '1'. Can anybody tell me what I am doing wrong? rv = CasEstablishContext(SCARD_SCOPE_SYSTEM, NULL, NULL, &hContext);...rv = ...

Building a keyPair in JCDK 2.2.1

446 byte By rafa_lla at 2007-10-2 21:50:04
Hi all,I'm trying to build a keyPair in my applet. I'm using a SAGEM ORGA Card with JCDK 2.2.1. When I try to build a key pair using the line keyPair = new KeyPair(keyAlg,keyLength);I always get a NO_SUCH_ALGORITHM exception. I've used every possible combination of algorithm and key length ...

avoiding unauthorized applet installation?

457 byte By CyndyUPCa at 2007-10-2 21:53:29
Hello,I had recently started developing some applications with javacards, but now I have a huge doubt: If I write, lets say the wallet applet, then I install it in the card, how do I prevent somebody from maliciously rewriting the same applet (if they know the applet ID and the interface with ...

setting up and coding

298 byte By mann_1600a at 2007-10-2 21:55:40
hi, i would like to develop card applications.but every time i install Java Card 2.2.1 i can't code.Are there IDEs i could use.secondly what good book is available for a starter like me.thanksDennis, Nairobidsaoli@gmail.comMessage was edited by:

hello

3242 byte By BIXBANa at 2007-10-2 21:58:06
iHi all, I would like to know how to compile and run the code below inorder to communicate with the oncard applet. I will like to know if there are any particular steps to follow. I tried editing the applet, making it a gui and that didnt work either.1. I would like to know if anyone has a ...

ServiceContext.select(locator [])

1232 byte By woodheada at 2007-10-2 22:00:07
HiThis method confuses me.According to interactivetv web, this method allows an applicationto select parts of a service to be presented.Suppose that there is a service which contains 3 service components, and they are audio, video and an xlet (service bound). Thus we have 3 locators refering ...

pc/sc, apdu and simcard problem

1123 byte By zielonyplota at 2007-10-2 22:01:40
Hi!I have a little problem:I want to write an application to read data from sim card. I am using pc/sc and apdu commands.I am doing something like this:--DWORD dwRespLen;BYTE pbResp [256];BYTE SELECTDF[] = { 0xA0 , 0xA4 , 0x00 , 0x00 , 0x02, 0x7F, 0x20 } ;BYTE SELECTEF[] = { 0xA0 , 0xA4 , 0x00 ...

JCOP and CAP file components

845 byte By claudio_jorgea at 2007-10-2 22:02:02
Hi,I'm trying to reproduce the APDU install (for load) and load (CAP file) commands the JCOP shell executes when you run an applet whith JCOP 3.1.I noticed that the JCOP shell executes as many load commands as the CAP file size requires since the max datafield size of an APDU command is 255 ...

To start programming a java card...

166 byte By dani_studa at 2007-10-2 22:08:45
do I have to buy a complete kit (400$ to 600$) ?or is it possible to buy just a reader and a couple of cards ?thank you for your help,dani

SMS and manage of records of the EFadn File

723 byte By Maribela at 2007-10-2 22:09:55
hello all:Im working in a project and I have to:first:send a sms to the network with the content of EFadn fileSecond:When the server of the network sends me others msm with modification in the EFadn, I have to replace with the new File.My questions are:1. when I erase a record of the EFadn file ...

Read file on DSM-CC data carousel

170 byte By aasemerethea at 2007-10-2 22:16:52
I have some files located on a DSM-CC data carousel that I'd like to read from a MHP STB. Does anyone know how this is done? Has anyone made such a reader?

GET_RESPONSE

100 byte By ricardopandales@gmail.coma at 2007-10-2 22:19:11
hello.somebody knows how can I use GET_RESPONSE command?, what return?.regards.

CREATE FILE problem

730 byte By zielonyplota at 2007-10-2 22:20:52
Hi!I have problem with apdu command CREATE FILE.After perform of this command, I get response:9F 19,which means that this command was correctly executed. But after this I want to read this newly created file, and I get response:94 00,which means that I didn't select EF.What I am doing wrong?My ...

problems installing applet

15918 byte By Vit21a at 2007-10-2 22:21:49
Hi,I'm a newbie javacard programmer, and I've met some problems with it.When I try to load applet with cref, it returns output like this:CLA: 00, INS: a4, P1: 04, P2: 00, Lc: 09, a0, 00, 00, 00, 62, 03, 01, 08, 01, Le: 00, SW1: 90, SW2: 00CLA: 80, INS: b0, P1: 00, P2: 00, Lc: 00, Le: 00, SW1: ...

RMI callback

115 byte By dnamiota at 2007-10-2 22:22:54
Is it possible to use RMI callbacks with JCRMI? This final goal is to call J2ME stuff from Java Card applet.

size EFadn

91 byte By Maribela at 2007-10-2 22:28:59
hi:im reading the EFadn and I need to know its size. How can I get it?

Why SATSA-APDU on MHP1.1.2?

275 byte By CVMatomicSwapa at 2007-10-2 22:31:43
In MHP1.1.2, SATSA-APDU is defined for non-CA smartcard interface, and PKCS#11api is also defined for smartcard token. By using PKCS#11 api, I think, every operations using smartcards could be implemented. What is purpose of SATSA-APDU?Thanks in advance!

Reading a EF

199 byte By ricardopandales@gmail.coma at 2007-10-2 22:34:00
Hello.Im reading a EF with readRecord command, I want to read all EF, but i dont know how stoping it.What stop statement can i use for? orhow do i know that is the EFend?.

Create cap file if i have more applets in different packages

1912 byte By acaccapartia at 2007-10-2 22:34:24
anybody know as i can to create files .cap using converter command if i have more applets in different packages.i.e. watching example in C:\java_card_kit-2_2_2\samples\src\com\sun\javacard\samples\odSample there are 3 packages: packageA, packageB, libPackageC any package have a opt file: for ...

MACing in JCOP shell

585 byte By andyeba at 2007-10-2 22:37:59
I need to send some commands to a JCOP card in a secure channel (i.e. after an init-update <key set> and ext-auth mac (or ext-auth enc)).The problem is, the shell does not seem to be doing the required MACing on the data part of the APDU when I send an APDU using the /send command.Does ...

What is Java Card and where it is applicable?

141 byte By Mahendran_Aa at 2007-10-2 22:38:12
Sir I am fiding this Java Card term in so many areas. I don't know what is. It will be very thank ful if any body can clear my doubt.

What is Java Card and where it is applicable?

141 byte By Mahendran_Aa at 2007-10-2 22:38:13
Sir I am fiding this Java Card term in so many areas. I don't know what is. It will be very thank ful if any body can clear my doubt.

Cheap Javacards

381 byte By leoninea at 2007-10-2 22:40:09
O knowledgeable ones --What's the cheapest JavaOS card out there? I'm only interested in putting 1-2 PKI cert(s) on the card for authentication purposes, so the EEPROM req's are low.I'm finding the following for small numbers:Axalto: 21-23 bucksOberthur: Unknown (know any ...

help with sms

621 byte By Maribela at 2007-10-2 22:40:34
hi:im working with a Simulation and I trying to send and to receive sms. this is the piece of code to send in the same phone of the simulator :byte [] enviar=new byte[ 160];byte [] ALPHA_ID=myByteBuffer5; myProHdlr.init(PRO_CMD_SEND_SHORT_MESSAGE,(byte) 0,DEV_ID_SIM); ...

Global Platform : differences between Secure Channel Protocol(s) 1 and 2

804 byte By claudio_jorgea at 2007-10-2 22:47:08
Hi,I have some questions about the Secure Channel Protocols described by GlobalPlatform.The response APDU to the INITIALIZE UPDATE command differs in SCP1 and SCP2 :SCP1 : the cardChallenge sizes 8 bytesSCP2 : the cardChallenge sizes 6 bytes (+a 2 bytes sequence counter)Since the cardChallenge ...

Problem with adup

231 byte By brightokonaa at 2007-10-2 22:53:31
Please am new to Java card. I know j2me but when I read some tutorials on Java card developement, I dont understand the codes writen an the adup of a thing. please any one with a good tutorial for newbies. Thanks in advance.

applet size

58 byte By i_am_thata at 2007-10-2 23:01:03
How to optimize size of applet to be loaded on sim?

Use RMI and APDU.

402 byte By gillea at 2007-10-2 23:02:03
Hello everybody,I want use RMI and APDU.It is possible to put in a javacard, code containing RMI with a javacard 2.1.1?I don't want to use this code just put it in the card, because depending to the javacard 2.2.1 or 2.1.1 I wan't use APDU or RMI.Example: * If a have a 2.2.1 I use RMI.* If a ...

cipher.dofinal() returns SW_ILLEGAL_USE for DES decryption ?

9376 byte By dani_studa at 2007-10-2 23:02:31
Hello,I try to DES encrypt/decrypt on cref (JC 2.2.2). I used some code lines found on this forum. Below is my code :import javacard.framework.*;import javacard.security.*;import javacardx.crypto.*; public class MyApplet extends Applet{final static byte ENCODE = (byte)0x22;final static byte ...

loading cap file on a JCOP Card

197 byte By hans_meisera at 2007-10-2 23:34:10
hi all,ich have a cap file here and a JCOP id21 card...can anyone tell me how to load the cap file on the card...i have also eclipse with JCOP tools...thx and bye,daniel

how to delete menu

587 byte By dmenga at 2007-10-2 23:34:38
hi all,according to 11.14 the old menu shall be replaced via invoking "set-up menu" again. how can i delete an old menu?i have setuped a menu through reg.initMenuEntry() (by triggering with EVENT_UNFORMATTED_SMS_PP_ENV). But at the next time when i want to setup a new menu, all the old items ...

How could the receiver knows download an application is completly?

680 byte By pychina at 2007-10-2 23:42:56
hi~i'm a student study of MHP(and my english is not good enough, sorry!). As I know, broadcaster list application information in the AIT table, and the reciever only knows the initial Xlet path, when an application is choosen, how could receiver knows all resource of the application is ...

javax.smartcardio problems...

757 byte By Snpya at 2007-10-2 23:45:41
HI, i am trying to develop a simple applet in java, which should read data from a smartcard... But when i want to read the terminals:CardTerminal terminal = (CardTerminal)factory.terminals().get(0);--the full method:CardTerminal terminal = (CardTerminal)factory.terminals().get(0);try ...

application manager: Thread management

1835 byte By woodheada at 2007-10-2 23:48:14
hii've traced sun's javatv ri and i'm facing a problem about application management.The XletManager of the RI creates an XletThread which runsin a while loop: while(shouldRun) {...}After an xlet destroys, shouldRun is set to false thus this XletThreadterminates gracefully.The XletManager has ...

Multiple entrys in STK menu

3525 byte By Leosa at 2007-10-2 23:53:46
HiI want my program to have more the one choice in the menu provided with the sim.toolkit.ToolkitRegistry.initMenuEntry.This is how I do it when it works, I only show you the constructor: public Controller() {// Get the GSM application referencegsmFile = SIMSystem.getTheSIMView();// Get the ...

geting the locator

1975 byte By EmilioVa at 2007-10-2 23:55:50
HiI developing an mhp aplication an a small proble arised. I need to read some information in the object carousel, but firs you must attach your service domain to a locator.The theorical code would be:////////////////////////////////////////////////// // create a new ServiceDomain object to ...

procedure to sign the Midlet

322 byte By Vopiuma at 2007-10-3 0:01:20
hi, I am working on project which have capibilities get contacts(jsr75), dialing and mesaging. our purpose is to get certificate for trialing to sign the midlet to avoid the conformation messges. please tell me how i get the certificate which helps me to sign the midlet. thanks for those who ...

About DSM-CC APIs

335 byte By rbstara at 2007-10-3 0:03:36
Hii everybody,i have a doubt in DSM-CC U-U APIs .....how we can differentiate which APIs use RPC mechanism?(if some body knows more specifically about org.dvb.dsmcc and org.dvb.net)one more, do all U-U APIs use IDL mechanism or only those APIs which use RPC will make use of IDL?thanks in ...

JCOP shell put-key command

645 byte By andyeba at 2007-10-3 0:04:59
Does anyone know how to use the eclipse JCOP shell to send a PUT KEY command to a card, in which a Triple-DES ECB key is transferred?After authenticating, I'm issuing this command:put-key --mode modify 1/1/DES-CBC/404142434445464748494a4b4c4d4e4fand this seems to be working OK. However, I need ...

Getting EPG Data

489 byte By Laura_Smitha at 2007-10-3 0:12:10
Hi all,I am a student who is doing research in DTV Domain.I have doubt in getting all services of different transport stream.EPG populates program events of list of all services belonging to different transport streams.How it is possible as we are tuned to one transport stream?Is there any ...

Can't see JRE package on JCOP41

590 byte By kystwa at 2007-10-3 0:12:29
Dear all,I try to pre-personalize a JCOP41 card, and it was successful.But after mutual authentication, I can only see the security domain package...Card Manager AID: A000000003000000Card Manager state : OP_READYLoad File :LOADED (--) A0000000035350(Security Domain)Module:A000000003535041The ...

Which ME support MT_Call EVENT

92 byte By APDUa at 2007-10-3 0:17:20
Hi all , Does anybody have a list of mobile phones that support MT_CALL EVENT?

return code = 8010002e

1542 byte By Philipinaa at 2007-10-3 0:19:28
Hello,I am a newbie with JavaCard and I have a problem to get my first demo app running.I know that this question is often asked but I read all threads and the problem is still not solved.I'm using the code:CardRequest cr = new CardRequest(FileAccessCardService.class); SmartCard sc = ...

Service Information and carousel ID

2010 byte By EmilioVa at 2007-10-3 0:23:32
HelloI'm trying to read some files from de carousel of my application. In the transport flow I send some images and I need to show them in the screen.First, I get the locator of my service: Java TV_locator = null;try{TV_locator = ...

Problem using OCF in windows

1421 byte By cassio.marquesa at 2007-10-3 0:25:43
Hello everybody!I`m writing a program using OpenCard Framework but i`m having some problems. I need to list ALL the readers actually in the system. Ok, I can do it through the CartTerminalRegistry and it is indeed working fine in Linux. I can plug/unplug readers any time and my application can ...

RSA encryption

3567 byte By Leosa at 2007-10-3 0:28:09
HiI have searched the Internet for information about how to use javacards RSA crypt function, but I have not found much about it. What I have done instead is to try get RSA encryption work with javacards API as the guideline, but I have not succeeded.I would much appreciate if you could help ...

BOOK : Smart Card App. Dev. Using Java /Password problem with IBM test card

1569 byte By Philipinaa at 2007-10-3 0:28:10
Hello, I have got a Java Card from the Book, 'Smart Card Application Development Using Java'. But when I run a java program which was an simple example given inside the book, a dialog was displayed and prompted me to enter 'CHV 1'. I enter the password "password" as describe in the book but ...

Javacard with ssl client cert

606 byte By mansenpansena at 2007-10-3 0:33:58
Hello,I want to do the following: I have a working Apache webserver with an area secured by ssl-client-auth. Now I would like to store the client-cert on the smartcard and use a java-applet (offcard) to connect to the server using the client-cert, so I can auth to the server. The other ...

DSM-CC Mounting filesystem

431 byte By etsra at 2007-10-3 0:34:53
hi allcan anybody clear my doubt regarding the servicedomain.attach() function in org.dvb.dsmcc. The attach() function says to mount the carousel to the local filesystem, does it mean that the receiver has to transfer the whole object carousel in broadcast network to the local filesystem so ...

Developing Host Appication

206 byte By socxa at 2007-10-3 0:36:52
Hello,Can i develop a JavaCard host application like i develop JavaCard applets using JCOP ?If so How can i do this. And can i get a tutorial on this anywhere?Regards,Socx