obexapp get failure

Iain Hibbert plunky at rya-online.net
Thu Oct 28 20:58:38 UTC 2010


On Tue, 26 Oct 2010, Maksim Yevmenkin wrote:

> not sure if obexftp still being actively used. last time i checked
> there was a bunch of bluetooth-obex related code in gnome/kde etc. i
> dont keep track of it - things change too fast in linux land :)

perhaps development has ceased with obexftp. I know that there is an obexd
in development for BlueZ now

> > that patch does indeed make it work! fetching an 8k file with 4k MTU:
>
> thanks for trying it! could you please also try PUT (to and from
> obexapp server) using wm6?

sure

obexapp client PUT -> wm6 server, no change (that code path is not used)

wm6 client PUT -> obexapp server, it works ok but I see that the obexapp
server does not ever actually provide a Connection ID but that we do send
one that is zero with the Put response because it is not initialized to
OBEXAPP_INVALID_CONNECTION_ID, eg

< ACL data: handle 11 flags 0x02 dlen 16
    L2CAP(d): cid 0x0048 len 12 [psm 3]
      RFCOMM(d): UIH: cr 0 dlci 20 pf 0 ilen 8 fcs 0xeb
        OBEX: Put rsp(f): status 100 len 8
        Status 100 = Continue
        Connection ID (0xcb) = 0

so if I initialize that (in main.c, below) then it does not appear during
a remote PUT.

One thing that I can't check, what would happen if the "obexapp client GET
-> remote" session get response did contain a Connection ID already,
would we send it twice?

iain

--- main.c.orig	2010-10-22 07:29:06.000000000 +0100
+++ main.c	2010-10-27 22:12:01.000000000 +0100
@@ -108,6 +108,7 @@ main(int argc, char *argv[])
 		errx(1, "Could not allocate context.sbuffer");

 	context.mtu = OBEX_MAXIMUM_MTU;
+	context.connection_id = OBEXAPP_INVALID_CONNECTION_ID;

 	memset(&custfunc, 0, sizeof(custfunc));
 	custfunc.connect = obexapp_transport_connect;



More information about the freebsd-bluetooth mailing list