public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] hcidump and l2cap questions
@ 2004-10-17 15:14 Sean Loh
  2004-10-17 15:20 ` Marcel Holtmann
  0 siblings, 1 reply; 4+ messages in thread
From: Sean Loh @ 2004-10-17 15:14 UTC (permalink / raw)
  To: bluez-users

Hi,

I'm streaming audio from one computer to another
computer  using the pan profile.

1. I would like to see bnep packets being filtered
through hcidump. But when i put the bnep filter on,
hcidump does not print out anything. It only seems to
print out acl and l2cap data. Why is that? How am I
able to see bnep packet info?

2. I notice that even if i send udp packets that have
55000 bytes. The maximum packet length that turns up
on hcidump is 1500 bytes. Shouldn't it be 55000 bytes
because the max mtu for an l2cap packet is 65535
bytes?

thanks

bluez rules



		
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bluez-users] hcidump and l2cap questions
  2004-10-17 15:14 [Bluez-users] hcidump and l2cap questions Sean Loh
@ 2004-10-17 15:20 ` Marcel Holtmann
  2004-10-17 15:42   ` Sean Loh
  0 siblings, 1 reply; 4+ messages in thread
From: Marcel Holtmann @ 2004-10-17 15:20 UTC (permalink / raw)
  To: Sean Loh; +Cc: BlueZ Mailing List

Hi Sean,

> I'm streaming audio from one computer to another
> computer  using the pan profile.
> 
> 1. I would like to see bnep packets being filtered
> through hcidump. But when i put the bnep filter on,
> hcidump does not print out anything. It only seems to
> print out acl and l2cap data. Why is that? How am I
> able to see bnep packet info?

simply call "hcidump -x" and be happy. However if you miss the initial
l2cap_connect_req the dynamic channel assignment don't works.

> 2. I notice that even if i send udp packets that have
> 55000 bytes. The maximum packet length that turns up
> on hcidump is 1500 bytes. Shouldn't it be 55000 bytes
> because the max mtu for an l2cap packet is 65535
> bytes?

The L2CAP uses segmentation and we use a MTU of 1691. Start thinking a
little bit about the Ethernet frame size and so on.

Regards

Marcel




-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bluez-users] hcidump and l2cap questions
  2004-10-17 15:20 ` Marcel Holtmann
@ 2004-10-17 15:42   ` Sean Loh
  2004-10-17 16:05     ` Marcel Holtmann
  0 siblings, 1 reply; 4+ messages in thread
From: Sean Loh @ 2004-10-17 15:42 UTC (permalink / raw)
  To: bluez-users

Hi again Marcel,

Thanks for the quick response!!!!

1. Does that mean that bluez constantly fragments all
upperlayer protocols to a max of 1500 bytes?

2. What does the parameters of these hcidump mean?
1098027478.336048 < BNEP: Compressed(0x02|0)
    [proto 0x0800]

As usual thanks a lot..!!!!


--- Marcel Holtmann <marcel@holtmann.org> wrote:

> Hi Sean,
> 
> > I'm streaming audio from one computer to another
> > computer  using the pan profile.
> > 
> > 1. I would like to see bnep packets being filtered
> > through hcidump. But when i put the bnep filter
> on,
> > hcidump does not print out anything. It only seems
> to
> > print out acl and l2cap data. Why is that? How am
> I
> > able to see bnep packet info?
> 
> simply call "hcidump -x" and be happy. However if
> you miss the initial
> l2cap_connect_req the dynamic channel assignment
> don't works.
> 
> > 2. I notice that even if i send udp packets that
> have
> > 55000 bytes. The maximum packet length that turns
> up
> > on hcidump is 1500 bytes. Shouldn't it be 55000
> bytes
> > because the max mtu for an l2cap packet is 65535
> > bytes?
> 
> The L2CAP uses segmentation and we use a MTU of
> 1691. Start thinking a
> little bit about the Ethernet frame size and so on.
> 
> Regards
> 
> Marcel
> 
> 
> 



		
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bluez-users] hcidump and l2cap questions
  2004-10-17 15:42   ` Sean Loh
@ 2004-10-17 16:05     ` Marcel Holtmann
  0 siblings, 0 replies; 4+ messages in thread
From: Marcel Holtmann @ 2004-10-17 16:05 UTC (permalink / raw)
  To: Sean Loh; +Cc: BlueZ Mailing List

Hi Sean,

> 1. Does that mean that bluez constantly fragments all
> upperlayer protocols to a max of 1500 bytes?

this is only specific if you use BNEP, because it is an Ethernet
emulation and you can use IP on top of it.

> 2. What does the parameters of these hcidump mean?
> 1098027478.336048 < BNEP: Compressed(0x02|0)
>     [proto 0x0800]

I haven't looked up the protocol value for 0x0800, but I guess you get a
BNEP packet with an IP frame as payload.

Regards

Marcel




-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-10-17 16:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-17 15:14 [Bluez-users] hcidump and l2cap questions Sean Loh
2004-10-17 15:20 ` Marcel Holtmann
2004-10-17 15:42   ` Sean Loh
2004-10-17 16:05     ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox