BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 07-25-2008, 07:03 AM   #1
LiteWait
Knows Where the Search Button Is
 
Join Date: Oct 2005
Model: 7250
Carrier: ATT
Posts: 20
Default How to close a bluetooth SPP port?

Please Login to Remove!

It seems the simplest of my code to manage the bluetooth port fails to disconnect the device (OS 4.2.1). Question....what do I do to guarantee the BT disconnects???? Also, what does "BT: MODE_CHANGE: 2,0" in the debug log denote (I only get this in my code, not when I debug googlemaps)?


StreamConnection _bluetoothConnection =
(StreamConnection)Connector.open(_uri, Connector.READ_WRITE);
_bluetoothConnection.close();
_bluetoothConnection = null; // I DON'T GET A DISCONNECT IN THE LOG !!!!!!!



Output debugger window for Googlemaps...which always disconnects



MM: GoogleMaps-1(1409) no sig from 0x33
BT: allocSerialPort a0598ea0
BT: BTEVENT_LINK_CONNECT
net.rim.bluetooth: DC00
BT: SPP_EVENT_CONNECTED
CMM: GoogleMaps(1406) no sig from 0x33
GME Rx Cid: IPPP
Exit GoogleMaps(126)
Foreground net_rim_bb_ribbon_app(58)
BT: SPP_EVENT_DISCONNECTED
BT: freeSerialPort a0598ea0
BT: BTEVENT_LINK_DISCONNECT
net.rim.bluetooth: DD16
JVM: bklt @56513: timer
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


New Radio Shack 271-1714 5k-Ohm Linear-Taper Potentiometer 500 VDC .5 WATTS 5/16 picture

New Radio Shack 271-1714 5k-Ohm Linear-Taper Potentiometer 500 VDC .5 WATTS 5/16

$12.99



10 PCS 1K,2 K,5K,10K,20K100K,1Mohm Linear Taper Rotary Potentiometer US Stock picture

10 PCS 1K,2 K,5K,10K,20K100K,1Mohm Linear Taper Rotary Potentiometer US Stock

$9.49



10K Ohm Rotary Potentiometer Variable Dial Resistor Precision 10-Multiturn Blue picture

10K Ohm Rotary Potentiometer Variable Dial Resistor Precision 10-Multiturn Blue

$7.95



10 turn Potentiometer 3590S Wirewound Variable Resistor Precision multi-turn POT picture

10 turn Potentiometer 3590S Wirewound Variable Resistor Precision multi-turn POT

$51.49



10 Units 10K B10K OHM Linear Taper Rotary Dual Potentiometer POT White Knob picture

10 Units 10K B10K OHM Linear Taper Rotary Dual Potentiometer POT White Knob

$9.08



Clarostat RA20LASD103A 10K OHM Wirewound 10000 Ohm Potentiometer Industrial POT picture

Clarostat RA20LASD103A 10K OHM Wirewound 10000 Ohm Potentiometer Industrial POT

$14.19







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.