colorhug:deejay1s-colorhug-client.git
6 years agotrivial: don't crash when importing a ccmx file
Richard Hughes [Sun, 4 Dec 2011 15:07:39 +0000 (15:07 +0000)]
trivial: don't crash when importing a ccmx file

6 years agoAdd a 'colorhug list-calibration' functionality
Richard Hughes [Sun, 4 Dec 2011 15:05:02 +0000 (15:05 +0000)]
Add a 'colorhug list-calibration' functionality

6 years agoAdd a 'colorhug clear-calibration' functionality
Richard Hughes [Sun, 4 Dec 2011 14:53:31 +0000 (14:53 +0000)]
Add a 'colorhug clear-calibration' functionality

6 years agotrivial: fix the USB image in the ccmx loader
Richard Hughes [Sun, 4 Dec 2011 11:33:53 +0000 (11:33 +0000)]
trivial: fix the USB image in the ccmx loader

6 years agoAdd a new command GetHardwareVersion
Richard Hughes [Fri, 2 Dec 2011 09:51:41 +0000 (09:51 +0000)]
Add a new command GetHardwareVersion

6 years agoAllow the user to unplug and plug in colorhug-flash
Richard Hughes [Fri, 2 Dec 2011 09:54:29 +0000 (09:54 +0000)]
Allow the user to unplug and plug in colorhug-flash

6 years agotrivial: hide the 'Flash' button when we've just flashed
Richard Hughes [Fri, 2 Dec 2011 09:54:11 +0000 (09:54 +0000)]
trivial: hide the 'Flash' button when we've just flashed

6 years agoFix the version comparison in colorhug-flash
Richard Hughes [Fri, 2 Dec 2011 09:53:21 +0000 (09:53 +0000)]
Fix the version comparison in colorhug-flash

6 years agotrivial: add info about what commands are available for each mode
Richard Hughes [Fri, 2 Dec 2011 09:52:39 +0000 (09:52 +0000)]
trivial: add info about what commands are available for each mode

6 years agotrivial: updates to the reference spec file
Richard Hughes [Wed, 30 Nov 2011 09:18:27 +0000 (09:18 +0000)]
trivial: updates to the reference spec file

6 years agotrivial: Post release version bump
Richard Hughes [Wed, 30 Nov 2011 09:03:40 +0000 (09:03 +0000)]
trivial: Post release version bump

6 years agoRelease version 0.1.1
Richard Hughes [Wed, 30 Nov 2011 08:59:17 +0000 (08:59 +0000)]
Release version 0.1.1

6 years agoAdd a calibration matrix display type bitfield to each calibration record
Richard Hughes [Tue, 29 Nov 2011 20:31:06 +0000 (20:31 +0000)]
Add a calibration matrix display type bitfield to each calibration record

This allows us to restrict the user from choosing an invalid matrix in the GUI.

6 years agoAdd a simple GUI CCMX file loader
Richard Hughes [Tue, 29 Nov 2011 19:29:41 +0000 (19:29 +0000)]
Add a simple GUI CCMX file loader

6 years agoRename the colorhug-flash desktop file so gnome-shell can pick it up
Richard Hughes [Tue, 29 Nov 2011 18:13:21 +0000 (18:13 +0000)]
Rename the colorhug-flash desktop file so gnome-shell can pick it up

6 years agoDon't abort 'make check' if there is no hardware attached
Richard Hughes [Mon, 28 Nov 2011 20:44:46 +0000 (20:44 +0000)]
Don't abort 'make check' if there is no hardware attached

6 years agoAdd a man page for colorhug-flash
Richard Hughes [Mon, 28 Nov 2011 20:44:20 +0000 (20:44 +0000)]
Add a man page for colorhug-flash

6 years agotrivial: we need a BR of gtk3-devel, not gtk2-devel
Richard Hughes [Sat, 26 Nov 2011 14:58:17 +0000 (14:58 +0000)]
trivial: we need a BR of gtk3-devel, not gtk2-devel

6 years agotrivial: add another section to 'make check' to test doing XYZ readings with differen...
Richard Hughes [Fri, 25 Nov 2011 19:03:13 +0000 (19:03 +0000)]
trivial: add another section to 'make check' to test doing XYZ readings with different post-scale values

