Login

logo6


Sanity & BeSane Download

Thumbnails:

Description:

BeSANE is the BeOS port of SANE , a scanners access library for Linux/Unix. There is today no BeOS graphical frontend to use this technology, only scanimage, a command line tool that let's you use BeSANE supported scanners.

Sanity is a project name for such a BeSANE graphical frontend, and it currently works under Haiku.

v0.5
ALPHA: let you select from a detected devices list, launch a scan session basic settings of scanner options (curves are not supported yet, alas), view the result image and save image as file, via your favorite translator.

For Sanity to work, you must install before BeSANE. Be warned, this package will only maybe work with old scanners pre-2002, see the below HCL.

Take this HCL as is: it's an outdated incomplete HCL page I wrote circa my SANE 1.0.5 port. I can't be held responsible for nothing if your scanner don't works or starts to fire sparks when trying this old SANE port!

Hardware compatibility list:


Drivers: artec as6e avision bh canon coolscan dc210 dc240 dc25 dmc epson hp hp4200 lhii m3091 m3096g microtek microtek2 mustek mustek_pp nec net pie pint plustek pnm ricoh s9036 sharp sm3600 snapscan sp15c st400 tamarack umaxumax1212u umax_pp
Legend:
unsupported driver don't support this model, sorry.
untested driver should support this model, but nobody report about yet.
tested driver tested, but there's issue(s) with this model (see comment)
works driver is reported to works with this model.
Driver Model Interface Status Comment
artec
v0.5.16
stable
Artec Ultima A6000C PLUS scsi tested f/w <= v1.92 alpha, f/w >= v1.93 OK
Artec Ultima AT3
BlackWidow BW4800SP
Artec Ultima A6000C
Artec Ultima AT6
Artec Ultima AT12
Artec Ultima AM12S
Plustek OpticPro 19200S
scsi untested All mode working
Artec parallel models parallel unsupported AS6E model is supported by as6e driver
Artec USB models usb unsupported
as6e
v0.4.2
alpha
Artec Ultima AS6E parallel unsupported
avision
v0.2.1
beta
Avision AV 6240
Avision AV 630 CS
Avision AV 620 CS
scsi unsupported Under development
bh
v1.0-4
NEW!
Bell & Howell CopiScan II 6338
Bell & Howell CopiScan II 2135
Bell & Howell CopiScan II 2137(A)
Bell & Howell CopiScan II 2138A
Bell & Howell CopiScan II 3238
Bell & Howell CopiScan II 3338(A)
scsi untested
canon
v0.1
alpha
Canon CanoScan 300
Canon CanoScan 600
Canon CanoScan 2700F
scsi untested
Canon USB scanners usb unsupported
coolscan
v0.4.3
alpha
Nikon CoolScan LS-20 scsi works
Nikon CoolScan LS-30
Nikon CoolScan III ED
Nikon CoolScan LS-1000
Nikon CoolScan LS-2000
scsi untested
Nikon CoolScan LS-40
Nikon Coolscan IV ED
usb unsupported
dc210
v0.0
alpha
Kodak DC210 serial unsupported Check Exposure! for BeOS, a far better, native tool.
dc240
v0.0
NEW!
Kodak DC240 serial unsupported Check Exposure! for BeOS, a far better, native tool.
dc25
v1.2
beta
Kodak DC20
Kodak DC25
serial unsupported Check Exposure! for BeOS, a far better, native tool.
dll
v1.0.5
beta
Dynamic loading of shared-library backends works Builtin in BeOS libsane.so
dmc
v1.0
stable
Polaroid DMC scsi untested
epson
v0.2.08
stable
Epson GT-7000
Epson Perfection 636S
Epson Perfection 1200S
Espon Expression 800
scsi works
Epson Perfection 636U
Epson Perfection 610U
Epson Perfection 1200U
usb works
Epson GT-5000
Epson Actionscanner II
Epson ES-300C
Epson GT-6500
Epson ES-600C
Epson GT-9000
Epson ES-1200C
parallel untested
Epson GT-5500
Epson GT-8000
Epson ES-8500
Epson GT-9500
Epson Perfection 636
Epson Perfection 1240
Epson Perfection 1640
Epson Expression 1600
Epson Expression 1680
Epson FilmScan 200
scsi untested
Epson Perfection 640U
Epson Perfection 1200 Photo
Epson Perfection 1240
Epson Perfection 1640
Epson Expression 1600
Epson Expression 1680
usb untested
Epson Perfection 1250 usb unsupported New commands protocol
Epson Expression 1600
Epson Expression 1680
ieee1394 unsupported
hp
v0.94
beta
HP ScanJet Plus proprietary unsupported Need a driver for HP specific parallel interface, not ported under BeOS
HP ScanJet 5100C
HP ScanJet 5200C
HP OfficeJet Pro 1150C
HP OfficeJet Pro 1170C
HP OfficeJet Pro 1175C
HP OfficeJet R series
HP PSC 500
HP OfficeJet G series
HP OfficeJet K series
parallel unsupported
HP ScanJet IIc
HP ScanJet IIp
HP ScanJet IIcx
HP ScanJet 3c
HP ScanJet 3p
HP ScanJet 4c
HP ScanJet 4p
HP ScanJet 5p
HP ScanJet 6100C
HP ScanJet 6200C
HP ScanJet 6250C
HP ScanJet 6250C
HP ScanJet 6300C
HP ScanJet 6350C
HP ScanJet 6390C
HP PhotoSmart PhotoScanner
scsi unsupported
HP ScanJet 4100C
HP ScanJet 5200C
HP ScanJet 6200C
HP ScanJet 6250C
HP ScanJet 6250C
HP ScanJet 6300C
HP ScanJet 6350C
HP ScanJet 6390C
HP OfficeJet G series
HP OfficeJet K series
HP OfficeJet V series
HP PSC 700
usb unsupported
net
v1.0.5
beta
Network access to saned served scanners unsupported Not yet ported to BeOS
pnm
v1.0.1
beta
Reads PNM files works Used for debugging frontends
snapscan
v1.2
alpha
Agfa SnapScan 300
Acer 300f
Agfa SnapScan 310
Vuego 310s
Acer 310s
Guillemot MaxiScan A4 Deluxe
Agfa SnapScan 600
Acer 610s
Acer 610plus
Acer Prisa 620s
Agfa SnapScan 1236s
scsi unsupported Under developpment
Acer Prisa 620u
Acer Prisa 640u
Acer Prisa 640bu
Agfa SnapScan 1212u
Agfa SnapScan e40
Agfa SnapScan e50
usb unsupported Under developpment

 

 

