Intermec 4985 Programmer's Manual
Intermec 4985 Programmer's Manual

Intermec 4985 Programmer's Manual

Network controller
Table of Contents

Advertisement

Quick Links

4985 Network Controller
PROGRAMMER'S
GUIDE
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
PN: 977-028-006
Revision A
May 1996

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 4985 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Intermec 4985

  • Page 1 4985 Network Controller PROGRAMMER’S GUIDE " " " " " " " " " " " " " " " " " " " " " " " " " " " " PN: 977-028-006 Revision A May 1996...
  • Page 2 Intermec Technologies Corporation, and shall be returned to Intermec Technologies Corporation upon written request. If a purchase, license, or nondisclosure agreement has been executed, the terms of that agreement shall govern this document.
  • Page 3: Table Of Contents

    ..........4985 Network Controller Programmer’s Guide CONTENTS "...
  • Page 4 Type 4 - Active Status Record 4985 Network Controller Programmer’s Guide ......... . .
  • Page 5 Processing Special Requests ....... . . 4985 Network Controller Programmer’s Guide CONTENTS .
  • Page 6 Special Commands Record Layouts 4985 Network Controller Programmer’s Guide ............
  • Page 7 Figure 2-19 Vertical or Wall-Mounted Bracket Figure 2-20 Horizontal or Shelf-Mounted Brackets Figure 2-21 Connectors on the Back of a 4985 Network Controller Figure 2-22 Isolated Ground Outlets ......
  • Page 8 Table D-12 File Create or Load Directive “2” Table D-13 File Delete Directive “3” 4985 Network Controller Programmer’s Guide ..... .
  • Page 9 ......GLOSSARY INDEX 4985 Network Controller Programmer’s Guide CONTENTS ......
  • Page 10 CONTENTS " 4985 Network Controller Programmer’s Guide viii...
  • Page 11: Introduction

    This document aids in the writing of the interface program for your host computer. At the initial installation, configure the 4985 Network Controller for the network it should operate. There are three banks of dip switches for functional configuration of the controller. Each bank contains eight switches.
  • Page 12: About The Controller

    This connection provides a gateway for data to pass between the HHCs and your host using logical channels and record types. This guide primarily covers the asynchronous interface which is 4980-compatible. The primary difference between the 4980 and 4985 is 4985 Network Controller Programmer’s Guide...
  • Page 13 SECTION 1 Introduction " the 4985 Controller has only two ports and lacks a display, keypad, and disk drive. Since one port is dedicated to the host interface, there is only one port remaining for communicating with HHCs. The different record types, sent back and forth between the controller and the host, help tailor the communications session to meet that spe- cific session’s needs.
  • Page 14 SECTION 1 Introduction " 4985 Network Controller Programmer’s Guide...
  • Page 15: Getting Started

    " " " " " " " " " ASYNC 4980 Controller NPCP 4985 Controller Figure 2-1 Host-to-4985 Using 4980 4985 Network Controller Programmer’s Guide Section 2 " " " " " " " " ADCCP Synchronous Modem SADCCP Synchronous...
  • Page 16 Controller connects to the modem with the host port. Figure 2-2 shows the 4980 Network Controller on the left connected to a host computer. The 4985 Controller on the right is at a remote site, hooked up with at least one six-pack multidock.
  • Page 17 Figure 2-4 has the most Hand-Held Computers (HHCs) that can com- municate through one 4985 Controller. The NORAND er Units (APUs) connect in series with the multidocks. Multidock 4985 Controller Multidock Multidock Multidock Multidock 4985 Multidocks with Maximum Configuration 4985 Network Controller Programmer’s Guide...
  • Page 18 One APU powers four multidocks. The controller powers two multidocks directly. Figure 2-5 differs from Figure 2-4 by connecting the two APUs togeth- er instead of chaining the second APU in series to a multidock. The second APU connects directly to the first APU. 4985 Network Controller Programmer’s Guide...
  • Page 19 Optional Wiring with 2 APUs Connected If hooking up the maximum number of multidocks allowed, use the wiring diagram in Figures 2-4 or 2-5. Take into consideration your power outlets and physical setup. 4985 Network Controller Programmer’s Guide SECTION 2 Getting Started "...
  • Page 20: 4985 Configuration Switches

    Getting Started " 4985 Configuration Switches Three 8-position DIP switches allows a user to customize the 4985 for their particular system application. Switches “1” through “5” of DIP bank #2 apply only to ADCCP host applications. DIP bank #3 config- ures the controllers identification number for a large system.
  • Page 21: Figure 2-7 Typical Host-To-4985 Setup

    The host communicates with the 4985 Controller using the NORAND asynchronous proprietary protocol. The multidock connects to the LAN port on the 4985 Controller and the host to the HOST port. The primary controller use is to facilitate the host-to-HHC communica- tion session.
  • Page 22: Figure 2-8 1-Byte Identifier

    It consists of four parts. Device Channel A device channel is zero as the 4985 is directly connected, the ASYNC interface is used, and an HHC channel will be “1”, “4”, or “7.” The de- vice channel identifies which controller the HHC channel belongs to.
  • Page 23: Device Channels

    The unit must go to a service center for repair. These beeps are diagnostic tools for the service technician. See Appendix A for a list of beep counts and their problem areas. SECTION 2 " 4985 Network Controller Programmer’s Guide Getting Started...
  • Page 24: Connections

    When cleaning, inspect for damage or wear. Clean the controller with a soft cloth dampened with a quality glass cleaner. Do not use sol vent solutions. Specifications Communication Protocol Support: RS-232 Secondary ADCCP (9.6Kbps) or Host Async (38.4Kbps) RS-485 NPCP (500Kbps) 4985 Network Controller Programmer’s Guide 2-10...
  • Page 25: Hardware

    13 inches (330 mm) Depth: 7.5 inches (191 mm) Weight: 5 lbs Chassis: 0.063 inch-thick (1.6 mm) #5052H32 aluminum 12 HHCs maximum External: +15 Volts @ 3.5 Amps RS-232 1 port RS-485 1 port 4985 Network Controller Programmer’s Guide Getting Started 2-11...
  • Page 26: General Equipment

    In turn, the con- troller connects to other network controller devices, a PC, modems, or a larger computer (host site) through cables or telephone link. 4985 Network Controller Programmer’s Guide 2-12 HOST/MO-...
  • Page 27: Optional Peripherals

    4000 Series HHCs. Add an APU to expand the network beyond the power supply capabilities of the controller. Connect up to two APUs and ten multidocks in series to one 4985 Network Controller. Optional Peripherals Optional peripheral devices allow for flexibility and customization:...
  • Page 28: Multidock

    " Multidock Chain the 4960 multidocks together with cables to increase the num- ber of HHCs connected to each controller. Each rack has six docks for the 4000 Series HHCs. 4985 Network Controller Programmer’s Guide 2-14 Figure 2-12 4960 Multidock...
  • Page 29: Auxiliary Power Unit (Apu)

    There can be a maximum of two APUs and ten multidocks. 4985 Network Controller Programmer’s Guide 2-15...
  • Page 30: Power Supply

    RS-232 terminal to enter the phone numbers into an NM2400A. Re- fer to the operation documents for your modem before entering phone numbers into the modem. 4985 Network Controller Programmer’s Guide 2-16 Connect the network controller to this power supply outlet.
  • Page 31 ROUTE- COMMANDER 4000 11-1/2” Figure 2-15 Approximate Dimensions of Auxiliary Power Unit ROUTE- COMMANDER 4000 11-1/2” Figure 2-16 Approximate Dimensions of 4985 Network Controller 4985 Network Controller Programmer’s Guide SECTION 2 Getting Started " 10” SERIES 10” SERIES 2-17...
  • Page 32: Location

    4950 Single Dock Approximate Dimensions of Docks Use graph paper to draw the installation to scale in your planning. Minimum required spacing between a 4985 Network Controller " and a multidock is 19 and 3/4 inches. Plan for 39 and 1/4 inches of space.
  • Page 33: Figure 2-19 Vertical Or Wall-Mounted Bracket

    Mount multidock brackets on 16-inch centers. You can mount these brackets on a vertical surface or wall (Figure 2-19). Figure 2-19 Vertical or Wall-Mounted Bracket 4985 Network Controller Programmer’s Guide SECTION 2 Getting Started " Clearance between...
  • Page 34: Connectors

    There is not an input or an output connector. Use the most convenient connector available on the multidock when connecting it to the control- ler, an APU, or when chaining to another multidock. 4985 Network Controller Programmer’s Guide 2-20 Figure 2-20...
  • Page 35: Ac Power

    RS485 Connectors on the Back of a 4985 Network Controller " NOTE: You can connect up to two multidocks. Add another APU if you want another multidock. You need special adapters for a single dock. AC Power Use alternating current (AC) power for data communication equipment with isolated ground outlets.
  • Page 36: Figure 2-22 Isolated Ground Outlets

    Code paragraph 250-74, (exception #4). A separate, insulated ground wire must be run, uninterrupted, from the outlets and terminate direct- ly at an equipment grounding conductor terminal of the derived system or service. 4985 Network Controller Programmer’s Guide 2-22 Figure 2-22 Isolated Ground Outlets...
  • Page 37: Installation

    “000” and “254.” There are 256 unique identity codes. The default ID is zero. " NOTE: ID number 255 is reserved. " " " " " " " " " " Model 4985 Network Controller Programmer’s Guide Section 3 Installation " " " " " " " "...
  • Page 38: Table 3-1 Bank 1 Dip Switches

    Switch Meaning Command mode Host type Speed (bps) Parity Databits Model 4985 Network Controller Programmer’s Guide Table 3-1 Bank 1 Dip Switches Description off: Normal host communications. on: Controller powers up in command mode and awaits input commands from user on the RS-232 port. Provided as a diagnostic tool.
  • Page 39 1 channel active channels on the LAN port. on off: 2 channels active concurrently (see Note 3 off on: 3 channels active concurrently on on: Reserved after table) Model 4985 Network Controller Programmer’s Guide SECTION 3 Installation " â 9600 Modem.
  • Page 40: Table 3-3 Bank 3 Dip Switches

    The ID sent to the host will range from “49850000” to “49850254,” where the last three digits come from the switch settings and the first five digits are the device type. Model 4985 Network Controller Programmer’s Guide Table 3-3 Bank 3 Dip Switches Description Default ID is 49850000.
  • Page 41: Reset Button

    Volume A Volume B 4920 and 4921 Reference Guide SECTION 3 1 2 3 4 5 6 7 8 Figure 3-1 Default Switch Settings NPN: 977-028-001 NPN: 961-021-011 NPN: 961-021-012 NPN: 961-021-013 Model 4985 Network Controller Programmer’s Guide Installation "...
  • Page 42 SECTION 3 Installation " Model 4985 Network Controller Programmer’s Guide...
  • Page 43: File Structures

    HHC channels be- long to the active device on the corresponding device channel. The 4985 asynchronous interface works with device channel “0”. The Local Area Network (LAN) port works with HHC channels “1”, “4”, and “7”.
  • Page 44: Type ? - Host Ready Command

    “6” = Host Directive " Record Layouts This explains the function of each record type. Actual record layouts appear after the record description. 4985 Network Controller Programmer’s Guide Table 4-1 Type ? - Host Ready Command Question mark “?” Table 4-2 Type * - Reinitialization Command Asterisk “*”...
  • Page 45: Type 0 - Download Data Record

    Table 4-3 Type 0 - Download Data Record Position Bytes Description Beginning delimiter: “/” Command code: “0” Download data Optional CRC bytes (if enabled) 261+ Optional pad (up to 3 bytes) 4985 Network Controller Programmer’s Guide SECTION 4 File Structures "...
  • Page 46: Type 1 - End-Of-Data Record

    The host also sends end-of-data records in response to a file request to terminate file processing. Position Bytes Description 259+ 4985 Network Controller Programmer’s Guide Table 4-4 Type 1 - End-of-Data Record Beginning delimiter: “/”...
  • Page 47: Type 2 - Initialization Record

    SECTION 4 Table 4-5 Type 2 - Initialization Record Beginning delimiter: “/” Command code: “2” Initialization parameters list. The parameter list terminates with a slash “/.” Optional pad (up to 5 bytes) 4985 Network Controller Programmer’s Guide File Structures "...
  • Page 48: Type 3 - Activate (Auto-Answer) Record

    Nonswitched (direct) connections are auto-answer connections. The controller processes auto-dial activate records for connections that are dial-out. The activation parameters lists are derived on page 4-26. 4985 Network Controller Programmer’s Guide Table 4-6 Beginning delimiter: “/” Command code: “3”...
  • Page 49: Table 4-7 Type 4 - Activate (Auto-Dial) Record

    " NOTE: This is used on the 4980 Controller and is presented here for compatibility. The 4985 uses autoanswer records for NPCP. Position Bytes Description 259+ EXAMPLE: (CR = end of record marker) /4 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/ppppp<CR> Beginning delimiter = “/”...
  • Page 50: Type 5 - Deactivate For One Minute Record

    Five subtypes of host directives are avail- able. Types “1”, “2”, and “3” manage user data files. Type “4” sends download data to an HHC and type “6” cancels file processing. 4985 Network Controller Programmer’s Guide Table 4-8 Beginning delimiter: “/”...
  • Page 51: Type 7 - Reboot Controller Directive

    If file processing is enabled using the system mode parameter in the initialization record, the host will receive file requests from the control- ler at the beginning of a host-to-controller session and after the host 4985 Network Controller Programmer’s Guide SECTION 4 File Structures...
  • Page 52: File Upload Directive "1

    The controller sends a directive status to the host immediately after completing a host directive. File Upload Directive “1” The host sends an upload directive, in response to a file processing special request, to upload a file stored on the 4985 controller (usually the directory file). Position Bytes Description EXAMPLE: /51FILENAMEEXT.
  • Page 53: Table 4-12 File Create Or Load Directive "2"

    “0” or blank indicates an HHC boot file. Filler (should be zero filled 0x30) File status: “0” = Good “1” = Undefined “2” = Feleted “3” = System File size (in ASCII digits) required Filler bytes 4985 Network Controller Programmer’s Guide File Structures " 4-11...
  • Page 54: File Delete Directive "3

    HHC. The controller must contain this file (created with File Create). Position Bytes Description EXAMPLE: /64FILENAMEEXT. . .xxxxxppppp<CR> 4985 Network Controller Programmer’s Guide 4-12 Table 4-13 File Delete Directive “3” Beginning delimiter: “/”...
  • Page 55: File Processing Abort "6

    Beginning delimiter: “/” Command code: “6” Directive type: “6” Filler bytes “1” = End of Session Status " “3” = Inactive Status " “5” = Activate Request " “7” = Directive Status " 4985 Network Controller Programmer’s Guide File Structures " 4-13...
  • Page 56: Type 0 - Upload Data Record

    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. 4985 Network Controller Programmer’s Guide 4-14 Table 4-16 Type 0 - Upload Data Record Device channel ID HHC channel ID: “1”, “4”, or “7”...
  • Page 57: Table 4-17 Type 1 - End Of Session Status Record

    “8” = HHC logic error. The HHC detected a logic error in the file transfer process. HHC application status information Local port identifier Reserved for diagnostic information 4985 Network Controller Programmer’s Guide File Structures " 4-15...
  • Page 58: Type 2 - Data Request Record

    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 4985 Network Controller Programmer’s Guide 4-16 Table 4-18 Type 2 - Data Request Record Device channel ID: “1”...
  • Page 59: Type 5 - Activate Request Record

    Type 4 - Active Status Record Device channel ID: “1” HHC channel ID: “1” Record type = “4” Table 4-21 Type 5 - Activate Request Record Device channel: “0” HHC channel ID: “1” Record type: “5” 4985 Network Controller Programmer’s Guide File Structures " 4-17...
  • Page 60: Type 6 - Special Request Record

    Special request records lump a variety of special records into one re- cord type. A subtype field determines the actual request type. Cur- rently there is only one subtype defined. Position Bytes Description 4985 Network Controller Programmer’s Guide 4-18 Table 4-21 Type 5 - Activate Request Record...
  • Page 61: Type 7 - Directive Status Record

    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 File Structures " 4-19...
  • Page 62: Initialization Record

    “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. 4985 Network Controller Programmer’s Guide 4-20 Table 4-23 Type 7 - Directive Status Record Description Directive status: “0”...
  • Page 63: System Mode Parameters

    /* 0000 0010 0000 0000 */ 1024 /* 0000 0100 0000 0000 */ /* 0000 1000 0000 0000 */ 4096 /* 0001 0000 0000 0000 */ 8192 /* 0010 0000 0000 0000 */ 4985 Network Controller Programmer’s Guide File Structures " 4-21...
  • Page 64: Table 4-24 System Mode Parameters

    Forwards ID records from remote controller to the host. Controller file processing. Forwards port activation requests from remote controllers to the host. 4985 Network Controller Programmer’s Guide 4-22 Table 4-24 Description All mode parameters set off. Controller determines if host is EBCDIC or ASCII if this field is not added in.
  • Page 65: Host Parameters

    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. 4985 Network Controller Programmer’s Guide File Structures " 4-23...
  • Page 66: Table 4-25 Host Parameters

    -A[mode] -C[parity] -D[stopbits] -E[delimiter] -F[block size] -G[pad char] -H[ready char] 4985 Network Controller Programmer’s Guide 4-24 Table 4-25 Host Parameters Default Description 1 to 5 digit numeric field setting mode for host port, such as -A0. 1 digit numeric field setting parity and number of data bits.
  • Page 67: Port Parameters

    The initialization record gets port parame- ters after the system and host initialization parameters. Port parameters have this general format: @[port], [port-type], activation parameters -[port] 1 digit number specifying HHC port. The 4985 only has one port so the default is “1.” SECTION 4 "...
  • Page 68: Activation Parameters

    [parameter] a string of digits or characters. " NOTE: All optional parameters begin with a dash. Parameter -C[channels] -T[timeout] 4985 Network Controller Programmer’s Guide 4-26 Table 4-26 Type 4 - LAN Parameters Default Description 3 channels Specifies number of HHCs that commu- nicate concurrently.
  • Page 69 8 data bits and no parity. specifies three HHC communication channels on LAN (port 1) @1,4,-C3 end of string terminating initialization data. The slash is required only if record is not padded with spaces. SECTION 4 " 4985 Network Controller Programmer’s Guide File Structures 4-27...
  • Page 70 SECTION 4 File Structures " 4985 Network Controller Programmer’s Guide 4-28...
  • Page 71: Other Features

    “download request” file. The “download request” file must have the proper filenames located on the controller. Other Features " " " " " " " " " " 4985 Network Controller Programmer’s Guide Section 5 " " " " " " " "...
  • Page 72: Ncdir.ncc

    This information includes file- names, date created, file size, and file status. The record size is 32 by- tes. The record layout is as follows: Position Bytes Description 4985 Network Controller Programmer’s Guide Table 5-1 NCDIR.NCC Record Layout MS-DOS compatible filename (required)
  • Page 73 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 proces- sing session. SECTION 5 "...
  • Page 74 MYFILE File extension: MS-DOS compatible Date created: June 22, 1996 960622 Time created: 11:22 pm 2322 User defined filler File type - HHC boot file Filler File status: Good File length is 1064 bytes 1064 4985 Network Controller Programmer’s Guide...
  • Page 75: Host-To-Controller File Processing Related Commands

    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 " SECTION 5 " 4985 Network Controller Programmer’s Guide Other Features...
  • Page 76: Host Directive Record (Type 6)

    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: A directive status record (type 7) goes to the host immediately after a host direc- tive has been completed. 4985 Network Controller Programmer’s Guide...
  • Page 77: Controller-To-Host File Processing Related Commands

    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.
  • Page 78: Netrpl.lst

    " NOTE: Asterisks indicate spaces in the command column. Complete commands may not be shown. 4985 Network Controller Programmer’s Guide Table 5-2 NETRPL.LST File DOS compatible filename (right-justified, padded with blank spaces)
  • Page 79 File Processing Request 0161 End of Data Record --------> <end of file processing phase> <beginning of data communication phase> <-------- Activate Request SECTION 5 " Command /2 -S224 /61NCDIR***NCC 010********* 01710 /62NETRPL**LST9507050914*****000022 /62APP*****EXE9507021412*****021123 /0<data> 01720 /0150 4985 Network Controller Programmer’s Guide Other Features...
  • Page 80: Host-To-Controller Session Sample 2

    File Processing Request 0161 End of Data Record --------> Host Ready --------> <end of file processing phase> <beginning of data communication phase> <-------- Activate Request 4985 Network Controller Programmer’s Guide 5-10 Command /2 -S224 /61NCDIR***NCC 010APP*****EXE9507021412*****021123 NETRPL**LST9507050914*****000022 01710 /63NETRPL**LST 01730...
  • Page 81: Writing The Host Program

    Writing the Host Program " " " " " " " " " " 4985 Network Controller Programmer’s Guide Section 6 " " " " " " " "...
  • Page 82: Starting The Main Routine

    Norand provides a generic pseudo-coded host program that includes most everything you need to know for your host computer to communicate with the 4985 Network Controller. " NOTE: The pseudo programs in the following subsections do not have a status screen.
  • Page 83 Perform Activation_Routine Else if type is Special_Request Perform File_Processing_Routine Else if type is Directive_Status Perform Directive_Status_Routine Else Perform Invalid_Record_Routine Endif End While Not Finished Close Files End Program End Main Routine 4985 Network Controller Programmer’s Guide Writing the Host Program "...
  • Page 84: Receiving Data

    Set up data save area for channel 7 “?” (ready) Add record to data save area already set up “?” (ready) Set up data save area for channel 4 “?” (ready) 4985 Network Controller Programmer’s Guide Controller --------> --------> first HHC begins to transmit <------- Chan 1 Upload Data -------->...
  • Page 85: Download Data

    SECTION 6 Writing the Host Program " Controller second HHC transmits another block of data <-------- Chan 7 Upload Data 4985 Network Controller Programmer’s Guide...
  • Page 86: Ending Status Routine

    Move Upload_count to log record upload counter. Move Download_count to log record download counter. Move current_status to log record status. Add the log record to the upload status. Change session status to inactive. Display log status of HHC telecom session. 4985 Network Controller Programmer’s Guide...
  • Page 87: Handling Time-Fill Records

    The prior connection status for this port is contained in the uploaded activate request record. The host program should respond with either an activate auto-answer record (record type 3) or an acti- vate auto-dial record (record type 4). SECTION 6 Writing the Host Program " 4985 Network Controller Programmer’s Guide...
  • Page 88: Processing Special Requests

    The other major area of change is in the data record. The length of the data block has increased from 128 bytes to 256 bytes. 4985 Network Controller Programmer’s Guide...
  • Page 89: Record Types

    SECTION 6 Writing the Host Program " Record Types Record types for both the NI311 and controllers follow. Listed are dif- ferences (if any) in how you can use the records. NI311 Record Types NI311-to-Host a) 0 Upload Data b) 1 End-of-call Status...
  • Page 90: Host-To-Controller Records

    The following record types are not NI311 compatible and do not go to the host unless the system enables the associated options. g) 6 Special Request Currently, one subtype follows: 1 File Requests h) 7 Directive Status 8 Controller Identification Host-to-Controller Records a) 0 Download Data 4985 Network Controller Programmer’s Guide 6-10...
  • Page 91 NOTE: The following record types are not NI311 compatible, and cannot be sent to the controller unless the system enables the associated options. g) 6 Host Directive SECTION 6 Writing the Host Program " 4985 Network Controller Programmer’s Guide 6-11...
  • Page 92: Special Commands

    If enabled, port “1” may have logical channels “1,” “4,” and “7.” Records from the controller (specific to a port, such as Activate Re- quests) always use the logical channel that equates to the logical port 4985 Network Controller Programmer’s Guide 6-12...
  • Page 93: Data Record Length

    You can add support for any of the above enhancements to an existing controller host program running in an NI311 compatibility mode with- out changing the general structure of the host program. SECTION 6 Writing the Host Program " 4985 Network Controller Programmer’s Guide 6-13...
  • Page 94 SECTION 6 Writing the Host Program " 4985 Network Controller Programmer’s Guide 6-14...
  • Page 95: 4000 Series Warm Start System

    #210-682-001. Complete the following items before controller-based file processing can begin. Details follow: Set the ID on the remote controller. The default 4985 Controller " ID is “49850000.” A unique ID is not required for each control- ler, but is recommended.
  • Page 96: Creating File Maintenance Lists

    PC Telecommunications Packages. The host communications program needs to create file maintenance lists for the controllers. This file list associates with the controller ID in the host session control file. Create a file maintenance list for each remote controller ID, using a host session control file interface.
  • Page 97 If the HHC application does not support the DWNLRQ file server, direct the host communication program to download a new program to each HHC with an out-of-date application. SECTION 7 4000 Series Warm Start System " 4985 Network Controller Programmer’s Guide...
  • Page 98: Setting Version Number

    A version number on the mode record is global. A version number on the terminal identification record applies to a specific terminal. The terminal identification option is for multiple application support. Converting HHC Application Programs Convert the HHC program to support program updates and DWNLRQ program requests. 4985 Network Controller Programmer’s Guide...
  • Page 99 HHC attaches to a modem and uses TTY to communicate. The receive routine for the 4000 HHC, (IPFRCV), cannot pack 7-bit z-space hex files. Therefore, any PL/N applications that implement automatic program updates must use the 8-bit binary format. 4985 Network Controller Programmer’s Guide...
  • Page 100 SECTION 7 4000 Series Warm Start System " 4985 Network Controller Programmer’s Guide...
  • Page 101: Power-Up Self-Tests

    CPU DMA controller test error CPU interrupt controller test error even ROM test error odd ROM test error SCC test error bad opcode trap bad interrupt vector trap heap memory exhausted 4985 Network Controller Programmer’s Guide " " " " " " "...
  • Page 102 APPENDIX A Power-Up Self-Tests " 4985 Network Controller Programmer’s Guide...
  • Page 103: Communication Session

    Chan 4 Upload Data --------> <-------- Chan 4 Activate Status --------> <-------- Chan 7 Upload Data --------> <-------- Chan 4 Upload Data --------> <-------- Chan 1 Data Request --------> 4985 Network Controller Programmer’s Guide " " " " " " " "...
  • Page 104 End of Data “?” “?” “?” End of Data “?” Download Data “?” “?” End of Data “?” 4985 Network Controller Programmer’s Guide Network Controller --------> <-------- Chan 1 Data Request --------> --------> <-------- Chan 7 Upload Data --------> <-------- Chan 1 Data Request -------->...
  • Page 105: Crc Checking With Asynchronous Interface

    /0<256 bytes data><CRC byte><CRC byte> -S8129 enables CRC checking in the system mode parameter in the initialization record sent to the 4985 from the host. The system mode parameter is the -S<system_mode> parameter in the initialization record (see page 4-20).
  • Page 106 *ptr++ << 8; for (i=0; i<8; i++) crc=((crc & 0x8000_ ? 0x1021 : 0) ^ (crc << 1); if (addcrc) buffer[size]=(0xff00 & crc) >> 8; buffer[size+1]=(0x00ff & crc); else if (buffer[size] !=(unsigned)((0xff00 * crc)>>8) || 4985 Network Controller Programmer’s Guide...
  • Page 107 ( -- count >= 0) crc ^=(int)*ptr++ << 8; for (i=0);i < 8; i++) crc=((crc&0x8000)) ?0x1021:0)^(crc<<1); ptr=buf; count=bsize; if (addcrc) crcbytes[0]=(0xff00&crc)>>8; crcbytes[1]=(0x00ff&crc); else if (crcbytes[0]!=(unsigned)((0xff00&crc)>>8) || crcbytes[1]!=(unsigned)(0x00ff&crc)) return -1; return 0; 4985 Network Controller Programmer’s Guide CRC Checking with Asynchronous Interface "...
  • Page 108 APPENDIX C CRC Checking with Asynchronous Interface " 4985 Network Controller Programmer’s Guide...
  • Page 109: Appendix D File Structure Records

    Type ? - Host Ready Command Question mark “?” Table D-2 Type * - Reinitialization Command Asterisk “*” Table D-3 Type 0 - Download Data Record Beginning delimiter: “/” Command code: “0” 4985 Network Controller Programmer’s Guide " " " " " " " "...
  • Page 110: Table D-4 Type 1 - End-Of-Data Record

    Position Bytes Description 259+ Position Bytes Description 259+ Type 3 - Activate (Auto-Answer) Record Position Bytes Description 4985 Network Controller Programmer’s Guide Table D-3 Type 0 - Download Data Record Description Download data Optional CRC bytes (if enabled) Optional pad (up to 3 bytes)
  • Page 111 Optional pad up to 5 bytes Table D-8 Type 5 - Deactivate for One Minute Record Position Bytes Description Beginning delimiter: “/” Command code: “5” Required pad bytes 259+ Optional pad up to 5 bytes 4985 Network Controller Programmer’s Guide File Structure Records "...
  • Page 112: Directive Types

    259+ Type 7 - Reboot Controller Directive Position Bytes Description Directive Types Position Bytes Description 4985 Network Controller Programmer’s Guide Table D-9 Type 6 - Host Directive Record Beginning delimiter: “/” Command code: “6” Directive type: “1” - “4” and “6”: “1”...
  • Page 113 “0” or blank indicates an HHC boot file. Filler (should be zero filled 0x30) File status: “0” = Good “1” = Undefined “2” = Deleted “3” = System File size (in ASCII digits) required Filler bytes 4985 Network Controller Programmer’s Guide File Structure Records "...
  • Page 114: Table D-13 File Delete Directive "3"

    APPENDIX D File Structure Records " Position Bytes Description Position Bytes Description Position Bytes Description 4985 Network Controller Programmer’s Guide Table D-13 File Delete Directive “3” Beginning delimiter: “/” Command code: “6” Directive type: “3” DOS compatible filename (required) DOS compatible file extension (required)
  • Page 115: Controller-To-Host Record Layouts

    “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. HHC application status information Local port identifier Reserved for diagnostic information 4985 Network Controller Programmer’s Guide...
  • Page 116: Table D-18 Type 2 - Data Request Record

    File Structure Records " Position Bytes Description Position Bytes Description Position Bytes Description Position Bytes Description 4985 Network Controller Programmer’s Guide Table D-18 Type 2 - Data Request Record Device channel ID: “1” HHC channel ID: “1” Record type = “2”...
  • Page 117 Device channel ID: “0” Channel ID: “1” Record type: “6” 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 File Structure Records "...
  • Page 118: Table D-23 Type 7 - Directive Status Record

    APPENDIX D File Structure Records " Position Bytes Description 4985 Network Controller Programmer’s Guide D-10 Table D-23 Type 7 - Directive Status Record Device channel ID: “0” Channel ID: “1” Record type: “7” Status type: “1” - “6”: “1” = File upload “2”...
  • Page 119: Table D-24 System Mode Parameters

    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 4096 Deactivate Request ON (ASYNC only) 8192 Cyclic Redundancy Check (CRC) ON. (ASYNC only) 4985 Network Controller Programmer’s Guide D-12 Table D-24 Description 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.
  • Page 121: Table D-25 Host Parameters

    1- to 3-digit numeric field specifying the characters that pad short blocks when a minimum block size is specified. -H[ready char] 1- to 3-digit field specifying the host “ready” directive. 4985 Network Controller Programmer’s Guide File Structure Records " D-13...
  • Page 122: Table D-26 Type 4 - Lan Parameters

    -I[read timeout] 30 -J[host-delay] -K[char-gap] -L[cts-gap] Activation Parameters Parameter -C[channels] -T[timeout] 4985 Network Controller Programmer’s Guide D-14 Table D-25 Host Parameters Default Description 2- or 3-digit numeric field specifying the maximum seconds the controller waits for a response from host. If no re-...
  • Page 123 An IBM defined, byte-controlled communications protocol, using control characters and synchronized transmission of binary coded data. " " " " " " " " " " 4985 Network Controller Programmer’s Guide Glossary " " " " " " " " Glossary-1...
  • Page 124 Clear To Send. A time delay inserted after a data HHC equipment re- quests to send data to allow the modem to turn carrier on and establish equalization and synchronization. Also known as RTS-CTS delay and turnaround delay. â NORAND Hand-Held Computer. 4985 Network Controller Programmer’s Guide Glossary-2...
  • Page 125 RS-485 interface for NO- RAND HHC LAN. Local Controller A controller which is directly connected to a host computer. A local controller uses either secondary ADCCP or ASYNC on its host port. 4985 Network Controller Programmer’s Guide GLOSSARY " Glossary-3...
  • Page 126 15-pin connectors labeled “B”, “C”, and “D” respectively on the back of the controller. Port “A” is attached to either the 15-pin RS-232 connector labeled “A” or to both of the two 9-pin RS-485 connec- 4985 Network Controller Programmer’s Guide Glossary-4...
  • Page 127 A remote controller uses second- ary ADCCP on its host port. Secondary ADCCP Protocol on host port of a remote 4980 or the 4985 Controller and com- municates to a Primary ADCCP remote port on another controller. 4985 Network Controller Programmer’s Guide GLOSSARY "...
  • Page 128 GLOSSARY " TCOM or Telecom Telecommunications. Terminal Circuit terminating device such as a HHC. NORAND 2-way TTY asynchronous data link protocol. 4985 Network Controller Programmer’s Guide Glossary-6...
  • Page 129 Default switch settings, 2-6, 3-5 Device channels, 2-9, 4-1 Diagnostic programs, 2-9 Equipment, general, 2-12 File structures, 4-1 Files NCDIR.NCC, 5-2 NETRPL.LST, 5-8 Getting started, 2-1 4980 connection to 4985, 2-2 4985 Network Controller Programmer’s Guide INDEX " " " " " "...
  • Page 130 4-25 system mode, 4-21 Peripherals APUs, 2-15 Layouts, host-to-controller, 4-2, D-1 modems, 2-16 Logical channels, 2-7 multidock, 2-14 4985 Network Controller Programmer’s Guide Index-2 power supply, 2-16 single dock, 2-13 Power supply, 2-16 system, 7-1 Pseudo-code programs download data, 6-5...

Table of Contents