[argyllcms] Re: Problem accessing HCRF probe

  • From: Frédéric <frederic.mantegazza@xxxxxxxxxxx>
  • To: argyllcms@xxxxxxxxxxxxx
  • Date: Thu, 23 Aug 2007 19:33:52 +0200

On Thursday 23 August 2007 14:09, Frédéric wrote:

> Ok, I'm trying to use the HCFR DIY probe, but it fails:
>
> $ dispread -D -v /tmp/DisplayA
> Number of patches = 100
> Setting up the instrument
> hcfr: About to init coms
> hcfr: 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:/bus0/dev18 (Colorimtre HCFR)'
> icoms: USB port is now open
> icoms: Clearing any USB errors
> icoms: usb port characteristics set ok
>
> hcfr: Doing break
> Break done, ICOM err 0x0
> hcfr: About to init instrument
> hcfr: About to read firmware version
>
> icoms: Write_Read called with '\377'
> icoms: About to write '\377' ICOM err 0x0
> icoms: Read called
> icoms: About to return read '' ICOM err 0x2000
> icoms: Write_Read Write failed - returning 0x2000
> hcfr_command failed
> hcfr: Error with getting or version of firmware
> The instrument can be removed from the screen.
> icoms: delete called
> icoms: closing port
> usb_close_port() called
> usb port has been released and closed
> Dispread: Error - dispread failed with 'Instrument Access Failed'
>
> It is not a permission problem, because solved it (udev rule). And there
> are no messages in /var/log/messages...

I'm sure the communication can work, because if I load the cdc_acm module 
(serial-over-usb emulation), I can read/write with the probe (with the 
attached python script):

$ python hcfr.py
v5.10
RGB_ 2 12 4 [0, 45, 254, 119, 8, 62, 0, 45, 246, 178, 4, 116, 0, 45, 250, 
148, 3, 223, 0, 0, 0, 0, 0, 0, 0, 45, 252, 115, 6, 111, 0, 45, 252, 241, 
3, 147, 0, 45, 254, 44, 3, 56, 0, 0, 0, 0, 0, 0]
[29916, 16369, 14454]

BTW, why don't you use such cdc_acm driver for UNIX system? Does it exist 
only uder Linux? Is libusb better in this case?

-- 
   Frédéric

   http://www.gbiloba.org

Other related posts: