From 8c5ab9406e77cb6ed918c997be0870104bda31a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Fri, 24 Jan 2020 19:33:24 +0000 Subject: freestyle: only send command 0x01 to initialize the device. This has been tested on fslibre and fsprecisionneo, but please report if this does not work with other FreeStyle devices (Insulinx?) It appears the 0x04/0x05/0x15 dance is only needed by the Abbott software to identify which model (and software version) it is talking with. --- glucometerutils/support/freestyle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glucometerutils/support/freestyle.py b/glucometerutils/support/freestyle.py index d61842e..6019fa7 100644 --- a/glucometerutils/support/freestyle.py +++ b/glucometerutils/support/freestyle.py @@ -21,7 +21,7 @@ from glucometerutils.support import hiddevice # Sequence of initialization messages sent to the device to establish HID # protocol. -_INIT_SEQUENCE = (0x04, 0x05, 0x15, 0x01) +_INIT_SEQUENCE = (0x01,) _FREESTYLE_MESSAGE = construct.Struct( 'hid_report' / construct.Const(0, construct.Byte), -- cgit v1.2.3