Fix a jcop card

I've been trying to use the SCM Micro reader scm331-di with jcop cards and recently bought some new readers.
I was testing each reader but the contactless connection doesn't seem to work very well and seems to have killed my IBM jcop31 sample card
Each time I try to access the card with cardman I just get a repsonse of
Unexpected status 6982 for "INITIALIZE UPDATE" command.
Anyone know how to fix the card or if its even possible to fix it?

Hi
I am new to Javacard programming. I have learned how to encrypt/ decrypt data and data signing.
Can you please help me in building an interface to communicate with JCOP simulator.
I am really confused and have no idea..
Please tell me the relevant API and its documentation.
Thanks.

Similar Messages

  • HT3702 Trying to purchase on itunes, my card was declined.  Called bank, they said it is fixed now.  Card is still declined and I can't update my account.  what shall I do?

    Trying to purchase on itunes, my card was declined.  Called bank, they said it is fixed now.  Card is still declined and I can't update my account.  what shall I do? iTunes says contact customer support.  is this it?

    I also have this problem. I have a debit card & I even verified every single piece of info with my bank on the phone, online, AND in writing...it's clearly an issue with itunes and I can't get anyone on the phone without a hefty charge to my account.

  • Supplementary logical channels and R-MAC on JCOP cards

    Hi,
    please, do current models of JCOP cards support supplementary logical channels ? I have found on forums infos saying both yes and no.
    So maybe in earlier years, there was no support, now there is some.
    I have found this post, which may clarify it a little bit:
    All JCOP products have by default only the basic logical channel enabled. The reason is that it shall be GP compliant, and GP spec says that the CardManager must be multiple selectable if multiple logical channels are supported. The CM in JCOP is not multi selectable. If you don't care about GP compliancy (at least on this issue), you can set up to 4 logical channels during pre-perso (JCRE_MODE, two lowest bits).
    However I don't know how to set the JCRE_MODE flags and what they are. I couldn't find any info on them.
    Where are they located and described ? Which APDU command should I use to set them, and with which parameters ?
    And a short second question - are there any JCOP cards, which support R-MAC, when communicating with the card manager ?
    Thanks a lot,
    Peter

    PeterCZ wrote:
    please, do current models of JCOP cards support supplementary logical channels ? I have found on forums infos saying both yes and no.
    So maybe in earlier years, there was no support, now there is some.
    I have found this post, which may clarify it a little bit:
    All JCOP products have by default only the basic logical channel enabled. The reason is that it shall be GP compliant, and GP spec says that the CardManager must be multiple selectable if multiple logical channels are supported. The CM in JCOP is not multi selectable. If you don't care about GP compliancy (at least on this issue), you can set up to 4 logical channels during pre-perso (JCRE_MODE, two lowest bits).
    However I don't know how to set the JCRE_MODE flags and what they are. I couldn't find any info on them.
    Where are they located and described ? Which APDU command should I use to set them, and with which parameters ?JCOP supports supplementary logical channels, but it is switched off by NXP during production and can be re-enabled during pre-personalization (JCOP proprietary process). In order to do that, you need unfused cards and the corresponding transport key from NXP.
    And a short second question - are there any JCOP cards, which support R-MAC, when communicating with the card manager ?No, JCOP does not support RMAC. Tell me a good reason why it should. I cannot think of any GP commands which would be worth protecting the response.

  • Uploading applets to a JCOP card

    Hi everyone,
    I have a little problem. Is it possible to upload an applet to a JCOP card with JCSDK only? no JCOP framework... thanx for any help.
    BR
    erno

    sect0r1 wrote:
    Thanx for you answer and sorry for confusion with terms "downloading" and "uploading". I would like to download applets using only JavaCard SDK from Sun. Is this possible. I have the JCOP framework as well but I would like to learn this process completely independent from frameworks, IDEs etc. The problem with GPShell is that, it is not the part of JCSDK as I know. Thanks.
    BR
    ernoUnfortunately it is not possible to use only JCSDK, because there aren't any tools to connect to card acceptance devices: you can only run your applets in the emulators provided with the SDK. So, for real JCOP cards, you have two options left:
    - using JCOP Tools (if you have them, I don't because NXP does not make them available)
    - using GPShell
    Hope this helps
    Alberto

  • How can i fix "the sim card inserted in this iphone does not appear to be supported " after restoring a factory unlocked iphone 4

    how can i fix "the sim card inserted in this iphone does not appear to be supported " after restoring a factory unlocked iphone 4

    The term "factory unlocked" has no meaning. Your phone was not legitimately unlocked. Contact the carrier it is locked to and find out if you can get it unlocked.

  • What's the difference between Gemplus and JCOP card?

    Hi~
    1. I'm using a Card that 'GEMPLUS' is written on golden contact point.
    I have to choose a card type among 'GemXpresso 211,211PK,Pro , GemXplore Xpresso' in JCOP Tool.
    Which I have to choose?
    Is there any way that what kind of card it is?
    2. What is the difference between JCOP card and Gemplus card?
    Is OS different?
    Anybody tell me the difference.
    Any help would be greatly aprreciated

    In some cases Gem+ sells JCOP cards under different name.
    Generally, JCOP is better (more security, more certificates, tools for free)

  • Unable to load the cap file to the JCOP card

    I develop my applet by JCOP IDE and it works well in the VM. But when I want to load it on my JCOP card, I face a problem. it can successful send the 1st 254 bytes, but always return 6A86 when send the second 254 bytes to the card.
    Status: Incorrect parameters (P1,P2)
    Error code: 6a86 (Incorrect parameters (P1,P2))
    Offending APDU: 6A86
    Wrong response APDU.
    I don't know why this happen. Can anyone show some light on that. Thank you in advance.

    Have you written your own loader for this ?
    What is the prompt "cm>" from, is that a standard Java Card tool ?
    Looking at the data I can see, its looks well formed. However when I wrote my own loader I found I could only send 239 bytes of data (255 - 16) otherwise I'd get an error. Maybe part of this is todo with the option of using M-DAP to MAC each APDU. FYI its a JCOP10 I'm using.
    Also my data was never concatentated, that is to say, check your 'FileSystem.cap' file with "unzip -tv FileSystem.cap" for the real CAP files. Each of these files never crossed an APDU boundary, the first one Header.cap (IIRC) is a small file, so my first APDU was less than 40 bytes of actual data (with C4 TLV data before it), certainly not 254 bytes.
    I'm not sure if this is allowed or not, I've plans to try it out soon and see myself since i've not read anything that says you can not do this.
    This is the only obvious difference I can see to other loader scripts and programs I have seen.

  • How do you prepersonalize a JCOP Card using JCOP Shell?

    How do you prepersonalize a JCOP Card using JCOP Shell?
    I don't have any clue where to look for this , so I have posted it here.
    Please suggest .

    Hi Shane,
    Actually I have received some Cards which are raw, with no card manager installed in them.
    I also have another set of cards on which I can deploy my applets using the APDU commands.
    I was wondering if I could issue some prepersonalization commands over the JCShell, but did not find anything on this and was looking forward for some suggestions.

  • Pre-personalization step on JCOP cards

    Hi guys!
    I have problem with pre-personalization step on JCOP cards. Using JCOP documentation I set global pin, 3 DES keys and keyset, card-state as OP_READY. Card not in fuse state and not protected, all needed info I write to card using /send WRITE comand from JCOP Shell in root applet. But when I /send PROTECT card not responce, I wait about 2 hours, but nothing happend. Can anybody face with with this problem and can help me?

    Hi,
    I write script for JCOP shell, and use it for prepersonalization step, you need to change all addresses, because they are incorrect:
    #----Pre-personalization script----
    #Script folder can be set using /set-var shell command (e.g. /set-var path c:/JCShellScripts).
    #The JCShell always searches the current directory for script files.
    #To execute a script, just type the name of the file (without extension) in the JCShell command line.
    #-------VARIABLES-----------
    /set-var Kt                 __INSERT_YOUR_TRANSPORT_KEY__
    /set-var chanel             0
    /set-var OK_resp            9000
    #Card manager lifecycle
    /set-var CM_LIFECYCLE_size        02
    /set-var CM_OP_READY          FE01
    /set-var CM_INITILIZED          F807
    /set-var CM_SECURED                  F00F
    /set-var CM_CARD_LOCKED          807F
    /set-var CM_TERMINATED          00FF
    /set-var CM_LIFECYCLE          ${CM_OP_READY}
    #Card manager default keys:
    /set-var DES_key_size          10
    /set-var DES_key_keyset          FF
    /set-var DES_keyset_size     01
    /set-var DES_K1           0123456789ABCDEF0123456789ABCDEF
    /set-var DES_K2           0123456789ABCDEF0123456789ABCDEF
    /set-var DES_K3           0123456789ABCDEF0123456789ABCDEF
    #size of GPIN_size is 01, size of GPIN_format is 01 and sizes used in functions without pre-defined constants
    /set-var GPIN                 3132333435
    /set-var GPIN_size             05
    /set-var GPIN_format           01
    #-------COMANDS-------------
    /set-var BOOT                  __INSERT_YOUR_COMMAND__(like 00100000)
    /set-var PROTECT              __INSERT_YOUR_COMMAND__
    /set-var FUSE                  __INSERT_YOUR_COMMAND__
    /set-var AUTH                  __INSERT_YOUR_COMMAND__
    /set-var ADMINEXEC             __INSERT_YOUR_COMMAND__
    /set-var READ                  __INSERT_YOUR_COMMAND__
    /set-var WRITE                 __INSERT_YOUR_COMMAND__
    #-------ADRESSES------------
    #     From: 188730_JCOPV2_4_1R3_admi.pdf
    /set-var A2_addr                __INSERT_YOUR_ADRESS__ (1 byte)
    /set-var CM_Lifecycle_addr     __INSERT_YOUR_ADRESS__(2 bytes)
    /set-var DES_K1_addr           __INSERT_YOUR_ADRESS__
    /set-var DES_K2_addr           __INSERT_YOUR_ADRESS__
    /set-var DES_K3_addr            __INSERT_YOUR_ADRESS__
    /set-var DES_K1_type_addr      __INSERT_YOUR_ADRESS__
    /set-var DES_K2_type_addr      __INSERT_YOUR_ADRESS__
    /set-var DES_K3_type_addr      __INSERT_YOUR_ADRESS__
    /set-var GPIN_addr           __INSERT_YOUR_ADRESS__
    /set-var GPIN_size_addr      __INSERT_YOUR_ADRESS__
    /set-var GPIN_format_addr      __INSERT_YOUR_ADRESS__
    #==============================
    #connect to card
    #===============
    /terminal
    /atr
    #select root applet with Transport key (Kt), and chanel 0
    /select ${Kt} ${chanel}
    #boot applet
    #===========
    /echo BOOT ROOT APPLET:
    /send ${BOOT}
    #setup CM lifecycle
    /echo setup CM lifecycle
    /send "${A2_addr}${WRITE}${CM_Lifecycle_addr} ${CM_LIFECYCLE_size} ${CM_LIFECYCLE}"
    #check it
    /send "${A2_addr}${READ}${CM_Lifecycle_addr}${CM_LIFECYCLE_size}"
    /set-var chk ${CM_LIFECYCLE}${OK_resp}
    if ${response} != ${chk}
       throw "ERROR: CM_LIFECYCLE not set"
    end
    #setup DES keys SET UP DES KEYS: 10.4.2
    #======================================
    /echo SETUP DES KEY:
    /send "${A2_addr}${WRITE}${DES_K1_addr} ${DES_key_size} ${DES_K1}"
    /send "${A2_addr}${WRITE}${DES_K2_addr} ${DES_key_size} ${DES_K2}"
    /send "${A2_addr}${WRITE}${DES_K3_addr} ${DES_key_size} ${DES_K3}"
    #check it:
    /echo CHECK DES KEYS:
    /send  ${A2_addr}${READ}${DES_K1_addr}${DES_key_size}
    /set-var chk ${DES_K1}${OK_resp}
    if ${response} != ${chk}
       throw "ERROR: DES_K1 not equal"
    end
    /send  ${A2_addr}${READ}${DES_K2_addr}${DES_key_size}
    /set-var chk ${DES_K2}${OK_resp}
    if ${response} != ${chk}
       throw "ERROR: DES_K2 not equal"
    end
    /send  ${A2_addr}${READ}${DES_K3_addr}${DES_key_size}
    /set-var chk ${DES_K3}${OK_resp}
    if ${response} != ${chk}
       throw "ERROR: DES_K3 not equal"
    end
    #set key type
    #============
    /echo SET KEY TYPE = ${DES_key_keyset}:
    /send "${A2_addr}${WRITE}${DES_K1_type_addr}${DES_keyset_size}${DES_key_keyset}"
    /send "${A2_addr}${WRITE}${DES_K2_type_addr}${DES_keyset_size}${DES_key_keyset}"
    /send "${A2_addr}${WRITE}${DES_K3_type_addr}${DES_keyset_size}${DES_key_keyset}"
    #check it:
    #=========
    /echo CHECK KEY TYPE:
    /send  ${A2_addr}${READ}${DES_K1_type_addr}${DES_keyset_size}
    /set-var chk ${DES_key_keyset}${OK_resp}
    if ${response} != ${chk}
       throw "ERROR: DES_K1_keyset not equal"
    end
    /send ${A2_addr}${READ}${DES_K2_type_addr}${DES_keyset_size}
    if ${response} != ${chk}
       throw "ERROR: DES_K2_keyset not equal"
    end
    /send ${A2_addr}${READ}${DES_K3_type_addr}${DES_keyset_size}
    if ${response} != ${chk}
       throw "ERROR: DES_K3_keyset not equal"
    end
    #set pin 12345 -(hex)->31 32 33 34 35
    #====================================
    /echo SETUP GLOBAL PIN (12345:5:ASCII):
    /send "${A2_addr}${WRITE}${GPIN_addr} ${GPIN_size} ${GPIN}"
    #set pin size 5 byte
    /send "${A2_addr}${WRITE}${GPIN_size_addr} 01 ${GPIN_size}"
    #set pin format ASCII
    /send "${A2_addr}${WRITE}${GPIN_format_addr} 01 ${GPIN_format}"
    #check set pin:
    /send "${A2_addr}${READ}${GPIN_addr} ${GPIN_size}"
    /set-var chk ${GPIN}${OK_resp}
    if ${response} != ${chk}
       throw "ERROR: GPIN not equal"
    end
    #pin size:
    /send "${A2_addr}${READ}${GPIN_size_addr} 01"
    /set-var chk ${GPIN_size}${OK_resp}
    if ${response} != ${chk}
       throw "ERROR: GPIN_size not equal"
    end
    #pin format:
    /send "${A2_addr}${READ}${GPIN_format_addr} 01"
    /set-var chk ${GPIN_format}${OK_resp}
    if ${response} != ${chk}
       throw "ERROR: GPIN_format not equal"
    end
    #need to send protect
    /echo PROTECT
    /send ${PROTECT}
    if ${response} != '9000'
         throw "ERROR IN PROTECT:" ${last.error} "Card can`t be fuse..."
    end
    #fuse:
    /echo FUSE STEP:
    /send ${FUSE}
    if ${response} != '9000'
    throw "ERROR in FUSE" ${last.error}
    #end
    /close

  • Seeking information on JCOP cards

    I have been hunting around the internet for information on JCOP cards, and I find this a disorienting experience. It seems that the team from Zurich has moved to Germany, many of the links on their site are broken, they don't answer my emails and I can not find a phone contact for their team.
    Here are some things I am trying to find out. Perhaps those already familiar with these cards can point me in the right direction?
    - I am looking for technical specs, documentation, manuals that describe either the JCOP cards or JCOP Tools. So far all I have found is IBM's "technical brief" which is too brief. There must be more documentation out there. Where is it?
    - What readers will work with the cards? I am looking at JCOP30, the first contactless card. Their web site has no list of recommended or supported readers.
    - What API calls are available on the JCOP30's ROM?
    - What parameters to those API calls are supported? For instance what key lengths, cipher parameters, etc. are supported?
    Any help is appreciated. In particular, if there is somewhere a large PDF which describes the card in detail I would really like to see it. Without such specifics I can not determine if the card is appropriate for our neesd.

    Let me clarify a few things: JCOP is a smart-card operating system developed by the IBM Zurich Research labs, and now maintained by IBM Development in Boeblingen.
    This operating system is licensed to different chip manufacturers, such as NXP (ex Philips Semiconductors). IBM only makes the software, not the hardware. Thus, for exact information on actual products, you need to contact the silicon manufacturers.
    JCOP Tools on the other hand the Eclipse-based development tools that IBM provides for Java Card development, especially geared towards JCOP-based cards.
    Assuming you are talking about the JCOP30v2 on Philips P8RF5016, the card will work with any ISO14443 Type A compliant reader.
    The most commonly used smart-card interface is PC/SC, a middleware layer backed by Microsoft, and part of the Windows operating system. JPCSC is a Java-wrapper around the native PC/SC API. JCOP Tools includes JPCSC and uses it on Linux and MacOS X. On Windows, JCOP Tools uses the native PC/SC API directly.
    OCF is/was a failed attempt at creating smart card middleware. The consortium was dissolved many years ago (1999), and why the website still exists is a mistery. I strongly discourage the use of OCF.
    JCOP Tools also includes the JCOP offcard API, which is a comprehensive smart card API with special support for Java Card and GlobalPlatform.
    that sits on top of native PC/SC, JPCSC, and some other proprietary card middleware.
    JCOP Tools contains everything that is needed to develop Java Card applications, including a simulation environment that supports source-level debugging. There are wizards that will create a GP-compliant skeleton applet for you.
    A technical brief on JCOP Tools is available from ftp://ftp.software.ibm.com/software/pervasive/info/JCOPTools3Brief.pdf
    Note that this refers to an older version of JCOP Tools; the current version has additional features, such as the real-time bytecode view and runs on the latest version of Eclipse (3.2.1).
    Hope that clears some of your questions up.

  • How to fix no sim card installed in iphone 5

    how to fix no sim card installed in iphone 5

    By inserting a sim card into the phone!!
    If there is a sim card in the phone, then take it out and re-insert it.

  • Power consumption of JCOP card

    I am having JCOP card which also has the MiFare 4K in it.
    And am using our own customized antenna instead of the standard one.
    Am facing problem when I place the card bit far(say 6cm) from the card reader, where MiFare able to work without any problem but not JCOP. It induces more current compared to
    MiFare. Does any body why JCOP require more power compared to MiFARE.
    Thanks in Advance.

    Hi
    I am student working on a smart card project
    i am totally new to this field i have a lot of doughs to be cleared ..can you help me in this section
    my id [email protected]
    pls kindly give your mail id i will proceed in your id ...i have so many obstacle to develop a smart card application.
    i have return my doughs in java card form under the title : What is Client-Side API for RMI on the Java Card Platform
    : java card virtual machine

  • Fix for "Credit Card Rejected" / "Can't buy apps" / other CC issues

    If you're having problems buying things from iTunes such as:
    -- Credit card rejected (even if you're paying by PayPal)
    -- Session Timeouts (on a non-Microsoft platform -- there is a different fix for Session Timeout on a Microsoft platform)
    -- Credit card information does not match bank information
    -- Unable to create a new account or save changes from iTunes to your account
    After struggling for 3 days to fix this problem, I finally found something that works EVERY time, at least for me, and people who go through ALL the steps also find it works for them. It's important to follow ALL the steps -- people who skipped steps because "all my information LOOKS right" kept having problems until they followed all of them, and then all the problems cleared up. So, here's what I've found works EVERY time:
    -- Sign out of iTunes.
    -- Reboot your Mac or whatever device you're using to access the iTunes store (including your iPhone and/or iPad).
    -- Open a web browser and go to http://appleid.apple.com (or Google "Apple ID" and choose the "My Apple ID" option).
    -- Sign in with your Apple ID and click "Manage your account".
    -- Verify ALL of your user information. Seriously, verify and validate EVERYTHING--your name, your e-mail address, your mailing address, your shipping address, your phone number, all of it. Make sure your Primary Address EXACTLY matches the address your bank has as your primary address; if those don't match, your purchase will be refused. If your Primary Address spans 2 lines, change it into 1 line (that is, turn "123 Main Street" and "Apartment 456" into "123 Main Street, Apartment 456") and blank out the second line. Make sure your Apple ID is linked to a valid e-mail address; if not, your purchase will be refused because there will be nowhere to send purchase information and other Apple e-mail. Make sure your date of birth is correct and not missing any part of it (like your birth year; mine had somehow come un-set); otherwise, your age cannot be verified and your purchase may not go through. Click "Save Changes" whenever you change something.
    -- Once all that is done, sign into iTunes, then click on the little downward-pointing triangle next to your Apple ID in the upper-right corner of iTunes and choose "Account".
    -- Click "Edit Payment Information".
    -- Choose "None" as your payment option, make sure all your address and phone number information already listed is correct, fix anything that isn't correct, and click "Done". This will force iTunes to verify your account information as it exists in iTunes with what is registered for your Apple ID at http://appleid.apple.com.
    -- You may be asked to verify the county for your billing address (for sales tax purchases); make sure this is correct, or transactions could be refused. Click "Done" when finished.
    -- Go back to the "Account" screen and choose "Edit Payment Information" again.
    Choose either the credit card logo of the card you want to use or choose "PayPal".
    -- If you choose PayPal, follow the directions on the web page that pops up in your browser to verify your PayPal account and link it with your Apple ID. Click "Return to iTunes Store" inside the web browser to return control to iTunes, then click "Done".
    -- If you choose to enter a credit card, make sure EVERYTHING is correct on the page--your credit card type, account number, CVV, billing address, etc.--and then click "Done".
    I had to do this every time I restarted iTunes to buy something for two days, but as long as I did ALL the steps every time I restarted iTunes, I was able to buy anything I wanted with no problems.
    If you're still having problems after all of this, contact iTunes Support via e-mail. This is important -- the more help requests Apple gets about this issue, the more seriously they will have to take it and the more likely it will be that they address the problem with the seriousness it deserves. The link to file a trouble request via e-mail is:
    http://www.apple.com/support/itunes/contact.html?form=account&topic=iTunes%20Sto re%20Account%20and%20Billing&subtopic=Managing%20your%20Account
    Good luck!

    I believe i can fix this for a some of you out there. The problem is that Apple forces you to have the exact same address the USPS has one file. They do an address verification with the information you submit and they change your city and zip code to match 100 percent.
    The problem is that most people do not change their billing zip code on their credit card when their zip code changes. For example, my zip code was 84088 up until about 3 years ago when it was change to 84081. I have never change my zip code or my city name with my credit card company so when i put in my billing address i always put 84088. Apple decided that they want to force people to change their credit card billing address to match EXACTLY what the USPS has.
    Most credit card transactions can get a better rate if the billing address of the transaction matches the billing address of the card. That is why they always ask for it. However, it makes no sense for Apple to force you to change it to the USPS address because only the credit card billing address and the credit card transaction billing address need to match.
    So, on to my fix. Do not put the whole street address, only put in the first set of numbers. If your address is "1000 Elm Street" then just put in "1000" ino the street address. Then put your proper credit card billing address zip code in. Because apple can't do the USPS database search without the full street address they will not change your city/zip but you credit card validation will work just fine because credit card address validation only cares about the first set of numbers.
    SERIOUSLY APPLE?!? Get a clue! There is no need for you to force us to match the USPS address 100%.

  • Jcop card & debug mode

    I am trying to test java card applet in debug mode while it is installed on the real JCOP 31 card. I put few breakpoints in my java card applet code, but the execution flow never stops on these breakpoints. When I test my java card applet while it is installed inside the simulator everything is ok. I need to debug on the real JCOP 31 card. What I need to do?

    You cannot debug against a card. You need very specific (expensive?) hardware to be able to do that. You will not be able to step through the code on your card in JCOP tools. I am surprised your applet even ran in debug mode as it JCOP tools attempts to upload the DEBUG component of the CAP file that the card VM cannot usually understand.
    You need to add code to your card that will throw a known exception at a known point in the execution flow. When you see the status word for an exception you know you have reached a certain point (and exited). You can use this mechanism to return short/byte values as well.
    Cheers,
    Shane

  • "How can I find how much memory of JCOP card is free ?"

    Hi every one,
    I use JCOP smart card and I would like to know how much memory is free ,is there any command to display free or used memory?if any one knows the answer of my question please inform me.
    yours sincerely,
    Orchid.

    In JC 2.2.1 you should use the JCSystem.getAvailableMemory(byte memoryType) method. The response is a short --> info about a max. of 32k free memory.
    eefree applet is a relict from the JC 2.1 specification. There was no API defined. If you still want to use it, just select this applet or send any APDU to the applet, and it will return a short (bytes of free memory). Be aware that the applet will allocate of up to 32k bytes. Only way to free the memory is to delete the eefree instance.

Maybe you are looking for