334
WAVECOM Data Formats
WAVECOM Decoder W74PC, W-PCI/e, W-CODE, W-CLOUD Manual V9.1.0
LineCount
contains the number of data lines stored (the data stored is line based, that is a data package
represents the data of a line).
Pad
contains additional information to be stored.
Pad2
contains additional information to be stored.
The 64 Byte struct type below can be used to extract the file header.
struct FileHeader
{
char Signature[8];
char FileType[8];
LONG Version;
LONG LineCount;
char Pad[8];
char Pad2[32];
};
Data Structures
Following the header the data is stored as one or more data packages. The file header contains the num-
ber of data packages stored.
A data package contains a data header and the data itself.
The size of the data header is 12 Bytes.
The data header at the start of each data package contains the following information:
In
PrevSize
the size of the preceding data is stored,
Size
stores the size of the data contained in the suc-
ceeding data package and in
TIME
the timestamp of the data is stored.
The 12 Byte LineData struct type below can be used to extract the data header.
struct LineData
{
LONG PrevSize; // size of the data line before.
LONG Size;
// size of the data line.
LONG TIME;
// time of the data received.
}
File Headers and Data Structures for Individual File Types
The following sections describe the file headers and data packages of the various .WDA file types.
Text data
FileType
is “Text”.
Header data
This file type uses the file header described in “
” on page 333.
The following additional data is stored in the header:
In Pad[0] the font type
12 Bytes
n Bytes
DataHeader
Data
12 Bytes
n Bytes
DataHeader
Data
12 Bytes
n Bytes
DataHeader
Data
12 Bytes
n Bytes
DataHeader
Data
4 Bytes
4 Bytes
4 Bytes
PrevSize
Size
TIME