Return-Path: Subject: RE: [Bluez-devel] HCI data packet From: Marcel Holtmann To: bluez-devel@lists.sourceforge.net In-Reply-To: <20050901145400.BB3131EC845@mrelay1.st2.lyceu.net> References: <20050901145400.BB3131EC845@mrelay1.st2.lyceu.net> Content-Type: text/plain Message-Id: <1125921628.11955.6.camel@pegasus> Mime-Version: 1.0 Sender: bluez-devel-admin@lists.sourceforge.net Errors-To: bluez-devel-admin@lists.sourceforge.net Reply-To: bluez-devel@lists.sourceforge.net List-Unsubscribe: , List-Id: BlueZ development List-Post: List-Help: List-Subscribe: , List-Archive: Date: Mon, 05 Sep 2005 14:00:28 +0200 Hi Esther, > Regarding HCI data packets and BlueZ... > > If I use the BlueZ command "hci_create_connection" and connect to another > device, how do I sent an HCI data packet to this device? you need to use the raw socket for it and then follow the H:4 protocol, but doing any communication this way is not a good idea. You have to deal with different packet sizes and handle the ACL-cont flag. Even for a very simple protocol you should use L2CAP. The overhead of L2CAP is really not that much. Regards Marcel ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel