Ludovic Rousseau wrote: > On Dec 7, 2007 2:12 AM, Andrey Jivsov <[EMAIL PROTECTED]> wrote: >> one year ago I mentioned that I would like to contribute the cyberJack >> PINPAD reader driver for OpenCT. I apologize for the delay. Finally, it >> is available. >> >> I am attaching the patch against SVN rev 1007 (Dec 6 2007). > > Patch commited in revision 1008. > Please test it.
I have applied this patch to 0.16.4 on my FreeBSD 7.0 (amd64) and I got this: # ifdhandler -F -ddddd -r0 cyberjack usb /dev/ugen1 Debug: ifd_open: trying to open [EMAIL PROTECTED]:/dev/ugen1 Debug: cyberjack_open: device=usb:/dev/ugen1 Debug: ifd_sysdep_usb_control: BSD: ifd_sysdep_usb_control(0x6) Debug: ifd_sysdep_usb_control: BSD: CTRL bmRequestType 0x80 bRequest 0x6 wValue 0x100 wIndex 0x0 wLength 0x12 Debug: ifd_sysdep_usb_control: BSD: CTRL SEND data 00 04 d1 00 08 00 00 00 a2 79 40 00 00 00 00 00 b8 93 Debug: ifd_sysdep_usb_control: BSD: CTRL RECV data 12 01 00 01 00 00 00 10 4b 0c 00 01 00 01 02 03 00 01 Debug: ifd_usb_control: usb req type=x80 req=x06 val=x0100 ind=x0000 len=18 Debug: ifd_usb_control: recv 12 01 00 01 00 00 00 10 4b 0c 00 01 00 01 02 03 00 01 Error: detected e-com/pp at usb:/dev/ugen1, max packet 16 Debug: cyberjack_open: trying to claim interface 0 on device, config 1 Debug: usb_set_params: called. config x01 ifc x00 eps x02/x82 Debug: ifd_sysdep_usb_claim_interface: interface=0 (not yet implemented) Debug: cyberjack_open: successfully claimed interface Debug: cyberjack_open: cyberjack: returning device 0x800d18080 Debug: cyberjack_activate: called (dev = 0xd18080). Debug: usb_send: usb send to=x02 Debug: usb_send: send 00 04 00 e2 c1 00 23 Debug: ifd_sysdep_usb_bulk: endpoint=2 direction=0 Debug: ifd_sysdep_usb_bulk: wrote buffer[7]= 00 04 00 e2 c1 00 23 Debug: usb_send: usb send to=x02 Debug: usb_send: send 00 04 00 e2 c0 00 22 Debug: ifd_sysdep_usb_bulk: endpoint=2 direction=0 Debug: ifd_sysdep_usb_bulk: wrote buffer[7]= 00 04 00 e2 c0 00 22 Debug: ifd_sysdep_usb_bulk: endpoint=2 direction=1 Error: usb_bulk read failed: Input/output error Error: cyberjack: failed to activate 2 Error: cyberjack: failed to activate 2: no cookie Error: Failed to activate reader; err=-1 I started my own attempt to write my own, kernel FreeBSD driver. My driver has no problems with sending initialization sequences attempted above. --Marcin _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel