Return-Path: From: Marcel Holtmann To: BlueZ development In-Reply-To: <20061206131754.39cddee0.ml133@netpole.com.br> References: <20061206111617.d8f16a0c.ml133@netpole.com.br> <1165412385.2756.52.camel@localhost> <20061206131754.39cddee0.ml133@netpole.com.br> Date: Wed, 06 Dec 2006 16:28:18 +0100 Message-Id: <1165418898.2756.84.camel@localhost> Mime-Version: 1.0 Subject: Re: [Bluez-devel] suggestion for device control Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net Hi, > > you can tell the kernel to switch a HCI device into raw mode and after > > that point you have full control over that device. > > I am opening the devices in raw mode, but nevertheless I capture > reconfiguration commands from the kernel at connection time. I didn't > yet reach the point to be able to tell how much the kernel actually > interfers, but it does act at connection configuration time and > l2cap/rfcomm do kick in on raw sockets. I even tried to unload the > l2cap/rfcomm kernel modules, but they get reloaded at some point. Is > there something else I have to switch off? (I did stop the bluetooth > daemons like hcid, sdpd, rfcommd). > > 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. 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