BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 02-01-2009, 02:45 PM   #1
A_Zimbo
Knows Where the Search Button Is
 
Join Date: Nov 2008
Location: Isle of Man
Model: 9800
PIN: N/A
Carrier: Manx Telecom
Posts: 23
Default Bluetooth acceptAndOpen reboots Bold

Please Login to Remove!

Hi there.

Got a strange phenomena with a Blackberry Bold 9000.

I will confess to being new to BB development however I am not implementing anything that any JSR82 standard device couldn't do. (No freaky stuff).

Basically this is a piece of Midlet software that creates a Serial Port RFCOMM and then sits using acceptAndOpen to await a connection. The device that will connect is a Bluetooth Blood Pressure monitor. Once or twice out of ten it will connect and send over data (Which I am still breaking down and is the purpose of this project) but the other 8 or 9 times out of ten the device (BB Bold) will reboot immediately, and I mean immediately upon connection.

Code:
		try {
			discoveryForm.append("Waiting for connections....");
			con = notifier.acceptAndOpen();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			return;
		}
Any statement after the above Try and Catch just doesn't get hit on 8 or 9 times out of ten. The device simply reboots, almost like battery pull.

Now because this is intermittent I wonder if this is my BB? Unfortunately using the BB seems to me to tbe the only concrete way to debug/test my MIDlet. I've read up about how to use Simulators etc but noen of them support Bluetooth properly so I have given up on that.

BTW The above code snip is out of a sub called doMonitoring that is running in it's own thread started thus by clicking the command button:

Code:
if(command == startCommand) {
			t =  new Thread() {
				public void run() {					
					doMonitoring();				}				 
			};			
			t.start();
		}
Anybody got any tips?

Many thanks in advance for all your help.

P.S. The

Last edited by A_Zimbo; 02-01-2009 at 02:47 PM..
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


Chroma 6312 DC Electronic Load Mainframe  picture

Chroma 6312 DC Electronic Load Mainframe

$239.96



Fluke Networks Versiv Modular Mainframe AS IS picture

Fluke Networks Versiv Modular Mainframe AS IS

$1500.00



SHC SYSTEM 6 MAINFRAME + Mixed Modules 6-562,6-201,6-402. picture

SHC SYSTEM 6 MAINFRAME + Mixed Modules 6-562,6-201,6-402.

$99.99



National Instruments NI PXI-1044 Chassis 14-Slot PXI Mainframe 189105E-01 Rev 01 picture

National Instruments NI PXI-1044 Chassis 14-Slot PXI Mainframe 189105E-01 Rev 01

$199.99



USED 100%Tested NI PXI-1033 Mainframe Offers pxi 1033  picture

USED 100%Tested NI PXI-1033 Mainframe Offers pxi 1033

$780.90



ILX Lightwave LDC3908 Laser Diode Controller Mainframe with Key picture

ILX Lightwave LDC3908 Laser Diode Controller Mainframe with Key

$480.00







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