数据库:下位机交互数据全量落库,SQLite 封装重构

- 新增 msg_log 原始帧表,RX/TX 双向记录原始字节与校验结果
- SQLite 封装改为描述符驱动的泛化 insert,删除 10 个手写 SQL
- 新增 ccuSetParmCmd/ccuSetParmFb 表,补齐 CCU 参数设定反馈落库
- 错误防崩溃:统一加锁、fail-open 降级、损坏自动重建、析构顺序修复
- WAL/迁移/预编译语句路径,数据库路径支持 mission 配置 dbpath
- 清理未使用的 shell.c/sqlite3ext.h/SQLite.zip
This commit is contained in:
zjk
2026-08-19 16:28:41 +08:00
parent 3cdfa2e757
commit f50c7bd612
15 changed files with 918 additions and 35359 deletions
+13
View File
@@ -75,6 +75,10 @@ bool LowerCommManager::initUdpComm(){
return true;
}
void LowerCommManager::setCommLogger(ICommLogger* logger)
{
if (m_udpComm) m_udpComm->setCommLogger(logger);
}
void LowerCommManager::processPeriodicTasks() {
sendCcuCommand(m_pm->m_CcuColCmd);
m_pm->m_db->insertData(m_pm->m_CcuColCmd);
@@ -201,6 +205,15 @@ bool LowerCommManager::updatePoweSystemStates(){
}
}
}
if(!m_udpComm->m_qReceiveCcuSetParmBuffer.empty())
{
double time;
msg_CcuSetParmFbMsg setParmFb;
if(m_udpComm->popMsgFormQueue(time, setParmFb))
{
m_pm->m_db->insertData(setParmFb); //写入数据库
}
}
if(!m_udpComm->m_qReceiveDisHighVolBusBuffer.empty())
{
double time;