17
MindTree Limited 28-Oct-2010 Page 1 of 17 Accelerometer Application User’s Guide MSP-EXP430F5438+PAN1315EMK Accelerometer Demo Application User’s Guide SDK v. MSP_2560_E.8.0.31.2 1 November 2010 MindTree Limited, Global Village Campus, RVCE Post, Bangalore - 560 059 www.mindtree.com

MSP-EXP430F5438+PAN1315EMK Accelerometer …processors.wiki.ti.com/images/8/80/MSP-EXP430F5438-PAN...Microsoft Word - BlueMSP430_DemoApp_UserGuide_RC3_24.docx Author a0390879 Created

Embed Size (px)

Citation preview

  • MindTree Limited 28-Oct-2010 Page 1 of 17 Accelerometer Application Users Guide

    MSP-EXP430F5438+PAN1315EMK Accelerometer Demo Application

    Users Guide

    SDK v. MSP_2560_E.8.0.31.2

    1 November 2010 MindTree Limited,

    Global Village Campus, RVCE Post, Bangalore - 560 059 www.mindtree.com

  • MindTree Limited 28-Oct-2010 Page 2 of 17 Accelerometer Application Users Guide

    Table of Contents

    Revision History ............................................................................................................. 3

    Introduction ................................................................................................................. 4

    Figure 1: MSP-EXP430F5438 experimenter's board plugged in with the PAN1315ETU Bluetooth board. 4

    Requirements................................................................................................................ 5

    Hardware.................................................................................................................. 5

    Software................................................................................................................... 5

    Setup used for the SPP Demo package: ................................................................................. 6

    Figure 2: System setup for the accelerometer application..................................................... 6

    Figure 3: Connections available on the MSP-EXP430F5438 experimenter's board. ......................... 1

    Figure 4: Following pins of RF3 needs to be shorted. ........................................................... 8

    Sequence of steps to use the demo package........................................................................... 9

    USB driver installation for MSPEXP430F5438 Experimenter Board .................................................12

    Configuring COM PORT....................................................................................................13

    Abbreviations...............................................................................................................16

    References..................................................................................................................16

  • MindTree Limited 28-Oct-2010 Page 3 of 17 Accelerometer Application Users Guide

    Revision History

    Owner contact: [email protected]

    Version Change Description Date

    1 Initial Version. 11th March 2010

    2 Changes based on feedback from TI. Added additional screenshot for keyboard mapping package. 30th March 2010

    3 Updated to reflect new application incorporating automatic port detection package. 4th Oct 2010

    4 Updated screenshot showing option to manually override COM port detection. 29th Oct 2010

  • MindTree Limited 28-Oct-2010 Page 4 of 17 Accelerometer Application Users Guide

    Introduction

    The EtherMind Bluetooth SDK provides a software demo package that can be used with the MSP-EXP430F5438 experimenter's board and the PAN1315ETU Bluetooth connectivity board to demonstrate the SPP capability of the MSP430BT5190+CC2560 solution.

    This document describes the procedure needed to setup and demonstrate the demo application provided as part of the MSP430BT5190+CC2560 EtherMind SDK.

    Figure 1: MSP-EXP430F5438 experimenter's board plugged in with the PAN1315ETU Bluetooth connectivity board.

  • MindTree Limited 28-Oct-2010 Page 5 of 17 Accelerometer Application Users Guide

    Requirements

    Hardware

    I. MSP-EXP430F5438 experimenter's board http://focus.ti.com/docs/toolsw/folders/print/msp-exp430f5438.html

    II. PAN1315EMK Bluetooth evaluation kit http://focus.ti.com/docs/toolsw/folders/print/pan1315emk.html

    III. MSP-FET430UIF USB Debug Interface http://focus.ti.com/docs/toolsw/folders/print/msp-fet430uif.html

    Software

    I. MSP430BT5190+CC2560 EtherMind Bluetooth stack and SDK http://focus.ti.com/docs/toolsw/folders/print/mt-bt-sdk.html

    II. Keyboard mapping package executable (keyboard_generator_events.exe) is available as part of the SDK.

    III. PlanetPenguin Racer game http://planetpenguin-racer.en.softonic.com/

    IV. USB driver for MSP-EXP430F5438 experimenter's board http://focus.ti.com/docs/toolsw/folders/print/tusbwinvcp.html

  • MindTree Limited 28-Oct-2010 Page 6 of 17 Accelerometer Application Users Guide

    Setup used for the SPP Demo package:

    The demo setup uses two MSP-EXP430F5438 experimenter's boards connected with PAN1315ETU Bluetooth connectivity boards. The MSP-EXP430F5438 boards run the EtherMind stack. It is used to send the accelerometer data on the boards to each other over SPP. One of the experimenter's boards is connected to a PC using a USB connection. The USB driver software running on the PC maps the USB port into an appropriate COM port. The keyboard mapper package software on the PC reads the data from the COM port.

    Figure 2: System setup for the accelerometer application.

    Data over USB

    Device-1 running EtherMind stack

    Device-2 running EtherMind stack

    SPP Data

    PC with keyboard mapping package and USB to UART

    driver

  • MindTree Limited 28-Oct-2010 Page 7 of 17 Accelerometer Application Users Guide

    Figure 3: Connections available on the MSP-EXP430F5438 experimenter's board.

    LCD

    Switch S1 Joystick Switch S2

    LCD

    Power Selector switch (SW1)

    JP3 USB

    Connector

    LED1 & 2

    JP2 JP1 JTAG Connector

    RF3

    RF2

    RF1

  • MindTree Limited 28-Oct-2010 Page 8 of 17 Accelerometer Application Users Guide

    The PAN1315ETU connectivity board is connected at the RF1 & RF2 headers of the MSP-EXP430F5438 experimenter's board. To use the PAN1315ETU board with the MSP-EXP430F5438 experimenter's board, refer the figure below.

    Figure 4: Following pins of RF3 needs to be shorted.

  • MindTree Limited 28-Oct-2010 Page 9 of 17 Accelerometer Application Users Guide

    Sequence of steps to use the demo package

    1. Connect the right pins at the RF3 header on the MSP-EXP430F5438 experimenter's board as explained in Figure 4.

    2. Connect the PAN1315ETU board to each MSP-EXP430F5438 at RF1 & RF2 headers. 3. Now connect the Device-2 (Check Figure 2) to PC through USB. Make sure that USB driver for

    MSP-EXP430F5438 is installed on the PC using the steps mentioned in USB driver installation section"

    4. To power on the devices using USB or battery. a. Place SW1(Power Selector switch) at USB position to supply power using USB b. Place SW1 at BATT position to supply power using batteries

    Note: At least one device has to be connected to PC to display the accelerometer data. 5. Ensure that both Device 1 and Device 2 are powered on. 6. Once powered on, Bluetooth and device visibility is turned on automatically.

    The LED indications are explained below:

    LED Status Meaning

    Blinking Bluetooth powering on in progress

    ON Bluetooth powered ON LED1 (RED)

    OFF Bluetooth powered OFF

    Blinking Inquiry and Page Scan mode entered. Waiting for S1 key press on either device

    ON SPP data is being transferred LED2

    (YELLOW)

    OFF Initial condition before Bluetooth is switched ON

    7. LED1 starts blinking during initialization (red) and moves to solid ON after initialization is

    completed. 8. Inquiry and page scan mode is indicated by flashing of LED2 (Yellow). 9. PressS1ondevice1ordevice2forthelinktogetestablished.10. It starts looking for the devices starting with the name BlueMSPDemo and connects to it

    automatically. It takes approximately 10-15 seconds to connect. 11. Once link is established, LED2 turns to solid ON state (Yellow) and both the devices stop any type

    of scan and visibility is turned off. Accelerometer data readings are then sent over SPP in sniff mode between the two devices. Device1 sends data to Device2 and vice-versa.

    12. Configure this com port on the PC side as explained in the section Configuring COM Port. Run the keyboard event-mapper package on the PC. If no valid MSP COM ports are found on the device, the user is allowed to manually override and provide the port number through the com_port.txt file, placed in the current directory. The display will appear as below:

  • MindTree Limited 28-Oct-2010 Page 10 of 17 Accelerometer Application Users Guide

  • MindTree Limited 28-Oct-2010 Page 11 of 17 Accelerometer Application Users Guide

    13. If one or more valid MSP COM ports are found on the machine, the user is prompted to choose the

    port, or manually override and provide the port number through the com_port.txt file, placed in the current directory. The selected port is used for the connection and the application displays the data received on this port. Once the 2D-accelerometer data is received over the SPP connection, the application maps it to the right/left/up/down key events of the PC and also prints the SPP data on the console. The display will appear as shown below:

    14. Install and run the PlanetPenguin Racer game. The game play can be controlled using the accelerometer on Device-1.

    a. NOTE: Any application which takes UP/DOWN/LEFT/RIGHT as input and these events can be controlled using the accelerometer on device-1.

    15. SPP data transfer from any device can be paused or resumed by pressing the switch SW2 on that particular device.

  • MindTree Limited 28-Oct-2010 Page 12 of 17 Accelerometer Application Users Guide

    USB driver installation for MSPEXP430F5438 Experimenter Board

    For USB communication with the MSPEXP430F5438 Experimenter Board, a serial communication driver is necessary. To properly install the driver, follow these steps:

    1. Download the driver (swrc094.zip) from http://focus.ti.com/docs/toolsw/folders/print/tusbwinvcp.html

    2. Run setup.exe and complete the "TUSB3410 Single Driver Wrapper InstallShield Wizard." This extracts the driver files and installer into the Program Files directory.

    3. Navigate to the installation directory (by default it is C:\Program Files\Texas Instruments Inc\TUSB3410 Single Driver Installer\DISK1) and run setup.exe. Complete the "TUSB3410 Install Shield Wizard" to install the drivers.

    4. Plug in the mini-USB cable to the mini-USB port on the MSP-EXP430F5438 board (see Figure 3). Plug in the other end of the cable to a USB port on the host PC.

    5. To ensure that the USB driver installation was successful, open Device Manager under Start>Control Panel>System>Hardware>Device Manager. There should appear a MSP-EXP430F5438 USB Serial Port (COMxx) entry under "Ports (COM & LPT)" (the xx in COM identifies the enumeration of the COM port).

  • MindTree Limited 28-Oct-2010 Page 13 of 17 Accelerometer Application Users Guide

    Configuring COM PORT

    Right click on My Computer icon and select the Properties option from the drop down menu.

    In the Properties menu, select the Hardware tab Device Manager option as shown below:

  • MindTree Limited 28-Oct-2010 Page 14 of 17 Accelerometer Application Users Guide

    In the Device Manager window expand the Ports option and in the expanded list of ports, right click on the desired MSP430 port and click on the Properties option as shown below:

  • MindTree Limited 28-Oct-2010 Page 15 of 17 Accelerometer Application Users Guide

    In the Properties window select the Port Settings tab and configure the port with the values shown below:

  • MindTree Limited 28-Oct-2010 Page 16 of 17 Accelerometer Application Users Guide

    Abbreviations

    Abbreviation Reference

    API Application Programmers Interface

    BD_ADDR Bluetooth Device Address

    HCI Host Controller Interface

    L2CAP Logical Link Control and Adaptation Protocol

    SDDB SDP Database

    SDK Software Development Kit

    SDP Service Discovery Protocol

    SPP Serial Port Profile

    UART Universal Asynchronous Receiver Transmitter

    USB Universal Serial Bus

    References

    Sl. No.

    Reference

    1 MSP430BT5190+CC2560 Developer's Guide

    2 MSP-EXP430F5438 Experimenter Board Users Guide (SLAU263D)

  • MindTree Limited 28-Oct-2010 Page 17 of 17 Accelerometer Application Users Guide

    Information disclosed in this document is preliminary in nature and subject to change.

    MindTree Limited reserves the right to make changes to its products without notice, and advises customers to verify that the information being relied on is current.

    2010 MindTree Limited

    The MindTree logo design is a trademark of MindTree Limited. Bluetooth is a trademark owned by Bluetooth SIG, Inc. and licensed to MindTree Ltd.

    All other products, services, and company names are trademarks, registered trademarks or service marks of their respective owners.

    Contact: [email protected] www.mindtree.com

    United States MindTree Limited Suite #105 #2855 Kifer Road, Santa Clara CA 95051. USA. Tel: +1 408 986 1000 Fax: +1 408 986 0005

    Japan Yurakucho Building 11th Floor 1-10-1, Yurakucho, Chiyoda-Ku Tokyo, Japan 100-0006 Tel: +81 (3) 5219 2094 Fax: +81 (3) 5219 2021

    United Kingdom Regus House Windmill Hill Business Park Whitehill Way Swindon Wiltshire SN5 6QR UK. Tel: +44 (0) 1793 441418 Fax: +44 (0) 1793 441618

    Singapore Suite #12 Level 15, Prudential Tower 30 Cecil Street Singapore 049712. Tel: +65 232 2751, 52, 53 Fax: +65 232 2888

    India #42 27th Cross Banashankari II Stage Bangalore - 560 070 Karnataka. India. Tel: +91 80 671 1777 Fax: +91 80 671 4000