SDP协议

本文详细记录了蓝牙设备间通过L2CAP建立连接的过程,包括Master和Slave之间的Connectionrequest、connectionresponse及配置请求响应,进一步解析了SDP服务搜索属性请求与响应,展示了不同服务如PnPInformation、L2CAP、unknownservice等的ServiceRecordHandle和服务名称。

#319   Master   Connection request   cid=0x41

#321  Slave     connection response   cid=0x52(slave) result  0 (sucessful)

#322  Master   configure request dest cid=0x52   MTU=1024

#327  slave     configure response  source cide=0x41, result: success

#323  slave    configure request  MTU=339

#324  Master  configure response   result: success

 

 

#313      SDP_ServiceSearchAttributeRequest          UUID: PnP Information
        Attribute Range: Service Record Handle -  [65535]

#314      PDU ID: SDP_ServiceSearchAttributeResponse       No Attributes Returned


#328      SDP_ServiceSearchAttributeRequest                  UUID: L2CAP
        Attribute Range: Service Record Handle -  [65535]

#330     PDU ID: SDP_ServiceSearchAttributeResponse, 后面还没回复完,加上了    Continuation length bytes: 0x0026
 

 

#331     PDU ID: SDP_ServiceSearchAttributeRequest 继续request

如此多次,分别得到unknown service, remote control, remote control target, audio sink service, RVCTP, headset, handsfree

至此 L2CAP的request结束

每个有不同的service record handle, service name

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值