UART-to-BLE Bridge Using the EZ-BLE™ Creator Module – KBA97015

Version: *B

 

Question:

Is it possible to implement a UART-to-BLE bridge using the EZ-BLE™ PRoC™ Module (CYBLE-022001-00)? Does Cypress provide example projects to demonstrate this application?

 

Answer:

Yes, it is possible to implement a UART-to-BLE bridge using the EZ-BLE PRoC Module (CYBLE-022001-00). Cypress provides two simple example projects to demonstrate this application.

 

UART-to-BLE Bridge Example Projects

 

  1. UART-to-BLE Peripheral Example Project

    Untitled.png
    The Serial Communication Block (SCB) in the EZ-BLE module is configured as a UART terminal. The BLE component is configured for general access profile (GAP) peripheral and generic attribute profile (GATT) server roles. A custom BLE service – Server_UART – is implemented in the project, which makes use of two custom characteristics:

    §  Server_UART_Rx_data: To receive data from any central device via write without response commands.

    §  Server_UART_Tx_data: To transmit data to any central device via notifications.

    The peripheral project can be tested with:

    §  The CySmart PC tool, connected to the CySmart USB dongle (CY5670), emulating a BLE central device or

    §  The UART-to-BLE central example project, described below, programmed on a BLE Pioneer Kit and acting as the BLE central device.

  2. UART-to-BLE Central Example Project
    Untitled.png
    The SCB in the EZ-BLE module is configured as a UART terminal. The BLE component is configured for the GAP central and GATT client roles. The central device discovers the custom service and characteristics on the peripheral side (as explained in the UART-to-BLE Peripheral Example Project section), and uses the corresponding handles to transmit and receive data.

    The example projects mentioned here can be programmed and debugged using the EZ-BLE Creator Evaluation Board (CYBLE-022001-EVAL) and the BLE Pioneer Kit (CY8CKIT-042-BLE). The USB-UART BLE Pioneer Kit or any other external transceiver can be used for UART communication.

    Location of Example Projects
    The example projects, along with the user guide, are located at: https://github.com/cypresssemiconductorco/EZ-BLE_PRoC_Module/tree/master/Example_projects/UART_to_BLE

    Downloading the Example Projects
    The following steps should be followed to download the complete set of projects (UART-to-BLE Peripheral and UART-to-BLE Central) and user guide:

      1. Go to the example project page on github.com (location in above section) and select “UART_to_BLE.zip” as shown in the figure below.


    2.  Select “Raw” button, as shown in the following figure. All the project files and user guide will be downloaded as a .zip file.


          Supported Kits and Software

Project

PSoC Creator Version

Compiler

Development Kits

V3.1 SP2

V3.1 SP1 or lower

GCC

MDK

RVDS

CY8CKIT-042 with CYBLE-022011-EVAL

CY8CKIT-042 with PRoC BLE Module (CY5671 or CY5674)

CY8CKIT-042 with PSoC 4 BLE Module (CY8CKIT-142 or CY8CKIT-141)

UART-to-BLE peripheral project

Yes

No

Yes

Yes

Yes

Yes

No

No

UART-to-BLE central project

Yes

No

Yes

Yes

Yes

Yes

No

No

 

Note: The example projects support up to 115200 kbps baud rate on the Pioneer kit; higher baud rates are supported if an external UART transceiver is used. The throughput of the bridge project is dependent on the environment and quality of the BLE link.