Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob

UART-to-BLE bridge using the EZ-BLE™ Creator Module

UART-to-BLE bridge using the EZ-BLE™ Creator Module

Anonymous
Not applicable

Is it possible to implement a UART-to-BLE bridge using the EZ-BLE™ PRoC™ Module (CYBLE-022001-00)?

- Yes, it is 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?

Cypress provides two simple example projects to demonstrate this application.

 

Get to know in this article: 

1. UART-to-BLE Peripheral Example Project;

2. UART-to-BLE Central Example Project;

2.1. Location of Example Projects;

2.2 How to download the Example Projects?

3. Supported Kits and Software

 

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

Td 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.he SCB in the EZ-BLE module is configured as a UART terminal. The BLE component is configured for the GAP central an

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.

2.1. Location of Example Projects

The example projects, along with the user guide, are located here.

2.2. How to download 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.


pastedImage_11.png

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

pastedImage_12.png

3. 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.

 

Version: *B

Translation - Japanese: EZ-BLE™ Crearotrモジュールを使用したUART-to-BLEブリッジ - KBA97015 - Community Translated (JA)

0 Likes
5773 Views