public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ Mailing List <bluez-users@lists.sourceforge.net>
Subject: Re: [Bluez-users] HCI send and receive
Date: Wed, 08 Dec 2004 08:32:24 +0100	[thread overview]
Message-ID: <1102491144.9988.28.camel@pegasus> (raw)
In-Reply-To: <2de46576041207221162e8ba29@mail.gmail.com>

Hi Manjunath,

> > > I want to set up an HCI connection between 2 dongles, see the default
> > > packet type at connection, then send data. Now keeping the existing
> > > connection, I want to change packet type and  then send data....Is
> > > this possible????
> > 
> > I don't see what you expect from this, but it is possible.
> 
> What i am expecting is a measure of varying throughput with change in
> packet type.

I don't see for what this will be good, but you can simply set the same
packet type on both sides with hciconfig and then use l2test or rctest
for measuring. Or create a PAN and use standard IP tools.

> > > Should I write small programs just to send and receive data with known
> > > payload....then I can establish a connection using hcitool and use
> > > these programs to send and receive data passing the connection handle
> > > as the parameter. Is this right??
> > 
> > All API commands you need are there and you can always use the HCI raw
> > socket. It is a H:4 based, one command or data packet per read/write
> > interface. 
> I am ignorant about this.....are you saying HCI raw socket provides
> the one command or data packet per read/write interface....can you
> elaborate...

It is as I said. You can write/read H:4 on a HCI raw socket.
 
> And it is a good idea to send L2CAP conform ACL data packets.
> Does this mean it would be a L2CAP connection as you send some chips
> expect L2CAp frames???

I think some chips do and actually also the remote Bluetooth stack might
expect L2CAP.

Regards

Marcel




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

      reply	other threads:[~2004-12-08  7:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-08  5:18 [Bluez-users] HCI send and receive Manjunath Prabhu
2004-12-08  5:34 ` Marcel Holtmann
2004-12-08  6:11   ` Manjunath Prabhu
2004-12-08  7:32     ` Marcel Holtmann [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1102491144.9988.28.camel@pegasus \
    --to=marcel@holtmann.org \
    --cc=bluez-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox