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


POLYCOM SoundPoint IP550 Digital VOIP Telephone picture

POLYCOM SoundPoint IP550 Digital VOIP Telephone

$20.00



Vtech ErisTerminal VSP861 Touchscreen Color Desktop - Voice-Over-IP VOIP Phone picture

Vtech ErisTerminal VSP861 Touchscreen Color Desktop - Voice-Over-IP VOIP Phone

$14.99



Allworx (Paetec) 9212 (9212P) IP Phone with Stand BLEM Warranty VoIP Business picture

Allworx (Paetec) 9212 (9212P) IP Phone with Stand BLEM Warranty VoIP Business

$23.98



Cisco CP-8811-K9 Unified Office IP VoIP PoE Business Phone w/ Stand & Handset picture

Cisco CP-8811-K9 Unified Office IP VoIP PoE Business Phone w/ Stand & Handset

$14.99



Lot of 10 Avaya 6-Line IP VoIP Phone 9640 picture

Lot of 10 Avaya 6-Line IP VoIP Phone 9640

$79.99



Edwards EST MN-FVPN EST3 VoIP Decoder/Encoder [CTSA] picture

Edwards EST MN-FVPN EST3 VoIP Decoder/Encoder [CTSA]

$267.30







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