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 6 of 7

6220 Hand-Held Computer Technical Reference, pages 51 to 60

Pages 51 to 60 of 70

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

For the Intermec 6220

Page 51

SECTION 5

Communications

Upload Control File Parameters Information about files to be transferred must be contained in a NRUPLD.CTL file. Valid parameters for this file are described in the following paragraphs. FILE=

Name of upload file, uploaded according to the preceding header information. Multiple FILE parameters may follow a single HEADER parameter, if the header applies to all the specified files. (Example: FILE=BYPRD.DAT)

FORMAT=

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 . . . The field length is rightĆjustified and zeroĆpadded. Although the Norand file transfer protocol supports a number of data types, many of these are specific to the PL/N language from Intermec Technologies Corporation. 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, see the host TCOM manual. Example: FORMAT=X020 FORMAT=N012X016N004

HEADER=

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 are transferred as is; that is, no header precedes the file. Any header informaĆ tion is assumed to be embedded in the file itself. When the binary file descriptor (DOSFIL) is specified, a complete specification of the header is not needed. If the size is not specified or is zero, the entire file is uploaded, and the actual size is inserted into the header uploaded to the host. If the file name is not specified, the FILE parameter file name is inserted into the header uploaded to the host. (Example: HEADER=<DBYPRD 00000x040>

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. These parameters remain in effect only until the next HEADER parameter is encountered. (Example: RECTYPE=A) RECTYPE is a single, printable ASCII character; it indicates the record type to which the following FORMAT applies.

" NOTE: EXAMPLE:

At a minimum, the NRUPLD.CTL file must specify a session control file or a download request file. For a description of these files, see page 5-12. 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

6220 Hand-Held Computer Technical Reference

5-7

Page 52

Communications

SECTION 5

FILE=BYTR03.DAT HEADER=<DDOSFIL00001X010>FIMAGE.PCX FILE=IMAGE.PCX HEADER=<DDOSFIL00001X020>F\RT00001\COMMON.DAT FILE=COMMON.DAT HEADER=<DDOSFIL00001X000> FILE=MYFILE.DAT

Communications Log File A log of the communications is output to a text file named NRTLOG.DAT. InforĆ mation is continually appended to the file until it is deleted. It is not cleared by PSROM0C.EXE. Your application is responsible for deleting NRTLOG.DAT. The format and syntax are described in the following paragraphs. BEGS=nnnn

Indicates start of TCOM session. equals the session number (currently always 1). EXAMPLE: BEGS=1

DOWN=d:\pathname\filename.nnn Indicates that a file download was attempted. is the error code. Zero is a valid value that indicates a successful download. EXAMPLE: DOWN=C:\CUST.DAT,23 ENDS=x,m,nnn Indicates the end of a TCOM session. is the session status (a single character code), is the stage of the communications session, and is the protocol error code. The code is also the return value of PSROM0C.EXE. The following table shows the valid values for (x). Code

Meaning Good session. Unexpected end of transmission. An incorrect file header was encountered. A file error was encountered. Communication aborted before first file header

The following table shows the valid values for (m). Value 5 4 3 2 1 0

Meaning SignĆon started. Data send started. TurnĆaround started. Data receive started. SignĆoff started. Session complete.

See the following Protocol Errors for valid values for (nnn). UP=d:\pathname\filename,nnn Indicates that a file upload was attempted where: nnn = Error code. (Example: UP=C:BYTRXN.DAT,0) Valid values: 0 indicates a successful upload.

5-8

6220 Hand-Held Computer Technical Reference

Page 53

SECTION 5

Communications

Protocol Errors With PSROM0C.EXE returning the session status code, the Communications Log file can be interrogated for a specific protocol error. The valid Protocol error codes for (n), as in the End of TCOM Session parameter are listed. Table 5-1 NPCP Protocol Errors Error # 0 1 6 11

Meaning No error. MININET.EXE is not installed. User aborted communications by pressing EXIT. An invalid parameter was specified in the control file.

The following errors are returned by MININET.EXE. 100 is added to the error returned by MININET.EXE to avoid conflict with other defined errors. Table 5-2 MININET Protocol Errors Error # 101 103 105 106 108 109 110 111 113 114 115 117 118 119 120 121 122 123 124 125 126 133 134 135 136 138 164ć179 180ć354

Meaning Illegal buffer length Invalid command Command timed out Message incomplete Illegal local session number No resource available Session closed Command canceled Duplicate name in local name table Name table is full Name is deregistered, command completed Local session table full Session open rejected Invalid name number No answer Name not found Name in use on remote adapter Name deleted Session ended abnormally Name conflict Incompatible remote device Network interface is busy Too many commands outstanding Invalid LAN adapter number Command completed while cancel occurring Command not valid to cancel Unusual network condition Adapter malfunction 6220 Hand-Held Computer Technical Reference

5-9

Page 54

Communications

SECTION 5

Table 5-3 NRInet Protocol Errors Error # 0 1 6 11 800

801

802 803

804 806 807 808 809 810 811 812 813 814 815 816 817 818 935 939 940 948 5-10

Meaning No error. PSROBOC.EXE could not be loaded. Ensure the directory for PSROB0C.EXE is in the PATH. User aborted communications by pressing [NO]. An invalid parameter was specified in the control file. TCP/IP kernel could not be loaded. Possible causes for this are: ♦ (PSROM0C V2.XX only) NET.CFG or PCTCP.INI does not exist. ♦ (PSROM0C V2.XX only) The PCTCP environment variable is not set. ♦ The PATH does not include the directories of the drivers. ♦ The computer does not have an Ethernet ID or the Ethernet ID could not be accessed. ♦ (PSROM0C V3.XX only) Invalid client IP address. Verify the IPCLIENT parameter, or make sure the DHCP or BOOTP server is running. Invalid client IP address. For PSROM0C V2.XX, verify the entry for `ipĆaddress' in PCTCP.INI, or ensure the DHCP or BOOTP server is running. For PSROM0C V3.XX, verify the IPCLIENT parameter, or ensure the DHCP or BOOTP server is running. (PSROM0C V2.XX only) Invalid Service or Service Type, or invalid port number. Verify the `etcĆdir' entry in PCTCP.INI specifies the correct path for the SERVICES file, and that an entry exists for `nrinet.' Invalid host name or IP Address. Ensure the host computer is running. For PSROM0C V2.XX only, verify the IPHOST parameter and the entries for `subnetĆmask,' `router,' `domain,' and `domainĆnameĆserver' in PCTCP.INI. For PSROM0C V3.XX, verify the IPHOST, NETMASK, and ROUTER parameters. (PSROM0C V2.XX only) Could not create socket. Check all cables and network connections. Block sent was incomplete, or block received was incomplete. Client/server negotiation failed. Server specified an unsupported block size. Invalid buffer pointer. All server connections are already in use. Try again later. Timeout while sending data. Connection to remote machine dropped. Ensure host is still running; check all cables and network connections. Timeout while receiving data. Connection to remote machine dropped. Ensure host is still running; check all cables and network connections. (PSROM0C V2.XX only) Attempt to send data to the server failed due to a closed connection. Ensure server is still running, and check all cables and network connections. Attempt to receive data from the server failed due to a closed connection. Ensure server is still running, check all cables and network connections. Could not access the network attach information. Ensure the Access Point, such as 6710, is connected and running. An error occurred reading the network attach information. Ensure the Access Point, such as 6710, is connected and running. Server did not respond to the connect request. Ensure the server is still running, and check all cables and network connections. An error occurred reading the TCP/IP kernel information. Client/server negotiation failed. Destination address required. Message too long. Address already in use.

6220 Hand-Held Computer Technical Reference

Page 55

SECTION 5

Communications

Table 5-3 (Continued) NRInet Protocol Errors Error # 950 951 952 954 955 960 961 962 963 964 965 966

Meaning Network is down. Network is unreachable. Network dropped connection or reset. Connection reset by peer. No buffer space available. Connection timed out. Connection refused. Too many levels of symbolic links. File name is too long. Host is down. Host is unreachable. Directory not empty.

Table 5-4 TTY Protocol Errors Error # 0 6 11 23 101 102 103 104 105 106 107 108 109 2xx

Meaning No error. User aborted communications by pressing EXIT. An invalid parameter was specified in the control file. End of transmission. Line lost. Parity error. Character gap too long. Data loss. Excessive NAKs. Block count error. Block check error. Block framing error. Control character error. Modem error. xx is Hayes response code or programĆdefined code: 03 No carrier. 04 Command not recognized. 06 No dial tone. 07 Dialed number is busy. 08 No answer. 86 Error sending command to modem. 87 Expected numeric response was not numeric. 88 Invalid response format. 89 No significant response from modem. 97 System disabled COM port Ċ low battery, PC Card modem removed. 98 Unrecognized English response. 99 Memory allocation error. 6220 Hand-Held Computer Technical Reference

5-11

Page 56

Communications

SECTION 5

TCOM Session Under the Norand standard file transfer session, the handĆheld 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 used by that file. The handĆheld computer must first send a session control file, which identifies the handĆheld computer to the host computer. The handĆheld computer may then send a download request file. This prepares the host computer to download files to the handĆheld computer. Upload files can then be sent to the host.

Session Control File To identify itself to the host, the handĆheld computer sends the session control file at the beginning of a TCOM session. The host uses the applicationĆdepenĆ dent terminal identification to identify the proper files for downloading to the handĆheld computer. The format of the session control file is as follows: <DSCNTRL00001Xnnn>PPPPPPPPPPPPPPTTTTTTTTTTTTTTTTYYMMDDHHMMSS . . . < = 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 = Terminal identification (determined by application) YYMMDD = Date HHMMSS = Time . . . = Additional hand-held 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 always consists of 18 bytes. Further, NoĆ rand host communication packages usually expect to find the terminal identificaĆ tion starting in byte 33 of the data stream; this location is configurable, however.

Download Request File A 6220 Computer may directly request specific files from the host by sending a download request file to the host just after sending the session control file. The files are downloaded after the line has been turned around. If a download reĆ quest file is sent, the host does not use the terminal identification in the session control file to determine which files to download to the computer. Include as many filename records as specified in the number of records field of the header. This permits requests for more than one file to be batched together. " 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. <DDWNLRQnnnnnX016>[––filename1–––][––filename2–––]. . . < = 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?–––] = File to download, left-justified, blank-padded to 16 characters

5-12

6220 Hand-Held Computer Technical Reference

Page 57

SECTION 5

Communications

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 informaĆ tion is needed on PL/N file formats, see the host TCOM manual. For the sake of simplicity, DOS programmers can use one basic file header for all upload and download files. The general format of a file header is as follows: <tffffffmmmmmtnnntnnntnnn>data ... < = 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 zero-padded t = Field data type (described below) nnn = Unpacked length of the field, right-justified and zero-padded > = End of file header . . . = Additional hand-held computer information

The actual name of the file that is created on the handĆheld computer has or appended to the ffffff file name. File types and have extensions. File types and have appended to the name. Valid field data types are as follows: Type

C Data Type

Comments

X char[ ]

Specifies a character buffer that does not have a NULL terminator.

B unsigned char File header field length can be 001 to 003. Valid field values are 0 to 255.

I signed int

File header field length 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.

D signed long

File header field length can be 001 to 011. Valid field values are ć2147483647 to 2147483647. is not uploaded for positive values. Leading zeros are uploaded if necessary to meet the specified field length.

S char[ ]

Specifies a NULL terminated string. The 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 handĆheld computer file.

N not applicable

Specific to the Norand PL/N programming language. For further information, see the PL/N Reference Manuals.

W not applicable

Specific to the Norand PL/N programming language. 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.

(

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 Norand host communication packages, a record length of one indicates the file contains variable length records, with the first character of each record identifyĆ ing the record type. These single character record types are used by the formatĆ ting utilities to format the file into logical records. 6220 Hand-Held Computer Technical Reference

5-13

Page 58

Communications

SECTION 5

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 EOF header and start of file > = End of file (EOF) header F = File name parameter [––dosfilename––] = Complete DOS file name (may be of any length) <space> = Separates the parameters S = File size parameter [filesize] = Exact number of bytes in binary file (may be up to eight digits long) data. . . = Binary file starts immediately after filesize parameter . . . = Additional hand-held computer information

For example, to send a file 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 6000 Series Application Program to ensure that the file name specified is unique on the host. This can be done by including 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

5-14

6220 Hand-Held Computer Technical Reference

Page 59

Glossary "

"

"

1/0 Key

10BaseT

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

Power suspend/resume switch Ċ suspends or resumes operations on most handĆheld computers. An adaptation of the Ethernet (IEEE 802.3) standard for LANs. The 10BaseT standard (also called Twisted Pair Ethernet) uses a twistedĆpair cable with maximum lengths of 100 meters and uses baseband transmission methods.

APM (Advanced Power Management)

The APM BIOS manages CPU/core logic, display, and backlight power in the background, based on device activity. It consists of one or more layers of software. The APM BIOS resides at the lowest layer, providing portability at the higher layers of the APM system, supplying a software interface to the hardware.

ATA Card

A creditĆcardĆsized device, which has been specially designed to meet the needs of small computers, and can be inserted and removed from a PC Card slot. In the PEN*KEY products, it is generally a flash storage card, modem, radio, etc. (See also: Flash Card, SanDisk, Spinning Media, or Hardcard)

CMOS (Complementary Metal Oxide Semiconductor)

1. Usually refers to the system configuration and realĆtime clock information, which is often stored in CMOS memory. 2. The construction method for a type of lowĆpower computer chip.

CTS (Clear To Send)

A time delay inserted after a data terminal RTS to allow a modem to turn carrier on and establish equalization and synchronization; also known as RTS-CTS delay and turnaround delay.

DMA (Direct Memory Address)

A technique for transferring data from main memory to a device without passing it through the CPU. Computers that have DMA channels can transfer data to and from devices much more quickly than computers without a DMA channel can. This is useful for making quick backups and for realĆtime applications.

DRAM (Dynamic Random Access Memory)

A type of physical memory used in most desktop and portable computers, including handĆheld computers. indicates that the memory is volatile and must be constantly refreshed (reenergized) with a battery or some other power source or it will lose its contents.

Flash

A technology for nonvolatile memory storage. A special type of EEPROM that can be erased and reprogrammed. 6220 Hand-Held Computer Technical Reference

Glossary-1

Page 60

GLOSSARY

Flash Card

GND (Ground)

Host

A memory storage PC Card that meets the ATA standard. (See also: ATA Card, SanDisk, Spinning Media, or Hardcard) The common pin on the communications connectors, provided for electrical return path for the signals. A customer's host computer. A computer that provides services directly to users, such as the user's computer. In TCP/IP, an IP addressed device. A large computer that serves many users, such as a minicomputer or mainframe.

IFL Card (Initial Flash Load)

An SRAM card that installs the flash contents on most PEN*KEY systems.

IOCTL (I/O Control)

UNIX function call used to control a device.

IP Address

An IP defined 32Ćbit address usually in dotted decimal notation. See also: dot address, IP, network address, subnet address, host address.

IRQ (Interrupt Request)

A method involving a set of special address lines in PCs, connecting peripherals (such as a serial port or network adapter) to the processor and other computer architectures so the peripherals can request service from the processor.

LAN (Local Area Network)

A group of network devices in which each device can communicate through a wired or wireless link. The wired link may have several segments joined by repeaters and bridges. The LAN is characterized by the relatively short distance it is designed to cover, a high speed of operation, and relatively low error rates. The geographic scope of LANs is limited to thousands of feet or closelyĆspaced building complexes.

Landscape Mode

In terms of the display, it has an orientation such that the information displayed on the screen is viewed by rotating the image ninety degrees clockwise, resulting in a wide display.

NetBIOS (Network Basic Input/Output System)

An application programming interface (API) that augments the DOS BIOS by adding special functions for local area networks (LANs). Almost all LANs for PCs are based on the NetBIOS. Some LAN manufacturers have even extended it, adding additional network capabilities. NetBIOS relies on a message format called Server Message Book (SMB).

Norand Utilities

A program that provides the basic functions needed to prepare the PEN*KEY for use, including program load and data communications.

NPCP (Norand Portable Communications Protocol)

A Norand proprietary protocol that provides session, network, and datalink services for Norand handĆheld computers in the Norand LAN environment used with printers and data communications.

Glossary-2

6220 Hand-Held Computer Technical Reference