diff --git a/8759df19-2341-4343-bda3-6dffcbfbe243.gitignore b/8759df19-2341-4343-bda3-6dffcbfbe243.gitignore new file mode 100644 index 0000000..167138a --- /dev/null +++ b/8759df19-2341-4343-bda3-6dffcbfbe243.gitignore @@ -0,0 +1,33 @@ +#*.uvoptx +#OutputFiledir & Files +Listings/ +Objects/ +*.crf +*.d +*.o +*.build_log.htm +*.axf +*.htm +*.lnp +*.dep +*.map +*.bin +*.hex + +#Keil Layout File +*.uvguix.* + +#DebugConfig +DebugConfig/ + +#Keil Project screen layout file +*.uvguix.* +*.uvgui.* + +#JLINK file +*JLinkLog.txt +*JLinkSettings.ini + +#temp files +~$* +*.TMP \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..b02a659 --- /dev/null +++ b/README.md @@ -0,0 +1,164 @@ +# hpw422 项目说明 + +## 项目基本信息 + +| 项目名称 | hpw422 | +| ---------- | ------------------------------ | +| 产品类型 | 220V两通道智能通断器 | +| 项目负责人 | 徐少祥 | +| 硬件版本 | V1.1 | +| 固件版本 | V1.0 | +| 创建日期 | 2026-06-04 | + +--- + +## 主控芯片 +* 433:WS480L +* BLE:XC6517 SOP16 +* Flash:内置 Flash + +--- + +## 开发环境 + +* Keil MDK V5 + + + +### 编译器 + +* ARMCC V5 + +--- + +## 工程路径 +project\example\ble\ble_peripheral\mdk + +打开方式: + +双击 MDK/ble_peripheral.uvprojx + +--- + +## 烧录说明 + +### 烧录器 +*USB TO TTL串口 + +### 烧录软件 +* ComV14.4.4 + +### 烧录接口 + +| 引脚 | 说明 | +| ----- | ---- | +| VCC | 电源 | +| GND | 地 | +| R | 串口接收 | +| T | 串口发送 | +| BT | 电源 | + +--- + +## 编译方法 + +Rebuild + +输出文件: +project\example\ble\ble_peripheral\mdk\output_bin目录下ble_peripheral.bin文件 + + +--- + +## 仓库目录结构 + +```text +hpw422 +│ +├── component +│ ├── ble +│ ├── rf24 +│ ├── SBC +│ └── xc6xx_drivers +│ +├── doc +│ ├── hpw422蓝牙协议 +│ └── BOM +│ +├── project +│ ├── delete.bat +│ └── example + ├── 2.4g + ├── ble + ├── driver +├── tools +│ └── ComV14.4.4 +│ +└── README.md +``` +--- + +## 蓝牙协议 + +协议文档位置: + +hpw422\doc\hpw422蓝牙协议.xls + +--- + +## Git提交规范 + +提交前: + +```shell +git pull +``` + +提交: + +```shell +git add . + +git commit -m "修复BLE连接异常" + +git push +``` + +禁止: + +```text +修改 +更新 +测试 +123 +abc +``` + +推荐: + +```text +修复BLE连接异常 +增加RF433学习码功能 +优化PWM调光曲线 +修复定时器逻辑 +增加OTA升级功能 +``` + +--- + +## 注意事项 + +1. 修改协议必须同步更新协议文档。 +2. 修改硬件必须同步更新BOM。 +3. 发布版本必须同步更新ReleaseNote。 +4. 禁止将源码仅保存在个人电脑。 +5. 所有发布版本必须上传至Gitea仓库。 +6. 离职前必须完成代码交接与文档更新。 + +--- + +## 修改记录 + +| 日期 | 作者 | 内容 | +| ---------- | ---- | -------- | +| 2026-06-04 | 徐少祥 | 创建项目 | diff --git a/doc/HPW422_V1.1.xlsx b/doc/HPW422_V1.1.xlsx new file mode 100644 index 0000000..36aa7d4 Binary files /dev/null and b/doc/HPW422_V1.1.xlsx differ diff --git a/doc/hpw422蓝牙协议.xls b/doc/hpw422蓝牙协议.xls new file mode 100644 index 0000000..17047e1 Binary files /dev/null and b/doc/hpw422蓝牙协议.xls differ