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

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

Pages 129 to 136 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 129

Communications and Device Support

All switches are optional, and if omitted will default to NOT the switch or to the value indicated below. NTTTTTTTT - device Name switch (defaults to MODEM) S - save UART registers on suspend, restore on resume IH - set IRQ to hex value H (defaults to 5) CH - set to COM H (defaults to COM3) BDDDD - fail device open if voltage less than DDDD millivolts A - allow suspend when device open DHHHH HHHH HHHH - is for cards that have an unreliable ready line. Use this format, if the manufacturer 's code and info field match the first two hexidecimal numbers respectively , delay for the third hexidecimal number of ticks (i.e., 55 ms per tick). R - leave card on and enable RI during suspend (non functional on ELAN based terminals), since card power is off during suspend.

Charge Indicator On all docks there is an indicator on the front of each dock or docking position that indicates the status of charge on the computer in the dock. This indicator does not turn on unless a computer is installed. The indicator states are: Amber Charge in progress, one hour rate " Green Charge complete " None No computer in dock or no power applied to dock The charge indicator is driven by a small processor in the dock. When the comĆ puter is installed, it sends charge status information over a two wire interface (BCLK and BDAT) to the dock processor. The dock processor then turns on the indicator to show the user the state of the charge in the computer. The dock processor does not control charge, but is simply used to run the indicator. "

RS-485 Connections The 6100 Computers do not have any electronic RS-485 transceivers themselves. This level conversion is done in the dock. The normal COM1 signals RX and TX from the computer are sent through RS-485 transceivers in the dock. These drivers are enabled by tying the -485MUX line low in the external cable atĆ tached to the 25Ćpin DĆsub connector on the back of the dock. This works on all 6100 single and vehicle docks. The RS-485 transceivers are always enabled on the 6100 multidocks.

Port Definitions The data connectors on the back of the single and vehicle docks have been seĆ lected so that each external cable cannot be unintentionally crossed at time of install. See the Reference, System Information section for port definitions. Dock 6100 Single and Vehicle 6100 Single and Vehicle

Data Connector 25Ćpin DĆsub male 9Ćpin DĆsub female

Computer Comm Port COM1 COM3

PEN*KEY R 6100 Computer Programmer’s Reference Guide

5-17

5. Communications and Device Support

SECTION 5

Page 130

5. Communications and Device Support

Communications and Device Support

SECTION 5

