public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] on which level does hcidump work?
@ 2006-12-07 18:37 amateur
  2006-12-08 10:23 ` Marcel Holtmann
  0 siblings, 1 reply; 6+ messages in thread
From: amateur @ 2006-12-07 18:37 UTC (permalink / raw)
  To: bluez-devel

I'm encountering a problem that the data I sent through a L2CAP socket
on my local machine doesn't appear in the output of hcidump on the
remote machine. But it does appear in the output of hcidump on my
local machine.

So I'm wondering on which level does hcidump work. Does it work on the
host-dongle interface? What should I do if I want to monitor all the
information pass through the host-dongle interface(HCI_USB?). Or can I
make such an assumption that all the data showed in the output of
hcidump were sent out through the radio? Can I make such a assumption
that all the data received was showed up in the output of hcidump?

-- 
Be careful!  Is it classified?

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] on which level does hcidump work?
  2006-12-07 18:37 [Bluez-devel] on which level does hcidump work? amateur
@ 2006-12-08 10:23 ` Marcel Holtmann
  2006-12-09  1:48   ` amateur
  0 siblings, 1 reply; 6+ messages in thread
From: Marcel Holtmann @ 2006-12-08 10:23 UTC (permalink / raw)
  To: amateur, BlueZ development

Hi,

> I'm encountering a problem that the data I sent through a L2CAP socket
> on my local machine doesn't appear in the output of hcidump on the
> remote machine. But it does appear in the output of hcidump on my
> local machine.
> 
> So I'm wondering on which level does hcidump work. Does it work on the
> host-dongle interface? What should I do if I want to monitor all the
> information pass through the host-dongle interface(HCI_USB?). Or can I
> make such an assumption that all the data showed in the output of
> hcidump were sent out through the radio? Can I make such a assumption
> that all the data received was showed up in the output of hcidump?

you see only HCI packets (hence the name). There is no real way to make
sure the packet went over the air. In some cases you can make this
assumption from other stuff that is going on.

Regards

Marcel



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] on which level does hcidump work?
  2006-12-08 10:23 ` Marcel Holtmann
@ 2006-12-09  1:48   ` amateur
  2006-12-10 12:41     ` Marcel Holtmann
  0 siblings, 1 reply; 6+ messages in thread
From: amateur @ 2006-12-09  1:48 UTC (permalink / raw)
  To: BlueZ development

On Fri, Dec 08, 2006 at 11:23:54AM +0100, Marcel Holtmann wrote:
> Hi,
> 
> > I'm encountering a problem that the data I sent through a L2CAP socket
> > on my local machine doesn't appear in the output of hcidump on the
> > remote machine. But it does appear in the output of hcidump on my
> > local machine.
> > 
> > So I'm wondering on which level does hcidump work. Does it work on the
> > host-dongle interface? What should I do if I want to monitor all the
> > information pass through the host-dongle interface(HCI_USB?). Or can I
> > make such an assumption that all the data showed in the output of
> > hcidump were sent out through the radio? Can I make such a assumption
> > that all the data received was showed up in the output of hcidump?
> 
> you see only HCI packets (hence the name). There is no real way to make
> sure the packet went over the air. In some cases you can make this
> assumption from other stuff that is going on.
> 
Then how can I make sure that the HCI ACL Packet sent by the Host is
*really* received correctly by Host Controller? It seems like there
doesn't exist any packet acknowlegment sent from the Host Controller.
And there isn't a Command-Complete or Command-Status Event for HCI
ACL Packet. So should I ensure that the HCI Transport Layer is reliable?
I just want to make sure that the Packet I sent through HCI actually
reached the Host Controller.

-- 
You will be given a post of trust and responsibility.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] on which level does hcidump work?
  2006-12-09  1:48   ` amateur
@ 2006-12-10 12:41     ` Marcel Holtmann
  2006-12-10 14:16       ` amateur
  0 siblings, 1 reply; 6+ messages in thread
From: Marcel Holtmann @ 2006-12-10 12:41 UTC (permalink / raw)
  To: amateur, BlueZ development

Hi,

> > > I'm encountering a problem that the data I sent through a L2CAP socket
> > > on my local machine doesn't appear in the output of hcidump on the
> > > remote machine. But it does appear in the output of hcidump on my
> > > local machine.
> > > 
> > > So I'm wondering on which level does hcidump work. Does it work on the
> > > host-dongle interface? What should I do if I want to monitor all the
> > > information pass through the host-dongle interface(HCI_USB?). Or can I
> > > make such an assumption that all the data showed in the output of
> > > hcidump were sent out through the radio? Can I make such a assumption
> > > that all the data received was showed up in the output of hcidump?
> > 
> > you see only HCI packets (hence the name). There is no real way to make
> > sure the packet went over the air. In some cases you can make this
> > assumption from other stuff that is going on.
> > 
> Then how can I make sure that the HCI ACL Packet sent by the Host is
> *really* received correctly by Host Controller? It seems like there
> doesn't exist any packet acknowlegment sent from the Host Controller.
> And there isn't a Command-Complete or Command-Status Event for HCI
> ACL Packet. So should I ensure that the HCI Transport Layer is reliable?
> I just want to make sure that the Packet I sent through HCI actually
> reached the Host Controller.

that is the job of the HCI transport layer and not the job of the host
stack. The host stack simply assumes that the transport is reliable and
handles packet loss etc.

However ACL packets are bound to the HCI flow control and you will see
the number of packets acknowledgment.

Regards

Marcel



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] on which level does hcidump work?
  2006-12-10 12:41     ` Marcel Holtmann
