You are not logged in.

#1 2024-07-16 23:42:44

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,616

how to setup scanning for wireless HP all-in-one ?

Since a few weeks I do own a HP laserjet Tank 1604w MFP .

It is connected through WiFi 5 Ghz to my fritzbox router and printing through cups works fine without needing hplip..
I can also access the device from browser.

The printer does support airscan and I verfiied that (and WS-Scan & eSCL etc ) are enabled .

I have installed sane-airscan .

$ airscan-discover 
[devices]
  HP LaserJet Tank MFP 1604w = http://[2a10:3781:9ad:1:8669:93ff:fed9:1469]:53048/, WSD
  HP LaserJet Tank MFP 1604w = http://192.168.178.39:53048/, WSD
  HP LaserJet Tank MFP 1604w = http://[fe80::8669:93ff:fed9:1469%252]:53048/, WSD
$ 

airscan-discover has no problem detecting the scanner out of the box, scanimage -L doesn't see any devices .

Manually using the uris shown by airscan-discover for scanimage fail .

$ scanimage --device "http://[2a10:3781:9ad:1:8669:93ff:fed9:1469]:53048/, WSD" --format=png --resolution 300 >scan01.png
scanimage: open of device http://[2a10:3781:9ad:1:8669:93ff:fed9:1469]:53048/, WSD failed: Invalid argument
$ 

xsane & skanlite don't find any scanner devices.

I haven't tried with hplip yet as this device should not need it to work.
How to get the scanner working ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#2 2024-07-17 07:04:28

seth
Member
Registered: 2012-09-03
Posts: 56,103

Re: how to setup scanning for wireless HP all-in-one ?

I've no experience w/ airscan whatsoever, but I suspect the result of the discover is supposed t ogo into the airscan.conf
https://man.archlinux.org/man/extra/san … rscan.5.en

Try

--device wsd:HP LaserJet Tank MFP 1604w:http://[2a10:3781:9ad:1:8669:93ff:fed9:1469]:53048/

If that's not it, I'd try to access it via IPv4.

Offline

#3 2024-07-17 12:18:21

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,616

Re: how to setup scanning for wireless HP all-in-one ?

Getting airscan-discover to see the scanner required disabling my local firewall.
Will have to investigate why, but that comes later.

using the output of discover in airscan.conf did allow scanimage and scanner programs to see the scanner .

testing using scanimage --format=png --output-file test.png

When attempting to use the top ipv6 address for scanning all lights on the printer kept flashing.
Using the ipv4 uri scanner did flash briefly then scan lamp was powered on and things got further but no data was received (firewall still off).

a local copy works fine and fast, so scanning does work physically .

firewall enabled again, for now it seems driverless scanning doesn't work as advertised .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#4 2024-07-17 13:15:22

merlock
Member
Registered: 2018-10-30
Posts: 246

Re: how to setup scanning for wireless HP all-in-one ?

@Lone_Wolf: Is it possible to go wired with your device?

I had all sorts of hair-pulling issues with my HP AIO, while connected via WiFi.

Soon as I plugged an ethernet cable in, everything miraculously disappeared.


Eenie meenie, chili beanie, the spirits are about to speak -- Bullwinkle J. Moose
It's a big club...and you ain't in it -- George Carlin
Registered Linux user #149839
perl -e 'print$i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10); '

Offline

#5 2024-07-17 14:22:49

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,616

Re: how to setup scanning for wireless HP all-in-one ?

Nope, only wireless . 
I did notice there's a firmware update for the device, will try that later.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#6 2024-07-27 11:31:13

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,616

Re: how to setup scanning for wireless HP all-in-one ?

Firmware update didn't help.
Some support threads on hp site suggested  my 2.4 / 5 Ghz dual network with one SSID could be the cause.
I changed it so the HP device only uses 2.4 , no change.

I then decided to try the hplip tools , installed AUR hplip-plugin , ran hp-check and installed missing deps.

hp-setup detected the scanner twice : one as airscan device and one as hpaio device.

hp-scan functioned with the hpaio device and so did scanimage .
scanimage on the airscan device failed as expected without useful output, , but hp-scan did show something useful.

$ hp-scan --output=test.png
/usr/bin/hp-scan:255: SyntaxWarning: invalid escape sequence '\*'
  ("", "where <dest_list> is a comma separated list containing one or more of: 'file'\*, ", "option", False),
/usr/bin/hp-scan:257: SyntaxWarning: invalid escape sequence '\*'
  ("Scan mode:", "-m<mode> or --mode=<mode>. Where <mode> is 'gray'\*, 'color' or 'lineart'.", "option", False),
