The text of a manual · part 12 of 28
PEN*KEY 6400 Computer Programmer's Reference Guide: Section 4: Communications and Device Support, pages 87 to 94
Pages 87 to 94 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 87
SECTION 4
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 This parameter indicates the start of a telecommunications session. nnnn Session number. Currently, the session number is always one. Example: BEGS=1 UP=c:\pathname\filename,nnn This parameter indicates that a file upload was attempted. nnn Error code. Zero indicates a successful upload. Example: UP=C:BYTRXN.DAT,0 DOWN=c:\pathname\filename,nnn This parameter indicates that a file download was attempted. nnn Error code. Zero indicates a successful download. Example: DOWN=C:\CUST.DAT,23 ENDS=x,m,n This parameter indicates the end of a telecommunications session. x = Session status. It is a single character code. This code is also the return value of 64UTILS.EXE. Code
Meaning
“G” “T” “H” “F” “L”
Good session Unexpected end of transmission Incorrect file header was encountered File error was encountered Telecommunications was aborted before the first file header was received m = Stage of the communications session. Value
Meaning
5 4 3 2 1
Sign-on started Data send started Turn-around started Data receive started Sign-off started n = Protocol error code. This is a number that specifies the protocol error. PEN*KEYR 6400 Programmer’s Reference Guide
4-9
Page 88
SECTION 4
Communications and Device Support
Protocol Errors Table 4-1 TTY Protocol Errors Error Code 0 6 11 23 101 102 103 104 105 106 107 108 109 2xx 101 101
Description No error User pressed [EXIT], aborting communications Invalid parameter specified in control file End of transmission Line lost Parity error Character gap too long Data loss Excessive NAKs (No AcKnowledgements) Block count error Block check error Block framing error Control character error Modem error
2xx = one of the standard Hayes response codes, or a code defined by 64UTILS.EXE, where 2xx = one of the following codes: Error Code 286 287 288 289 298
Description Error sending command to modem Expected numeric response not numeric Invalid response format No significant response from modem Unrecognized English response
Table 4-2 NPCP Protocol Errors
Error Code 0 6 11 18 23 24
4-10
Description No error User pressed [EXIT], aborting communications Invalid parameter specified in control file Open rejected End of transmission Session ended abnormally
PEN*KEYR 6400 Programmer’s Reference Guide
Page 89
SECTION 4
Communications and Device Support
Serial Communications The optional communication adaptor endcap 9-pin D-Sub connector supports communications with a number of peripherals, using a serial port cable. These peripherals include battery chargers, printers, scanners, and docks.
1
2
3
4
5
6
7
8
9
Figure 4-1 9-Pin D-Sub Connector Pinouts
The table below shows pin connections for the 9-pin connector on the communications adapter. Table 4-3 9-pin D-Sub Connector Pinout
B CAUTION:
Pin Number
Signal
Function
1
No Connect
Data Carrier Detect
2
RXD
Receive Data
3
TXD
Transmit Data
4
Looped to DSR
Data Transmit Ready
5
GND
Ground
6
Looped to DTR
Data Send Ready
7
RTS
Request To Send
8
CTS
Clear To Send
9
Vcc
5 volts (See Caution, below)
The 5 volts on pin 9 is used with tethered scanners and printers only; it may damage modems.
PEN*KEYR 6400 Programmer’s Reference Guide
4-11
Page 90
Communications and Device Support
SECTION 4
LAN Communications Overview MININET.EXE provides communications over Local Area Networks (LANs), using the following switches: –s –c –t
Speed Comport Toggle
4000 Series Backwards Compatibility Using the following switches, the interrupt override from 4000API can be disabled: /10 /14 /16 /PC /C3
6400 Keyboard Definition and Redefinition The following paragraphs present the definitions for the keys on the 6400 Computer and specify the interface used for keyboard redefinition.
References Refer to a book such as: System BIOS for IBM PC’s, Compatibles, and EISA Computers, Second Edition Phoenix Technologies LTD, for the scan codes, make codes, and break codes for a standard keyboard.
Keyboard Definition Logical Keyboard The logical keyboard is defined as the view of the keyboard that the programmer uses. That is, in terms of how each physical key is represented to the user. However, the logical keyboard usually defines 64 key numbers instead of only the 41 or 51 keys of the 6400 Keyboard.
Keyboard Overlays There are overlays for the 41-key keyboard and the 51-key keyboard. Refer to the 6400 Hand-Held Computer User ’s Guide (NPN: 961-047-093) for examples of overlays for the 6400 Computer. One example of a keyboard overlay for the 6400 Computer is the “standard DOS/PC” for use with most applications that would not otherwise require a specific overlay.
4-12
PEN*KEYR 6400 Programmer’s Reference Guide
Page 91
SECTION 4
Communications and Device Support
Physical Keyboard The physical keyboard is defined to be the mechanical 41-key or 51-key keypad that is built into the 6400 Computer. Figure 4-2 and Figure 4-3 show the 41-key keyboard and the 51-key keyboard for the 6400 Computer, without an overlay. "
The 41 key keyboard function and numeric keys are single keystrokes. Alphabetical characters can be entered by using the green, blue, or yellow shift keys.
1
2 2
3
4 5
12
6 11 7 8 9
10
1. Scan key 2. Enter keys 3. Windows panning (or scrolling) keys 4. Numeric keys (0–9) 5. Green shift key 6. Function keys (F1–F12) 7. Special function keys (depending on overlay used) 8. I/O (Suspend/Resume) key 9. Yellow shift key 10. Blue shift key 11. Space key 12. Backspace key
Figure 4-2
41-Key Keyboard PEN*KEYR 6400 Programmer’s Reference Guide
4-13
Page 92
SECTION 4
Communications and Device Support
"
The 51 key keyboard alphabetic and numeric keys are single keystrokes. Special function keys can be entered by using the green, blue, or yellow shift keys.
1 2
2
3
4 11
5
6 7
8
9
10
1. Scan key 2. Enter keys 3. Windows panning (or scrolling) keys 4. Numeric keys (0–9) 5. Green shift key 6. Alphabetic keys (F1–F12) 7. Special function keys (depending on overlay used) 8. I/O (Suspend/Resume) key 9. Yellow shift key 10. Blue shift key 11. Backspace key
Figure 4-3
51-Key Keyboard
4-14
PEN*KEYR 6400 Programmer’s Reference Guide
Page 93
SECTION 4
Communications and Device Support
Keyboard Redefinition Most of the keys on the keyboard can be redefined, shifted and unshifted. The suspend/resume (I/O) key and the SCAN key cannot be remapped. Each key on the keyboard has a specific key code. Refer to any standard keyboard interface definition to determine keycodes for the keys on the 6400 Keyboard. ANSI.SYS can be used to reassign keys through the use of escape sequences. " NOTE:
Keep in mind that ANSI.SYS only works with default fonts. This means if you are using any Intermec fonts, or other acquired fonts, you could encounter difficulties in remapping keys to with these fonts.
An escape sequence is a string of text that begins with two preliminary keys, which includes the escape character and the left-bracket character “[”. This is not the only way to remap keys. However, it is very portable. ANSI.SYS works the same across all PC compatible platforms. Characters, such as Enter, Space, and quoted text strings, can be redefined into an escape sequence. After these escape sequences have been issued to the system, you can press a “redefined” key to produce the remapped text string, key, or set of keys.
Example Key Redefinition, Using a TSR There are other ways to remap keys, some of which allow mapping to non-standard fonts. A TSR program, such as the sample listed in Appendix A, Configuration Files, could be used remap keys to non-standard fonts.
Example Key Redefinition, Using ANSI.SYS The following example demonstrates a method of remapping function keys F1 through F10, using ANSI.SYS. This method remaps keys, by supplying the appropriate content for each of the parameters that follow the “[”. In the first example below, 0;59 is the first parameter. It is the key to be redefined. Everything after the first parameter is mapped to the key specified in the first parameter. Quoted text or key numbers can be used for any of the parameters. Refer to the DOS help or the Using ANSI.SYS paragraph below, for additional information on remapping keys. Add the following line to your CONFIG.SYS file: device=c:\dos\ansi.sys /x
The /x switch selects keyboard redefinition, as specified in the DOS Help for ANSI.SYS. Add the following assignments to your AUTOEXEC.BAT file, in order to set these mappings each time your system is powered up or reset: echo on prompt $<–[0;59;”INTERSVR C: D:”;13p prompt $<–[0;60;”DIR”;32p prompt $<–[0;61;”BIOS”;32p prompt $<–[0;62;”CD”;32p prompt $<–[0;63;”COPY”;32p prompt $<–[0;64;”DEL”;32p prompt $<–[0;65;”RAMDFMT”;32p prompt $<–[0;66;”C:”;13p prompt $<–[0;67;”EXIT”;13p prompt $<–[0;68;”D:”;13p prompt $p$g PEN*KEYR 6400 Programmer’s Reference Guide
4-15
Page 94
Communications and Device Support
SECTION 4
The listing above, shows exactly how the text appears if you create it using a DOS text editor, such as EDIT.COM. The small arrow (<–) after the “prompt $” represents the escape character (in the escape sequence). This is similar to the way it appears using EDIT.COM. In order to insert the escape character with EDIT.COM, press [Ctrl-P], then the escape key. For example, using EDIT.COM, the first assignment in the example would be entered as follows: prompt $<Ctrl-P><Esc>[0;59;”INTERSVR C: D:”;13p where <Ctrl-P> and <Esc> mean that you press the [Ctrl] key, press the “P” key, then press the [Escape] key. This inserts the escape character into the text for the escape sequence. The escape character may appear differently, depending on the text editor you are using. The 0;59 indicates that the text in quotes is assigned to the [F1] key. The 13p (after several of the assignments) indicates that the [Enter] key is added after the text in quotes. The 32p indicates that a space character is added after the text in quotes, which allows for command line switches or other parameters.
Using ANSI.SYS ANSI.SYS defines functions that change display graphics, control cursor movement, and reassign keys. The ANSI.SYS device driver supports ANSI terminal emulation of escape sequences to control sequence of ASCII characters, the first two of which are the escape character (1Bh) and the left-bracket character (5Bh). The character or characters that follow these two preliminary characters, specify an alphanumeric code that controls a keyboard or display function. When you redefine keys, using ANSI.SYS, it is important to note that the “echo on” must be placed before the “prompt” statements, so that all escape sequences are echoed to the screen. ANSI.SYS functions are executed through the display. " NOTE:
ANSI.SYS distinguishes between uppercase and lowercase letters. For example, “P” and
“p” have completely different meanings.
Syntax The following syntax is should be included in the CONFIG.SYS file: device=[drive:][path]ANSI.SYS [/X] where [drive:][path] specifies the location of the ANSI.SYS file in your system. There are other syntax forms allowed for ANSI.SYS. Refer to DOS help on ANSI.SYS for further information. Switches /X
Remaps extended keys independently on PC-compatible keyboards. There are other switches allowed with ANSI.SYS. " NOTE:
4-16
Refer to DOS help on ANSI.SYS for further information.
PEN*KEYR 6400 Programmer’s Reference Guide