Sample applications are provided in Python that demonstrate how to use the EZ-Serial application for common tasks. They can be run as is, or used a the basis for prototyping an end application. Before using any sample applications, the settings file needs to be set up.

The Python samples and tests are available from the Vela IF820 Firmware Repo

The applications are written in Python and designed to be run in Visual Studio Code.

Application Overview

Sample applications are provided for common applications.

Cable Replacement: Examples are provided for cable replacement with both Bluetooth® Classic and Low Energy. These examples show how to communicate with two Vela IF820 devices, or with Vela IF820 and a BT900 device.

Custom BLE behavior: Examples exist that show how to customize the advertisement and GATT table.

Low Power Mode: Examples exist that show how an application can implement low-power modes.

Setting up Visual Studio Code

Connection to PUART of the IF820 and to the DVK Probe are handled automatically by the sample applications. At the start of the script, the needed COM ports and DVK Probes are auto-discovered and setup for use. In the case of the applications where only one board is required, the script will pick the first board in the list. Some scripts require two boards, and the script will ensure that the required number of boards are present.

The exception to this are the sample applications that require a connection to a BT900 device. In this case the COM Port ID will need to be determined and setup in the settings.json file. The COM Port ID from the settings file will in turn be passed to the script via a command line argument from the launch.json or task.json file (depending on if running or debugging). Further reading on how to do this can be found in the links below.

See here for information on setting up the settings file.

See here for information on COM port IDs.

Running Applications

See Running Applications

Debugging Applications

See Debugging Applications

Additional Information

See DVK Probe for information on the DVK Probe.