摘要: 在Linux中手动设置时钟并同步到硬件时钟的步骤如下: 1. 查看当前时间状态 # 查看当前系统时间和硬件时间 timedatectl status # 或分别查看 date # 查看系统时间 hwclock --show # 查看硬件时钟 2. 手动设置系统时间 方法一:使用 date 命令 # 阅读全文
posted @ 2025-10-09 15:19 BlackSnow 阅读(22) 评论(0) 推荐(0)
摘要: RedisConnector.h // // Created by HP on 2024/12/27. // #ifndef SSUDRIVER_REDISCONNECTOR_H #define SSUDRIVER_REDISCONNECTOR_H #include <sw/redis++/redi 阅读全文
posted @ 2025-10-09 13:57 BlackSnow 阅读(7) 评论(0) 推荐(0)
摘要: SerialParity.h enum class SerialParity : char { None = 'N', Odd = 'O', Even = 'E' }; SerialPortConfig.h // 串口配置结构体 struct SerialPortConfig { std::stri 阅读全文
posted @ 2025-10-09 13:56 BlackSnow 阅读(4) 评论(0) 推荐(0)
摘要: // // Created by HP on 2025/9/30. // #ifndef SIFANG103_OPTION_H #define SIFANG103_OPTION_H #include <iostream> #include <sys/shm.h> #include <cstring> 阅读全文
posted @ 2025-10-09 13:51 BlackSnow 阅读(4) 评论(0) 推荐(0)