gents, Just to add here that what you are seeing is normal for SPP as its just 
a serial interface type profile supporting streams of bytes..
If it were OBEX for example then you would have full re-assembly of application 
level packets, but that's different profiles(OPP and FTP..)

L2CAP has segmentation and reassembly to allow transfer of larger packets than 
lower layers support but this is link level stuff not application level....the 
chunks of data you see on the host are what the baseband radio segmented and 
then transferred over the air
So as you know, the chunks will arrive at the host in sequence and you have to 
wait on the host for a few segments until it adds up to 122 bytes, then you 
have a packet...Not ideal I know as I have had to do the very same on android 
hosts

cheers




-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of steve ayer
Sent: Friday, May 13, 2011 9:40 PM
To: Nicholas Hosein
Cc: [email protected]
Subject: Re: [Shimmer-users] Bluetooth packet fragmentation

yup,

that's bluetooth for you.  for all of the protocol's complexity, you 
still have to frame your own packets.

-steve

On 05/13/2011 04:38 PM, Nicholas Hosein wrote:
> So i noticed when i send a packet from bluetooth (122 bytes / packet) it
> comes to the host broken up into multiple packets. This is an example of
> what the host receives when i send 4x122byte packets from the mote:
>
> **
>
> *Data Size: 1 *
>
> *Data Size: 64 *
>
> *Data Size: 57 *
>
> Data Size: 1
>
> Data Size: 66
>
> Data Size: 55
>
> *Data Size: 4 *
>
> *Data Size: 67 *
>
> *Data Size: 51 *
>
> Data Size: 11
>
> Data Size: 54
>
> Data Size: 57
>
>
> Is this normal or am i doing something wrong? It would be much easier if
> i just got one packet instead of having to send a payload and append
> multiple packets together.
>
>
> Much thanks guys,
>
>
> Nick
>
>
>
> _______________________________________________
> Shimmer-users mailing list
> [email protected]
> https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users
_______________________________________________
Shimmer-users mailing list
[email protected]
https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users
-------------------------------------------------------------
Intel Ireland Limited (Branch)
Collinstown Industrial Park, Leixlip, County Kildare, Ireland
Registered Number: E902934

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

_______________________________________________
Shimmer-users mailing list
[email protected]
https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users

Reply via email to