6 years agoUse a better packed float multiplication algorithm to improve XYZ measurement accuracy
Richard Hughes [Fri, 25 Nov 2011 19:02:38 +0000 (19:02 +0000)]
Use a better packed float multiplication algorithm to improve XYZ measurement accuracy

6 years agotrivial: add a few small fixes to make check
Richard Hughes [Fri, 25 Nov 2011 19:00:35 +0000 (19:00 +0000)]
trivial: add a few small fixes to make check

6 years agoGet the calibration description from the CCMX file
Richard Hughes [Fri, 25 Nov 2011 18:59:54 +0000 (18:59 +0000)]
Get the calibration description from the CCMX file

6 years agoMake colorhug-inhx32-to-bin non-verbose by default
Richard Hughes [Fri, 25 Nov 2011 18:58:55 +0000 (18:58 +0000)]
Make colorhug-inhx32-to-bin non-verbose by default

6 years agoAdd calibration remapping functionality
Richard Hughes [Fri, 25 Nov 2011 09:01:32 +0000 (09:01 +0000)]
Add calibration remapping functionality

This allows us to choose a default matrix for lcd, crt and projector.

6 years agoAdd a new error enum from the firmware
Richard Hughes [Fri, 25 Nov 2011 08:55:43 +0000 (08:55 +0000)]
Add a new error enum from the firmware

6 years agoAllow erasing flash in chunks larger than 256 bytes
Richard Hughes [Fri, 25 Nov 2011 08:55:11 +0000 (08:55 +0000)]
Allow erasing flash in chunks larger than 256 bytes

6 years agotrivial: actually wire in the firmware update into colorhug-flash
Richard Hughes [Thu, 24 Nov 2011 21:21:05 +0000 (21:21 +0000)]
trivial: actually wire in the firmware update into colorhug-flash

6 years agoAdd a flash update GTK program
Richard Hughes [Wed, 23 Nov 2011 22:22:48 +0000 (22:22 +0000)]
Add a flash update GTK program

6 years agoAdd an asyncronous command variant that does not block
Richard Hughes [Wed, 23 Nov 2011 19:39:12 +0000 (19:39 +0000)]
Add an asyncronous command variant that does not block

6 years agoInstall a colorhug logo
Richard Hughes [Wed, 23 Nov 2011 18:47:41 +0000 (18:47 +0000)]
Install a colorhug logo

6 years agoMove some small helper functions to a common file
Richard Hughes [Wed, 23 Nov 2011 18:42:30 +0000 (18:42 +0000)]
Move some small helper functions to a common file

6 years agoUncomment some lines to allow the program flash to succeed
Richard Hughes [Wed, 23 Nov 2011 18:36:45 +0000 (18:36 +0000)]
Uncomment some lines to allow the program flash to succeed

6 years agotrivial: fix up the GtkApplication name
Richard Hughes [Wed, 23 Nov 2011 18:34:49 +0000 (18:34 +0000)]
trivial: fix up the GtkApplication name

6 years agoEnsure gaps in the hex files are filled by NOP in colorhug-inhx32-to-bin
Richard Hughes [Wed, 23 Nov 2011 18:34:11 +0000 (18:34 +0000)]
Ensure gaps in the hex files are filled by NOP in colorhug-inhx32-to-bin

6 years agoRename the error enums. Errors are not always fatal
Richard Hughes [Wed, 23 Nov 2011 11:15:20 +0000 (11:15 +0000)]
Rename the error enums. Errors are not always fatal

6 years agoAdd two new commands to test booting into the firmware
Richard Hughes [Tue, 22 Nov 2011 21:30:32 +0000 (21:30 +0000)]
Add two new commands to test booting into the firmware

6 years agoSupport pre-scaling the sensor result for maximum accuracy
Richard Hughes [Mon, 21 Nov 2011 19:07:17 +0000 (19:07 +0000)]
Support pre-scaling the sensor result for maximum accuracy

6 years agoSupport up to 64 calibration matrices to be stored in the device
Richard Hughes [Mon, 21 Nov 2011 13:10:43 +0000 (13:10 +0000)]
Support up to 64 calibration matrices to be stored in the device

