Thanks for this tutorial!! I just got a TS-219 PII. I have also a HP-Deskjet F4180 all-in-one printer/scanner/copier. I had in the past a NSLU2 running debian in the spot of the TS-219 but saddly the little slug had to go. Having been through the scanner setup once I was not looking forward to doing this much work again to get it to work with the qnap
Anyway, I followed the tutorial in this thread but I could not activate the scanner using the default steps. My symptoms were: during sane-find-scanner I could see the scanner getting recognised, but with scanimage -L I would get zero scanners found.
Enter hplip package, which provided support through hpaio. After installing hplip, I could see the scanner also via scanimage -L. BUT I could not see the scanner when trying to test it via eg
The culprit: dbus. Apparently it does not get started automatically on my qnap, so I need to fix that. In my test, after I didscanimage -d hpaio:/usb/Deskjet_F4100_series?serial=CN7CC6W1WS04TJ --test
/opt/etc/init.d/S20dbus start
the printer started reacting to my commands through scanimage using hpaio. The next logical step will be to connect it through the rest of the tutorial - using xinetd and saned.
A word of advice:
1. please make sure that your installation has all the libraries you need eg in /opt/lib/sane you should see the library needed for your printer - depending which dll is used. If you use hpaio there should be a /opt/lib/sane/libsane-hpaio.so link pointing to the right library.
2. before engaging setting the xinetd/saned part of the tutorial you should be able to do some basic tests using scanimage on the Qnap itself (via telnet or ssh), to confirm that the scanner does scan when you command it to. The command
lists the printer and gives you an identifier to use for more testing - using scanimage. In my case this output isscanimage -L
Then to do a basic scanning test run a command similar to thisdevice `hpaio:/usb/Deskjet_F4100_series?serial=CN7CC6W1WS04TJ' is a Hewlett-Packard Deskjet_F4100_series all-in-one
which gives as output in my casescanimage -d hpaio:/usb/Deskjet_F4100_series?serial=CN7CC6W1WS04TJ --test
If that comes out, you have green light to do the networking part. Otherwise, you need to dig more as other messages in the thread indicated.scanimage: scanning image of size 638x877 pixels at 24 bits/pixel
scanimage: acquiring RGB frame, 8 bits/sample
scanimage: reading one scanline, 1914 bytes... PASS
scanimage: reading one byte... PASS
scanimage: stepped read, 2 bytes... PASS
scanimage: stepped read, 4 bytes... PASS
scanimage: stepped read, 8 bytes... PASS
scanimage: stepped read, 16 bytes... PASS
scanimage: stepped read, 32 bytes... PASS
scanimage: stepped read, 64 bytes... PASS
scanimage: stepped read, 128 bytes... PASS
scanimage: stepped read, 256 bytes... PASS
scanimage: stepped read, 512 bytes... PASS
scanimage: stepped read, 1024 bytes... PASS
scanimage: stepped read, 2048 bytes... PASS
scanimage: stepped read, 2047 bytes... PASS
scanimage: stepped read, 1023 bytes... PASS
scanimage: stepped read, 511 bytes... PASS
scanimage: stepped read, 255 bytes... PASS
scanimage: stepped read, 127 bytes... PASS
scanimage: stepped read, 63 bytes... PASS
scanimage: stepped read, 31 bytes... PASS
scanimage: stepped read, 15 bytes... PASS
scanimage: stepped read, 7 bytes... PASS
scanimage: stepped read, 3 bytes... PASS
I hope this helps.