1 (edytowany przez DarioX7 2012-10-30 19:05:18)

Temat: Pytania odnośnie poradnika CUPS i SANE

Witam. Mam pytanie, jeśli robiąc według poradnika jak postawić CUPS i w punkcie gdzie jest

/usr/lib/cups/backend/usb

nie wykrywa mi żadnej drukarki to czy coś źle robię, albo czy nie ma szans działania żądnej z drukarek?
(mam Canon IP1900 i Brother MFC 235C)

Gateway :Topton Intel Core i3-N305 16GB RAM 6x i226-V 2.5GbE
AP: 3x Netgear WAX220

2

Odp: Pytania odnośnie poradnika CUPS i SANE

Pokaż cat /proc/bus/usb/devices

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: Pytania odnośnie poradnika CUPS i SANE

root@WR1043ND:~$  cat /proc/bus/usb/devices

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  2, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 2.06
S:  Manufacturer=Linux 2.6.32.27 ehci_hcd
S:  Product=Atheros AR91xx built-in EHCI controller
S:  SerialNumber=ar71xx-ehci
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480 MxCh= 4
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=058f ProdID=6254 Rev= 1.00
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   1 Ivl=256ms

T:  Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#=  3 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0781 ProdID=5571 Rev= 1.22
S:  Manufacturer=SanDisk
S:  Product=Cruzer Fit
S:  SerialNumber=4C532000071224117294
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=200mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=125us

T:  Bus=01 Lev=02 Prnt=02 Port=02 Cnt=02 Dev#=  4 Spd=480 MxCh= 4
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=058f ProdID=6254 Rev= 1.00
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   1 Ivl=256ms