@ 2006-12-10 14:16       ` amateur
  2006-12-10 14:20         ` Marcel Holtmann
  0 siblings, 1 reply; 6+ messages in thread
From: amateur @ 2006-12-10 14:16 UTC (permalink / raw)
  To: BlueZ development

On Sun, Dec 10, 2006 at 01:41:11PM +0100, Marcel Holtmann wrote:
> Hi,
> 
> > > > I'm encountering a problem that the data I sent through a L2CAP socket
> > > > on my local machine doesn't appear in the output of hcidump on the
> > > > remote machine. But it does appear in the output of hcidump on my
> > > > local machine.
> > > > 
> > > > So I'm wondering on which level does hcidump work. Does it work on the
> > > > host-dongle interface? What should I do if I want to monitor all the
> > > > information pass through the host-dongle interface(HCI_USB?). Or can I
> > > > make such an assumption that all the data showed in the output of
> > > > hcidump were sent out through the radio? Can I make such a assumption
> > > > that all the data received was showed up in the output of hcidump?
> > > 
> > > you see only HCI packets (hence the name). There is no real way to make
> > > sure the packet went over the air. In some cases you can make this
> > > assumption from other stuff that is going on.
> > > 
> > Then how can I make sure that the HCI ACL Packet sent by the Host is
> > *really* received correctly by Host Controller? It seems like there
> > doesn't exist any packet acknowlegment sent from the Host Controller.
> > And there isn't a Command-Complete or Command-Status Event for HCI
> > ACL Packet. So should I ensure that the HCI Transport Layer is reliable?
> > I just want to make sure that the Packet I sent through HCI actually
> > reached the Host Controller.
> 
> that is the job of the HCI transport layer and not the job of the host
> stack. The host stack simply assumes that the transport is reliable and
> handles packet loss etc.
> 
> However ACL packets are bound to the HCI flow control and you will see
> the number of packets acknowledgment.
This method seems feasible. I'll try it and find whether the packet
loss be due to the HCI USB transport layer.

Thank you for your advice, Marcel!

-- 
The Public is merely a multiplied "me."
		-- Mark Twain

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] on which level does hcidump work?
  2006-12-10 14:16       ` amateur
@ 2006-12-10 14:20         ` Marcel Holtmann
  0 siblings, 0 replies; 6+ messages in thread
From: Marcel Holtmann @ 2006-12-10 14:20 UTC (permalink / raw)
  To: amateur, BlueZ development

Hi,

> > > > > I'm encountering a problem that the data I sent through a L2CAP socket
> > > > > on my local machine doesn't appear in the output of hcidump on the
> > > > > remote machine. But it does appear in the output of hcidump on my
> > > > > local machine.
> > > > > 
> > > > > So I'm wondering on which level does hcidump work. Does it work on the
> > > > > host-dongle interface? What should I do if I want to monitor all the
> > > > > information pass through the host-dongle interface(HCI_USB?). Or can I
> > > > > make such an assumption that all the data showed in the output of
> > > > > hcidump were sent out through the radio? Can I make such a assumption
> > > > > that all the data received was showed up in the output of hcidump?
> > > > 
> > > > you see only HCI packets (hence the name). There is no real way to make
> > > > sure the packet went over the air. In some cases you can make this
> > > > assumption from other stuff that is going on.
> > > > 
> > > Then how can I make sure that the HCI ACL Packet sent by the Host is
> > > *really* received correctly by Host Controller? It seems like there
> > > doesn't exist any packet acknowlegment sent from the Host Controller.
> > > And there isn't a Command-Complete or Command-Status Event for HCI
> > > ACL Packet. So should I ensure that the HCI Transport Layer is reliable?
> > > I just want to make sure that the Packet I sent through HCI actually
> > > reached the Host Controller.
> > 
> > that is the job of the HCI transport layer and not the job of the host
> > stack. The host stack simply assumes that the transport is reliable and
> > handles packet loss etc.
> > 
> > However ACL packets are bound to the HCI flow control and you will see
> > the number of packets acknowledgment.
> This method seems feasible. I'll try it and find whether the packet
> loss be due to the HCI USB transport layer.

the HCI USB transport layer will retransmit packets on errors and have
an acknowledgment mechanism. Depending on the USB controller you use
this might be in hardware or in software. Check the USB specification
for further details.

Regards

Marcel



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

end of thread, other threads:[~2006-12-10 14:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-07 18:37 [Bluez-devel] on which level does hcidump work? amateur
2006-12-08 10:23 ` Marcel Holtmann
2006-12-09  1:48   ` amateur
2006-12-10 12:41     ` Marcel Holtmann
2006-12-10 14:16       ` amateur
2006-12-10 14:20         ` Marcel Holtmann

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