NavCom LAND-PAK Rev.N User Manual

Page 106

Advertising
background image

Technical Reference Manual Rev. N

Blk = All;

Blu = IOP w/Internal Radio

;

Red = IOP & LBM

;

Grn = Engine only

104

Ref

Message Field Description

Data

Type

Units

Range

Scale

Byte

Count

W3

Result

B0=1: No such file
B1=1: Can’t open file for reading
B2=1: A file is already open for reading
The rest of the bytes appear only if W3 = 0

U08

1

W4

Spare

U08

1

W5

Reserved

U16

2

W6

File Handle

U16

2

W7

File Size in Sectors (1 sector = 512 bytes)

U32

4

W8

File Size in Bytes

U32

4

W9

Creation Date

B15-B9: Years since
B8-B5:
B4-B0:

U16

years

month

day

0-65535

1-12
1-31

n+1980

2

W10

Creation Time

B15-B11:
B10-B5:
B4-B0:

U16

hrs

min
sec

0-23
0-59
0-29



n/2

2

W11

Modification Date

B15-B9: Years since
B8-B5:
B4-B0:

U16

years

month

day

0-65535

1-12
1-31

n+1980

2

W12

Modification Time

B15-B11:
B10-B5:
B4-B0:

U16

hrs

min
sec

0-23
0-59
0-29



n/2

2

W13

File

Attributes

U16

2

W14

Access Date

B15-B9: Years since
B8-B5:
B4-B0:

U16

years

month

day

0-65535

1-12
1-31

n+1980

2

W15

File Name – Null Terminated String

U08[]

1[]

CKSM Checksum

U08

1

ETX

03

(hex)

U08

1

0x09 – File Record Request

After command 0x7e.0x08 (Open File for Reading) has been successfully issued, use this
command as many times as necessary to retrieve the file contents, one sector (512 bytes) at
a time. The number of sectors occupied by the file is returned in W7 (File Size in Sectors) of
the response to the Open File for Reading request. The range of validity of the sector
number field in the File Record Request is 0 to (File Size in Sectors – 1), inclusive. The file
handle should match the one returned in the response to 0x7e.0x08.

The response contains a result code with possible failure conditions as specified above. If
this result code is zero, then the request was successful, and the contents of the requested
sector appear in W8. There may be up to 512 bytes in this field; the number of data bytes is
specified in W7. In general, only the final sector will contain fewer than 512 data bytes.

If no response to a File Record Request is received (i.e. due to intermittent communication),
the missing sector may be re-requested by sending a duplicate request message.

Advertising