From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marcel Holtmann To: BlueZ development In-Reply-To: <1999a7e40610170837h57cc00f1lecc471dfe78fbce7@mail.gmail.com> References: <1999a7e40610170837h57cc00f1lecc471dfe78fbce7@mail.gmail.com> Date: Tue, 17 Oct 2006 17:49:08 +0200 Message-Id: <1161100148.19267.4.camel@localhost> Mime-Version: 1.0 Subject: Re: [Bluez-devel] Differentiate packets 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 Dalmo, > how can i differentiate a data packet from a command packet in the > host controller? If i receive only bytes, i must check the first 12 > bits from my packet to see if it is a connection handle? for H4 UART transport they are prefixed with a one byte data type. For USB transport they come in over different endpoints on the USB bus. All other transports use similar mechanism. Regards Marcel ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel