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 11 of 28

PEN*KEY 6400 Computer Programmer's Reference Guide: Section 4: Communications and Device Support, pages 79 to 86

Pages 79 to 86 of 234, from PEN*KEY 6400 Computer Programmer's Reference Guide

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

For the Intermec 6400

Page 79

Section 4

Communications and Device Support "

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

Introduction This section presents some basic communication methods and device support for the PEN*KEY â 6400 Computer. Topic Summary Topic

Page

Communications Communications Using INTERLNK and INTERSVR . . . . . NORAND Utilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Serial Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . LAN Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Devices 6400 Keyboard Definition and Redefinition . . . . . . . . . . . . . . Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Video Modes Backlight Control Contrast Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Display Annunciators Viewport . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Fonts, Rows, and Columns . . . . . . . . . . . . . . . . . . . . . . . . . . . . Using APIs for the Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Upper Memory Provider: . . . . . . . . . . . . . ELANUMP.SYS . Battery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Beeper . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

4-2 4-2 4-11 4-12 4-12 4-18

4-19 4-20 4-22 4-24 4-26 4-26 4-28 4-32

The following list may be of further assistance in locating topics of interest. List of Figures and Tables Figure/Table Table 4-1 TTY Protocol Errors . . . . . . . . . . . . . . . . . . . . . . . . . . Table 4-2 NPCP Protocol Errors . . . . . . . . . . . . . . . . . . . . . . . . . Figure 4-1 9-Pin D-Sub Connector Pinouts . . . . . . . . . . . . . . . . Table 4-3 9-pin D-Sub Connector Pinout . . . . . . . . . . . . . . . . . Figure 4-2 41-Key Keyboard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Figure 4-3 51-Key Keyboard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Table 4-4 INT 10h Display Services . . . . . . . . . . . . . . . . . . . . . . Table 4-5 Low Battery Indications . . . . . . . . . . . . . . . . . . . . . . . Table 4-6 Charging Indications . . . . . . . . . . . . . . . . . . . . . . . . . . Table 4-7 Battery Charger LED Error Codes . . . . . . . . . . . . .

Page 4-10 4-10 4-11 4-11 4-13 4-14 4-24 4-29 4-29 4-30

PEN*KEYR 6400 Programmer’s Reference Guide

4-1

Page 80

SECTION 4

Communications and Device Support

Communications Using INTERLNK and INTERSVR INTERLNK interconnects two computers through serial ports. INTERSVR is the INTERLNK server, a communication option in the NORAND Utilities program. For information to install INTERLNK, refer to the Development Resources paragraph in the Getting Started section. For details of INTERLNK and INTERSVR topics, refer to the DOS on-line help text.

NORAND Utilities: 64UTILS.EXE The NORAND Utilities program, 64UTILS.EXE, provides the basic functions required to prepare the 6400 Computer for use. Refer to the 6400 User ’s Guide for detailed information on the use of NORAND Utilities. The following paragraphs provide information relating to the incorporation of communications facilities of the NORAND Utilities into the PEN*KEYR 6000 Series system.

Required System Files (NPCP) To use the NPCP protocol, you must load the program MININET.EXE. You can install the MININET TSR by inserting the following statement into the CONFIG.SYS file: install=mininet.exe

–c1 –t1152 –s1152 or by placing the following statement into the AUTOEXEC.BAT file: mininet.exe –c1 –t1152 –s1152

Telecommunications Session Overview (NPCP and TTY) Under the NORAND Standard File Transfer Session, the computer always uploads first. Once all upload files are sent, the line is turned around and the host then sends any download files. Each file is preceded by a header record that gives the receiving computer information on the format that the file uses. The computer must first send a session control file, which identifies the computer to the host computer. The computer may then send a download request file. This optional file prepares the host computer to download one or more files to the computer. Upload files can then be sent to the host.

4-2

PEN*KEYR 6400 Programmer’s Reference Guide

Page 81

SECTION 4

Communications and Device Support

Session Control File To identify itself to the host, the computer sends the session control file at the beginning of a telecommunications session. The host uses the application-dependent computer ID to identify the proper files for downloading to the computer. The format of the session control file is as follows: <DSCNTRL00001Xnnn>PPPPPPPPPPPPPPTTTTTTTTTTTTTTTTYYMMDDHHMMSS . . . < D SCNTRL 00001 X nnn > PPPPPPPPPPPPPP TTTTTTTTTTTTTTTT YYMMDD HHMMSS . . .

beginning of file header file type (fixed) file name (fixed) decimal number of records in file (fixed) data type (ignored by host) decimal number of bytes in file record end of file header program identification HHC-ID (determined by application) date time additional computer information

The application determines the actual data in the session control file. The data fields shown in the preceding list are simply a convention in NORAND applications. However, the session control header will always consist of 18 bytes. Further, NORAND Host Communication Packages usually expect to find the HHC-ID starting in byte 33 of the data stream; this location is configurable, however.

