glucometers-tech / glucometer-protocols

A shared repository to provide a description of reverse-engineered glucometer protocols
https://protocols.glucometers.tech/
98 stars 33 forks source link

FreeStyle Libre unit of measure recognition #10

Open Flameeyes opened 5 years ago

Flameeyes commented 5 years ago

In 0efe89fb379a42c6972a72255fa3bbcc91990363 I added some of the commands from the FreeStyle reader updater software. One of them $uom? might be the right one to identify the unit of measure.

@pascalfribi any chance you have a device at hand to try the $uom? command? I wrote a (Linux) tool to send arbitrary commands to FreeStyle HID devices at https://github.com/Flameeyes/glucometerutils/blob/master/reversing_tools/abbott/freestyle_hid_console.py

pascalfribi commented 5 years ago

Hi,

I will have a look at it, when I find some time. Will be easy to add it to my app as well and see what comes out. I have a device which has mmol/l set, so it would be interesting to also ask someone who has mg/dL set.

Will get back to you when I know more.

Regards

Pascal

On 8 Sep 2019, at 21:25, Diego Elio Pettenò notifications@github.com wrote:

In 0efe89f https://github.com/Flameeyes/glucometer-protocols/commit/0efe89fb379a42c6972a72255fa3bbcc91990363 I added some of the commands from the FreeStyle reader updater software. One of them $uom? might be the right one to identify the unit of measure.

@pascalfribi https://github.com/pascalfribi any chance you have a device at hand to try the $uom? command? I wrote a (Linux) tool to send arbitrary commands to FreeStyle HID devices at https://github.com/Flameeyes/glucometerutils/blob/master/reversing_tools/abbott/freestyle_hid_console.py https://github.com/Flameeyes/glucometerutils/blob/master/reversing_tools/abbott/freestyle_hid_console.py — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Flameeyes/glucometer-protocols/issues/10?email_source=notifications&email_token=ABPAO5EGIAB76IPFK4TCZMLQIVGRTA5CNFSM4IUURIEKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HKA54OA, or mute the thread https://github.com/notifications/unsubscribe-auth/ABPAO5EHQK7L54F7TKZWI4TQIVGRTANCNFSM4IUURIEA.

pascalfribi commented 5 years ago

I can confirm that the command $uom? returns 0 for my device. My device is set to mmol/l. I will try to reach one of my users so he can check it with a mg/dL device.

steve8x8 commented 4 years ago

I've got a mg/dL Libre2 reader which doesn't return anything useful (yet) to freestyle_hid_console.py (https://github.com/Flameeyes/glucometerutils/issues/68) but I'd be willing to dig into it if someone lends me a hand...

Flameeyes commented 4 years ago

This is now easily tested on Windows as well as Linux, as long as Python 3.7+ is installed (Microsoft Store includes Python 3.8).

For this to work, you need to run the following commands (PS > is meant to represent the prompt):

PS > pip install --user freestyle-hid[tools] hidapi
PS > freestyle-hid-console -p 13904
>>> $uom?
0