[sane-devel] Problems in ARM (atmel) linux - Travelscan 662 (sane-plustek)
Saravana Krishnamurthy
saravakr at cisco.com
Tue Nov 27 19:38:39 UTC 2007
Here is the debug information with "SANE_DEBUG_PLUSTEK=10".
I've captured the debug output from linux-x86 and linux-arm. I'm also attaching the diff file.
I see some differences in the debug info spitted out by sane for the two platforms.
Please let me know if you see any glaring issues.
thanks a lot
-sk
----- Original Message -----
From: sane-devel-bounces+saravakr=cisco.com at lists.alioth.debian.org on behalf of saravakr at cisco.com
Sent: Tue, 11/27/2007 10:39am
To: Gerhard Jaeger ; sane-devel at lists.alioth.debian.org
Subject: Re: [sane-devel] Problems in ARM (atmel) linux - Travelscan 662 (sane-plustek)
I checked out the latest version from CVS.
I still have the same issue.
thanks
-sk
----- Original Message -----
From: sane-devel-bounces+saravakr=cisco.com at lists.alioth.debian.org on behalf of saravakr at cisco.com
Sent: Tue, 11/27/2007 10:12am
To: Gerhard Jaeger ; sane-devel at lists.alioth.debian.org
Subject: Re: [sane-devel] Problems in ARM (atmel) linux - Travelscan 662 (sane-plustek)
I'm using the current version. So I wasn't able to apply the patch using the "patch "
utility. However, I manually edited the plustek-usb.h file to refect the changes in the patch that allan provided. It doesn't help. I still have the same issue.
Gerhard,
Should I use the latest version from CVS? (ie 1.0.18?).
thanks
-sk
----- Original Message -----
From: Gerhard Jaeger
Sent: Mon, 11/26/2007 11:30pm
To: sane-devel at lists.alioth.debian.org
Cc: m. allan noah ; saravakr at cisco.com
Subject: Re: [sane-devel] Problems in ARM (atmel) linux - Travelscan 662 (sane-plustek)
Am Dienstag, 27. November 2007 03:05:44 schrieb m. allan noah:
> sounds like somewhere there is an array of 3-byte R,G,B structs, which
> will be padded on arm to 4 bytes. this problem was discovered by DAKA
> and myself when building sane for the nslu2/openembedded platform. the
> attached patch added some packing directives to correct the issue, but
> this was sane 1.0.17, not current.
>
Hi,
you are right, this is the problem, in CVS should be a corrected
version, but I had no chance to test it on my SLUG.
Let us know if Allans patch helps and/or try the CVS version
and tell us if this works too...
TIA
Gerhard
--
sane-devel mailing list: sane-devel at lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-request at lists.alioth.debian.org
--
sane-devel mailing list: sane-devel at lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-request at lists.alioth.debian.org
-------------- next part --------------
[root at PUB9260:/usr/local/bin] ./scanimage > test.tiff
[sanei_debug] Setting debug level of plustek to 10.
[plustek] Plustek backend V0.52-6, part of sane-backends 1.0.18-cvs
[plustek] Retrieving all supported and conntected devices
[plustek] Available and supported devices:
[plustek] Device: >libusb:001:004< - 0x0a82x0x6620
[plustek] ># Plustek-SANE Backend configuration file<
[plustek] ># For use with LM9831/2/3 based USB scanners<
[plustek] >#<
[plustek] ><
[plustek] ># each device needs at least two lines:<
[plustek] ># - [usb] vendor-ID and product-ID<
[plustek] ># - device devicename<
[plustek] ># i.e. for Plustek (0x07B3) UT12/16/24 (0x0017)<
[plustek] ># [usb] 0x07B3 0x0017<
[plustek] ># device /dev/usbscanner<
[plustek] ># or<
[plustek] ># device libusb:bbb:ddd<
[plustek] ># where bbb is the busnumber and ddd the device number<
[plustek] ># make sure that your user has access to /proc/bus/usb/bbb/ddd<
[plustek] >#<
[plustek] ># additionally you can specify some options<
[plustek] ># warmup, lOffOnEnd, lampOff<
[plustek] >#<
[plustek] ># For autodetection use<
[plustek] ># [usb]<
[plustek] ># device /dev/usbscanner<
[plustek] >#<
[plustek] ># or simply<
[plustek] ># [usb]<
[plustek] >#<
[plustek] ># or if you want a specific device but you have no idea about the<
[plustek] ># device node or you use libusb, simply set vendor- and product-ID<
[plustek] ># [usb] 0x07B3 0x0017<
[plustek] ># device auto<
[plustek] >#<
[plustek] ># NOTE: autodetection is safe, as it uses the info it got<
[plustek] ># from the USB subsystem. If you're not using the<
[plustek] ># autodetection, you MUST have attached that device<
[plustek] ># at your USB-port, that you have specified...<
[plustek] >#<
[plustek] ><
[plustek] >usb 0x0a82 0x6620<
[plustek] ignoring >usb 0x0a82 0x6620<
[plustek] ><
[plustek] >#<
[plustek] ># options for the previous USB entry<
[plustek] >#<
[plustek] ># switch lamp off after xxx secs, 0 disables the feature<
[plustek] ># (can also be set via frontend)<
[plustek] >option lampOff 300<
[plustek] Decoding option >lampOff<
[plustek] ><
[plustek] ># warmup period in seconds, 0 means no warmup, -1 means auto-warmup<
[plustek] ># (can also be set via frontend)<
[plustek] >option warmup -1<
[plustek] Decoding option >warmup<
[plustek] ><
[plustek] ># 0 means leave lamp-status untouched, not 0 means switch off<
[plustek] ># on sane_close<
[plustek] ># (can also be set via frontend)<
[plustek] >option lOffOnEnd 1<
[plustek] Decoding option >lOffOnEnd<
[plustek] ><
[plustek] >#<
[plustek] ># options to tweak the image start-position<
[plustek] ># (WARNING: there's no internal range check!!!)<
[plustek] >#<
[plustek] ># for the normal scan area<
[plustek] >#<
[plustek] >option posOffX 0<
[plustek] Decoding option >posOffX<
[plustek] >option posOffY 0<
[plustek] Decoding option >posOffY<
[plustek] ><
[plustek] ># for transparencies<
[plustek] >option tpaOffX 0<
[plustek] Decoding option >tpaOffX<
[plustek] >option tpaOffY 0<
[plustek] Decoding option >tpaOffY<
[plustek] ><
[plustek] ># for negatives<
[plustek] >option negOffX 0<
[plustek] Decoding option >negOffX<
[plustek] >option negOffY 0<
[plustek] Decoding option >negOffY<
[plustek] ><
[plustek] >#<
[plustek] ># for setting the calibration strip position<
[plustek] ># (WARNING: there's no internal range check!!!)<
[plustek] ># -1 means use built in<
[plustek] ># (can also be set via frontend)<
[plustek] >option posShadingY -1<
[plustek] Decoding option >posShadingY<
[plustek] >option tpaShadingY -1<
[plustek] Decoding option >tpaShadingY<
[plustek] >option negShadingY -1<
[plustek] Decoding option >negShadingY<
[plustek] ><
[plustek] >#<
[plustek] ># to invert the negatives, 0 disables the feature<
[plustek] >#<
[plustek] >option invertNegatives 0<
[plustek] Decoding option >invertNegatives<
[plustek] ><
[plustek] >#<
[plustek] ># to disable the internal sensor speedup function,<
[plustek] ># 1 disables the feature<
[plustek] >#<
[plustek] >option disableSpeedup 0<
[plustek] Decoding option >disableSpeedup<
[plustek] ><
[plustek] >#<
[plustek] ># to save/restore coarse calibration data<
[plustek] ># (can also be set via frontend)<
[plustek] >option cacheCalData 0<
[plustek] Decoding option >cacheCalData<
[plustek] ><
[plustek] >#<
[plustek] ># use alternate calibration routines<
[plustek] >#<
[plustek] >option altCalibration 0<
[plustek] Decoding option >altCalibration<
[plustek] ><
[plustek] >#<
[plustek] ># for skipping whole calibration step<
[plustek] >#<
[plustek] >option skipCalibration 0<
[plustek] Decoding option >skipCalibration<
[plustek] ><
[plustek] >#<
[plustek] ># for skipping entire fine calibration step<
[plustek] ># coarse calibration is done<
[plustek] >#<
[plustek] >option skipFine 0<
[plustek] Decoding option >skipFine<
[plustek] ><
[plustek] >#<
[plustek] ># discard the result of the fine white calibration<
[plustek] >#<
[plustek] >option skipFineWhite 0<
[plustek] Decoding option >skipFineWhite<
[plustek] ><
[plustek] ># for replacing the gain values found during coarse<
[plustek] ># calibration<
[plustek] ># (can also be set via frontend)<
[plustek] >option red_gain -1<
[plustek] Decoding option >red_gain<
[plustek] >option green_gain -1<
[plustek] Decoding option >green_gain<
[plustek] >option blue_gain -1<
[plustek] Decoding option >blue_gain<
[plustek] ><
[plustek] ># for replacing the offset values found during coarse<
[plustek] ># calibration<
[plustek] ># (can also be set via frontend)<
[plustek] >option red_offset -1<
[plustek] Decoding option >red_offset<
[plustek] >option green_offset -1<
[plustek] Decoding option >green_offset<
[plustek] >option blue_offset -1<
[plustek] Decoding option >blue_offset<
[plustek] ><
[plustek] >#<
[plustek] ># for replacing the default lampoff settings, this<
[plustek] ># works only for CIS devices like CanoScan LiDE20<
[plustek] ># (can also be set via frontend)<
[plustek] >option red_lampoff -1<
[plustek] Decoding option >red_lampoff<
[plustek] >option green_lampoff -1<
[plustek] Decoding option >green_lampoff<
[plustek] >option blue_lampoff -1<
[plustek] Decoding option >blue_lampoff<
[plustek] ><
[plustek] >#<
[plustek] ># for adjusting the default gamma values<
[plustek] ># (can also be set via frontend)<
[plustek] >option redGamma 1.0<
[plustek] Decoding option >redGamma<
[plustek] >option greenGamma 1.0<
[plustek] Decoding option >greenGamma<
[plustek] >option blueGamma 1.0<
[plustek] Decoding option >blueGamma<
[plustek] >option grayGamma 1.0<
[plustek] Decoding option >grayGamma<
[plustek] ><
[plustek] >#<
[plustek] ># to enable TPA (EPSON or UMAX, if autodetection fails)<
[plustek] ># 0 means default behaviour as specified in the internal tables<
[plustek] ># 1 means enable (needed for UMAX 3450)<
[plustek] >option enableTPA 0<
[plustek] Decoding option >enableTPA<
[plustek] ><
[plustek] >#<
[plustek] ># model override functionality, currently only available for<
[plustek] ># Mustek devices, using NSCs' vendor ID: 0x0400 and<
[plustek] ># also their product ID: 0x1000 (LM9831) 0x1001 (LM9832)<
[plustek] >#<
[plustek] ># mov/PID | 0x1000 | 0x1001<
[plustek] ># ---------------------------------------<
[plustek] ># 0 (default)| BearPaw1200 | BearPaw 2400<
[plustek] ># 1 | ignored | BearPaw 1200<
[plustek] >#<
[plustek] >option mov 0<
[plustek] Decoding option >mov<
[plustek] ><
[plustek] >#<
[plustek] ># and of course the device-name<
[plustek] >#<
[plustek] ># device /dev/usbscanner<
[plustek] >device auto<
[plustek] Decoding device name >auto<
[plustek] ><
[plustek] >#<
[plustek] ># to define a new device, start with a new section:<
[plustek] ># [usb]<
[plustek] >#<
[plustek] attach (auto, 0xbe834bf4, (nil))
[plustek] Device configuration:
[plustek] device name : >auto<
[plustek] USB-ID : ><
[plustek] model ovr. : 0
[plustek] warmup : -1s
[plustek] lampOff : 300
[plustek] lampOffOnEnd : yes
[plustek] cacheCalData : no
[plustek] altCalibrate : no
[plustek] skipCalibr. : no
[plustek] skipFine : no
[plustek] skipFineWhite: no
[plustek] skipDarkStrip: no
[plustek] incDarkTarget: yes
[plustek] invertNegs. : no
[plustek] dis.Speedup : no
[plustek] pos_x : 0
[plustek] pos_y : 0
[plustek] pos_shading_y: -1
[plustek] neg_x : 0
[plustek] neg_y : 0
[plustek] neg_shading_y: -1
[plustek] tpa_x : 0
[plustek] tpa_y : 0
[plustek] tpa_shading_y: -1
[plustek] red gain : -1
[plustek] green gain : -1
[plustek] blue gain : -1
[plustek] red offset : -1
[plustek] green offset : -1
[plustek] blue offset : -1
[plustek] red lampoff : -1
[plustek] green lampoff: -1
[plustek] blue lampoff : -1
[plustek] red Gamma : 0.00
[plustek] green Gamma : 0.00
[plustek] blue Gamma : 0.00
[plustek] gray Gamma : 0.00
[plustek] ---------------------
[plustek] usbDev_open(auto,) - 0x1a520
[plustek] Vendor ID=0x0A82, Product ID=0x6620
[plustek] usbio_DetectLM983x
[plustek] usbio_DetectLM983x: found LM9832/3
[plustek] Detected vendor & product ID: 0x0A82-0x6620
[plustek] Device description for >0x0A82-0x6620< found.
[plustek] usb_initDev(45,0x0a82,-1)
[plustek] Device WAF : 0x00004382
[plustek] Transferrate: 1000000 Bytes/s
[plustek] Device Flags: 0x00000020
[plustek] Vendor adjusted to: >Syscan<
[plustek] LAMP-STATUS: 0x00000000 (off)
[plustek] RESETTING REGISTERS(-1) - 0x80
[plustek] MISC I/O after RESET: 0x0e, 0x96, 0x01
[plustek] Calibration file-names set to:
[plustek] >/root/.sane/Syscan_TravelScan_662-coarse.cal<
[plustek] >/root/.sane/Syscan_TravelScan_662-fine.cal<
[plustek] usb_SetScanParameters()
[plustek] usb_GetMCLKDivider()
[plustek] usb_GetMCLKDiv()
[plustek] * PhyBytes = 6
[plustek] * PhyLines = 4
[plustek] * TotalBytes = 24
[plustek] usb_SetScanParameters() done.
[plustek] usbDev_getCaps()
[plustek] Scanner information:
[plustek] Vendor : Syscan
[plustek] Model : TravelScan 662
[plustek] Flags : 0x00000000
[plustek] drvclose()
[plustek] usbDev_stopScan()
[plustek] usbDev_ScanEnd(), start=0, park=0
[plustek] usbDev_close()
[plustek] attach: model = >TravelScan 662<
[plustek] sane_get_devices (0xbe836d24, 0)
[plustek] sane_open - libusb:001:004
[plustek] Presetting Gamma tables (len=4096)
[plustek] * Channel[0], gamma 0.000
[plustek] * Channel[1], gamma 0.000
[plustek] * Channel[2], gamma 0.000
[plustek] * Channel[3], gamma 0.000
[plustek] ----------------------------------
[plustek] sane_start
[plustek] usbDev_open(libusb:001:004,) - (nil)
[plustek] Vendor ID=0x0A82, Product ID=0x6620
[plustek] usbio_DetectLM983x
[plustek] usbio_DetectLM983x: found LM9832/3
[plustek] Detected vendor & product ID: 0x0A82-0x6620
[plustek] Device description for >0x0A82-0x6620< found.
[plustek] usb_initDev(45,0x0a82,45)
[plustek] Device WAF : 0x00004382
[plustek] Transferrate: 1000000 Bytes/s
[plustek] Device Flags: 0x00000026
[plustek] Vendor adjusted to: >Syscan<
[plustek] LAMP-STATUS: 0x00000000 (off)
[plustek] RESETTING REGISTERS(45) - 0x80
[plustek] MISC I/O after RESET: 0x0e, 0x96, 0x01
[plustek] usbDev_getCaps()
[plustek] scanmode = 3
[plustek] usbDev_getCropInfo()
[plustek] usb_GetImageInfo()
[plustek] PPL = 202
[plustek] LPA = 150
[plustek] BPL = 606
[plustek] brightness 0, contrast 0
[plustek] usbDev_setScanEnv()
[plustek] usb_SaveImageInfo()
[plustek] * dwFlag = 0x00000400
[plustek] usb_GetImageInfo()
[plustek] * Preview Mode NOT set!
[plustek] Setting map[0] at 0x00025460
[plustek] Setting map[1] at 0x00029460
[plustek] Setting map[2] at 0x0002d460
[plustek] usbDev_startScan()
[plustek] LAMP-STATUS: 0x00000000 (off)
[plustek] Switching Lamp on
[plustek] usb_switchLampX(ON=1,TPA=0)
[plustek] Switch Lamp: 1, regs[0x5b] = 0x09
[plustek] Warmup-Timer started
[plustek] LAMP-STATUS: 0x00000001 (on)
[plustek] Lamp-Timer stopped
[plustek] dwflag = 0x40000400 dwBytesLine = 606
[plustek] Lines = 150
[plustek] Bytes per Line = 606
[plustek] Bitdepth = 8
[plustek] TIME START
[plustek] local_sane_start done
[plustek] sane_start done
[plustek] reader_process started (forked)
[plustek] reader_process:starting to READ data (90900 bytes)
[plustek] buf = 0x00031ac8
[plustek] usbDev_PrepareScan()
[plustek] cano_DoCalibration()
[plustek] #########################
[plustek] usb_AutoWarmup()
[plustek] - function skipped, CIS device!
[plustek] GETMCLK[13/2], using entry 6: 0.000, 600
[plustek] SETMCLK[13/2]: 0.000
[plustek] GETMCLK[13/2], using entry 0: 0.000, 50
[plustek] SETMCLK[13/2]: 0.000
[plustek] usb_ReadFineCalData()
[plustek] - Reading fine calibration data from file
[plustek] /root/.sane/Syscan_TravelScan_662-fine.cal
[plustek] File /root/.sane/Syscan_TravelScan_662-fine.cal not found
[plustek] usb_switchLampX(ON=1,TPA=0)
[plustek] Switch Lamp: 1, regs[0x5b] = 0x09
[plustek] cano_DoCalibration() done
[plustek] -------------------------
[plustek] Static Gain:
[plustek] REG[0x3b] = 10
[plustek] REG[0x3c] = 10
[plustek] REG[0x3d] = 10
[plustek] Static Offset:
[plustek] REG[0x38] = 0
[plustek] REG[0x39] = 0
[plustek] REG[0x3a] = 0
[plustek] -------------------------
[plustek] calibration done.
[plustek] usb_SetScanParameters()
[plustek] usb_GetMCLKDivider()
[plustek] usb_GetMCLKDiv()
[plustek] * PhyBytes = 612
[plustek] * PhyLines = 225
[plustek] * TotalBytes = 137700
[plustek] usb_SetScanParameters() done.
[plustek] Warmup: skipped for CIS devices
[plustek] ImageProc is: ColorDuplicate8_2
[plustek] * scan->dwFlag=0x40000400
[plustek] usb_ScanBegin()
[plustek] usb_MapDownload()
[plustek] * brightness = 0 -> 0
[plustek] * contrast = 0 -> 0.000
[plustek] * downloading map 0...
[plustek] * downloading map 1...
[plustek] * downloading map 2...
[plustek] usb_MapDownload() done.
[plustek] usb_DownloadShadingData(0)
[plustek] --> BYPASS
[plustek] usb_ScanBegin() done.
[plustek] SampleY Flag set (50 != 75, wSumY=25)
[plustek] Reading the data now!
[plustek] PhyDpi.x = 50
[plustek] PhyDpi.y = 75
[plustek] UserDpi.x = 50
[plustek] UserDpi.y = 50
[plustek] NumberOfScanBufs = 428
[plustek] LinesPerScanBufs = 13696
[plustek] dwPhyBytes = 612
[plustek] dwPhyPixels = 202
[plustek] dwTotalBytes = 137700
[plustek] dwPixels = 202
[plustek] dwBytes = 606
[plustek] dwValidPixels = 202
[plustek] dwBytesScanBuf = 19584
[plustek] dwLinesDiscard = 0
[plustek] dwLinesToSkip = 1
[plustek] dwLinesUser = 150
[plustek] dwBytesLine = 606
[plustek] usb_IsDataAvailableInDRAM()
[plustek] Data is available
[plustek] reader_process: READING....
[plustek] IPC: Transferrate = 1000000 Bytes/s
[plustek] reader_process: finished reading data
[plustek] drvclose()
[plustek] TIME END 1: 6s
[plustek] usbDev_stopScan()
[plustek] usbDev_ScanEnd(), start=1, park=1
[plustek] (SIG) Child is down (signal=17)
[plustek] Lamp-Timer started (using ITIMER)
[plustek] usbDev_close()
[plustek] close_pipe (r_pipe)
[plustek] sane_cancel
[plustek] do_cancel
[plustek] TIME END 2: 7s
[plustek] sane_close
[plustek] sane_exit
[plustek] Shutdown called (dev->fd=-1, libusb:001:004)
[plustek] Waiting for scanner-ready...
[plustek] Switching lamp off...
[plustek] LAMP-STATUS: 0x00000001 (on)
[plustek] Switching Lamp off
[plustek] usb_switchLampX(ON=0,TPA=0)
[plustek] Switch Lamp: 0, regs[0x5b] = 0x01
[plustek] LAMP-STATUS: 0x00000000 (off)
[plustek] Lamp-Timer stopped
[root at PUB9260:/usr/local/bin] usb 1-2.1: USB disconnect, address 4
[root at PUB9260:/usr/local/bin]
[root at PUB9260:/usr/local/bin]
-------------- next part --------------
[root at localhost ~]# scanimage > test.tiff
[sanei_debug] Setting debug level of plustek to 10.
[plustek] Plustek backend V0.52-6, part of sane-backends 1.0.18-cvs
[plustek] Retrieving all supported and conntected devices
[plustek] Available and supported devices:
[plustek] Device: >libusb:004:083< - 0x0a82x0x6620
[plustek] ># Plustek-SANE Backend configuration file<
[plustek] ># For use with LM9831/2/3 based USB scanners<
[plustek] >#<
[plustek] ><
[plustek] ># each device needs at least two lines:<
[plustek] ># - [usb] vendor-ID and product-ID<
[plustek] ># - device devicename<
[plustek] ># i.e. for Plustek (0x07B3) UT12/16/24 (0x0017)<
[plustek] ># [usb] 0x07B3 0x0017<
[plustek] ># device /dev/usbscanner<
[plustek] ># or<
[plustek] ># device libusb:bbb:ddd<
[plustek] ># where bbb is the busnumber and ddd the device number<
[plustek] ># make sure that your user has access to /proc/bus/usb/bbb/ddd<
[plustek] >#<
[plustek] ># additionally you can specify some options<
[plustek] ># warmup, lOffOnEnd, lampOff<
[plustek] >#<
[plustek] ># For autodetection use<
[plustek] ># [usb]<
[plustek] ># device /dev/usbscanner<
[plustek] >#<
[plustek] ># or simply<
[plustek] ># [usb]<
[plustek] >#<
[plustek] ># or if you want a specific device but you have no idea about the<
[plustek] ># device node or you use libusb, simply set vendor- and product-ID<
[plustek] ># [usb] 0x07B3 0x0017<
[plustek] ># device auto<
[plustek] >#<
[plustek] ># NOTE: autodetection is safe, as it uses the info it got<
[plustek] ># from the USB subsystem. If you're not using the<
[plustek] ># autodetection, you MUST have attached that device<
[plustek] ># at your USB-port, that you have specified...<
[plustek] >#<
[plustek] ><
[plustek] >[usb]<
[plustek] next device uses autodetection
[plustek] ... next device
[plustek] ><
[plustek] >#<
[plustek] ># options for the previous USB entry<
[plustek] >#<
[plustek] ># switch lamp off after xxx secs, 0 disables the feature<
[plustek] ># (can also be set via frontend)<
[plustek] >option lampOff 300<
[plustek] Decoding option >lampOff<
[plustek] ><
[plustek] ># warmup period in seconds, 0 means no warmup, -1 means auto-warmup<
[plustek] ># (can also be set via frontend)<
[plustek] >option warmup -1<
[plustek] Decoding option >warmup<
[plustek] ><
[plustek] ># 0 means leave lamp-status untouched, not 0 means switch off<
[plustek] ># on sane_close<
[plustek] ># (can also be set via frontend)<
[plustek] >option lOffOnEnd 1<
[plustek] Decoding option >lOffOnEnd<
[plustek] ><
[plustek] >#<
[plustek] ># options to tweak the image start-position<
[plustek] ># (WARNING: there's no internal range check!!!)<
[plustek] >#<
[plustek] ># for the normal scan area<
[plustek] >#<
[plustek] >option posOffX 0<
[plustek] Decoding option >posOffX<
[plustek] >option posOffY 0<
[plustek] Decoding option >posOffY<
[plustek] ><
[plustek] ># for transparencies<
[plustek] >option tpaOffX 0<
[plustek] Decoding option >tpaOffX<
[plustek] >option tpaOffY 0<
[plustek] Decoding option >tpaOffY<
[plustek] ><
[plustek] ># for negatives<
[plustek] >option negOffX 0<
[plustek] Decoding option >negOffX<
[plustek] >option negOffY 0<
[plustek] Decoding option >negOffY<
[plustek] ><
[plustek] >#<
[plustek] ># for setting the calibration strip position<
[plustek] ># (WARNING: there's no internal range check!!!)<
[plustek] ># -1 means use built in<
[plustek] ># (can also be set via frontend)<
[plustek] >option posShadingY -1<
[plustek] Decoding option >posShadingY<
[plustek] >option tpaShadingY -1<
[plustek] Decoding option >tpaShadingY<
[plustek] >option negShadingY -1<
[plustek] Decoding option >negShadingY<
[plustek] ><
[plustek] >#<
[plustek] ># to invert the negatives, 0 disables the feature<
[plustek] >#<
[plustek] >option invertNegatives 0<
[plustek] Decoding option >invertNegatives<
[plustek] ><
[plustek] >#<
[plustek] ># to disable the internal sensor speedup function,<
[plustek] ># 1 disables the feature<
[plustek] >#<
[plustek] >option disableSpeedup 0<
[plustek] Decoding option >disableSpeedup<
[plustek] ><
[plustek] >#<
[plustek] ># to save/restore coarse calibration data<
[plustek] ># (can also be set via frontend)<
[plustek] >option cacheCalData 0<
[plustek] Decoding option >cacheCalData<
[plustek] ><
[plustek] >#<
[plustek] ># use alternate calibration routines<
[plustek] >#<
[plustek] >option altCalibration 0<
[plustek] Decoding option >altCalibration<
[plustek] ><
[plustek] >#<
[plustek] ># for skipping whole calibration step<
[plustek] >#<
[plustek] >option skipCalibration 0<
[plustek] Decoding option >skipCalibration<
[plustek] ><
[plustek] >#<
[plustek] ># for skipping entire fine calibration step<
[plustek] ># coarse calibration is done<
[plustek] >#<
[plustek] >option skipFine 0<
[plustek] Decoding option >skipFine<
[plustek] ><
[plustek] >#<
[plustek] ># discard the result of the fine white calibration<
[plustek] >#<
[plustek] >option skipFineWhite 0<
[plustek] Decoding option >skipFineWhite<
[plustek] ><
[plustek] ># for replacing the gain values found during coarse<
[plustek] ># calibration<
[plustek] ># (can also be set via frontend)<
[plustek] >option red_gain -1<
[plustek] Decoding option >red_gain<
[plustek] >option green_gain -1<
[plustek] Decoding option >green_gain<
[plustek] >option blue_gain -1<
[plustek] Decoding option >blue_gain<
[plustek] ><
[plustek] ># for replacing the offset values found during coarse<
[plustek] ># calibration<
[plustek] ># (can also be set via frontend)<
[plustek] >option red_offset -1<
[plustek] Decoding option >red_offset<
[plustek] >option green_offset -1<
[plustek] Decoding option >green_offset<
[plustek] >option blue_offset -1<
[plustek] Decoding option >blue_offset<
[plustek] ><
[plustek] >#<
[plustek] ># for replacing the default lampoff settings, this<
[plustek] ># works only for CIS devices like CanoScan LiDE20<
[plustek] ># (can also be set via frontend)<
[plustek] >option red_lampoff -1<
[plustek] Decoding option >red_lampoff<
[plustek] >option green_lampoff -1<
[plustek] Decoding option >green_lampoff<
[plustek] >option blue_lampoff -1<
[plustek] Decoding option >blue_lampoff<
[plustek] ><
[plustek] >#<
[plustek] ># for adjusting the default gamma values<
[plustek] ># (can also be set via frontend)<
[plustek] >option redGamma 1.0<
[plustek] Decoding option >redGamma<
[plustek] >option greenGamma 1.0<
[plustek] Decoding option >greenGamma<
[plustek] >option blueGamma 1.0<
[plustek] Decoding option >blueGamma<
[plustek] >option grayGamma 1.0<
[plustek] Decoding option >grayGamma<
[plustek] ><
[plustek] >#<
[plustek] ># to enable TPA (EPSON or UMAX, if autodetection fails)<
[plustek] ># 0 means default behaviour as specified in the internal tables<
[plustek] ># 1 means enable (needed for UMAX 3450)<
[plustek] >option enableTPA 0<
[plustek] Decoding option >enableTPA<
[plustek] ><
[plustek] >#<
[plustek] ># model override functionality, currently only available for<
[plustek] ># Mustek devices, using NSCs' vendor ID: 0x0400 and<
[plustek] ># also their product ID: 0x1000 (LM9831) 0x1001 (LM9832)<
[plustek] >#<
[plustek] ># mov/PID | 0x1000 | 0x1001<
[plustek] ># ---------------------------------------<
[plustek] ># 0 (default)| BearPaw1200 | BearPaw 2400<
[plustek] ># 1 | ignored | BearPaw 1200<
[plustek] >#<
[plustek] >option mov 0<
[plustek] Decoding option >mov<
[plustek] ><
[plustek] >#<
[plustek] ># and of course the device-name<
[plustek] >#<
[plustek] ># device /dev/usbscanner<
[plustek] >device auto<
[plustek] Decoding device name >auto<
[plustek] ><
[plustek] >#<
[plustek] ># to define a new device, start with a new section:<
[plustek] ># [usb]<
[plustek] >#<
[plustek] attach (auto, 0xbfada784, (nil))
[plustek] Device configuration:
[plustek] device name : >auto<
[plustek] USB-ID : ><
[plustek] model ovr. : 0
[plustek] warmup : -1s
[plustek] lampOff : 300
[plustek] lampOffOnEnd : yes
[plustek] cacheCalData : no
[plustek] altCalibrate : no
[plustek] skipCalibr. : no
[plustek] skipFine : no
[plustek] skipFineWhite: no
[plustek] skipDarkStrip: no
[plustek] incDarkTarget: yes
[plustek] invertNegs. : no
[plustek] dis.Speedup : no
[plustek] pos_x : 0
[plustek] pos_y : 0
[plustek] pos_shading_y: -1
[plustek] neg_x : 0
[plustek] neg_y : 0
[plustek] neg_shading_y: -1
[plustek] tpa_x : 0
[plustek] tpa_y : 0
[plustek] tpa_shading_y: -1
[plustek] red gain : -1
[plustek] green gain : -1
[plustek] blue gain : -1
[plustek] red offset : -1
[plustek] green offset : -1
[plustek] blue offset : -1
[plustek] red lampoff : -1
[plustek] green lampoff: -1
[plustek] blue lampoff : -1
[plustek] red Gamma : 1.00
[plustek] green Gamma : 1.00
[plustek] blue Gamma : 1.00
[plustek] gray Gamma : 1.00
[plustek] ---------------------
[plustek] usbDev_open(auto,) - 0x968c7e8
[plustek] Vendor ID=0x0A82, Product ID=0x6620
[plustek] usbio_DetectLM983x
[plustek] usbio_DetectLM983x: found LM9832/3
[plustek] * setting device to idle state!
[plustek] Detected vendor & product ID: 0x0A82-0x6620
[plustek] Device description for >0x0A82-0x6620< found.
[plustek] usb_initDev(45,0x0a82,-1)
[plustek] Device WAF : 0x00004382
[plustek] Transferrate: 1000000 Bytes/s
[plustek] Device Flags: 0x00000020
[plustek] Vendor adjusted to: >Syscan<
[plustek] LAMP-STATUS: 0x00000001 (on)
[plustek] RESETTING REGISTERS(-1) - 0x80
[plustek] MISC I/O after RESET: 0x0e, 0x96, 0x01
[plustek] Calibration file-names set to:
[plustek] >/root/.sane/Syscan_TravelScan_662-coarse.cal<
[plustek] >/root/.sane/Syscan_TravelScan_662-fine.cal<
[plustek] usb_SetScanParameters()
[plustek] usb_GetMCLKDivider()
[plustek] usb_GetMCLKDiv()
[plustek] * PhyBytes = 6
[plustek] * PhyLines = 3215827676
[plustek] * TotalBytes = 2115096872
[plustek] usb_SetScanParameters() done.
[plustek] usbDev_getCaps()
[plustek] Scanner information:
[plustek] Vendor : Syscan
[plustek] Model : TravelScan 662
[plustek] Flags : 0x00000000
[plustek] drvclose()
[plustek] usbDev_stopScan()
[plustek] usbDev_ScanEnd(), start=0, park=0
[plustek] usbDev_close()
[plustek] attach: model = >TravelScan 662<
[plustek] sane_get_devices (0xbfadc8d8, 0)
[plustek] sane_open - libusb:004:083
[plustek] Presetting Gamma tables (len=4096)
[plustek] * Channel[0], gamma 1.800
[plustek] * Channel[1], gamma 1.800
[plustek] * Channel[2], gamma 1.800
[plustek] * Channel[3], gamma 1.800
[plustek] ----------------------------------
[plustek] sane_start
[plustek] usbDev_open(libusb:004:083,) - (nil)
[plustek] Vendor ID=0x0A82, Product ID=0x6620
[plustek] usbio_DetectLM983x
[plustek] usbio_DetectLM983x: found LM9832/3
[plustek] Detected vendor & product ID: 0x0A82-0x6620
[plustek] Device description for >0x0A82-0x6620< found.
[plustek] usb_initDev(45,0x0a82,45)
[plustek] Device WAF : 0x00004382
[plustek] Transferrate: 1000000 Bytes/s
[plustek] Device Flags: 0x00000026
[plustek] Vendor adjusted to: >Syscan<
[plustek] LAMP-STATUS: 0x00000000 (off)
[plustek] RESETTING REGISTERS(45) - 0x80
[plustek] MISC I/O after RESET: 0x0e, 0x96, 0x01
[plustek] usbDev_getCaps()
[plustek] scanmode = 3
[plustek] usbDev_getCropInfo()
[plustek] usb_GetImageInfo()
[plustek] PPL = 202
[plustek] LPA = 150
[plustek] BPL = 606
[plustek] brightness 0, contrast 0
[plustek] usbDev_setScanEnv()
[plustek] usb_SaveImageInfo()
[plustek] * dwFlag = 0x00000400
[plustek] usb_GetImageInfo()
[plustek] * Preview Mode NOT set!
[plustek] Setting map[0] at 0x0969f8f8
[plustek] Setting map[1] at 0x096a38f8
[plustek] Setting map[2] at 0x096a78f8
[plustek] usbDev_startScan()
[plustek] LAMP-STATUS: 0x00000000 (off)
[plustek] Switching Lamp on
[plustek] usb_switchLampX(ON=1,TPA=0)
[plustek] Switch Lamp: 1, regs[0x5b] = 0x09
[plustek] Warmup-Timer started
[plustek] LAMP-STATUS: 0x00000001 (on)
[plustek] Lamp-Timer stopped
[plustek] dwflag = 0x40000400 dwBytesLine = 606
[plustek] Lines = 150
[plustek] Bytes per Line = 606
[plustek] Bitdepth = 8
[plustek] TIME START
[plustek] local_sane_start done
[plustek] reader_process started (forked)
[plustek] reader_process:starting to READ data (90900 bytes)
[plustek] buf = 0x096abf60
[plustek] usbDev_PrepareScan()
[plustek] cano_DoCalibration()
[plustek] #########################
[plustek] usb_AutoWarmup()
[plustek] - function skipped, CIS device!
[plustek] GETMCLK[13/2], using entry 6: 6.000, 600
[plustek] SETMCLK[13/2]: 6.000
[plustek] GETMCLK[13/2], using entry 0: 6.000, 50
[plustek] SETMCLK[13/2]: 6.000
[plustek] usb_ReadFineCalData()
[plustek] - Reading fine calibration data from file
[plustek] /root/.sane/Syscan_TravelScan_662-fine.cal
[plustek] File /root/.sane/Syscan_TravelScan_662-fine.cal not found
[plustek] usb_switchLampX(ON=1,TPA=0)
[plustek] Switch Lamp: 1, regs[0x5b] = 0x09
[plustek] sane_start done
[plustek] cano_DoCalibration() done
[plustek] -------------------------
[plustek] Static Gain:
[plustek] REG[0x3b] = 10
[plustek] REG[0x3c] = 10
[plustek] REG[0x3d] = 10
[plustek] Static Offset:
[plustek] REG[0x38] = 0
[plustek] REG[0x39] = 0
[plustek] REG[0x3a] = 0
[plustek] -------------------------
[plustek] calibration done.
[plustek] usb_SetScanParameters()
[plustek] usb_GetMCLKDivider()
[plustek] usb_GetMCLKDiv()
[plustek] * PhyBytes = 612
[plustek] * PhyLines = 225
[plustek] * TotalBytes = 137700
[plustek] usb_SetScanParameters() done.
[plustek] Warmup: skipped for CIS devices
[plustek] ImageProc is: ColorDuplicate8_2
[plustek] * scan->dwFlag=0x40000400
[plustek] usb_ScanBegin()
[plustek] usb_MapDownload()
[plustek] * brightness = 0 -> 0
[plustek] * contrast = 0 -> 1.000
[plustek] * downloading map 0...
[plustek] * downloading map 1...
[plustek] * downloading map 2...
[plustek] usb_MapDownload() done.
[plustek] usb_DownloadShadingData(0)
[plustek] --> BYPASS
[plustek] usb_ScanBegin() done.
[plustek] SampleY Flag set (50 != 75, wSumY=25)
[plustek] Reading the data now!
[plustek] PhyDpi.x = 50
[plustek] PhyDpi.y = 75
[plustek] UserDpi.x = 50
[plustek] UserDpi.y = 50
[plustek] NumberOfScanBufs = 428
[plustek] LinesPerScanBufs = 13696
[plustek] dwPhyBytes = 612
[plustek] dwPhyPixels = 202
[plustek] dwTotalBytes = 137700
[plustek] dwPixels = 202
[plustek] dwBytes = 606
[plustek] dwValidPixels = 202
[plustek] dwBytesScanBuf = 19584
[plustek] dwLinesDiscard = 0
[plustek] dwLinesToSkip = 1
[plustek] dwLinesUser = 150
[plustek] dwBytesLine = 606
[plustek] usb_IsDataAvailableInDRAM()
[plustek] Data is available
[plustek] reader_process: READING....
[plustek] IPC: Transferrate = 1000000 Bytes/s
[plustek] reader_process: finished reading data
[plustek] (SIG) Child is down (signal=17)
[plustek] drvclose()
[plustek] TIME END 1: 7s
[plustek] usbDev_stopScan()
[plustek] usbDev_ScanEnd(), start=1, park=1
[plustek] Lamp-Timer started (using ITIMER)
[plustek] usbDev_close()
[plustek] close_pipe (r_pipe)
[plustek] sane_cancel
[plustek] do_cancel
[plustek] TIME END 2: 8s
[plustek] sane_close
[plustek] sane_exit
[plustek] Shutdown called (dev->fd=-1, libusb:004:083)
[plustek] Waiting for scanner-ready...
[plustek] Switching lamp off...
[plustek] LAMP-STATUS: 0x00000001 (on)
[plustek] Switching Lamp off
[plustek] usb_switchLampX(ON=0,TPA=0)
[plustek] Switch Lamp: 0, regs[0x5b] = 0x01
[plustek] LAMP-STATUS: 0x00000000 (off)
[plustek] Lamp-Timer stopped
[root at localhost ~]#
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plustek-output.diff
Type: application/octet-stream
Size: 3231 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20071127/75dc4195/attachment-0001.obj
More information about the sane-devel
mailing list