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

Eddystone TLM secCount always starts with 0

normally the secCount in Eddystone TLM should be the time since power-on or reboot:

https://github.com/google/eddystone/blob/master/eddystone-tlm/tlm-plain.md

but the current implementation looks like this in components/ble/ble_services/eddystone/es_security.c

    m_security_slot[slot_no].timing.time_counter = APP_CONFIG_TIMING_INIT_VALUE;

so while generating EID secCount will be always set to APP_CONFIG_TIMING_INIT_VALUE, which is in my case 0.

Is there an explanation for this non-standard behaviour?

Parents
  • Hi,

    I need some help to better understand what is the issue, so that I can verify and file a bug report.

    From what I can tell, time_counter is correctly updated through the function es_security_update_time() whenever a beacon packet is sent (see the callback function adv_evt_handler() in nrf_ble_es.c.)

    time_counter is set to APP_CONFIG_TIMING_INIT_VALUE on Eddystone module initialization, and/or when an EID slot is configured. Is this the issue, that it should have been set to a non-zero value (or not set at all) in any of those situations?

    Regards,
    Terje

Reply
  • Hi,

    I need some help to better understand what is the issue, so that I can verify and file a bug report.

    From what I can tell, time_counter is correctly updated through the function es_security_update_time() whenever a beacon packet is sent (see the callback function adv_evt_handler() in nrf_ble_es.c.)

    time_counter is set to APP_CONFIG_TIMING_INIT_VALUE on Eddystone module initialization, and/or when an EID slot is configured. Is this the issue, that it should have been set to a non-zero value (or not set at all) in any of those situations?

    Regards,
    Terje

Children
Related