版权声明:免费赠送更多微商营销课程,请关注公众号[开店]! https://blog.csdn.net/gzw1623231307/article/details/56475439
linux下的bluetooth编程之环境构筑
本文将说明如何构建Linux下的bluetooth编程环境,其中包括软件和硬件。
硬件
- USB 2.0 Bluetooth Adapter
软件
- BlueZ (linux下的Bluetooth driver)
- ubuntu 16.04 LTS
ubuntu下bluez的安装方法
请参考这个文章,只需把文章里的bluez版本换成自己想安装的版本即可。
LE install of Bluez and Bluepy on the Raspberry Pi
查看自己Bluetooth硬件的地址方法
noah@ubuntu:~/work/blue$ sudo hcitool dev
[sudo] password for noah:
Devices:
hci0 00:09:DD:40:4E:BD
- 注意如果使用VMware的话,一定要把usb蓝牙加载到虚拟机上。