]>
git.itanic.dy.fi Git - glucose/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Timo Kokkonen [Mon, 19 Mar 2012 16:50:32 +0000 (18:50 +0200)]
Add copyright notices
I, as the creator of this project, am making a decision to distribute
this project under the GPLv2 license. Now you know it. Thank you. Live
long and prosper.
Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
Timo Kokkonen [Fri, 24 Jun 2011 15:55:34 +0000 (18:55 +0300)]
main: Print how many entries we have read from the meter
This makes it easier for an inpatient user to wait until all the
readings have been taken out from the device.
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
Timo Kokkonen [Thu, 5 May 2011 16:00:11 +0000 (19:00 +0300)]
Add support for printing out data to a file
If no file is given, results are printed out to stdout, as before.
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
Timo Kokkonen [Thu, 5 May 2011 15:59:19 +0000 (18:59 +0300)]
utils: Add sanitize_ascii()
This can be used to ensure all characters on an ascii array are
printable.
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
Timo Kokkonen [Sun, 1 May 2011 14:12:39 +0000 (17:12 +0300)]
Separate initialization and data reading into a separate steps
This makes it possible in future to do something useful with the data
instead of just dumping it out to stdout.
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
Timo Kokkonen [Sun, 1 May 2011 13:49:33 +0000 (16:49 +0300)]
contour-protocol: Do not explicitly print out the proggress note
Allow the proggress note to be only printed when a special read
function is used.
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
Timo Kokkonen [Sun, 1 May 2011 13:36:21 +0000 (16:36 +0300)]
Refactor Contour USB communication routines into separate file
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
Timo Kokkonen [Sat, 30 Apr 2011 14:28:57 +0000 (17:28 +0300)]
If no suitable devices are found, wait until one is found
This makes it more convenient to use this tool as it doesn't
immediately bail out if it can't find a device to talk to.
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
Timo Kokkonen [Fri, 29 Apr 2011 20:37:31 +0000 (23:37 +0300)]
main: Print proggress percentage during device initialization
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
Timo Kokkonen [Fri, 29 Apr 2011 20:37:03 +0000 (23:37 +0300)]
Fix crossed vendor and product IDs
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
Timo Kokkonen [Fri, 29 Apr 2011 20:36:04 +0000 (23:36 +0300)]
hiddev: Coding convention fix
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
Timo Kokkonen [Fri, 29 Apr 2011 20:34:54 +0000 (23:34 +0300)]
hiddev: Print error message only when there is an error
For example when device IDs don't match, there is no real error that
needs to be printed.
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
Timo Kokkonen [Fri, 29 Apr 2011 20:30:10 +0000 (23:30 +0300)]
hiddev: Fix bug when matching incorrect device IDs
If device IDs don't match, we must return negative error code in order
to let the caller know about the error.
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
Timo Kokkonen [Fri, 29 Apr 2011 20:05:38 +0000 (23:05 +0300)]
main: Use default vendor and product IDs when no explicit device path is given
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
Timo Kokkonen [Fri, 29 Apr 2011 20:04:58 +0000 (23:04 +0300)]
options: Make verbose level adjustable
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
Timo Kokkonen [Fri, 29 Apr 2011 20:03:49 +0000 (23:03 +0300)]
hiddev: Add support for opening hid devices by vendor and product IDs.
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
Timo Kokkonen [Fri, 29 Apr 2011 20:02:28 +0000 (23:02 +0300)]
hiddev: Put debug traces behind trace() call
This way user can adjust the desired tracing level and hide
unnecessary debug messages at will.
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
Timo Kokkonen [Thu, 28 Apr 2011 18:49:18 +0000 (21:49 +0300)]
Read options from command line
The usb device node and verbosity level is supported.
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
Timo Kokkonen [Thu, 28 Apr 2011 18:22:14 +0000 (21:22 +0300)]
Make excess debug messages to be hidden by default
Only desired debug messages are shown depending on the tracing level.
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
Timo Kokkonen [Wed, 27 Apr 2011 19:14:22 +0000 (22:14 +0300)]
Add README file
Anyone who is using this software should be aware that this is very
experimental piece of software and might damage the device.
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
Timo Kokkonen [Wed, 27 Apr 2011 19:01:14 +0000 (22:01 +0300)]
Factor out misc functions into utils.[ch] files
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
Timo Kokkonen [Wed, 27 Apr 2011 18:09:18 +0000 (21:09 +0300)]
Refactor hiddev functions out from main.c
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
Timo Kokkonen [Wed, 27 Apr 2011 17:59:31 +0000 (20:59 +0300)]
Significantly reduce the delays between messages
There only needs to be relatively short delay between the different
messages, but the delay between different messages varies quite
much. The delays introduced here are far from being optimal, but
reducing the delays too much causes unexpected behaviour.
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
Timo Kokkonen [Wed, 27 Apr 2011 15:25:49 +0000 (18:25 +0300)]
Initial commit
This version is extremely slow and prints huge amounts of verbose
debug messages. But it is able to import the glucose readings from the
device.
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>