Requête:06/07/2004 12:14:42.281286464 (+0.0600864000 seconds)

 02 00 2D CB 00 00 00 00 42 00 20 61 70 70 6C 69   ..-Ë....B. appli

 63 61 74 69 6F 6E 2F 76 6E 64 2E 73 79 6E 63 6D   cation/vnd.syncm

 6C 2B 77 62 78 6D 6C 00 C3 00 00 00 A8            l+wbxml.Ã...¨  

 

Réponse:06/07/2004 12:14:42.281286464 (+0.0000000000 seconds)

 90 00 03                                          ..            

 

Requête:06/07/2004 12:14:42.301315264 (+0.0200288000 seconds)

 02 00 AE 48 00 AB 02 00 00 6A 1D 2D 2F 2F 53 59   ..®H.«...j.-//SY

 4E 43 4D 4C 2F 2F 44 54 44 20 53 79 6E 63 4D 4C   NCML//DTD SyncML

 20 31 2E 31 2F 2F 45 4E 6D 6C 71 C3 03 31 2E 31    1.1//ENmlqÃ.1.1

 01 72 C3 0A 53 79 6E 63 4D 4C 2F 31 2E 31 01 65   .rÃ.SyncML/1.1.e

 C3 00 01 5B C3 01 31 01 6E 17 01 67 57 C3 04 58   Ã..[Ã.1.n..gWÃ.X

 43 50 43 01 01 5A 00 01 4C C3 04 35 30 30 30 01   CPC..Z..LÃ.5000.

 01 01 00 00 6B 53 4B C3 01 32 01 5A 00 01 53 C3   ....kSKÃ.2.Z..SÃ

 23 61 70 70 6C 69 63 61 74 69 6F 6E 2F 76 6E 64   #application/vnd

 2E 73 79 6E 63 6D 6C 2D 64 65 76 69 6E 66 2B 77   .syncml-devinf+w

 62 78 6D 6C 01 01 00 00 54 6E 57 C3 0A 2E 2F 64   bxml....TnWÃ../d

 65 76 69 6E 66 31 31 01 01 01 01 12 01 01         evinf11....... 

 

Réponse:06/07/2004 12:14:42.341372864 (+0.0400576000 seconds)

 90 00 03                                          ..            

 

Requête:06/07/2004 12:14:42.341372864 (+0.0000000000 seconds)

 82 00 06 49 00 03                                 ‚..I..         

 

Réponse:06/07/2004 12:14:42.351387264 (+0.0100144000 seconds)

 A0 00 03                                           

 

Hello,

 

I am trying to write an application to synchronize my mobile phone with my PC. The protocol used is SyncML over cobex (cable obex). I have started from openobex-apps test_server.c and here is how I do I :

 

When I receive a OBEX_EV_REQ with a PUT command I call the following function :

 

Void put_request(obex_t *handle, obex_object_t *object)

{

…

while (OBEX_ObjectGetNextHeader(…))

{

switch (hi)

case OBEX_HDR_BODY:

body = hv.bs;

body_len = hlen;

break;

default:

printf(“Skipped header”);

}

 

save_file(“put_object”, body, body_len); 

But If I do that I only get the part in yellow above while I would like to get green+yellow.

 

Please help.