diff --git a/glucometerutils/drivers/fsfreedomlite.py b/glucometerutils/drivers/fsfreedomlite.py new file mode 100644 index 0000000..fa6cfcb --- /dev/null +++ b/glucometerutils/drivers/fsfreedomlite.py @@ -0,0 +1,231 @@ + +# -*- coding: utf-8 -*- +# +# SPDX-FileCopyrightText: © 2021 Stefanie Tellex +# SPDX-License-Identifier: MIT +"""Driver for FreeStyle Freedom Lite devices. + +Supported features: + - get readings + - assumes the device uses mg/dL for the glucose unit + - get date and time; + - get serial number and software version. + +Expected device path: /dev/ttyUSB0 or similar serial port device. + +Further information on the device protocol can be found at + +https://protocols.glucometers.tech/abbott/freestyle-lite.html +""" + +import datetime +import logging +import re +from typing import Generator, NoReturn, Sequence + +from glucometerutils import common, driver, exceptions +from glucometerutils.support import serial + +_CLOCK_INIT_RE = re.compile( + r"^(?P[A-Z][a-z]{2}) (?P[0-9]{2}) (?P[0-9]{4}) " + r"(?P