fix:删除4G模组tools目录
This commit is contained in:
@@ -28,6 +28,8 @@ void YkcTask_Function(void const *argument)
|
||||
{
|
||||
init_chargers(); /* 初始化桩结构体*/
|
||||
ulTaskNotifyTake(pdTRUE, portMAX_DELAY); /* 等待桩通讯协议层完成*/
|
||||
osDelay(5000);
|
||||
// send_server_address_to_air724();
|
||||
while (1)
|
||||
{
|
||||
TaskRunTimeStat.YkcTask.threads_runtime = GetTask_RunTime(YkcTaskID);
|
||||
@@ -36,36 +38,59 @@ void YkcTask_Function(void const *argument)
|
||||
|
||||
switch (SETP)
|
||||
{
|
||||
case 0:
|
||||
case 0:
|
||||
{
|
||||
|
||||
if (g_charger_manager.charger_piles[1 - 1].is_udp_online)
|
||||
{
|
||||
uint8_t open_cmd[] = { 0x55, 0xAA, 0x3, 0x01, 0x01, 0xAA, 0x55};
|
||||
Air724_Message_Send(open_cmd, sizeof(open_cmd));
|
||||
osDelay(3000);
|
||||
SETP = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("网关:等待桩上电指令\r\n");
|
||||
osDelay(1000);
|
||||
SETP = 0;
|
||||
}
|
||||
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
{
|
||||
if (!g_charger_manager.charger_piles[1 - 1].is_online)
|
||||
{
|
||||
charger_to_server_0X01(1);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
SETP = 1;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
{
|
||||
if (!g_charger_manager.charger_piles[1 - 1].get_model)
|
||||
charger_to_server_0X09(1); // 桩1计费模型请求
|
||||
else
|
||||
SETP = 2;
|
||||
}
|
||||
osDelay(5000);
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
{
|
||||
if (!g_charger_manager.charger_piles[1 - 1].get_model)
|
||||
charger_to_server_0X09(1); // 桩1计费模型请求
|
||||
else
|
||||
SETP = 3;
|
||||
osDelay(3000);
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
{
|
||||
charger_to_server_0X13(1, 1); // 上传状态
|
||||
osDelay(15000);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
osDelay(2000);
|
||||
//osDelay(2000);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user