Author Topic: Epson L4150 Scanner - USB  (Read 3778 times)

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5074
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Epson L4150 Scanner - USB
« on: October 31, 2024, 06:14:28 pm »
Hello

Yes, I want to try it one more time. I want to see if the embedded scanner in the Epson L4150 printer will work on ArcaOS.
I failed in the past, but I stopped trying - "USB Scanners and ArcaOS"
...and I want to try it before the lights runs out.

Specs:
- Thinkpad T14S
- ArcaOS 5.1.0 UEFI
- AN USB Drivers 12.16
- Installed sane-backends and sane-backends-drivers-scanners 1.0.28 from RPM.
Code: [Select]

[C:\]lsusb
Bus 000 Device 001: ID 04b8:1135 Seiko Epson Corp.
Bus 000 Device 002: ID 13d3:5406 IMC Networks
Bus 000 Device 003: ID 06cb:00bd Synaptics, Inc. Prometheus MIS Touch Fingerprin
t Reader
Bus 000 Device 004: ID 8087:0026 Intel Corp. AX201 Bluetooth
It is "04b8:1135"

Code: [Select]
[C:\]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.

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:000:001
found USB scanner (vendor=0x06cb, product=0x00bd) at libusb:000:003
  # 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.
0x04b8 should be the one.

Run ScanImage:
Code: [Select]
[C:\]ScanImage -L

LIBC PANIC!!
_um_free_maybe_lock: Tried to free block twice - block=2003e220 lock=0x1
pid=0x0049 ppid=0x0047 tid=0x0001 slot=0x0082 pri=0x0200 mc=0x0000 ps=0x0010
C:\USR\BIN\SCANIMAGE.EXE
Creating 0049_01.TRP
Moved 0049_01.TRP to C:\var\log\app\67237450-0049_01-SCANIMAGE-exceptq.txt

The external process was cancelled by a Ctrl+Break or another process.


« Last Edit: December 20, 2024, 03:53:03 pm by Martin Iturbide »
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5074
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Epson L4150 Scanner - USB
« Reply #1 on: December 18, 2024, 10:08:29 pm »
Hello

Reading a past thread, I think I need the "SANE utushi backend" to be ported, to give it a try and see if this scanner works.

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

Jan-Erik Lärka

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 296
  • Karma: +6/-0
    • View Profile
Re: Epson L4150 Scanner - USB
« Reply #2 on: December 18, 2024, 10:36:32 pm »
1.0.28 does't work for me either, libc panic, while 1.0.27 do work, but I had to download an additional library that output large amount of debug messages. I use it with PMInSANE that also work with the one included with tame.

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2361
  • Karma: +181/-0
    • View Profile
Re: Epson L4150 Scanner - USB
« Reply #3 on: December 19, 2024, 04:22:33 am »
Looking at http://www.sane-project.org/sane-mfgs.html you need the epsonds backend. Not sure which sane version introduced this.

Dariusz Piatkowski

  • Hero Member
  • *****
  • Posts: 1390
  • Karma: +27/-0
    • View Profile
Re: Epson L4150 Scanner - USB
« Reply #4 on: December 19, 2024, 05:41:27 am »
Hey Martin!

...Run ScanImage:
Code: [Select]
[C:\]ScanImage -L

LIBC PANIC!!
_um_free_maybe_lock: Tried to free block twice - block=2003e220 lock=0x1
pid=0x0049 ppid=0x0047 tid=0x0001 slot=0x0082 pri=0x0200 mc=0x0000 ps=0x0010
C:\USR\BIN\SCANIMAGE.EXE
Creating 0049_01.TRP
Moved 0049_01.TRP to C:\var\log\app\67237450-0049_01-SCANIMAGE-exceptq.txt

The external process was cancelled by a Ctrl+Break or another process.


Yup, exactly the same issue I have with that particular 'scanimage -L' command, however, all my scans actually work just fine, except that each scan job does produce an ugly exit, which my REXX script ignores.

Take a look at the REXX script I've written. You should look at the setups I have in there at the start and override and/or remove the stuff you do not want, in particular the following as they are specific to my install:

Code: [Select]
...
   viewer_path       ="G:\APPS\GRAPHICS\TOOLS\PMVIEW\"  /* PATH to the viewer */
   viewer_name       ="PMVIEW.EXE"                  /* EXE name of the viewer */
   winmv_path        ="G:\UTIL\MISC\"     /* PATH to the window move utility  */
   winmv_name        ="PGMCNTRL.EXE"       /* name of the window move utility */
   winmv_params      ="/PO:1940,672 /THISSESSION" /* window move utility parm */
...

Point being: running 'scanimage -L' is a problem, otherwise scanimage.exe works just fine when passed specific scan parameters here.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5074
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Epson L4150 Scanner - USB
« Reply #5 on: December 19, 2024, 12:53:19 pm »
Hello

I will check Dariusz script, thanks Dariusz.

Next I will be to try backlevel to 1.0.27 and see what happens. Thanks Jan-Erik

