Commit Graph

16 Commits

Author SHA1 Message Date
Admin
64618617cf Fix: Improve BLE data reception and WiFi connection stability
- Add BLE data timeout handling: auto-process data when timeout occurs
- Fix WiFi reconnection: add scanning conflict detection with isScanning flag
- Fix WiFi scanning timeout: reset WiFi hardware state before scanning
- Improve scan conflict handling: wait for scan completion instead of skipping
- Add WiFi.scanDelete() calls to prevent hardware state issues
- Add proper isScanning flag management in all scanning functions
2026-03-03 16:06:57 +08:00
Admin
435a7caa66 Update .gitignore to exclude git_upload.bat and .trae/ 2026-03-03 14:45:17 +08:00
0f00dfbb5d 更新 README.md 2026-03-02 10:20:40 +00:00
Admin
4c1a38fd1f 修复WiFi和BLE相关问题
1. BLE数据接收超时处理改进
   - 当数据接收超时且未被处理时,自动当作接收完成进行处理
   - 避免因JSON提取失败导致数据丢失

2. WiFi重连状态管理修复
   - 修复WiFi重连时状态卡死在WIFI_SCANNING的问题
   - 扫描失败后正确恢复为WIFI_DISCONNECTED状态

3. WiFi扫描前硬件状态重置
   - 在扫描前使用WiFi.disconnect(false)断开连接(保留配置)
   - 增加200ms等待时间,避免硬件状态异常导致扫描失败

4. WiFi连接前扫描结果清理
   - 在连接前调用WiFi.scanDelete()删除扫描结果
   - 增加300ms等待时间,让WiFi硬件完全准备好

5. WiFi扫描冲突防护机制
   - 添加isScanning标志位防止同时进行多个扫描操作
   - 避免蓝牙扫描和重连扫描冲突导致扫描失败
2026-03-02 18:11:11 +08:00
Admin
ba2832abf8 Clean up test files and update main.cpp 2026-02-28 15:36:04 +08:00
4bc342afcd 删除 data_formats_explanation.md 2026-02-28 07:31:12 +00:00
da6ca2f52e 删除 传感器数据.txt 2026-02-28 07:30:46 +00:00
0a281fa564 删除 test_json_chunk_sender.py 2026-02-28 07:30:11 +00:00
1cd4b1fa7d 删除 tcp-output(1).py 2026-02-28 07:30:02 +00:00
0f1e543f2c 删除 generate_radar_data.py 2026-02-28 07:29:52 +00:00
393822de2a 更新 README.md 2026-02-28 07:29:25 +00:00
124a1107f8 更新 README.md 2026-02-28 07:28:06 +00:00
Admin
f25d7d145d Add comprehensive README.md documentation 2026-02-28 14:55:00 +08:00
Admin
4391c14145 Update project with radar and wifi manager modules 2026-02-28 14:52:02 +08:00
userName
941e842562 第四版 2026-01-22 16:36:22 +08:00
userName
5e2dfc8ac8 Radar 2025-12-15 09:19:47 +08:00