Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#4 Fixes for Sony Ericsson K500i

closed-accepted
nobody
None
5
2004-11-18
2004-11-18
David Haslam
No

This patch makes obexftp-0.10.5 work with a SE K500i
phone. It fixes two problems:

Out of the box, obexftp appears to establish a
connection, but any attempt to get a folder listing
fails, with response 44. It turns out that the K500i is
fussy about the null terminator on the end of the type
header. So in obexftp/object.c around line 55 in the
function obexftp_build_get_type I added one to the
string length. This meant I could now get folder listings.

The next problem was that the setpath command was
failing. It seems that in the same file, function
obexftp_build_setpath, there's some confusion over the
two extra bytes inserted into the header. The existing
code is erroneously setting the second reserved byte,
and the k500i doesn't like it.

I've no idea if this breaks compatibility with other
phones.

Discussion

  • David Haslam
    David Haslam
    2004-11-18

    Patch to obexftp/object.c

     
    Attachments
    • status: open --> closed-accepted