Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Pete

Pages: 1 ... 33 34 [35] 36 37 ... 87
511
Applications / Re: Using a scanner with hplip?
« on: April 26, 2019, 12:39:19 am »
Hi Paul

I notice that you do not mention where you got the hpaio.dll involved from - presumably an updated build as it appears to work.

Having spent a few hours trying to understand why hpaio.dll cannot get the data from models.dat here regardless of how I tweaked the hplip.conf file and noticing the different code line numbers in our logs I suspected that you could be using a different build of hpaio.dll - Yes, seems I currently have the naff one...  ;-)

Getting Tame working with the scanner is an adventure I can put off until hpaio is sorted and reasonably stable - although I seem to recall a useful discussion about adding scanners to Tame on these forums recently  :-)

 
Regards

Pete

512
Applications / Re: Using a scanner with hplip?
« on: April 25, 2019, 05:00:02 pm »
Hi Paul

The problem with the approximate 12 hour time difference is that I am - or should be - in bed while you are on freenode. Guess I'll have to stay up very late or get up very early to do some live debugging  ;-)

Checking your hplip.conf I do not see anything obviously wrong with mine.

Had a look at hpaio.dll using PMdll and checked ANPM for possible *nixy updates; installed latest pthread and libcx from netlabs-exp.  No change.

Comparing your log output to mine I see some differences that raise a question.

Your log snippet

[sanei_debug] Setting debug level of dll to 0.
[sanei_debug] Setting debug level of hpaio to 255.
[hpaio] sane_hpaio_init(): scan/sane/hpaio.c 317
[hpaio] sane_hpaio_open(/net/envy_photo_6200_series?ip=192.168.1.252): scan/sane/hpaio.c 351 scan_type=7 scansrc=1


My log snippet

[sanei_debug] Setting debug level of hpaio to 255.
[hpaio] sane_hpaio_init(): scan/sane/hpaio.c 348
[dll] init: backend `hpaio' is version 1.0.0
[hpaio] sane_hpaio_open(/net/envy_photo_6200_series?ip=192.168.1.252): scan/sane/hpaio.c 387 scan_type=0 scansrc=1556202374
scanimage: open of device hpaio:/net/envy_photo_6200_series?ip=192.168.1.252 failed: Operation not supported


My log does not have this line:  [sanei_debug] Setting debug level of dll to 0.
What debug values have you set before scanning?
I have these settings

  set SANE_DEBUG_HPAIO=255
  set SANE_DEBUG_DLL=255
  set sane_config_dir=j:\programs\sane\etc\sane.d

The hpaio] sane_hpaio_init(): scan/sane/hpaio.c lines have different values at the end; yours is 317, mine is 348
Are those values reflecting the line number of the code involved?

Following that line my log has: [dll] init: backend `hpaio' is version 1.0.0
Not shown in your log snippet.

I do have to ask: Are we using the same hpaio.dll ?
Mine is:

Directory of J:\PROGRAMS\SANE\LIB\SANE

19-04-19  3:07p         <DIR>    551 a---  .
21-03-19  5:13p         <DIR>    630 a---  ..
14-01-19  9:53a     2,334,352    223 a---  hpaio.dll


Regards

Pete






513
Applications / Re: Using a scanner with hplip?
« on: April 25, 2019, 05:58:41 am »
Hi Paul

From your log output

"[hpaio] sane_hpaio_open(/net/envy_photo_6200_series?ip=192.168.1.252): scan/sane/hpaio.c 351 scan_type=7 scansrc=1"

it seems this should work...

Obviously no problem reading the device attributes from models.dat in your setup as "scan_type=7 scansrc=1" are correct for the scanner.

Now to figure out what I have mis-configured...

Just in case I had left any traces of the rpm hplip files within the /hplip directory tree I deleted the tree and reinstalled files. No, that did not resolve the problem.

Not sure what to use in hplip.conf for the "bin= setting" which is currently set as m:/user/bin where the rpm installed *nixy programs live.

Another thought: Does hpaio.dll parse the models.dat file directly or does it call an external program?


Regards

Pete




514
Web applications / Re: Browser or website problem?
« on: April 25, 2019, 04:34:21 am »
Hi Dave

All is working as expected now - Martin seems to have it sorted out  :-)


Thanks

Pete

515
Applications / Re: Using a scanner with hplip?
« on: April 25, 2019, 01:06:57 am »
Hi Paul

Sorry to report no change. Looking at models.dat it does not seem to be restricted to working with a specific version.

Trying to scan with syslogd running adds identical entries to syslog.msg and this in the debug log:-

