2012-08-09 09:43:23

by Ludek Finstrle

[permalink] [raw]
Subject: Obexd 0.46: PBAP and GetSize

Hello,

I see strange behaviour with my obexd 0.46 on N900 (ARM) and pbap-client on notebook (x86_64):

--- Select Phonebook CCH ---


--- GetSize ---

Size = 12802


--- List vCard ---

...
562.vcf : Name
BEGIN:VCARD
VERSION:2.1
N:Name
Tel:Number
END:VCARD

--- PullAll ---
...

Binary representation of the numbers:
12802
0011001000000010
562
0000001000110010

(another numbers):
15360
0011110000000000
60
0000000000111100

As you can see there is swapped bytes. Can someone reproduce the problem?
Has anyone idea where should be the problem (it seems like little x big endians)?

Best regards,

Luf


2012-08-09 09:49:09

by Luiz Augusto von Dentz

[permalink] [raw]
Subject: Re: Obexd 0.46: PBAP and GetSize

Hi Ludek,

On Thu, Aug 9, 2012 at 12:43 PM, Ludek Finstrle <[email protected]> wrote:
> Hello,
>
> I see strange behaviour with my obexd 0.46 on N900 (ARM) and pbap-client on notebook (x86_64):
>
> --- Select Phonebook CCH ---
>
>
> --- GetSize ---
>
> Size = 12802
>
>
> --- List vCard ---
>
> ...
> 562.vcf : Name
> BEGIN:VCARD
> VERSION:2.1
> N:Name
> Tel:Number
> END:VCARD
>
> --- PullAll ---
> ...
>
> Binary representation of the numbers:
> 12802
> 0011001000000010
> 562
> 0000001000110010
>
> (another numbers):
> 15360
> 0011110000000000
> 60
> 0000000000111100
>
> As you can see there is swapped bytes. Can someone reproduce the problem?
> Has anyone idea where should be the problem (it seems like little x big endians)?

Here it works fine but it might be because my machine is little
endian, anyway Im about the send some changes in the way we handle
application parameters like this.

--
Luiz Augusto von Dentz