Go to file
suguo.yao c08a167ccc 编译macos也不支持 2021-12-21 11:37:50 +08:00
computer 试着获取cpu serial 2021-12-20 16:08:08 +08:00
cpu 试着获取cpu serial 2021-12-20 16:08:08 +08:00
example 试着获取cpu serial 2021-12-20 16:08:08 +08:00
influx 使用influx批量写入性能提高好多好多 2021-12-17 12:12:21 +08:00
.gitignore 使用sqlite记录数据,同时交叉编译有问题,在arm上编译 2021-12-16 16:28:54 +08:00
Makefile 编译macos也不支持 2021-12-21 11:37:50 +08:00
go.mod 试着获取cpu serial 2021-12-20 16:08:08 +08:00
main.go 增加电源及连接提示 2021-12-17 15:57:36 +08:00
readme.md 编译macos也不支持 2021-12-21 11:37:50 +08:00

readme.md

蓝牙通讯例子

概述

希望用于通过蓝牙RSSI值判断距离的研究。

组件

  • github.com/paypal/gatt

部署

  • sudo hciconfig hci0 down
  • sudo service bluetooth stop

QA

  • Failed to open device, err:no supported devices available

    执行权限不够导致设备找不到记得sudo

  • 查看raspberrypi几位系统

    getconf LONG_BIT

  • 查看操作系统信息

    lsb_release -a

  • 直接查看系统的架构

    arch

  • gatt supports both Linux and OS X.

    不支持windows不支持windows不支持windows 交叉编译为macos也不支持!!!

意外收获

  • 在低性能硬件上的程序优化 golang 中使用channel提高并发能力influxdb中使用批量写入提高性能此二项性能提高从原CPU 100%变成小于20%