Data Logs
Appendix C
SPAN-SE User Manual Rev 1
181
C.4.6
DIRENT
SD Card File List
The DIRENT log contains the current file contents of the receiver's SD Card. Up to 1024 files can be
listed using this message.
The date and time for the DIRENT log is in UTC (Universal Coordinated Time). If the SPAN-SE
receiver has no almanac, UTC is unavailable.
The
Date of Last Change
field has 4 decimal digits reserved for the year, followed by 2 decimal digits
for the month, and 2 decimal digits for the day.
Example: Date of September 5, 2001
Date of Last Change
field for this date when converted to a Ulong has a value of 20010905. The
following steps can be used to obtain the various parts of the
Date of Last Change
field:
Ulong Year = (Ulong)(DateOfLastChange / 10000)
Ulong Month = (Ulong)( (DateOfLastChange - (Year * 10000)) / 100)
Ulong Day = (Ulong)( DateOfLastChange - (Year * 10000) - (Month * 100) )
The
Time of Last Change
field is similar to the
Date of Last Change
field, in that the value of the field
has 2 decimal digits reserved for the hour, followed by 2 decimal digits for the minutes, and 2 decimal
digits for the seconds.
Example: Time of 16:01:25
Time of Last Change
field when converted to a Ulong has a value of 160125. The following steps can
be used to obtain the various parts of the
Time of Last Change
field:
Ulong Hour = (Ulong)(TimeOfLastChange / 10000)
Ulong Minutes = (Ulong)( (TimeOfLastChange - (Hour * 10000)) / 100)
Ulong Seconds = (Ulong)( TimeOfLastChange - (Hour * 10000) - (Minutes * 100) )
Structure:
Message ID = 159
Log Type: Polled
Field
Data
Bytes
Format
Units
Offset
1
Log Header
-
-
0
2
Filename
12
Char[ ]
none
H
3
Size (bytes)
4
Ulong
bytes
H+12
4
Size (packets)
4
Ulong
packets
H+16
5
Date of Last Change
4
Ulong
yyyymmdd
H+20
6
Time of Last Change
4
Ulong
hhmmss
H+24