Linux驱动
文章平均质量分 60
驱动
Tim-Cheng
这个作者很懒,什么都没留下…
展开
-
【Linux】【蓝牙】如何基于Linux实现Beacon与Beacon Scan
一、背景最近在思考如何用最精简的方式实现beacon与beacon scan二、实现方式1,mgmt实现逻辑a: 扫描命令:{ "find", "[-l|-b] [-L]", cmd_find, "Discover nearby devices" },{ "find-service", "[-u UUID] [-r RSSI_Threshold] [-l|-b]", cmd_find_service, "Discover nearby service" },{ "stop-find",原创 2021-03-27 15:58:32 · 1356 阅读 · 0 评论 -
【BlueZ】【蓝牙】跨平台实现Ble Master&Slave&Mesh 之Linux篇-1
一,前述1,上一篇讲述了如何通过Windows实现蓝牙应用,该方式可适用于Windows/Linux/Macos等场景。([https://blog.csdn.net/u014028690/article/details/113943287?spm=1001.2014.3001.5502]),该方式比较特殊的一点,用了指定的蓝牙dongle设备,也规避了不同平台产生的差异而导致的问题。2,但是市面上更多的是WIFI+BT/BLE combo的芯片。针对该类设备,各个厂商都遵循统一的HCI接口以及适配协议原创 2021-02-26 15:43:44 · 2653 阅读 · 1 评论 -
【BlueZ5】 板载驱动移植全过程,实现Ble Slave(Dbus版本)
一,编译依赖库与必要应用1,准备编译工作之前,需要了解什么是buildroot,跨平台的库与文件都通过buildroot来实现。About Buildroot:Buildroot is a tool that simplifies and automates the process of building a complete Linux system for an embedded s...原创 2020-03-13 23:34:44 · 2133 阅读 · 7 评论 -
【Bluez5】Bluez应用遇到的问题以及安装方式
运用SDK过程中遇到的问题1,如何安装环境(如下为PC Linux平台安装):wget http://www.kernel.org/pub/linux/bluetooth/bluez-5.52.tar.xztar xvf bluez-5.52.tar.xzcd bluezsudo apt-get install libusb-dev libdbus-1-dev libglib2.0-de...原创 2020-03-14 12:41:40 · 831 阅读 · 0 评论 -
【BlueZ5】如何用Android Bionic工具链编译blueZ5
一,关于Android Bionic1,Bionic是什么Bionic是Android平台为了使用C/C++进行原生应用程序开发所有提供的POSIX标准C库。它是Google为Android操作系统提供的BSD标准C库的衍生库。同时Bionic是专门为移动计算而精心设计的,针对移动设备上有限的CPU周期和可用内存进行了裁剪以提高工作效率。2,Bionic兼容性怎么样Bionic尽管是C标准库,但是它不以任何方式与其它C库二进制兼容。也就是说Bionic和其它C库不兼容,无法进行交叉编译和相互引用。原创 2021-02-22 11:33:51 · 776 阅读 · 2 评论 -
【BlueZ5】 如何用MGMT接口实现ble slave
如何用BlueZ MGMT接口实现Ble Slave一,关于MGMT接口1,为什么有MGMT接口In short, it’s a new interface for user space Bluetooth components (like bluetoothd) to talk to the kernel and it aims to replace the existing raw HCI sockets.关于这部分信息可以访问:http://www.bluez.org/the-manage原创 2020-07-10 11:25:50 · 3660 阅读 · 6 评论 -
【工具】Bash教程入门了解
Bash教程入门了解Shell脚本与Windows/Dos下的批处理相似,也就是用各类命令预先放入到一个文件中,方便一次性执行的一个程序文件,主要是方便管理员进行设置或者管理用的。但是它比Windows下的批处理更强大,比用其他编程程序编辑的程序效率更高,它使用了Linux/Unix下的命令。 换一种说法也就是,shell script是利用shell的功能所写的一个程序,这个程序是使用纯文...原创 2020-03-22 19:14:31 · 417 阅读 · 0 评论