public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] suggestion for device control
Date: Fri, 08 Dec 2006 11:16:45 +0100	[thread overview]
Message-ID: <1165573006.5529.13.camel@aeonflux.holtmann.net> (raw)
In-Reply-To: <20061206164914.6718738c.ml133@netpole.com.br>

Hi,

> > > Hm. With raw, you do mean:
> > > 
> > >   socket (AF_BLUETOOTH, SOCK_RAW, BTPROTO_HCI);
> > > 
> > > right? or is there something else I need to set to raw?
> > 
> > that is not enough. You have to set the device into raw mode. Not only
> > open the raw socket. Check the source code for examples.
> 
> Right. Forgot to mention
> 
> 	ioctl (sd, HCISETRAW, 1);
> 
> This was already in my code which noticed kernel interference. And
> I've set all bits for events and packet types (if that matters
> regarding raw mode) when calling setsockopt with a filter. I'm looking
> at hcidump.c and can't see anything else which might be related to
> setting a device into raw mode. Should I see some other source?  What
> else do I need?

this should work. However I never tried to emulate everything by myself
and maybe at some point we broke the raw mode. Check with a 2.6.19
kernel and post the "hcidump -X -V" from your tests. Include any code
that is needed to reproduce what you see.

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

  reply	other threads:[~2006-12-08 10:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-06 13:16 [Bluez-devel] suggestion for device control Cris
2006-12-06 13:39 ` Marcel Holtmann
2006-12-06 15:17   ` Cris
2006-12-06 15:28     ` Marcel Holtmann
2006-12-06 18:49       ` Cris
2006-12-08 10:16         ` Marcel Holtmann [this message]
2006-12-08 11:24           ` Cris

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=1165573006.5529.13.camel@aeonflux.holtmann.net \
    --to=marcel@holtmann.org \
    --cc=bluez-devel@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