Submitted On:
14 Jun 2010
Submitted By:
Karl vom Dorff (karl)
Submitted On:
14 Jun 2010
File Size:
4,057.60 Kb
Downloads:
105
File Version:
0.1
File Author:
Philippe Houdoin
File HomePage:
Click to visit site
Rating:
Total Votes:1

Comments  

 
+2 # RE: Sanity & BeSanekarl 2010-06-14 07:19
I was talking with Philippe, he was very encouraged to see the results of this still working under Haiku, and he might even open a new scanner project at OSDrawer and ask Oliver for help :-)

I asked for permission to post the files here.
 
 
+1 # RE: Sanity & BeSaneMeanwhile 2010-06-14 07:25
Awesome good news! :-)
 
 
+1 # UMAX 1220Uandrewzx1 2010-06-14 07:40
I installed Sanity to /boot/apps/Sanity, then installed BeSane to /boot/apps/BeSane. I copied LibSane.so to /boot/home/config/lib. I power up the scanner and plug USB into my Haiku box. Then I run Sanity. GUI comes up but no scanner is listed.

When I do a listdev I don't see the scanner or any USB devices. Does this indicate that the scanner is not connected?
 
 
+1 # RE: UMAX 1220Ukarl 2010-06-14 07:53
please read the HCL above (you'll see UMAX 1220U isn't in the list of supported devices)... it supports only a very limited number of devices...

No Scanners later than 2002 will work either.

I added the ones which are most likely to work here:

