This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

About ble_app_hts

I've tried several time with this code, but the value the device with this code sends some kind of garbage number to the detecting device(e.g smartphone).

Does it really give the measured value?

Thank you

Parents
  • ble_app_hts includes the health thermometer service. The health thermometer service follows this specification. The temperature measurement characteristic is mandatory in the service. The temperature measurement characteristic follows this specification.

    The ble_app_hts application does not provide the Health Thermometer Service module with a measured value, it is simulated. Please examine temperature_measurement_send() and hts_sim_measurement().

    I assume you receive the following values in on your smart phone:

    06-8C-0E-00-FE-DC-07-0C-05-0B-32-00-04
    

    06, 00000110. Temperature Units Flag is set to 0, which means the temperature is in Celsius. Time Stamp Flag is set to 1, which means the time stamp is included. Temperature Type Flag is set to 1, which means that the temperature type is included.

    This is followed by the temperature in Celsius in floating point format, the mantissa is 0x0E8C and the exponent is 0xFE.

    Then the date, year (0x07DC), month (0x0C), day (0x05), hour (0x0B), minute (0x32), and second (0x00).

    Then the temperature type. 0x04 corresponds to BLE_HTS_TEMP_TYPE_FINGER.

Reply
  • ble_app_hts includes the health thermometer service. The health thermometer service follows this specification. The temperature measurement characteristic is mandatory in the service. The temperature measurement characteristic follows this specification.

    The ble_app_hts application does not provide the Health Thermometer Service module with a measured value, it is simulated. Please examine temperature_measurement_send() and hts_sim_measurement().

    I assume you receive the following values in on your smart phone:

    06-8C-0E-00-FE-DC-07-0C-05-0B-32-00-04
    

    06, 00000110. Temperature Units Flag is set to 0, which means the temperature is in Celsius. Time Stamp Flag is set to 1, which means the time stamp is included. Temperature Type Flag is set to 1, which means that the temperature type is included.

    This is followed by the temperature in Celsius in floating point format, the mantissa is 0x0E8C and the exponent is 0xFE.

    Then the date, year (0x07DC), month (0x0C), day (0x05), hour (0x0B), minute (0x32), and second (0x00).

    Then the temperature type. 0x04 corresponds to BLE_HTS_TEMP_TYPE_FINGER.

Children
No Data
Related