On Mon, 2 Oct 2006, Ren? Kjellerup wrote:

>
> Hi everyone,
>
> The documentation on this seems to be purely reference
> for programmers who have used them before...
>
> How do one read/write to a usb device (scanner)?
> Will it return data on invalid commands, and where?
> And so on...

depends on the device. some will just lock hard and require a power cycle.
your best bet is to get it installed on windows with its native driver, 
and then use benoit's sniffusb to get a log of some simple operations. you 
will likely want to clean up those logs for readability, there are quite a 
few progs for that running around. i personally like 'spike4.pl' :)

>
> Could I see a general piece of code that I could use
> as a template?

generally you want to write a small libusb prog that is outside of sane 
first. there are a couple examples that come with libusb. let us know some 
more about the device, and we can give better pointers...

allan

>
> Best wishes
> Ren? Kjellerup
>
>
> --
> sane-devel mailing list: [email protected]
> http://lists.alioth.debian.org/mailman/listinfo/sane-devel
> Unsubscribe: Send mail with subject "unsubscribe your_password"
>             to [email protected]
>

-- 
"so don't tell us it can't be done, putting down what you don't know.
money isn't our god, integrity will free our souls" - Max Cavalera
From [email protected]  Mon Oct  2 21:23:12 2006
From: [email protected] (Jeremy Johnson)
Date: Mon Oct  2 21:22:21 2006
Subject: [sane-devel] sane and the samsung software for laser printer
        ml-2250
In-Reply-To: <[email protected]>
References: <[email protected]>
Message-ID: <[email protected]>

On Monday 02 October 2006 01:32, [email protected] wrote:
> Hi,
>
> the installation of the SAMsung printer software for
> the printer ml-2250 (FILE: 20060711101742437_UnifiedLinuxDriver.tar.gz
> from the SAMSUNG website) disables the usage of the USB scanner CANON
> LIDE 30 by non root users
>
> I'am running fc5, and before installing this SAMSUNG printer driver I
> could scan as normal user without problem. But after installing
> 0060711101742437_UnifiedLinuxDriver.tar.gz, scanning was no more possible:
>
> xsane
>
> insmod: can't read
> '/lib/modules/2.6.18/kernel/drivers/mfpportctrl/mfpport.ko': No such
> file or directory
>
> Starting xsane/scanimage as root was possible on the other hand.
>
> After uninstalling the driver, I could again start xsane without
> problems as normal user.
>
> The problem is Kernel independent: running the Vanilla kernel 2.6.18 and
> FC5 kernel both produce the same error results.


In the file /etc/sane.d/dll.conf
try commenting out the Samsung driver: smfp
which Samsung's Unified Linux Driver appends to this file.

I had this same problem. "scanimage -L"  worked but "xsane" no longer did,
because xsane loads the drivers in /etc/sane.d/dll.conf and 
Samsung does not provide smtp, although it does create device nodes
for its multi function printer.

Reply via email to