http://haikuware.com/hardware/scanners
 
 
+2 # RE: UMAX 1220Uphoudoin 2010-06-14 09:36
Your scanner device won't appear in listdev output, but should in listusb.
If it doesn't, it means something goes wrong with USB stack (then a tail -f /var/log/syslog could show some USB stack errors. If yes, please report them to Haiku bug tracker)

If your USB device shows up in listusb output, then the next guilty one is this outdated stupid and hardcoded usb_scanner, which can recognized as scanner device only those below:


usb_support_descriptor usb_scanners[] =
{
/* Acer */
{ 0, 0, 0, 0x04a5, 0x2060 },/* Prisa Acerscan 620U & 640U (!)*/
{ 0, 0, 0, 0x04a5, 0x2040 },/* Prisa AcerScan 620U (!) */
{ 0, 0, 0, 0x04a5, 0x2022 },/* Vuego Scan Brisa 340U */
/* Agfa */
{ 0, 0, 0, 0x06bd, 0x0001 },/* SnapScan 1212U V1 */
{ 0, 0, 0, 0x06bd, 0x0002 },/* SnapScan 1236U */
{ 0, 0, 0, 0x06bd, 0x2061 },/* SnapScan 1212U ! (V2) */
{ 0, 0, 0, 0x06bd, 0x0100 },/* SnapScan Touch */
/* Colorado -- See Primax/Colorado below */
/* Epson -- See Seiko/Epson below */
/* Genius */
{ 0, 0, 0, 0x0458, 0x2001 },/* ColorPage-Vivid Pro */
/* Hewlett Packard */
{ 0, 0, 0, 0x03f0, 0x0205 },/* 3300C */
{ 0, 0, 0, 0x03f0, 0x0101 },/* 4100C */
{ 0, 0, 0, 0x03f0, 0x0105 },/* 4200C */
{ 0, 0, 0, 0x03f0, 0x0102 },/* PhotoSmart S20 */
{ 0, 0, 0, 0x03f0, 0x0401 },/* 5200C */
{ 0, 0, 0, 0x03f0, 0x0701 },/* 5300C */
{ 0, 0, 0, 0x03f0, 0x0201 },/* 6200C */
{ 0, 0, 0, 0x03f0, 0x0601 },/* 6300C */
/* iVina */
{ 0, 0, 0, 0x0638, 0x0268 }, /* 1200U */
/* Microtek */
{ 0, 0, 0, 0x05da, 0x0099 },/* ScanMaker X6 - X6U */
{ 0, 0, 0, 0x05da, 0x0094 },/* Phantom 336CX - C3 */
{ 0, 0, 0, 0x05da, 0x00a0 },/* Phantom 336CX - C3 #2 */
{ 0, 0, 0, 0x05da, 0x009a },/* Phantom C6 */
{ 0, 0, 0, 0x05da, 0x00a3 },/* ScanMaker V6USL */
{ 0, 0, 0, 0x05da, 0x80a3 },/* ScanMaker V6USL #2 */
{ 0, 0, 0, 0x05da, 0x80ac },/* ScanMaker V6UL - SpicyU */
/* Mustek */
{ 0, 0, 0, 0x055f, 0x0001 },/* 1200 CU */
{ 0, 0, 0, 0x0400, 0x1000 },/* BearPaw 1200 */
{ 0, 0, 0, 0x055f, 0x0002 },/* 600 CU */
{ 0, 0, 0, 0x055f, 0x0003 },/* 1200 USB */
{ 0, 0, 0, 0x055f, 0x0006 },/* 1200 UB */
{ 0, 0, 0, 0x0400, 0x1001 }, /* BearPaw 2400 */
{ 0, 0, 0, 0x055f, 0x0008 }, /* 1200 CU Plus */
{ 0, 0, 0, 0x0ff5, 0x0010 }, /* BearPaw 1200F */
/* Primax/Colorado */
{ 0, 0, 0, 0x0461, 0x0300 },/* G2-300 #1 */
{ 0, 0, 0, 0x0461, 0x0380 },/* G2-600 #1 */
{ 0, 0, 0, 0x0461, 0x0301 },/* G2E-300 #1 */
{ 0, 0, 0, 0x0461, 0x0381 },/* ReadyScan 636i */
{ 0, 0, 0, 0x0461, 0x0302 },/* G2-300 #2 */
{ 0, 0, 0, 0x0461, 0x0382 },/* G2-600 #2 */
{ 0, 0, 0, 0x0461, 0x0303 },/* G2E-300 #2 */
{ 0, 0, 0, 0x0461, 0x0383 },/* G2E-600 */
{ 0, 0, 0, 0x0461, 0x0340 },/* Colorado USB 9600 */
{ 0, 0, 0, 0x0461, 0x0360 },/* Colorado USB 19200 */
{ 0, 0, 0, 0x0461, 0x0341 },/* Colorado 600u */
{ 0, 0, 0, 0x0461, 0x0361 },/* Colorado 1200u */
/* Seiko/Epson Corp. */
{ 0, 0, 0, 0x04b8, 0x0101 },/* Perfection 636U and 636Photo */
{ 0, 0, 0, 0x04b8, 0x0103 },/* Perfection 610 */
{ 0, 0, 0, 0x04b8, 0x0104 },/* Perfection 1200U and 1200Photo*/
{ 0, 0, 0, 0x04b8, 0x0106 },/* Stylus Scan 2500 */
{ 0, 0, 0, 0x04b8, 0x0107 },/* Expression 1600 */
{ 0, 0, 0, 0x04b8, 0x010b }, /* Perfection 1240U */
/* Umax */
{ 0, 0, 0, 0x1606, 0x0010 },/* Astra 1220U */
{ 0, 0, 0, 0x1606, 0x0030 },/* Astra 2000U */
{ 0, 0, 0, 0x1606, 0x0230 },/* Astra 2200U */
/* Visioneer */
{ 0, 0, 0, 0x04a7, 0x0221 },/* OneTouch 5300 USB */
{ 0, 0, 0, 0x04a7, 0x0211 },/* OneTouch 7600 USB */
{ 0, 0, 0, 0x04a7, 0x0231 },/* 6100 USB */
{ 0, 0, 0, 0x04a7, 0x0311 },/* 6200 EPP/USB */
{ 0, 0, 0, 0x04a7, 0x0321 },/* OneTouch 8100 EPP/USB */
{ 0, 0, 0, 0x04a7, 0x0331 },/* OneTouch 8600 EPP/USB */

{ 0, 0, 0, 0, 0 }// null termination
};