/usr/bin/hp-scan:274: SyntaxWarning: invalid escape sequence '\*'
  ("", "where <units> is 'mm'\*, 'cm', 'in', 'px', or 'pt' ('mm' is default).", "option", False),

HP Linux Imaging and Printing System (ver. 3.24.4)
Scan Utility ver. 2.2

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.


-----------------
| SELECT DEVICE |
-----------------

  Num       Scan device URI                                                  
  --------  -----------------------------------------------------------------
  0         airscan:w0:HP LaserJet Tank MFP 1604w IPv4                       
  1*        hpaio:/net/HP_LaserJet_Tank_MFP_160x?hostname=NPID91469.fritz.box

Enter number 0...1 for device (q=quit, <enter>=default: 1*) ?0
warning: Output file '/home/panoramix/test.png' exists. File will be overwritten.
Using device airscan:w0:HP LaserJet Tank MFP 1604w IPv4
Opening connection to device...

Resolution: 300dpi
Mode: gray
Compression: JPEG
Scan area (mm):
  Top left (x,y): (0.000000mm, 0.000000mm)
  Bottom right (x,y): (209.981796mm, 0.000015mm)
  Width: 209.981796mm
  Height: 0.000015mm
Destination(s): file
Output file: /home/panoramix/test.png

Warming up...
 

Scanning...
error: SANE: Invalid argument (code=4)
Closing device.
$

It appears something goes wrong with sane - airscan .

I would prefer to utilize airscan, but atleast I can now use the scanner.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#7 2024-07-27 12:03:00

NoSavvy
Member
From: Dorchester, Dorset, UK
Registered: 2013-01-23
Posts: 107

Re: how to setup scanning for wireless HP all-in-one ?

Had a similar problem earlier this year with another system. Solved by the following:-

Although the printer is recognised and works OK as a scanner and printer with the firewall enabled, after updates only the printer is recognised.
Cure.
Delete any scanner related files in ~/.config, then disable the firewall and restart Kooka, Skanlite or Skanpage and then the scanner is found. Re-enable the firewall and it is working. Rebooted and still working.

Last edited by NoSavvy (2024-07-27 12:25:51)

Offline

#8 2024-07-27 12:07:33

Gosi
Member
From: Vienna, Austria
Registered: 2010-02-25
Posts: 103

Re: how to setup scanning for wireless HP all-in-one ?

I have the feeling your mDNS setup has issues. This is how scan/print programs find network devices.

Getting airscan-discover to see the scanner required disabling my local firewall.

points in this direction.

Please read
https://wiki.archlinux.org/title/Avahi and
https://wiki.archlinux.org/title/Systemd-resolved
carefully.

Offline

#9 2024-07-27 13:28:01

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,616

Re: how to setup scanning for wireless HP all-in-one ?

Gosi wrote:

I have the feeling your mDNS setup has issues. This is how scan/print programs find network devices.

None of systemd-{networkd,resolved,timesyncd} are running on any archlinux system I maintain.
Also the problem persisted with the firewall completely off.

https://wiki.archlinux.org/title/Avahi#Firewall does mention it needs udp port 5353, I'll consider opening that.

@NoSavvy :
I tested with a fresh user, same issue. airscan fails, hpaio works.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#10 2024-07-27 14:24:55

seth
Member
Registered: 2012-09-03
Posts: 56,103

Re: how to setup scanning for wireless HP all-in-one ?

4 is EINTR - what points at #4 and so does

Some support threads on hp site suggested  my 2.4 / 5 Ghz dual network with one SSID could be the cause.

Warming up...
 

Scanning...

Does the scanner actually start some action here? (Light up or humm a bit?)

Any chance to patch a cable through the fields and into the scanner?

Offline

#11 2024-07-27 15:41:26

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,616

Re: how to setup scanning for wireless HP all-in-one ?

HP LaserJet Tank MFP 1604w -
Multifunctionele prin ZW - laser - 216 x 297
mm (origineel) - A4Legal (d
VNF4G02753

No ethernet present in the device, guess I should have gotten the 1604 nw instead ..


Note: nft ruleset flushed

scanimage airscan :
all lights on scanner flash continously, device has lost connection and needs to be forced to power off .

poweron , wait for wireless to connect
hp-scan airscan device : no visual effect on printer.
scaimage airscan has same effect.
poweroff

poweron
scanimage hpaio : device responds , but scan is not completed.
error message in terminal :
scanimage: sane_start: Error during device I/O

hp-scan hpaio : scan works fine

removed powercord from device to guaranteer cold start
scanimage hpaio : scanner lamp is lit and moves , connection stays stable but device I/O error and nothing is received.
hp-scan hpaio : works fine.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB