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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
New Contributor
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

Retired
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.
Retired
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.
Highlighted
New Contributor
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

Retired
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.