One trick is to add your vendor/device ids to this hardcoded list, recompile usb_scanner and install the new one over the old one.
Then, if it doesn't work, the SANE 1.0.5 backend either don't support your device, or the command protocol is not supported.

Or I just help you breaking your device, which I will never take responsability for ;-)

More seriously, for those with more recent device, have some patience, I'll try to re-motivate myself to port libusb to Haiku, which would give all the latest SANE drivers for USB devices for free (as in beer *and* speech).

For the others, I have a net backend driver I've never released, which allow to use scanner remotely. This requires another computer with Linux or MacOS X on it, though.
 
 
0 # RE: RE: UMAX 1220Ukarl 2010-06-14 09:43
So... I'm confused. are only the ones above you listed from usb_scanner supported? The HCL you gave shows a lot more supported devices (especially Epson).

Good to hear you may continue work on this!
 
 
0 # RE: RE: RE: UMAX 1220Uphoudoin 2010-06-14 09:47
It's so old, I can't even reply to your question. Maybe the driver handle every device, letting the userland backend checking if any device he supports is present. Let me check from the source...
 
 
0 # RE: RE: RE: UMAX 1220Uphoudoin 2010-06-14 10:01
The HCL list supported scanners, not just USB ones.
 
 
0 # RE: UMAX 1220Uphoudoin 2010-06-14 09:45
I read a second time your comment, and I now betting you don't have any usb_scanner installed, as this one is not included either in Sanity_v0.5a.zip or BeSANE_v1.0.5_x86.zip packages.

No wonder your device is not supported.

Sorry about that. Here is the source *and* x86 binary of this driver:
http://philippe.houdoin.free.fr/phil/beos/besane/usb_scanner.zip

