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