07-30-2008 09:06 PM
I'm developing an application to recevice data using BluetoothSerialPortListener from a custom bluetooth device.
My device is BB 8830 running on 4.2.1.
Pairing is established and I can see the BT device form Paired Device list.
But my application cannot receive data from the custom BT device.
I worked with other BT devices to communicate to BB and didn't see this problem.
When the custom BT device sends data, Blackberry screen displays "Connecting to Desktop..." for about 10 seconds.
It looks like BB is trying Desktop Connectivity.
Services on 'Device properties' screen shows the custom service name, not like 'SPP slave' or 'COM0'.
But this bluetooth device is working fine on the desktop.
The windows application can receive data from the device successfully.
Thanks in advance.
Solved! Go to Solution.
07-31-2008 11:13 AM
07-31-2008 12:02 PM
In this case, the hardware device that you are attempting to connect to has been hardcoded to a specific RFCOMM port. When you create a server based Bluetooth connection, the system on the device will assign you a port. The client (in this case your device connecting to the BlackBerry) has to specify this port when connecting. The client can determine the port the server was assigned by doing an SDP query on the UUID. The client appears in this case to simply be assuming a fixed port number rather than querying for it.
This causes it to pick the server connection currently established on the device waiting for the BlackBerry Desktop Manager to connect to the device which is why you see that message on the screen. Your client device would need to be fixed OR you can attempt to use the bluetooth device as the server and connect to it from the device.
08-12-2008 11:14 AM
How can I disable "Desktop Connectivity" service from Bluetooth Options on the device?
I heard that "Desktop Connectivity" can be disabled using BES.
=> change the it policy (Bluetooth policy group -> disable desktop connectivity = true)
But my device is not registered to BES.
I need to disable "Desktop Connectivity" bluetooth service without using BES.
Thanks in advance.
08-12-2008 12:11 PM
On newer OSs you can disable Bluetooth desktop connectivity by going to Options->Bluetooth->Options (from the menu) then unchecking the "Desktop connectivity" checkbox.
08-12-2008 12:41 PM
That is kind of a hacky solution anyway. You shouldn't expect people to disable other BT services just to use yours. If your BB is the server, you can define your own UUID. Your other BT app can then do a service discovery on that specific UUID. Once the app retrieves the BB's service record for the fixed UUID, i can use it to connect to the BB on the correct BT channel.