<div class="gmail_quote">On Mon, Apr 9, 2012 at 8:36 PM, Brian Panneton <span dir="ltr"><<a href="mailto:brian.panneton@gmail.com">brian.panneton@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><div class="gmail_quote">On Tue, Apr 3, 2012 at 2:55 PM, Stef <span dir="ltr"><<a href="mailto:stef.dev@free.fr" target="_blank">stef.dev@free.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Le mardi 3 avril 2012 00:56:57 Brian Panneton a écrit :<br>
<div><div>> On Apr 3, 2012 12:44 AM, "Stef" <<a href="mailto:stef.dev@free.fr" target="_blank">stef.dev@free.fr</a>> wrote:<br>
> > Le mardi 3 avril 2012 00:09:55 Brian Panneton a écrit :<br>
> > > I have a Neat Receipt Mobile Scanner and was wondering if it was<br>
><br>
> supported<br>
><br>
> > > yet.<br>
> > ><br>
> > > sane-find-scanner -v<br>
> > > found USB scanner (vendor=0x1f44 [The Neat Company  ],<br>
> > > product=0x0001<br>
><br>
> [Neat<br>
><br>
> > > Mobile Scanner])<br>
> > ><br>
> > > scanimage -L<br>
> > > find no scanners<br>
> > ><br>
> > > I noticed that there were some work being done by Paul Ericson and<br>
> > > developer Stef, but the thread seemed to die last June. If anyone is<br>
> > > working on it I could possibly assist or if no one is, I may attempt<br>
> > > to<br>
> > > code support for it.<br>
> > ><br>
> > > Thanks,<br>
> > > Brian<br>
> > ><br>
> >        Hello,<br>
> ><br>
> >        I am not working on this scanner,and I don't plan to do<br>
> >        so.<br>
> ><br>
> > Regards,<br>
> ><br>
> >        Stef<br>
><br>
> Ah okay, I was referencing this thread:<br>
><br>
> <a href="http://lists.alioth.debian.org/pipermail/sane-devel/2011-June/028663.html" target="_blank">http://lists.alioth.debian.org/pipermail/sane-devel/2011-June/028663.html</a><br>
><br>
> Did anything ever come out of that?<br>
><br>
> Thanks,<br>
> Brian<br>
<br>
</div></div>        Hello,<br>
<br>
        thanks for the link. I remember now, it is a gl846 scanner. Datasheet is<br>
available, and you have code in the genesys backend (gl646 and gl841 parts) as<br>
example, some more details at:<br>
<a href="https://alioth.debian.org/tracker/?func=detail&group_id=30186&aid=312366&atid=410369" target="_blank">https://alioth.debian.org/tracker/?func=detail&group_id=30186&aid=312366&atid=410369</a><br>


<br>
<br>
Regards,<br>
        Stef<br>
</blockquote></div><br></div></div>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?<br>

<br>Let me know if more details are needed:<br><br>$ scanimage -V<br>scanimage (sane-backends) 1.0.23git; backend version 1.0.22<br><br>$ locate gl846<br>/home/brian/programs/sane-backends/backend/.deps/libgenesys_la-genesys_gl846.Plo<br>

/home/brian/programs/sane-backends/backend/.libs/libgenesys_la-genesys_gl846.o<br>/home/brian/programs/sane-backends/backend/genesys_gl846.c<br>/home/brian/programs/sane-backends/backend/genesys_gl846.h<br>/home/brian/programs/sane-backends/backend/libgenesys_la-genesys_gl846.lo<br>

<br>$ cat /etc/sane.d/genesys.conf | grep 1f44 <br>usb 0x1f44 0x0001<br><br><br>
</blockquote></div>A little more information:<br><br>When doing an strace on scanimage -L:<br><br>open("./genesys.conf", O_RDONLY)        = -1 ENOENT (No such file or directory)^M<br>open("/usr/local/etc/sane.d/genesys.conf", O_RDONLY) = 3^M<br>
fstat64(3, {st_mode=S_IFREG|0644, st_size=1809, ...}) = 0^M<br>mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb77a2000^M<br>read(3, "# genesys.conf: Configuration fi"..., 4096) = 1809^M<br>
open("/dev/bus/usb/001/003", O_RDWR)    = 4^M<br>ioctl(4, USBDEVFS_SETCONFIGURATION, 0xbfbd14a4) = 0^M<br>ioctl(4, USBDEVFS_CLAIMINTERFACE, 0xbfbd14a4) = 0^M<br>read(3, "", 4096)                       = 0^M<br>
close(3)                                = 0^M<br>munmap(0xb77a2000, 4096)                = 0^M<br>open("./genesys.conf", O_RDONLY)        = -1 ENOENT (No such file or directory)^M<br>open("/usr/local/etc/sane.d/genesys.conf", O_RDONLY) = 3^M<br>
fstat64(3, {st_mode=S_IFREG|0644, st_size=1809, ...}) = 0^M<br>mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb77a2000^M<br>read(3, "# genesys.conf: Configuration fi"..., 4096) = 1809^M<br>
read(3, "", 4096)                       = 0^M<br>close(3)                          <br><br>I'm not sure if that looks correct.<br>