You Are Here:

Community: Developer Discussion Boards

#1 Old JSR-82, bluetooth OBEX file transfer speed - 2008-11-21, 12:23

Join Date: Nov 2008
Posts: 7
ishanf
Offline
Registered User
I tried to send files to Nokia N95 and Nokia 6131, by using a small java app which used JSR-82(bluecove 2.0.3) bluetooth obex.

but the file sending times for those two models results different.

example:
sending 3.9MB audio file using my java app...
N95 - 2min 58sec
6131 - 1min 59sec

sending the same file using os x bluetooth file transfer...
N95 - 0min 38sec
6131 - 0min 30sec

is this possible ??

this is my code...

Code:
Connection connection = Connector.open(connectionURL);

ClientSession cs = (ClientSession)connection;
HeaderSet hs = cs.createHeaderSet();

cs.connect(hs);
				
File file = new File("filepath");

InputStream is = new FileInputStream(file);
byte filebytes[] = new byte[is.available()];
is.read(filebytes);
is.close();

hs = cs.createHeaderSet();
hs.setHeader(HeaderSet.NAME, file.getName());
hs.setHeader(HeaderSet.TYPE, "audio/mpeg");
hs.setHeader(HeaderSet.LENGTH, new Long(filebytes.length));

Operation putOperation = cs.put(hs);

DataOutputStream outputStream = putOperation.openDataOutputStream();
outputStream.write(filebytes);
have you any idea to improve the file sending times ?? or those times are acceptable...

thanks in advance...
ishan.
Reply With Quote

#2 Old Exclamation Re: JSR-82, bluetooth OBEX file transfer speed - 2009-05-31, 22:56

Join Date: Mar 2003
Posts: 17
mkroll
Offline
Registered User
Hi Ishan,

did you get any reply or did you solved this issue yourself already?
I'm facing a similar problem using blucove 2.1.0 while downloading an image file from a phone.
The phone progress shows that about 4kb are read per second... very poor performance...

Any idea how to speed this up?

Regards,
Michael.
Reply With Quote

#3 Old Re: JSR-82, bluetooth OBEX file transfer speed - 2009-05-31, 23:07

Join Date: Mar 2003
Posts: 17
mkroll
Offline
Registered User
I think increasing the MTU size of the BlueCove implementation does the trick.

call:
BlueCoveImpl.setConfigProperty(BlueCoveConfigProperties.PROPERTY_OBEX_MTU, "16384");

The Default MTU is 1024.

and the transfer is much much faster.

Regards,
Michael.
Last edited by mkroll : 2009-05-31 at 23:07. Reason: Missed an explaination.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in file exchange over Bluetooth in OBEX frame work binary123 Mobile Java General 11 2009-11-20 09:48
Error with makesis.exe and creating the .pkg file gramya87 Symbian Tools & SDKs 7 2007-10-10 14:53
File Transfer Application on Sony Ericson W810i via bluetooth atiqkamran Mobile Java Networking & Messaging & Security 3 2007-07-22 20:25
erorr in file transfer from pc to mobile over bluetooth using serial port profile danishsk Mobile Java General 5 2007-04-12 22:23
What is the error in my code here? Unable to Save document to file yuva69 General Symbian C++ 1 2005-05-26 15:22

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia