Author Topic: USB Scanners and ArcaOS  (Read 34535 times)

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4714
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: USB Scanners and ArcaOS
« Reply #15 on: January 04, 2021, 09:48:36 pm »
Looks like SANE also requires USBLIB. You all make sure that you have an updated version. Update via RPM.
Hi Lars

I already had the libusb1 and libusb-legacy installed and updated. Not sure what else can I be missing.

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

David McKenna

  • Hero Member
  • *****
  • Posts: 743
  • Karma: +24/-0
    • View Profile
Re: USB Scanners and ArcaOS
« Reply #16 on: January 04, 2021, 11:35:57 pm »
Hi Martin,

  First you need to determine the 'backend' that SANE needs for your scanner. You get this from 'Scanimage -L'. Here is what I get:

device `snapscan:libusb:001:002' is a EPSON EPSON Scanner1 flatbed scanner
device `epson2:net:192.168.21.201' is a Epson PID 110B flatbed scanner

 It shows I heve 2 scanners, one using the 'snapscan' backend on a USB port (my scanner), and one using the 'epson2' backend over the network (my printer). Whatever scanner you choose in Tame must use the correct backend (not always obvious). You might also need to edit the *.conf file for your backend (some require firmware uploads) and enable that backend in dll.conf. Net.conf needs to be attended to if using a networked scanner running saned (like some printers).

 If you can't get the backend, then your SANE installation is not right. I am using the BWW version installed using ANPM. All drivers and files are either from there or installed with ArcaOS 5.0.6. Been a very long time since I did it by hand... the Tame *.inf file could be helpful.

 I have the scanner working, but still fooling around with the printer. These things take time!

Regards,
« Last Edit: January 04, 2021, 11:40:02 pm by David McKenna »

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4714
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: USB Scanners and ArcaOS
« Reply #17 on: January 05, 2021, 01:27:43 am »
Paul recommended me on IRC to use "SANE" from the RPM YUM instead of  the one on his site.

So I remove TAME/2 and SANE to start over.
I installed "yum install sane-backends".

I set up by hand the following on the config.sys.
  set sane_config_dir=x:\etc\sane.d

sane-find-scanner give me the following:
Code: [Select]
[X:\]sane-find-scanner

  # sane-find-scanner will now attempt to detect your scanner. If the
  # result is different from what you expected, first make sure your
  # scanner is powered up and properly connected to your computer.

  # No SCSI scanners found. If you expected something different, make sure that
  # you have loaded a kernel SCSI driver for your SCSI adapter.

found USB scanner (vendor=0x147e [UPEK], product=0x1002 [TouchStrip Fingerprint
Sensor      ]) at libusb:001:003
could not fetch string descriptor: Input/output error
could not fetch string descriptor: Input/output error
found USB scanner (vendor=0x04b8, product=0x1135) at libusb:001:004
  # Your USB scanner was (probably) detected. It may or may not be supported by
  # SANE. Try scanimage -L and read the backend's manpage.

  # Not checking for parallel port scanners.

  # Most Scanners connected to the parallel port or other proprietary ports
  # can't be detected by this program.

ScanImage -L is producing me a TRAP on OS2DASD even with the RPM netlabs SAME sometimes.  If I disconnected the scanner from the USB port it will not trap, reconnect it and scanimage -L will say it did not recognize a scanner.

Paul suggested:
Quote
sane logs might be interesting...
set SANE_DEBUG_xxxxxxx=255
set SANE_DEBUG_SANEI_USB=255
set SANE_DEBUG_DLL=255
scanimage -v 1>output.pnm 2>debugoutput.txt
xxxxxxx is the backend for your scanner

I still do not understand what is a backend. I guess it is a config files inside "\etc\sane.d", right?

Regards
« Last Edit: January 05, 2021, 01:43:23 am by Martin Iturbide »
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4714
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: USB Scanners and ArcaOS
« Reply #18 on: January 05, 2021, 01:58:09 am »
I switched to the other scanner, HP ScanJet Pro 2000 S1.

