2003-04-12 21:36:49

by Cedric Hottier

[permalink] [raw]
Subject: [Bluez-users] btobex and fisio820/825

Hi all,

I tried to transfer some pictures from my PC to my fisio 825 with btobex.
I had to change a little bit the obex.c file to make it work.

I removed the first OBEX_ObjectAddHeader call :
//OBEX_ObjectAddHeader(handle, object,
// OBEX_HDR_CONNECTION, hd, 4, OBEX_FL_FIT_ONE_PACKET);
and I replaced OBEX_FL_FIT_ONE_PACKET by 0 in the others OBEX_ObjectAddHeader
call.

I tried to understand what does mean the OBEX_HDR_CONNECTION in reading OBEX
spec, but I still do not understand why this OBEX header makes the transfer
failed.

Does anybody have experience on transfering files with an other phone ?
Is the transfer failing due to a limitation of the OBEX implementation in
fisio ?

Cheers

Cedric





-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger
for complex code. Debugging C/C++ programs can leave you feeling lost and
disoriented. TotalView can help you find your way. Available on major UNIX
and Linux platforms. Try it free. http://www.etnus.com
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users


2003-08-08 09:56:15

by Olivier Bornet

[permalink] [raw]
Subject: Re: [Bluez-users] btobex and fisio820/825

Hello,

> I tried to transfer some pictures from my PC to my fisio 825 with btobex.
> I had to change a little bit the obex.c file to make it work.
>
> I removed the first OBEX_ObjectAddHeader call :
> //OBEX_ObjectAddHeader(handle, object,
> // OBEX_HDR_CONNECTION, hd, 4, OBEX_FL_FIT_ONE_PACKET);
> and I replaced OBEX_FL_FIT_ONE_PACKET by 0 in the others OBEX_ObjectAddHeader
> call.

I have tested btobex with my T68i, and a custom device running BlueZ,
and I have the same problem as you.

Your patch correct the problem, and after that, btobex is working with
both my T68i and our custom device.

Marcel, can you see if this is a correct patch, or where is the problem
with btobex ?

Thanks in advance.

Olivier
--
Olivier Bornet http://www.smartdata.ch/
[email protected] SMARTDATA SA
Phone: +41-27-723'55'03 Rue du Coll?ge 5A
GPG key ID: C53D9218 CH-1920 Martigny


Attachments:
(No filename) (945.00 B)
(No filename) (189.00 B)
Download all attachments