[maemo-developers] gwobex problem

From: Johan Hedberg johan.hedberg at gmail.com
Date: Wed Oct 7 10:33:30 EEST 2009
Hi Christian,

On Wed, Oct 07, 2009, Christian Kuersteiner wrote:
> < ACL data: handle 45 flags 0x02 dlen 42
>     L2CAP(d): cid 0x01cc len 38 [psm 3]
>       RFCOMM(d): UIH: cr 1 dlci 12 pf 0 ilen 34 fcs 0x4f
>         OBEX: SetPath cmd(f): len 34 flags 2 constants 0
>         Name (0x01) = Unicode length 26
>         0000: 00 50 00 68 00 6f 00 6e  00 65 00 20 00 6d 00 65  
> .P.h.o.n.e. .m.e
>         0010: 00 6d 00 6f 00 72 00 79  00 00                    .m.o.r.y..
> > HCI Event: Number of Completed Packets (0x13) plen 5
>     handle 45 packets 1
> > ACL data: handle 45 flags 0x02 dlen 13
>     L2CAP(d): cid 0x0041 len 9 [psm 3]
>       RFCOMM(d): UIH: cr 0 dlci 12 pf 1 ilen 3 fcs 0x89 credits 1
>         OBEX: SetPath rsp(f): status 401 len 3
>
> Can I somehow match the status 401 to the final error code?

hcidump converts the one byte OBEX errors to HTTP equivalents (since they
are originally derived from HTTP anyway). 401 would therefore mean
"Unauthorized", i.e. most likely you are at least giving the right
directory name (otherwise you'd get 404 = "Not Found") but the server
refuses the action. gwobex in turn uses the byte value as it comes over
the air and so you should be getting 0x41 (i.e. 65) in your application in
this case.

> Thank you for your help!

No problem! :)

Johan
More information about the maemo-developers mailing list