6 years agoAdd a missing error enum
Richard Hughes [Mon, 21 Nov 2011 13:08:01 +0000 (13:08 +0000)]
Add a missing error enum

6 years agoFix up some of the limits after the switch to packed floats
Richard Hughes [Mon, 21 Nov 2011 11:47:58 +0000 (11:47 +0000)]
Fix up some of the limits after the switch to packed floats

6 years agoFix the packed float multiplication to preserve accuracy
Richard Hughes [Mon, 21 Nov 2011 11:40:40 +0000 (11:40 +0000)]
Fix the packed float multiplication to preserve accuracy

6 years agoOnly show the useful data in the request-reply data traces
Richard Hughes [Mon, 21 Nov 2011 11:09:14 +0000 (11:09 +0000)]
Only show the useful data in the request-reply data traces

6 years agotrivial: fix make check
Richard Hughes [Sun, 20 Nov 2011 00:11:39 +0000 (00:11 +0000)]
trivial: fix make check

6 years agotrivial: update some gitignore files
Richard Hughes [Sat, 19 Nov 2011 14:25:51 +0000 (14:25 +0000)]
trivial: update some gitignore files

6 years agoDon't scale the calibration matrix now we can use large integers
Richard Hughes [Sat, 19 Nov 2011 14:22:05 +0000 (14:22 +0000)]
Don't scale the calibration matrix now we can use large integers

6 years agoUse a 32 bit packed struct to return readings from the sensor
Richard Hughes [Sat, 19 Nov 2011 14:20:54 +0000 (14:20 +0000)]
Use a 32 bit packed struct to return readings from the sensor

This is offset to 0xffff so ranges are allowed from -32767 to +32768 with a
precision of at least 0.000015

6 years agoUpdate the list of fatal errors
Richard Hughes [Thu, 17 Nov 2011 21:00:35 +0000 (21:00 +0000)]
Update the list of fatal errors

6 years agoSet the post-scale value when setting the calibration matrix ccmx file
Richard Hughes [Wed, 16 Nov 2011 22:43:40 +0000 (22:43 +0000)]
Set the post-scale value when setting the calibration matrix ccmx file

6 years agoCorrectly scale the XYZ reading
Richard Hughes [Wed, 16 Nov 2011 22:35:00 +0000 (22:35 +0000)]
Correctly scale the XYZ reading

6 years agoSupport setting the post scale value
Richard Hughes [Wed, 16 Nov 2011 22:33:45 +0000 (22:33 +0000)]
Support setting the post scale value

6 years agotrivial: fix the spec file
Richard Hughes [Wed, 16 Nov 2011 22:31:41 +0000 (22:31 +0000)]
trivial: fix the spec file

6 years agoThe firmware now no longer deals with floating point
Richard Hughes [Wed, 16 Nov 2011 20:05:10 +0000 (20:05 +0000)]
The firmware now no longer deals with floating point

6 years agoSupport the new LED flashing options
Richard Hughes [Wed, 16 Nov 2011 19:32:49 +0000 (19:32 +0000)]
Support the new LED flashing options

6 years agotrivial: Add some debugging for writing flash
Richard Hughes [Tue, 15 Nov 2011 21:36:26 +0000 (21:36 +0000)]
trivial: Add some debugging for writing flash

6 years agoWrite the flash in 32 byte aligned chunks
Richard Hughes [Tue, 15 Nov 2011 19:11:45 +0000 (19:11 +0000)]
Write the flash in 32 byte aligned chunks

6 years agotrivial: fix typo
Richard Hughes [Tue, 15 Nov 2011 19:10:30 +0000 (19:10 +0000)]
trivial: fix typo

6 years agoAdd another fatal error enum
Richard Hughes [Tue, 15 Nov 2011 19:08:43 +0000 (19:08 +0000)]
Add another fatal error enum

6 years agotrivial: clear the rx buffer too to aid debugging
Richard Hughes [Mon, 14 Nov 2011 23:02:35 +0000 (23:02 +0000)]
trivial: clear the rx buffer too to aid debugging

6 years agoAdd a flash erase command
Richard Hughes [Mon, 14 Nov 2011 22:57:58 +0000 (22:57 +0000)]
Add a flash erase command

6 years agotrivial: fix the spelling of some enums
Richard Hughes [Mon, 14 Nov 2011 22:55:47 +0000 (22:55 +0000)]
trivial: fix the spelling of some enums

6 years agoMake the client code work on big endian machines
Johannes Berg [Mon, 14 Nov 2011 09:04:18 +0000 (09:04 +0000)]
Make the client code work on big endian machines

Signed-off-by: Richard Hughes <richard@hughsie.com>
6 years agoAdd a new colorhug-inhx32-to-bin binary to make the firmware image
Richard Hughes [Sun, 13 Nov 2011 19:37:24 +0000 (19:37 +0000)]
Add a new colorhug-inhx32-to-bin binary to make the firmware image

6 years agoSupport writing replacement firmware
Richard Hughes [Sat, 12 Nov 2011 23:39:22 +0000 (23:39 +0000)]
Support writing replacement firmware

6 years agoAdd support for the reset device command
Richard Hughes [Sat, 12 Nov 2011 23:32:19 +0000 (23:32 +0000)]
Add support for the reset device command

6 years agotrivial: Add another error enum
Richard Hughes [Sat, 12 Nov 2011 23:28:00 +0000 (23:28 +0000)]
trivial: Add another error enum

6 years agotrivial: update the shared config file
Richard Hughes [Sat, 12 Nov 2011 23:25:48 +0000 (23:25 +0000)]
trivial: update the shared config file

6 years agotrivial: fix 'make check' with the production hardware
Richard Hughes [Fri, 11 Nov 2011 11:13:15 +0000 (11:13 +0000)]
trivial: fix 'make check' with the production hardware

6 years agotrivial: rename the tarball to colorhug-client
Richard Hughes [Fri, 11 Nov 2011 11:12:55 +0000 (11:12 +0000)]
trivial: rename the tarball to colorhug-client

6 years agoShow some color level bars when doing raw samples in the gui
Richard Hughes [Tue, 8 Nov 2011 17:19:34 +0000 (17:19 +0000)]
Show some color level bars when doing raw samples in the gui

6 years agoAdd a 'set-calibration-ccmx' option to the text mode tool
Richard Hughes [Tue, 8 Nov 2011 16:36:40 +0000 (16:36 +0000)]
Add a 'set-calibration-ccmx' option to the text mode tool

6 years agoFix getting the serial number from the device
Richard Hughes [Tue, 8 Nov 2011 12:12:09 +0000 (12:12 +0000)]
Fix getting the serial number from the device

6 years agoAdd another fatal error code
Richard Hughes [Tue, 8 Nov 2011 12:11:58 +0000 (12:11 +0000)]
Add another fatal error code

6 years agoSplit the shared config file now that it differs
Richard Hughes [Mon, 7 Nov 2011 20:09:49 +0000 (20:09 +0000)]
Split the shared config file now that it differs

6 years agoWe've got an assigned PID from Microchip
Richard Hughes [Mon, 7 Nov 2011 20:09:33 +0000 (20:09 +0000)]
We've got an assigned PID from Microchip

6 years agoAdd an example spec file and make into a real project
Richard Hughes [Fri, 4 Nov 2011 23:53:13 +0000 (23:53 +0000)]
Add an example spec file and make into a real project

6 years agoFix compile with latest shared header file
Richard Hughes [Fri, 4 Nov 2011 23:27:00 +0000 (23:27 +0000)]
Fix compile with latest shared header file

6 years agoSupport setting the integral time in the UI and allow a choice between the raw or...
Richard Hughes [Wed, 2 Nov 2011 13:03:15 +0000 (13:03 +0000)]
Support setting the integral time in the UI and allow a choice between the raw or calibrated readings

6 years agoAdd support for TakeReadingsXYZ
Richard Hughes [Wed, 2 Nov 2011 13:02:42 +0000 (13:02 +0000)]
Add support for TakeReadingsXYZ

6 years agoRemove the ability to set the firmware version
Richard Hughes [Wed, 2 Nov 2011 13:01:15 +0000 (13:01 +0000)]
Remove the ability to set the firmware version

