fix: 更新协议板版本至V1.1.46,新增南向YMODEM调试打印
修改文件: apps/chrg/applications/thread/chrg_comm.c:更新协议板版本号为0x013E apps/chrg/applications/utils/chrg_def.h:同步版本号为V1.1.46 apps/chrg/applications/thread/chrg_north.h:新增SOUTH_YMODEM_DEBUG调试开关 apps/chrg/applications/thread/chrg_south.c:添加YMODEM回码打印逻辑 apps/chrg/applications/thread/chrg_roll_sou.c:添加YMODEM发送数据十六进制打印 docs/修改日志.md:新增V1.1.46版本更新记录
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
#include "stm32f4xx_hal.h"
|
||||
|
||||
#define HOLD_REG_FIRMWARE_VERSION 0x0300U /* 协议板固件版本,只读 */
|
||||
#define CHRG_FIRMWARE_VERSION 143U /* 当前协议板版本:V1.1.43,按十进制版本号编码 */
|
||||
#define CHRG_FIRMWARE_VERSION 0x013EU /* 当前协议板版本:V1.1.46 */
|
||||
|
||||
|
||||
rt_uint8_t ucDiscInBuf[(TOTAL_DISC_REGS+BITS_UCHAR-1)/BITS_UCHAR];
|
||||
|
||||
@@ -47,6 +47,7 @@
|
||||
#define NORTH_SINK_DEBUG 0x00 // Sink协议解析及组帧
|
||||
#define SOUTH_FRAME_DEBUG 0x00 // 南向UART原始收发帧
|
||||
#define SOUTH_COMMAND_DEBUG 0x01 // 南向寄存器写命令
|
||||
#define SOUTH_YMODEM_DEBUG 0x01 // 南向YMODEM回码
|
||||
#define COMM_FRAME_DEBUG 0x00 // COM UART原始收发帧
|
||||
#define COMM_DEBUG 0x00 // COM寄存器读写过程
|
||||
#define COMM_TRIM_DEBUG 0x00 // COM校准参数解析
|
||||
|
||||
@@ -1006,6 +1006,9 @@ void chrg_roll_sou_thread_entry (void *data)
|
||||
continue;
|
||||
}
|
||||
pROLL->idx = (eIDX_SOU_CH)single_ch;
|
||||
#if SOUTH_YMODEM_DEBUG
|
||||
LOG_HEX("sendY", 32, pROLL->updata_buf, pROLL->leng);
|
||||
#endif
|
||||
ret = chrg_eload_send_ymodem_data(pROLL->updata_buf, pROLL->leng);
|
||||
|
||||
rt_mutex_take(pTHR->mutex, RT_WAITING_FOREVER);
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#include "chrg_south.h"
|
||||
#include "chrg_roll_sou.h"
|
||||
#include "chrg_switch.h"
|
||||
#include "chrg_north.h"
|
||||
#include "chrg_utils.h"
|
||||
#include "chrg_eload.h"
|
||||
#include "ulog.h"
|
||||
@@ -458,6 +459,9 @@ void chrg_south_thread_entry (void *data)
|
||||
rt_ringbuffer_getchar(pSOU->rb, &resp_byte);
|
||||
if (resp_byte == ACK || resp_byte == NAK ||
|
||||
resp_byte == ACK_C || resp_byte == YM_CAN) {
|
||||
#if SOUTH_YMODEM_DEBUG
|
||||
rt_kprintf("south ymodem resp: 0x%02X\r\n", resp_byte);
|
||||
#endif
|
||||
chrg_eload_set_ymodem_resp(resp_byte);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
/* CHRG application version. Keep this value synchronized with the changelog. */
|
||||
#define CHRG_VERSION_MAJOR 1U
|
||||
#define CHRG_VERSION_MINOR 1U
|
||||
#define CHRG_VERSION_PATCH 43U
|
||||
#define CHRG_VERSION_STRING "V1.1.43"
|
||||
#define CHRG_VERSION_PATCH 46U
|
||||
#define CHRG_VERSION_STRING "V1.1.46"
|
||||
|
||||
/*
|
||||
* Channel polling mode:
|
||||
|
||||
Reference in New Issue
Block a user