[sane-devel] saned/network scanner

Alexander Pevzner pzz at apevzner.com
Mon Jan 25 07:35:51 GMT 2021


On 1/25/21 2:49 AM, Thiago Milczarek SayĆ£o wrote:

> Some observations:
> 1 - I have limited it to work with 1 Frame only. Would be nice to have 
> an API where sane manages multi-frame situations;

This is about SANE options. You can choose input source from Flatbad/ADF 
simplex/ADF duplex list. In the ADF mode, a sequence of 
sane_start/sane_read operations will scan and return all images from the 
ADF.

There is no way to scan only a single page from the ADF (i.e., once 
started, scaning will not stop, even if you will not issue next 
sane_start to obtain the next page).

I will guide you through SANE options, once we will get basic 
functionality working.

> 2 - Sane is very easy, the difficult part is to convert the received 
> bytes onto an image. Would also be nice to convert the code on 
> scanimage.c to an API call;

What do you want to get in result, image file in some standard (say 
JPEG/PNG format), or Java image object?

> Note:
> I got it working with the Ricoh driver, will try to connect with an 
> apple device and wireshark it

It would be very nice.

You also can try VueScan for Linux 
(https://www.hamrick.com/linux-scanner-software.html). VueScan may 
choose to use eSCL, and it leaves full protocol trace in the 
.vuescan/vuescan.log file.

I can't believe that eSCL implementation is totally broken on Ricoh, so 
probably I just miss some nuances. Looking to working implementation's 
trace could help.

-- 

	Wishes, Alexander Pevzner (pzz at apevzner.com)



More information about the sane-devel mailing list