[sane-devel] (no subject)

2013-04-12 Thread 耿明霞
Hi  

I am a software engineer. I am not very familiar with SANE. I have download
sane-backends-git20130408, and I found many scanners in backend folder. What
should I do if I want my scanner to support SANE.

 

Thanks, looking forward to your reply.

 

Mingxia

 

-- next part --
An HTML attachment was scrubbed...
URL: 
http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20130412/4c7dab6e/attachment-0001.html


[sane-devel] HP N6350

2013-04-12 Thread Stef
On 11/04/2013 21:53, Wouter Verhelst wrote:
 Hi folks,

 As I blogged recently[1], I own an HP ScanJet N6350 that TTBOMK does not
 work with SANE, and of which the Windows software is just crap.

 I'd like to see if I can reverse engineer the protocol (USB and/or
 network). This should at the very least be possible, as I'm already
 running Windows inside a VM; so it should just be a matter of using
 wireshark on the USB and/or network interface.

 Now I do think I have a general idea of how to reverse engineer a
 protocol, but I've never actually done anything of the sort before. Is
 there something I should pay specific attention to when doing this sort
 of thing?

 Additionally, once I've figured out the protocol (or have gathered
 enough data), is there somewhere I could send it? I don't think I have
 the understanding of the SANE internals to do write the driver myself...

 [1] http://grep.be/blog/en/computer/hardware/dear_hp
 Hello,

 what does sane-find-scanner reports (when run as root) for your 
scanner ? The N6310 is reported to be genesys logic based, and it seems 
close to your model.

Regards,
 Stef



[sane-devel] (no subject)

2013-04-12 Thread Stef
On 12/04/2013 04:23, ??? wrote:

 Hi

 I am a software engineer. I am not very familiar with SANE. I have 
 download sane-backends-git20130408, and I found many scanners in 
 backend folder. What should I do if I want my scanner to support SANE.

 Thanks, looking forward to your reply.

 Mingxia



 Hello,

 you can start by reading doc/backend-writing.txt .

 Will it be an open-source backend ?

Regards,
 Stef
-- next part --
An HTML attachment was scrubbed...
URL: 
http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20130412/559ba068/attachment.html


[sane-devel] Canoscan LiDE 30 getting stuck on usbio_DetectLM983x

2013-04-12 Thread Gerhard Jäger
Hi,

On Thursday 11 April 2013 12:20:27 Serge Klink wrote:
[...]
 I've got a Canoscan LiDE 30 here that just won't play nicely with SANE...
 
 This is what happens when plugging it in and trying scanimage -L:
 
 http://pastebin.com/PnaGaJU1
 
 ...
 [plustek] usbDev_open(auto,) - 0x10dc7b0
 [plustek] Vendor ID=0x04A9, Product ID=0x220E
 [plustek] usbio_DetectLM983x
 
 (after waiting for a while)
 
 [plustek]  * could not read version register!
 [plustek] open failed: -1
 [plustek] sane_get_devices (0x7fff275a03c8, 0)

hmmm, doesn't look good. We have some similar issues reported here:
https://alioth.debian.org/tracker/index.php?func=detailaid=314021group_id=30186atid=410366

In that case a HP2200.

 Now, if I plug it in, start VirtualBox/WinXP, let it take
 over/initialize the scanner, THEN repeat:
[...]

Could you be more precise. Do you simply start the VirtualBox, or do
you start also inside the CanoScan device driver or similar?

- Gerhard



[sane-devel] SANE backend for Canon PIXMA MG8250

2013-04-12 Thread Rolf Bensch
Hi Volker,

If you want to read the program and backend version use: 'scanimage -V'.

You can do a test scan with 'scanimage  test.pnm'.

But it's easier to use a graphic frontend like xsane.

If your scanner still won't work, I need a log file from scanning a
small area of approx. 5mm x 5mm @ 75dpi with: 'SANE_DEBUG_PIXMA=11
scanimage -x 5 -y5 2 pixma.log  test.pnm'.

Cheers,
Rolf



Am 11.04.2013 18:58, schrieb Volker Lenhardt:
 Hi, I'm new here. My work environment is openSUSE 12.3, KDE 4.10,
 sane-backends 1.0.23.

 It happens that there is a SANE driver for my new printer-scanner
 Canon PIXMA MG8250:

 /usr/share/sane/descriptions/pixma.desc:
 model PIXMA MG8200 Series
 :interface USB
 :usbid 0x04a9 0x1756
 :status :untested
 :comment Testers needed!

 But it doesn't work. Test output from Yast:

 Fehler
 Test mit 'scanimage -d pixma:04A91756_20D0DE -v' ist fehlgeschlagen.
 Ergebnis:
 scanimage: scanning image of size 638x877 pixels at 24 bits/pixel
 scanimage: acquiring RGB frame
 scanimage: min/max graylevel value = 34/242
 scanimage: sane_read: Error during device I/O

 I have no idea how a scanner works and how a driver communicates with
 it. But if I can be of any help, though, I'm ready to do my best
 testing my scanner hoping to get it to work somehow.

 What can I do?

 Greetings
 Volker






[sane-devel] Ubuntu PPA for SANE daily git snapshots

2013-04-12 Thread Rolf Bensch
Hi List,

Recently I created an Ubuntu PPA for SANE daily git snapshots at
Launchpad: https://launchpad.net/~rolfbensch/+archive/sane-git.

I'm running a daily script to update the PPA.

You can add this PPA on your Ubuntu system with: 'sudo
add-apt-repository ppa:rolfbensch/sane-git**'.

Cheers,
Rolf
-- next part --
An HTML attachment was scrubbed...
URL: 
http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20130412/25a06bb5/attachment.html


[sane-devel] Canoscan LiDE 30 getting stuck on usbio_DetectLM983x

2013-04-12 Thread Serge Klink
On 2013-04-12 17:41, Gerhard J?ger wrote:

[..]

 Now, if I plug it in, start VirtualBox/WinXP, let it take
 over/initialize the scanner, THEN repeat:
 [...]
 
 Could you be more precise. Do you simply start the VirtualBox, or do
 you start also inside the CanoScan device driver or similar?

Hi,

It's a 32-bit WinXP virtual machine with Canon's drivers installed
inside, running on a 64-bit Linux (Debian Wheezy) host.

The procedure is:

1. Plug in the scanner (physically).
(Scanner is recognized by the host Linux kernel. No external signs of
life - lamp does not turn on, motor does not move, etc.)

2. Run scanimage -L (on the host).
(Still no signs of life, error on usbio_DetectLM983x)

3. Start VBox, boot up the virtual machine normally.

