OpenPrinting / ipp-usb

ipp-usb -- HTTP reverse proxy, backed by IPP-over-USB connection to device
BSD 2-Clause "Simplified" License
129 stars 11 forks source link

HP Multifunction Printers - Scanning doesnt work #63

Closed sasikumar-mhc closed 1 year ago

sasikumar-mhc commented 1 year ago

Hi, HP Printer Model : LaserJetPro MFP M329dw and 1 more HP MFT Printer(Will share the model number soon). I have tried using document scanner in ubuntu mate. It always shows as failed to connect to scanner.

ipp-usb-hp- laserjet pro MFP M329dw.zip

Had to remove ipp-usb and installed hplip and hp-plugin for getting scanner to work.

Attached whatever logs were available..

Thanks.

alexpevzner commented 1 year ago

Hi,

with ipp-usb proprietary drivers are not expected to work, but sane-airscan and sane-escl should work. Did you try some of them together with the ipp-usb?

debiantriage commented 1 year ago
alexpevzner commented 1 year ago

Hi @debiantriage,

from the ipp-usb log I see no attempt to scan using eSCL. But scanning part of the printer detected and published to Avahi. Looks like sane-airscan/sane-escl not installed or disabled.

debiantriage commented 1 year ago

Thank you @alexpevzner I meant to, but completely forgot to look at the file attached by @sasikumar-mhc ! Maybe @sasikumar-mhc would say which precise OS version is being used?

sasikumar-mhc commented 1 year ago

@debiantriage Im using ubuntu mate 22.04.1

sasikumar-mhc commented 1 year ago

@alexpevzner ubuntu mate comes preinstalled with ipp-usb and im hoping that they also included sane-airscan/sane-escl ?? or should it be installed manually by me?

@debiantriage ipp_tcp.txt ipp-usb.zip timeout.txt uscan_tcp.txt

looks like sane-airscan is already installed, please check the attached video.

https://drive.google.com/file/d/1mWyLhPrQjzNWEmOFzqurmdaTCniCDhtp/view?usp=share_link

Thanks.

alexpevzner commented 1 year ago

Hi @sasikumar-mhc,

looks like for now the problems are are actually at the sane-airscan side. I need its protocol trace logs.

Please, in the /etc/sane.d/airscan.conf file uncomment the following line:

[debug]
trace = ~/airscan/trace

Logs will be written to the ~/airscan/trace directory, which will be created automatically. For now I only need *.log files, *.tar files are not needed.

sasikumar-mhc commented 1 year ago

@alexpevzner simple-scan-zeroconf.log simple-scan-HP-LaserJet-Pro-M329-[8F773A]-(USB).log

Thanks.

alexpevzner commented 1 year ago

@sasikumar-mhc,

From the printer's response to the ScanJobs command, looks like scanning is administratively prohibited:

<Details>
    <ElementXPath>/ScanSettings/ContextID</ElementXPath>
    <Description>Scan State is disabled, context_id missing!</Description>
 </Details>

Manual (http://h10032.www1.hp.com/ctg/Manual/c06184015.pdf) on a page 78 says the following:

IMPORTANT: For security purposes, scanning remotely is disabled by default. To enable this feature, in the Embedded Web Server, open the Settings tab, click Security, click Administrator Settings, select the Enable checkbox beside Scan from a Computer or Mobile Device, and then click Apply

This is very likely, that from the administrative point of view, the device doesn't distinguish between eSCL scanning from network and from USB

So I suggest to try to tweak this setting.

sasikumar-mhc commented 1 year ago

@alexpevzner It worked. Thank you.

alexpevzner commented 1 year ago

Fixed by proper printer configuration