BM70 Compact Demo Board User's Guide

Appendix C. BM-70-CDB Example Configuration

C.1 INTRODUCTION

This section shows a procedure for updating the configuration parameters of the BM70 module using theBM-70-CDB.

C.2 REQUIREMENTS

C.2.1 Hardware Requirements

  • BM-70-CDB.
  • Bluetooth-enabled smartphone
  • iPhone 4S or later version (it must support BLE) or
  • Android device running Android 4.3 or later version.
  • Windows host PC with USB port.
  • MicroUSB cable.

C.2.2 Software Requirements

Download and install the latest firmware and corresponding tools (Firmware_SoftwareTools_Vx_xx.zip) from the Microchip website:www.microchip.com/BM70.

  • Firmware update tool (BM7xBLE_IS187x_FlashUpdateTool.exe).
  • Firmware hex images (*.H00,*.H01,*.H02,*.H03).
  • Configuration tool (IS187x_102_BLEDK3_UI v100.xxx.exe).
  1. Ensure the latest firmware is downloaded to the IS1870 IC on theBM-70-CDB. The initial BLE firmware version programmed into BM70 modules in Microchip's manufacturing line at the time of releasing this product to market was version 1.03. The latest firmware is made available on the BM70 product web page on Microchip's website.
  2. Ensure that the exact version of the Configuration tool (UI Tool) matches the specific firmware version programmed into the IS1870 IC's Flash memory is used to configure the module. For ease of use, the UI tool, firmware and firmware update utility are all provided in a single zip file for each version of firmware released by Microchip to the website. The latest firmware for the BM70 module is not compatible with older versions of the Configuration tool. To ensure the correct version of firmware and tools are being used together, aFirmware_Software_Vx_xx.zip file is provided. This archive contains firmware along with the compatible software tools for this specific firmware version.
  3. In the following example, theBM-70-CDB with firmware version 1.06 and Configuration tool (IS187x_102_BLEDK3_UI v100.132.exe) is used.

C.3 SETTING CONFIGURATION PARAMETERS

The Configuration tool or User Interface (UI) tool is a PC based program, which enables the user to change the configuration parameters of the BM70 (for hardware details on configuration, refer toChapter 2. “Interface Description”). The following list provides some examples of the parameter settings that can be updated on the BM70 module using the UI tool (for the description of features, refer toChapter 1. “Overview”):

  • Device name
  • UART settings
  • BLE connection settings
  • Add or edit GATT service table.

Perform the following actions to update the UI parameter settings:

1

Open the UI tool and click Load, see Figure C-1. TheLoading Option window is displayed.

Download and unzip the contents of theFirmware_Soft-ware-Tools_Vx_xx.zip file, which is available at the Microchip website:www.microchip.com/BM70. The configuration tool is part of this zip file content and located under the sub-folder "ConfigurationTool/". In this demonstration, theIS187x_102_BLEDK3_UI v100.132.exe tool is used. This tool version corresponds to firmware version v1.06. This information is shown in by the file name,Firmware_SoftwareTools_Vx_xx.zip, where "Vx_xx" is the firmware version.

cdb-fig-c-1.png
FIGURE C-1: CONFIGURATION TOOL WINDOW

2

In theLoading Option window, clickLoad Text File to load default configuration parameters, see Figure C-2.

cdb-fig-c-2.png
FIGURE C-2: Loading Option Window

3

From theOpen dialog, select the default configuration parameter text file (provided with theFirmware_SoftwareTools_Vx_xx.zip file under the "ConfiguartionTool/" sub-folder) and then click Open, see Figure C-3.

cdb-fig-c-3.png
FIGURE C-3: OPEN DIALOG BOX TO SELECT DEFAULT CONFIGURATION

4

From theConfiguration Tool window, clickEdit to start editing the default parameters, see Figure C-4.

cdb-fig-c-4.png
FIGURE C-4: CONFIGURATION TOOL WINDOW - EDIT OPTION

5

From theMain Feature window, clickBLEDK and then clickOK, see Figure C-5.

cdb-fig-c-5.png
FIGURE C-5: MAIN FEATURE WINDOW

6

The UI tool displays a window with various configuration options (tabs) in tabular format. Click theSystem Setup tab, and in the Name fragment box, type “BM70_BLE” (or any user-defined name), as shown in Figure C-6.

Click theHelp button to get information related to UI parameters.

cdb-fig-c-6.png
FIGURE C-6: CONFIGURING PARAMETERS - SYSTEM SETUP

7

Click theLE Mode Setup tab and under the Advertising Data Setting section, select Device Name to advertise the device name, as shown in Figure C-7. This ensures that the name fragment is included in the advertising packet.

cdb-fig-c-7.png
FIGURE C-7: CONFIGURING PARAMETERS - LE MODE SETUP

8

ClickFinish. TheConfiguration Tool main window is displayed, see Figure C-8.

cdb-fig-c-8.png
FIGURE C-8: CONFIGURATION TOOL WINDOW

9

From theConfiguration Tool window, perform any one of these actions:

  • ClickSave to save the selected parameter settings as.txt or.hex files (for later production programming).
  • ClickExport to export a log file along with the parameters to a.txt file. The log file contains the settings of configuration parameters, which were edited.

10

To program the configuration parameters on the BM70 module, perform these actions:

  • Connect theBM-70-CDB to the host PC using the micro USB cable.
  • Verify that USB power is selected in J6 (close pins 2 and 3) and J8 (current measurement test point) is closed.
  • Verify that Switch 2 onSW2 is set to ON position.
  • PressSW1 (Reset) button and verify that LD2 is showing a non-flashing blue that indicates the BM70 is in Programming mode.
  • Go to theConfiguration Tool window and clickWrite to program the settings into the internal memory of the BM70 module, see Figure C-9.
cdb-fig-c-9.png
FIGURE C-9: WRITE CONFIGURATION
  • TheRead/Write Flash window is displayed. Select the values for COM Port and Baud rate (must be 115200 for the configuration to succeed), and then clickWrite, see Figure C-10.
cdb-fig-c-10.png
FIGURE C-10: COM SETTINGS TO WRITE CONFIGURATION
  • A message box will appear displaying the message “Write the UI configuration settings to EFLASH! Are you sure?”. ClickYes to write the configuration, see Figure C-11.
cdb-fig-c-11.png
FIGURE C-11: WRITE EFLASH ALERT
cdb-fig-c-12.png
FIGURE C-12: WRITE EFLASH FINISH