summaryrefslogtreecommitdiffstats
path: root/glucometerutils/drivers/lifescan_common.py (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-01-16LifeScan devices: move lifescan_common to the support directory.Diego Elio Pettenò1-51/+0
This makes it easier to figure out which files represent drivers, and which ones are per-vendor support modules.
2016-03-02Move the InvalidChecksum exception to the base exceptions module.Diego Elio Pettenò1-7/+0
Most glucometers have *some* sort of checksum, so there is no reason to implement this on a per-driver basis.
2016-02-13otultraeasy: move the MalformedCommand exception to common.Diego Elio Pettenò1-0/+6
Also make the exception more general, so that it can be used in the verio2015 driver.
2016-02-13otultraeasy: move the crc function to lifescan_common.Diego Elio Pettenò1-0/+24
The same CRC-CCITT function is used in Verio 2015 devices, so prepare to reuse it by moving it to the common module.
2014-01-29otultra2: move checksum function within otultra2 driver.Diego Elio Pettenò1-20/+0
The function is not shared with the Ultra Easy and likely not with other devices either.
2013-08-03Relicense everything under MIT license.Diego Elio Pettenò1-1/+1
There is no reason for me to use GPLv3 now that I'm not using the CRC32-Sick code, so I'll go with the most liberal license out there.
2013-08-03Implement the correct checksum algorithm.Diego Elio Pettenò1-30/+8
Unlike what I though, OneTouch2 does not use CRC32 Sick algorithm, but a very stupid full 16-bit modulo sum of the bytes in the reply. This is very simple and does not require GPLv3 code at all.
2013-08-03Add support for checksum verification for the otultra2 driver.Diego Elio Pettenò1-0/+70
This introduced some changes in the Exception class to simplify the code, and at the same time it adds a module for multiple lifescan drivers to share code (multiple OneTouch protocols share the same checksum for instance).