6 years agoFix getting and setting the calibration matrix
Richard Hughes [Wed, 2 Nov 2011 12:59:36 +0000 (12:59 +0000)]
Fix getting and setting the calibration matrix

6 years agoAdd the GUI utility code for hardcore users
Richard Hughes [Tue, 1 Nov 2011 22:27:14 +0000 (22:27 +0000)]
Add the GUI utility code for hardcore users

6 years agoAdd a command-id to text function to make debugging easier
Richard Hughes [Tue, 1 Nov 2011 15:10:42 +0000 (15:10 +0000)]
Add a command-id to text function to make debugging easier

6 years agoAdd a ColorHug strerror to make the errors easier to read
Richard Hughes [Tue, 1 Nov 2011 13:56:36 +0000 (13:56 +0000)]
Add a ColorHug strerror to make the errors easier to read

6 years agoAdd support for TakeReadings()
Richard Hughes [Tue, 1 Nov 2011 12:51:49 +0000 (12:51 +0000)]
Add support for TakeReadings()

6 years agoAdd support for reading and writing dark offsets
Richard Hughes [Tue, 1 Nov 2011 12:51:14 +0000 (12:51 +0000)]
Add support for reading and writing dark offsets

6 years agoSend the data to the correct endpoints for the device
Richard Hughes [Mon, 31 Oct 2011 21:22:24 +0000 (21:22 +0000)]
Send the data to the correct endpoints for the device

6 years agotrivial: Fatal error 0 means success
Richard Hughes [Mon, 31 Oct 2011 21:21:08 +0000 (21:21 +0000)]
trivial: Fatal error 0 means success

6 years agoFix sending GetFirmwareVer
Richard Hughes [Mon, 31 Oct 2011 21:20:18 +0000 (21:20 +0000)]
Fix sending GetFirmwareVer

6 years agoFix sending SetIntegralTime
Richard Hughes [Mon, 31 Oct 2011 21:19:59 +0000 (21:19 +0000)]
Fix sending SetIntegralTime

6 years agoFix sending GetIntegralTime
Richard Hughes [Mon, 31 Oct 2011 21:19:43 +0000 (21:19 +0000)]
Fix sending GetIntegralTime

6 years agoFix sending SetMultiplier
Richard Hughes [Mon, 31 Oct 2011 21:19:16 +0000 (21:19 +0000)]
Fix sending SetMultiplier

6 years agoAllow setting large serial numbers
Richard Hughes [Mon, 31 Oct 2011 21:18:30 +0000 (21:18 +0000)]
Allow setting large serial numbers

6 years agoAllow setting the LEDs on the device
Richard Hughes [Mon, 31 Oct 2011 21:16:51 +0000 (21:16 +0000)]
Allow setting the LEDs on the device

6 years agoDon't bother locking and unlocking the sensor, just do a protected EEPROM write
Richard Hughes [Mon, 17 Oct 2011 18:48:30 +0000 (19:48 +0100)]
Don't bother locking and unlocking the sensor, just do a protected EEPROM write

6 years agoWe've asked Microchip for a sub-vendor PID
Richard Hughes [Mon, 17 Oct 2011 15:36:35 +0000 (16:36 +0100)]
We've asked Microchip for a sub-vendor PID

6 years agoAdd all the sensor commands to the colorhug command line tool
Richard Hughes [Mon, 17 Oct 2011 15:28:03 +0000 (16:28 +0100)]
Add all the sensor commands to the colorhug command line tool

6 years agoFlesh out the colorhug command line tool a bit
Richard Hughes [Mon, 17 Oct 2011 14:35:30 +0000 (15:35 +0100)]
Flesh out the colorhug command line tool a bit

6 years agoAdd intltool support
Richard Hughes [Mon, 17 Oct 2011 13:59:11 +0000 (14:59 +0100)]
Add intltool support

6 years agoActually do interrupt transfers with the device
Richard Hughes [Mon, 17 Oct 2011 13:35:05 +0000 (14:35 +0100)]
Actually do interrupt transfers with the device

Also, include a first stab at the client commands. WIP.

6 years agoFirst attempt at the client USB code
Richard Hughes [Sat, 15 Oct 2011 10:39:16 +0000 (11:39 +0100)]
First attempt at the client USB code