Looking at http://www.sane-project.org/sane-mfgs.html you need the epsonds backend. Not sure which sane version introduced this.
It seem that " epsonds backend" was in version 1.0.18 according to that page. What does it means that I need the "epsonds backend". Do it have to be compiled for OS/2? or it is already included in the "sane-backends and sane-backends-driver-scanners" rpm packages? Thanks for link Paul.

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

Dariusz Piatkowski

  • Hero Member
  • *****
  • Posts: 1390
  • Karma: +27/-0
    • View Profile
Re: Epson L4150 Scanner - USB
« Reply #6 on: December 19, 2024, 05:02:49 pm »
Martin,

It seem that " epsonds backend" was in version 1.0.18 according to that page. What does it means that I need the "epsonds backend". Do it have to be compiled for OS/2? or it is already included in the "sane-backends and sane-backends-driver-scanners" rpm packages? Thanks for link Paul.

So what I think Paul is calling out are the multiple device backends that basically provide the device/platform specific information to the overall sane architecture.

More specifically, take a look at the following links:

1) SANE man page => http://www.sane-project.org/man/sane.7.html

2) SCANIMAGE man page => http://www.sane-project.org/man/scanimage.1.html

3) EPSON backend man page => http://www.sane-project.org/man/sane-epson.5.html

3) EPSON2 backend man page => http://www.sane-project.org/man/sane-epson2.5.html (FYI - the link on the main SANE page to this backend is broken)

The backend specific pages will provide you with various supported options the devices themselves offer and how SANE needs to be instructed to use these.

On our OS/2 side you basically configure this through the RPM installs and adjusting certain conf files as need be.

I have the following section in my CONFIG.SYS to define this:
Code: [Select]
REM **********************
REM ***  SANE - START  ***
REM **********************
REM Line below is specific to TAME install
rem SET SANE_CONFIG_DIR=G:\apps\graphics\tools\tame\conf

REM Line below is specific to RPM install
SET SANE_CONFIG_DIR=g:\etc\sane.d
SET SANE_DEFAULT_DEVICE=hp:libusb:003:001

REM Lines below set DEBUG to ON
REM SET SANE_DEBUG_HPAIO=4
REM SET SANE_DEBUG_HP=4
REM SET SANE_DEBUG_SANEI_USB=4
REM SET SANE_DEBUG_DLL=4

REM Options below allow to keep the connection OPEN all the time
REM    as opposed to an OPEN/CLOSE operation
REM SET SANE_HP_KEEPOPEN_SCSI=1
REM SET SANE_HP_KEEPOPEN_USB=1
REM SET SANE_HP_KEEPOPEN_DEVICE=1
REM **********************
REM ***   SANE - END   ***
REM **********************

So for example, these two lines are specific to where SANE is installed here:
Code: [Select]
REM Line below is specific to RPM install
SET SANE_CONFIG_DIR=g:\etc\sane.d
SET SANE_DEFAULT_DEVICE=hp:libusb:003:001

...and my hp.conf details identify the 6390C scanner I am using here.

