Browse Source

修改流程

YunZhiNeng 1 year ago
parent
commit
4798d86143

+ 1 - 1
Drivers/Modules/At_Module.c

@@ -21,7 +21,7 @@ static struct TIMER_Struct timer = {
 struct AT_Struct
 struct AT_Struct
 {
 {
 	enum AT_Status status;
 	enum AT_Status status;
-	uint8_t result[1024];
+	uint8_t result[2048];
 	uint16_t result_length;
 	uint16_t result_length;
 };
 };
 static struct AT_Struct at_Struct = {
 static struct AT_Struct at_Struct = {

+ 1 - 1
Drivers/Modules/Log_Module.c

@@ -41,7 +41,7 @@ void Log_SendHex(uint8_t * arr, uint16_t len)
 		Log_SendString(hex);
 		Log_SendString(hex);
 	}
 	}
 }
 }
-static char Log_String[1024];
+static char Log_String[2048];
 void Log_Printf(char *format, ...)
 void Log_Printf(char *format, ...)
 {
 {
 	memset(Log_String, 0, sizeof(Log_String));
 	memset(Log_String, 0, sizeof(Log_String));

+ 35 - 10
Drivers/Modules/bc260y/BC260Y_UDP_Client5.c

@@ -531,24 +531,49 @@ void UDP_Client_Handle(void)
 			resend_counter++;
 			resend_counter++;
 			goto_step(STEP_SET_CFUN_0);
 			goto_step(STEP_SET_CFUN_0);
 			break;
 			break;
+//		case STEP_SET_CFUN_0: // 设置最小功能模式
+//			result = bc260y.set_cfun(0);
+//			if(result == Result_Success)
+//			{
+//				Log_Printf_Debug("设置最小模式成功\r\n");
+//				if(resend_counter > 1) // 重发次数
+//				{
+//					
+//					goto_step(STEP_ENTER_SLEEP);
+//					
+//				}
+//				else
+//				{
+//					goto_step(STEP_START);
+//				}
+//			}
+//			else if(result == Result_Failed)
+//			{
+//				goto_step(STEP_ENTER_SLEEP);
+//			}
+//			break;
 		case STEP_SET_CFUN_0: // 设置最小功能模式
 		case STEP_SET_CFUN_0: // 设置最小功能模式
-			result = bc260y.set_cfun(0);
-			if(result == Result_Success)
-			{
-				Log_Printf_Debug("设置最小模式成功\r\n");
+			
+			
+				
 				if(resend_counter > 1) // 重发次数
 				if(resend_counter > 1) // 重发次数
 				{
 				{
-					goto_step(STEP_ENTER_SLEEP);
+		           result = bc260y.set_cfun(0);
+					if(result == Result_Success)
+					{
+						Log_Printf_Debug("设置最小模式成功\r\n");
+					   goto_step(STEP_ENTER_SLEEP);
+					}
+					else if(result == Result_Failed)
+	              {
+				      goto_step(STEP_ENTER_SLEEP);
+		        	}
 				}
 				}
 				else
 				else
 				{
 				{
 					goto_step(STEP_START);
 					goto_step(STEP_START);
 				}
 				}
-			}
-			else if(result == Result_Failed)
-			{
-				goto_step(STEP_ENTER_SLEEP);
-			}
+		
 			break;
 			break;
 		case STEP_ENTER_SLEEP: // 进入睡眠
 		case STEP_ENTER_SLEEP: // 进入睡眠
 			resend_counter=0;//失败重发置0
 			resend_counter=0;//失败重发置0