Re: More details on OBEX FTP trouble - solved
Re: More details on OBEX FTP trouble - solved
- Subject: Re: More details on OBEX FTP trouble - solved
- From: Thomas Tempelmann <email@hidden>
- Date: Sun, 25 Mar 2007 19:20:48 +0100
- Thread-topic: More details on OBEX FTP trouble - solved
I few days ago I had asked on this list about problems with the
Apple-provided OBEX Sample app (which implemtent a OBEX FTP client).
Just for the record, here is what I found:
While it works apparenly just fine with a Nokia phone, it does not with a
Mac as the OBEX FTP server.
The reason for that is that the sample does not follow the OBEX FTP specs -
apparently the Apple OBEX FTP server is verifying those rules while Nokia's
is not.
To fix it, these changes need to be made to the sample code:
1. When connecting, a Target Header must be supplied (UUID
F9EC7BC4-953C-11D2-984E-525400DC9E09) to the "optionalHeaders" parameter.
2. In the "connected" handler, the Connection ID must be extracted from the
passed headers.
3. In all other calls (PUT, GET, SETPATH), the connection ID must be
supplied as the first item in the headers.
4. In the Setpath call, the flags argument must be set to 2, not 0.
And if you like to also be able to retrieve a dir listing, e.g. when the
name field is empty, a type header "x-obex/folder-listing" needs to be
passed instead of the name header.
If anyone's interested in the fixed version, send me a note.
Thomas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden