[sane-devel] Support for Neat Receipt Mobile Scanner

Brian Panneton brian.panneton at gmail.com
Tue Apr 10 04:05:48 UTC 2012


On Mon, Apr 9, 2012 at 8:36 PM, Brian Panneton <brian.panneton at gmail.com>wrote:

> On Tue, Apr 3, 2012 at 2:55 PM, Stef <stef.dev at free.fr> wrote:
>
>> Le mardi 3 avril 2012 00:56:57 Brian Panneton a écrit :
>> > On Apr 3, 2012 12:44 AM, "Stef" <stef.dev at free.fr> wrote:
>> > > Le mardi 3 avril 2012 00:09:55 Brian Panneton a écrit :
>> > > > I have a Neat Receipt Mobile Scanner and was wondering if it was
>> >
>> > supported
>> >
>> > > > yet.
>> > > >
>> > > > sane-find-scanner -v
>> > > > found USB scanner (vendor=0x1f44 [The Neat Company  ],
>> > > > product=0x0001
>> >
>> > [Neat
>> >
>> > > > Mobile Scanner])
>> > > >
>> > > > scanimage -L
>> > > > find no scanners
>> > > >
>> > > > I noticed that there were some work being done by Paul Ericson and
>> > > > developer Stef, but the thread seemed to die last June. If anyone is
>> > > > working on it I could possibly assist or if no one is, I may attempt
>> > > > to
>> > > > code support for it.
>> > > >
>> > > > Thanks,
>> > > > Brian
>> > > >
>> > >        Hello,
>> > >
>> > >        I am not working on this scanner,and I don't plan to do
>> > >        so.
>> > >
>> > > Regards,
>> > >
>> > >        Stef
>> >
>> > Ah okay, I was referencing this thread:
>> >
>> >
>> http://lists.alioth.debian.org/pipermail/sane-devel/2011-June/028663.html
>> >
>> > Did anything ever come out of that?
>> >
>> > Thanks,
>> > Brian
>>
>>         Hello,
>>
>>        thanks for the link. I remember now, it is a gl846 scanner.
>> Datasheet is
>> available, and you have code in the genesys backend (gl646 and gl841
>> parts) as
>> example, some more details at:
>>
>> https://alioth.debian.org/tracker/?func=detail&group_id=30186&aid=312366&atid=410369
>>
>>
>> Regards,
>>        Stef
>>
>
> I'm having trouble making the sane backend find the gl846. I came up with
> some code and wanted to test it. It is built into the genesys backend. I
> added my vender/product into /etc/sane.d/genesys.conf. I assumed that
> scanimage -L would show the scanner. What all do I need to do to have the
> scanner found?
>
> Let me know if more details are needed:
>
> $ scanimage -V
> scanimage (sane-backends) 1.0.23git; backend version 1.0.22
>
> $ locate gl846
>
> /home/brian/programs/sane-backends/backend/.deps/libgenesys_la-genesys_gl846.Plo
>
> /home/brian/programs/sane-backends/backend/.libs/libgenesys_la-genesys_gl846.o
> /home/brian/programs/sane-backends/backend/genesys_gl846.c
> /home/brian/programs/sane-backends/backend/genesys_gl846.h
> /home/brian/programs/sane-backends/backend/libgenesys_la-genesys_gl846.lo
>
> $ cat /etc/sane.d/genesys.conf | grep 1f44
> usb 0x1f44 0x0001
>
>
> A little more information:

When doing an strace on scanimage -L:

open("./genesys.conf", O_RDONLY)        = -1 ENOENT (No such file or
directory)^M
open("/usr/local/etc/sane.d/genesys.conf", O_RDONLY) = 3^M
fstat64(3, {st_mode=S_IFREG|0644, st_size=1809, ...}) = 0^M
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb77a2000^M
read(3, "# genesys.conf: Configuration fi"..., 4096) = 1809^M
open("/dev/bus/usb/001/003", O_RDWR)    = 4^M
ioctl(4, USBDEVFS_SETCONFIGURATION, 0xbfbd14a4) = 0^M
ioctl(4, USBDEVFS_CLAIMINTERFACE, 0xbfbd14a4) = 0^M
read(3, "", 4096)                       = 0^M
close(3)                                = 0^M
munmap(0xb77a2000, 4096)                = 0^M
open("./genesys.conf", O_RDONLY)        = -1 ENOENT (No such file or
directory)^M
open("/usr/local/etc/sane.d/genesys.conf", O_RDONLY) = 3^M
fstat64(3, {st_mode=S_IFREG|0644, st_size=1809, ...}) = 0^M
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb77a2000^M
read(3, "# genesys.conf: Configuration fi"..., 4096) = 1809^M
read(3, "", 4096)                       = 0^M
close(3)

I'm not sure if that looks correct.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20120410/48a0371c/attachment.html>


More information about the sane-devel mailing list