The EZ-Serial firmware platform for Vela IF820 series module implements a special CYSPP profile that provides a simple method to send and receive serial data over a BLE connection. This operational mode is separate from the normal command mode where the UART API protocol may be used. When CYSPP data mode is active, any data received from an external host will be transmitted to the remote peer, and any data received from the remote peer will be sent out through the hardware serial interface to the external host.

Central Role Setup

To put a device into central mode, pull the CP_ROLE pin low with a wire lead as shown below. CP_ROLE

Connect the Vela IF820 board to a terminal program.

Note: The EZ-Serial firmware reads the CP_ROLE pin on startup. It maybe necessary to reset or reboot the board to ensure the pin is read properly.

Peripheral Role Setup

The CP_ROLE pin is pulled up by default, so no special hardware setup is required.

Connect the Vela IF820 board to a terminal program.

Note: The peripheral advertises for 90s and then stops. It maybe necessary to reset or reboot the board if the device stops advertising.

Operation

Once the central and peripheral are booted, they will connect automatically and start CYSPP mode.

In the image below a terminal session was opened for both devices. The reset button was pressed on each device.

After the devices connected, “abcd” was typed on the peripheral terminal, and it was received by the central terminal.

Then “efgh” was typed on the central terminal, and it was received by the peripheral terminal.

CYSPP