Motion_EC_Stm32_archived/README.md

34 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!--
* @Description: file content
* @Author: CK.Zh
* @Date: 2020-02-20 11:39:38
* @LastEditors: CK.Zh
* @LastEditTime: 2020-04-30 10:15:25
-->
# NaviKit_stm32
PM1导航套件中电源控制板源码STM32F107VCT6开发环境STM32CubeIDE
# 特性
## 1.电池管理统计功能基于IIC协议的库仑计
## 2.负载的启动顺序编辑和软件改变/查询负载状态
# 串口通信协议
* TODO
`STM32作为CDC Device接入到USB2.0-HUB的Downsteam 7端口下`
* 负载开关部分
| 位置 | 字节0 | 字节1 | 字节2 | 字节3 | 字节4 | 字节5 | 字节6 | 字节7 |
| ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- |
| 功能 | 帧头 | 读写 | 指令 |
| 示例 | 0xA5 | 0x80 读 </br> 0x81 写 </br> 0x7f 返回 |
* 电池管理部分
# Note
在使用usb的时候
`stm32f1xx_hal_pcd.c文件内`
`void HAL_PCD_IRQHandler(PCD_HandleTypeDef *hpcd)函数内`
`HAL_PCD_SuspendCallback(hpcd) 代码段` 务必屏蔽,否则导致枚举失败,提示获取设备描述符失败。