Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 8 of 16

4985 Network Controller Programmer's Guide: Section 4: File Structures, pages 53 to 62

Pages 53 to 62 of 130, from 4985 Network Controller Programmer's Guide

The original document is the PDF (762 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

Filed in the catalog under the Norand Route Commander 4000 Series APU

Page 53

SECTION 4

"

File Structures

Table 4-12 File Create or Load Directive “2”

Position Bytes Description 1

1

Beginning delimiter: “/”

2

1

Command code: “6”

3

1

Directive type: “2”

4

8

DOS compatible filename (required)

12

3

DOS compatible file extension (required)

15

6

Date field (YYMMDD)

21

4

24-hour time (HHMM)

25

2

User-defined filler

27

1

User-defined file type “0” or blank indicates an HHC boot file.

28

1

Filler (should be zero filled 0x30)

29

1

File status: “0” = Good “1” = Undefined “2” = Feleted “3” = System

30

6

File size (in ASCII digits) required

36 EXAMPLE:

Filler bytes

/62FILENAMEEXTddddddttttff000123456ppppp<CR>

4985 Network Controller Programmer’s Guide

4-11

Page 54

SECTION 4

"

File Structures

File Delete Directive “3” The host sends this directive, in response to a file processing request, to delete a data file from the controller’s directory. Table 4-13 File Delete Directive “3”

Position Bytes Description

EXAMPLE:

1

1

Beginning delimiter: “/”

2

1

Command code: “6”

3

1

Directive type: “3”

4

8

DOS compatible filename (required)

12

3

DOS compatible file extension (required)

15

245

Filler bytes

/63FILENAMEEXT. . .xxxxxppppp<CR>

File Download Directive “4” The host sends this directive in response to a request for download data from an HHC. After receiving a download directive, the controller opens the file specified and downloads it to the HHC. The controller must contain this file (created with File Create). Table 4-14 File Download Directive “4”

Position Bytes Description

EXAMPLE: 4-12

1

1

Beginning delimiter: “/”

2

1

Command code: “6”

3

1

Directive type: “4”

4

8

DOS compatible filename (required)

12

3

DOS compatible file extension (required)

15

245

Filler bytes

/64FILENAMEEXT. . .xxxxxppppp<CR> 4985 Network Controller Programmer’s Guide

Page 55

SECTION 4

"

File Structures

File Processing Abort “6” The host sends this directive to inform the controller that a file error has occurred on the host. The controller responds by locking the files on the controller. Normal telecommunication begins with the HHCs at this time. No HHC cold starts are possible in a locked file system. The files unlock after a successful file processing session. Table 4-15 File Processing Abort “6”

Position Bytes Description

EXAMPLE:

1

1

Beginning delimiter: “/”

2

1

Command code: “6”

3

1

Directive type: “6”

4

256

Filler bytes

/66xxxx . . .xxxxxppppp<CR>

Controller-to-Host Record Layouts Controller-to-host record types implement the file transfer protocol and status information between the controller and the host. The record type functions and a sample record layout are given here. The 1-byte channel ID supports older host programs. Activate the 2-byte channel ID in your host program. The 4921 PC Telecommunications Packages uses 2-byte channel ID, which defines the records that follow. There may be nine status and request record types sent from the controller to your host that require a response from your host. "

“0” = Upload Data

"

“1” = End of Session Status

"

“2” = Data Request

"

“3” = Inactive Status

"

“4” = Active Status

"

“5” = Activate Request

"

“6” = Special Request

"

“7” = Directive Status

"

“8” = Identification 4985 Network Controller Programmer’s Guide

4-13

Page 56

SECTION 4

"

File Structures

Type 0 - Upload Data Record The HHC sends upload data records contiguously to the host on a logical channel. Table 4-16 Type 0 - Upload Data Record

Position Bytes Description

EXAMPLE:

1

1

Device channel ID

2

1

HHC channel ID: “1”, “4”, or “7”

3

1

Record type: “0”

4

256

Upload data

260

2

CRC bytes if CRC checking is enabled

262

3

Optional padding bytes

(CR = end of record marker) 010xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<CRC><CRC><CR> Device channel ID = 0 HHC channel ID = 1 Record type = upload data “x’s” are uploaded data <CRC><CRC> = 2 CRC bytes for upload data

" NOTE:

CRC implementation is detailed in Appendix C.

Type 1 - End of Session Status Record This record indicates the status of a single HHC session. Each HHC sends an end-of-session record when finished communicating. 4-14

4985 Network Controller Programmer’s Guide

Page 57

SECTION 4

"

File Structures

Table 4-17 Type 1 - End of Session Status Record

Position Bytes Description

EXAMPLE:

1

1

Device channel ID: “0”

2

1

Channel ID: “1”, “4”, or “7”

3

1

Record type: “1”

4

1

End of session status code: “0” = Good status “1” = Abort. Port connection lost. “4” = Disconnect. The session disconnected, probably due to a datalink protocol error. “8” = HHC logic error. The HHC detected a logic error in the file transfer process.

5

4

HHC application status information

9

1

Local port identifier

10

249

Reserved for diagnostic information

(CR = end of record marker) 0110G0001xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<CR> Device channel ID = 0 HHC channel ID = 1 Record type = end of session End of session is good. Local port identifier is 1 Optional diagnostic data is indicated by “x’s”.

4985 Network Controller Programmer’s Guide

4-15

Page 58

SECTION 4

"

File Structures

Type 2 - Data Request Record Table 4-18 Type 2 - Data Request Record

Position Bytes Description

EXAMPLE:

1

1

Device channel ID: “1”

2

1

HHC channel ID: “1”

3

1

Record type = “2”

(CR = end of record marker) 012<CR> Device channel ID = 0 HHC channel ID = 1 Record type = data request

Type 3 - Inactive Status Record Table 4-19 Type 3 - Inactive Status Record

Position Bytes Description

EXAMPLE:

1

1

Device channel ID: “1”

2

1

HHC channel ID: “1”

3

1

Record type = “3”

(CR = end of record marker) 013<CR> Device channel ID = 0 HHC channel ID = 1 Record type = inactive status

Type 4 - Active Status Record Active status records indicate a logical port status. The host port uses active status records as time-fill records whenever it is idle. The host 4-16

4985 Network Controller Programmer’s Guide

Page 59

SECTION 4

"

File Structures program may discard or use these records to maintain real-time status information. Table 4-20 Type 4 - Active Status Record

Position Bytes Description

EXAMPLE:

1

1

Device channel ID: “1”

2

1

HHC channel ID: “1”

3

1

Record type = “4”

(CR = end of record marker) 014<CR> Device channel ID = 0 HHC channel ID = 1 Record type = Activate Status “4”

Type 5 - Activate Request Record The host activates the LAN port in response to activate request records. The controller sends a request to the host to activate an enabled port after start of session and after each port disconnects. The prior connection status for this port is also in the request record. The host is expected to respond with record types “3” or “4.” Table 4-21 Type 5 - Activate Request Record

Position Bytes Description 1

1

Device channel: “0”

2

1

HHC channel ID: “1”

3

1

Record type: “5”

4985 Network Controller Programmer’s Guide

4-17

Page 60

SECTION 4

"

File Structures

Table 4-21 Type 5 - Activate Request Record

Position Bytes Description

EXAMPLE:

4

1

Status code for the previous activation of the port: “0” = Good “1” = Port disconnect due to protocol error “2” = No answer “3” = Modem error “4” = Line protocol error “5” = Bad activation parameters “6” = Error activating port “7” = Auto-answer port timeout “8” = HHC error “9” = Busy “ : ” = Modem reported no dial tone “ ; ” = Modem reported no carrier “ < ” = Call collision. Modem reported ring.

5

4

Reserved for diagnostic information

9

252

Required padding

(CR = end of record marker) 015xyyyy<CR> Device channel = 0 HHC channel ID = 1 Record type = Activate Request “5” “x” = previous activation status code “y” = diagnostic information

Type 6 - Special Request Record Special request records lump a variety of special records into one record type. A subtype field determines the actual request type. Currently there is only one subtype defined. Table 4-22 Type 6 - Special Request Record

Position Bytes Description 1 4-18

1

Device channel ID: “0”

4985 Network Controller Programmer’s Guide

Page 61

SECTION 4

"

File Structures

Table 4-22 Type 6 - Special Request Record

EXAMPLE:

2

1

Channel ID: “1”

3

1

Record type: “6”

4

1

Special request subtype: “1” = Obtains file processing from the host. The host responds with a file directive or an end-of-data record.

(CR = end of record marker) 0161<CR> Device channel = 0 Channel ID = 1 Record type = special request Special request subtype = file processing request

Type 7 - Directive Status Record The controller sends directive status records to the host after completing a host directive (with or without error). Table 4-23 Type 7 - Directive Status Record

Position Bytes Description 1 2 3

1 1 1

Device channel ID: “0” Channel ID: “1” Record type: “7”

4

1

Status type: “1” - “6”: “1” = File upload “2” = File create or load “3” = File delete “4” = File download “5” = Reserved “6” = File processing short 4985 Network Controller Programmer’s Guide

4-19

Page 62

SECTION 4

"

File Structures

Table 4-23 Type 7 - Directive Status Record

Position Bytes Description

EXAMPLE:

5

1

Directive status: “0” = Good status “A” = File open error “B” = File read error “C” = File write error “D” = Maximum files exceeded on a create operation “E” = Maximum open files exceeded on a file open operation “F” = File not found “G” = Bad file handle “H” = File in use. A create operation cannot overwrite or delete a file while in use. Occurs if a file boots an HHC when host attempts to recreate the file. “I” = File not open “J” = File allocation error “K” = End of file “L” = File directory error “M” = Request aborted “O” = File system locked

6

3

Reserved for diagnostic information

(CR = end of record marker) 01710xxx<CR> Device channel ID = 0 Channel ID = 1 Record type = Directive Status Status type = File upload Status = good “xxx” is reserved for diagnostic information

Initialization Record The host can change system parameters with an initialization record sent at the beginning of a session. 4-20

4985 Network Controller Programmer’s Guide