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 10 of 16

4985 Network Controller Programmer's Guide: Section 5: Other Features

Pages 71 to 80 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 71

Section 5 Other Features "

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

Controller-Based File Processing “File Processing” refers to a method of transferring from the host computer updated application and data files to a local or remote controller. These files would be stored in the controller’s RAM disk. The new files will overwrite or replace the existing files on the controller. The controller can store up to 40 data files on the system. The total file size area must not exceed 360,000 bytes. The data files may contain files to boot Hand-Held Computers (HHCs), download data, or warm-boot files for HHCs using the File Server method. To successfully implement file processing, you must: "

"

"

"

"

Understand the controller disk directory structure and format of the NCDIR.NCC and NETRPL.LST control files. Implement host directive, special request, and directive status records on your host computer. Know how to upload the NCDIR.NCC control file from the controller to your host computer. Perform version checking of HHC application software program changes done on the host computer against each HHC for proper version numbers. Know how to download to HHCs, without a proper version, a “download request” file. The “download request” file must have the proper filenames located on the controller.

4985 Network Controller Programmer’s Guide

5-1

Page 72

SECTION 5

"

Other Features

File processing first starts with the knowledge of what files are currently on the controller and valid for file processing. This information is stored in the NCDIR.NCC file. During the file processing phase of communications where the host application and the controller exchange information, the host should retrieve the NCDIR.NCC file first to compare the contents of the controller file system with the current host files. Here, any files that may have been changed or need to be removed from the controller can be processed.

NCDIR.NCC The NCDIR.NCC file contains zero, one, or multiple records on all valid files currently loaded on the controller. This information includes filenames, date created, file size, and file status. The record size is 32 bytes. The record layout is as follows: Table 5-1 NCDIR.NCC Record Layout

Position Bytes Description

5-2

1

8

MS-DOS compatible filename (required)

9

3

MS-DOS compatible file extension (required)

12

6

Creation date (YYMMDD)

18

4

Creation time (HHMM, military 24-hour clock)

22

2

Pad

24

1

Pad - “0” or blank HHC boot file

25

1

Translation type

26

1

File status: “0” = good “1” = undefined “2” = deleted “3” = system

27

6

File length (in bytes) required

4985 Network Controller Programmer’s Guide

Page 73

SECTION 5

"

Other Features

Pad the last data record for a file with blanks if the file length is not an even multiple of 256. Do not include the pad in the file length field in the directory entry for the file. EXAMPLE:

An entry in the NCDIR.NCC file (* represents blank spaces) APP*****EXE9308191134**000110667

The NCDIR.NCC file should be the first file sent from the controller to the host. It should also be the last file sent back to the controller from the host to update the controller. Once the host receives the NCDIR.NCC file, the host must be able to break the file into the records as defined earlier and compare the contents with the files on the host. After retrieving the NCDIR.NCC file and validating or marking the files to be deleted, created, or downloaded to the controller, the host can begin sending the proper sequence records to the controller for file processing. This sequence of commands can be summarized into the following: "

"

"

"

For each record the host wants uploaded from the controller, the host would send an upload directive with the filename. If the host is downloading a new file to the controller, the host would send a download directive or a “create or load” directive. The host, after each directive record, should be aware of the status records from the controller and act appropriately based on the status. The last file sent to the controller should be the new updated NCDIR.NCC file. 4000 cold booting changes can be affected by file processing. The 4000, when cold booting, uses the NETRPL.LST file containing a list of files that are sent to it when the 4000 requests a boot session. If the host did not send a NETRPL.LST file, the controller will create a file listing all files in the controller as boot files. Normal operations do not affect the NETRPL.LST file.

Use an “Abort” record to abort the file processing session and lock the 4985 file system. The file system unlocks after a successful file processing session. 4985 Network Controller Programmer’s Guide

5-3

Page 74

SECTION 5

"

Other Features

Pad the last data record for a file with blanks if the file length is not an even multiple of 256. Do not include the pad in the file length field in the directory entry for the file. All directory entry fields must contain ASCII character data. Fill all fields in a directory entry when creating a directory entry, except for the file status field. The file status field indicates the current status of the file. Enter these fields: "

