Hi,
I amend some lines in uru4000.c, Seemly the uru4000 reader can work(enroll
finger print and verify finger print  are ok ) now,althought the reader can
not work smartly.

I am sorry I am unable to write patch for uru4000.c and the following lines
are added into
libfprint.0.0.6/libfprint/drivers/uru4000.c
295line to 304line.


retry:
        r = usb_interrupt_read(dev->udev, EP_INTR, buf, IRQ_LENGTH,
timeout);
        if (r == -ETIMEDOUT && infinite_timeout)
+                {
+              r = usb_reset(dev->udev);
+                if(r<0)
+                {
+                    fp_dbg("USB reset error");
+                return r;
+                }
                goto retry;
+               }

There must be better patch for it. ;)
Anyone has other ideas?
Thank you very much

Yao

On Sat, Oct 24, 2009 at 3:14 PM, Yao <[email protected]> wrote:

> Hi all.
> Now I have recompiled the fprint package with --ennale-debug-log parameter
> on Ubuntu9.04.
> When I run the enroll command:
> --------------------------------------------------------
> #cd libfprint-0.0.6/
> #sudo ./example/enroll
> This program will enroll your right index finger, unconditionally
> overwriting any right-index print that was enrolled previously. If you want
> to continue, press enter, otherwise hit Ctrl+C
>
> fp:debug [fp_init]
> fp:debug [register_driver] registered driver upekts
> fp:debug [register_driver] registered driver uru4000
> fp:debug [register_driver] registered driver aes1610
> fp:debug [register_driver] registered driver aes2501
> fp:debug [register_driver] registered driver aes4000
> fp:debug [register_driver] registered driver upektc
> fp:debug [register_driver] registered driver fdu2000
> fp:debug [find_supporting_driver] driver uru4000 supports USB device
> 05ba:0007
> Found device claimed by Digital Persona U.are.U 4000/4000B driver
> uru4000:debug [get_hwstat] val=03
> uru4000:debug [set_hwstat] val=83
> uru4000:debug [fix_firmware] looking for encryption byte at 510
> uru4000:debug [fix_firmware] data: 21 10 01
> uru4000:debug [fix_firmware] that's not the encryption byte :(
> uru4000:debug [fix_firmware] looking for encryption byte at 62d
> uru4000:debug [fix_firmware] data: 0f e0 f2
> uru4000:debug [fix_firmware] that's not the encryption byte :(
> uru4000:debug [fix_firmware] looking for encryption byte at 792
> uru4000:debug [fix_firmware] data: ff 07 41
> uru4000:debug [fix_firmware] spotted the encryption byte!
> uru4000:debug [fix_firmware] encryption byte at 793 reads 07
> uru4000:debug [fix_firmware] encryption already disabled
> uru4000:debug [set_hwstat] val=03
> uru4000:debug [get_hwstat] val=00
> uru4000:debug [get_irq_with_type] type=56aa
> uru4000:debug [get_irq] irq type 56aa
> fp:debug [fp_dev_open]
> Opened device. It's now time to enroll your finger.
>
> You will need to successfully scan your finger 1 times to complete the
> process.
>
> Scan your finger now.
> fp:debug [fp_enroll_finger_img] uru4000 will handle enroll stage 0/0
> (initial)
> fp:debug [fpi_imgdev_capture] uru4000 will handle capture request
> uru4000:debug [set_mode] 10
> uru4000:debug [get_irq_with_type] type=0101
> uru4000:debug [get_irq] irq type 0200
>
> ---------------------------------------------------------------------------
> then the console stops there.
>
> Now I try to read the source code to get some detail.
>
> Anyone can help me?
>
> Thanks.
>
>
> --
> Qi Yao
> School of Information Science & Engineering  Lanzhou University
>
>
>


-- 
Qi Yao
School of Information Science & Engineering  Lanzhou University
_______________________________________________
fprint mailing list
[email protected]
http://lists.reactivated.net/mailman/listinfo/fprint

Reply via email to