BM70 Compact Demo Board User's Guide

Chapter 3. Using BM70 Firmware on BM-70-CDB

3.1 INTRODUCTION

The simplest method to program the BM70 module on the BM-70-CDB is to connect it to a PC host that supports USB CDC virtual COM (serial) ports.

Using BM70 firmware on CDB, user data can be transferred to a remote device over Transparent UART (Refer to Appendix G. “Transparent UART”). This section shows the procedure how to connect to a smartphone via the BM70 and open a Transparent UART data pipe to communicate with the smartphone app.

To interact directly with the BM70 module, the following software are needed:

  • PC Host supporting USB CDC virtual serial port
  • Terminal Emulator Application
    • Tera Term or CoolTerm is recommended.
  • Microchip SmartData App for iOS® Available on App Store® (for iOS).
  1. At the time of publication, the BM70 modules are released with firmware version 1.03. The latest firmware version for the BM70 is available on the BM70 product web page www.microchip.com/BM70.
  2. Refer to Appendix B. “Loading BM70 Firmware” for how to program firmware on BM70 and Appendix C. “BM-70-CDB Example Configuration” for how to configure the BM70 after programming the firmware.

3.2 CONNECTING THE BM-70-CDB TO A HOST PC

To connect the BM-70-CDB to a host PC, perform the following steps:

1

Configure the BM-70-CDB board as follows:

  • Pins 2 and 3 on J6 are closed to select USB power option
  • J8 is closed
  • Operating mode switch (Switch 2 on SW2) is in position 2 to enable Application Mode.

2

Connect the BM-70-CDB to the host PC using a micro USB cable.

  • Verify that the virtual COM port is enumerated on the host PC. If the COM port does not enumerate, the MCP2200 drivers may need to be downloaded to the host PC. The drivers can be downloaded from www.microchip.com/MCP2200 web page.
  • Press Reset button (SW1) and verify that LD2 is flashing slowly.

3

Start the terminal emulator software. In this example, Tera Term is used.

  • Configure the enumerated COM port as shown in Figure 3-1.
cdb-fig-3-1.png
Figure 3-1: COM PORT SETTINGS FOR TERMINAL EMULATOR

3.3 BM70 UART TRANSPARENT CONNECTION USING SMARTDATA APP

To establish a UART Transparent connection on the BM-70-CDB using the Bluetooth SmartData App, use the following steps:

1

On your Apple device, download and install the SmartData App by Microchip Technology Inc. from iTunes App Store.

2

Open a serial port terminal to the BM70 module using steps in 3.2 “Connecting The BM-70-CDB To A Host PC”.

3

Turn on Bluetooth and open the SmartData App on the iOS device.

4

SmartData will automatically scan for BLE modules in the vicinity upon opening. From the list of scanned devices, Click “BLE-SPP” (or any user-defined name) from the scan list in the SmartData App to connect to the module. Refer to Figure 3-2

cdb-fig-3-2.png
Figure 3-2: CONNECT TO BM70 MODULE USING SMARTDATA APP

5

After the connection is established with the BM70 module, go to Serial Data tab in the SmartData App.

6

Enter example text in the first dialog box of the Serial Data tab and click Send button. The example text should appear in the serial terminal emulator on the host PC.

7

Type any data on the serial terminal of the BM70 to send data from BM70 to the SmartData App. The data sent from the host PC is displayed in the Receive box of the SmartData app. Refer to Figure 3-3 and Figure 3-4.

cdb-fig-3-3.png
Figure 3-3: DATA EXCHANGE ON SMARTDATA APP WITH BM70 MODULE
cdb-fig-3-4.png
Figure 3-4: DATA EXCHANGE ON BM70 UART TERMINAL EMULATOR WITH SMARTDATA APP
© 2017 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.