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

Java Development

Reply
New Developer
rawlogic
Posts: 2
Registered: ‎04-15-2009
My Device: Not Specified
Accepted Solution

"Protocol not implemented 0" when issuing SmartCardSession.sendAPDU command

I'm developing a new smartcard application. 

 

I've created my driver and session classes and loaded them.

 

Here's the code in the session class that tries to send an APDU command to the card:

 

   

CommandAPDU command = new CommandAPDU( (byte)0x00, (byte)0x182, (byte)0x00, (byte)0x25, (byte)0x07 ); ResponseAPDU response = new ResponseAPDU(); try { sendAPDU( command, response );

 

I get a SmartCardException with a message of "Protocol not implemented 0" when I try to issue the sendAPDU command.

 

Please help. 

 

 

 

Please use plain text.
Administrator
MSohm
Posts: 14,525
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: "Protocol not implemented 0" when issuing SmartCardSession.sendAPDU command

What BlackBerry Smartphone model and BlackBerry handheld software version are you testing on?  You can find this under Options, About on the BlackBerry Smartphone.

 

What type of smart card and smart card reader are you testing with?

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
New Developer
rawlogic
Posts: 2
Registered: ‎04-15-2009
My Device: Not Specified

Re: "Protocol not implemented 0" when issuing SmartCardSession.sendAPDU command

From the about page: 

 

Phone: BlackBerry 8330.

 

Software: v4.5.0.77

 

The smart card reader is the BlackBerry smartcard reader, model: RBB10BW.

 

Both the reader and the BlackBerry have the latest smartcard reader drivers available on the website (4.2.0.107).

 

I've talked to Mike Kirkup at RIM, and it turns out it's a bug in the way that the drivers are parsing the ATR.  The smartcard supports T0, but due to incorrect parsing of the ATR, the driver is unable to detect T0 support.  Mike has developers working on a fix.  Apparently, it will require new reader drivers.  If you know Mike, please urge him along.

 

Thank you.

Please use plain text.