[sane-devel] Re: sane-gphoto2 problems with CanonPowerShote A10 and net.conf

jim.george@blueyonder.co.uk jim.george@blueyonder.co.uk
Thu, 17 Jan 2002 16:33:34 +0000 (GMT)


On Thu, 17 Jan 2002, Peter Fales wrote:

> On Thu, Jan 17, 2002 at 03:45:33PM +0000, Jim George wrote:
> > BTW gphoto2.conf shows a parameter for topfolder=DCIM.  Canon do not support
> > the concept of folders (at least for the PowerShot A10).  Will this be an issue?
> >
> > > > 	If I don't have the camera turned on I get errors reported
> > > > 		[gphoto2] ERROR: Bad parameters
>
> The lack of folders could be the reason for the "Bad Parameters."  How does
> the camera appear to gphoto2 (the command line program)?  Does it look like
> all the files are in the / directory?  Currently, the SANE backend looks
> for files in the directory ${TOPFOLDER}/*/ (e.g on my camera, topfolder is
> /DCIM, so looks for files like /DCIM/100DC240/*.jpg)
>
> In your case, topfolder should probably be "/" and I'll need to add another
> option to the SANE backend to tell it to look directly in topfolder for
> files, rather than searching for directories.
>
That's it exactly under gphoto2 it looks like "/" no other folder options.

Should I change gphoto2.conf to be topfolder=/ ?


> > > The SANE backend is doing something that the gphoto2 API doesn't like.  Can
> > > you try turning on debug (export GP_DEBUG=3 and/or SANE_DEBUG_GPHOTO2=127)
> > > and see if it provides any clues.
> > >
> > I'll do this tonight.
> >
>
> > I'll definitely check these out..at the moment I'm using 'sudo gphoto2' to get around
> > it.  Part of my reasoning for wanting to use sane was that I wou'dn't have to run
> > as root.
>
> SANE uses the same libraries that the command line gphoto2 uses.  So it is
> probably not going to be able to do anything that gphoto2 can't do.  If
> gphoto2 needs root, then SANE will need root also.  (But like I said, I'm
> able to run both gphoto2 and scanimage/xscanimage as a user.)
>
Yeah I realised that the use of sane was to get around the permissions problem
with USB devices, but your options look promising as well.  The other reasoning
behind sane was that my wife/daughter could access the scanner and camera through
a single interface (sanetwain for windows).

Jim
> Pete
> _______________________________________________
> Sane-devel mailing list
> Sane-devel@www.mostang.com
> http://www.mostang.com/mailman/listinfo/sane-devel
>