f*****n 发帖数: 18176 | 1 总是paired but not connected.
怎么办?两个android 间 |
p*******o 发帖数: 6791 | 2 自己写驱动!两个安猪之间默认没有匹配的profile,自己写个app做个基于SPP的
custom service,一个做server,一个做client即可。 |
f*****n 发帖数: 18176 | 3 这个默认什么时候开始的?以前我玩那个Bluetooth chat sample时不这样啊
【在 p*******o 的大作中提到】 : 自己写驱动!两个安猪之间默认没有匹配的profile,自己写个app做个基于SPP的 : custom service,一个做server,一个做client即可。
|
p*******o 发帖数: 6791 | 4 一直都是这样,chat sample 那个app 就是自己写的custom service,不是标准的蓝牙
profile。系统支持的默认profile 只有 HandsFree Profile Audio Gateway role,
PhoneBook Access Profile Server role,Advanced Audio Distribution Profile
Source role, Serial Port Profile 和 Generic Attribute Profile。
跟这些标准的profile连接必须有对应的 Unit role,Client role,Sink role。大家
都是 AG,都是 source,都是 server 还玩什么?
所以想手机对手机玩,就自己写custom service |
f*****n 发帖数: 18176 | 5 谢谢指点,明天好好把那个sample看一下
【在 p*******o 的大作中提到】 : 一直都是这样,chat sample 那个app 就是自己写的custom service,不是标准的蓝牙 : profile。系统支持的默认profile 只有 HandsFree Profile Audio Gateway role, : PhoneBook Access Profile Server role,Advanced Audio Distribution Profile : Source role, Serial Port Profile 和 Generic Attribute Profile。 : 跟这些标准的profile连接必须有对应的 Unit role,Client role,Sink role。大家 : 都是 AG,都是 source,都是 server 还玩什么? : 所以想手机对手机玩,就自己写custom service
|