前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Linux下搭建UbertoothOne环境

Linux下搭建UbertoothOne环境

作者头像
Linux兵工厂
发布2023-02-28 12:50:19
2.7K0
发布2023-02-28 12:50:19
举报
文章被收录于专栏:Linux兵工厂

相关链接

  • ubertoothone (https://greatscottgadgets.com/ubertoothone/)
  • ubertoothone (https://github.com/greatscottgadgets/ubertooth/)

环境说明

  • 操作系统: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(蓝牙基带库)库安装

  • github源码 (https://github.com/greatscottgadgets/libbtbb/releases/tag/2020-12-R1)

编译安装

代码语言:javascript
复制
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工具软件安装

  • github源码 (https://github.com/greatscottgadgets/ubertooth/releases/tag/2020-12-R1)

编译安装

代码语言:javascript
复制
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工具都安装成功了。

代码语言:javascript
复制
$ ubertooth-util -v
Firmware version: 2020-12-R1 (API:1.07)
本文参与 腾讯云自媒体同步曝光计划,分享自微信公众号。
原始发表:2022-11-11,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 Linux兵工厂 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 相关链接
  • 环境说明
  • libbtbb(蓝牙基带库)库安装
  • Ubertooth工具软件安装
  • 验证硬件连接
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档