Use, duplication, or disclosure by the Government is subject to restrictions as
set forth in subparagraph (c)(1)(ii) of the Rights in Technical Data and
Computer Software clause at DFARS 252.227-7013, or subparagraphs (c)(1)
and (2) of the Commercial Computer Software -- Restricted Rights clause at
FAR 52.227-19, as applicable.
Tektronix products are covered by U.S. and foreign patents, issued and
pending. Information in this publication supercedes that in all pre viously
published material. Specifications and price change privileges reserved.
Tektronix, Inc., P.O. Box 500, Beaverton, OR 97077
TEKTRONIX and TEK are registered trademarks of Tektronix, Inc.
Bluetooth is a trademark of Telefonaktiebolaget L M Ericsson, Sweden
HARDWARE WARRANTY
Tektronix warrants that the products that it manufactures and sells will be free from defects
in materials and workmanship for a period of three (3) years from the date of shipment. If a
product proves defective during this warranty period, Tektronix, at its option, either will
repair the defective product without charge for parts and labor, or will provide a
replacement in exchange for the defective product.
In order to obtain service under this warranty, Customer must notify Tektronix of the
defect before the expiration of the warranty period and make suitable arrangements for the
performance of service. Customer shall be responsible for packaging and shipping the
defective product to the service center designated by Tektronix, with shipping charges
prepaid. Tektronix shall pay for the return of the product to Customer if the shipment is to
a location within the country in which the Tektronix service center is located. Customer
shall be responsible for paying all shipping charges, duties, taxes, and any other charges for
products returned to any other locations.
This warranty shall not apply to any defect, failure or damage caused by improper use or
improper or inadequate maintenance and care. Tektronix shall not be obligated to furnish
service under this warranty a) to repair damage resulting from attempts by personnel other
than Tektronix representatives to install, repair or service the product; b) to repair damage
resulting from improper use or connection to incompatible equipment; c) to repair any
damage or malfunction caused by the use of non-Tektronix supplies; or d) to service a
product that has been modified or integrated with other products when the effect of such
modification or integration increases the time or difficulty of servicing the product.
THIS WARRANTY IS GIVEN BY TEKTRONIX IN LIEU OF ANY OTHER
WARRANTIES, EXPRESS OR IMPLIED. TEKTRONIX AND ITS VENDORS
DISCLAIM ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR
FITNESS FOR A PARTICULAR PURPOSE. TEKTRONIX’ RESPONSIBILITY
TO REPAIR OR REPLACE DEFECTIVE PRODUCTS IS THE SOLE AND
EXCLUSIVE REMEDY PROVIDED TO THE CUSTOMER FOR BREACH OF
THIS WARRANTY. TEKTRONIX AND ITS VENDORS WILL NOT BE LIABLE
FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES IRRESPECTIVE OF WHETHER TEKTRONIX OR THE VENDOR
HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES.
SOFTWARE WARRANTY
Tektronix warrants that the media on which this software product is furnished and the
encoding of the programs on the media will be free from defects in materials and
workmanship for a period of three (3) months from date of shipment. If a medium or
encoding proves defective during the warranty period, Tektronix will provide a
replacement in exchange for the defective medium. Except as to the media on which this
software product is furnished, this software product is provided “as is” without warranty of
any kind, either express or implied. Tektronix does not warrant that the functions contained
in this software product will meet Customer’s requirements or that the operation of the
programs will be uninterrupted or error-free.
In order to obtain service under this warranty, Customer must notify Tektronix of the
defect before the expiration of the warranty period. If Tektronix is unable to provide a
replacement that is free from defects in materials and workmanship within a reasonable
time thereafter, Customer may terminate the license for this software product and return
this software product and any associated materials for credit or refund.
THIS WARRANTY IS GIVEN BY TEKTRONIX IN LIEU OF ANY OTHER
WARRANTIES, EXPRESS OR IMPLIED. TEKTRONIX AND ITS VENDORS
DISCLAIM ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR
FITNESS FOR A PARTICULAR PURPOSE. TEKTRONIX’ RESPONSIBILITY
TO REPLACE DEFECTIVE MEDIA OR REFUND CUSTOMER’SPAYMENTIS
THE SOLE AND EXCLUSIVE REMEDY PROVIDED TO THE CUSTOMER
FOR BREACH OF THIS WARRANTY. TEKTRONIX AND ITS VENDORS WILL
NOT BE LIABLE FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR
CONSEQUENTIAL DAMAGES IRRESPECTIVE OF WHETHER TEKTRONIX
OR THE VENDOR HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH
DAMAGES.
BPA100 Series Bluetooth Protocol Anal yzer Programmer Manual
Preface
This is the Programmer Manual for the BPA100 Series Bluetooth
Protocol Analyzer. This manual provides information about the
application programming interface of the BPA100 Series Bluetooth
Protocol Analyzer.
Related Manuals
Table i: Related manuals
LanguageTypePart number
English
Chinese
Japanese
EnglishBPA100 Series Bluetooth Proto-
EnglishBPA100 Series Bluetooth Proto-
BPA100 Series Bluetooth Protocol Analyzer Installation Manual
col Analyzer Software Version
2.3 User Manual
col Analyzer Software Version
2.3 Application Programming
Interfacer Manual
071-1121-00
071-1128-00
071-1129-00
BPA100 Series Bluetooth Protocol Anal yzer Programmer Manual
xi
Preface
Contacting Tektronix
Phone1-800-833-9200*
AddressTektronix, Inc.
Department or name (if known)
14200 SW Karl Braun Drive
P.O. Box 500
Beaverton, OR 97077
USA
Web sitewww.tektronix.com
Sales
support
Service support
Technical
support
*This phone number is toll free in North America. After office
hours, please leave a voice m ail message.
Outside North America, contact a Tektronix sales office or
distributor; see the Tektronix web site for a list of offices.
1-800-833-9200, select option 1*
1-800-833-9200, select option 2*
Email: techsupport@tektronix.com
1-800-833-9200, select option 3*
6:00 a.m. -- 5:00 p.m. Pacific time
xii
BPA100 Series Bluetooth Protocol Anal yzer Programmer Manual
Getting Started
Introduction
The Application Programming Interface (API) of the BPA100 Series
Bluetooth Protocol Analyzer is based on the Microsoft Component
Object Model (COM). The API allows you to control the protocol
analyzer with a user program on the Server or Remote Client.
Figure 1--1 depicts various ways the protocol analyzer can be
controlled.
Figure 1- 1: Controlling BPA100 Series Bluetooth Protocol Analyzer
Protocol analyzer Server: Computer where Tektronix Bluetooth
Protocol Analyzer device is connected and Tektronix Bluetooth
Protocol Analyzer application is installed.
Remote Clients: Computer that tries to connect to the Tektronix
Bluetooth Protocol Analyzer device connected to the Protocol
analyzer Server.
The Protocol analyzer application is called the server and the user
program is called the client.
BPA100 Series Bluetooth Protocol Anal yzer Programmer Manual
1- 1
Introduction
The following three cases are shown in Figure 1--1:
HCase 1 shows the user program running on the server and
HCase 2 shows the user program running on another computer and
HCase 3 shows the user program running on a UNIX workstation
The user program can be written in any language or programming
environment that supports the Microsoft Component Obje ct Model
(COM). Some examples are Visual C++, Visual Basic, and LabView.
communicating with the Protocol analyzer application using
Microsoft COM.
communicating with the Protocol analyzer using Microsoft
DCOM (Distributed COM).
and communicating with the Protocol analyzer application using
DCOM provided by a third party vendor.
General Characteristic
The following is a list of the general characteristics of the API:
HAPI is consistent with programming interfaces exported by othe r
Windows applications.
HAll interfaces exported by the server are dual interfaces, which
supports static and dynamic binding.
HThe Protocol analyzer application must be initialized before a
client tries to connect. This includes dismissing any errors that
occur at startup time.
NOTE. If a client attempts to connect before the appl ication is
initialized, an error message appears indicating access is denied.
HA client either launches a session automatically or connects to an
existing session of the server, if there is one.
HYou must launch the serve r before t he remote client can connect
because Microsoft Windows 98 does not allow a client running
on a remote host to launch a session on the serve r automatically.
1- 2
BPA100 Series Bluetooth Protocol Anal yzer Programmer Manual
Introduction
HClients hide the server’s window using the programming
interface. If the window is displayed, you can directly interact
with the server and the stat us bar of the main window displays
the connection status.
HThe Protocol analyzer server continues to run after a client has
disconnected. The serve r window is always visible even when
clients are not connected.
HAPI operates within the main thread of the application.
HAPI supports multiple clients. Ensure that the clients do not
interfere with one another.
HThere is no provision for an API client to block other clients.
Software Requirements
API is supported by Tektronix Bluetooth Protocol Analyzer V2.2.1
or higher. If you have an older version of the Tektronix Bluetooth
Protocol Analyzer application, you must upgrade to a recent version.
You can download the new version of t he Tektronix Bluetooth
Protocol Analyzer application from the Tektronix Web site:
http://www.tektronix.com/bpa_support.
BPA100 Series Bluetooth Protocol Anal yzer Programmer Manual
1- 3
Introduction
1- 4
BPA100 Series Bluetooth Protocol Anal yzer Programmer Manual
Objects and Interfaces
Overview
The application programming interface for the Protocol analyzer
consists of the following objects:
HBPAApplication. You can create a BPAApplication object to
connect to the application and obtain a reference to additional
objects. The BPAApplication object exports a single interface
called IBPAApplication.
HBPASystem. The BPASystem object provides methods for
controlling most of the functionality in the Tektronix BluetoothProtocol Analyzer GUI. The BPASystem object exports a single
interface called IBPASystem.
HBPASystemEvents. The BPASystemEvents object provides
methods for capturing events fired by the BPA application. The
BPASystemEvents object exports a single interface called
IBPASystemEvents.
HBPAAnalyzer. The BPAAnalyzer object provides methods for
analyzing the log file provided by the Protocol analyzer
Analyzer. The BPAAnalyzer object exports a single interface
called IBPAAnalyzer.
HBPAHCISimple. The BPAHCISimple object provides methods
for sending or receiving HCI command. The BPAHCISimple
object exports a single interface called IBPAHCISimple.
HBPAHCISimpleEvents. The BPAHCISimpleEvents object
provides methods for capturing events fired by the Protocol
analyzer hardware. The BPAHCISimpleEvents object exports a
single interface called IBPAHCISimpleEvents.
By default, all methods are synchronous and return the values after
completing an operation.
BPA100 Series Bluetooth Protocol Anal yzer Programmer Manual
1- 5
Objects and Interfaces
The object hierarchy is depicted by Figure 1--2.
Figure 1- 2: Object hierarchy
1- 6
BPA100 Series Bluetooth Protocol Anal yzer Programmer Manual
Setting up the API
Setting Up the API
In the following procedures, <install directory> refers to the
directory where the API client application has been installed on your
client machine. The install directory is C:\Program Files\TektronixBluetooth Protocol Analyzer by default.
The type library to be used with the API is BPA100.tlb. After you
finish the following setup procedure, this file is located in C:\Pro-
gram Files\ Tektronix Bluetooth Protocol Analyzer\System\API
and in the <install directory>\System\API on your API client.
You have two methods of using the API with your client application:
HYou can run the cli ent application locally on the server where
your Protocol Analyzer application is running. No special
setup is required once the Protocol Analyzer application is
installed. The following section, Running a client appl icationon the server machine, shows how you c an run a client
application on the server.
HYou can run your client application rem otely across the
network. In this case, both the server and the remote client
require special setup procedures. Refer to the section,
Running a Client Application across the Network, on
page 2--3.
BPA100 Series Bluetooth Protocol Anal yzer Programmer Manual
2- 1
Setting Up the API
Running a Client Application on the Server Machine
If you are running a client application on the Server, no special set up
is required if the Tektronix Bluetooth Protocol Analyzer applicati on
has already been installed. You can just run the client application
that you have created.
To verify that a client application can conne ct to the Protocol
Analyzer Server, do the following steps:
1. Start the Protocol Analyzer application on the computer where
the Protocol Analyzer device is connected.
2. Run testclient.exe from <install directory>\Samples\API
Samples\VC++\test client.
2- 2
3. Click the connect button to check whether the client appli cation
connects to the Protocol Analyzer Server.
4. Click Exit.
BPA100 Series Bluetooth Protocol Anal yzer Programmer Manual
Setting Up the API
Running a Client Application across the Network
If you want to run the client application remotely across the network,
you must set up the API on the server machine and the client
machine. Use the following procedures as appropriate:
HSetting up the API on the Server Machinepage 2--3
HSetting up the Client Machine on Windows 2000/NT page 2--20
HSetting up the Client Machine on Windows 98page 2--37
HSetting up the Client Machine on Windows 95page 2--46
HSetting up the Client Application on Other
Platformspage 2--54
Setting up the API on the Server Machine
Follow these steps to set up the API on the server:
1. Install and configure TCP/IP.
NOTE. If you have difficulty in configuring the network setup, contact
your system administrator.
2. Select the appropriate access type. You may choose share-level
access (page 2 --4) or user-level access (page 2--12) to the server
as provided by Microsoft Windows.
NOTE. For the API to work with share-level access, authentication is
turned off and any COM client application can call in to a COM
server running on the server.
BPA100 Series Bluetooth Protocol Anal yzer Programmer Manual
2- 3
Setting Up the API
Share-Level Access
Follow these steps to set up the server to be shared among different
users on a network:
1. Click Start> Run. The Run dialog box appears.
2. Type dcomcnfg in the Open field and click OK. The Distributed
COM configuration properties box appears.
2- 4
BPA100 Series Bluetooth Protocol Anal yzer Programmer Manual
Loading...
+ 186 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.