Proprietary APDU response SW1SW2 values

Hi,
I have a question:
If the JavaCard applet responses the APDU command with the error code, should I follow some guide lin for the SW1 value? I.e. ISO/IEC 7816 is mentioning that SW1 value should be in the interval 61-6F... Is that used? Or is it 100% up to me, which SW1 values I will use for responses. For the success response I think that SW1SW2 value should be always 0x9000?
Thanks a lot for replies
Regards,
STeN

Hi Sten,
0x9000 is the SW to use for success. If you can find an ISO7816 SW that matches the error condition that you are trying to indicate I think it is a good idea to use that. ISO7816 also deffines the SW range from 0x9001 to 0x9ffff to be an application specific error condition.
Cheers,
Shane

Similar Messages

  • APDU response under secure messaging

    My APDU response should look like:
    Data= 99 02 69 85 || 8E 08 MAC
    SW = 6985
    First I set the data on 99 02 69 85 || 8E 08 MAC || 69 85
    but the off-card complains that the MAC was not correct.
    When I sent only 99 02 69 85 || 8E 08 MAC in data part, I get the response that I sent 90 00 but the 6985 was expected instead. How to return both the data and SW1SW2 that is different then 9000?

    If your question is about how to make your applet return data and a SW other than 0x9000 then do the following:
    apdu.setOutgoingAndSend(offset, len);
    ISOException.throwIt(STATUS_WORD_TO_SEND);Cheers,
    Shane

  • File to RFC/BAPI - Async- How to capture response field value

    Hi,
    I am doing File to RFC/BAPI Scenario. I have Two BAPI's. THe same source xml file is mapped to the Two Target BAPI's.
    For the first flow i.e File to BAPI1, I need to capture BAPI Response, field value and pass this value as Input to the BAPI2.
    How do I proceed with the Mapping. I am working on PI 7.1
    Any input would be Appreciated.
    Thanks & Regards,
    Varun

    Hi Varun,
    apparently you need a Business Process:
    XML -> BP (asynchronous), Map to Bapi1 request structure
    BP -> BAPI 1 (synchronous)
    Transformations step with multi mapping merging XML and Bapi1 response to Bapi2 request structure
    BP-> BAPI2
    Regards,
    Udo

  • Proprietary APDU CLA byte

    Hi,
    If I am creating proprietary APDU for the JavaCard applet. I think the CLA byte should be 0x80, because the 4 top most bits must be 1000 according to ISO/IEC 7816
    and if I will not use the secure messaging and logical channels, the lower 4 bits must be 0000, which is 10000000 = 0x80.
    Am I right?
    Regards,
    STeN

    Hello,
    thanks for the reply - sure I must avoid the possible collision with the Global Platform!
    Other question - I think - but I am not sure about this - if the smart card manufacturer supports some extra proprietary APDUs (e.g. enumerating installed JavaCard applets, getting the free EEPROM space) by the smart card OS (i.e. Sm@rtCafe), I should also check those commands, to avoid possible collision, because I think those commands will be handled with higher priority then applet specific APDUs (by this I mean, that if I will send the APDU and OS detect that this is a command it supports, it will handle it and the APDU will nto be sent to the currently selected JavaCard applet)?
    Thanks a lot for the reply and help
    Regards,
    STeN

  • Service Profile Response time values from CRM

    Hi experts,
                       I want to capture RESPONSE TIME from SERVICE PROFILE values defined in CRM system.If you refer CRMD_SERV_SLA transaction then you can find the defined values. In 0CRM_SRV_PROCESS_H Catalog, Code group, Code these values are appearing but I unable to find RESPONSE TIME value.
    Has anybody tried capturing response time value in BW? or is there any other field shows this value in Data Source?
    Regards,
    Priyanka Joshi

    Hi experts,
                        to get these values RESPONSE PROFILE value must be maintained in the Transaction but in our system its not available so I used SAP Exit to get the value and solved the problem.
    Regards,
    Priyanka Joshi

  • How to response the value change of slide bar only after mouse released

    Hi, all
    When I used the slide bar to control my device, I response the value change of slide bar and set the new value to my device. But it will generate response constantly when I use the mouse to drag the pointer, which is not my wanted. I just need to response only after the mouse released. How can I implement this function? 
    Hope your suggestion, thanks a lot.
    Solved!
    Go to Solution.

    No, not if you use the right event under "Mouse".
    “A child of five could understand this. Send someone to fetch a child of five.”
    ― Groucho Marx

  • JCshell  storing APDU response in a variable

    Hello,
    i have to create a jcshell script with a if command.
    The if command shall decide with the response if the application should be deletet or not.
    And I need a command for storing the apdu response in a variable

    /send 80000000
    if ${response} == "6D00"
    /echo "INS is really not supported"
    else
    /echo "IS is supported?..... why this"
    end

  • Apdu responses

    i have downloaded java card development kit and trying to run sample applets as described in development kit user's guide...successfully i completed the process to generate script file using scritgen tool but when i send apdu command to create applet instance to cref then apdu response is 0x6443 means applet not found for installation ...i don't know how to handle it....bcoz i face no prblem at any stage ...sucessfully i compile the java applet to generate class file then using converter i generate cap file and then using this cap file i generate script file using scriptgen tool...but when after prepending and appending powerup; and powerdown; and then appending create applet command i send this file using apdutool to cref(jcre) then 0x6444 response is given to me................why ? plz plz plz reply me soon bcoz here is no one to guide me ............i will wait reply
    thanks

    yes before creating applet instance i select that applet using SELECT apdu category.......and after powerup; command i select the on card installer.....my script file that i send to apdutool look like this
    powerup;
    //then select the installer applet using this command
    0x00 0xa4 0x04 0x00 0x09 0xa0 0x00 0x00 0x00 0x62 0x03 0x01 0x08 0x01 0x7f;
    //then create HelloWorld as
    0x80 0xb8 0x00 0x00 0x0b 0x09 here my applet AID
    powerdown;
    plz sir help me and reply me soon that why i m facing problems

  • Gateway response Date value issue

    Hello Experts,
    In my gateway service the properties look like this.
    Example:
    But when i bind it to my sap.m.input
    sap.ui.getCore().byId("InputFrom").setValue(response.From);
      sap.ui.getCore().byId("InputTo").setValue(response.To);
    The values are like this:
    Example:
    From: /Date(909964800000)/
    To: /Date(253402214400000)/
    Any Ideas ?
    Kind Regards,
    Bart

    Hi,
    Please go through these blogs Working with OData Dates and Times and Working with JSON model dates in UI5
    Regards,
    Chandra

  • APDU: response code 6881 ?

    Dear all,
    I have implemented a (quite simple) APDU interface to receive an APDU and send back the response. The code is according to java card examples and it worked very well for a couple of times. However, the card is now giving me the status code ‘6881’. So it could mean "Card does not support the operation on the specified logical channel".
    I have tried to reload the applet several times – it is always giving me status code 6881.
    Does anyone of you know what this code means and what caused this problem? And how to resolve this problem?
    The APDU's are below
              //Verify PIN1: 1234
              A02000010831323334FFFFFFFF
              RESPONSE: 90 00
              //Select Applet AID
              00A4040010D2760001180002FF49FEDC89C0113322
              RESPONSE: 90 00
              //Send Applet Request. Expected response length (Le): 0x05
              44F1AA0032003111223344556677881122334455667788112233445566778811223344556677881122334455667788112233445566778805
              RESPONSE: 68 81   Thanks!
    Phil
    Edited by: user1688442 on May 26, 2011 8:06 AM

    Hi,
    Are you able to post your code that you use to communicate with the card?
    Does the problem persist across card resets?
    Cheers,
    Shane

  • MODIFY THE RESPONSE HEADER VALUE IN IIS BASED ON THE QUERY STRING IN THE REQUESTED URL

    We Hosted a directory on IIS.
    The Files in the directory are saved with a Guid values.
    when there is a request from the client for a given resource ,we need to fetch the file name from the query string and modify the reponse header :" Content-Disposition",So that the User can Download with the requested name

    Sounds like a question for the ASP.NET forums:
    http://forums.asp.net
    Or the IIS forums in case you want to write some kind of module to do this without involving ASP.NET:
    http://forums.iis.net/

  • Converting the user response date value to date data type

    Hi,
    I have a parameter which takes date as input (from date and to date).
    I need to get the difference between these two dates.
    So i can use the function todate(userresponsedate,"dd/mm/yyyy")
    but here i cannot hardcode the date format as dd/mm/yyyy.
    Because my reports needs to support to multiple locales and so if i change the browser locale to japanese the input date will appear some thing like yyyy/dd/mm.
    So my function  todate(userresponsedate,"dd/mm/yyyy") is failing over here.Its is giving #error
    Is there any option where it takes the browser locale date format.
    ex: todate(userresponsedate,browserlocaledateformat)
    So that it works irrespective of the browser locale
    Thanks in advance

    HI
    Try to use this formula
    formatdate(todate(userresponse("enter from date");"");"dd/MM/yyyy")
    In the report level you will see only dd/MM/yyyy as string
    Hope this helps u
    sunil

  • Value set not working in responsibility

    Hello everyone,
    I created a custom responsibility and added a custom concurrent program to it (specifically the payroll run concurrent program). Now this concurrent program has a value set attached to it (PY_SRS_PAYROLL_GB) to select the payroll name. My custom concurrent program works great when attached to the Global Super HRMS Manager responsibility, but when attached to my custom responsibility, the value set say list of values contains no entries.
    This is the body of the value set:
    where pay.business_group_id =
    :$PROFILES$.PER_BUSINESS_GROUP_ID
    and fnd.session_id = userenv('sessionid')
    and fnd.effective_date between pay.effective_start_date
    and pay.effective_end_date
    and popmf.ORG_PAYMENT_METHOD_ID =
    Pay.DEFAULT_PAYMENT_METHOD_ID
    and popmf.CURRENCY_CODE = 'GBP'
    order by pay.payroll_name
    Any ideas? Could I have gone wrong somewhere in my responsibility definition? I set the data group to Standard for the Human Resources application. This matches the Global Super HRMS Manager responsibility.
    Thank you

    Thanks its solved .
    Solution is adding Navigator: Disable Multiform. function to custom menu.
    This is an AOL function that should be included on all menus (custom or standard) to allow session_id to be populated.
    From: Payroll: Value Set issue

  • Handling proprietary APDUs in an STK applet

    Hello all,
    I have developed a working STK applet, including a menu etc.
    I also need this applet to accept proprietary APDUs from the GSM-phone. The way I understand that this should work, is that I have to SELECT my applet first (APDU: 00 a4 04 00 <AID length> <AppletAID>), and only then will the JCRE present my proprietary APDU to the applet.
    This actually works: after SELECTing the applet, my custom APDU is presented to the 'process' method of the applet.
    However, all STK events (eg menu-selection) are now presented to the process-method too, and no longer to the 'processToolkit' method as I had expected. Obviously this means that my applet stops functioning correctly as soon as I have SELECTed it.
    Am I doing something wrong? What is the correct way of making a STK applet respond to both STK APDUs and custom APDUs?
    Many thanks in advance,
    JimboKarmeliet

    Thanks for the feedback joscar.
    I finally managed to get it to work. It took me a while to realise that the data-part of the envelope APDU also requires a length byte, even if the envelope is "unrecognized" (silly me, yes, I know). So this is what the command should look like (for GSM SIMs):
    A0 C2 00 00 <TotalLen><UnkownTLV><DataLen><Data>
    Example:
    A0 C2 00 00 09 4E 07 12 34 56 78 90 12 34
    With 4E being an invalid TLV (and 09 and 07 the obvious length bytes).
    I do have one remark, though. I read the 03.19 spec, to check for reserved (BER-)TLV values, and could find no objection to e.g. 0x4F. Perhaps I missed it, but I thought this could be used. However, the applet was not being triggered, and the SIM returned an error (6F 00).
    By accident I found in the 101 220 spec that 4F is indeed also reserved, as are most other values!
    So my question is this: which values in the range 0x00-0xFF are still available for unrecognized envelope events, and will remain not-reserved in the wide future? I really can't find it in the specs.
    Thanks all,
    Jimbo.

  • How do you time APDU comands?

    I am new to JCOP and I am trying to get execution times. How do you in JCOP shell capture how long it takes to get a APDU response? Is there a time shell command? I want to write a JCOP script to capture execution times and send them to a file.
    If JCOP shell is not the way to go, then please recommend other methods.
    Thank you so much for any help or hints to how to do it..
    Maguar

    JCOP off-card API:
    com.ibm.jc.terminal.TraceJCTerminal.setLog()
    com.ibm.jc.terminal.TraceJCTerminal.getLog()
    com.ibm.jc.terminal.TimeJCTerminal.getCmdTime()
    public long getCmdTime(int i)
    Allows external world access to the collected measurements.
    Parameters:
    i - index of timing information requested
    Returns:
    long value in microseconds that the indicated command took (first byte in - last byte put)
    You can use JCOP shell on non JCOP cards as well. Problems might occur due to different interpretation of the specifications.

Maybe you are looking for

  • Inventory valuation

    hi all . my decrease/ increase in stock is not get tolloied with following accounts. please help to which accounts i have take in to consideration. clo.stock fg,       10,000 clo. stock sfg       7500 total                                       17500

  • I have a website that needs an old version of java to run, how can I make that happen?

    for work I have to access an ADP website to do my timesheet, for some reason this website wants java plugin 1.5.0_09, is there a way to get this and run it on mozilla?

  • How can a change a "permission denied" in a JavaScript use on Facebook ?

    Hi, My problem is : On facebook site, clicking on a result from the "searchbox" doesn't rediret me on that page like it used to ( and should )

  • Strange AFP behavior

    I set the permissions for the share point in ACL and also the check with the permissions inspector seems to be right... Now i try to copy a single file size around 100Mb, the process starts as usual but suddenly this window appear: "The opertation ca

  • Get version of ORDS

    Dear, How can I get the version of ORDS in OS or Oracle Database or Application Server? Best regards, Saeed.