Download Request File A computer may directly request specific files from the host. To do this, it sends a download request file to the host just after sending the session control file. The files are not downloaded at that moment, but rather after the line has been turned around. If a download request file is sent, the host does not use the HHC-ID in the session control file to determine which files to download to the computer. " NOTE:

Only files requested in the download request file are downloaded.

The following is the format of the download request file: <DDWNLRQnnnnnX016>[––filename1–––][––filename2–––] . . . < D DWNLRQ nnnnn X 016 > [––filename?–––] beginning of file header file type (fixed) file name (fixed) decimal number of records in file data type (X for character) decimal number of bytes in record (fixed) end of file header name of file to download, must be left-justified and blank padded to 16 characters.

You can include as many file name records as are specified in the number of records field of the header. This permits requests for more than one file to be batched together. PEN*KEYR 6400 Programmer’s Reference Guide

4-3

Page 82

SECTION 4

Communications and Device Support

Keep in mind that while the download request file is sent to the host right after the session control file, files are not downloaded until after the line has been turned around.

Upload and Download Files While the NORAND file transfer protocol supports a number of data types and file types, many of these are specific to the NORAND PL/N Language. If more information is needed on PL/N file formats, refer to Writing TCOM Modules in PL/N for the Computer, or your host telecommunications manual. For the sake of simplicity, DOS programmers can use one basic file header for all upload and download files. The following is the format of a typical file: <DffffffmmmmmXnnn>data . . . < D ffffff mmmmm X nnn >

Beginning of file header File type Filename Decimal number of records in file, Right-justified and zero-padded Data type (X for character) Record length, right-justified and Zero-padded End of file header

In NORAND Host Communication Packages, a record length of one indicates that the file contains variable length records, in which the first character of each record identifies the type of record. The formatting utilities of the communications packages use these single-character record types to format the file into logical records.

PL/N File Descriptor for Binary Files For the support of full DOS file names and for better support of non-PL/N binary files, an expanded header structure has been defined: <DDOSFIL00001Xmmm>F[––dosfilename––] S[filesize]data . . . < D DOSFIL 00001 X mmm

Beginning of file header File type (fixed) Filename (fixed) Fixed Data type (fixed) Decimal number of bytes of file information between end of file header and start of file > End of file header F F indicates the file name parameter [––dosfilename––] Complete DOS filename (this parameter may be of any length) <space> A space must separate the parameters S S indicates the file size parameter [filesize] The exact number of bytes in the binary file (this parameter may be up to 8 digits long) data . . . The binary file starts immediately after the filesize parameter. 4-4

PEN*KEYR 6400 Programmer’s Reference Guide

Page 83

SECTION 4

Communications and Device Support

For example, to send a file named \DATA\DATAFILE.DAT with a size of 102,000 bytes, the following header would precede the file: <DDOSFIL00001X027>F\DATA\DATAFILE.DAT S102000

It is the responsibility of the 6400 Application Program to ensure that the filename specified is unique on the host. This could be accomplished by incorporating the computer ID as part of the filename or path name: <DDOSFIL00001X027>F\DATA\DATA0001.DAT S102000 <DDOSFIL00001X031>F\HH000001\DATAFILE.DAT S102000

Usage To use 64UTILS.EXE, use the following syntax on the command line: 64UTILS.EXE <ctrl-file> where <ctrl-file> is the name of a text file containing parameters that control the telecommunications session. Valid parameters are described in the following paragraphs. Parameters that are not applicable may be omitted. The return value of 64UTILS.EXE is a session status code. Values for this code are described later under “Communication Log File”. PROTOCOL= This parameter indicates the protocol to be used: 3 = TTY 4 = NPCP (LAN) Example: PROTOCOL=3 COM= This parameter is valid only if two-way TTY protocol is specified. It indicates the COM port to use for two-way TTY communications. Valid values are 1–3 1 = COM1, 2 = COM2, 3=COM3 Default value is 1 Example: COM=3 SPEED= This parameter indicates the TCOM speed for two-way TTY. This parameter should be omitted if NPCP protocol is specified. Valid values are: 1200, 2400, 4800, or 9600 Example: SPEED=2400 PARITY= This parameter is valid only if two-way TTY protocol was specified. Valid values are: 0, 1, 2 0 = None (default) 1 = Odd 2 = Even Example: PARITY=2 PEN*KEYR 6400 Programmer’s Reference Guide

4-5

Page 84

Communications and Device Support

SECTION 4

