Compatible Support Forums: Epson 4180 Photo Scanner, "can not connect" using libusb w/ epkowa backend

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

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

#1 User is offline   Whiskers 

  • journeyman
  • Group: Members
  • Posts: 99
  • Joined: 16-July 04

Posted 16 October 2004 - 12:04 AM

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?
0

#2 User is offline   danleff 

  • Carpal Tunnel
  • Group: Moderators
  • Posts: 2903
  • Joined: 30-August 02

Posted 16 October 2004 - 03:56 AM

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


0

#3 User is offline   Whiskers 

  • journeyman
  • Group: Members
  • Posts: 99
  • Joined: 16-July 04

Posted 16 October 2004 - 05:14 AM

no change if i uncomment.
0

#4 User is offline   martouf 

  • enthusiast
  • Group: Members
  • Posts: 338
  • Joined: 09-July 04

Posted 16 October 2004 - 08:25 PM

what does "id -a" look like for users 'root' and 'khk' ?


0

#5 User is offline   Whiskers 

  • journeyman
  • Group: Members
  • Posts: 99
  • Joined: 16-July 04

Posted 17 October 2004 - 04:36 AM

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.
0

#6 User is offline   Whiskers 

  • journeyman
  • Group: Members
  • Posts: 99
  • Joined: 16-July 04

Posted 17 October 2004 - 05:41 AM

[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)
0

#7 User is offline   Whiskers 

  • journeyman
  • Group: Members
  • Posts: 99
  • Joined: 16-July 04

Posted 17 October 2004 - 06:03 AM

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?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users