- 博客(21)
- 资源 (2)
- 收藏
- 关注
原创 BLE音频规范二:BAP
The Basic Audio Profile (BAP) defines procedures for Audio Stream control by using the Generic Attribute Profile (GATT) and the Generic Access Profile (GAP) for devices that want to use Bluetooth Low Energy (LE) in audio-related scenarios (e.g., sending or
2023-01-10 20:34:46
454
原创 bluez profile连接流程分析
/* Search for mandatory uuids */// SDP 搜索的基础UUIDstatic const uint16_t uuid_list[] = { L2CAP_UUID, PNP_INFO_SVCLASS_ID, PUBLIC_BROWSE_GROUP, 0};//profile发起连接之前,首先要有知道对方的支持的特性device_browse_sdp() //sdp循环搜索上述3组UUID,首先选择第一个L2CAP_UUID sdp_uuid16_c...
2022-05-25 00:14:47
413
原创 BlueZ kernel的连接机制分析
struct hci_conn *conn;状态机:hci_acl_create_connection conn->state = BT_CONNECT;hci_conn_complete_evt conn->state = BT_CONFIG; hci_remote_ext_features_evthci_remote_ext_features_evt conn->state = BT_CONNECTED;//底层连接通道建立后:hci_
2022-05-18 16:11:31
491
原创 BlueZ BLE ATT 读写分析
read_info_complete adapter_register btd_gatt_database_new database->le_io = bt_io_listen(connect_cb, NULL, NULL, NULL, &gerr, BT_IO_OPT_SOURCE_BDADDR, addr, ...
2022-05-18 15:16:09
850
原创 blueZ 笔记一
device_probe_profiles btd_profile_foreach(dev_probe, &d); dev_probe probe_service struct btd_service *service; service = service_create(device, profile);//根据profile(a2dp sink/source/arvcp ct/tg)创.
2021-04-04 16:18:15
799
原创 bluedroid connect
bta_sys_register(BTA_ID_DM, &bta_dm_reg ); bta_sys_cb.reg[id] = (tBTA_SYS_REG *) p_reg; //bta_sys_cb.reg[BTA_ID_DM] = (tBTA_SYS_REG *) &bta_dm_reg; bta_sys_cb.is_reg[id] = TRUE; //bta_sys...
2018-10-08 14:34:08
206
原创 bluedroid alarm
alarm_new("btif_rc.rc_play_status_timer"); alarm_new_internal(name, false); if (!alarms) //static list_t *alarms; lazy_initialize() alarms = list_new(NULL); if (!timer_create_internal(C...
2018-10-07 14:36:13
516
原创 bluedroid thread
bluedroid的消息传递机制1 创建一个队列:btu_bta_msg_queue = fixed_queue_new(SIZE_MAX); fixed_queue_t *ret = osi_calloc(sizeof(fixed_queue_t)); //队列里面最大的容量 ret->capacity = capacity; //链表 ret->list = li...
2018-10-07 12:15:52
423
1
原创 蓝牙笔记(一)
名词介绍:4种蓝牙配对方式,通俗地说:Numeric Comparison:配对双方都显示一个6位的数字,由用户来核对数字是否一致,一致即可配对。例如手机之间的配对。Just Works:用于配对没有显示没有输入的设备,主动发起连接即可配对,用户看不到配对过程。例如连接蓝牙耳机。Passkey Entry:要求配对目标输入一个在本地设备上显示的6位数字,输入正确即可配对。例如连接蓝牙键盘。Out ...
2018-05-07 11:07:48
2667
翻译 linux dd命令详解
dd --help用法:dd [操作数] ... 或:dd 选项复制文件,依照操作数转换并格式化。 bs=比特数 一次读写的比特数 cbs=比特数 一次转换的比特数 conv=CONVS 依照每个逗号分割的标志列表转换文件 count=块数 只将指定个块数复制到块 ibs=比特数 一次读取的比特数(默认:512)
2017-04-06 19:55:45
525
原创 scatter
static void dw_mci_write_data_pio(struct dw_mci *host){ struct sg_mapping_iter *sg_miter = &host->sg_miter; void *buf; unsigned int offset; struct mmc_data *data = host->data; int
2017-01-23 10:42:42
583
转载 Linux Fedora设置PATH环境变量
一般来说,配置交叉编译工具链的时候需要指定编译工具的路径,此时就需要设置环境变量。例如我的mips-linux-gcc编译器在“ /opt/au1200_rm/build_tools/bin”目录下,build_tools就是我的编译工具,则有如下三种方法来设置环境变量:1、直接用export命令: #export PATH=$PATH:/opt/au1200_rm/build_too
2013-10-04 10:47:29
1092
1
原创 adr 与 ldr 的区别
直接进入正题:adr r1, var ldr r1, = varvar: .word 8 var: .word 8上面两条指令都是取标号var 的地址分别反汇编上面的代码:假设它们的链接地址都是-Text=0x0000 0000 0: sub pc, pc, #4 //pc = 40: ldr pc, [pc, #0] //pc
2013-09-10 09:12:50
496
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人