2008-11-21 08:10:22

by Li, Zhigang

[permalink] [raw]
Subject: [Bluez-devel] What's the maximum size of file by FTP transfer

HI Vinicius,
I have one problem for bigger file transfer.
I can't transfer 9MB .mp3 file but 1MB file is ok by FTP.
I know it's difficult to transfer a bigger file which more than 10MB by Bluetooth.
I used latest release version in bluez.org.
It even can't open the file, it's not file self problem.
fd = open(filename, O_RDONLY);
What's the limitation in ftp client side? I saw the size should be 2GB.
Do you have same problem? Or any idea/
Thanks



Attachments:
(No filename) (363.00 B)
(No filename) (164.00 B)
Download all attachments

2008-11-24 09:08:48

by Li, Zhigang

[permalink] [raw]
Subject: Re: [Bluez-devel] What's the maximum size of file by FTP transfer

SGkgVmluaWNpdXMsDQpZb3UgYXJlIHJpZ2h0LiBJdCdzIG5vdCBvYmV4LWNsaWVudCBpc3N1ZS4N
ClRoZSBwcm9ibGVtIGNvdWxkIGJlIG15IFBDIGZpbGVzeXN0ZW0gaXNzdWUuIEJlY2F1c2UgSSBj
YW4ndCBzZW5kIHRoZSBjb3BpZWQgZmlsZSBpbiB0aGF0IGRpciBpZiBJIHB1dCB0aGVtIHRvIC90
bXAgdGhhdCdzIG9rLg0KSSB3aWxsIGNoZWNrIG15IGZpbGVzeXN0ZW0uDQpUaGFua3MgeW91ciBn
cmVhdCByZXNwb25zZS4NCg0KWmhpZ2FuZw0KDQoNCi0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0t
DQpGcm9tOiBWaW5pY2l1cyBHb21lcyBbbWFpbHRvOnZpbmljaXVzLmdvbWVzQG9wZW5ib3NzYS5v
cmddIA0KU2VudDogMjAwOMTqMTHUwjIxyNUgMjM6MDYNClRvOiBMaSwgWmhpZ2FuZw0KQ2M6IGJs
dWV6LWRldmVsQGxpc3RzLnNvdXJjZWZvcmdlLm5ldA0KU3ViamVjdDogUmU6IFdoYXQncyB0aGUg
bWF4aW11bSBzaXplIG9mIGZpbGUgYnkgRlRQIHRyYW5zZmVyDQoNCkhpLA0KDQpPbiBGcmksIE5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BvYmV4LWNsaWVudCBpc3N1ZS4NCg0K
QnV0IEkgd291bGQgbGlrZSB0byBrbm93IG1vcmUsIHBlcmhhcHMgYSBzdHJhY2Ugd291bGQgZ2l2
ZSBtb3JlDQppbmZvcm1hdGlvbiBvbiB3aGF0IG1pZ2h0IGJlIGhhcHBlbmluZy4NCg0KPg0KPiBU
aGFua3MNCj4NCj4NCg0KQ2hlZXJzLA0KLS0gDQpWaW5pY2l1cyBHb21lcw0KSU5kVCAtIEluc3Rp
dHV0byBOb2tpYSBkZSBUZWNub2xvZ2lhDQotLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tClRoaXMgU0YuTmV0IGVt
YWlsIGlzIHNwb25zb3JlZCBieSB0aGUgTW9ibGluIFlvdXIgTW92ZSBEZXZlbG9wZXIncyBjaGFs
bGVuZ2UKQnVpbGQgdGhlIGNvb2xlc3QgTGludXggYmFzZWQgYXBwbGljYXRpb25zIHdpdGggTW9i
bGluIFNESyAmIHdpbiBncmVhdCBwcml6ZXMKR3JhbmQgcHJpemUgaXMgYSB0cmlwIGZvciB0d28g
dG8gYW4gT3BlbiBTb3VyY2UgZXZlbnQgYW55d2hlcmUgaW4gdGhlIHdvcmxkCmh0dHA6Ly9tb2Js
aW4tY29udGVzdC5vcmcvcmVkaXJlY3QucGhwP2Jhbm5lcl9pZD0xMDAmdXJsPS8KX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KQmx1ZXotZGV2ZWwgbWFpbGlu
ZyBsaXN0CkJsdWV6LWRldmVsQGxpc3RzLnNvdXJjZWZvcmdlLm5ldApodHRwczovL2xpc3RzLnNv
dXJjZWZvcmdlLm5ldC9saXN0cy9saXN0aW5mby9ibHVlei1kZXZlbAo=

2008-11-21 15:05:51

by Vinicius Costa Gomes

[permalink] [raw]
Subject: Re: [Bluez-devel] What's the maximum size of file by FTP transfer

Hi,

On Fri, Nov 21, 2008 at 5:10 AM, Li, Zhigang <[email protected]> wrote:
> HI Vinicius,
>
> I have one problem for bigger file transfer.
>
> I can't transfer 9MB .mp3 file but 1MB file is ok by FTP.
>
> I know it's difficult to transfer a bigger file which more than 10MB by
> Bluetooth.
>
> I used latest release version in bluez.org.
>
> It even can't open the file, it's not file self problem.
>
> fd = open(filename, O_RDONLY);
>
> What's the limitation in ftp client side? I saw the size should be 2GB.
>

As you already said, the only limitation really is the size of the object
length header (32 bits).

> Do you have same problem? Or any idea/

No. I just tested it here, and it worked fine. But if it is failing on the open
call, it seems it isn't a obex-client issue.

But I would like to know more, perhaps a strace would give more
information on what might be happening.

>
> Thanks
>
>

Cheers,
--
Vinicius Gomes
INdT - Instituto Nokia de Tecnologia

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel