依旧使用查询发送
This commit is contained in:
parent
1743b311fb
commit
ddde350bd9
|
@ -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.check_Bit = HY_CheckFunc((uint8_t *)(&pack), HY_electricityStatisticsResponse_PACK_SIZE - 2);
|
||||||
pack.end_Flag = g_otherParameter.endFlagHY;
|
pack.end_Flag = g_otherParameter.endFlagHY;
|
||||||
|
|
||||||
|
|
||||||
|
// uart_interruptSend(device, (uint8_t *)&pack, HY_electricityStatisticsResponse_PACK_SIZE);
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
if (!Check_485_bus_busy(device)) {
|
if (!Check_485_bus_busy(device)) {
|
||||||
uart_dev_write(device, &pack, HY_electricityStatisticsResponse_PACK_SIZE);
|
uart_dev_write(device, &pack, HY_electricityStatisticsResponse_PACK_SIZE);
|
||||||
|
|
|
@ -66,8 +66,8 @@ void Init()
|
||||||
//// uartDMA_Init(g_gw485_uart4_handle, USART_Tbuffer, len);
|
//// uartDMA_Init(g_gw485_uart4_handle, USART_Tbuffer, len);
|
||||||
//// USART_DMACmd(USART4, USART_DMAReq_Tx, ENABLE);
|
//// USART_DMACmd(USART4, USART_DMAReq_Tx, ENABLE);
|
||||||
// };
|
// };
|
||||||
|
// send_init();
|
||||||
|
|
||||||
send_init();
|
|
||||||
/* 1ms */
|
/* 1ms */
|
||||||
TIM3_Init(10);
|
TIM3_Init(10);
|
||||||
|
|
||||||
|
|
|
@ -118,7 +118,7 @@ void TIM2_IRQHandler(void)
|
||||||
totalChargCapacity += g_otherParameter.Charg_Current;
|
totalChargCapacity += g_otherParameter.Charg_Current;
|
||||||
totalElectricityConsumption += g_otherParameter.Discharg_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
29137
obj/mppt_Nos_V0.4.lst
29137
obj/mppt_Nos_V0.4.lst
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue