Trouble connecting android bluetooth client socket to ubuntu server socket

╄→尐↘猪︶ㄣ 提交于 2019-12-04 13:45:10

Make sure on your Ubuntu server that the server socket you're creating is registered in SDP with the same UUID that your client is trying to connect with.

You can do an sdp lookup/dump with $ sdptool browse 00:02:72:B2:85:C7 but you have to run it from another computer.

If there's a ten second delay before the error occurs then that looks like a timeout making a Bluetooth connection and not a application/etc layer configuration error. Is Bluetooth adapter in your PC in 'connectable' mode? (e.g. does "sudo /usr/sbin/hciconfig " contain PSCAN?)

(BTW sdp_set_service_classes apparently overwrites the previous call to sdp_set_service_id).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!