Christian: > the 194 is not important Ok, I readed more deeply the Obex specification and came to this conclusion too. > I'll give you a break down: > > 90 => 80: final packet for this command + 10: more packets to come > Ok, we are OK so fare. > 00 C2 => 194 byte in this packetC3 => object (overall payload) length is 00 > 00 00 AC = 172 > CB => conn id 00 00 E9 0F > We are still OK. > 42 => type (length 00 19) "x-obex/folder-listing" We are not OK here ;), the device tells us the length will be 0x19 and that is 25, but x-obex/folder-listing is only 21 chars long, this is a bug on the device implementation. I guess this is the type of bug, I was not looking at, that was why I did not see it before.
> 48 => body (length 00 9C = 156) ... > > So this packet contains a body with 153 bytes payload from 172 bytes > overall. > The next packet will contain 19 bytes body, likely "</folder-listing>\r\n". > That was what the AIRcable's CEO told me > Be careful reading the dump below. The wrapping is wrong. I have corrected the wrapping. I was using it as a reference only, but is much better to have it corrected ;) Take a look now: Rx: 90 00 C2 C3 00 00 00 AC CB 00 02 A0 2B 42 00 19 ............+B. Rx: 78 2D 6F 62 65 78 2F 66 6F 6C 64 65 72 2D 6C 69 x-obex/folder-l Rx: 73 74 69 6E 67 00 48 00 9C 3C 66 6F 6C 64 65 72 sting.H..<folde Rx: 2D 6C 69 73 74 69 6E 67 3E 0D 0A 3C 66 69 6C 65 -listing>..<fil Rx: 20 6E 61 6D 65 3D 22 41 49 52 63 61 62 6C 65 2E name="AIRcable Rx: 62 61 73 22 20 63 72 65 61 74 65 64 3D 22 32 30 bas" created="2 Rx: 30 35 30 34 32 39 54 31 30 34 38 30 30 5A 22 20 050429T104800Z" Rx: 73 69 7A 65 3D 22 31 36 33 38 34 22 2F 3E size="16384"/ If you think this is usefull for the project let me know. I will now check if the others Obex statements has errors like this. Manuel ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Openobex-users mailing list [email protected] http://lists.sourceforge.net/lists/listinfo/openobex-users