Scanimage -L started to produce some output on the console, and then... TRAP again. OS2DASD.  :(

I'm not sure what else can I try.

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Andreas Schnellbacher

  • Hero Member
  • *****
  • Posts: 827
  • Karma: +14/-0
    • View Profile
Re: USB Scanners and ArcaOS
« Reply #19 on: January 05, 2021, 02:20:33 am »
I still do not understand what is a backend.
A front end is a program or a program part that calls the back end. Simplified: front end is the (G)UI and back end does the real work. On Linux these parts are often fully separated: There exist a back end command line program and a separate GUI application to ease the access to the back end program.

Ian Manners

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 464
  • Karma: +10/-0
  • I am the computer, it is me.
    • View Profile
    • ComKal Networks Australia
Re: USB Scanners and ArcaOS
« Reply #20 on: January 05, 2021, 05:17:48 am »
Hi Martin,

What Andreas said.

I run sane from cmd files, been a while since I've used tame as I find it quicker just to type epson1240(.cmd) from the commandline.
Important for sane to know where its backend files are (config files) which in my case are in \apps\sane\conf, this is done with a set command.
     set sane_config_dir=\apps\sane\conf     (or as you have done, in x:\etc\sane.d)

Then I run scanimage telling it which backend configuration file to use, with the parameters I want.
    SCANIMAGE.EXE -d epson2 -l 0 -t 0 -x 215 -y 297 --mode Color --resolution 300 --depth 14 --format=tiff

Tame hides all this from you as its the nice front end gui.
Looking at your results from scanimage -L,  "USB scanner (vendor=0x04b8, product=0x1135) at libusb:001:004".
I cant find the vendor ID in any of the conf files (looking at the mine and BWW's), neither can scanimage -L otherwise it would normally indicate more than the the numbers.
Cheers
Ian B Manners

David McKenna

  • Hero Member
  • *****
  • Posts: 743
  • Karma: +24/-0
    • View Profile
Re: USB Scanners and ArcaOS
« Reply #21 on: January 05, 2021, 10:16:32 pm »
 Hi Martin,

  The Trap in OS2DASD is very strange - OS2DASD is a driver for getting data from discs and such (Direct Access Storage Device). Not clear why scanimage would even affect it. Is there a card reader or thumb drive or something attached to the scanner?

  I think of a 'backend' as a type of driver. Each type of scanner needs a driver, and the 'backend' is that driver. The files in X:\etc\sane.d are the configuration files for each backend. The actual backend 'drivers' are in X:\usr\lib\sane.

Regards,
« Last Edit: January 05, 2021, 10:18:43 pm by David McKenna »

Pete

  • Hero Member
  • *****
  • Posts: 1281
  • Karma: +9/-0
    • View Profile
Re: USB Scanners and ArcaOS
« Reply #22 on: January 05, 2021, 10:51:58 pm »
Hi Martin

You seem to have 2 scanners that do not appear to be supported in either current release http://www.sane-project.org/sane-supported-devices.html or current development http://www.sane-project.org/lists/sane-mfgs-cvs.html

Looks like all the Epson L series supported to date use the epson2.conf but you may need a later sane than we have available...

The HP ScanJet Pro 2000 S1 is supported by hplip 3.18.12 but will probably not work with OS/2 port of sane as it also requires a HP (closed source) plugin see https://developers.hp.com/hp-linux-imaging-and-printing/supported_devices/index


Strange that you get a trap in os2dasd when trying to access a scanner... Possibly something wrong with usb configuration or a wrong level of driver/support file somewhere?


Regards

Pete

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4714
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: USB Scanners and ArcaOS
« Reply #23 on: January 06, 2021, 01:21:50 am »
Thanks for the feedback

I understand better was is refereed as "backend" since it the SANE software, but also the conf file.

Quote
Then I run scanimage telling it which backend configuration file to use, with the parameters I want.
    SCANIMAGE.EXE -d epson2 -l 0 -t 0 -x 215 -y 297 --mode Color --resolution 300 --depth 14 --format=tiff

Ian, I had tried your suggest scanimage command, with "epson, epson2 and epsonds" and I did not get any response from the scanner.

Pete, thanks for the more specific information and links. It seems that my Epson Scanner (04b8:1135) is listed on a backed called "utsushi". I was expecting to be as simple as getting a .conf file, but it seems that something needs to be compiled.

The other things that is an stopper for me is that I get an OS2DASD trap while running "Scanimage -L".

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2092
  • Karma: +159/-0
    • View Profile
Re: USB Scanners and ArcaOS
« Reply #24 on: January 06, 2021, 05:45:52 am »
Hey David,

  The Trap in OS2DASD is very strange - OS2DASD is a driver for getting data from discs and such (Direct Access Storage Device). Not clear why scanimage would even affect it. Is there a card reader or thumb drive or something attached to the scanner?

My guess would be that it's due to the support for SCSI scanners in Sane... ASPIROUT.SYS (from memory) is called by Sane which ends up routing requests through any SCSI drivers - perhaps these end up going via os2dasd...

Cheers,

Paul

Lars

  • Hero Member
  • *****
  • Posts: 1271
  • Karma: +65/-0
    • View Profile
Re: USB Scanners and ArcaOS
« Reply #25 on: January 06, 2021, 08:54:05 am »
Aspirout.sys interacts with os2aspi.dmd. I don't see a direct relationship with os2dasd.dmd. But maybe there is a bug where one driver overwrites memory of another driver or some such.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4714
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: USB Scanners and ArcaOS
« Reply #26 on: January 06, 2021, 02:29:54 pm »
Hi
  The Trap in OS2DASD is very strange - OS2DASD is a driver for getting data from discs and such (Direct Access Storage Device). Not clear why scanimage would even affect it. Is there a card reader or thumb drive or something attached to the scanner?

The strange thing is that I get the OS2DASD trap on both scanners, plugged individually. The Epson L4150 is a multifunction printer, it does not have card reader, but it may have more internal things. The HP ScanJet Pro 2000 S1 is just a pure scanner.

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

andreas

  • Jr. Member
  • **
  • Posts: 68
  • Karma: +4/-0
    • View Profile
Re: USB Scanners and ArcaOS
« Reply #27 on: January 07, 2021, 09:15:18 pm »
i have a canon Lide 210 scanner.
i read it is supported by sane, still here it is not mentioned: http://www.fbakan.de/sane-os2-configuration.htm
also not listed within tame..

guess it is not supported by os/2? hope i am wrong..

when i start sane-find-scanner.exe all i see is black..

pm-dll shows red for usb100.dll and usbcalls.dll
my usb100.dll's date is 23.12.19
usbcalls.dll from 29.10.20
« Last Edit: January 07, 2021, 09:55:17 pm by andreas »

Pete

  • Hero Member
  • *****
  • Posts: 1281
  • Karma: +9/-0
    • View Profile
Re: USB Scanners and ArcaOS
« Reply #28 on: January 07, 2021, 11:32:12 pm »
Hi andreas

Support for the LiDE 210 is shown as complete see http://www.sane-project.org/sane-mfgs.html#Z-CANON

Try using the following command to see if your scanner is found

   scanimage -L


Regards

Pete

Pete

  • Hero Member
  • *****
  • Posts: 1281
  • Karma: +9/-0
    • View Profile
Re: USB Scanners and ArcaOS
« Reply #29 on: January 07, 2021, 11:34:15 pm »
Hi Martin

Do any new drives appear in the Drives folder when you attach a scanner?


Regards

Pete