依旧使用查询发送

This commit is contained in:
起床就犯困 2024-11-20 17:50:35 +08:00
parent 1743b311fb
commit ddde350bd9
11 changed files with 17904 additions and 18443 deletions

View File

@ -548,6 +548,9 @@ void HY_MsgProcFunc_electricityStatistics(device_handle device, void *pMsg, uint
pack.check_Bit = HY_CheckFunc((uint8_t *)(&pack), HY_electricityStatisticsResponse_PACK_SIZE - 2);
pack.end_Flag = g_otherParameter.endFlagHY;
// uart_interruptSend(device, (uint8_t *)&pack, HY_electricityStatisticsResponse_PACK_SIZE);
while (1) {
if (!Check_485_bus_busy(device)) {
uart_dev_write(device, &pack, HY_electricityStatisticsResponse_PACK_SIZE);

View File

@ -66,8 +66,8 @@ void Init()
//// uartDMA_Init(g_gw485_uart4_handle, USART_Tbuffer, len);
//// USART_DMACmd(USART4, USART_DMAReq_Tx, ENABLE);
// };
// send_init();
send_init();
/* 1ms */
TIM3_Init(10);

View File

@ -118,7 +118,7 @@ void TIM2_IRQHandler(void)
totalChargCapacity += g_otherParameter.Charg_Current;
totalElectricityConsumption += g_otherParameter.Discharg_Current;
check_sendState();
// check_sendState();
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff