Skip to content Skip to sidebar Skip to footer

How To Get The Correct Glucose Measurement Value From Hex

I am working on android app which is used to read sugar level from BLE device (Any Glocometer) whenever new data available. Whenever i check my sugar level through device which is

Solution 1:

If your device uses the adopted Glucose service/characteristic, then according to the Bluetooth website, your measurement is divided as follows:-

  • Field1: Flags (8bits): 0B (1011: time offset present, type and sample TRUE, kg/L, Sensor Status True)
  • Field2: Sequence number (16bits): 04 00
  • Field3: Date Time (54 bits): E4 07 05 0E 0C 31 1D
  • Field4: Time offset (16 bits): 4E 01
  • Field5: Units kg/L: (16 bits SFLOAT): 68 0B
  • Field6: Units mol/L: (16 bits SFLOAT): NOT PRESENT
  • Field7: Type: (4bits): F
  • Field8: Location: (4bit): 8
  • Field9: Status: (16bit): 00 00

So your measurement is 68 0B. 68 is 104 which is in line with your measurement. Not sure what the 0B is for and how it is used, but it can be discarded for now.

I hope this helps.

Post a Comment for "How To Get The Correct Glucose Measurement Value From Hex"