The text of a manual · part 15 of 16
4985 Network Controller Programmer's Guide: Appendix D: File Structure Records
Pages 109 to 122 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 109
Appendix D File Structure Records "
"
"
" NOTE:
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
Section 4 has complete details on these file structures.
Host-to-Controller Records Special Commands Table D-1 Type ? - Host Ready Command
Position Bytes Description 1
1
Question mark “?” Table D-2 Type * - Reinitialization Command
Position Bytes Description 1
1
Asterisk “*”
Record Layouts Table D-3 Type 0 - Download Data Record
Position Bytes Description 1
1
Beginning delimiter: “/”
2
1
Command code: “0” 4985 Network Controller Programmer’s Guide
D-1
Page 110
APPENDIX D
"
File Structure Records
Table D-3 Type 0 - Download Data Record
Position Bytes Description 3
256
Download data
259
2
Optional CRC bytes (if enabled)
261+
Optional pad (up to 3 bytes) Table D-4 Type 1 - End-of-Data Record
Position Bytes Description 1
1
Beginning delimiter: “/”
2
1
Command code: “1”
3
256
Download data with required pad bytes if less than 256 bytes of data.
259+
Optional pad (up to 5 bytes) Table D-5 Type 2 - Initialization Record
Position Bytes Description 1
1
Beginning delimiter: “/”
2
1
Command code: “2”
3
256
Initialization parameters list. The parameter list terminates with a slash “/.”
259+
Optional pad (up to 5 bytes) Table D-6 Type 3 - Activate (Auto-Answer) Record
Position Bytes Description
D-2
1
1
Beginning delimiter: “/”
2
1
Command code: “3”
4985 Network Controller Programmer’s Guide
Page 111
APPENDIX D
"
File Structure Records
Table D-6 Type 3 - Activate (Auto-Answer) Record
Position Bytes Description 3
1
ASCII blank “ ”
4
255
Optional activation parameters list. This list terminates with a slash “/” and the remaining bytes filled with blanks.
259+
Optional pad up to 5 bytes Table D-7 Type 4 - Activate (Auto-Dial) Record
Position Bytes Description 1
1
Beginning delimiter: “/”
2
1
Command code: “4”
3
1
ASCII blank “ ”
4
255
Optional activation parameters list. This list terminates with a slash “/”. When used, this field should be filled with blanks.
259+
Optional pad up to 5 bytes Table D-8 Type 5 - Deactivate for One Minute Record
Position Bytes Description 1
1
Beginning delimiter: “/”
2
1
Command code: “5”
3
256
Required pad bytes
259+
Optional pad up to 5 bytes
4985 Network Controller Programmer’s Guide
D-3
Page 112
APPENDIX D
"
File Structure Records
Table D-9 Type 6 - Host Directive Record
Position Bytes Description 1
1
Beginning delimiter: “/”
2
1
Command code: “6”
3
1
Directive type: “1” - “4” and “6”: “1” = File upload directive “2” = File create or load directive “3” = File delete directive “4” = File download directive “6” = File processing abort
4
256
Directive information. The information required for this field depends on the directive type used.
259+
Optional pad up to 5 bytes Table D-10 Type 7 - Reboot Controller Directive
Position Bytes Description 1
1
Beginning delimiter: “/”
2
1
Command code: “7”
3
1
Reboot state: “0” = Do not clear files from RAM disk “1” = Clear files from RAM disk
4
256
Filler bytes
Directive Types Table D-11 File Upload Directive “1”
Position Bytes Description
D-4
1
1
Beginning delimiter: “/”
2
1
Command code: “5”
4985 Network Controller Programmer’s Guide
Page 113
APPENDIX D
"
File Structure Records
Table D-11 File Upload Directive “1”
Position Bytes Description 3
1
Directive Type: “1”
4
8
DOS compatible filename, left-justified
12
3
DOS compatible filename extension, left-justified
15
245
Filler bytes (ASCII space)
Table D-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” = Deleted “3” = System
30
6
File size (in ASCII digits) required
36
Filler bytes 4985 Network Controller Programmer’s Guide
D-5
Page 114
APPENDIX D
"
File Structure Records
Table D-13 File Delete Directive “3”
Position Bytes Description 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
Table D-14 File Download Directive “4”
Position Bytes Description 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
Table D-15 File Processing Abort “6”
Position Bytes Description
D-6
1
1
Beginning delimiter: “/”
2
1
Command code: “6”
3
1
Directive type: “6”
4
256
Filler bytes
4985 Network Controller Programmer’s Guide
Page 115
APPENDIX D
"
File Structure Records
Controller-to-Host Record Layouts Table D-16 Type 0 - Upload Data Record
Position Bytes Description 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
Table D-17 Type 1 - End of Session Status Record
Position Bytes Description 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
4985 Network Controller Programmer’s Guide
D-7
Page 116
APPENDIX D
"
File Structure Records
Table D-18 Type 2 - Data Request Record
Position Bytes Description 1
1
Device channel ID: “1”
2
1
HHC channel ID: “1”
3
1
Record type = “2”
Table D-19 Type 3 - Inactive Status Record
Position Bytes Description 1
1
Device channel ID: “1”
2
1
HHC channel ID: “1”
3
1
Record type = “3”
Table D-20 Type 4 - Active Status Record
Position Bytes Description 1
1
Device channel ID: “1”
2
1
HHC channel ID: “1”
3
1
Record type = “4”
Table D-21 Type 5 - Activate Request Record
Position Bytes Description
D-8
1
1
Device channel: “0”
2
1
HHC channel ID: “1”
3
1
Record type: “5”
4985 Network Controller Programmer’s Guide
Page 117
APPENDIX D
"
File Structure Records
Table D-21 Type 5 - Activate Request Record
Position Bytes Description 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 Table D-22 Type 6 - Special Request Record
Position Bytes Description 1
1
Device channel ID: “0”
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.
4985 Network Controller Programmer’s Guide
D-9
Page 118
APPENDIX D
"
File Structure Records
Table D-23 Type 7 - Directive Status Record
Position Bytes Description
D-10
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
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. This occurs if a file boots an HHC when the 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
4985 Network Controller Programmer’s Guide
Page 119
APPENDIX D
"
File Structure Records
Initialization Record Table D-24 System Mode Parameters
Value Meaning
Description
0
Mode disabled.
All mode parameters set off.
1
Force EBCDIC host.
Controller determines if host is EBCDIC or ASCII if this field is not added in.
4
Transparent mode on all ports.
Applies to EBCDIC hosts. When added in, ASCII or EBCDIC data translation is disabled on all ports. Data translation can be enabled or disabled for individual ports.
8
Boot 4000 Series HHCs in a LAN connected to the controller.
Enabled when a LAN port is installed and a list of boot files exists on the controller’s system disk.
16
Debug mode.
Reserved for Norand diagnostic use.
32
2-byte channel option.
When added in, all records sent to the host are preceded by a 2-byte channel identifier. The 2-byte channel option is required if any of the controllers in the network are remote.
64
Forwards ID records from remote controller to the host.
Must be on if the 2-byte channel option is enabled.
128
Controller file processing.
When added in, the host is prompted with file requests at the beginning of a host-controller communications session.
256
Forwards port activation requests from remote controllers to the host.
Enable only if necessary for the host computer to send activation parameters to ports on remote controllers. Normally, the host does not need to see activation requests from remote controllers, unless the remote controller is directly cabled to a host controller directly connected to the host computer.
4985 Network Controller Programmer’s Guide
D-11
Page 120
APPENDIX D
"
File Structure Records
Table D-24 System Mode Parameters
Value Meaning
Description
512
Send Local controller ID on power up to host.
When added in, the local controller begins a communications session with the host by sending an ID record. This host then responds with an initialization record. Should be disabled, as it prohibits the host from using initialization record parameters to tailor the host-controller interface. When enabled, the EBCDIC host option must be set for EBCDIC host computers.
1024
Force auto-answer for remote controllers.
When enabled, a remote controller always answers the phone, even when no HHCs are ready to communicate. If not enabled, a remote controller will not answer the phone unless an HHC is ready.
2048
The secondary controller is direct-connected to the primary.
Applies to remote controllers. If enabled, a controller connected to an HHC port on a host controller always maintains the link to the host controller.
4096
Deactivate Request ON (ASYNC only)
If on, the controller periodically sends a deactivate request to the host for each enabled auto-answer port not currently active, such as a port waiting for a phone call. The host can then time window port configurations. Not useful with the 4985.
8192
Cyclic Redundancy Check (CRC) ON. (ASYNC only)
If on, the controller appends two CRC characters to the end of the upload data (type 0) records. Host appends two characters to the end of download data blocks (type 0). See Appendix C.
D-12
4985 Network Controller Programmer’s Guide
Page 121
APPENDIX D
"
File Structure Records
Table D-25 Host Parameters
Parameter
Default Description
-A[mode]
0
1 to 5 digit numeric field setting mode for host port, such as -A0.
-C[parity]
0
1 digit numeric field setting parity and number of data bits. Valid values are: “0” = No parity/8 data bits(-C0) “1” = Odd parity/7 data bits (-C1) “2” = Even parity/7 data bits (-C2)
-D[stopbits]
1
1 digit numeric field setting stop bits. Valid values are: “1” = One stop bit (-D1) “2” = Two stop bits (-D2) “3” = Three stop bits (-D3)
-E[delimiter]
13
1- to 2-digit numeric field specifying collating sequence number of character marking end of all records sent from controller to host. A delimiter of “0” specifies no end-of-record delimiter.
-F[block size]
0
Numeric field ranging from 258 to 1029; specifies the minimum controllerto-host record block size. Does not include the end-of-record delimiter character. Records shorter than the block size are padded to the block size and the delimiter character is appended. Forces the controller to send fixedlength blocks to the host.
-G[pad char]
32
1- to 3-digit numeric field specifying the characters that pad short blocks when a minimum block size is specified.
-H[ready char]
63
1- to 3-digit field specifying the host “ready” directive.
4985 Network Controller Programmer’s Guide
D-13
Page 122
APPENDIX D
"
File Structure Records
Table D-25 Host Parameters
Parameter
Default Description
-I[read timeout] 30
2- or 3-digit numeric field specifying the maximum seconds the controller waits for a response from host. If no response received within set time, the controller will reset and await an initialization record from the host. Valid values are 10 to 120.
-J[host-delay]
0
1- or 2-digit numeric field specifying delay in hundredth of seconds before controller sends next message to host after receiving a ready character from host. Valid values are 0 to 50.
-K[char-gap]
10
1- or 2-digit numeric field specifying maximum intercharacter gap time in whole seconds allowed in a block of data sent from host. Valid values are 9 to 40.
-L[cts-gap]
5
1- to 3-digit numeric field specifying maximum time in tenths of seconds the controller waits for CTS after RTS. Valid values are 0 to 100.
Activation Parameters Table D-26 Type 4 - LAN Parameters
D-14
Parameter
Default
Description
-C[channels]
3 channels
Specifies number of HHCs that communicate concurrently. Valid values are 1, 2, or 3 (-C3).
-T[timeout]
60 seconds Specifies a “no activity” timeout period in seconds. If timeout period expires, port deactivates. Valid values are from 20 to 120 (-T60).
4985 Network Controller Programmer’s Guide