BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 07-25-2008, 07:03 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Oct 2005
Model: 7250
Carrier: ATT
Posts: 20
Post Thanks: 0
Thanked 0 Times in 0 Posts
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


Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

New Allen Bradley 1761-L32AWA Ser E FRN 1.0 MicroLogix 1000 Controller CPU Older
$1089.89
New Allen Bradley 1761-L32AWA Ser E FRN 1.0 MicroLogix 1000 Controller CPU Older pictureNew Allen Bradley 1756-L62S B GuardLogix Logix 5562S CPU 4MB Control 1MB Safety
$429.0
New Allen Bradley 1756-L62S B GuardLogix Logix 5562S CPU 4MB Control 1MB Safety picture2017 New Sealed Allen Bradley 1756-L72K 1756-L72 ControlLogix 5572 Processor 4MB
$2879.0
2017 New Sealed Allen Bradley 1756-L72K 1756-L72 ControlLogix 5572 Processor 4MB pictureAllen Bradley 1747-L551 Ser C 1747-OS501 C FRN 9 SLC 500 5/05 CPU Processor 16K
$1232.0
Allen Bradley 1747-L551 Ser C 1747-OS501 C FRN 9 SLC 500 5/05 CPU Processor 16K picture2 DENT-X 810/9000 XRAY PROCESSOR SOLUTION PANS WITH COVERS.
$50.0
2 DENT-X 810/9000 XRAY PROCESSOR SOLUTION PANS WITH COVERS. picture






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