|  |  |  | @ -808,7 +808,7 @@ static HAL_StatusTypeDef _debug_adj_connect(void) | 
		
	
		
			
				|  |  |  |  |     HAL_GPIO_WritePin(RS485_A_DE_GPIO_Port, RS485_A_DE_Pin, GPIO_PIN_SET); | 
		
	
		
			
				|  |  |  |  |     HAL_E_RETURN(HAL_UART_Transmit(debug_adj_uart, debug_flash, head->len, 300)); | 
		
	
		
			
				|  |  |  |  |     HAL_GPIO_WritePin(RS485_A_DE_GPIO_Port, RS485_A_DE_Pin, GPIO_PIN_RESET); | 
		
	
		
			
				|  |  |  |  | 	 | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |     /* 接收报文. */ | 
		
	
		
			
				|  |  |  |  |     HAL_UART_Abort(debug_adj_uart); | 
		
	
		
			
				|  |  |  |  |     HAL_E_RETURN(HAL_UART_Receive(debug_adj_uart, debug_flash, 0x29, 300)); | 
		
	
	
		
			
				
					|  |  |  | @ -890,7 +890,7 @@ static HAL_StatusTypeDef _debug_adj_auto(uint8_t bitmap) | 
		
	
		
			
				|  |  |  |  |     /* 设置开始操作. */ | 
		
	
		
			
				|  |  |  |  |     HAL_E_RETURN(_debug_adj_start()); | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | 	//for(i = 0; i < DAU_PORT_POWER_CNT; i++)
 | 
		
	
		
			
				|  |  |  |  |     //for(i = 0; i < DAU_PORT_POWER_CNT; i++)
 | 
		
	
		
			
				|  |  |  |  |     for(i = 0; i < 1; i++) | 
		
	
		
			
				|  |  |  |  |     { | 
		
	
		
			
				|  |  |  |  |         /* 过滤不需要的通道. */ | 
		
	
	
		
			
				
					|  |  |  | @ -914,15 +914,15 @@ static HAL_StatusTypeDef _debug_adj_auto(uint8_t bitmap) | 
		
	
		
			
				|  |  |  |  |         } | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |         /* 开始自动校准, 注意不同变比的通道不能一起校准. */ | 
		
	
		
			
				|  |  |  |  |         for (j = 0; j < 1; j++)	// 只校准一个分段点 2024/12/11
 | 
		
	
		
			
				|  |  |  |  |         for (j = 0; j < 1; j++)     // 只校准一个分段点 2024/12/11
 | 
		
	
		
			
				|  |  |  |  |         { | 
		
	
		
			
				|  |  |  |  |             HAL_E_RETURN(_debug_adj_source_set(bitmap_new, j)); | 
		
	
		
			
				|  |  |  |  |             osDelay(3000); | 
		
	
		
			
				|  |  |  |  |             g_is_adj_status = 1; | 
		
	
		
			
				|  |  |  |  |             while (g_is_adj_status != 2) | 
		
	
		
			
				|  |  |  |  |             { | 
		
	
		
			
				|  |  |  |  | 				common_watchdog_set(COM_WDG_CLI); | 
		
	
		
			
				|  |  |  |  | 				osDelay(2000); | 
		
	
		
			
				|  |  |  |  |                 common_watchdog_set(COM_WDG_CLI); | 
		
	
		
			
				|  |  |  |  |                 osDelay(2000); | 
		
	
		
			
				|  |  |  |  |             } | 
		
	
		
			
				|  |  |  |  |             DBG(DBG_M_RS485_DEBUG, "capture end...\r\n"); | 
		
	
		
			
				|  |  |  |  |             HAL_E_RETURN(_dau_base_auto(bitmap_new, j + 1)); | 
		
	
	
		
			
				
					|  |  |  | @ -949,7 +949,7 @@ static HAL_StatusTypeDef _debug_adj_autoEx(uint8_t bitmap, uint16_t elec, uint8_ | 
		
	
		
			
				|  |  |  |  |     /* 设置开始操作. */ | 
		
	
		
			
				|  |  |  |  |     HAL_E_RETURN(_debug_adj_start()); | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | 	//for(i = 0; i < DAU_PORT_POWER_CNT; i++)
 | 
		
	
		
			
				|  |  |  |  |     //for(i = 0; i < DAU_PORT_POWER_CNT; i++)
 | 
		
	
		
			
				|  |  |  |  |     for(i = 0; i < 1; i++) | 
		
	
		
			
				|  |  |  |  |     { | 
		
	
		
			
				|  |  |  |  |         /* 过滤不需要的通道. */ | 
		
	
	
		
			
				
					|  |  |  | @ -974,18 +974,18 @@ static HAL_StatusTypeDef _debug_adj_autoEx(uint8_t bitmap, uint16_t elec, uint8_ | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |         /* 开始自动校准, 注意不同变比的通道不能一起校准. */ | 
		
	
		
			
				|  |  |  |  |         //for (j = 0; j < DAU_POWER_ADJ_CNT; j++)
 | 
		
	
		
			
				|  |  |  |  |         {           		 | 
		
	
		
			
				|  |  |  |  |         { | 
		
	
		
			
				|  |  |  |  |             HAL_E_RETURN(_debug_adj_source_setEx(bitmap_new, index-1, elec)); | 
		
	
		
			
				|  |  |  |  | 			osDelay(5000); | 
		
	
		
			
				|  |  |  |  |             osDelay(5000); | 
		
	
		
			
				|  |  |  |  |             g_is_adj_status = 1;        | 
		
	
		
			
				|  |  |  |  |             while (g_is_adj_status != 2) | 
		
	
		
			
				|  |  |  |  |             { | 
		
	
		
			
				|  |  |  |  | 				common_watchdog_set(COM_WDG_CLI); | 
		
	
		
			
				|  |  |  |  | 				osDelay(2000); | 
		
	
		
			
				|  |  |  |  |                 common_watchdog_set(COM_WDG_CLI); | 
		
	
		
			
				|  |  |  |  |                 osDelay(2000); | 
		
	
		
			
				|  |  |  |  |             } | 
		
	
		
			
				|  |  |  |  |             DBG(DBG_M_RS485_DEBUG, "capture end...\r\n"); | 
		
	
		
			
				|  |  |  |  |             HAL_E_RETURN(_dau_base_auto(bitmap_new, index));     | 
		
	
		
			
				|  |  |  |  |     		g_is_adj_status = 0; | 
		
	
		
			
				|  |  |  |  |             g_is_adj_status = 0; | 
		
	
		
			
				|  |  |  |  |         }         | 
		
	
		
			
				|  |  |  |  |     } | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
	
		
			
				
					|  |  |  | @ -1056,7 +1056,7 @@ void _debug_pkt_adj_autoEx(uint16_t elec, uint8_t index) | 
		
	
		
			
				|  |  |  |  |         data->ch_selecet = 1; | 
		
	
		
			
				|  |  |  |  |         if (data->ch_selecet == 1) | 
		
	
		
			
				|  |  |  |  |         { | 
		
	
		
			
				|  |  |  |  | 			HAL_GPIO_WritePin(LED_RUN_GPIO_Port, LED_RUN_Pin, GPIO_PIN_SET); | 
		
	
		
			
				|  |  |  |  |             HAL_GPIO_WritePin(LED_RUN_GPIO_Port, LED_RUN_Pin, GPIO_PIN_SET); | 
		
	
		
			
				|  |  |  |  |         } | 
		
	
		
			
				|  |  |  |  |         rv = _debug_adj_autoEx(data->ch_selecet, elec, index); | 
		
	
		
			
				|  |  |  |  |         if (rv == HAL_OK) | 
		
	
	
		
			
				
					|  |  |  | 
 |