Browse Source

V0.0.1.9-更改了版本号无法上传的Bug

LAPTOP-KB7QFH2U\ChenJie-PC 1 year ago
parent
commit
7b12b00738
2 changed files with 7 additions and 7 deletions
  1. 1 1
      code/app/AppGlobalVar.c
  2. 6 6
      code/app/AppTaskUart1.c

+ 1 - 1
code/app/AppGlobalVar.c

@@ -25,7 +25,7 @@ uint16 WebSitePort = 8812;
 #endif
 
 #define defaultSn "SPFPFL264S226D001"
-const uint32 AppSwVersion = 0x00000108;
+const uint32 AppSwVersion = 0x00000109;
 
 const uint8 DataModuleType = 0x02;//01=NB,02-4G
 const uint16 HwVersion = 0x001;

+ 6 - 6
code/app/AppTaskUart1.c

@@ -730,27 +730,27 @@ void TcpDataEncode(uint32 *PtrSendAddr, uint16 *SendLen)
 	static UTC8TimeType UTC8TimeTcp;
 	uint8 *SendBuffer = NULL;
 	uint8 DataIdx = 0;
-	if (TcpSendTimeCounter % (60*60)== 0)
+	if (TcpSendTimeCounter%(60*60) == 1)
 	{
 		DataIdx = VerMsg; //版本信息发送
 	}
-	else if (TcpSendTimeCounter % 10 == 1)
+	else if (TcpSendTimeCounter % 10 == 2)
 	{
 		DataIdx = BattMsg; //电池信息发送
 	}
-	else if ((TcpSendTimeCounter) % 10 == 2)
+	else if ((TcpSendTimeCounter) % 10 == 3)
 	{
 		DataIdx = 0x83; //储能开关信息发送
 	}
-	else if ((TcpSendTimeCounter) % 240 == 3)
+	else if ((TcpSendTimeCounter) % 240 == 4)
 	{
 		DataIdx = GpsMsg; //定位信息发送
 	}
-	else if ((TcpSendTimeCounter) % 240 == 4)
+	else if ((TcpSendTimeCounter) % 240 == 5)
 	{
 		DataIdx = 0x93; //储能电量信息发送
 	}
-	else if ((TcpSendTimeCounter) % 60 == 5)
+	else if ((TcpSendTimeCounter) % 60 == 6)
 	{
 		DataIdx = 0x8A; //累计信息发送
 	}