Intermec 6200 Reference Guide

Page of 410
SECTION 6
Conversions and Interfaces
6-8    PEN*KEY
R
 6200/6300 Hand-Held Computer Programmer’s Reference Guide
Norlib
Use Norlib V2.00 or greater (or prerelease V1.20) for the PEN*KEY 6000 Series
handĆheld computers.  NRCursorSet does not support a blinking cursor on
PEN*KEY 6000 Series Computer.
Adding PC Card Modem Support
The following steps explain how to add PC Card modem support to a C++
application.
1. Use the correct version of Flash:
"
6200 Computer: 6200 Flash 1.40 or greater
"
6210 Computer: 6210 Flash 1.50 or greater
"
6300 Computer: 6300 Flash 1.40 or greater
2. Install NGENMOD.SYS.  See the PC Card Modem Driver paragraph in
Section 2 for instructions.
"
NOTE:
If the NORAND Norlib C++ library is used, skip the next step, as it is handled automatically.
3. Turn the modem on or off.  The modem should be turned on just before
starting an internal modem TCOM, and turned off when the
telecommunications session is complete.
NGENMOD.SYS provides several methods for doing this.  Since port power
should be turned on and off no matter what port is used, the easiest method
is the APM function Set Device Power State:
#define POWER_READY     0
#define POWER_OFF       3
#define DEVICE_COM1     0x0400
int ApmSetPower (int iPowerState, int iDevice)
{
unsigned char iErr = 0;
asm mov  bx,iDevice
asm mov  cx,iPowerState
asm mov  ax,0x5307
asm int  0x15
asm jnc  NoError
asm mov  iErr,ah
NoError:
return iErr;
}
// enable PC Card modem
ApmSetPower( POWER_READY, DEVICE_COM1 + com_port);
// perform communications...
// disable PC Card modem
ApmSetPower( POWER_OFF, DEVICE_COM1 + com_port);
6. Conversions and
Interfaces