Vesna
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Macros | Variables
SystemTimeSynchronizationBusinessLogic.cpp File Reference
#include "SystemTimeSynchronizationBusinessLogic.h"
#include <sstream>
#include <QTimer>
#include <QUdpSocket>
#include <QHostAddress>
#include <QDateTime>
#include <QtEndian>
#include "core/ProjectConfiguration.h"
#include "core/ApplicationDefines.h"
#include "businesslogic/EMVTerminalBusinessLogic.h"
#include "businesslogic/QadraMessagesBusinessLogic.h"
#include "appcore/system/SystemBusinessLogicDispatcher.h"
#include "core/common/eqtcompatible.h"
#include "core/log/DynamicDebugLog.h"
#include "obcdevices/gpsdriver/egpscommand.h"
#include "core/log/emlog.h"
Include dependency graph for SystemTimeSynchronizationBusinessLogic.cpp:

Classes

struct  TimeSyncPoint
 
class  SystemTimeSynchronizationBusinessLogic::DataClass
 

Macros

#define __USE_LOG__
 
#define LOG_ERROR_TIME_SYNC(msg, args...)   { EFERROR( TIME_SYNC_LOG_FILENAME_WITH_PATH, msg, ## args ); }
 
#define LOG_INFO_TIME_SYNC(msg, args...)   { EFINFO( TIME_SYNC_LOG_FILENAME_WITH_PATH, msg, ## args ); }
 
#define LOG_WARN_TIME_SYNC(msg, args...)   { EFWARN( TIME_SYNC_LOG_FILENAME_WITH_PATH, msg, ## args ); }
 

Variables

const int YEARS_FROM_1900 = 125
 
const char * TIME_SYNC_LOG_FILENAME_WITH_PATH = "/tmp/systemTimeSynchronization.log"
 
const uint32_t NTP_TO_UNIX_OFFSET = 2208988800U
 
const uint16_t NTP_SERVICE_UDP_PORT = 123
 
const int NTP_RESPONSE_TIMEOUT_IN_MILISECONDS = 10
 
const int TIME_OFFSET_SAMPLE_VALIDITY_IN_SECONDS = 600
 
const int MAX_ALLOWED_GPS_TO_NTP_DIFF_IN_SECONDS = 60
 
const int TIME_SYNC_ATTEMPT_INTERVAL_IN_SECONDS = 60
 
const char * TIME_SYNC_DATETIME_FORMAT = "dd.MM.yyyy HH:mm:ss t"
 

Macro Definition Documentation

#define __USE_LOG__
#define LOG_ERROR_TIME_SYNC (   msg,
  args... 
)    { EFERROR( TIME_SYNC_LOG_FILENAME_WITH_PATH, msg, ## args ); }
#define LOG_INFO_TIME_SYNC (   msg,
  args... 
)    { EFINFO( TIME_SYNC_LOG_FILENAME_WITH_PATH, msg, ## args ); }
#define LOG_WARN_TIME_SYNC (   msg,
  args... 
)    { EFWARN( TIME_SYNC_LOG_FILENAME_WITH_PATH, msg, ## args ); }

Variable Documentation

const int MAX_ALLOWED_GPS_TO_NTP_DIFF_IN_SECONDS = 60
const int NTP_RESPONSE_TIMEOUT_IN_MILISECONDS = 10
const uint16_t NTP_SERVICE_UDP_PORT = 123
const uint32_t NTP_TO_UNIX_OFFSET = 2208988800U
const int TIME_OFFSET_SAMPLE_VALIDITY_IN_SECONDS = 600
const int TIME_SYNC_ATTEMPT_INTERVAL_IN_SECONDS = 60
const char* TIME_SYNC_DATETIME_FORMAT = "dd.MM.yyyy HH:mm:ss t"
const char* TIME_SYNC_LOG_FILENAME_WITH_PATH = "/tmp/systemTimeSynchronization.log"
const int YEARS_FROM_1900 = 125