Terminal to Dock Connector Pinouts The following pinouts are for the 6100 docking connectors (the custom connector from the terminal to the dock itself. 6100 Docking Connector Pinout

When looking into the dock from the top, and from the indicator side of the dock, the pinout is rightĆtoĆleft, pins 1, 3, 5, and 7 on the row toward rear of dock; then rightĆtoĆleft, pins 2,4,6, 8 on the row toward front of dock. Below, is a depiction of the signals and functions for these pins. Table 5-5 Docking Connector Pinout Descriptions (8-Pin) Pin 1 2 3 4 5 6 7 8

Signal BCLK Dock Pwr 12 Vdc GND BDAT TX RX RTS CTS

Function Battery Clock Power to Dock from Terminal Ground Battery Data Transmit for Serial Port Receive for Serial Port Ready to Send Clear to Send

6100 Single/Vehicle Dock 25-Pin Female D-Sub Connector

With screwĆin type retention posts (like a PC connector). For use with either RS-232 or RS-485 systems. This connector is COM1 on the 6100 Computer. Pin 1 2 3 4 5 6 7 8 9 10 11 12-17 18 19 20 22 21, 23-25 5-18

Signal chassis ground TXD RXD RTS CTS DSR signal ground DCD

Function / Implementation

Looped back internally to DCD and DTR Looped back internally to DTR and DSR No connect No connect

RS-485+ No connect RS-485-485Mux DTR RI

Looped back internally to DSR and DCD No connect No connect

PEN*KEY R 6100 Computer Programmer’s Reference Guide

Page 131

Communications and Device Support

6100 Single/Vehicle Dock 9-Pin D-Sub Female Connector

This connector is COM3 on the 6100 Computer, and is a twoĆwire RS-232 port. The 6100 IrDA output is converted to RS-232 levels for RX/TX in the dock. Pin 1 2 3 4 5 6 7 8 9

Signal DCD IRRX IRTX DTR Ground DSR RTS CTS RI

Function / Implementation Not connected Data input to dock Data output from dock Permanently asserted in the dock Ground Controls baud rate on 9Ćpin port Permanently asserted in the dock Controls baud rate on 9Ćpin port Not connected in dock

Keyboard Definition and Redefinition The following paragraphs present the definitions for the 6100 keys and specify the interface used for keyboard redefinition. Keep in mind that the 6100 ComĆ puter you are using may not be defined exactly as described below. The keyĆ board is almost totally redefinable, except for the key (yellow shift), which returns key codes 15 or 79.

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, or Ralf Brown's Interrupt List.

Keyboard Definitions Logical Keyboard Alt

Contrast Up

Contrast Down

Backlight Off / On

Suspend/Resume

7

8

9

Home

Page Up

Up Arrow

Page Down

Tab

4

6 Right Arrow

(period)

Left Arrow

5 Down Arrow

Backspace

1

2

3

“Gold” Key

Control

(minus sign)

End

(Yellow Shift)

Escape

0

Enter

The logical keyboard is a view of the keyboard as represented to the user. The above chart shows an example of a Logical Keyboard layout, without overlays. The layout on your keyboard may (or may not) be the same. Depending on the unit, either the [I/0] or the [Suspend/Resume] key is in upperĆleft corner of the keyboard. On some units, press the [Gold] key before the [Suspend/Resume] key. The darkly shaded area, in the above diagram, represents the key (or the Shift" key). The lightly shaded areas represent functions produced by shifting (holding down the key), then pressing one of the other keys. UnĆ shaded areas show the functions produced by pressing a key without shifting. PEN*KEY R 6100 Computer Programmer’s Reference Guide

5-19

5. Communications and Device Support

SECTION 5

Page 132

5. Communications and Device Support

Communications and Device Support

SECTION 5

Physical Keyboard

The physical keyboard is defined as the mechanical 16Ćkey keypad built into the 6100 Computer. Each key of the keyboard has a specific key number.

Keyboard Redefinition All of the keys on the keyboard can be remapped, except for the suspend/resume key (upperĆleft) and the key (lowerĆleft). All of the keys on the keyboard can be shifted and unshifted, except for the key. The key numbers and scan codes for the keys on the 6100 Keyboard can be deĆ termined using the charts shown below. Unshifted Keys

Table 5-6 shows key numbers and associated scan codes for the unshifted keys. Table 5-6 Unshifted Keys Key Number 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14

Keyboard Legend 9 8 7 Suspend / Resume 6 5 4 Tab 3 2 1 Backspace Enter 0 Escape

Scan Code 0Ah 09h 08h 70h 07h 06h 05h 0Fh 04h 03h 02h 0Eh 1Ch 0Bh 01h

The following is a logical diagram of the keyboard, showing the relationship beĆ tween the Unshifted key numbers and their physical locations on the keyboard.

5-20

3

2

1

0

7

6

5

4

11

10

9

8

15

14

13

12

PEN*KEY R 6100 Computer Programmer’s Reference Guide

Page 133

Communications and Device Support

Yellow Shifted Keys

The following chart shows the key numbers and the associated scan codes for the Yellow shifted keys. Table 5-7 Yellow Shifted Keys Key Number 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78

Keyboard Legend Backlight; Off / On Contrast Down Contrast Up Alt Page Down Up Arrow Page Up Home Right Arrow Down Arrow Left Arrow (period) End (minus sign) Control key

Scan Code 6Dh 6Eh 6Fh 38h 51h 48h 49h 47h 4Dh 50h 4Bh 34h 4Fh 0Ch 1Dh

The following diagram is a logical representation of the keyboard, showing the relationship between the Yellow Shifted key numbers and their physical locations on the keyboard.

67

66

65

64

71

70

69

68

75

74

73

72

79

78

77

76

For additional information relating to using the scan codes in an application, reĆ fer to the Standard Keyboard Interface topic, in the Conversions and Interfaces section of this publication. Remapping Keys for a Soft Reset

The 6100 Computers provides the capability for Software developers to add a soft reset action. Like the for standard PC's, this soft reset can be a useful tool to avoid opening the Endcap when resetting the 6100 Computer. " NOTE:

The Soft Reset function is not recommended for users booting off an SRAM card!

The soft reset function is only recommended for a 6100 using SanDisk cards or booting from the RAM drive (C: drive). PEN*KEY R 6100 Computer Programmer’s Reference Guide

5-21

5. Communications and Device Support

SECTION 5

Page 134

5. Communications and Device Support

Communications and Device Support

SECTION 5

Remapping the 6100 keypad for a soft reset can be done by assigning the [Ctrl], [Alt], and [Del] keycodes to any three keys on the 6100 keypad, using the KEYMAP.EXE utility. For example, if you wanted to use the bottom row of keys for the soft reset, then perform the following steps: 1. Make a Copy of KEYS.INI First, copy the file KEYS.INI from the 6100 Tool Kit, giving it a new name during the copy (such as: NEWKEYS.INI). This is the standard key definiĆ tion file. (Refer to the sample listing of KEYS.INI, in Appendix A, Sample Configuration Files) . You can name this new file anything you want. 2. Modifying NEWKEYS.INI Substitute the following three definitions for the last three lines in the file. This changes the bottom three (shifted) keys to [Ctrl], [Alt], and [Del]. 76 = 0x53 ; Delete " 77 = 0x38 ; Alt " 78 = 0x1D ; Control 3. Remapping the 6100 Keypad Place this modified file on the 6100 system and call the remapping utility, KEYMAP.EXE, passing the name of the new key file as a parameter. Be sure to include the path if necessary. For example: KEYMAP.EXE [\path\]NEWFILE.INI where [\path\] is reĆ placed with the actual path to the .INI file. "

4. Implementing the Soft Reset Simply hold down the entire bottom row of keys (including the yellow shift key) on the 6100 keypad, and the system performs a soft reset. Notice that after the modification, there may be a potential for duplicate key asĆ signments (such as: [Alt] and [Ctrl]), or missing key assignments (such as: and Assign (or reassign) keys, as needed. Execute this remapping utility as many times as needed to remap on the fly; or place the command into your AUTOEXEC.BAT file to perform the remapping each time you reboot the 6100 Computer. " NOTE:

Using “CTL-ALT-DEL” to reset is as robust as it is in conventional PC. If the 6100 processor is hung up, a soft reset may not bring the terminal back.

This information and other helpful hints, are available in the 6100 Forum on the Customer Support BBS. This method of remapping keys could also be useful for redefining other keys. For another example of remapping keys, see Keyboard Remapping with ANSI.SYS, in Appendix B, Common PEN*KEY 6000 Series Information. Keyboard Overlays

One example of a keyboard overlay is shown below. The text and symbols above the keys in the top row (Suspend, Contrast Up, Contrast Down, and Backlight On/Off) are the goldĆplane values; the text and symbols on the keys are the keyĆ cap legends.

5-22

PEN*KEY R 6100 Computer Programmer’s Reference Guide

Page 135

Communications and Device Support

The overlay shown is not necessarily a standard. It is merely an example overĆ lay. Any overlay can be made to fit the needs of any application or user. Suspend Alt

7

8

9

Home

PgUp

PgDn

Tab

4

5

6

BkSp

1

2

3

Control Esc

End 0

Enter

6100 Memory Overview

Sometimes, while installing programs, if you load some of them into the High Memory Area (HMA), this frees some conventional memory for use by your apĆ plication. To better understand the use of these memory areas, refer to the description and the diagram in the Memory Overview paragraph of Appendix B, Common PEN*KEY 6000 Series Information. Keep in mind that using the HMA could prevent you from creating the maximum RAM drive on the 6100 Computer. There is a relationship between RAM drives and Extended memory. A RAM drive uses Extended memory to store its inforĆ mation. So, when you create a oneĆmegabyte RAM drive, you are using one megabyte of Extended memory. On a twoĆmegabyte 6100 Computer, there is only one megabyte of Extended memory. Therefore, using up to 64K of HMA to load programs high takes away from the memory available for the RAM drive.

Using Expanded Memory on the 6100 Computer

The only reason you should use Expanded memory is if your application can acĆ cess it. PenRight applications are good examples of programs that have the abilĆ ity to use Expanded memory. For information on Expanded memory, refer to the Memory Overview paragraph, in Appendix B, Common PEN*KEY 6000 Series Information. The following information describes how to setup a CONFIG.SYS file so your apĆ plications can use extended memory. EXAMPLE:

CONFIG.SYS file device=d:\himem.sys /machine:2 rem The following line is for configurations loading NORCS drivers: device=d:\elanump.sys /x=C000,D400,D800,DC00,E000 device=emm386.exe x=A000–D3FF i=D400–E3FF frame=D400 x=E400–FFEF DOS=UMB . . . install=fixemm.exe PEN*KEY R 6100 Computer Programmer’s Reference Guide

5-23

5. Communications and Device Support

SECTION 5

Page 136

5. Communications and Device Support

Communications and Device Support

" NOTE:

SECTION 5

If FIXEMM.EXE is not loaded, 6100 Computer locks up on Suspend.

If using card and socket drivers, change the ELANUMP line to the following: device=d:\elanump.sys /x=C000,C400,D400,D800,DC00,E000

If not using any card and socket drivers, change the ELANUMP line to the following: device=d:\elanump.sys /x=D400,D800,DC00,E000 Use ELANUMP to access the Upper Memory Area (UMA), because it knows what hardware it is running, and there could be problems with programs that are loaded high and access INT 15, if EMM386 is used for access to the UMA.

Upper Memory Provider: ELANUMP.SYS ELANUMP.SYS is an upper memory provider. It supports the minimal set of XMS function calls required to provide upper memory to DOS when you have a statement in the CONFIG.SYS file. The upper memory provider (UMP) supplies all upper memory block elements, in the range of C000ćEFFF, on a PEN*KEY 6000 Series Computer. It can be used with HIMEM.SYS, or as a standĆalone program. The UMP does not support the XMS calls that deal with the deallocation or reallocation of upper memory blocks. The UMP is similar to EMM386.EXE for loading devices into HMA. Unlike EMM386 with the NOEMS switch, the UMP supplies DOS with memory from the first megabyte of the system memory. This is memory that would otherwise be available for use as shadow RAM. EMM386 does not know how to program the memory controller to access this memory, so it uses some of the extended memory to emulate upper memory. The UMP is smaller and simpler than EMM386. Since EMM386 is a virtual mode system extension, it also slows down processing as it handles special excepĆ tion interrupts that are required when providing virtual memory to DOS. If you want upper memory, and do not need expanded memory, the UMP uses less sysĆ tem memory; therefore making more memory available to the system. Option ROM blocks are scanned for and reserved (that is, left untouched). A single command line switch is provided to force the UMP to reserve memory block elements, other than those with option ROM signatures in them. The synĆ tax for this switch is: /X=aaaa[,aaaa] where the addresses specified are hexadecimal starting addresses for each block of memory to be reserved. The complete list of the blocks available in hardware is C800, CC00, D000, D400, D800, DC00, E000, and E800. Note that the last two blocks are 32KB in size instead of 16KB. This is a hardware constraint deĆ fined by the memory controller in the processor chipset. The 6100 Computer provides upper memory (C800ćCFFF, E000ćEFFF) and HMA memory, using both HIMEM.SYS and ELANUMP.SYS: DEVICE=HIMEM.SYS DOS=HIGH DEVICE=ELANUMP.SYS /X=C000, C400 DOS=UMB DEVICEHIGH=...

The preceding configuration reserves the C000, C400 address range used by CardSoft to support PC Cards. You must reserve the address space required by CardSoft for it to function normally. If you have customized your CardSoft conĆ figuration, you may need to exclude a different set of addresses; check the MEM switch in your CSALLOC.INI file. If using NORAND Card and Socket services, you only need to reserve C000 for that configuration, as follows: device=d:\elanump.sys /X=C000 5-24

PEN*KEY R 6100 Computer Programmer’s Reference Guide