Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HP Envy 4500 Support #488

Closed
cullenmcdermott opened this issue Jun 12, 2022 · 14 comments
Closed

HP Envy 4500 Support #488

cullenmcdermott opened this issue Jun 12, 2022 · 14 comments

Comments

@cullenmcdermott
Copy link

Hi! This tool looks awesome. I started playing with it with my HP Envy 4500 this morning and it generally works but there are a few weird things I'm not sure if I'm doing something wrong or its due to this not officially supporting this device.

  1. All my scans appear as jpegs, even though I select pdf on the HP itself
  2. I can only really scan one thing and then I need to restart the docker container. It will sometimes work with a few scans in a row but rarely. I enabled debug logging and when I try to start the second scan after a restart I see this being spammed in the logs
0058 -> {"baseURL":"http://192.168.0.212","url":"/WalkupScanToComp/WalkupScanToCompEvent","method":"GET","responseType":"text"}
0058 <- {"status":200,"data":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<!---->\r\n<wus:WalkupScanToCompEvent xsi:schemaLocation=\"http://www.hp.com/schemas/imaging/con/ledm/walkupscan/2010/09/28 WalkupScanToComp.xsd\" xmlns:wus=\"http://www.hp.com/schemas/imaging/con/ledm/walkupscan/2010/09/28\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n\t<wus:WalkupScanToCompEventType>ScanRequested</wus:WalkupScanToCompEventType>\r\n</wus:WalkupScanToCompEvent>\r\n","headers":{"server":"HP HTTP Server; HP ENVY 4500 series - A9T80A; Serial Number: CNfoobarbaz; Built:Mon Jun 15, 2020 09:29:10AM {MKM1FN2025AR}","content-type":"text/xml","content-length":"425","cache-control":"must-revalidate, max-age=0","pragma":"no-cache"},"statusText":"OK"}
0059 -> {"baseURL":"http://192.168.0.212","url":"/WalkupScanToComp/WalkupScanToCompEvent","method":"GET","responseType":"text"}
0059 <- {"status":200,"data":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<!---->\r\n<wus:WalkupScanToCompEvent xsi:schemaLocation=\"http://www.hp.com/schemas/imaging/con/ledm/walkupscan/2010/09/28 WalkupScanToComp.xsd\" xmlns:wus=\"http://www.hp.com/schemas/imaging/con/ledm/walkupscan/2010/09/28\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n\t<wus:WalkupScanToCompEventType>ScanRequested</wus:WalkupScanToCompEventType>\r\n</wus:WalkupScanToCompEvent>\r\n","headers":{"server":"HP HTTP Server; HP ENVY 4500 series - A9T80A; Serial Number: CNfoobarbaz; Built:Mon Jun 15, 2020 09:29:10AM {MKM1FN2025AR}","content-type":"text/xml","content-length":"425","cache-control":"must-revalidate, max-age=0","pragma":"no-cache"},"statusText":"OK"}

Eventually the HP times out but this continues to be spammed until I restart the container

Thanks for any help you can provide!

@manuc66 manuc66 changed the title HP Envy Support HP Envy 4500 Support Jun 13, 2022
@manuc66
Copy link
Owner

manuc66 commented Jun 13, 2022

@cullenmcdermott Could you send the full log because what's before could be very useful to understand why the app is stuck in this state ?

Thanks

@cullenmcdermott
Copy link
Author

Hey, sorry for the delay on this. I'll grab the full log later this afternoon or this evening and share it here.

@cullenmcdermott
Copy link
Author

Here's a gist of the logs from when I start the container, then I perform a successful scan, then try to start a second one and it just keeps looping with that last log.

https://gist.github.com/cullenmcdermott/9bc441298002660bb9182c4e1f7d559d

@manuc66
Copy link
Owner

manuc66 commented Jun 18, 2022

Hi @cullenmcdermott thanks for the full logs provided

Could you send me the xml content of http://1192.168.0.212/WalkupScanToComp/WalkupScanToCompCaps

Mine is have this content