T:  Bus=01 Lev=03 Prnt=04 Port=01 Cnt=01 Dev#=  8 Spd=12  MxCh= 0
D:  Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=04f9 ProdID=01d5 Rev= 1.00
S:  SerialNumber=BROL7F880333
C:* #Ifs= 3 Cfg#= 1 Atr=c0 MxPwr=  2mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=07(print) Sub=01 Prot=02 Driver=usblp
E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS=  16 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E:  Ad=03(O) Atr=02(Bulk) MxPS=  16 Ivl=0ms
E:  Ad=84(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=85(I) Atr=03(Int.) MxPS=   8 Ivl=100ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=08(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=89(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms

T:  Bus=01 Lev=03 Prnt=04 Port=02 Cnt=02 Dev#=  9 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=04a9 ProdID=10cd Rev= 1.04
S:  Manufacturer=Canon
S:  Product=iP1900 series
S:  SerialNumber=D1756A
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  2mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=07(print) Sub=01 Prot=02 Driver=usblp
E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms

T:  Bus=01 Lev=03 Prnt=04 Port=03 Cnt=03 Dev#=  6 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=04e8 ProdID=2f03 Rev= 0.01
S:  Manufacturer=
S:  Product=Samsung S1 Mini
S:  SerialNumber=00000011E09310500128
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=198mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
Gateway :Topton Intel Core i3-N305 16GB RAM 6x i226-V 2.5GbE
AP: 3x Netgear WAX220

4

Odp: Pytania odnośnie poradnika CUPS i SANE

I:* If#= 0 Alt= 0 #EPs= 2 Cls=07(print) Sub=01 Prot=02 Driver=usblp

sterownik nadal masz w pamięci.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

5

Odp: Pytania odnośnie poradnika CUPS i SANE

ok robię re-boot router-a z/w

Gateway :Topton Intel Core i3-N305 16GB RAM 6x i226-V 2.5GbE
AP: 3x Netgear WAX220

6

Odp: Pytania odnośnie poradnika CUPS i SANE

no teraz mi wykrywa ;] :

root@WR1043ND:~$ /usr/lib/cups/backend/usb
DEBUG: list_devices
DEBUG: usb_find_busses=1
DEBUG: usb_find_devices=7
direct usb://Canon/iP1900%20series?serial=D1756A "Canon iP1900 series" "Canon iP1900 series" "MFG:Canon;CMD:BJL,HAPS,BSCCe,PLI;MDL:iP1900 series;CLS:PRINTER;DES:Canon iP1900 series;VER:1.04;STA:10;CHD:BKM,CLM;HRI:EU;MSI:E3;PDR:4;" ""
direct usb://Brother/MFC-235C?serial=BROL7F880333 "Brother MFC-235C" "Brother MFC-235C" "MFG:Brother;CMD:HBP,BRPJL;MDL:MFC-235C;CLS:PRINTER;" ""

Jeśli można dać małą sugestię to może dopisać do poradnika o reboot routera bo mogą się inni głowić tak jak ja tongue .

Gateway :Topton Intel Core i3-N305 16GB RAM 6x i226-V 2.5GbE
AP: 3x Netgear WAX220

7

Odp: Pytania odnośnie poradnika CUPS i SANE

A teraz robię skaner sieciowy SANE i też problem z wykrywalnością hmm
tu myślę że drukarka - Brother MFC 235C nie przedstawia scannera routerowi i mam pytanie.
Czy według tego: http://welcome.solutions.brother.com/bs … scn1c.html dało by się zmusić do wykrycia scannera ?

Gateway :Topton Intel Core i3-N305 16GB RAM 6x i226-V 2.5GbE
AP: 3x Netgear WAX220

8

Odp: Pytania odnośnie poradnika CUPS i SANE

Wg tego? http://eko.one.pl/forum/viewtopic.php?pid=53480#p53480

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

9

Odp: Pytania odnośnie poradnika CUPS i SANE

tak  i zatrzymałem się na:

scanimage -L
Gateway :Topton Intel Core i3-N305 16GB RAM 6x i226-V 2.5GbE
AP: 3x Netgear WAX220

10

Odp: Pytania odnośnie poradnika CUPS i SANE

A zatrzymaj cupsa i sprawdź.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

11 (edytowany przez DarioX7 2012-10-30 20:26:59)

Odp: Pytania odnośnie poradnika CUPS i SANE

dalej to samo czyli nic nie wykrywa
Jakieś inne pomysły?

Gateway :Topton Intel Core i3-N305 16GB RAM 6x i226-V 2.5GbE
AP: 3x Netgear WAX220

12

Odp: Pytania odnośnie poradnika CUPS i SANE

Pogrzeb więc po plikach i poszukaj. Ja sane od 12 lat nie używałem (http://eko.one.pl/?p=RownoleglySkaner <- poradnik z 2000 roku smile)

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

13

Odp: Pytania odnośnie poradnika CUPS i SANE

a patrzyłeś na to: ( z strony brother dla linuxa "Setting for normal users (Required for USB Connection)" )

1. Open "/etc/fstab"
2. Add or modify a line for /proc/bus/usb as follows.
    none /proc/bus/usb usbdevfs auto,devmode=0666 0 0
3. umount /proc/bus/usb
4. mount /proc/bus/usb
5. mknod -m 666 /dev/usbscanner c 180 48

może to by pomogło ?

Gateway :Topton Intel Core i3-N305 16GB RAM 6x i226-V 2.5GbE
AP: 3x Netgear WAX220

14 (edytowany przez sebastan 2012-10-30 20:37:23)

Odp: Pytania odnośnie poradnika CUPS i SANE

Jako, że to mój "tutorialek" to muszę powiedzieć, że jest poprawny, co kilkukrotnie przetestowałem na sobie.
Możesz zrobić restart z odpiętym kablem od skanera, a po uruchomieniu podpiąć go i spróbować wtedy.
Ewentualnie Twój model może wymagać niestandardowych działań, choćby takich jak kolega wyżej podał. Mój Canon nie wymagał nic ponad to, co opisałem.

15 (edytowany przez DarioX7 2012-10-30 21:03:39)

Odp: Pytania odnośnie poradnika CUPS i SANE

tylko że ja mam "all in one"

T:  Bus=01 Lev=03 Prnt=04 Port=01 Cnt=01 Dev#=  5 Spd=12  MxCh= 0
D:  Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=04f9 ProdID=01d5 Rev= 1.00
S:  SerialNumber=BROL7F880333
C:* #Ifs= 3 Cfg#= 1 Atr=c0 MxPwr=  2mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=07(print) Sub=01 Prot=02 Driver=(none)
E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS=  16 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E:  Ad=03(O) Atr=02(Bulk) MxPS=  16 Ivl=0ms
E:  Ad=84(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=85(I) Atr=03(Int.) MxPS=   8 Ivl=100ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=08(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=89(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms

a tak mi wykrywa po podłączeniu:

Oct 30 21:01:37 WR1043ND user.info kernel: usb 1-1.3.2: new full speed USB device using ar71xx-ehci and address 8
Oct 30 21:01:37 WR1043ND user.info kernel: usb 1-1.3.2: configuration #1 chosen from 1 choice
Oct 30 21:01:37 WR1043ND user.info kernel: scsi3 : SCSI emulation for USB Mass Storage devices
Oct 30 21:01:37 WR1043ND user.debug kernel: usb-storage: device found at 8
Oct 30 21:01:37 WR1043ND user.debug kernel: usb-storage: waiting for device to settle before scanning
Oct 30 21:01:37 WR1043ND user.notice usb-modeswitch: 1-1.3.2:1.0: Manufacturer=? Product=? Serial=BROL7F880333
Oct 30 21:01:37 WR1043ND user.notice usb-modeswitch: 1-1.3.2:1.1: Manufacturer=? Product=? Serial=BROL7F880333
Oct 30 21:01:37 WR1043ND user.notice usb-modeswitch: 1-1.3.2:1.2: Manufacturer=? Product=? Serial=BROL7F880333
Oct 30 21:01:42 WR1043ND user.notice kernel: scsi 3:0:0:0: Direct-Access     Brother  MFC-235C         1.00 PQ: 0 ANSI: 2
Oct 30 21:01:42 WR1043ND user.debug kernel: usb-storage: device scan complete
Oct 30 21:01:42 WR1043ND user.notice kernel: sd 3:0:0:0: [sdb] Attached SCSI removable disk
Gateway :Topton Intel Core i3-N305 16GB RAM 6x i226-V 2.5GbE
AP: 3x Netgear WAX220

16

Odp: Pytania odnośnie poradnika CUPS i SANE

Też mam "all in one". Po restarcie scanimage -L bez zmian?

17

Odp: Pytania odnośnie poradnika CUPS i SANE

hmm pytanko:

root@WR1043ND:~$ 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.
  # Also you need support for SCSI Generic (sg) in your operating system.
  # If using Linux, try "modprobe sg".

found USB scanner (vendor=0x04f9, product=0x01d5) at libusb:001:008
  # 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.
root@WR1043ND:~$ scanimage -L

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).

czy to co podkreśliłem może świadczyć że wykryło czy to tylko taka sobie informacja ?

Gateway :Topton Intel Core i3-N305 16GB RAM 6x i226-V 2.5GbE
AP: 3x Netgear WAX220

18

Odp: Pytania odnośnie poradnika CUPS i SANE

Porównaj z moim

root@Gargoyle:~# 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.
  # Also you need support for SCSI Generic (sg) in your operating system.
  # If using Linux, try "modprobe sg".

found USB scanner (vendor=0x04a9 [Canon], product=0x1730 [MP540 series]) at libusb:001:012
  # 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.
root@Gargoyle:~# scanimage -L
device `pixma:04A91730_9172BC' is a CANON Canon PIXMA MP540 multi-function peripheral

19

Odp: Pytania odnośnie poradnika CUPS i SANE

czyli coś wykrywa ale nie przedstawia odpowiednio
ok będę coś kombinował z tym może spróbuje czy na Windowsie go wykryje

Gateway :Topton Intel Core i3-N305 16GB RAM 6x i226-V 2.5GbE
AP: 3x Netgear WAX220

20

Odp: Pytania odnośnie poradnika CUPS i SANE

jednak raczej dla sanetwain135 nie wykrywa, a z xsane-win32 nie mam pojęcia jak to uruchomić znalazłem tylko wersję xsane-win32-0_90

Gateway :Topton Intel Core i3-N305 16GB RAM 6x i226-V 2.5GbE
AP: 3x Netgear WAX220

21

Odp: Pytania odnośnie poradnika CUPS i SANE

jak scanimage -L nie przestawia Twojego sprzętu, to oczywiście też sanetwain, czy xsane Ci nie zatrybi, bo nie jest w stanie zorientować się, że w podanej lokalizacji jest jakiś sprzęt.

A co do softu to sanetwain jest nowszy i wystarczający. A xsane jest w javie, więc odpalisz mając javę. Z tym , ze jest nie rozwijany od pewnego czasu.

22 (edytowany przez DarioX7 2012-10-30 21:58:59)

Odp: Pytania odnośnie poradnika CUPS i SANE

Więc pozostaje mi coś w rodzaju kompilacji sterownika dla sane ? Według rady Cezarego z posta nr 12 ? Source sterowników do skanera znalazłem: http://www.brother.com/cgi-bin/agreemen … ish_source tylko dalej ciężko będzie według tamtego poradnika z 2000 roku. hmm

Gateway :Topton Intel Core i3-N305 16GB RAM 6x i226-V 2.5GbE
AP: 3x Netgear WAX220

23

Odp: Pytania odnośnie poradnika CUPS i SANE

Niestety raczej sobie nie poradzę z tym, może ktoś jeszcze robił SANE oprócz @sebastan ?

Gateway :Topton Intel Core i3-N305 16GB RAM 6x i226-V 2.5GbE
AP: 3x Netgear WAX220

24

Odp: Pytania odnośnie poradnika CUPS i SANE

Czy można coś takiego wklepać do OpenWRT? :

# Brother MFC-235C
SYSFS{idVendor}=="0x04f9", SYSFS{idProduct}=="0x01d5", MODE="0664", GROUP="scanner"
Gateway :Topton Intel Core i3-N305 16GB RAM 6x i226-V 2.5GbE
AP: 3x Netgear WAX220

25

Odp: Pytania odnośnie poradnika CUPS i SANE

Jak zainstaluj sobie udev. Tylko po co jak masz w openwrt hotplug od tego.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.