[dll] init: backend `hpaio' is version 1.0.0
[hpaio] sane_hpaio_open(/net/envy_photo_6200_series?ip=192.168.1.252): scan/sane/hpaio.c 387 scan_type=0 scansrc=1556145112
scanimage: open of device hpaio:/net/envy_photo_6200_series?ip=192.168.1.252 failed: Operation not supported
[dll] sane_exit: exiting


The syslogd entries seem to suggest that the models.dat file is not being read/read correctly for some reason.

If I have this right the "scan_type=0" in the above log snippet means that the device does not have a scanner which seems to support the syslogd entries about no attributes found for the device.

 
Should there have been an updated hpaio.dll somewhere in the http://smedley.id.au/tmp/hpaio-3.18.12-os2-20190425.zip package?


Regards

Pete

516
Applications / Re: Using a scanner with hplip?
« on: April 24, 2019, 06:37:12 pm »
Hi ivan

I count a network printer as network hardware in this instance  :-)

As for whether the scanner can be used from an OS/2 based system: That is what we are trying to achieve.

In theory it should be possible as this device works well in linux using the hplip printer/scanner support from HP for linux and hplip is open source - see https://developers.hp.com/hp-linux-imaging-and-printing - and ported to OS/2.

The printing side seems to work fine - must admit I have not tried photo output yet, hope that works - and Paul is trying to figure out what goes wrong with scanning; Could be a case of "Operator error - Replace Operator!" as I may have setting wrong somewhere, possibly in hplip.conf...

However, the syslogd output "no envy_photo_6200_series attributes found in   J:/hplip/lib/sane /data/models/models.dat" indicates a problem reading the settings for the scanner from the models.dat file - so it may not be my fault  :-)


Regards

Pete


517
Web applications / Re: Browser or website problem?
« on: April 24, 2019, 06:11:38 pm »
Hi All

Thanks for suggestions but no change.

I do notice that all links on os2world.com that point to somewhere within os2world.com are https: with the exception of all links in the section "Latest Forum Posts" which are all http: and result in 404s.

As Seamonkey seems to handle other websites that have the need to convert http: to https: - eg opening http://theartofsound.net/forum/ results in https://theartofsound.net/forum/ loading - I guess this is something specific to os2world.com and I'll just have to manually add the "s" to "http" when the 404 loads...


I was just about to post the above when I got the "Warning...new reply..." and reloaded os2world.com then, just to see, I middle-clicked (open link in new tab) on the link to ivans post on this topic.

No problem, the link opened in a new tab and displayed ivans post. Other links now work as expected as well. So, No, we are not going to have to manually change the url ivan - as you say that would have been a PITA  :-).


Regards

Pete



518
Web applications / Browser or website problem?
« on: April 24, 2019, 04:25:34 pm »
Hi All

I could not access os2world the other day as it seemed to have crashed with a "Database connection error".

Now that it is back I do not seem to be able to click on a forum topic on os2world.com and access the discussion eg clicking on "Samba client on OS2 Warp 4.52" results in this page opening http://www.os2world.com/forum/index.php?topic=2064.msg21495#msg21495 which displays "404 Not Found" on the browser tab and

"Not Found

The requested URL /forum/index.php was not found on this server."


Looking at the url I changed it from http: to https: and the discussion is now displayed.

Anyone else having this problem? - and is it a website problem?


Regards

Pete

519
Applications / Re: Using a scanner with hplip?
« on: April 23, 2019, 04:17:59 am »
Hi ivan

Very sure of the ip address as I assigned it  :-)

I use static ip addresses for "static" equipment - Desktop systems and printer/scanner - and allocate a range of ip addresses for DHCP to be used by laptops/tvs/pvrs/mobiles/visiting devices.

When printing from cups the device uri is socket://192.168.1.252:9100 but think a port number is not needed for the scanner device uri - I could be wrong which is why it would be handy to find a version of hp-mkuri/hp-makeruri that works with the installed hplip to check that.

Come to think of it "scanimage -L" returns what it finds, it is not given an ip address to look at. From previous log extract:-
  hp_envy_photo_6200_series?ip=192.168.1.252
so, no port number needed and confirms the ip address.


Regards

Pete

520
Applications / Re: Using a scanner with hplip?
« on: April 23, 2019, 12:12:44 am »
Hi Paul

I'll investigate hpcups.drv in the near future and report back- I have to setup the printer on another OS/2 Desktop so will go the install route rather than simply copying required bits from working Desktop.


This hp-makeuri/hp-mkuri is not something easily found. The version supplied with the rpm hplip does not find the printer or scanner when run (see previous post) and does not work with the installed-from-zip hplip - probably a few support files missing.


Correct, I had not commented out the pixma.conf connection line. That solves that mystery  :-)


I started syslogd.exe and then ran this cmd file

  set SANE_DEBUG_HPAIO=255
  set SANE_DEBUG_DLL=255
  set sane_config_dir=j:\programs\sane\etc\sane.d
  rem scanimage -d hpaio:/net/envy_photo_6200_series?ip=192.168.1.252 1>ENVY.pnm 2>debugENVY.log
  scanimage -L 2> debug-L.log

then stopped syslogd.

The syslogd output file contains:-

  [localhost] Apr 22 22:44:32 scanimage: io/hpmud/model.c 538: no envy_photo_6200_series attributes found in   J:/hplip/lib/sane /data/models/models.dat

  [localhost] Apr 22 22:44:32 scanimage: io/hpmud/model.c 549: no envy_photo_6200_series attributes found in J:/hplip/lib/sane/data/models/unreleased/unreleased.dat

  [localhost] Apr 22 22:44:32 scanimage: io/hpmud/model.c 538: no hp_envy_photo_6200_series attributes found in J:/hplip/lib/sane/data/models/models.dat

  [localhost] Apr 22 22:44:32 scanimage: io/hpmud/model.c 549: no hp_envy_photo_6200_series attributes found in J:/hplip/lib/sane/data/models/unreleased/unreleased.dat

The above J:/hplip/lib/sane/data/models/models.dat file does not exist, in fact, the directory structures below J:/hplip/lib/sane/ do not exist.

Found J:/hplip/share/hplip/data/models/models.dat and copied to J:/hplip/lib/sane/data/models/models.dat then retested with the same syslogd output.

Looking through models.dat there is no mention of my device.
Checking the rpm hplip on my laptop /hplip/lib/sane/data/models/models.dat does contain my device so copied that into J:/hplip/lib/sane/data/models/models.dat

I then retested but syslogd still gives the same output.

Could this be a "red herring"? The file exists in the location mentioned in the above syslogd output - J:/hplip/lib/sane/data/models - and contains a section "[envy_photo_6200_series]" which lists my exact model as "model4=HP ENVY Photo 6234 All-in-One".

I guess it is possible that whatever is used to parse models.dat either fails or is missing?


The debug-L.log mentions hpaio a few times:-

  [dll] add_backend: adding backend `hpaio'


  [dll] load: searching backend `hpaio' in `./lib/sane;/sane/lib/sane'
  [dll] load: trying to load `./lib/sane/hpaio.dll'
  [dll] load: dlopen()ing `./lib/sane/hpaio.dll'
  [dll] init: initializing backend `hpaio'
  [sanei_debug] Setting debug level of hpaio to 255.
  [hpaio] sane_hpaio_init(): scan/sane/hpaio.c 348
  [dll] init: backend `hpaio' is version 1.0.0
  [hpaio] sane_hpaio_get_devices(local=0): scan/sane/hpaio.c 369
  [hpaio] scantype=0 hp:/net/hp_envy_photo_6200_series?ip=192.168.1.252&queue=false
  [hpaio] unsupported scantype=0 hp:/net/hp_envy_photo_6200_series?ip=192.168.1.252&queue=false

  [dll] sane_exit: calling backend `hpaio's exit function
  [hpaio] sane_hpaio_exit(): scan/sane/hpaio.c 363

The lines that include "scantype=0" may be confirming the output of syslogd as the models.dat entry for this model is "scan-type=7".

So, looks like hpaio starts but cannot access/read the scanner settings from models.dat...


Do you want the complete debug-L.log emailed?


Regards

Pete

521
Applications / Re: Using a scanner with hplip?
« on: April 20, 2019, 07:56:36 pm »
Hi Paul

Bingo!

Yes, getting rid of the files borrowed from the rpm installation and unzipping the hplip cups files into placemakes a difference.

Successfully printed the cups test page - purloined the ppd file from the rpm installation on my laptop as the ppd files are not included in the zip.

To save a bit of faffing around I will also purloin the laptops psprint.drv + support files which already has the printer added to make for a quick OS/2 printer creation on my desktop system.


While you are feeling pleased with yourself  :-) I am going to bring the discussion back to scanning...

I tried the command "python makeuri.py aaa.bbb.ccc.ddd" with the correct ip address on the laptop with the rpm installed cups/hplip.

The result is a "Warning: python-dbus not installed" followed by "rror: Device not found" - Yes, it is not my typo.

I have no idea if python-dbus is a requirement that will make the command work - does not seem to be available as an rpm. Guess I'd better ask Silvan about the rpm hplip and scanning but at the moment I think I am stuck without the device uri

Out of interest I tried the command "scanimage -L" on my desktop system (cups/hplip installed from zip files) and had a strange result:-

[bjnp] udp_command: ERROR - no data received (timeout = 5000)
[bjnp] bjnp_init_device_structure: Cannot read mac address, skipping this scanner
[bjnp] udp_command: ERROR - no data received (timeout = 5000)
[bjnp] add_scanner: ERROR - Cannot read scanner make & model: bjnp://192.168.1.252:8612/timeout=5000
device `test:0' is a Noname frontend-tester virtual device
device `test:1' is a Noname frontend-tester virtual device


Looks like scanimage is trying to find my now dead, definitely not connected Canon MG7550...
Could it be simply that scanimage detects a wireless connected device and tries to use the bjnp backend?


I also tried a guess at the possible uri:-

[J:\PROGRAMS\SANE]scanimage -d hpaio:/net/HP_ENVY_Photo_6200_series?ip=192.168.1.252
scanimage: open of device hpaio:/net/HP_ENVY_Photo_6200_series?ip=192.168.1.252 failed: Operation not supported

Probably the wrong uri although it is more than possible I have something in the wrong place...


Regards

Pete



522
Applications / Re: Using a scanner with hplip?
« on: April 20, 2019, 06:11:31 am »
Hi Paul

Sorry to report the zip contains only /hplip directories and files - no mention of /cups directories and files.

These are what seem to be missing - compared to the hplip 3.15.11 zip file:-

\cups\lib\cups\backend\hp.exe
cups\lib\cups\filter\hpcups.exe
\cups\lib\cups\filter\hpcupsfax.exe
\cups\lib\cups\filter\pstotiff

I did think the hpcups.drv file was missing as well but found that in
\hplip\share\cups\drv\hp\hpcups.drv
and copied it to
\cups\share\cups\drv\hp\hpcups.drv


Dropping hpcups.exe onto PMdll shows that the problem is really that you cannot mix'n'match cups and hplip files from rpm installs with with those from zip file installs . PMdll reveals that hpcups.exe cannot run because cups.dll and cupsim.dll are missing. This is correct: cups 2.1.0 installed from zip file does not include those files - uses cups20.dll instead of cups.dll and there are probably a few other differences.

At least we now have an idea of why printing failed with the "filter failed" message.

A question about hplip.conf: This file has to live in %ETC% which is on a different drive to cups/hplip. Being a *nix configuration file how happy is it about having drive letters involved?  eg home=J:/hplip/lib/sane


Regards

Pete

523
Applications / Re: Using a scanner with hplip?
« on: April 20, 2019, 02:40:39 am »
Hi Paul

hplip 3.18.12 feedback

Various files need for cups to work with hplip are missing from the zip file - there are no files for putting into the cups directory tree at all.

I tried using the (obviously missing) files supplied with hplip3.17.11 (rpm) but that results in no print output and the "filter failed" message being displayed.

Checking the log this line could indicate a/the problem:-

  D [20/Apr/2019:01:07:29 +0000] [Job 1] PID 297 (/cups/lib/cups/filter/hpcups.exe) stopped with status 102 (No such file or directory)

A few lines above that I see that the filter started successfully:-

  I [20/Apr/2019:01:07:29 +0000] [Job 1] Started filter /cups/lib/cups/filter/hpcups.exe (PID 297)

And a few lines after the "stopped" line I see:-

  D [20/Apr/2019:01:07:29 +0000] [Job 1] execv failed: No such file or directory

My guess is that hpcups.exe calls another program which is either missing - or in the wrong place.

As hpcups.exe is "lifted" from the rpm package so there is a possible version mismatch but, more likely, I have missed something needed when copying files from the hplip(rpm). Also this hpcups.exe probably expects to use the "*nixy tree" which could explain why it cannot find whatever it is looking for.


Regards

Pete



524
Applications / Re: Using a scanner with hplip?
« on: April 20, 2019, 02:31:45 am »
Hi Dave

I suspect my (cheap) ISP supplied router may not have the capability to isolate the printer - a quick look suggests that is not possible but will look into it a little more.


Regards

Pete



525
Applications / Re: Using a scanner with hplip?
« on: April 19, 2019, 08:48:31 pm »
Hi Pete2

Reading your post I am encouraged but currently stuck between a rock and a hard place  :-)

Explanation:

I have cups installed on my Desktop from zip files as per your eCS2.2b2 installation.

I have cups and hplip installed from rpm on my Laptop as per your ArcaOS installation.

The current hplip zip package is too old a version to support the printer so is not installed on my Desktop.

Pauls just built hpaio zip package will not work on my Desktop due to lack of hplip. I am currently trying to work out if I can add the files from the hpaio zip package to the "*nixy tree" used for rpm installed packages on my Laptop.

So, stuck between waiting for a later hplip zip package and a hpaio rpm package...

It seems hp-mkuri has been mentioned a few times much to my interest as there is no hp-mkuri file among the hplip or hpaio files...

There is a makeuri data file supplied with hplip the contents of which refer to makeuri.py - looks suspiciously like a replacement for hp-mkuri based on name similarity.

And the final problem: How would I run makeuri.py? - I suspect it is a python file?


Regards

Pete





Pages: 1 ... 33 34 [35] 36 37 ... 87