<?xml version="1.0" encoding="UTF-8"?>
<!---->
<wus:WalkupScanToCompCaps xsi:schemaLocation="http://www.hp.com/schemas/imaging/con/ledm/walkupscan/2010/09/28 ../../schemas/WalkupScanToComp.xsd" xmlns:dd="http://www.hp.com/schemas/imaging/con/dictionaries/1.0/" xmlns:wus="http://www.hp.com/schemas/imaging/con/ledm/walkupscan/2010/09/28" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<dd:Version>
		<dd:Revision>SVN-IPG-LEDM.351</dd:Revision>
	</dd:Version>
	<wus:MaxNetworkDestinations>15</wus:MaxNetworkDestinations>
	<wus:SupportsMultiItemScanFromPlaten>true</wus:SupportsMultiItemScanFromPlaten>
	<wus:UserActionTimeout>
		<dd:ValueFloat>60</dd:ValueFloat>
		<dd:Unit>seconds</dd:Unit>
	</wus:UserActionTimeout>
	<wus:ShortcutSupport access="readOnly">
		<wus:Shortcut>SavePDF</wus:Shortcut>
		<wus:Shortcut>SaveJPEG</wus:Shortcut>
		<wus:Shortcut>EmailPDF</wus:Shortcut>
		<wus:Shortcut>EmailJPEG</wus:Shortcut>
		<wus:Shortcut>GeneralScan</wus:Shortcut>
	</wus:ShortcutSupport>
</wus:WalkupScanToCompCaps>

I guess you don't have SupportsMultiItemScanFromPlaten set to true

@cullenmcdermott
Copy link
Author

cullenmcdermott commented Jun 18, 2022

Yeah it looks like that is set to false. I'm looking to see if there's a way to enable that.

<!---->
<wus:WalkupScanToCompCaps xsi:schemaLocation="http://www.hp.com/schemas/imaging/con/ledm/walkupscan/2010/09/28 WalkupScanToComp.xsd">
<dd:Version>
<dd:Revision>SVN-IPG-LEDM.351</dd:Revision>
</dd:Version>
<wus:MaxNetworkDestinations>15</wus:MaxNetworkDestinations>
<wus:SupportsMultiItemScanFromPlaten>false</wus:SupportsMultiItemScanFromPlaten>
<wus:UserActionTimeout>
<dd:ValueFloat>60</dd:ValueFloat>
<dd:Unit>seconds</dd:Unit>
</wus:UserActionTimeout>
</wus:WalkupScanToCompCaps>

@manuc66
Copy link
Owner

manuc66 commented Jun 18, 2022

@cullenmcdermott I'll try to read that information and act accordingly

@cullenmcdermott
Copy link
Author

That doesn't appear to run correctly. It seems to start, but never emits any logs, and my scanner is unable to reach it.

@manuc66
Copy link
Owner

manuc66 commented Jun 19, 2022

Could you confirm you did not forget the parameter that gives the ip address ?

@cullenmcdermott
Copy link
Author

Yes I'm using the exact same config just changing the tag. Here's the config I'm using just for clarity, its a portion of a Nomad Jobspec. Changing the image line to use the tag feature_SupportsMultiItemScanFromPlaten-false does not work for me.

    task "hp-scan" {

      env {
        IP = "192.168.0.212"
        CMDLINE = "-D"
        PATTERN="\"scan\"_dd.mm.yyyy_hh:MM:ss"
        TZ = "America/Boise"
      }

      resources {
        cpu = 250
        memory = 250
      }

      driver = "docker"

      config {
        image = "manuc66/node-hp-scan-to"
        hostname = "document-ingest"
        mount {
          target = "/scan"
          source = "paperless-consume"
          volume_options {
            driver_config {
              name = "local"
              options = {
                type = "nfs"
                device = ":/volume1/paperless-consume"
                o = "addr=192.168.0.234,vers=3,timeo=180,tcp,rw"
              }
            }
          }
        }
      }
    }

@manuc66
Copy link
Owner

manuc66 commented Jun 19, 2022

I have the same issue when using the docker container too, (but not when launching from npm)

I don't know why

@manuc66
Copy link
Owner

manuc66 commented Jun 20, 2022

The starting issue is not linked to changes, see #497

@manuc66
Copy link
Owner

manuc66 commented Jun 21, 2022

@cullenmcdermott if you still even want to test the feature, you can docker exec -it docker_name sh while the container is in freezed state and then launch the app manually with node index.js command (see here to translate the arguments)

@manuc66
Copy link
Owner

manuc66 commented Jul 2, 2022

@cullenmcdermott issue #497 has been fixed, can you try "manuc66/node-hp-scan-to:latest" ? (The PR has been merged)

@manuc66 manuc66 closed this as completed Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants