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
相关推荐
涂山苏苏⁠1 个月前
STM32之RTC
stm32·rtc
ZEGO即构开发者2 个月前
简单4步,快速搭建数字人实时视频通话功能
实时互动·webrtc·实时音视频·数字人·即时通讯·rtc·视频聊天·虚拟人·社交·音视频技术·ai虚拟人·ai语音驱动·android多人语音·java多人语音通话·zego·泛娱乐·社交泛娱乐·视频美颜·虚拟形象sdk·自动聊天机器人
芯片小熊3 个月前
RTC时钟详解
单片机·嵌入式硬件·实时音视频·时钟·rtc
字节跳动视频云技术团队3 个月前
沉浸式 LBE 大空间互动体验!火山引擎支持《转折·从头越》北京 VR 巡展
aigc·rtc·webvr
v_JULY_v3 个月前
实时动作分块RTC——为解决高延迟,让π0.5也可以点燃火柴、插入网线:执行当前动作分块时生成下一个分块,且已执行的冻结 未执行的则补全
rtc·异步动作分块·实时动作分块
~央千澈~4 个月前
优雅草蜻蜓T语音会议系统私有化部署方案与RTC技术深度解析-优雅草卓伊凡|clam
webrtc·实时音视频·rtc
nangonghen5 个月前
实时通信RTC与传统直播的异同
实时音视频·直播·rtc
___波子 Pro Max.5 个月前
嵌入式RTC工作原理及应用场景
rtc
π同学5 个月前
基于RT-Thread的STM32F4开发第七讲——RTC(硬件、软件)
rt-thread·rtc·stm32f4