DATABITS= This parameter is valid only if two-way TTY protocol was specified. Valid values are 7, 8 Example: DATABITS=7 STOPBITS= This parameter is valid only if two-way TTY protocol was specified. Valid values are: 1–3 1 = One stop bit 2 = Two stop bits 3 = 1 1/2 stop bits Example: STOPBITS=1 MODEMTYPE= This parameter is valid only if two-way TTY protocol was specified. It indicates the type of modem, if any, to which the computer is connected. Valid values are: 0,1 0 = No modem, such as direct connect (default) 1 = NORAND Modem, or other Hayes-compatible modem Example: MODEMTYPE=1 CONFIG= This is a modem command string to configure a Hayes-compatible modem. It does not need to be specified if you are using a NORAND Modem. If omitted, a standard configuration string is sent to the modem, based on the modem type and telecommunications speed. Example: CONFIG=ATE0V0Q0X4&C1&D2&M0&RS0=0 PHONE= This modem command string dials a Hayes-compatible modem. Example: PHONE=ATDT3693361 TRIES= This parameter specifies the number of times to attempt a successful communication session. If TRIES is exhausted before a session is successful, 64UTILS.EXE returns the error of the last session. A parameter value of zero indicates that the retry is to continue until a session is successful or the user aborts. Example Control File for TTY: PROTOCOL=3 COM=1 SPEED=9600 PARITY=0 DATABITS=8 STOPBITS=1 Example Control File for NPCP: PROTOCOL=4 4-6

PEN*KEYR 6400 Programmer’s Reference Guide

Page 85

SECTION 4

Communications and Device Support

Upload Control File Information about files to be transferred must be contained in a file named NRUPLD.CTL. Valid parameters for this file are described in the following paragraphs. HEADER= This file header record precedes the files subsequently specified in FILE parameters. This header record provides the host information on data formatting. If the header parameter is omitted or blank, the files subsequently specified is transferred as is; that is, no header precedes the file. Any header information is assumed to be embedded in the file itself. When you specify the binary file descriptor (DOSFIL), you do not need to completely specify the header. If the size is not specified or is zero, the entire file is uploaded, and the actual size is inserted into the header that is uploaded to the host. If the filename is not specified, the filename specified in the FILE parameter is inserted into the header that is uploaded to the host. Example: HEADER=<DSCNTRL00001X042> HEADER=<DBYPRD 00000X040> HEADER=<DBYTRXN00000X001> HEADER=<DDOSFIL00001X027>F\DATA\DATAFILE.DAT S102000 HEADER=<DDOSFIL00001X024>F\RT000001\BINFILE.DAT S HEADER=<DDOSFIL00001X000> HEADER= RECTYPE= RECTYPE and FORMAT parameters upload files that contain variable-length records, in which the first character of each record identifies the type of record. RECTYPE and FORMAT parameters remain in effect only until the next HEADER parameter is encountered. RECTYPE is a single, printable ASCII character; it indicates the record type to which the following FORMAT applies. Example: RECTYPE=A FORMAT= This parameter defines the format of variable-length records whose record types match the preceding RECTYPE parameter. The format of a record consists of the data type and length of each field within the record, specified as follows: FORMAT=tnnntnnn . . .

where: t = data type nnn = field length, right-justified and zero-padded Although the NORAND File Transfer Protocol supports a number of data types, many of these are specific to the NORAND PL/N Language. For the sake of simplicity, just specify a data type of X (for character) and the record length, which does not include the record type character. If you need more information on PL/N file formats, refer to Writing TCOM Modules in PL/N for the Computer, or refer to the host telecommunications manual. PEN*KEYR 6400 Programmer’s Reference Guide

4-7

Page 86

Communications and Device Support

SECTION 4

Example: FORMAT=X020 FORMAT=N012X016N004

FILE= This is the name of an upload file. Files are uploaded according to the preceding header or target information. Multiple FILE parameters may follow a single HEADER or parameter, if the header or target applies to all the specified files. Example: FILE=BYPRD.DAT

Minimum NRUPLD.CTL At a minimum, the NRUPLD.CTL file must specify a session control file, as described earlier. Example: HEADER=<DSCNTRL00001X042> FILE=SCNTRL.DAT The file SCNTRL.DAT would contain the session control data of the form PPPPPPPPPPPPPPTTTTTTTTTTTTTTTTYYMMDDHHMMSS as described earlier under Session Control File. This file could have any name. SCNTRL.DAT is used just as an example.

Example NRUPLD.CTL HEADER=<DSCNTRl00001X042> FILE=SCNTRL.DAT HEADER=<DBYPRD 00000X040> FILE=BYPRD.DAT HEADER=<DBYTRXN00000X001> RECTYPE=A FORMAT=N004N005 RECTYPE=B FORMAT=X010 RECTYPE=C FORMAT=N004X005 FILE=BYTR00.DAT FILE=BYTR01.DAT file=bytr02.dat FILE=BYTR03.DAT HEADER=<DDOSFIL00001X010>FIMAGE.PCX FILE=IMAGE.PCX HEADER=<DDOSFIL00001X020>F\RT00001\COMMON.DAT FILE=COMMON.DAT HEADER=<DDOSFIL00001X000> FILE=MYFILE.DAT

4-8

PEN*KEYR 6400 Programmer’s Reference Guide