public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] Differentiate packets
@ 2006-10-17 15:37 Dalmo Oliveira
  2006-10-17 15:49 ` Marcel Holtmann
  0 siblings, 1 reply; 2+ messages in thread
From: Dalmo Oliveira @ 2006-10-17 15:37 UTC (permalink / raw)
  To: bluez-devel


[-- Attachment #1.1: Type: text/plain, Size: 198 bytes --]

  Hi, 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?

[-- Attachment #1.2: Type: text/html, Size: 203 bytes --]

[-- Attachment #2: Type: text/plain, Size: 373 bytes --]

-------------------------------------------------------------------------
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

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Bluez-devel] Differentiate packets
  2006-10-17 15:37 [Bluez-devel] Differentiate packets Dalmo Oliveira
@ 2006-10-17 15:49 ` Marcel Holtmann
  0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2006-10-17 15:49 UTC (permalink / raw)
  To: BlueZ development

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-10-17 15:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-17 15:37 [Bluez-devel] Differentiate packets Dalmo Oliveira
2006-10-17 15:49 ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox