Section 1. Overview
5
TYPICAL OPERATION
This section describes a typical pattern that an application developer may use to operate a device.
Although it is the most typical pattern, it is by no means the only viable one. Refer to Section 5,
Example Applications, to see how to use the drivers in various applications.
Open a device
Access to the device is obtained by opening the
com
xx
: port that the device was installed as.
This is not the hardware port that the device may be attached to, but a
virtual
com
xx
:
port
presented by the driver (e.g., COM5 or higher). A handle is returned by the
open
function and is
required for all subsequent interactions with the driver. When opened, the driver initializes itself
and, where required, the device.
Some drivers support automatic settings. In this mode, the driver first attempts to communicate
with the device at the previous setting or at the default setting if it is the first time. (The setting
for the initial attempt is grayed out in the manual settings fields.) If the driver does not receive a
response, it will adjust the settings and try again. This sequence continues until the device
responds or until all possible settings have been attempted.
If the driver is set for the automatic mode, it may take considerably longer for the device driver
to detect an error. In particular, if the device is not connected to the specified port or if its power
is off, the device driver may take several seconds attempting all possible settings before it returns
an error. The application program should be tolerant of this delay.
Query the device’s capabilities
The application now queries the device to determine if it can perform the required task. The
capability properties (
c_xxx
) are provided for this purpose. For example, if an application
requires the ability to read checks, it can
get
the
c_check
property to determine if the device
can read checks.
Prepare the device for work
The device is prepared for operation by setting one or more of the configuration properties. Its
mode of operation and other features are set up by these properties. Setting the
capitalize
property to
1
to cause all data written to or read from a card’s magnetic strip to be capitalized is
an example of this type of initialization. In some cases, modifying a property may cause the
driver to execute functions on the device.
Use the device
The device is now fully initialized ready for operation. Because most tasks with the device
require interaction with the user, the application operates the device using primarily the
interactive commands. A typical scenario is when, in response to some event, the user is
prompted to swipe a card by using the
display
command, followed by a
read
command to
Содержание ET1725L Series
Страница 1: ......
Страница 26: ...3 22 E l o E n t u i t i v e T o u c h m o n i t o r U s e r G u i d e...
Страница 37: ...C 33 17 LCD Touchmonitor Dimensions 478 434 429 370 338 270 3 43 219...
Страница 41: ...37 N10051...
Страница 42: ...38 E l o E n t u i t i v e T o u c h m o n i t o r U s e r G u i d e...
Страница 52: ...vi Figure 1 1 Port Powered Swipe Reader...
Страница 56: ...Port Powered Swipe Reader 4 Figure 1 3 Dimensions...
Страница 60: ...Port Powered Swipe Reader 8...
Страница 69: ...vi Figure 1 1 USB Swipe Reader...
Страница 73: ...USB Swipe Reader 4...
Страница 77: ...USB Swipe Reader 8...
Страница 79: ...USB Swipe Reader 10...
Страница 99: ...viii Figure 1 1 MagTek Devices and Device Drivers for Windows MTD MagTek Device Drivers for Windows...
Страница 127: ...MagTek Device Drivers for Windows 28...
Страница 137: ...MagTek Device Drivers for Windows 38...
Страница 151: ...MagTek Device Drivers for Windows 52...
Страница 173: ...MagTek Device Drivers for Windows 74...
Страница 175: ...MagTek Device Drivers for Windows 76...
Страница 177: ...MagTek Device Drivers for Windows 78...
Страница 192: ......