SMART_COMPONENTS_ModemDataC.../ModemDataCollector.h

73 lines
1.9 KiB
C

//
// Created by zemon on 28.08.24.
//
#ifndef SMART_COMPONENTS_MODEMDATACOLLECTOR_H
#define SMART_COMPONENTS_MODEMDATACOLLECTOR_H
#include "GsmWithGnss.h"
#include "LoggerToSerialPort.h"
#include "PwmSim7600e.h"
#include "AtGsmSimComA7600_SSL_LOAD_CA.h"
#include "IncRemapCollect.h"
typedef enum {
MOD_UNDEFANDED = 0,
MOD_ERROR = 1,
MOD_READY = 2,
}eValidCCID;
typedef struct {
eValidCCID validSert;
tIsFind checkCert;
} tSertRevision;
typedef struct {
bool resIsChipSelect;
tString32 softValue;
tString32 ssidValue;
tString32 ssidComersValue;
tString32 cgsmValue;
bool modemStateIsValid;
eValidCCID valid_CCID;
eValidCCID valid_CCIDComer;
tSertRevision sertRevision;
eValidCCID validSert;
eValidCCID validAudio;
uint16_t *deviceTestFix_ModemAudioFileValidation;
uint16_t *deviceTestFix_ModemCertValidation;
uint16_t *deviceTestFix_ModemValidation;
} tVersionRevision;
typedef struct {
tSim7600ePower *sim7600ePower;
tLoggerInterface *logger;
tAtCmd *gsmAt;
tDeviceStorage *storage;
tVersionRevision modemVersionRevision;
tSystemSelector *systemSelector;
tStringLink simProfile;
bool fl_IsLoad;
uint32_t timeIsTestModemLimit;
} tModemDataColl;
void ModemDataCollectorItit(
tModemDataColl *env,
tSim7600ePower *sim7600ePower,
tLoggerInterface *logger,
tAtCmd *gsmAt,
tDeviceStorage *storage,
tSystemSelector *systemSelector
);
void ModemDataCollector_GetCCIDS(tModemDataColl *env);
void ModemDataCollector_GetCGSN(tModemDataColl *env);
void ModemDataCollector_GetSoftRev(tModemDataColl *env);
void ModemDataCollector_GetSertRev(tModemDataColl *env);
void ModemDataCollector_GetAudioRev(tModemDataColl *env);
void ModemDataCollector_ModemFlashing(tModemDataColl *env);
bool ModemDataCollector_ChekSelectSimChips(tModemDataColl *env, const eSubSystems *subSystems);
#endif //SMART_COMPONENTS_MODEMDATACOLLECTOR_H