[argyllcms] [DIY Colorimeter] Identification and communication with a device.

  • From: Marc Clarac <clarac.marc@xxxxxxxxx>
  • To: argyllcms@xxxxxxxxxxxxx
  • Date: Mon, 14 Feb 2022 14:14:02 +0100

Hello everyone,

I am a student in electronics, I've bought a Colorhug colorimeter a while
ago and today I would like to build/conceive my own colorimeter. I plan on
using an AMS AS7341 color sensor, and a microcontroller I already have like
an Arduino Leonardo or Teensy 3.2.
I have two questions :
1) I don't understand (nor have found yet) how argyllCMS knows whether an
usb device is a colorimeter or any device it can communicate with. I know
USB devices are identified by PID and VID but I'm not sure it is enough. Is
there any documentation about the identification of a device for ArgyllCMS ?
2) I've partially read the colorhug 1 and 2 source code on github. It uses
a protocol made of bytes commands and the answers are variable length
arrays of bytes, containing the answer of the sensor. The answers sent by
the sensor are also described in the source code.
Is there any argyllCMS protocol already documented I should use and if it's

I'm a bit lost for now.

If you have any tracks to follow, I'd really appreciate it !
Thank you by advance,
Best regards,
Marc.

Other related posts: