System information class. More...
#include <SysInfo.h>
Static Public Member Functions | |
static const char * | getSerialNumber () |
Get device serial number. | |
static const char * | getModelType () |
Get device model type. | |
static const char * | getHardwareRevision () |
Get device hardware revision. | |
static const char * | getFirmwareVersion () |
Get device firmware version. | |
static time_t | getManufTimeStamp () |
Get device manufacture date. | |
static SCANNER_INFORMATION * | getScannerInformation () |
Get scanner information. | |
static int | getCommModule () |
Get communication module type. | |
static bool | getUbootEnv (const char *varName, char *pBuf, int maxLen) |
Read bootloader environment variable. |
System information class.
System information class provides facilities to retrieve system hardware and software information, and global hardware configuration data. System information class contains static functions and does not require separate initialization.
int SysInfo::getCommModule | ( | ) | [static] |
Get communication module type.
Retrieves the data terminal communication module type from the onboard flash memory.
Defined values are:
const char * SysInfo::getFirmwareVersion | ( | ) | [static] |
Get device firmware version.
Retrieves the version of the data terminal firmware.
const char * SysInfo::getHardwareRevision | ( | ) | [static] |
Get device hardware revision.
Retrieves the unit hardware revision from data terminal onboard flash memory.
time_t SysInfo::getManufTimeStamp | ( | ) | [static] |
Get device manufacture date.
Retrieves the unit manufacture timestamp from data terminal onboard flash memory.
const char * SysInfo::getModelType | ( | ) | [static] |
Get device model type.
Retrieves the unit model type from data terminal onboard flash memory.
Defined values:
SCANNER_INFORMATION * SysInfo::getScannerInformation | ( | ) | [static] |
Get scanner information.
Retrieves information about a scanner module attached to the mobile data terminal.
const char * SysInfo::getSerialNumber | ( | ) | [static] |
Get device serial number.
Retrieves the unit serial number from data terminal onboard flash memory.
Serial number should contain six decimal numbers.
bool SysInfo::getUbootEnv | ( | const char * | varName, | |
char * | pBuf, | |||
int | maxLen | |||
) | [static] |
Read bootloader environment variable.
Retrieves the value of the U-boot bootloader environment variable. The data is located in the mobile terminal internal flash memory. The bootloader environment variables are intended to store global manufacturing and configuration data which is considered read-only during a normal mobile terminal operation.
varName | Specifies the name of the environment variable. | |
pBuf | Contains a pointer to the buffer where the variable value is copied to. | |
maxLen | Specifies the maximum length of the returned data. |