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

Eddystone TLM

Dear Nordic Team,

Thanks for supporting.

How to calculate the battery voltage level from Eddystone TLM. Its always transmit 240mV. I am using CR2302 3V battery.

My hardware : nRF51422 development kit

Parents
  • Hi,

    Probably your code is using this define in the eddystone TLM data:

    #define APP_EDDYSTONE_TLM_BATTERY       0x00, 0xF0                        
    /**< Mock value. Battery voltage in 1 mV per bit. */
    

    Which corresponds to 240mV.

    To actually get the battery voltage you have to measure it. You can take a look at the ble_app_proximity example on how to do this (hint: take a look at the adc_configure() and adc_event_handler(..) functions). When you have the battery voltage in millivolt you can update the correct bytes in the eddystone_tlm_data array (if you are using the eddystone example in the SDK).

Reply
  • Hi,

    Probably your code is using this define in the eddystone TLM data:

    #define APP_EDDYSTONE_TLM_BATTERY       0x00, 0xF0                        
    /**< Mock value. Battery voltage in 1 mV per bit. */
    

    Which corresponds to 240mV.

    To actually get the battery voltage you have to measure it. You can take a look at the ble_app_proximity example on how to do this (hint: take a look at the adc_configure() and adc_event_handler(..) functions). When you have the battery voltage in millivolt you can update the correct bytes in the eddystone_tlm_data array (if you are using the eddystone example in the SDK).

Children