Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
Posts: 8
Registered: ‎07-30-2008
My Device: Not Specified
Accepted Solution

Bluetooth data receiving issue

Hello,

 

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.

 

 

 

 

BlackBerry Development Advisor
Posts: 15,753
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Bluetooth data receiving issue

Are you making a Bluetooth SPP connection or are you using a custom profile?
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Developer
Posts: 8
Registered: ‎07-30-2008
My Device: Not Specified

Re: Bluetooth data receiving issue

Hi,

My application is using a SPP connection. The Bluetooth device that I'm testing transmits and receives data using the SPP protocol.

Retired
Posts: 179
Registered: ‎07-14-2008
My Device: Not Specified

Re: Bluetooth data receiving issue

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.

 

Mike Kirkup
Director, Developer Relations
New Developer
Posts: 8
Registered: ‎07-30-2008
My Device: Not Specified

Re: Bluetooth data receiving issue

Thanks for your comprehensive explanation.

 

Based on your explanation, I'm contacting a manufacturer of the bluetooth device.

 

Thanks again.

 

Terry

Highlighted
New Developer
Posts: 8
Registered: ‎07-30-2008
My Device: Not Specified

Re: Bluetooth data receiving issue

Hi,

 

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.

 

Terry

 

 

Developer
Posts: 205
Registered: ‎07-14-2008
My Device: 7230, 8700, 8820, 9000

Re: Bluetooth data receiving issue

On newer OSs you can disable Bluetooth desktop connectivity by going to Options->Bluetooth->Options (from the menu) then unchecking the "Desktop connectivity" checkbox.

 

Earl 

Earl Oliver
New Developer
Posts: 8
Registered: ‎07-30-2008
My Device: Not Specified

Re: Bluetooth data receiving issue

My device is 4.2.2.

And there is no checkbox to enable or disable services.

Options just displays all enabled services.

Developer
Posts: 205
Registered: ‎07-14-2008
My Device: 7230, 8700, 8820, 9000

Re: Bluetooth data receiving issue

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.

 

Earl 

Earl Oliver
New Developer
Posts: 8
Registered: ‎07-30-2008
My Device: Not Specified

Re: Bluetooth data receiving issue

So, except a hacky solution, is there no way to disable "Desktop Connectivity" service on 4.2.2 or 4.3 device without using BES?