|
@@ -119,7 +119,7 @@ int StoreLogMsg(const char *fmt, ...)
|
|
|
tm->tm_year+1900,tm->tm_mon+1);
|
|
|
#ifdef SystemLogMessage
|
|
|
system(Buf);
|
|
|
-#endif
|
|
|
+#endif
|
|
|
|
|
|
#ifdef ConsloePrintLog
|
|
|
printf("[%04d.%02d.%02d %02d:%02d:%02d] - %s", tm->tm_year+1900,tm->tm_mon+1,tm->tm_mday,tm->tm_hour,tm->tm_min,tm->tm_sec, buffer);
|
|
@@ -1131,7 +1131,9 @@ int main(void)
|
|
|
{
|
|
|
ShmSysConfigAndInfo->SysConfig.TelecomInterface.TelcomNetworkConn = 1;
|
|
|
ShmStatusCodeData->AlarmCode.AlarmEvents.bits.Telecom4GModuleCommFail = 0;
|
|
|
- ShmSysConfigAndInfo->SysInfo.InternetConn=1;
|
|
|
+ ShmStatusCodeData->InfoCode.InfoEvents.bits.InternetDisconnectVia4Gi = 0;
|
|
|
+ ShmStatusCodeData->InfoCode.InfoEvents.bits.ApnDisconnectVia4Gi = 0;
|
|
|
+
|
|
|
if(CheckSignalRssi() != PASS)
|
|
|
{
|
|
|
#ifdef SystemLogMessage
|
|
@@ -1178,8 +1180,8 @@ int main(void)
|
|
|
}while(Dongle.cnt_InternetFail < 3);
|
|
|
|
|
|
ShmSysConfigAndInfo->SysConfig.TelecomInterface.TelcomNetworkConn = 0;
|
|
|
- ShmStatusCodeData->AlarmCode.AlarmEvents.bits.Telecom4GModuleCommFail = 1;
|
|
|
- ShmSysConfigAndInfo->SysInfo.InternetConn=0;
|
|
|
+ ShmStatusCodeData->InfoCode.InfoEvents.bits.InternetDisconnectVia4Gi = 1;
|
|
|
+ ShmStatusCodeData->InfoCode.InfoEvents.bits.ApnDisconnectVia4Gi = 1;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -1299,6 +1301,8 @@ int main(void)
|
|
|
DEBUG_ERROR("Device search error fail: %d\n", Dongle.cnt_SearchModuleFail);
|
|
|
#endif
|
|
|
|
|
|
+ ShmStatusCodeData->InfoCode.InfoEvents.bits.InternetDisconnectVia4Gi = 1;
|
|
|
+ ShmStatusCodeData->InfoCode.InfoEvents.bits.ApnDisconnectVia4Gi = 1;
|
|
|
ShmStatusCodeData->AlarmCode.AlarmEvents.bits.Telecom4GModuleCommFail = 0;
|
|
|
ShmSysConfigAndInfo->SysConfig.TelecomInterface.TelcomNetworkConn = 0;
|
|
|
ShmSysConfigAndInfo->SysConfig.TelecomInterface.TelcomRssi = 0;
|
|
@@ -1336,6 +1340,3 @@ int main(void)
|
|
|
|
|
|
return 0;
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|