Filename

"

Translation type

"

File length

The filename and extension entries must be MS-DOS compatible, leftjustified, and padded with blanks. If not using an extension, pad the extension with blanks. The translation field applies only to file data sent from a host. The file length field must contain the exact length of the file in bytes, be rightjustified, and padded to the left with leading zeros. You can fill in the date, time, fill, and type fields. However, future NORANDâ software releases may use the specified fields. EXAMPLE:

Directory entry: MYFILE DAT9606222322 000001064 MYFILE DAT 960622 2322 00 0 0 0 1064

5-4

Filename: MS-DOS compatible File extension: MS-DOS compatible Date created: June 22, 1996 Time created: 11:22 pm User defined filler File type - HHC boot file Filler File status: Good File length is 1064 bytes

4985 Network Controller Programmer’s Guide

Page 75

SECTION 5

"

Other Features

If enabled on the controller (file processing), the host can update controller files at the beginning of each host-to-controller session. The controller provides four directives for this purpose: "

1

Upload

"

2

Create or load

"

3

Delete

"

4

Abort

After the host sends the initialization record, the controller sends file requests to the host to initialize file processing and will continue to send file requests to the host after each file processing transaction concludes until the host responds with an end-of-data record, terminating file processing, and beginning data communications.

Host-to-Controller File Processing Related Commands " NOTE:

See Section 4 for details on record types and definitions.

Initialization Record (Type 2) The host sends the initialization record to the controller at the beginning of each communication session. The host can activate file processing in the controller using the system mode parameter (-S) in the initialization record. The entire parameter list is located in Section 4 on page 4-20. EXAMPLE:

/2 -S224/ Initialize controller with the following controller options enabled: " Controller file processing " Forward ID records from remote controller to host " 2-byte channel option

4985 Network Controller Programmer’s Guide

5-5

Page 76

SECTION 5

"

Other Features

Host Directive Record (Type 6) The host sends a directive record only during the file processing phase of a communication session. This record requests information from the controller or file uploads with the controller. The entire parameter list is located on page 4-1. A host directive may be sent by the host in response to a special request from the controller. Types “1” to “3” manage user data files (or HHC boot files) stored on the controller. (If file processing, a system mode parameter is enabled and the host is prompted with file requests at the beginning of a host-to-controller session.) Type “4” sends a file stored on the controller to an HHC requiring download data.

Host Directive Subrecords (Types 1-3) File Upload (Subtype 1) An upload directive may be sent in response to a file request to upload a data file from the controller. File Create or Load (Subtype 2) A file create or load directive may be sent in response to a file request to create a user data file on the controller. The directive must contain a user data file directory entry which includes a filename and user-defined information. The file is saved into a RAM disk. After the controller receives the create directive, the host is prompted with data request records. The host can send data records in response until all the new file data has been sent. An end-of-data record from the host marks the end of the data for the file. File Delete (Subtype 3) A file delete directive may be sent in response to a file request to delete a user data file from the controller user file directory. " NOTE:

5-6

A directive status record (type 7) goes to the host immediately after a host directive has been completed.

4985 Network Controller Programmer’s Guide

Page 77

SECTION 5

"

Other Features

Controller-to-Host File Processing Related Commands " NOTE:

See Section 4 on page 4-13 for record types and definitions.

Controller-to-Host Records with 2-Byte Channel ID Records from the controller to the host can, optionally, use a 2-byte channel ID consisting of a 1-byte “device channel” field and a 1-byte “HHC channel” field. HHC channels belong to the device active on the corresponding device channel. Device channel “0” is reserved for the controller directly connected to the host computer. Device channels “1” to “9” are for remote controllers. The record formats for the 2-byte channel option are the same as the 1-byte channel option except that the device channel ID is prepended to each record from the controller.

Directive Status Record (Type 7) After a directive has been completed, successful or not, the controller sends a directive status record to the host containing the directive type and a 1-byte status code. The status codes for the file are on page 4-19.