The key piece it seems in all of this is editting the dll.conf file in that directory and uncommenting your specific backend (at least for my install that's what I see right now).

ivan

  • Hero Member
  • *****
  • Posts: 1611
  • Karma: +20/-0
    • View Profile
Re: Epson L4150 Scanner - USB
« Reply #7 on: December 19, 2024, 06:09:45 pm »
All I can say is that I am thankful I chose a Brother ADS-1600 w and a Brother DCP-9020cdw for all the scanning needs I have.  Both of them just work over my internal network - no special software needed.  The ADS is a simple sheet feed unit, the DCP is an all in one colour printer/scanner unit.  Both work without fail over the network - no special setup necessary.

Dariusz Piatkowski

  • Hero Member
  • *****
  • Posts: 1390
  • Karma: +27/-0
    • View Profile
Re: Epson L4150 Scanner - USB
« Reply #8 on: December 19, 2024, 07:46:04 pm »
Hi ivan,

All I can say is that I am thankful I chose a Brother ADS-1600 w and a Brother DCP-9020cdw for all the scanning needs I have.  Both of them just work over my internal network - no special software needed.  The ADS is a simple sheet feed unit, the DCP is an all in one colour printer/scanner unit.  Both work without fail over the network - no special setup necessary.

So how are you actually interfacing with the device? Are we talking web browser based stuff?

When my kids were younger I had bought them an inkjet colour printer that included a scanner, that's the HP Envy 5530, which has a browser front-end. Easy as you say.

...but if I'm looking to do something a bit more custom, or perhaps configured to just what I want/like, and heck, even to simplify certain tasks (such as scanning stuff over, doing some processing on the image and tossing stuff onto my NAS) a user-configurable solution can't be beat!!!

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2361
  • Karma: +181/-0
    • View Profile
Re: Epson L4150 Scanner - USB
« Reply #9 on: December 19, 2024, 09:32:19 pm »
Hey Martin,
I will check Dariusz script, thanks Dariusz.

Next I will be to try backlevel to 1.0.27 and see what happens. Thanks Jan-Erik

Looking at http://www.sane-project.org/sane-mfgs.html you need the epsonds backend. Not sure which sane version introduced this.
It seem that " epsonds backend" was in version 1.0.18 according to that page. What does it means that I need the "epsonds backend". Do it have to be compiled for OS/2? or it is already included in the "sane-backends and sane-backends-driver-scanners" rpm packages? Thanks for link Paul.

I checked out sane-backends-drivers-scanners and there is an epsonds1.dll - so in theory, it should work.

I would try something like:
Code: [Select]
set SANE_DEBUG_EPSONDS=255             
scanimage -v  1>output.pnm 2>debugoutput.txt

...and see what debugoutput.txt shows

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5074
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Epson L4150 Scanner - USB
« Reply #10 on: December 20, 2024, 09:08:35 pm »
>Thanks Paul

Here it goes:

Quote
[X:\]scan

[X:\]set SANE_DEBUG_EPSONDS=255

[X:\]scanimage -v   1>output.pnm 2>debugoutput.txt

The external process was cancelled by a Ctrl+Break or another process.

debug txt
Code: [Select]
Output format is not set, using pnm as a default.

LIBC PANIC!!
_um_free_maybe_lock: Tried to free block twice - block=2003e220 lock=0x1
pid=0x0043 ppid=0x003c tid=0x0001 slot=0x009c pri=0x0200 mc=0x0000 ps=0x0010
X:\USR\BIN\SCANIMAGE.EXE
Creating 0043_01.TRP
Moved 0043_01.TRP to X:\var\log\app\67658805-0043_01-SCANIMAGE-exceptq.txt
« Last Edit: December 20, 2024, 09:12:45 pm by Martin Iturbide »
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2361
  • Karma: +181/-0
    • View Profile
Re: Epson L4150 Scanner - USB
« Reply #11 on: December 21, 2024, 12:39:37 am »
hmmm it doesn't appear to even trying to use epsonds

I'm not interested in the TRP - that appears to be just a shitty port/compile - seems the rpm sane TRPs on every run.

try:
set SANE_DEBUG_EPSONDS=255             
set SANE_DEBUG_SANEI_USB=255
set SANE_DEBUG_DLL=255
scanimage -v  1>output.pnm 2>debugoutput.txt

SANE_DEBUG_DLL in particular should show us if it's loading epsonds or not

Also maybe try scanimage -d epsonds -v  1>output.pnm 2>debugoutput.txt


Pete

  • Hero Member
  • *****
  • Posts: 1361
  • Karma: +12/-0
    • View Profile
Re: Epson L4150 Scanner - USB
« Reply #12 on: December 21, 2024, 05:47:07 am »
Hi

Does the scanimage line need a -d parameter? eg

   scanimage -v -d epsons  1>output.pnm 2>debugoutput.txt


Regards

Pete

ivan

  • Hero Member
  • *****
  • Posts: 1611
  • Karma: +20/-0
    • View Profile
Re: Epson L4150 Scanner - USB
« Reply #13 on: December 22, 2024, 02:54:37 am »
Hi Dariusz,

Sorry to take so long to reply but I have had to rebuild my computer .  As I said all the scanning it done over the network into a directory used for it - I have the choice of them being saved as PDF or JPG files  and since those are standard file types I can either store them or print them as needed.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5074
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Epson L4150 Scanner - USB
« Reply #14 on: December 22, 2024, 01:24:44 pm »

set SANE_DEBUG_EPSONDS=255             
set SANE_DEBUG_SANEI_USB=255
set SANE_DEBUG_DLL=255
scanimage -v  1>output.pnm 2>debugoutput.txt



Here it goes

Quote
[X:\]scan
[X:\]set SANE_DEBUG_EPSONDS=255
[X:\]set SANE_DEBUG_SANEI_USB=255
[X:\]set SANE_DEBUG_DLL=255
[X:\]scanimage -v   1>output.pnm 2>debugoutput.txt

The external process was cancelled by a Ctrl+Break or another process.

debugoutput.txt attached.



Also maybe try scanimage -d epsonds -v  1>output.pnm 2>debugoutput.txt

Here it goes with "-d epsonds"
Quote
[X:\]scan
[X:\]set SANE_DEBUG_EPSONDS=255
[X:\]set SANE_DEBUG_SANEI_USB=255
[X:\]set SANE_DEBUG_DLL=255
[X:\]scanimage -d epsonds -v   1>output.pnm 2>debugoutput2.txt

debugoutput2.txt attached.

And the other one:
Quote
[X:\]scan
[X:\]set SANE_DEBUG_EPSONDS=255
[X:\]set SANE_DEBUG_SANEI_USB=255
[X:\]set SANE_DEBUG_DLL=255
[X:\]scanimage -v -d epsonds  1>output.pnm 2>debugoutput3.txt

debugoutput3.txt attached.

I don't see any scanner activity.

Regards
« Last Edit: December 22, 2024, 01:35:44 pm by Martin Iturbide »
Martin Iturbide
OS2World NewsMaster
... just share the dream.