[argyllcms] Re: dispcal 1.0.0 doesn't like me
- From: Ben Goren <ben@xxxxxxxxxxxxxxxx>
- To: argyllcms@xxxxxxxxxxxxx
- Date: Fri, 25 Jul 2008 16:19:54 -0700
Okay, so it's been a little while longer for me to reply than I
expected. Life happens....
Anyway, short version: it's somewhere in the ``read a display instead
of something reflective'' code (and still in v1.0.1). Without
arguments, spotread works fine, but spotread -d has the same problem
as dispcal. Perhaps it's the worng initialization string being sent to
the i1? Not that I'd know how to know.
Details below:
On 2008 Jul 8, at 7:26 AM, Graeme Gill wrote:
Ben Goren wrote:
Only because it was complaining that it couldn't communicate with
the i1 -- I wanted to see if it couldn't talk to it at all or if it
was specific to the attempt to calibrate it.
OK, I was just wondering if this was part of what triggers the
problem, or whether it was incidental. I'm gathering that it is
incidental.
Yes, just incidental. It happens after the failure.
Are you running through a USB hub ?
This is through the keyboard -- but beta 7 works fine like this.
I'll try plugged directly into the computer later today.
See if that makes any difference.
No difference.
Does it fail every time, and at the same point ?
Yes, and yes. Exactly identical every time.
Was your machine under heavy load (ie. running some other
CPU or I/O intensive task) ?
Absolutely idle except for Argyll. Plus, it's a 2.8 GHz Core 2 Duo
with 4 Gbytes RAM, so it should take an awful lot to load it up.
What does the trace from V0.70B8 look like ?
This:
$ /usr/local/argyll/.old/bin/dispcal -R -y l -H -D
i1pro: About to init coms
i1pro: About to init USB
icoms: About to set usb port characteristics
icoms: About to open the USB port
icoms: USB port needs opening
icoms: About to open USB port 'usb:/bus26/dev0 (GretagMacbeth i1 Pro)'
icoms: USB port is now open
icoms: Clearing any USB errors
icoms: usb port characteristics set ok
i1pro: init coms has suceeded
i1pro: About to init instrument
i1pro: Instrument reset with mask 0x1f
Reset complete, ICOM err 0x0
i1pro: Read 1 byte from switch hit port
i1pro: GetMisc
GetMisc returns 302, 0x0000, 0xf800, 0x01, 0x08 ICOM err 0x0
Firmware rev = 302
i1pro: Read EEProm address 0x0 size 0x2000
Read 0x2000 bytes, ICOM err 0x0
CPLD rev = 301
i1pro: GetMisc
GetMisc returns 302, 0x0000, 0xf800, 0x01, 0x00 ICOM err 0x0
i1pro: Instrument reset with mask 0x1f
Reset complete, ICOM err 0x0
i1pro: GetMeasureParams
MeasureParam returns 294, 20, 1, 0x04 ICOM err 0x0
Place the instrument on its reflective white reference Serial no.
128754,
and then hit any key to continue,
or hit Esc, ^C or Q to abort:
i1pro: Set measurement clock mode 1
Set measuremnt clock mode done, ICOM err 0x0
i1pro: GetMeasureClockMode
MeasureClockMode returns 2, 1, (128), 130, 68 0x0 ICOM err 0x0
i1pro: SetMeasureParam 14706, 23, 2, 0x06
SetMeasureParams got ICOM err 0x0
i1pro: Triggering measurement after 10msec delay
Scheduled triggering OK
i1pro: Read measurement results inummeas 2, scanflag 0, address
0x83f600 bsize 0x200
Read 2 readings, ICOM err 0x0
(Trig & rd times 0 -10 2028 -10)
Calibration complete
Place instrument on test window.
Hit Esc, ^C or Q to give up, any other key to continue:
Taking 1 measurments in Emission mode called
i1pro: SetMeasureParam 14706, 23, 1, 0x06
SetMeasureParams got ICOM err 0x0
i1pro: Triggering measurement after 10msec delay
Scheduled triggering OK
i1pro: Read measurement results inummeas 1, scanflag 0, address
0x3a75b0 bsize 0x100
Read 1 readings, ICOM err 0x0
(Trig & rd times 0 -10 1026 -10)
Taking 1 measurments in Emission mode called
i1pro: SetMeasureParam 14706, 23, 1, 0x06
SetMeasureParams got ICOM err 0x0
i1pro: Triggering measurement after 10msec delay
Scheduled triggering OK
i1pro: Read measurement results inummeas 1, scanflag 0, address
0x3a75b0 bsize 0x100
Read 1 readings, ICOM err 0x0
(Trig & rd times 0 -10 1946 -10)
Taking 1 measurments in Emission mode called
i1pro: SetMeasureParam 14706, 23, 1, 0x06
SetMeasureParams got ICOM err 0x0
i1pro: Triggering measurement after 10msec delay
Scheduled triggering OK
i1pro: Read measurement results inummeas 1, scanflag 0, address
0x3a75b0 bsize 0x100
Read 1 readings, ICOM err 0x0
(Trig & rd times 1 -11 1947 -11)
Uncalibrated response:
Black level = 0.21 cd/m^2
White level = 179.51 cd/m^2
Aprox. gamma = 2.19
Contrast ratio = 848:1
White chromaticity coordinates 0.3261, 0.3422
White Correlated Color Temperature = 5784K, DE to locus = 5.0
White Correlated Daylight Temperature = 5785K, DE to locus = 0.3
White Visual Color Temperature = 5651K, DE to locus = 4.8
White Visual Daylight Temperature = 5777K, DE to locus = 0.3
The instrument can be removed from the screen.
i1pro: Write EEProm address 0x0 size 0x428
(NOT) Write 0x428 bytes, ICOM err 0x0
i1pro: Write EEProm address 0x800 size 0x428
(NOT) Write 0x428 bytes, ICOM err 0x0
i1pro: Terminate switch Handling
i1pro: Terminate Switch Handling failed with ICOM err 0x200
i1pro: Switch read failed with ICOM err 0x4000
icoms: delete called
icoms: closing port
usb_close_port() called
usb port has been released and closed
For reference, here's v1.0.1 spotread successfully reading the
reference tile:
$ spotread -D
i1pro: About to init coms
i1pro: About to init USB
icoms: About to set usb port characteristics
icoms: About to open the USB port
icoms: USB port needs opening
icoms: About to open USB port 'usb:/bus26/dev0 (GretagMacbeth i1 Pro)'
icoms: USB port is now open
icoms: Clearing any USB errors
icoms: usb port characteristics set ok
i1pro: init coms has suceeded
i1pro: About to init instrument
i1pro: Instrument reset with mask 0x1f
Reset complete, ICOM err 0x0
i1pro: GetMisc
GetMisc returns 302, 0x2b80, 0xf800, 0x01, 0x00 ICOM err 0x0
Firmware rev = 302
i1pro: Read EEProm address 0x0 size 0x2000
Read 0x2000 bytes, ICOM err 0x0
CPLD rev = 301
i1pro: GetMisc
GetMisc returns 302, 0x2b80, 0xf800, 0x01, 0x00 ICOM err 0x0
i1pro: Instrument reset with mask 0x1f
Reset complete, ICOM err 0x0
i1pro: GetMeasureParams
MeasureParam returns 14706, 23, 1, 0x06 ICOM err 0x0
Spot read needs a calibration before continuing
Place the instrument on its reflective white reference Serial no.
128754,
and then hit any key to continue,
or hit Esc, ^C or Q to abort:
i1pro: Set measurement clock mode 1
Set measuremnt clock mode done, ICOM err 0x0
i1pro: GetMeasureClockMode
MeasureClockMode returns 2, 1, (128), 130, 68 0x0 ICOM err 0x0
i1pro: SetMeasureParam 285, 23, 26, 0x06
SetMeasureParams got ICOM err 0x0
i1pro: Triggering measurement after 10msec delay
Scheduled triggering OK
i1pro: Read measurement results inummeas 26, scanflag 0, address
0x827e00 bsize 0x1a00
Read 26 readings, ICOM err 0x0
(Trig & rd times 0 -10 528 -10)
i1pro: SetMeasureParam 285, 23, 26, 0x04
SetMeasureParams got ICOM err 0x0
i1pro: Triggering measurement after 10msec delay
Scheduled triggering OK
i1pro: Read measurement results inummeas 26, scanflag 0, address
0x827e00 bsize 0x1a00
Read 26 readings, ICOM err 0x0
(Trig & rd times 152 -162 884 -162)
i1pro: Write EEProm address 0x0 size 0x428
(NOT) Write 0x428 bytes, ICOM err 0x0
i1pro: Write EEProm address 0x800 size 0x428
(NOT) Write 0x428 bytes, ICOM err 0x0
Calibration complete
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to take previous reading as the reference
Hit ESC, ^C or Q to exit, instrument switch or any other key to take a
reading: Taking 1 measurments in Refl Adaptive mode called
i1pro: SetMeasureParam 285, 23, 26, 0x06
SetMeasureParams got ICOM err 0x0
i1pro: Triggering measurement after 10msec delay
Scheduled triggering OK
i1pro: Read measurement results inummeas 26, scanflag 0, address
0x829800 bsize 0x1a00
Read 26 readings, ICOM err 0x0
(Trig & rd times 1 -11 532 -11)
i1pro: SetMeasureParam 285, 23, 26, 0x04
SetMeasureParams got ICOM err 0x0
i1pro: Triggering measurement after 10msec delay
Scheduled triggering OK
i1pro: Read measurement results inummeas 26, scanflag 0, address
0x82b200 bsize 0x1a00
Read 26 readings, ICOM err 0x0
(Trig & rd times 152 -162 884 -162)
Result is XYZ: 86.683555 90.093830 71.345833, D50 Lab: 96.035676
-0.342900 2.610507
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to take previous reading as the reference
Hit ESC, ^C or Q to exit, instrument switch or any other key to take a
reading: Taking 1 measurments in Refl Adaptive mode called
^Cusb_close_port() called
And here's spotread failing to read the display:
$ spotread -d -D
i1pro: About to init coms
i1pro: About to init USB
icoms: About to set usb port characteristics
icoms: About to open the USB port
icoms: USB port needs opening
icoms: About to open USB port 'usb:/bus26/dev0 (GretagMacbeth i1 Pro)'
icoms: USB port is now open
icoms: Clearing any USB errors
icoms: usb port characteristics set ok
i1pro: init coms has suceeded
i1pro: About to init instrument
i1pro: Instrument reset with mask 0x1f
Reset complete, ICOM err 0x0
i1pro: GetMisc
GetMisc returns 302, 0x2c9c, 0xf800, 0x01, 0x00 ICOM err 0x0
Firmware rev = 302
i1pro: Read EEProm address 0x0 size 0x2000
Read 0x2000 bytes, ICOM err 0x0
CPLD rev = 301
i1pro: GetMisc
GetMisc returns 302, 0x2c9c, 0xf800, 0x01, 0x00 ICOM err 0x0
i1pro: Instrument reset with mask 0x1f
Reset complete, ICOM err 0x0
i1pro: GetMeasureParams
MeasureParam returns 285, 23, 26, 0x04 ICOM err 0x0
Spot read needs a calibration before continuing
Place cap on the instrument, or place in on a dark surface,
or place on the white calibration reference,
and then hit any key to continue,
or hit Esc, ^C or Q to abort:
i1pro: Set measurement clock mode 1
Set measuremnt clock mode done, ICOM err 0x0
i1pro: GetMeasureClockMode
MeasureClockMode returns 2, 1, (128), 130, 68 0x0 ICOM err 0x0
i1pro: SetMeasureParam 29412, 23, 1, 0x06
SetMeasureParams got ICOM err 0x0
i1pro: Triggering measurement after 10msec delay
Scheduled triggering OK
i1pro: Read measurement results inummeas 1, scanflag 0, address
0x27a3d0 bsize 0x100
Read 1 readings, ICOM err 0x0
(Trig & rd times 0 -10 2021 -10)
i1pro: Set measurement clock mode 1
Set measuremnt clock mode done, ICOM err 0x0
i1pro: GetMeasureClockMode
MeasureClockMode returns 2, 1, (128), 130, 68 0x0 ICOM err 0x0
i1pro: SetMeasureParam 14706, 23, 1, 0x06
SetMeasureParams got ICOM err 0x0
i1pro: Triggering measurement after 10msec delay
Scheduled triggering OK
i1pro: Read measurement results inummeas 1, scanflag 0, address
0x27a3d0 bsize 0x100
i1pro: Read timed out with top = 2.000008
i1pro: Read failed, bytes read 0x0, ICOM err 0x2000
Calibration failed with 'Communications failure' (Communications
failure)
Hit any key to retry, or Esc, ^C or Q to abort:
usb_close_port() called
Cheers,
b&
- References:
- [argyllcms] dispcal 1.0.0 doesn't like me
- From: Ben Goren
- [argyllcms] Re: dispcal 1.0.0 doesn't like me
- From: Graeme Gill
- [argyllcms] Re: dispcal 1.0.0 doesn't like me
- From: Ben Goren
- [argyllcms] Re: dispcal 1.0.0 doesn't like me
- From: Graeme Gill
Other related posts:
- » [argyllcms] dispcal 1.0.0 doesn't like me
- » [argyllcms] Re: dispcal 1.0.0 doesn't like me
- » [argyllcms] Re: dispcal 1.0.0 doesn't like me
- » [argyllcms] Re: dispcal 1.0.0 doesn't like me
- » [argyllcms] Re: dispcal 1.0.0 doesn't like me
Ben Goren wrote:
Only because it was complaining that it couldn't communicate with the i1 -- I wanted to see if it couldn't talk to it at all or if it was specific to the attempt to calibrate it.
OK, I was just wondering if this was part of what triggers the problem, or whether it was incidental. I'm gathering that it is incidental.
This is through the keyboard -- but beta 7 works fine like this. I'll try plugged directly into the computer later today.Are you running through a USB hub ?
See if that makes any difference.
Does it fail every time, and at the same point ?
Was your machine under heavy load (ie. running some other CPU or I/O intensive task) ?
What does the trace from V0.70B8 look like ?
- [argyllcms] dispcal 1.0.0 doesn't like me
- From: Ben Goren
- [argyllcms] Re: dispcal 1.0.0 doesn't like me
- From: Graeme Gill
- [argyllcms] Re: dispcal 1.0.0 doesn't like me
- From: Ben Goren
- [argyllcms] Re: dispcal 1.0.0 doesn't like me
- From: Graeme Gill