Booting HHCs from Controller The controller can boot 4000 Series HHCs in the Local Area Network (LAN) environment with a list of files kept in a file named NETRPL.LST. “Boot” is the industry jargon for bringing a computer to normal operating condition when it has been without power. Norand has adopted the term to describe the same process for starting our 4000 Series Computers. NETRPL.LST must be one of the directory entries in the file directory NCDIR.NCC (described on page 5-1). NETRPL.LST is a pointer file that consists of filenames needed for booting the HHC. 4985 Network Controller Programmer’s Guide

5-7

Page 78

SECTION 5

"

Other Features

NETRPL.LST is composed of 11-byte records. Each record contains an 8-byte filename and 3-byte extension. A blank filename terminates the list of files. These filenames must have corresponding directory entries in the file directory NCDIR.NCC. When the boot option is in effect, the controller attempts to send all files specified in NETRPL.LST to any terminal trying to boot on the attached LAN.

NETRPL.LST The controller can boot 4000 Series HHCs in the LAN environment with a list of files kept in a NETRPL.LST file. NETRPL.LST is a data file residing on the controller. It consists of a series of 11-byte records. Each record contains two fields, the filename and the filename extension. A blank record terminates the list of files. When the boot option is in effect, the controller attempts to send all files specified in the NETRPL.LST file to any terminal on the LAN attempting to boot. Table 5-2 NETRPL.LST File

Position Bytes Description 1

8

DOS compatible filename (right-justified, padded with blank spaces)

9

3

DOS compatible filename extension

Host-to-Controller Session Sample 1 This shows the exchange of control records between the host computer and the controller when there are no files residing on the controller. " NOTE:

5-8

Asterisks indicate spaces in the command column. Complete commands may not be shown.

4985 Network Controller Programmer’s Guide

Page 79

SECTION 5

Host

Controller

Init Record

-------->

Host Ready

--------> <--------

Upload File Directive

-------->

Host Ready

--------> <--------

Host Ready Host Ready

/2 -S224 ? File Processing Request 0161 /61NCDIR***NCC ? Data Record

010*********

Status Record

01710

?

--------> <--------

? File Processing Request 0161

File Create/Load Directive --------> Host Ready

/62NETRPL**LST9507050914*****000022

--------> <--------

Other Features

Command

--------> <--------

"

? Download Request

012

Data Block

-------->

/62APP*****EXE9507021412*****021123

Host Ready

-------->

?

<--------

Download Request

012

Data Block

-------->

/0<data>

Host Ready

-------->

?

.

. <repeat until all data downloaded for file> .

<-------End of Data Record

-------->

Host Ready

--------> <--------

Host Ready

012 /1 ?

Status Record

01720

--------> <--------

End of Data Record

Download Request

? File Processing Request 0161

-------->

/1

<end of file processing phase> <beginning of data communication phase> <--------

Activate Request

/0150

4985 Network Controller Programmer’s Guide

5-9

Page 80

SECTION 5

"

Other Features

Host-to-Controller Session Sample 2 This shows the exchange of control records between the host computer and the controller when there are files residing on the controller. " NOTE:

Asterisks indicate spaces in the command column. Complete commands may not be shown.

Host

Controller

Init Record Host Ready Download File Directive Host Ready

--------> --------> <---------------> --------> <--------

/2 -S224 ? File Processing Request 0161 /61NCDIR***NCC ? 010APP*****EXE9507021412*****021123 Data Record NETRPL**LST9507050914*****000022

Host Ready

--------> <-------Status Record Host Ready --------> <-------File Processing Request File Delete Directive --------> Host Ready --------> <-------Status Record Host Ready --------> <-------File Processing Request Data Block --------> Host Ready --------> <-------Download Request Data Block --------> Host Ready --------> <-------Download Request Host Ready --------> <-------Status Record Host Ready --------> <-------File Processing Request End of Data Record --------> Host Ready --------> <end of file processing phase> <beginning of data communication phase> <-------Activate Request

5-10

Command

4985 Network Controller Programmer’s Guide

? 01710 ? 0161 /63NETRPL**LST ? 01730 ? 0161 /62NETRPL**LST9507021422*****000022 ? 012 /0APP*****EXE ? 012 ? 01720 ? 0161 /11 ?

/0150