Qualcomm SM6115 平台RTC accuracy problem

Issues:

我们项目中使用的rtc对时有误差,大概24小时内会有十几秒到二十秒左右的误差,请问如何优化使误差在两三秒以内。(The rtc used in our project has an error in timing. There will be an error of about ten seconds to twenty seconds in about 24 hours. How to optimize the error within two or three seconds. The following is the relevant configuration of rtc we currently do in xbl, please help to analyze, thank you!)

c 复制代码
pm_driver_post_init ( void )
{
pm_err_flag_type err_flag = PM_ERR_FLAG_SUCCESS;

err_flag |= pm_app_vreg_clear_ocp_status();
err_flag |= pm_comm_write_byte(0x0 , 0x5A5B, 0xD0, 0x0); //rtc
err_flag |= pm_comm_write_byte(0x0 , 0x2845, 0x02, 0x0); //rtc

return err_flag;
}



Solved:

please try to config as below:
0x5A58 : 0x20
0x5a5B : 0XD0

and please also measure the xo out long time(or by trigger mode), normally the calibration will be on each 10s, please make sure the test methold is ok, thanks!

bash 复制代码
 读纽扣电池电压:/sys/bus/spmi/devices/spmi0-00/1c40000.qcom,spmi:qcom,pm6125@0:vadc@3100/iio:device0/in_voltage_vcoin_input



0X5A58
bit7:bit4 CAL_FREQ_RTC_DEFAULT  
0x2:CAL_PER_37mSEC
0x3:CAL_PER_75mSEC
0x4:CAL_PER_150mSEC
0x5:CAL_PER_300mSEC
0x6:CAL_PER_612mSEC
0x7:CAL_PER_1p25SEC
0x8:CAL_PER_2p5SEC
0x9:CAL_PER_5SEC
0xA:CAL_PER_10SEC
相关推荐
RTC实战笔记5 天前
实时互动数字人怎么做,才不是一个只会说话的视频?
音视频·数字人·rtc·数字人接入
RTC实战笔记17 天前
Android 实时音视频接入教程:媒体补充增强信息(SEI)
音视频·媒体·rtc
一叶知秋0625 天前
[东软电量计开发]:ES32L0910本地RTC校准(三)
rtc·utc·东软电量计
agathakuan1 个月前
從零開始在家開發 IoT: OpenOCD 與 GDB 協作指南
stm32·gnu·rtc
小灰灰搞电子1 个月前
rt-thread RTC设备使用详解
rt-thread·rtc
普中科技2 个月前
【普中 51-Ai8051 开发攻略】-- 第 24 章 RTC 时钟实验
单片机·嵌入式硬件·rtc·实时时钟·普中科技·ai8051u·aicube
深圳市晶科鑫实业有限公司2 个月前
RTC模块vs. 32.768KHz晶振:深度对比与选型指南
stm32·单片机·嵌入式硬件·实时音视频·rtc
Oflycomm3 个月前
从硬件到智能:AI摄像头平台驱动安防与自动驾驶融合升级
人工智能·iot·qualcomm·qogrisys·ai摄像头
海水冷却3 个月前
2026 主流 RTC SDK 选型参考,7 大维度横向对比
实时音视频·rtc
海水冷却3 个月前
从 Clubhouse 的崛起与陨落,看语聊房 RTC SDK 的变化
rtc·语聊房