MTBLUETOOTH.OCX PROGRAMMING REFERENCE MANUAL PART NUMBER 99875525-1 DECEMBER 2010 REGISTERED TO ISO 9001:2008 1710 Apollo Court Seal Beach, CA 90740 Phone: (562) 546-6400 FAX: (562) 546-6301 Technical Support: (651) 415-6800 www.magtek.
Copyright© 2001-2010 MagTek®, Inc. Printed in the United States of America Information in this document is subject to change without notice. No part of this document may be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose, without the express written permission of MagTek, Inc. MagTek is a registered trademark of MagTek, Inc. REVISIONS Rev Number 1.
SOFTWARE LICENSE AGREEMENT IMPORTANT: YOU SHOULD CAREFULLY READ ALL THE TERMS, CONDITIONS AND RESTRICTIONS OF THIS LICENSE AGREEMENT BEFORE INSTALLING THE SOFTWARE PACKAGE. YOUR INSTALLATION OF THE SOFTWARE PACKAGE PRESUMES YOUR ACCEPTANCE OF THE TERMS, CONDITIONS, AND RESTRICTIONS CONTAINED IN THIS AGREEMENT. IF YOU DO NOT AGREE WITH THESE TERMS, CONDITIONS, AND RESTRICTIONS, PROMPTLY RETURN THE SOFTWARE PACKAGE AND ASSOCIATED DOCUMENTATION TO THE ABOVE ADDRESS, ATTENTION: CUSTOMER SUPPORT.
Table of Contents SECTION 1. PROPERTIES ......................................................................................................................... 1 CARDDATA .............................................................................................................................................. 1 COMMANDOUTPUT ................................................................................................................................ 1 DEVICEOPEN ......................................
SECTION 1. PROPERTIES CARDDATA Returns the Card Data buffer for the MTBluetooth control. Syntax CtlMTBluetooth1.CardData[ = value] The CardData property syntax has these parts: Part Description Value An String specifying the card data. Remarks CardData will have the magnetic stripe information from the last card read or output from SendData or SendDataWlen methods. Data Type String CARDDATAMASKED Returns the masked Card Data buffer for the MTBluetooth control. Syntax CtlMTBluetooth1.
MTBLUETOOTH.OCX Programming Reference Manual Data Type String DEVICEOPEN Sets or returns the status of the COM port. Syntax CtlMTBluetooth1.DeviceOpen[ = value] The DeviceOpen property syntax has these parts: Part Description Value A Boolean value specifying the status of the port. Remarks You can open the Port by setting the DeviceOpenproperty to True. You can close the port by setting the DeviceOpenproperty to False. Data Type Boolean DEVICEPORT Sets or returns the communications port number.
Properties The DeviceSerialNum property syntax has these parts: Part Description Value An String value specifying the device serial number. Data Type String DEVICESETTINGS Sets and returns the baud rate, parity, data bit, and stop bit parameters. Syntax CtlMTBluetooth1.DeviceSettings[ = value ] The DeviceSettings property syntax has these parts: Part Value Description A string expression representing the communications port settings, as described below.
MTBLUETOOTH.OCX Programming Reference Manual MPRINTDATA Returns the encrypted MagnePrint data from the last card read. Syntax [variable =] CtlMTBluetooth1.MPrintData The MPrintData property syntax has these parts: Part Description Value An String value specifying the MPrintData. Data Type String MPRINTLEN Returns the length of the encrypted MagnePrint data from the last card read. Syntax [variable =] CtlMTBluetooth1.
Properties NAME Sets and returns the control name. Syntax CtlMTBluetooth1.Name[ = value] The Name property syntax has these parts: Part Value Description A string value specifying the name of the control. Examples: Assume a MTBluetooth control is named “CtlMTBluetooth 1”. msgbox CtlMTBluetooth1.Name Displays “CtlMTBluetooth1” in a message box CtlMTBluetooth1.
MTBLUETOOTH.OCX Programming Reference Manual Data Type Variant TERMCHAR Sets or returns the character that indicates the end of a message to the reader. Syntax CtlMTBluetooth1.RXTimout[ = value] The RXTimout property syntax has these parts: Part Description Value A string value specifying the character that indicates the end of messages to the reader. Remarks Default value is carriage return. Data Type String TRACK1LENGTH returns the length of the track 1 data from the last card read.
Properties Long TRACK2LENGTH returns the length of the track 2 data from the last card read. Syntax [variable =] CtlMTBluetooth1.Track2Length The Track2Length property syntax has these parts: Part Description Value A Long value specifying the length of the track 2 data. Data Type Long TRACK2LENGTHMASKED returns the length of the track 2 masked data from the last card read. Syntax [variable =] CtlMTBluetooth1.
MTBLUETOOTH.OCX Programming Reference Manual TRACK3LENGTHMASKED returns the length of the track 1 masked data from the last card read. Syntax [variable =] CtlMTBluetooth1.Track3LengthMasked The Track3LengthMasked property syntax has these parts: Part Description Value A Long value specifying the length of the track 3 masked data.
SECTION 2. METHODS CLEARBUFFER Clears the CardData property. Syntax CtlMTBluetooth1.ClearBuffer() The ClearBuffer method syntax has no parameters. FINDELEMENT Returns particular information after parsing out specific card data based on parameters selected by the user. Syntax CtlMTBluetooth1.
MTBLUETOOTH.OCX Programming Reference Manual GETFNAME Returns the First Name from the track data. Syntax CtlMTBluetooth1.GetFName() The GetFName method syntax has no parameters. Remarks Returns the First Name on an ABA type ‘A’ or’ ‘B’ formatted card or returns an empty string. Data Type String GETLNAME Returns the Last Name from the track data. Syntax CtlMTBluetooth1.GetLName() The GetLName method syntax has no parameters.
Methods SENDDATA This function sends a string to the reader and returns a boolean value of true if the data was sent. Syntax CtlMTBluetooth1.SendData(Data as String) As Boolean The SendData method syntax has these parts: Part Data Description A string value that is sent to the reader. Remarks This Command does not require the length to be included in the command. The response can be accessed from the property CommandOutput.
MTBLUETOOTH.OCX Programming Reference Manual Part Data Description A string value that is the data sent to the reader. Response A Variant data type that contains the response from the reader to the data sent. Remarks This Command does not require the length to be included in the command. The response can also be accessed from the property CommandOutput. Data Type Boolean SENDDATASYNCWLEN This function sends a string and a variant to the reader and returns a boolean value of true if the data was sent.
SECTION 3. EVENTS ONDATARECEIVED This event fires when a card with magnetic data is passed through the reader or Send Data method is used. Syntax Sub CtlMTBluetooth1_ OnDataReceived (Data) Part Description Data A string value specifying the returned data.