The text of a manual · part 15 of 38
PEN*KEY 6100 Computer Programmer's Reference Guide: Section 5: Communications and Device Support, pages 121 to 128
Pages 121 to 128 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.
For the Norand 6100
Page 121
Communications and Device Support
STOPBITS= Valid only if twoĆway TTY protocol was specified. (Example: STOPBITS=1) Valid values: 1 = One stop bit 2 = Two stop bits 3 = 1-1/2 stop bits TRIES= Specifies the number of times to attempt a successful communication session. If TRIES is exhausted before a session is successful, PSROM0C.EXE returns the error of the last session. A parameter value of 0 indicates that the retry is to continue until a session is successful or the user aborts. EXAMPLE:
Example Control File for TTY PROTOCOL=3 COM=1 SPEED=9600 PARITY=0 DATABITS=8 STOPBITS=1
EXAMPLE:
Example Control File for NPCP PROTOCOL=4
EXAMPLE:
Example Control File for NRInet PROTOCOL=14 IPHOST=nnn.nnn.nnn.nnn Upload Control File
Information about files being transferred must be in a NRUPLD.CTL file. Valid parameters for this file are described in the following paragraphs. Descriptions of File Entries
HEADER= This file header record precedes the files subsequently specified in FILE parameĆ ters. 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 information is assumed to be embedded in the file itself. When you specify the binary file descriptor (DOSFIL), you do not need to comĆ pletely 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 file name specified in the FILE parameĆ ter is inserted into the header that is uploaded to the host. (Example: HEADER=<DBYPRD 00000x040> RECTYPE= RECTYPE and FORMAT upload files that contain variableĆlength records, in which the first character is each record identifies the type of record. RECTYPE and FORMAT parameters remain in effect only until the next HEADER parameĆ ter is encountered. RECTYPE is a single, printable ASCII character; it indicates the record type to which the following FORMAT applies. (Example: RECTYPE=A) PEN*KEY R 6100 Computer Programmer’s Reference Guide
5-9
5. Communications and Device Support
SECTION 5
Page 122
5. Communications and Device Support
Communications and Device Support
SECTION 5
FORMAT= Defines the format of variableĆlength records whose record types match the preĆ ceding RECTYPE parameter. The format of a record consists of the data type and length of each field within the record, specified as follows: EXAMPLE:
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 simĆ plicity, 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 the NORAND document, Writing TCOM Modules in PL/N for the Hand-Held Computer, or refer to the host TCOM manual. EXAMPLE:
FORMAT=X020 FORMAT=N012X016N004
FILE= The name of an upload file. Files are uploaded according to the preceding header information. Multiple FILE parameters may follow a single HEADER parameĆ ter, if the header 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 deĆ scribed earlier. HEADER=<DSCNTRL00001X042> FILE=SCNTRL.DAT
The file SCNTRL.DAT would contain the session control data of the form: PPPPPPPPPPPPPPTTTTTTTTTTTTTTTTYYMMDDHHMMSS as described earlier under Control File." This file could have any name. SCNTRL.DAT is used as an example. EXAMPLE:
5-10
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
PEN*KEY R 6100 Computer Programmer’s Reference Guide
Page 123
Communications and Device Support
Communications Log File A log of the communications is output to a text file named NRTLOG.DAT. The information contained in this file is described in the following subparagraphs. BEGS=nnnn Indicates the start of a TCOM session, where nnnn = session number. Currently, the session number is always 1. (Example: BEGS=1) UP=d:\pathname\filename,nnn Indicates a file upload was attempted, where nnn UP=C:BYTRXN.DAT, 0)
= error code. (Example:
Valid values: 0 indicates a successful upload. DOWN=d:\pathname\filename,nnn This parameter indicates that a file download was attempted, where nnn = error code. (Example: DOWN=C:\CUST.DAT, 23) Valid Values:
0 indicates a successful download.
ENDS=x,m,n Indicates the end of a TCOM session, where: x = Session status. It is a single character code. m = Stage of the communications session. n = Protocol error code.
The following table shows the valid character codes for (x). This is the returned value from the application (PSROM0C.EXE). Code for (x) `G' `T' `H' `F' `L'
Meaning Good session. Unexpected end of transmission. An incorrect file header was encountered. A file error was encountered. Telecom was aborted before the first file header was received.
The following table shows the valid values for (m). Value for (m) 5 4 3 2 1
Meaning SignĆon started. Data send started. TurnĆaround started. Data receive started. SignĆoff started.
PEN*KEY R 6100 Computer Programmer’s Reference Guide
5-11
5. Communications and Device Support
SECTION 5
Page 124
5. Communications and Device Support
Communications and Device Support
SECTION 5
Protocol Errors The following tables show valid Protocol error code for (n). This is a number that specifies the protocol error. Table 5-1 TTY Protocol Errors Error Code 0 6 11 23
Description No error. User aborted communications by pressing EXIT. An invalid parameter was specified in the control file. End of transmission.
101 102 103 104
Line lost. Parity error. Character gap too long. Data loss.
105 106 107 108
Excessive NAKs. Block count error. Block check error. Block framing error.
109 2xx
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. Table 5-2 NPCP Protocol Errors
Error # 0 1 6 11
5-12
Meaning No error. MININET.EXE is not installed. User aborted communications by pressing EXIT. An invalid parameter was specified in the control file.
PEN*KEY R 6100 Computer Programmer’s Reference Guide
Page 125
Communications and Device Support
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-3 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
PEN*KEY R 6100 Computer Programmer’s Reference Guide
5-13
5. Communications and Device Support
SECTION 5
Page 126
5. Communications and Device Support
Communications and Device Support
SECTION 5
Table 5-4 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-14
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.
PEN*KEY R 6100 Computer Programmer’s Reference Guide
Page 127
Communications and Device Support
Table 5-4 (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.
Serial Communications Option Connector The option connector is used on the serial lid, the scanner lid, the MSR (Magnetic Stripe Card Reader) and the terminal. The option connector provides the meĆ chanical and electrical interconnection for power and/or data communications between the 6100 Computer and the various lids.
Serial Lid Installation The 6100 Serial Lid, with RJ-11, 9Ćpin RS-232 DĆsub Serial Port, provides feedĆ back to the user when it is correctly attached to the 6100 Computer. With the 6100 Computer in mode (with no external charge attached and a properly charged and well operating Main Battery), attaching this specific serial lid causes the unit to on" or wake up from mode. Thus, you can verify proper installation. If it does not on" when the serial lid is attached, then one or both of the following problems may exist: The lid is attached improperly and the user must repeat the attachment process. " The Main Battery is low or not operating properly. The reason for this is because, as the serial lid is attached, a loopĆback connecĆ tion in the serial lid causes an interrupt to be sent to the microprocessor. This causes the 6100 Computer to on" or wake up. "
" NOTE:
This procedure works only when the unit is not receiving charge from an external power source.
Serial Ports The following serial ports are provided on the 6100 Computer: RS-232 or RS-485 through the 25Ćpin dock connector " RS-232 through the serial endcap (or serial lid) Refer to the Reference, System Information section, for port mappings. "
PEN*KEY R 6100 Computer Programmer’s Reference Guide
5-15
5. Communications and Device Support
SECTION 5
Page 128
5. Communications and Device Support
Communications and Device Support
SECTION 5
IrDA Communications For information on IrDA printing, refer to the DOS IrDA Printing paragraph, in the Supporting DOS Applications section of this publication.
6000 Series LAN Communications Overview MININET.EXE provides communications over Local Area Networks (LANs), usĆ ing the following switches: -s speed -c comport -t toggle
4000 Backwards Compatibility Use these switches to disable the interrupt override from 4000API: /10 /14 /16 /PC /C3
Device Support 6100 Display The display is a Liquid Crystal Display (LCD) with a touch screen. The display is rotated to landscape mode to facilitate a wider screen. The touch screen acĆ cepts input from stylus or your finger.
Screen Rotation Screen rotation is produced, in the DOS text mode, using VROTATE.EXE. For information on VROTATE, refer to the 4000 Series Screen Emulation paragraph, in the Conversions and Interfaces section of this publication. Screen rotation is produced, in the DOS graphics mode, using the Borland BGI driver, N6100.H and N6100.BGI. Screen rotation is produced, in Windows, using the video driver 6100DISP.DRV.
Docks and Modems Modem Device Driver: NORMOD.SYS NORMOD.SYS is a PC Card card services client handling the identification and initialization of serial device PC Cards (e.g., modems, radios, etc.). It is loaded when you need to use a modem. This includes landline and wireless modems. Command line switches are indicated by a preceding slash or dash and are case insensitive (e.g. -i and /I both indicate the same switch). Some switches are folĆ lowed by data (text or numeric), in which case the data immediately follows the switch (no space in between). This is indicated by for a text character, for a hexidecimal digit, and for a decimal digit. For example, a switch shown as NTTTTTTTT indicates that the switch is followed by up to eight characĆ ters (e.g. -nMODEM1). 5-16
PEN*KEY R 6100 Computer Programmer’s Reference Guide