Welcome, Guest. Please login or register.

Login with username, password and session length
February 04, 2012, 10:48:07 PM
Pages: [1]
  Print  
Topic: Bluetooth fromJSR82: data rate very low!  (Read 1426 times)
« on: October 17, 2007, 03:23:52 AM »
carreras
Newbie

View Profile
*
Karma: +0/-0
Posts: 1



Hello folks,
we are developing a client/server java application that relys on bluetooth for exchaning data between 2 mobile phones. The client is connecting to the server over 'rfcomm' and receiving an image from the server of about 50K. For the complete data exchange it takes about 6 seconds, which is really really a lot (this makes a few Kbit/sec data rate..)!!!
I'm attaching below the java code we are using.

Suggestions are more than welcome!

Thanks in advance for any help!!

Iacopo

CLIENT:
------------
DataOutputStream dOut = new DataOutputStream(dOut.writeInt(data.length);
dOut.write(data);
dOut.close();

SERVER:
------------
for (len = din.read(buf); len > 0; len = din.read(buf)) {
     bout.write(buf, 0, len);
}
data = bout.toByteArray();
Logged
« Reply #1 on: December 01, 2007, 10:24:22 PM »
Sam
Newbie

View Profile
*
Karma: +0/-0
Posts: 7



It depends on the JSR 82 stack that you are using. It shouldnt be this much slow
Logged
 
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC