HCI

It is possible to program the Vela IF820 module with a specific HCI firmware version. The module can then be used as an HCI Bluetooth controller exposing an HCI UART interface.

Obtaining the HCI Firmware

Download the Vela IF820 HCI firmware at the following link:

Vela IF820 HCI firmware

Programming the HCI Firmware

The HCI firmware can be programmed with the Ezurio programming tools. See here for instructions for programming firmware.

Using the Vela IF820 HCI Module on Linux

Linux usually comes with all necessary tools preinstalled. Those are:

  • BlueZ (Official Linux Bluetooth/LE stack)
  • hciconfig, hciattach, hcitool (command line utility for configuring HCI devices and doing basic tasks)

Connect the Vela IF820 to your Linux PC. The IF820 USB dongle version can be directly plugged into a USB port. When using an IF820 DVK this is simply done by connecting a USB cable.

Open a command shell/terminal on Linux and enter sudo hciconfig. This will return the existing HCI devices. If the PC has an integrated Bluetooth/LE controller, this will be shown as hci0 device.

sudo hciconfig

For testing we shut down the integrated BT controller. (If there is no internal BT controller this step can be skipped.)

sudo hciconfig hci0 down

Next step is attaching the IF820 module to the Linux HCI subsystem by setting the proper serial port, baud rate and other parameters.

sudo hciattach ...

Another sudo hciconfig command should now display the new HCI device as hci1.

sudo hciconfig

Now the new Bluetooth/LE HCI device is ready to be used by an application. For testing we can use the command sudo hcitool -i hci1 lescan, which will scan for BLE advertisements from peripheral device in range.

sudo hciconfig