[sane-devel] [PATCH] [RFC] add sanei_usb test program

2013-03-13 Thread Olaf Meeuwissen
Stef writes:

 On 06/03/2013 22:22, Stef wrote:
 [... details about the test program ...]
  I really think this test program should be added, it doesn't add 
 extra dependency and helps testing a lot. For instance while adding a 
 test case for the problem Olaf spotted (not setting usb context to 
 null), it allowed me to find I also forgot to reset device_number to 0 
 in sane_exit().

As I already/just mentioned in my review, I'm in favour of adding
tests.  If they are run as part of `make check` that's even better.

# And shame on me for not spotting the missing device_number reset!
# I'd probably have written that as a count-down loop on device_number
# so the reset becomes part of the resource release logic.  Anyways.

Hope this helps,
-- 
Olaf Meeuwissen, LPIC-2   FLOSS Engineer -- AVASYS CORPORATION
FSF Associate Member #1962   Help support software freedom
 http://www.fsf.org/jf?referrer=1962



[sane-devel] fixes from bug tracker

2013-03-13 Thread Olaf Meeuwissen
Gerard Klaver writes:

 On Mon, 2013-03-11 at 21:31 +0100, Stef wrote: 
  Hello,
 
  unless someone objects it, I'm considering applying fixes attached 
 to the following bug reports next Monday:
  #314042

OK.

  #314038
  #314037
  #314036
  #314035

Definitely!

 For bug #314038 fine by me, thanks.

Thanks for going through the low-hanging fruit in the bug tracker!

Hope this helps,
-- 
Olaf Meeuwissen, LPIC-2   FLOSS Engineer -- AVASYS CORPORATION
FSF Associate Member #1962   Help support software freedom
 http://www.fsf.org/jf?referrer=1962



[sane-devel] sane-backend on windows

2013-03-13 Thread Fred Doo
[plustek] Vendor adjusted to: Canon
[plustek] LAMP-STATUS: 0x (off)
[plustek] RESETTING REGISTERS(38) - 0x80
[plustek] USING MISC I/O settings
[plustek] MISC I/O after RESET: 0x66, 0x16, 0x91
[plustek] usbDev_getCaps()
[plustek] scanmode = 3
[plustek] usbDev_getCropInfo()
[plustek] usb_GetImageInfo()
[plustek] Area: cx=1216, cy=900
[plustek] PPL = 202
[plustek] LPA = 150
[plustek] BPL = 606
[plustek] brightness 0, contrast 0
[plustek] usbDev_setScanEnv()
[plustek] usb_SaveImageInfo()
[plustek] * dwFlag = 0x0400
[plustek] usb_GetImageInfo()
[plustek] Area: cx=1216, cy=900
[plustek] * Preview Mode NOT set!
[plustek] AdjustCISLamps(1)
[plustek]? * setting color mode
[plustek] usb_AdjustLamps(1)
[plustek] Setting map[0] at 0x20047d18
[plustek] Setting map[1] at 0x2004bd18
[plustek] Setting map[2] at 0x2004fd18
[plustek] usbDev_startScan()
[plustek] * HDPI: 12.000
[plustek] * XDPI=50, HDPI=12.000
[plustek] * YDPI=75, MinDPIY=75
[plustek] LAMP-STATUS: 0x (off)
[plustek] Switching Lamp on
[plustek] usb_AdjustLamps(1)
[plustek] Warmup-Timer started
[plustek] LAMP-STATUS: 0x0001 (on)
[plustek] Lamp-Timer stopped
[plustek] dwflag = 0x4400 dwBytesLine = 606
[plustek] Lines? = 150
[plustek] Bytes per Line = 606
[plustek] Bitdepth?? = 8
[plustek] TIME START
[plustek] local_sane_start done
[[plustekplustek] ] sane_start donereader_process started (forked)
] reader_process:starting to READ data (90900 bytes)
[plustek] buf = 0x2005c978
[plustek] usbDev_PrepareScan()
[plustek] UIO error
[plustek] cano_DoCalibration()
[plustek] #
[plustek] usb_SpeedTest(38,100)
[plustek] GETMCLK[7/2], using entry 6: 6.000, 600
[plustek] SETMCLK[7/2]: 6.000
[plustek] usb_SetScanParameters()
[plustek] Scanner not ready!!!
[plustek] #
[plustek] usb_AutoWarmup()
[plustek] - function skipped, CIS device!
[plustek] GETMCLK[7/2], using entry 6: 6.000, 600
[plustek] SETMCLK[7/2]: 6.000
[plustek] GETMCLK[7/2], using entry 0: 7.000, 50
[plustek] SETMCLK[7/2]: 7.000
[plustek] ## ADJUST LAMP (COARSE)###
[plustek] UIO error
[plustek] UIO error
[plustek] cano_PrepareToReadWhiteCal() failed
[plustek] calibration failed!!!
[[plustekplustek] ] reader_process: read failed, status = IPC: Transferrate = -2
009004 Bytes/s, errno 2
[plustek
] sane_read - read 0 bytes
[plustek] drvclose()
[plustek] (SIG) Child is down (signal=20)
[plustek] TIME END 1: 68s
[plustek] usbDev_stopScan()
[plustek] usbDev_ScanEnd(), start=1, park=1
[plustek] usbDev_close()
[plustek] close_pipe (r_pipe)
scanimage: sane_read: Operation was cancelled
[plustek] sane_cancel
[plustek] do_cancel
[plustek]  killing reader_process 
[plustek] reader_process killed
[plustek] TIME END 2: 68s
[plustek] sane_close
[plustek] sane_exit
[plustek] Shutdown called (dev-fd=-1, libusb:bus-0:\\.\libusb0-0001--0x04a9-0x2
206)
[plustek] Waiting for scanner-ready...
[plustek] Lamp-Timer stopped


Thanks you and best regards, 

Fred.
-- next part --
An HTML attachment was scrubbed...
URL: 
http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20130313/dc6cb1ea/attachment-0001.html


[sane-devel] HP All-in-one

2013-03-13 Thread DON SMITH
Hi,
Has any work been done, which is associated with the HP All-In-one 
printer/scanners? In particular the hp8600.

Thanks,
 Don Smith