Getting started with CSRmesh

CSRmesh® is a protocol that lets multiple devices communicate with each other over Bluetooth protocol. It also extends the accessible area even if the device is far away from the smartphone. Mesh devices can relay the messages to the destination receiver.

Here we will tell you how to develop a CSRmesh application with MtConnect02.


Buy a license

dk-usb-spi-10225-1aFirst, you need µEnergy® SDK. It is proprietary software, provides a Windows-based IDE which uses C language in development and many kinds of example codes. It also includes a µEnergy USB-SPI programmer board.

You may find a nearby distributor of Qualcomm to purchase. You will need to:

  1. Register a new account on csrsupport. Qualcomm requires a business email address. When you use webmail like Gmail, they will restrict the privileges.
  2. Buy a license key for µEnergy® SDK.
  3. Sign the NDA with Qualcomm.
  4. Make sure your distributor enables the privilege to download SDK to your account as the following section explains.

Search local distributor

Smart Lighting Kit


You then need a Smart Lighting Kit. It includes an MtConnect02 that carries mcu M903, MtAid04, the 3-color LED, and an MtAid01 extension board.

Order Smart Lighting Kit

When you get the kit, stack MtAid04, MtConnect02 and MtAid01 together, and connect the CSR USB-SPI board on the 7-pin socket of MtAid01.


The following links require an account with CSR support with granted access.

Develop IDE:
CSR µEnergy SDK v2.4.5.13

BLE Example Code:
CSRmesh 1.3 Example Applications


Install CSR µEnergy SDK, and open the application.螢幕快照 2015-12-01 上午10.53.19

Unzip the CSR 1.3 Example Applications. Today we use the example named CSRMeshLight. Use CSR µEnergy SDK to open the project file


We will modify a few lines about pin definitions of LED on MtAid04.%e8%9e%a2%e5%b9%95%e5%bf%ab%e7%85%a7-2016-11-21-%e4%b8%8b%e5%8d%883-40-34

螢幕快照 2016-11-21 下午5.38.55.png

Open iot_hw.h from the Navigator list on the left side of IDE. Find definition of macro LED_PIO_RED, and modify as shown below.

#define LED_PIO_RED   (9)
#define LED_PIO_GREEN (11)
#define LED_PIO_BLUE  (3)


Hit the button Run on the top menu (F5). It will then compile codes and program MtConnect02 via CSR USB-SPI board. The LED will start to blink blue.

(If it is a green color, the pin definition has not been modified.)


Now you have the first smart lighting device. You can control it from your smartphone.

Get it on Google Play

Install the Android Smart Lighting Demo, open and click on Scan and Connect. If you launch it for the first time, it will need you to enter a password which is used to secure the devices which will be paired later.

Click  . It will be listed nearby MtConnect02.

The LED will turn off if successful. Then, switch to the Color pad. You can change the color of LED via the color pad.



After pairing, the MtConnect02 device will belong to the smartphone. If another smartphone would like to take control, you first need to unpair it.

Click on Group and long press Light 1 which you’d like to unpair. Then, select Delete. The LED will be back to blinking.

The app is also available on iOS. The interface is a little different. We have a demo video here.

CSR resources

These are relative instructions and app source code for Android and iOS on CSR support.

The following links require an account with CSR support with granted access.

Smart Light Example Application Note PDF:
Light Application Note PDF

iOS Mesh App Example Code:
CSRmesh 1.3 iOS Application (Application Note PDF)

Android Mesh App Example Code:
CSRmesh 1.3 Android Application (Application Note PDF)

For an old version of MtAid01

If you have the previous version of MtAid01 which is a long board with two rows of pins, please follow the chart to connect the CSR USB-SPI board.