Access to Low Level Fine Timing Measurement (FTM) Clock Registers?
Posted: Thu Jun 01, 2023 10:03 pm
I would like to wirelessly synchronize 2x ESP32-S3-DevKitC-1 to within much less than 10 microseconds using Fine Timing Measurement (FTM) (Wi-Fi RTT).
As far as I can tell, the access to the FTM system is through the "esp_wifi_ftm_initiate_session" function which generates an FTM report with clock counter timestamps for the station and access point which are 48 and 52 bit integers with picosecond resolution (actual timestamp resolution seems to be about 1.5 ns).
I grep'd for "esp_wifi_ftm_initiate_session" to find the counter registers, but the only hits I get back are to the binary blob:
components/esp_wifi/lib/esp32s3/libnet80211.a
I would like to adjust the station's FTM clock to be synchronized with the access point's FTM clock.
How can I access the FTM clock registers to adjust the clocks? Thanks!
As far as I can tell, the access to the FTM system is through the "esp_wifi_ftm_initiate_session" function which generates an FTM report with clock counter timestamps for the station and access point which are 48 and 52 bit integers with picosecond resolution (actual timestamp resolution seems to be about 1.5 ns).
I grep'd for "esp_wifi_ftm_initiate_session" to find the counter registers, but the only hits I get back are to the binary blob:
components/esp_wifi/lib/esp32s3/libnet80211.a
I would like to adjust the station's FTM clock to be synchronized with the access point's FTM clock.
How can I access the FTM clock registers to adjust the clocks? Thanks!