Magtek MAGTEK User Manual

Browse online or download User Manual for Equipment Magtek MAGTEK. MagTek MAGTEK User Manual

  • Download
  • Add to my manuals
  • Print
  • Page
    / 80
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 0
MAGTEK COMMUNICATION
PROTOCOL (MCP)
DRIVER REFERENCE MANUAL
Manual Part Number 99875164-Rev 3
OCTOBER 2004
REGISTERED TO ISO 9001:2000
1710 Apollo Court
Seal Beach, CA 90740
Phone: (562) 546-6400
FAX: (562) 546-6301
Technical Support: (651) 415-6800
www.magtek.com
Page view 0
1 2 3 4 5 6 ... 79 80

Summary of Contents

Page 1 - PROTOCOL (MCP)

MAGTEK COMMUNICATION PROTOCOL (MCP) DRIVER REFERENCE MANUAL Manual Part Number 99875164-Rev 3 OCTOBER 2004 REGISTERED TO ISO 900

Page 2

MagTek Communications Protocol, Driver Reference Manual 4

Page 3 - SOFTWARE LICENSE AGREEMENT

5SECTION 3. INSTALLATION INSTALLING THE MCP DRIVER Insert the disk, P/N 30037473. If the program does not automatically start, navigate to the C

Page 4

MagTek Communications Protocol, Driver Reference Manual 6 After this, the MCP Installation welcome screen will appear. Click the “Next >” b

Page 5

Section 3. Installation 7Read the End User Licensing Agreement, and then click the “Next >” button if you accept it.

Page 6

MagTek Communications Protocol, Driver Reference Manual 8 Choose whether you wish to install MCP resources. These are only recommended if you are

Page 7 - SECTION 1. OVERVIEW

Section 3. Installation 9Choose the type of MCP Driver to install. On Win 98 and ME machines, this option will not be given as they only suppor

Page 8

MagTek Communications Protocol, Driver Reference Manual 10 If you wish to create an Instance at this time, make sure the “Yes, edit a Device...” s

Page 9

Section 3. Installation 11If you do choose to create an Instance, the windows below will appear. Edit the information as desired and click “Nex

Page 10

MagTek Communications Protocol, Driver Reference Manual 12 The following is an example window of a new installation with the different fields edit

Page 11 - SECTION 3. INSTALLATION

Section 3. Installation 13In the same manner, if you have chosen the Kernel Mode MCP, you can choose if you want the computer to create a shortc

Page 12

ii Copyright© 2000-2004 MagTek®, Inc. Printed in the United States of America Information in this document is subject to change without notice. No

Page 13 - Section 3. Installation

MagTek Communications Protocol, Driver Reference Manual 14 During the installation, you will see the following windows (not all the windows you wi

Page 14

Section 3. Installation 15The following screen (on XP only) will appear because the program is not Windows Logo compliant. Click the “Continue

Page 15

MagTek Communications Protocol, Driver Reference Manual 16 Make sure “Yes, I want to restart...” is selected and then click “Finish” to reboot and

Page 16

Section 3. Installation 17CHANGING THE MCP DRIVER: Go to the Control Panel and select Add/Remove programs (Start/Settings/Control Panel is Win9

Page 17

MagTek Communications Protocol, Driver Reference Manual 18 In this case, we have the Kernel Mode MCP Driver installed and it is version 1.5.0.9.

Page 18

Section 3. Installation 19Change the selection to “Modify” and then click “Next >”.

Page 19

MagTek Communications Protocol, Driver Reference Manual 20 If this is a Win NT/2K or XP machine, you will be given the choice to keep the current

Page 20

Section 3. Installation 21You can also create a new Instance or modify a current installed one. To create or modify and Instance, make sure the

Page 21

MagTek Communications Protocol, Driver Reference Manual 22 If there are any previous Instances, they will appear in the pulldown menu “MCP Devices

Page 22

Section 3. Installation 23The following shows the Instance was modified so a new Instance will be created.

Page 23

iiiSOFTWARE LICENSE AGREEMENT IMPORTANT: YOU SHOULD CAREFULLY READ ALL THE TERMS, CONDITIONS AND RESTRICTIONS OF THIS LICENSE AGREEMENT BEFORE INSTA

Page 24

MagTek Communications Protocol, Driver Reference Manual 24 Select the remaining options as desired and then allow the computer to reboot. You wil

Page 25

Section 3. Installation 25The next choice is to keep or remove the short-cut

Page 26

MagTek Communications Protocol, Driver Reference Manual 26 If you choose to install the MCP resources, the following will appear:

Page 27

Section 3. Installation 27You will then be asked where you would like to save them. When complete click Next.

Page 28

MagTek Communications Protocol, Driver Reference Manual 28 Review the settings and either click Back or Next as described below. The followin

Page 29

Section 3. Installation 29When backup is complete, the following will appear: To complete, click Yes and Finish.

Page 30

MagTek Communications Protocol, Driver Reference Manual 30 REMOVING THE MCP DRIVERS Note You cannot remove individual Instances with this option

Page 31

Section 3. Installation 31You will see a series of windows.

Page 32

MagTek Communications Protocol, Driver Reference Manual 32 You must let the computer reboot to complete the removal of the MCP Driver.

Page 33 - When complete click Next

Section 3. Installation 33DEVICE INSTANCE MANAGEMENT Device Instance Overview Before the MCP driver can communicate to a device, a device inst

Page 34

iv TABLE OF CONTENTS SECTION 1. OVERVIEW...

Page 35

MagTek Communications Protocol, Driver Reference Manual 34 MCPCFG Command Summary The following shows a summary of all commands supported by MCPC

Page 36

Section 3. Installation 35Adding a Device Instance from Command Line – RS-232 Use the following command to add a new device instance: mcpcfg

Page 37

MagTek Communications Protocol, Driver Reference Manual 36 Adding a Device Instance from Windows Based Application (WINDOWS 2000, XP) – RS-232 1

Page 38

Section 3. Installation 37Removing a Device Instance from a Command Line – RS-232 Use the following command syntax to remove an existing device

Page 39

MagTek Communications Protocol, Driver Reference Manual 38 The list displayed contains all properties that can be set for a device instance, wheth

Page 40

Section 3. Installation 39mcpcfg s IntelliStripe Port.BaudRate=9600 Port.TraceEnabled=1 The informational and diagnostic messages displayed by

Page 41

MagTek Communications Protocol, Driver Reference Manual 40 mcpcfg stop Administrator privilege is required to execute this command. Windows Con

Page 42 - Click OK

Section 3. Installation 41DEVICE INSTANCE PROPERTIES Generic Properties These properties are used regardless of what communication transport t

Page 43

MagTek Communications Protocol, Driver Reference Manual 42 Propery Name Description Core.RspTimeout Message Response Timeout (specified in millis

Page 44

Section 3. Installation 43Serial Port Properties These properties are serial port specific. Value Notes Port.Name Serial Port Name to which t

Page 45

vCONSTANT DEFINITIONS...70 Operation

Page 46

MagTek Communications Protocol, Driver Reference Manual 44 Value Notes Port.BlockWaitTimeout Block Wait Timeout (specified in milliseconds). Maxi

Page 47

45 SECTION 4. TRACE LOG The trace log is a file that logs the communications between the driver and a device. The trace log is used for helping a

Page 48

MagTek Communications Protocol, Driver Reference Manual 46 08\10\2004 11:44:48:267 MSG Out 00 00 00 00 02 00 08\10\2004 11:44:48:267 FRM Out 01 00

Page 49

47SECTION 5. APPLICATION PROGRAMMABLE INTERFACE The application programmable interface (API) is presented through a 32 bit, Win32 DLL MCPAPI.DLL.

Page 50

MagTek Communications Protocol, Driver Reference Manual 48 DEVICE CHANNEL LIFE CYCLE Devices are identified at the API level by names. The host

Page 51 - SECTION 4. TRACE LOG

Section 5. Application Programmable Interface 49COMMANDS Host applications access device functions by communicating with a specific device appl

Page 52

MagTek Communications Protocol, Driver Reference Manual 50 NOTIFICATIONS MCP devices can send unsolicited messages – notifications, in case an ex

Page 53

Section 5. Application Programmable Interface 51FUNCTIONS Summary The following section describes each function of the API. A short descripti

Page 54

MagTek Communications Protocol, Driver Reference Manual 52 MCPBUS Structure The MCPBUS structure represents a common structure (bus) used to pass

Page 55

Section 5. Application Programmable Interface 53dwApplicationID Application ID. This number identifies which application within the device the

Page 57

MagTek Communications Protocol, Driver Reference Manual 54 dwPropertyType Property Type. When obtaining (McpGet) or modifying (McpSet) property

Page 58

Section 5. Application Programmable Interface 55dwOutBufferSize Size of Output Buffer. The MCP driver needs to know the length (in bytes) of th

Page 59

MagTek Communications Protocol, Driver Reference Manual 56 McpEnum This function is used to enumerate (get the names of) all of the MCP compliant

Page 60

Section 5. Application Programmable Interface 57McpOpen This function is used to open the communication channel and establish communications wi

Page 61

MagTek Communications Protocol, Driver Reference Manual 58 try to synchronize to new communication parameters until it is reset or power cycled.

Page 62

Section 5. Application Programmable Interface 59McpClose This function is used to close a communication channel to an MCP device which was open

Page 63

MagTek Communications Protocol, Driver Reference Manual 60 McpReset This function is used to reset the channel and reestablish communications wit

Page 64

Section 5. Application Programmable Interface 61McpGet This function is used to get the value of a property from the MCP driver MCP device appl

Page 65

MagTek Communications Protocol, Driver Reference Manual 62 Return Value The returned value indicates the outcome of the get property function. V

Page 66

Section 5. Application Programmable Interface 63McpSet This function is used to set the value of a property in the MCP driver, MCP device or MC

Page 67

1SECTION 1. OVERVIEW The MCP driver is a kernel-mode driver that provides reliable communications between a user-mode application and an MCP device

Page 68

MagTek Communications Protocol, Driver Reference Manual 64 Return Value The returned value indicates the outcome of the enumeration function. Va

Page 69

Section 5. Application Programmable Interface 65McpCall This function is used to execute an MCP command request. Commands can be issued to the

Page 70

MagTek Communications Protocol, Driver Reference Manual 66 Return Value The returned value indicates the outcome of the call function. Value Me

Page 71

Section 5. Application Programmable Interface 67McpWait This function is used to get the next notification which the device has sent. When noti

Page 72

MagTek Communications Protocol, Driver Reference Manual 68 The following structure members are used as output parameters. Member Meaning dwAppli

Page 73

Section 5. Application Programmable Interface 69If this function returns successfully, the dwApplicationID indicates the device application whic

Page 74

MagTek Communications Protocol, Driver Reference Manual 70 CONSTANT DEFINITIONS Operation Attributes #define MCP_ATTR_NONE 0 // No

Page 75

Section 5. Application Programmable Interface 71#define MCP_ST_PANIC 41 // unexpected condition of self or internal

Page 76

MagTek Communications Protocol, Driver Reference Manual 72 #define MCP_ST_CLEANUP 85 // object is about to be destroyed, now in

Page 77

73 INDEX A Adding a Device Instance from Command Line – RS-232...34 Adding a Device Instance

Page 78

MagTek Communications Protocol, Driver Reference Manual 2

Page 79

MagTek Communications Protocol, Driver Reference Manual 74 S Serial Port Properties....42 Stopping the MCP Driv

Page 80

3SECTION 2. SYSTEM REQUIREMENTS COMPUTER SYSTEM The driver requires a 133 MHz Intel Pentium based PC or better. OPERATING SYSTEM The driver is

Comments to this Manuals

No comments