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

cross mob

How to configure and use BlueZ stack on AIROC™ CYW54591 – KBA237373

How to configure and use BlueZ stack on AIROC™ CYW54591 – KBA237373

100 replies posted First like given 25 solutions authored

Do the following to configure and initialize the BlueZ stack dependencies on the device:

1. Download the Jetson Nano Developer Kit SD card image from the Jetson Download Center webpage.


Figure 1 Jetson Nano Developer Kit SD card image download

2. Burn the image into SD card using a flashing tool such as Balena Etcher.

3. Create a directory named “firmware” under the /etc directory. For example:

$sudo mkdir /etc/firmware

4. Copy the CYW54591 HCD file (bcm43xx.hcd) to the /etc/firmware folder.

$sudo cp bcm43xx.hcd /etc/firmware

Contact the local FAE or Infineon support to get the latest .hcd file.

5. Download and install the BlueZ stack-related libraries and dependencies on NVIDIA Jetson Nano Developer Kit:

$cd ~

$wget http://www.kernel.org/pub/linux/bluetooth/bluez-5.37.tar.xz

$tar xvf bluez-5.37.tar.xz

$cd bluez-5.37

$sudo apt-get update

$sudo apt-get install -y libusb-dev libdbus-1-dev libglib2.0-dev libudev-dev libical-dev libreadline-dev

$ ./configure --enable-library

$ make

$ sudo make install

6. Run the following HCI commands to initialize the CYW54591 device and configure the BlueZ stack:

Attach a serial UART to the BT stack as a transport interface:

$ sudo hciattach /dev/ttyTHS2 bcm43xx 3000000 flow -t 20


Scan for Bluetooth connections using the hcitool utility:

$ hcitool scan


Configure the Bluetooth connection:

$ hciconfig -a hci0