开发者

Android bluetooth connection fails (Error: no bt sock found, scn 1)

开发者 https://www.devze.com 2023-04-12 07:12 出处:网络
I wrote a little application for Android 2.3 using Eclipse Galileo. The application is based on Bluetooth Chat example published on Google.

I wrote a little application for Android 2.3 using Eclipse Galileo. The application is based on Bluetooth Chat example published on Google.

The problem is that bluetooth connection fails. I connect my Android with Bluetooth access point via SPP - serial port profile). The reasons开发者_如何学C why the connection fails are not clear for me. I see the following in logs:

10-09 18:52:35.989: ERROR/BluetoothEventLoop.cpp(162): event_filter: Received signal org.bluez.Device:PropertyChanged from /org/bluez/18286/hci0/dev_00_1A_7D_0A_B7_5F
10-09 18:58:35.239: ERROR/(18269): ****************search UUID = 1101***********
10-09 18:58:35.489: ERROR/BluetoothEventLoop.cpp(162): event_filter: Received signal org.bluez.Device:PropertyChanged from /org/bluez/18286/hci0/dev_00_1A_7D_0A_B7_5F
10-09 18:58:35.529: ERROR/BluetoothEventLoop.cpp(162): event_filter: Received signal org.bluez.Device:PropertyChanged from /org/bluez/18286/hci0/dev_00_1A_7D_0A_B7_5F

10-09 18:58:35.669: ERROR/BLZ20_WRAPPER(20769): ##### ERROR : btlif_process_con_rsp: no bt sock found, scn 1#####

Any help is appreciable


I think it may be related to a bug in the samsung bluetooth stack related to SSP connections.

check this link out: http://www.samsunggalaxysforum.com/firmware-problems/connection-problems-sgs-bluetooth-spp-device/

One solution I had was if I detected a blutooth error in my app on a samsung device in software I would turn off the bluetooth wait 5 seconds and turn it back on.


I think you using wrong UUID
UUID should be 00001101-0000-1000-8000-00805f9b34fb

If UUID is wrong not able to connect.

0

精彩评论

暂无评论...
验证码 换一张
取 消