Copy the usb_scanner binary under /boot/home/config/add-ons/kernel/drivers/bin.

Plug your scanner, verify that listusb list it, then check a new /dev/scanner/usb/0 entry was created. If not, fall to my tricky solution above...
 
 
+1 # RE: Sanity & BeSaneandrewzx1 2010-06-14 08:18
Yes. I saw 1220S was supported so I was hoping 1220U might work.

Also, not every scanner has a year stamped on the side :-)
 
 
+1 # RE: RE: Sanity & BeSanekarl 2010-06-14 08:21
crappy it doesn't work. start prodding Philippe and Oliver :D I guess the Epson Expression 1600 and 1680 would be the best options to get with this software and support. They allow up to 1600 DPI scans, although, Meanwhile couldn't scan at 600.
 
 
0 # RE: RE: Sanity & BeSanekarl 2010-06-14 09:45
the output from usb_scanner above from Philippe shows your device as supported. maybe missing the right ID?
 
 
0 # RE: RE: RE: Sanity & BeSanephoudoin 2010-06-14 10:19
I wonder if at this time, due to lack of auto-detection feature, SANE backend/driver didn't read the device path from a conf file...

Uhmm, yes, I guess you need to create under /boot/home/config/settings/SANE a .conf file with one single line in it:

usb /dev/scanner/usb/0

At this time, backends supporting USB connection were opening directly the device. Later on, SANE introduce a shared API to access USB device, and recently drop it to switch completely to libusb. Which bring auto-detection.

But at this time, it was still .conf files "paradigm". Sorry about that.

So, to resume, you should be lucky if:

1) usb_scanner publish a /dev/scanner/usb/* entry because your device IDs is in the short list of hardcoded supported devices.

2) your wrote this small .conf file named after the backend you suspect that it could support your scanner and place it under /boot/home/config/settings/SANE folder (uppercase mandatory, create the folder if needed)

3) the expected backend actually open the right /dev/scanner/usb/0 entry and works fine with it, publishing a new SANE_Device for it.

4) Sanity (or scanimage --list for that matter) lists this SANE_Device

5) Selecting it don't crash

6) The backend actually works as one would expect!

:sigh:

See why I never released those outdated packages!?
 
 
0 # RE: Sanity & BeSaneandrewzx1 2010-06-14 10:33
Philippe, this is very cools, thanks for the discussion. A question - should .conf file have a special name corresponding to the device name? E.G. Astra1220u.conf? Or just .conf?

Thanks
 
 
0 # RE: RE: Sanity & BeSanephoudoin 2010-06-14 10:58
No, it should be named after the backend name :-|

As your best hope is that the SANE v1.0.5 "umax" backend will support your astra 1220U, the conf file should be name /boot/home/config/settings/SANE/umax.conf
 
 
0 # RE: Sanity & BeSaneandrewzx1 2010-06-14 11:10
listusb detects the scanner, after creating /boot/home/config/settings/SANE/umax.conf the device is not listed in the Sanity device list.
 
 
0 # RE: RE: Sanity & BeSanephoudoin 2010-06-14 11:23
1) Check that a /dev/scanner/usb/0 entry exists

2) if yes, try to replace "usb /dev/scanner/usb/0" line by "usb 0x1606"

3) yes, it's a mess.
 
 
0 # RE: Sanity & BeSaneandrewzx1 2010-06-14 11:48
Dude (can I call you Dude? It is a title of coolness) this is really cool!

Under /dev there is no scanner folder. So I created /dev/scanner/usb/0, and changed umax.conf to hold usb 0x1606. Rebooted (old Windows habit ;-) )

Device list is empty.
 
 
0 # RE: Sanity & BeSaneandrewzx1 2010-06-14 11:50
Hah. Rebooting causes deletion of /dev/scanner
 
 
0 # RE: RE: Sanity & BeSaneMeanwhile 2010-06-14 11:51
Bill Gates just bit your ass :D
 


Please register to post comments

Search Files

Search For: 
Search File Titles: 
Search File Descriptions: 

The Largest BeOS/Haiku Software Repository