BlackBerry Forums Support Community

Closed Thread
LinkBack Thread Tools
Old 02-01-2009, 02:45 PM   #1 (permalink)
Knows Where the Search Button Is
Join Date: Nov 2008
Location: Isle of Man
Model: 9800
Carrier: Manx Telecom
Posts: 23
Post Thanks: 0
Thanked 1 Time in 1 Post
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.

		try {
			discoveryForm.append("Waiting for connections....");
			con = notifier.acceptAndOpen();
		} catch (IOException e) {
			// TODO Auto-generated catch block
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:

if(command == startCommand) {
			t =  new Thread() {
				public void run() {					
					doMonitoring();				}				 
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.

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