| Reply | « Previous Thread | Next Thread » |
|
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);
thanks in advance... ishan. |
|
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. |
|
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 | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| 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 |