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 14 of 38

PEN*KEY 6100 Computer Programmer's Reference Guide: Section 5: Communications and Device Support, pages 113 to 120

Pages 113 to 120 of 328, from PEN*KEY 6100 Computer Programmer's Reference Guide

The original document is the PDF (1.2 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.

Filed in the catalog under the Intermec 6110

Page 113

Communications and Device Support "

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

Introduction This section presents a variety of process and procedural topics that deal with many of the basic operational features of the PEN*KEYR 6100 Computer. InĆ cluded are topics such as cold booting, warm booting, the NORANDR Utilities, keyboards, and communications, as well as some information about Screen Emulation. Topic Summary Topic Communications Support Using INTERLNK and INTERSVR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . NORAND Utilities: PSROM0C.EXE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . TCOM Session Overview Example Control File for TTY Example Control File for NPCP Upload Control File Communications Log File Protocol Errors Serial Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Serial Ports Option Connector Serial Lid Installation IrDA Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6000 Series LAN Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Device Support 6100 Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Docks and Modems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Modem Device Driver: NORMOD.SYS Terminal to Dock Connector Pinouts Keyboard Definition and Redefinition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6100 Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Overview Using Expanded Memory on the 6100 Computer Upper Memory Provider: ELANUMP.SYS

Page 5-2 5-2 5-4 5-9 5-9 5-9 5-11 5-12 5-15 5-15 5-15 5-15 5-16 5-16 5-16 5-16 5-16 5-18 5-19 5-23 5-23 5-23 5-24

PEN*KEY R 6100 Computer Programmer’s Reference Guide

5-1

5. Communications and Device Support

Section 5

Page 114

5. Communications and Device Support

Communications and Device Support

SECTION 5

Communications Support Using INTERLNK and INTERSVR INTERLNK interconnects a PEN*KEY 6000 Series Computer and a PC through serial ports. INTERSVR is the INTERLNK server, a communication option in the NORAND Utilities program. For detailed information for installing INTERLNK, refer to the Development ReĆ sources paragraph in the Getting Started section. For more details of INĆ TERLNK and INTERSVR topics, refer to the DOS online help.

NORAND Utilities: PSROM0C.EXE The NORAND Utilities program, PSROM0C.EXE, provides the basic functions required to prepare the PEN*KEY 6000 Series Computer for use. Refer to the PEN*KEY Model 6100 Hand-Held Computer User's Guide (P/N: 961-028-085) 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*KEY 6000 SeĆ ries system.

System Setup Requirements To use PSROM0C.EXE, the file NRTCMERR.TBL must exist in the current working directory or in the PATH. When using PSROM0C.EXE Ver. 2.00 or later, if the application uses CardSoft device drivers to access PC Cards, it must reassign the drive letters A and B. For example: ASSIGN.COM A:=E: B:=F: NPCP

To use NPCP, you must load the program MININET.EXE. You can install this program by inserting the following statement into the CONFIG.SYS file: INSTALL=MININET.EXE or by placing the following statement into the ROMINIT.BAT or AUTOEXEC.BAT file: <path>\MININET.EXE Where: <path>\ is the drive letter and pathname where MININET.EXE is located. TTY

To use the TTY protocol, the NRTTYM.TBL file must exist in the current directory or in the Path. NRTTYM.TBL is the modem table. For information about creating a customized modem table, see the PSMDM0C, DOS HHC MODEM TABLES product, P/N: 215-968-001. If the application uses NORMOD.SYS or NGENMOD.SYS to support PC Card modems but uses different command line settings than the default Norand Utilities configuration, the command line for the driver must include where is the COM port number used by the driver.

5-2

PEN*KEY R 6100 Computer Programmer’s Reference Guide

Page 115

Communications and Device Support

NRInet Using PSROM0C Version 3.xx

To use the NRInet protocol version 3.xx, the PATH must include the directories of the following drivers: " LSL.COM " ODIPKT.COM " RS485ODI.COM Optionally, configure a DHCP server to provide IP information required by the computer, such as the IP addresses of the client, server, router and domain name servers. The NET.CFG and WATTCP.CFG files are overwritten by PSROM0C. Some computers support two network interfaces for NRInet: Ethernet and RS-485. The network interface is selected in a menu in Norand Utilities during the IPL sequence. This setting is stored on the RAM drive so it is lost any time the RAM drive is removed or formatted. For example, applications that boot from a PC Card often format the RAM drive before installing the application. In these cases, return to the Norand Utilities menu to reselect the setting in order for NRInet sessions to work correctly. NRInet Using PSROM0C Version 2.xx

To use the NRInet protocol, the PATH must include the directories of the following drivers, which are loaded and unloaded by PSROM0C.EXE: BOOTP.EXE DHCP.EXE ETHDRV.EXE INET.EXE LSL.COM ODIPKT.COM RS485ODI.COM

BOOTP.EXE and DHCP.EXE are required only if IP information is to be retrieved from a BOOTP server or a DHCP server as described below. PSROM0C.EXE executes BOOTP.EXE first. DHCP.EXE is executed only if BOOTP.EXE fails. The files NET.CFG and PCTCP.INI are required to load these drivers. NET.CFG must exist in the current working directory, and must include the following two lines, indented as shown: Link driver RS485ODI Frame Ethernet_II

PCTCP.INI must include: [pctcp ifcust 0] async-send = yes ip-address = nnn.nnn.nnn.nnn subnet-mask = nnn.nnn.nnn.nnn router = nnn.nnn.nnn.nnn [pctcp general] etc-dir = d:\tcp\etc domain = xxxxxxxx.com [pctcp addresses] domain-name-server = nnn.nnn.nnn.nnn [pctcp kernel] interface = ifcust 0

The field must specify a directory that contains a SERVICES file. A minimal SERVICES file exists in the flash at d:\tcp\etc. PEN*KEY R 6100 Computer Programmer’s Reference Guide

5-3

5. Communications and Device Support

SECTION 5

Page 116

5. Communications and Device Support

Communications and Device Support

SECTION 5

For NRInet, SERVICES must contain a protocol entry for with a protocol type of For example: nrinet 44965/tcp #Norand Inet File Transfer

The fields and are not required if the host is specified by IP address rather than domain name. Also, the fields that specify IP addresses (nnn.nnn.nnn.nnn) and the field can be omitted if BOOTP.EXE or DHCP.EXE loads the information from a BOOTP server or a DHCP server. Set the environment variable PCTCP to the path of PCTCP.INI. For example, in AUTOEXEC.BAT: SET PCTCP=C:\PCTCP.INI

Some computers support two network interfaces for NRInet: Ethernet and RS-485. The network interface is selected in a menu in Norand Utilities during the IPL sequence. This setting is stored on the RAM drive so it disappears any time the RAM drive is removed or formatted. For example, applications that boot from a PC Card often format the RAM drive before installing the application. In these cases, you must return to the Norand Utilities menu to reselect the setting in order for NRInet sessions to work correctly. When the RS-485 network interface is used on a computer with an Ethernet network interface, PSROM0C.EXE powers off the the Ethernet adapter. If the application uses the Ethernet adapter outside of PSROM0C.EXE, it is recommended to unload the Ethernet drivers before calling PSROM0C.EXE, then reload them afterwards.

TCOM Session Overview Under the NORAND standard file transfer session, the HHC 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 about the format used by the file. The HHC must first send a session control file, which identifies the HHC to the host computer. The HHC may then send a download request file. This optional file prepares the host computer to download one or more files to the HHC. Upload files can then be sent to the host. Session Control File

To identify itself to the host, the HHC sends the session control file at the beginning of a TCOM session. The applicationĆdependent HHC ID is used by the host to determine which files to downloading to the HHC. The format of the session control file is as follows: <DSCNTRL00001Xnnn>PPPPPPPPPPPPPPTTTTTTTTTTTTTTTTYYMMDDHHMMSS . . .

where: < = beginning of file header D = file type (fixed) SCNTRL = file name (fixed) 00001 = decimal number of records in file (fixed) X = data type (ignored by host) nnn = decimal number of bytes in file record > = end of file header PPPPPPPPPPPPPP = program identification TTTTTTTTTTTTTTTT = hand-held computer ID (determined by application) YYMMDD = date HHMMSS = time . . . = additional HHC information 5-4

PEN*KEY R 6100 Computer Programmer’s Reference Guide

Page 117

Communications and Device Support

The application determines the actual data in the session control file. The data fields shown in the preceding list represent a convention used in applications from Intermec Technologies Corporation. However, the session control header always consists of 18 bytes. Also, NORAND host communication packages usually expect to find the HHC ID starting in byte 33 of the data stream. Although, this location is configurable. Download Request File

An HHC may directly request specific files from the host. To do this, it sends a download request file to the host immediately after sending the session control file. The requested files are not downloaded at that moment, but rather after the line is 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 HHC. Only files requested in the download request file are downloaded. " NOTE:

The download request file must be the first or second file sent. Otherwise, it is not treated as a special file by the host.

The format of the download request file is as follows: <DDWNLRQnnnnnX016>[––filename1–––][––filename2–––] . . .

where: < = Beginning of file header D = File type (fixed) DWNLRQ = File name (fixed) nnnnn = Decimal number of records in file X = Data type (X for character) 016 = Decimal number of bytes in record (fixed) > = End of file header [––filename?–––] = Name of file to download, must be left-justified and blankpadded to 16 characters

You can include as many filename 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. Upload and Download Files

The general format of a file header is as follows: <tffffffmmmmmtnnntnnntnnn . . . > where: < = Beginning of file header t = File type ‘D’ for unpacked data ‘E’ for unpacked executable ‘P’ for packed data ‘B’ for packed executable ffffff = File name mmmmm = Decimal number of records in file, right-justified and zeropadded t = Field data type (described below) nnn = Unpacked length of field, right-justified and zero-padded > = End of file header . . . = Additional HHC information

PEN*KEY R 6100 Computer Programmer’s Reference Guide

5-5

5. Communications and Device Support

SECTION 5

Page 118

5. Communications and Device Support

Communications and Device Support

SECTION 5

The actual file name created on the handheld has or appended to the ffffff file name. File types `D' and `P' have extensions. File types `E' and `B' have appended to the name. Valid field data types are: Type C data type Comments B unsigned char Field length in the file header can be 001 to 003. Valid field values are 0ć255. D signed long Field length in the file header can be 001 to 011. Valid field values are ć2147483647 to 2147483647. `+' is not uploaded for positive values. Leading zeroes are uploaded if necessary to meet the specified field length. I signed int Field length in the file header can be 001 to 006. Valid field values are ć32767 to 32767. `+' is not uploaded for positive values. Leading zeroes are uploaded if necessary to meet the specified field length. N N/A Field type is specific to the PL/N programming language from Intermec Technologies Corporation. See the PL/N Reference Manuals for more information. S char[ ] Specifies a NULL terminated string. Field length does not include the NULL, as the NULL is not included in the unpacked file. The NULL is inserted when the field is written to the HHC file. W N/A Specific to the PL/N programming language from Intermec Technologies Corporation. For further information, see the PL/N Reference Manuals. This type is equivalent to an unsigned integer in field size, but is packed in the opposite byte order. X char[ ] Specifies a character buffer that does not have a NULL terminator. ( N/A Marks the beginning of a repeated field descripter sequence. The field length is the number of repetitions of the sequence. For example, the sequence: B002X004B002X004 can be written as: (002B002X004)000 marks the beginning of a pattern repeating twice. marks its end. ) N/A Marks the end of a repeated sequence begun with a descripter. Field length is the number of repetitions of the sequence. For example, the sequence: B002X004B002X004 can be written as: (002B002X004)000 marks the beginning of a pattern repeating twice. marks its end.

In the NORAND Host Communication packages, a record length of one indicates that the file contains variable length records, where the first character of each record identifies the type of record. These single character record types are used by the formatting utilities of the communications packages 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 is defined: <DDOSFIL00001Xmmm>F[––dosfilename––] S[filesize]data. . . < = beginning of file header D = file type (fixed) DOSFIL = file name (fixed) 00001 = fixed X = data type (fixed) mmm = 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 file name (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 binary file (this parameter may be up to 8 digits long) data. . . = the binary file starts immediately after filesize parameter . . . = additional hand-held computer information 5-6

PEN*KEY R 6100 Computer Programmer’s Reference Guide

Page 119

Communications and Device Support

For example, to send a file to be named \DATA\DATAFILE.DAT that has 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 PEN*KEY 6000 Series application program to enĆ sure that the file name specified is unique on the host. This could be accomĆ plished by incorporating the handĆheld computer ID as part of the file name or path name: <DDOSFIL00001X027>F\DATA\DATA0001.DAT S102000 <DDOSFIL00001X031>F\HH000001\DATAFILE.DAT S102000 Usage

To use PSROM0C.EXE, use the following syntax on the command line: PSROM0C.EXE ctl–file where ctl-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 from PSROM0C.EXE is a session status code. Values for this code are described in the Communications Log File paragraph, page 5-11. COM= Valid only if twoĆway TTY protocol is specified. It indicates the COM port to use for twoĆway TTY communications. Any value can be supplied; valid values are determined by the application (such as the DOS power management driver) that utilizes this parameter. (Example: COM=4) Default value: 1 (COM1) CONFIG= This is a modem command string to configure a HayesĆcompatible modem. (Example: CONFIG=ATE0V0Q0X4&C1&D2&M0&RS0=0) DATABITS= Valid only if twoĆway TTY protocol was specified. (Example: DATABITS=7) Valid values: 7, 8 IPCLIENT= Supported in PSROM0C V3.xx only. This is the IP address of the client computĆ er. If this parameter is specified, the NETMASK parameter is also required. If this parameter is omitted, PSROM0C attempts to retrieve IP information from a DHCP server or a BOOTP server. IPHOST= This is the IP address or domain name of the Ethernet host. The value can be at most 18 characters long. If this parameter specifies a domain name, the IPCLIENT parameter must be omitted because DHCP information about domain name servers is required to resolve the host name. For PSROM0C V3.xx, if IPHOST and IPCLIENT are both omitted, the host name is retrieved from DHCP if available. Otherwise, this parameter defaults to

PEN*KEY R 6100 Computer Programmer’s Reference Guide

5-7

5. Communications and Device Support

SECTION 5

Page 120

5. Communications and Device Support

Communications and Device Support

SECTION 5

MODEMSELECT= Valid only if twoĆway TTY protocol was specified. This is the modem ID of of a record in the modem table file NRTTYM.TBL. If this parameter is specified, the COM= and CONFIG= parameters may be omitted. The parameters MODEMSELECT= and MODEMTYPE= are mutually exclusive; therefore only one may be specified in a control file. (Example: MODEMSELECT=30) MODEMTYPE= Valid only if twoĆway TTY protocol was specified. It indicates the type of modem, if any, to which the handĆheld computer is connected. The parameters MODEMSELECT= and MODEMTYPE= are mutually exclusive; therefore only one may be specified in a control file. (Example: MODEMTYPE=1) Valid Values: 0 = No modem, i.e. direct connect (default) 1 = NORAND modem, or other HayesĆcompatible modem NETMASK= Supported in PSROM0C V3.xx only. This is the local subnet mask and is required if IPLCIENT is specified. (ExamĆ ple: NETMASK=255.255.240.0) NPCPHOST= NPCP host name. Valid values: NORAND_HOST NORAND_SERVER PARITY= Valid only if twoĆway TTY protocol was specified. (Example: PARITY=2) Valid values: 0 = none (default) 1 = odd 2 = even PHONE= Dials a HayesĆcompatible modem. This value can be at most 20 characters long. (Example: PHONE=ATDT3693361) PROTOCOL= Indicates the protocol to be used. (Example: PROTOCOL=3) " " "

3 = TTY 4 = NPCP (LAN) 14 = NRInet

ROUTER= Supported in PSROM0C V3.xx only. This is the router IP address. SPEED= Indicates the TCOM speed for twoĆway TTY. This parameter should be omitted if NPCP protocol is specified. (Example: SPEED=2400) Valid values: 1200, 2400, 9600, 19200, 38400, 57600, or 115200. 5-8

PEN*KEY R 6100 Computer Programmer’s Reference Guide