Epson 4180 Photo Scanner, "can not connect" using libusb w/ epkowa backend

I've been tryign to get my scanner working for 3 days straight now. I've been using for about 2 months now so I'm pretty good at following documention. As per the documention that I've found around the net, these seem to be the important files.

Linux Hardware 765 This topic was started by ,


data/avatar/default/avatar37.webp

99 Posts
Location -
Joined 2004-07-16
I've been tryign to get my scanner working for 3 days straight now. I've been using for about 2 months now so I'm pretty good at following documention.
 
As per the documention that I've found around the net, these seem to be the important files.
 
Included in my /etc/sand.d/dll
is "epkowa"
 
In my epkowa.conf
--------------------------
/etc/sand.d/epkowa.conf
 
# epkowa.conf
#
# examples for how to configure the SANE EPSON KOWA Backend
#
# SCSI scanner:
# scsi EPSON
#
# Parallel port scanner:
#pio 0x278
#pio 0x378
#pio 0x3BC
#
# USB scanner - only enable this if you have an EPSON scanner. It could
# otherwise block your non-EPSON scanner from being
# recognized.
#usb /dev/usb/scanner0
usb 0x04b8 0x0118
 
--------------------------------------
I've used this page and followed the instructions
 
EPSON scanner with libusb and hotplugging
 
http://www.freecolormanagement.com/sane/libusb.html
 
Scanner is not known by the backend
 
If you just go the latest and greates scanner from EPSON, chances are that I've not yet added it's product ID to the backend. This means that you have to tell the backend what vendor/product IDs to look for. This is done by usign the standard Sane syntax for libusb support: "usb " - you have to replace the and strings with the data from your scanner. The new Perfection 3200 for example would use this command in epson.conf: "usb 0x4b8 0x11c".
 
Have tried this, however the backend is epkowa , have tried using this with epson.conf, but it ended up showing 2 scanners, , 1 epson, 1 epkowa, , I have had more luck with epkowa (the programs would actually open with epkowa, so i have been using epkowa instead of epson)
 
Getting the permissing right
 
did this
 
epson_scanner 0x0003 0x04b8 0x0118 0x0000 0x0000
0x00 0x00 0x00 0x00 0x00
0x00 0x00000000
 
 
pasted in the script to a text document with the name epson_scanner (as the documentation instructs)
 
 
#!/bin/bash
 
if [ "${ACTION}" = "add" ] && [ -f "${DEVICE}" ]
then
chown root "${DEVICE}"
chgrp scanner "${DEVICE}"
chmod 660 "${DEVICE}"
fi
 
Which becomes
 
#!/bin/bash
 
if [ "${ACTION}" = "add" ] && [ -f "${usb 0x04b8 0x0118}" ]
then
chown root "${usb 0x04b8 0x0118}"
chgrp scanner "${usb 0x04b8 0x0118}"
chmod 660 "${usb 0x04b8 0x0118}"
fi
 
next did
 
This script assumes that your computer knows about a group named "scanner", add this to the file /etc/group, give it a unique group id (the number after the password entry). It looks like this:
 
scanner:x:102:root,khk
 
 
I did this, 102 was taken so i gave it 108
 
scanner:x:108:root,khk:
 
Documenttation forgot the : <---------- i added this to mine after notices that everything iin the /etc/group file ended with :
 
Normal user can do iscan or xsane or ximagescan, however each program produces errors relating too, "cannot connect to the device"
 
I have even tried it as root, still no work, everythign seems right as far as permissions
 
 
My device is detected though in sane-find-scanner
 
found USB scanner (vendor=0x04b8 [EPSON], product=0x0118 [EPSON Scanner]) at libusb:003:002
 
As well as scanimage -- list
 
finds my scanner epkowa:libusb:003:002
 
I have read all sort of docuention on this, the freecolour site, as well as the SANE site.
 
What am I doing wrong, missing, etc?

Participate on our website and join the conversation

You have already an account on our website? Use the link below to login.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


data/avatar/default/avatar10.webp

2895 Posts
Location -
Joined 2002-08-30
Quote:/etc/sand.d/epkowa.conf

# epkowa.conf
#
# examples for how to configure the SANE EPSON KOWA Backend
#
# SCSI scanner:
# scsi EPSON
#
# Parallel port scanner:
#pio 0x278
#pio 0x378
#pio 0x3BC
#
# USB scanner - only enable this if you have an EPSON scanner. It could
# otherwise block your non-EPSON scanner from being
# recognized.
#usb /dev/usb/scanner0
usb 0x04b8 0x0118


What happens if you uncomment;

usb /dev/usb/scanner0


data/avatar/default/avatar39.webp

336 Posts
Location -
Joined 2004-07-09
what does "id -a" look like for users 'root' and 'khk' ?
 
 

data/avatar/default/avatar37.webp

99 Posts
Location -
Joined 2004-07-16
OP
khk is a user name? I wasnt aware of that, I will replace the khk with my user name. I don't understand the script but i know enough that its not malicios in nature. I will fix the script then reply again with the results.

data/avatar/default/avatar37.webp

99 Posts
Location -
Joined 2004-07-16
OP
[rob@Oneniisama rob]$ id -a
uid=501(rob) gid=501(rob) groups=501(rob)
 
 
[root@Oneniisama rob]# id -a
uid=0(root) gid=0(root) groups=0(root),108(scanner)

data/avatar/default/avatar37.webp

99 Posts
Location -
Joined 2004-07-16
OP
ok I have removed the : from the etc/groups file now, mebbe that was wrong to put it in, i check back and some other lines dont end in :
 
scanner :108:root,rob
 
as such the id -a has changed
 
[rob@Oneniisama rob]$ id -a
uid=501(rob) gid=501(rob) groups=501(rob),108(scanner)
 
[root@Oneniisama rob]# id -a
uid=0(root) gid=0(root) groups=0(root),108(scanner)
 
I still however get the cannot connect to scanner error.
 
Are libusb and epkowa supposed to work together or are they one or the other type of things?