Hi Paul
Yes, that is the models.dat file in use - and it was not the models.dat file with the problem.
For libc logging I referred to this page and followed instructions there
http://trac.netlabs.org/ports/wiki/PortingTips#DebuggingtechniquesI used this cmd file
SET LIBC_LOGGING=+ALL
set beginlibpath=j:\programs\sane\lib;
set SANE_DEBUG_HPAIO=255
set SANE_DEBUG_DLL=255
set sane_config_dir=/programs/sane/etc/sane.d
scanimage -d hpaio:/net/envy_photo_6200_series?ip=192.168.1.252 1>ENVY_01.pnm 2>debugENVY02.log
and generated libc_0036.log
I then reset my system to use the non-debug libc066.dll and rebooted - there seemed to be a problem starting Seamonkey with the debug build installed.
I may have cracked this...
I opened the libc_0036.log with e.exe and tried searching for "models" with a "Not found" result which surprised me.
However, looking through the generated log I see:-
0004fc19 01 01 0004 Entr 0002 _vsopen: pszName=0x00e0e3f0:{/hplip/share/hplip
/data/models/models.dat} fOpen=0x0 fShare=0x40 ...
0004fc19 01 02 001a Entr 0002 __libc_Back_ioFileOpen: pszFile=0x00e0e3f0:{/hplip/share/hplip
/data/models/models.dat} fLibc=0x20000 fShare=0x40 cbInitial=0 Mode=00 ppFH=0x00e0ce24
0004fc1b 01 03 0017 Entr 0002 fsResolveUnix: pszUserPath=0x00e0e3f0:{/hplip/share/hplip
/data/models/models.dat} pszNativePath=0x00e0cca0 *pfInUnixTree=0x00e0cc28
0004fc1b 01 04 001a Entr 0002 __libc_PathRewrite: pszPath=/hplip/share/hplip
/data/models/models.dat pszBuf=0x00e0cca0 cchBuf=260
0004fc1b 01 04 001a Leav 0002 __libc_PathRewrite (0 ms): ret 0 (0x0)
Except I do not actually see what I have copied and pasted above. The 1st line above containing "vsopen: pszName=" should show the path/filename as a continuous string. Instead there is a line break that is invisible in an OS/2 editor and Seamonkey.
So the line in hplip.conf "home=/hplip/share/hplip" gets "/data/models/models.dat" appended, by hpaio.dll, to locate the data file. However, it seems that either hpaio.dll introduces a line break or it already exists resulting in the path for the data file becoming:-
/hplip/share/hplip?/data/models/models.dat - where ? is used to represent the musical note.
Guess I could look at this using kon.
Yes, the "musical note", hex value 0d, shows clearly, it exists at the end of all the hplip.conf lines.
Removed using kon and saved modified file.
Scanning retested.
No problems with "no envy_photo_6200_series attributes found in /hplip/share/hplip/data/models/models.dat", scan works - sort of...
So, Dave Yeo was right as it was a *nix line end problem - but for the wrong file :-)
A bit of log showing a message that I have not seen before
[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=7 scansrc=1
MIB search path: I:\USERS\PETER\HOME/.snmp/mibs;/net-snmp/share/snmp/mibs
Cannot find module (:SNMPv2-MIB:IF-MIB:IP-MIB:TCP-MIB:UDP-MIB:HOST-RESOURCES-MIB:NOTIFICATION-LOG-MIB:DISMAN-EVENT-MIB:DISMAN-SCHEDULE-MIB:UCD-SNMP-MIB:UCD-DEMO-MIB:SNMP-TARGET-MIB:NET-SNMP-AGENT-MIB:HOST-RESOURCES-TYPES:SNMP-MPD-MIB:SNMP-USER-BASED-SM-MIB:SNMP-FRAMEWORK-MIB:SNMP-VIEW-BASED-ACM-MIB:SNMP-COMMUNITY-MIB:NET-SNMP-PASS-MIB:NET-SNMP-EXTEND-MIB:UCD-DLMOD-MIB:SNMP-NOTIFICATION-MIB:SNMPv2-TM:NET-SNMP-VACM-MIB): At line 0 in (none)
[dll] sane_open: open successful
I seem to be missing something to do with MIBS... does not seem to prevent scanning though.
There is still a problem: While the scanner performed a scan the results are rather poor - and only black has been scanned, no colour.
Some fine tuning needed, somewhere...
Used the scanimage -A switch to get scan options for this scanner and as a result tried this command:-
scanimage -d hpaio:/net/envy_photo_6200_series?ip=192.168.1.252 --mode Color --resolution 300 1>ENVY_options.pnm 2>ENVY_options.log
Much better result - and in colour.
Do you want the libc debug log and scanning log emailed? - probably no point as we seem to have this sorted.
Thanks Paul - from unsupported printer/scanner to all working within a couple of weeks :-)
Pete