Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Contributor
andreas43
Posts: 5
Registered: ‎07-03-2013
My Device: BlackBerry Z10
My Carrier: Vodafone

timeout for ISO7816 APDU communication with SIM

Hello,

 

i am using the NFC API on a BlackBerry Z10 for ISO7816 APDU communication with the SIM.

 

The APDU communication itself is working in principle, but when i send an APDU,

which triggers a time-consuming cryptographic computation inside the SIM, after 5000 milliseconds i get the returncode NFC_RESULT_ERROR when calling the method "nfc_se_channel_transmit_apdu" .

 

Is there a way to "increase" this timeout, which allow me to successfully perform APDUs which take longer than 5000 milliseconds to return their APDU-Response ?

 

Best regards

Andreas

Please use plain text.
BlackBerry Development Advisor (Retired)
robbieDubya
Posts: 418
Registered: ‎07-18-2012
My Device: Q10
My Carrier: Bell Canada

Re: timeout for ISO7816 APDU communication with SIM

I'm checking with the development team...

--
Rob is no longer associated with BlackBerry.
Please use plain text.
BlackBerry Development Advisor (Retired)
robbieDubya
Posts: 418
Registered: ‎07-18-2012
My Device: Q10
My Carrier: Bell Canada

Re: timeout for ISO7816 APDU communication with SIM

Hi,

 

During the operation, are you sending back indications that the applet is still working?

 

If you aren't you need to send back NULL procedure bytes as a heartbeat to indicate that the SIM is performing a long operation. 

 

Reference ETSI 102-221. 

Section 14.6.7 Additional processing time

Section 7.2.2.3.1 (NULL BYTE)

 

Links for the references; You'll need an ETSI account to access - but it is free...

http://www.etsi.org/deliver/etsi_ts/102200_102299/102221/11.00.00_60/ts_102221v110000p.pdf

--
Rob is no longer associated with BlackBerry.
Please use plain text.
New Contributor
andreas43
Posts: 5
Registered: ‎07-03-2013
My Device: BlackBerry Z10
My Carrier: Vodafone

Re: timeout for ISO7816 APDU communication with SIM

Thank you for your detailled anwer.

Meanwhile i checked the communication protocol and i can see, that the Null-Byte requesting additional working time is sent back regulary and within the allowed time-frame. 

Even, if the APDU communication on protocol level is successful (but takes longer than 5000 milliseconds), the "nfc_se_channel_transmit_apdu" returns NFC_RESULT_ERROR after 5000 milliseconds.

 

Andreas

Please use plain text.
BlackBerry Development Advisor (Retired)
robbieDubya
Posts: 418
Registered: ‎07-18-2012
My Device: Q10
My Carrier: Bell Canada

Re: timeout for ISO7816 APDU communication with SIM

Going to contact you offline...

 

 

 

--
Rob is no longer associated with BlackBerry.
Please use plain text.