Linux兵工厂

V1

2022/11/23阅读:11主题:草原绿

Ubuntu16.04搭建UbertoothOne环境

Ubuntu16.04搭建UbertoothOne环境

相关链接

环境说明

  • 操作系统:Ubuntu 16.04.3 LTS
  • Ubertooth软件版本:ubertooth 2020-12-R1
  • Libbtbb版本:libbtbb 2020-12-R1
  • ubuntu环境安装支持:
    sudo apt install cmake libusb-1.0-0-dev libbluetooth-dev python3-numpy python3-setuptools

libbtbb(蓝牙基带库)库安装

编译安装

1.编译安装
tar zxvf libbtbb-2020-12-R1.tar.gz
cd libbtbb-2020-12-R1
mkdir build
cd build
cmake ..
make
sudo make install

sudo ldconfig

2.安装路径
[100%] Built target btbb
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/lib/pkgconfig/libbtbb.pc
-- Installing: /usr/local/lib/libbtbb.so.1.0
-- Installing: /usr/local/lib/libbtbb.so.1
-- Installing: /usr/local/lib/libbtbb.so
-- Installing: /usr/local/include/btbb.h

Ubertooth工具软件安装

编译安装

1.编译安装
tar zxvf ubertooth-2020-12-R1.tar.gz
cd ubertooth-2020-12-R1/host
mkdir build
cd build
cmake ..
make
sudo make install

sudo ldconfig

2.安装路径
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/lib/libubertooth.so.1.1
-- Installing: /usr/local/lib/libubertooth.so.1
-- Installing: /usr/local/lib/libubertooth.so
-- Set runtime path of "/usr/local/lib/libubertooth.so.1.1" to ""
-- Installing: /usr/local/include/ubertooth.h
-- Installing: /usr/local/include/ubertooth_callback.h
-- Installing: /usr/local/include/ubertooth_control.h
-- Installing: /usr/local/include/ubertooth_fifo.h
-- Installing: /usr/local/include/ubertooth_interface.h
-- Installing: /usr/local/bin/ubertooth-rx
-- Set runtime path of "/usr/local/bin/ubertooth-rx" to ""
-- Installing: /usr/local/bin/ubertooth-tx
-- Set runtime path of "/usr/local/bin/ubertooth-tx" to ""
-- Installing: /usr/local/bin/ubertooth-dump
-- Set runtime path of "/usr/local/bin/ubertooth-dump" to ""
-- Installing: /usr/local/bin/ubertooth-util
-- Set runtime path of "/usr/local/bin/ubertooth-util" to ""
-- Installing: /usr/local/bin/ubertooth-btle
-- Set runtime path of "/usr/local/bin/ubertooth-btle" to ""
-- Installing: /usr/local/bin/ubertooth-dfu
-- Set runtime path of "/usr/local/bin/ubertooth-dfu" to ""
-- Installing: /usr/local/bin/ubertooth-specan
-- Set runtime path of "/usr/local/bin/ubertooth-specan" to ""
-- Installing: /usr/local/bin/ubertooth-ego
-- Set runtime path of "/usr/local/bin/ubertooth-ego" to ""
-- Installing: /usr/local/bin/ubertooth-afh
-- Set runtime path of "/usr/local/bin/ubertooth-afh" to ""
-- Installing: /usr/local/bin/ubertooth-ducky
-- Set runtime path of "/usr/local/bin/ubertooth-ducky" to ""
-- Installing: /usr/local/bin/ubertooth-follow
-- Set runtime path of "/usr/local/bin/ubertooth-follow" to ""
-- Installing: /usr/local/bin/ubertooth-scan
-- Set runtime path of "/usr/local/bin/ubertooth-scan" to ""
-- Installing: /usr/local/bin/ubertooth-debug
-- Set runtime path of "/usr/local/bin/ubertooth-debug" to ""
-- Installing: /usr/local/share/man/man1/ubertooth-btle.1
-- Installing: /usr/local/share/man/man1/ubertooth-dump.1
-- Installing: /usr/local/share/man/man1/ubertooth-rx.1
-- Installing: /usr/local/share/man/man1/ubertooth-specan.1
-- Installing: /usr/local/share/man/man1/ubertooth-afh.1
-- Installing: /usr/local/share/man/man1/ubertooth-dfu.1
-- Installing: /usr/local/share/man/man1/ubertooth-ego.1
-- Installing: /usr/local/share/man/man1/ubertooth-scan.1
-- Installing: /usr/local/share/man/man1/ubertooth-util.1
-- Installing: /usr/local/share/man/man7/ubertooth.7
-- Installing: /etc/udev/rules.d/40-ubertooth.rules

验证硬件连接

插上ubertoothone,选择连接到ubuntu虚拟机,通过命令查看设备固件版本,输出以下信息说明btbb库和Ubertooth工具都安装成功了。

$ ubertooth-util -v
Firmware version: 2020-12-R1 (API:1.07)

分类:

后端

标签:

操作系统

作者介绍

Linux兵工厂
V1

高级Linux软件工程