Data structures, Text data – Wavecom W61PC V7.5.0 User Manual
Page 314
304
WAVECOM Data Formats
WAVECOM Decoder W61PC/LAN Manual V7.5
The Version is always “0x00020000” (Version A) or ”0x00030000” (Version B).
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 303.
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