Creation of a scanner simmulator

View: New views
2 Messages — Rating Filter:   Alert me  

Creation of a scanner simmulator

by Wayne Booth :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I'm writing an application that uses sane for scanning.
As part of this application I have a test suite that exercises as much
of the program as possible.
Right now, that testing suite (in order to test the scanning parts)
requires a specific model of scanner to be plugged into the PC running
the app/test.
I am wanting to change the test-suite so that anyone (with scanning
equipped or not), will be able to test the app, including the scan
functions.

My first thought is to write a "scanner simulator" that pretends (to
the kernel) to be a real device. A 'sane back end' would then
communicate with this emulated device and the app.

Before I start such an adventure, I thought it would be a good idea to
check with sane-devel:
    1. In case, something has been done similar already. - Can anyone
point me in the right direction.
    2. if not, any ideas / suggestion / pointer, that might help in
achieving the goal.

(Needless to say, any outcome from the creation of such an emulator
will be contributed back to the sane-project, in order to help other
front-end developers.)

Cheers.

Wayne

--
sane-devel mailing list: sane-devel@...
http://lists.alioth.debian.org/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
             to sane-devel-request@...

Re: Creation of a scanner simmulator

by m. allan noah-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

take a look at the test and pnm backends

allan

On Sat, Oct 10, 2009 at 6:42 PM, Wayne Booth
<wbooth.clearscene@...> wrote:

> Hi all,
>
> I'm writing an application that uses sane for scanning.
> As part of this application I have a test suite that exercises as much
> of the program as possible.
> Right now, that testing suite (in order to test the scanning parts)
> requires a specific model of scanner to be plugged into the PC running
> the app/test.
> I am wanting to change the test-suite so that anyone (with scanning
> equipped or not), will be able to test the app, including the scan
> functions.
>
> My first thought is to write a "scanner simulator" that pretends (to
> the kernel) to be a real device. A 'sane back end' would then
> communicate with this emulated device and the app.
>
> Before I start such an adventure, I thought it would be a good idea to
> check with sane-devel:
>    1. In case, something has been done similar already. - Can anyone
> point me in the right direction.
>    2. if not, any ideas / suggestion / pointer, that might help in
> achieving the goal.
>
> (Needless to say, any outcome from the creation of such an emulator
> will be contributed back to the sane-project, in order to help other
> front-end developers.)
>
> Cheers.
>
> Wayne
>
> --
> sane-devel mailing list: sane-devel@...
> http://lists.alioth.debian.org/mailman/listinfo/sane-devel
> Unsubscribe: Send mail with subject "unsubscribe your_password"
>             to sane-devel-request@...
>



--
"The truth is an offense, but not a sin"

--
sane-devel mailing list: sane-devel@...
http://lists.alioth.debian.org/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
             to sane-devel-request@...