The text of a manual · part 15 of 17
6110 Hand-Held Computer Technical Reference: Section 6: Communications, pages 135 to 142
Pages 135 to 142 of 160, from 6110 Hand-Held Computer Technical Reference
The original document is the PDF (1.9 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 6110
Page 135
Communications
SECTION 6
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:
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 6-13.
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
Communications Log File
A log of the communications is output to a text file named NRTLOG.DAT. Information 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 for this information are described in the following. Indicates start of TCOM session. “nnnn” equals the session number (currently BEGS=nnnn always 1). EXAMPLE: BEGS=1 DOWN=d:\pathname\filename.nnn Indicates that a file download was attempted. “nnn” 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. “x” is the session status (a single character code), “m” is the stage of the communications session, and “nnn” 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 “G” “T” “H” “F” “L”
Meaning Good session. Unexpected end of transmission. An incorrect file header was encountered. A file error was encountered. Communication aborted before first file header 6110 Hand-Held Computer Technical Reference
6-9
Page 136
Communications
SECTION 6
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.
UP=d:\pathname\filename,nnn Indicates that a file upload was attempted. “nnn” is the error code, with zero as a valid value indicating a successful upload. See the next paragraph for valid values for (nnn). (Example: UP=C:BYTRXN.DAT,0)
Protocol Errors When PSROM0C.EXE returns the session status code, an application can view the Communications Log file for a specific protocol error that occurred. Valid Protocol error code for (n), as indicated in the “ENDS=” parameter, are listed. Table 6-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 6-2 MININET Protocol Errors Error # 101 103 105 106 108 109 110 111 113 114 115 117 118 119
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
6-10
6110 Hand-Held Computer Technical Reference
Meaning 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 138 Command not valid to cancel 164–179 Unusual network condition 180–354 Adapter malfunction
Error # 120 121 122 123 124 125 126 133 134 135 136
Page 137
Communications
SECTION 6
Table 6-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
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.
6110 Hand-Held Computer Technical Reference
6-11
Page 138
Communications
SECTION 6
Table 6-3 (Continued) NRInet Protocol Errors Error # 948 950 951 952 954 955 960 961 962 963 964 965 966
Meaning Address already in use. 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 6-4 TTY Protocol Errors
Error # 0 6 11 23 101 102 103 104 105 106 107 108 109 2xx
6-12
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.
6110 Hand-Held Computer Technical Reference
Page 139
Communications
SECTION 6
TCOM Session Under the Norand standard file transfer session, the 600 Series Computer uploads first. Once all upload files are sent, the line is turned around and the host then sends download files. Each file is preceded by a header record listing the receiving 600 Series Computer information on the format used by that file. The hand-held computer must first send a session control file, to identify the computer to the host computer. The hand-held computer may then send a download request file. This prepares the host computer to download one or more 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-dependent 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, Norand host communication packages usually expect to find the terminal ID starting in byte 33 of the data stream; this location is configurable.
Download Request File A 6110 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 request 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
6110 Hand-Held Computer Technical Reference
6-13
Page 140
Communications
SECTION 6
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, 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 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 “.DAT” or “P.PL6” appended to the ffffff file name. File types “D” and “P” have “.DAT” extensions. File types “E” and “B” have “P.PL6” appended to the name. 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
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.
(
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 “(002” marks the beginning of a pattern repeating twice. “)000” marks its end.
)
N/A
Marks the end of a repeated sequence begun with a “(nnn” descripter. Field length is the number of repetitions of the sequence. For example, the sequence: B002X004B002X004 can be written as: (002B002X004)000 “(002” marks the beginning of a pattern repeating twice. “)000” marks its end.
In Norand host communication packages, a record length of one indicates the file contains variable-length records, with the first record character identifying the record type. The single character record types format the file into logical records. 6-14
6110 Hand-Held Computer Technical Reference
Page 141
Communications
SECTION 6
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 header F = indicates the file name parameter [––dosfilename––] = complete DOS file name (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 binary file (may be up to eight digits long) data. . . = the binary file starts immediately after the filesize parameter . . . = additional hand-held computer information
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 PEN*KEY 6000 Series application program to ensure that the file name specified is unique on the host. This could be accomplished by incorporating the terminal identification as part of the file name or path name: <DDOSFIL00001X027>F\DATA\DATA0001.DAT S102000 <DDOSFIL00001X031>F\HH000001\DATAFILE.DAT S102000
6110 Hand-Held Computer Technical Reference
6-15
Page 142
Communications
6-16
6110 Hand-Held Computer Technical Reference
SECTION 6