Texas Instruments LMX9838 Users Manual

LMX98xx Bluetooth Serial Port Modules - Quick Setup Guide
Item
Version
Hardware
LMX9830 Antenna is external
LMX9838 Antenna is internal
Firmware
V1.06 or later
v2.12 or later
Actual Firmware Release in production
V2.12
v2.12
LMX98xx Bluetooth Serial Port Modules - Quick Setup Guide
Introduction
The Texas Instruments Simply Blue modules are highly integrated radio, baseband controller and memory devices. All hardware and firmware is included to provide a complete solution from antenna through the complete lower and upper layers of the Bluetooth stack, up to the application including the Generic Access Profile (GAP), the Service Discovery Application Profile (SDAP), and the Serial Port Profile (SPP). The module includes a configurable service database to fulfil service requests for additional profiles on the host.
The LMX9830/LMX9838 is optimized to handle the data and link management processing requirements of a Bluetooth node. The firmware supplied within this device offers a complete Bluetooth stack including profiles and command interface. This firmware features point-to-point and point-to-multipoint link management supporting data rates up to the theoretical maximum over RFComm of 704 kbps. The internal memory supports up to 7 (3 for LMX9820A) active Bluetooth data links and 1 active SCO link.
This document will give a quick introduction into different usage scenarios of the LMX9830/LMX9838 Simply Blue Module. The guide refers to the deliverables you have received with the LMX9830DONGLE or LMX9838DONGLE. This document is based on:
Table 0-1. Part types and versions
Texas Instruments March 2007 Updated February 2014
Revision 1.4
FCC/IC Regulatory Compliance: FCC Part 15 Class A Compliant IC ICES-003 Class A Compliant
CompactRISC is a trademark of Texas Instruments. Bluetooth is a trademark of Bluetooth SIG, Inc. and is used under license by Texas Instruments.
© 2013 Texas
Instruments
Incorporated www.ti.com
www.ti.com
2
Revision 1.3
LMX98xx Bluetooth Serial Port Modules - Quick Setup Guide
Table of Contents
1.0 Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.1 Install Simply Blue Commander . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2 Install IVT Bluetooth Stack . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3 Setting up Hyperterminal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.0 Setup descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.1 Cable replacement with LMX9830/LMX9838 waiting for incoming connection . . . . . . . . . . . . . . . 6
2.1.1 Connect Hyperterminal to
2.1.2 Establish Link to the LMX9830/LMX9838 from the Bluetooth USB Dongle . . . . . . . . . . 10
2.1.3 Open Hyperterminal session on the virtual serial port . . . . . . . . . . . . . . . . . . . 15
2.1.4 Use Hyperterminal for simple chat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2.1.5 Transfer a file with
2.2 Initiate a Link with LMX9830/LMX9838 using Simply Blue Commander . . . . . . . . . . . . . . . . . . . . .19
2.2.1 Start Simply Blue Commander . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
2.2.2 Send “Restore to factory settings and “Reset” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
2.2.3 Find remote
2.2.4 Get remote RFComm Port for SPP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
2.2.5 Establish SPP Link . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
2.2.6 Create Hyperterminal connection for incoming virtual serial
2.2.7 Receiving Data in Simply Blue Commander. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
2.2.8 Send Data by using Send Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
2.2.9 Switching to transparent mode on the LMX9830/LMX9838 . . . . . . . . . . . . . . . . . . . . . . 37
2.2.10 “Generate BREAK to leave Transparent Mode” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
2.2.11 Release
device
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Link
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
LMX9830/LMX9838
ZModem
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
port
. . . . . . . . . . . . . . . . . . . 32
3.0 Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
3.1 LMX9830 or LMX9838 software users Guide, . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
3.2 Simply Blue Commander Users Guide Version 1.0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
4.0 Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Revision
1.3
3
www.ti.com
LMX 98xx Bluetooth Serial Port Modules - Quick Setup Guide
1.0 Installation
1.1 INSTALL SIMPLY BLUE COMMANDER
The Simply Blue Commander is an easy to use application which enables you to send single commands to the LMX9830/LMX9838 Evalboard. The built-in command and event interpreter generates an easy to read log of the UART traffic between the application and the LMX9830/LMX9838. For the installation of the program please refer to the “Simply Blue Commander User Guide. After installation please make sure the connection between PC and Board is set up and working. The screen should come up like shown in Figure 1-1 (screens shown are for LMX9838).
Figure 1-1. Simply Blue Commander
1.2 INSTALL IVT BLUETOOTH STACK
In case you do not have any other Bluetooth device for testing, each LMX9830/LMX9838 Evaluation board includes one BT USB Dongle. This dongle is a standard Bluetooth USB dongle.
In order to be able to work with a HCI based dongle, a host stack (windows stack) has to be installed on your PC. The dongle is shipped with the IVT Windows stack.
Please insert the CD delivered with the BT USB Dongle and follow the instructions of the setup. After the installation please plug the dongle into an available USB port. The PC should detect the dongle and install the necessary drivers.
Afterwards the stack is ready and should show up as the picture below. The task bar should include a blue/white colored Bluetooth sign.
NOTE: The IVT Stack is only necessary in combination with the Bluetooth USB Dongle. which can be used as counter­part for the LMX9830/LMX9838. It is not necessary to drive the LMX9830/LMX9838.
www.ti.com
4
Revision 1.3
LMX 98xx Bluetooth Serial Port Modules - Quick Setup Guide
1.3 SETTING UP HYPERTERMINAL
Simple serial port data transfers can be done by using a standard serial port terminal program like the Microsoft Hyperter­minal. The program is part of Windows XP.
Some of the demonstrations later on are based on hyperterminal. For this, please make sure Hyperterminal or a similar ter­minal program is available on the system.
Youll find hyperterminal within the Windows environment within the Start Menu under Start/All Programs/Accessories/ Communication”. Please see Figure 1-3 where to find Hyperterminal”.
Hyperterminal is not any longer offered with new operating systems like Windows Vista, 7 or 8. In such a case putty or some other free terminal programs can be used.
Figure 1-2. IVT Stack Startwindow
Revision
1.3
5
www.ti.com
LMX 98xx Bluetooth Serial Port Modules - Quick Setup Guide
Figure 1-3. Check availability of Hyperterminal
www.ti.com
6
Revision 1.3
LMX 98xx Bluetooth Serial Port Modules - Quick Setup Guide
2.0 Setup descriptions
The LMX9830/LMX9838 is a full Bluetooth node, by default configured to listen for incoming links. The command interface also offers the ability to configure the device and actively setup links.
The following examples shall give an quick introduction into the different functionalities of the LMX9830/ LMX9838.
2.1 CABLE REPLACEMENT WITH LMX9830/LMX9838 WAITING FOR INCOMING CONNECTION
By default the LMX9830/LMX9838 is configured to be visible (discoverable) and connectable for other devices. The service database offers one Serial Port Profile” (SPP) service called “COM1”.
In case the LMX9830/LMX9838 is connected by a remote device it will indicate the incoming link by a short event on the UART and then switch to transparent meaning it will not try to interpret incoming data on the UART directly to the Bluetooth interface. Incoming data on the Bluetooth interface are directly routed to the UART interface without framing them into Simply Blue command packets.
The demo is based on using Hyperterminal on both sides to create a simple serial port connection between two devices using the USB dongle as connecting device and LMX9830/LMX9838 as passive waiting device.
2.1.1 Connect Hyperterminal to LMX9830/LMX9838 Since the LMX9830/LMX9838 is waiting for an incoming connection automatically, no specific action has been taken on
this side. In order to monitor the incoming data on the UART any terminal program able to talk to a serial port can be used. This example uses the Hyperterminal application.
The following steps should be followed to connect Hyperterminal to the LMX9830/LMX9838 Evaluation Board.
2.1.1.1 Start Hyperterminal Start Hyperterminal as described in Section 1.3. Please make sure no other application (e.g. Simply Blue Commander) is
using the same port as the LMX9830/LMX9838 Evaluation Kit.
2.1.1.2 Create new connection Create a new connection by typing a connection name like SBDemo LMX9838”.
Figure 2-1. Create New Connection in Hyperterminal
Revision
1.3
7
www.ti.com
LMX 98xx Bluetooth Serial Port Modules - Quick Setup Guide
2.1.1.3 Choose correct comport
Since Hyperterminal is physically talking to a serial port, please choose the serial port the LMX9830/LMX9838 Evaluation Board is connected to, e.g. COM8 of your PC.
Figure 2-2. Choose correct comport
www.ti.com
8
Revision 1.3
LMX 98xx Bluetooth Serial Port Modules - Quick Setup Guide
2.1.1.4 Choose comport settings
Choose the correct comport settings for your LMX9830/LMX9838 Evaluation board. For example, we configure the UART setting on the board and the PC to 115200 bit/s, No Parity, 1 Stop bit. Please make sure Hardware Flow Control is select­ed in the dialog.
The LMX9830 UART setting is done by configuring pins OP3, OP4 and OP5. The setting for 115200 bit/s is OP3=1, OP4=1 and OP5=0
The LMX9838 UART setting is done by configuring pins OP4 and OP5. The setting for 115200 bit/s is OP4=1 and OP5=0
Figure 2-3. Choose comport settings
Revision
1.3
9
www.ti.com
LMX 98xx Bluetooth Serial Port Modules - Quick Setup Guide
2.1.1.5 Reset the LMX9830/LMX9838 Evaluation Board
Once the correct speed is chosen Hyperterminal should connect to the selected comport. Afterwards a hardware reset of the LMX9830/LMX9838 Evaluation board should cause a response as shown in Figure 2-4. The cryptic char­acters are specific hex values which are part of the Simply Blue interface event. The “0212 indicates the firmware version which might be different to your board. Please refer to “LMX9830 or LMX9838 Software Users Guide” for a detailed description of this event.
If this event is received the communication between Hyperterminal and the LMX9830/LMX9838 Evaluation board is confirmed.
Figure 2-4. Firmware Response after Reset
IMPORTANT: Please do not close the Hyperterminal window during the whole demonstration procedure.
www.ti.com
10
Revision 1.3
LMX 98xx Bluetooth Serial Port Modules - Quick Setup Guide
2.1.2 Establish Link to the LMX9830/LMX9838 from the Bluetooth USB Dongle
Since the LMX9830/LMX9838 is by default connectable and discoverable, it can be connected from any other Blue­tooth device. To establish the link from the BT USB Dongle, the IVT Stack needs to be started. Therefore please start the “Bluesoleil application. You should see the screen as demonstrated in Figure 1-2 on page 4. The Bluetooth icon in the taskbar needs to be blue and white. In case the background is grey instead of blue, the USB dongle has not been installed correctly.
2.1.2.1 Start Inquiry - Search for devices in range The first to be done is to search for the devices in range. To do so, please click on the yellow sun in the middle of the
window, which initiates the Bluetooth “Inquiry”. The LMX9830/LMX9838 Evaluation board should appear as Serial Port Device”.
Figure 2-5. Result of Inquiry procedure
Revision
1.3
11
www.ti.com
LMX 98xx Bluetooth Serial Port Modules - Quick Setup Guide
2.1.2.2 Service Discovery - Get Services of the LMX9830/LMX9838
Once the “Serial Port Device is detected, double click on the icon or the name of the device to start the service discovery on this device. If successful, the stack will indicate the available services by surrounding the specific icons with rectangles. The service discovery should result in the screen as shown in Figure 2-6, indicating a “Serial Port service”.
Figure 2-6. Service Discovery result
2.1.2.3 Establish Link to the LMX9830/LMX9838
To finally connect to the LMX9830/LMX9838 Evaluation board, double click on the “Serial Port icon if Serial Port Device has been selected. This will start the connection establishment process.
www.ti.com
12
Revision 1.3
LMX 98xx Bluetooth Serial Port Modules - Quick Setup Guide
Figure 2-7. Connect to the Bluetooth serial port
As result the stack will report the virtual serial port, which will be used for this serial port connection. In this example COM4 will be used. This means, any data sent to this COMPort will be sent over the Bluetooth link to the LMX9830/ LMX9838.
If the dialog is answered with Yes, the stack will automatically open the Bluetooth link to the LMX9830/LMX9838 as soon as any application opens COM4”.
Please confirm with Yes if thats desired. Otherwise the assignment of COM4 to the LMX9830/LMX9838 will be temporary.
Figure 2-8. Virtual Serial Port used for this connection
Revision
1.3
13
www.ti.com
LMX 98xx Bluetooth Serial Port Modules - Quick Setup Guide
2.1.2.4 Enter PIN for LMX9830/LMX9838
By default the LMX9830/LMX9838 asks for a PIN if the local SPP service is connected from a remote device. Therefore the following dialog will appear from the IVT Stack. Please type 0000”, which is the default PIN stored in the LMX9830/LMX9838 and press OK.
Figure 2-9. Enter PIN for LMX9830/LMX9838
Afterwards the Link between the two devices is established. The IVT Stack indicates the link by showing a line between the sun and the “Serial Port Device icon.
Figure 2-10. Bluetooth Connection Established
Loading...
+ 33 hidden pages