4. Connect the scanner to the virtual machine (from Virtualbox's menu).
(Scanner starts moving, calibrating (?) itself, etc.)

5. Disconnect the scanner from the virtual machine (but leave it
connected physically to the host), power the VM down.

6. Run scanimage -L again (on the host).
(Finds the scanner quickly, no errors.)

Also tried installing 32-bit libsane and sane-utils (1.0.22 from the
i386 repo) - no difference.  Haven't tried it with a full 32-bit
system yet.



[sane-devel] scanbd on Raspberry Pi Connection Failed system_bus_socket

2013-04-12 Thread deigerwutz
Dear all

In the meanwhile I removed and installed scanbd once again.

But now I get an Iteration on dbus call error.

If scanbd runs from command line with option f it works perfect but not
with auto start.
If scanbd ist started via rc$.d the Iteration on dbus call occurs.

echo $SANE_CONFIG_DIR results in an empty line.

The error leaves an entry every second in the syslog file.

What can be the reason, please help.

Here ist the syslog from boot:

Apr 12 15:49:39 raspberrypi scanbd: /usr/local/bin/scanbd: debug on: level:
7
Apr 12 15:49:39 raspberrypi scanbd: /usr/local/bin/scanbd: daemonize
Apr 12 15:49:39 raspberrypi scanbd: /usr/local/bin/scanbd: dropping privs to
uid saned
Apr 12 15:49:39 raspberrypi scanbd: /usr/local/bin/scanbd: dropping privs to
gid lp
Apr 12 15:49:39 raspberrypi scanbd: /usr/local/bin/scanbd: drop privileges
to gid: 7
Apr 12 15:49:39 raspberrypi scanbd: /usr/local/bin/scanbd: Running as
effective gid 7
Apr 12 15:49:39 raspberrypi scanbd: /usr/local/bin/scanbd: drop privileges
to uid: 107
Apr 12 15:49:39 raspberrypi scanbd: /usr/local/bin/scanbd: Running as
effective uid 107
Apr 12 15:49:39 raspberrypi scanbd: /usr/local/bin/scanbd: dbus_init
Apr 12 15:49:39 raspberrypi scanbd: /usr/local/bin/scanbd: dbus match
type='signal',interface='org.freedesktop.Hal.Manager'
Apr 12 15:49:39 raspberrypi scanbd: /usr/local/bin/scanbd: sane version 1.0
Apr 12 15:49:39 raspberrypi scanbd: /usr/local/bin/scanbd: Scanning for
local-only devices
Apr 12 15:49:39 raspberrypi scanbd: /usr/local/bin/scanbd:
start_sane_threads
Apr 12 15:49:39 raspberrypi scanbd: /usr/local/bin/scanbd: start dbus thread
Apr 12 15:49:39 raspberrypi scanbd: /usr/local/bin/scanbd: timeout: 500 ms
Apr 12 15:49:39 raspberrypi scanbd: /usr/local/bin/scanbd: Iteration on dbus
call
Apr 12 15:49:40 raspberrypi scanbd: /usr/local/bin/scanbd: Iteration on dbus
call
Apr 12 15:49:40 raspberrypi xinetd[1443]: Reading included configuration
file: /etc/xinetd.d/chargen [file=/etc/xinetd.conf] [line=14]
Apr 12 15:49:40 raspberrypi xinetd[1443]: Reading included configuration
file: /etc/xinetd.d/daytime [file=/etc/xinetd.d/daytime] [line=28]
Apr 12 15:49:40 raspberrypi xinetd[1443]: Reading included configuration
file: /etc/xinetd.d/discard [file=/etc/xinetd.d/discard] [line=26]
Apr 12 15:49:40 raspberrypi xinetd[1443]: Reading included configuration
file: /etc/xinetd.d/echo [file=/etc/xinetd.d/echo] [line=25]
Apr 12 15:49:40 raspberrypi xinetd[1443]: Reading included configuration
file: /etc/xinetd.d/sane-port [file=/etc/xinetd.d/sane-port] [line=26]
Apr 12 15:49:40 raspberrypi xinetd[1443]: Reading included configuration
file: /etc/xinetd.d/time [file=/etc/xinetd.d/time] [line=12]
 



--
View this message in context: 
http://sane.10972.n7.nabble.com/scanbd-on-Raspberry-Pi-Connection-Failed-system-bus-socket-tp17350p17471.html
Sent from the SANE - Dev mailing list archive at Nabble.com.



[sane-devel] SANE backend for Canon PIXMA MG8250

2013-04-12 Thread Volker Lenhardt
Hi Rolf,

first of all, will the testing procedure be a matter of interest for 
this mailing list or should it be a dialogue between the two of us?

I'll do it both ways for a start. I report my testing steps here and 
send you the files in question by private email.

I forgot to mention: my OS is 64 Bit openSUSE 12.3. And I have installed 
scangearmp, the scanner program from the Canon website. I can scan with 
it, but the one and only possible scan target is save to a file, though 
there are three targets to choose from, print, display, and OCR (all of 
which I cannot find a way to configure).

Am 12.04.2013 11:07, schrieb Rolf Bensch:

 If you want to read the program and backend version use: 'scanimage -V'.

-- scanimage (sane-backends) 1.0.23; backend version 1.0.23

 You can do a test scan with 'scanimage  test.pnm'.

Scanner scans, scanimage hangs for a long time, then:
-- scanimage: sane_read: Error during device I/O:

After that I call scangearmp and start a preview:
-- Scanner doesn't respond, scangearmp hangs.

At this point I have to turn the device off and on to get scangearmp to 
work correctly again.

 But it's easier to use a graphic frontend like xsane.

With preview in xsane the scanner scans about one third of a page, then 
xsane gives an error message:
Fehler beim Lesen: Fehler w?hrend Ger?te I/O (Error during device I/O).

But the scanner doesn't hang. Scangearmp can make a preview.

 If your scanner still won't work, I need a log file from scanning a
 small area of approx. 5mm x 5mm @ 75dpi with: 'SANE_DEBUG_PIXMA=11
 scanimage -x 5 -y5 2 pixma.log  test.pnm'.

SANE_DEBUG_PIXMA=11  scanimage -x 5 -y5 2 pixma.log  test1.pnm
-- Exits after a long time with no message.

The files pixma.log, test.pnm and test1.pnm are attached to the private 
email.


 Am 11.04.2013 18:58, schrieb Volker Lenhardt:
 Hi, I'm new here. My work environment is openSUSE 12.3, KDE 4.10,
 sane-backends 1.0.23.

 It happens that there is a SANE driver for my new printer-scanner
 Canon PIXMA MG8250:

 /usr/share/sane/descriptions/pixma.desc:
 model PIXMA MG8200 Series
 :interface USB
 :usbid 0x04a9 0x1756
 :status :untested
 :comment Testers needed!

 But it doesn't work. Test output from Yast:

 Fehler
 Test mit 'scanimage -d pixma:04A91756_20D0DE -v' ist fehlgeschlagen.
 Ergebnis:
 scanimage: scanning image of size 638x877 pixels at 24 bits/pixel
 scanimage: acquiring RGB frame
 scanimage: min/max graylevel value = 34/242
 scanimage: sane_read: Error during device I/O


Greetings
Volker



[sane-devel] can't build usb support

2013-04-12 Thread m. allan noah
sounds like you need something like libusb-devel-0_1-4-0.1.12-141.1.x86_64

allan


On Thu, Apr 11, 2013 at 6:59 PM, Donald Harter harterc2 at att.net wrote:

 checking usb.h usability... yes
 checking usb.h presence... yes
 checking for usb.h... yes
 checking for usb_interrupt_read in -lusb... no
 checking lusb0_usb.h usability... no
 checking lusb0_usb.h presence... no
 checking for lusb0_usb.h... no

  The following preload backends will be built:

 *** Warning: sane-backends will be built without libusb support. There may
 *** be valid reasons to do so, e.g. if you don't use USB scanners or on
 *** platforms without libusb support but generally this means that you
 *** can't use USB devices with SANE. The most probable cause is that
 *** libusb is not installed at all or is too old.

 I am using suse 12.2 and have these installed.
 rpm -qa | grep libusb
 libusbredirparser0-0.4.3-2.1.**2.x86_64
 libusb-1_0-0-32bit-1.0.9-3.1.**2.x86_64
 libusb-devel-0.1.12-141.1.x86_**64
 libusb-1_0-0-1.0.9-6.1.x86_64
 libusbmuxd1-1.0.7-3.5.1.x86_64
 libusb-0_1-4-0.1.12-141.1.x86_**64
 libusbpp-0_1-4-0.1.12-141.1.**x86_64
 libusb-1_0-devel-1.0.9-6.1.**x86_64
 libusb-1_0-devel-32bit-1.0.9-**3.1.2.x86_64
 libusbmuxd2-1.0.8-2.1.2.x86_64
 libusbredirhost1-0.4.3-2.1.2.**x86_64

 So what version of libusb do I need to get backend to compile?
 I am building the package, because I have been using xsane and any pdf
 files or pnm files display OK in the viewer but external file viewers show
 bad results.(the files are corrupted somehow; 16/8 bit issue?)

 --
 sane-devel mailing list: sane-devel at lists.alioth.**debian.orgsane-devel 
 at lists.alioth.debian.org
 http://lists.alioth.debian.**org/cgi-bin/mailman/listinfo/**sane-develhttp://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
 Unsubscribe: Send mail with subject unsubscribe your_password
 to sane-devel-request at 
 lists.**alioth.debian.orgsane-devel-request at lists.alioth.debian.org




-- 
The truth is an offense, but not a sin
-- next part --
An HTML attachment was scrubbed...
URL: 
http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20130412/98cf1558/attachment.html


[sane-devel] Canon ImageClass MF3010

2013-04-12 Thread Nathan Stewart
I have a Canon ImageClass MF3010 (all in one laser/scanner), trying to get
the scanner portion working. I believe it's supposed to be supported under
the pixma backend. It wasn't detected at all with sane-backend 1.0.23, once
I added the product id to udev rules, sane-find-scanner will detect it, but
scanimage -L does not.

dmesg
[ 8764.657596] usb 1-3: new high-speed USB device number 10 using ehci_hcd
[ 8764.813796] usb 1-3: New USB device found, idVendor=04a9, idProduct=2759
[ 8764.813810] usb 1-3: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[ 8764.813819] usb 1-3: Product: MF3010
[ 8764.813826] usb 1-3: Manufacturer: Canon Inc
[ 8764.813831] usb 1-3: SerialNumber: 112130031CCB
[ 8764.822501] usblp 1-3:1.1: usblp1: USB Bidirectional printer dev 10 if 1
alt 0 proto 2 vid 0x04A9 pid 0x2759

sane-find-scanner
found USB scanner (vendor=0x04a9 [Canon Inc], product=0x2759 [MF3010]) at
libusb:001:010
found USB scanner (vendor=0x0403, product=0x6001) at libusb:001:007

but still no joy. Does anyone have any info on this scanner?
-- next part --
An HTML attachment was scrubbed...
URL: 
http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20130412/fd7bc4be/attachment.html