Compare commits

..

2 Commits

Author SHA1 Message Date
cfif 2287b8e45b Fix 2024-12-12 17:58:12 +03:00
cfif e7f10fa9b9 Fix 2024-12-12 17:56:16 +03:00
3 changed files with 11 additions and 10 deletions

View File

@ -128,11 +128,10 @@ void GsmWithGnssInit(
ControllableSwitch_Init(&env->useInternalAntennaSwitch, env, GsmWithGnss_InvalidateGnssUserExternalAntenna);
ControllableSwitch_Init(&env->enableNetworkSwitch, env, GsmWithGnss_InvalidateNetworkEnable);
#ifdef UVEOS_ADD_TELEMATICA
env->gnssRmcGga.rmcAccess = osMutexNew(NULL);
env->isRtcACP = false;
#endif
}

View File

@ -64,8 +64,11 @@ typedef struct {
bool isBusy;
bool isNav;
#ifdef UVEOS_ADD_TELEMATICA
tLoggerToSerialPort *slog;
struct {
@ -74,19 +77,14 @@ typedef struct {
tNmeaRmc currentRmc;
} gnssRmcGga;
// uint8_t bufLog[2048];
// char bufLogHexString[260];
bool isNav;
#ifdef UVEOS_ADD_TELEMATICA
bool isDisconnect;
uint8_t codeResultOpen;
tSocketGsm socketGsm;
#endif
bool isRtcACP;
#endif
} tGsmWithGnss;
//Common

View File

@ -68,6 +68,7 @@ void AtGsm_Gsnss_NavData_Processing(tGsmWithGnss *env) {
}
#ifdef UVEOS_ADD_TELEMATICA
void Gnss_GetFullNavData(tGsmWithGnss *env, tNmeaRmc *nmeaRmc) {
if (osMutexAcquire(env->gnssRmcGga.rmcAccess, 2000) == osOK) {
@ -80,6 +81,9 @@ void Gnss_GetFullNavData(tGsmWithGnss *env, tNmeaRmc *nmeaRmc) {
}
}
#endif
void GsmWithGnss_GetNevData(tGsmWithGnss *env, uint32_t timeout) {