further issues with O2MICRO OZ776 (0b97:7772)

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

further issues with O2MICRO OZ776 (0b97:7772)

Stephan Bärwolf
Hi all.

Recently I was confronted with serious issues regarding the reader within Fujitsu Lifebook E754.
Turns out it is the O2 Micros's OZ776.

Simplified: I was not able to read back some x509 certificates with it. (And other security tools errored while using it.)
(Althought all test passed using an external USB card reader...)
After debugging it more and more became obvious, all disruptions are caused by an LIBUSB_ERROR_TIMEOUT (-7) - the reader simply didn't respond in some cases.

Hereby I want to suggest my patch making the reader fully usable.
In case somebody needs pcscd before-patch- and after-patch logs, please write me, I will make them available then.

BR Stephan

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle

0001-Fix-support-of-O2MICRO-OZ776-0b97-7772.patch (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: further issues with O2MICRO OZ776 (0b97:7772)

Ludovic Rousseau
2016-05-13 19:57 GMT+02:00 Stephan Bärwolf <[hidden email]>:
Hi all.

Hello,
 
Recently I was confronted with serious issues regarding the reader within Fujitsu Lifebook E754.
Turns out it is the O2 Micros's OZ776.

Simplified: I was not able to read back some x509 certificates with it. (And other security tools errored while using it.)
(Althought all test passed using an external USB card reader...)
After debugging it more and more became obvious, all disruptions are caused by an LIBUSB_ERROR_TIMEOUT (-7) - the reader simply didn't respond in some cases.

Hereby I want to suggest my patch making the reader fully usable.
In case somebody needs pcscd before-patch- and after-patch logs, please write me, I will make them available then.

You modified the T=1 communication algorithm. I guess the reader is also bogus with T=0 cards.
Do you have T=0 cards to test with the reader?

According to my driver page [1] this O2 Micro Oz776 reader has other problems:
" The reader is bogus and does not accept PPS "

I do not plan to integrate your patch. The reader may be too bogus to make it usable.
But thanks for sharing your patch. Maybe it can help other "victims" of this reader.

Bye

--
 Dr. Ludovic Rousseau

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: further issues with O2MICRO OZ776 (0b97:7772)

Stephan Bärwolf
On 05/14/16 20:19, Ludovic Rousseau wrote:
2016-05-13 19:57 GMT+02:00 Stephan Bärwolf <[hidden email]>:
Hi all.

Hello,

Hi again.

 [...]

You modified the T=1 communication algorithm. I guess the reader is also bogus with T=0 cards.
Do you have T=0 cards to test with the reader?

I tested with Atos CardOS 4.4 and CardOS 5.0.
So sorry, I don't know any other way to also test T=0...

According to my driver page [1] this O2 Micro Oz776 reader has other problems:
" The reader is bogus and does not accept PPS "
Read it - but still there is a changelog entry declaring it supported and useable...


I do not plan to integrate your patch. The reader may be too bogus to make it usable.
Yes, ok.
But shouldn't you disable the O2 Micro Oz776 at all? (Or implement a big fat warning ?)
As long as it gets detected and as long as it is selectable, people assume to be able to use it without limitation...?
But thanks for sharing your patch. Maybe it can help other "victims" of this reader.
No problem, hope I could help.

Bye and BR

Stephan

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: further issues with O2MICRO OZ776 (0b97:7772)

Stephan Bärwolf
On 05/14/16 21:55, Stephan Bärwolf wrote:
On 05/14/16 20:19, Ludovic Rousseau wrote:
2016-05-13 19:57 GMT+02:00 Stephan Bärwolf <[hidden email]>:

According to my driver page [1] this O2 Micro Oz776 reader has other problems:
" The reader is bogus and does not accept PPS "
Read it - but still there is a changelog entry declaring it supported and useable...
I just did some investigation to get the sources of my information.
Your quote " The reader is bogus and does not accept PPS " was from version 1.3.1 [1].

Commit  [2] implements it as "9600 baud only", while a few patches before ([3]) it was enabled (again).
All happend in release 1.4.2 ([4]), many releases after 1.3.1...
So the "unsupported" [1] information isn't superseeded?

BR Stephan

[1] https://pcsclite.alioth.debian.org/ccid/unsupported.html#0x0B970x7772
[2] https://github.com/LudovicRousseau/CCID/commit/205e4657b87aa9367af755f28461436ab43696d5
[3] https://github.com/LudovicRousseau/CCID/commit/4049e6e3900d81b75ff9e6259ca033dd59a0c516
[4] https://github.com/LudovicRousseau/CCID/commits/master?page=19

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: further issues with O2MICRO OZ776 (0b97:7772)

Ludovic Rousseau
2016-05-14 22:21 GMT+02:00 Stephan Bärwolf <[hidden email]>:
On 05/14/16 21:55, Stephan Bärwolf wrote:
On 05/14/16 20:19, Ludovic Rousseau wrote:
2016-05-13 19:57 GMT+02:00 Stephan Bärwolf <[hidden email]>:

According to my driver page [1] this O2 Micro Oz776 reader has other problems:
" The reader is bogus and does not accept PPS "
Read it - but still there is a changelog entry declaring it supported and useable...
I just did some investigation to get the sources of my information.
Your quote " The reader is bogus and does not accept PPS " was from version 1.3.1 [1].

Commit  [2] implements it as "9600 baud only", while a few patches before ([3]) it was enabled (again).
All happend in release 1.4.2 ([4]), many releases after 1.3.1...
So the "unsupported" [1] information isn't superseeded?

The CCID driver has a workaround for the PPS issue with the O2 Micro 776 readers in [5].

So yes, the reader may work for you. But I do not want to "support" such a bogus piece of hardware.

I added a note about your Pull Request in [1].

Bye




--
 Dr. Ludovic Rousseau

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle