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


NEW DELL OEM REPLACEMENT PROJECTOR LAMP FOR 4220 4320 GENUINE ORIGINAL  picture

NEW DELL OEM REPLACEMENT PROJECTOR LAMP FOR 4220 4320 GENUINE ORIGINAL

$198.22



DELL 330-6581 3306581 725-10229 OEM LAMP FOR 1510X 1610HD 1610X  - Made By DELL picture

DELL 330-6581 3306581 725-10229 OEM LAMP FOR 1510X 1610HD 1610X - Made By DELL

$39.98



Genuine OEM Dell 2375 B2375dnf B2375dfw 110V Fuser fixing N41P2 sku 724-BBCI picture

Genuine OEM Dell 2375 B2375dnf B2375dfw 110V Fuser fixing N41P2 sku 724-BBCI

$94.99



Genuine Dell OEM G Series G7 7790 CPU and Graphics Heatsink Assembly XRF05 picture

Genuine Dell OEM G Series G7 7790 CPU and Graphics Heatsink Assembly XRF05

$20.30



1PCS NEW FIT FOR OEM Dell AC Adapter Dell Alienware DA330PM190 LA330PM190 330W picture

1PCS NEW FIT FOR OEM Dell AC Adapter Dell Alienware DA330PM190 LA330PM190 330W

$117.97



for New OEM Power Supply Dell Optiplex 760 780 960SFF 235W PW116 R224M H235P-00 picture

for New OEM Power Supply Dell Optiplex 760 780 960SFF 235W PW116 R224M H235P-00

$46.68







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