BlueZ
文章平均质量分 52
BlueZ
hello可乐
这个作者很懒,什么都没留下…
展开
-
sdptool
pi@raspberrypi:~ $ sdptool browse 44:AE:AB:B1:93:40Browsing 44:AE:AB:B1:93:40 …Service RecHandle: 0x10000Service Class ID List:“Generic Attribute” (0x1801)Protocol Descriptor List:“L2CAP” (0x0100)PSM: 31“ATT” (0x0007)uint16: 0x0001uint16: 0x000原创 2021-10-17 14:37:29 · 277 阅读 · 0 评论 -
bluez 编译
deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main non-free contrib rpideb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main non-free contrib rpiapt-get install libdbus-1-devapt-get install libglib2.0-devapt-get原创 2021-10-11 23:40:38 · 405 阅读 · 0 评论 -
bluez 命令
目录hciconfighciconfighciconfig - HCI device configuration utilityUsage:hciconfighciconfig [-a] hciX [command …]Commands:up Open and initialize HCI devicedown Close HCI devicereset Reset HCI原创 2021-10-10 17:21:20 · 247 阅读 · 0 评论 -
SDP协议实现
目录数据结构sdp_record_t 服务记录(service record)API服务记录sdp_attr_addsdp_attr_add_newsdp_attr_replacesdp_attr_removesdp_attr_pdusdp_attr_size数据结构sdp_record_t 服务记录(service record)typedef struct { uint32_t handle; /* Search pattern: a sequence of all UUIDs se原创 2021-10-06 00:09:10 · 392 阅读 · 0 评论 -
BlueZ API
目录SDPsdp_record_allocsdp_record_freeSDPsdp_record_alloc分配一个sdp_record_t内存sdp_record_free释放一个sdp_record_t内存原创 2021-10-05 23:09:10 · 301 阅读 · 0 评论 -
BlueZ数据结构
目录attrib-serverstruct gatt_channelstruct gatt_serverstruct group_elemattrib-serverstruct gatt_channelstruct gatt_serverstruct group_elem原创 2021-10-05 21:53:50 · 73 阅读 · 0 评论 -
attrib-server.c
目录一级目录一级目录原创 2021-10-05 21:30:55 · 70 阅读 · 0 评论 -
service
目录数据结构函数btd_service_connect数据结构函数btd_service_connectint btd_service_connect(struct btd_service *service){ struct btd_profile *profile = service->profile; char addr[18]; int err; if (!profile->connect) return -ENOTSUP; if (!btd_adapter_g原创 2021-10-05 19:57:26 · 78 阅读 · 0 评论 -
GATT客户端
目录数据结构struct descriptor数据结构struct descriptorstruct descriptor { struct characteristic *chrc; struct gatt_db_attribute *attr; uint16_t handle; bt_uuid_t uuid; char *path; struct async_dbus_op *read_op; struct async_dbus_op *write_op;};...原创 2021-10-05 18:40:01 · 189 阅读 · 0 评论