You don’t need the class code for sending the vendor URB down the stack. For instance you can just use
UsbBuildVendorRequest(pUrb,
URB_FUNCTION_CLASS_DEVICE,
sizeof(struct _URB_CONTROL_VENDOR_OR_CLASS_REQUEST),
0,
0,
0,
0,
0,
pBuffer,
NULL,
BufferLength,
NULL);
D
This posting is provided “AS IS” with no warranties, and confers no rights
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of SUJA JAMES
Sent: Tuesday, February 24, 2004 12:45 AM
To: Windows System Software Devs Interest List
Subject: Re: RE: [ntdev] Bluetooth and USB
Hi
Thanks for quick response…
I just want to send some HCI raw commands to my device. Not going to develop the bluetooth stack.
As per the HCI spcecifcatiion " Endpoint 0 is used to configure and control the USB device. Endpoint 0 will also be used to allow the host to send HCI specific commands to the host controller.When the USB firmware receives a packet over this endpoint that has the Bluetooth class code, it should treat the packet as an HCI command packet."
I just want to know how I can get this “Bluetooth class code” from my device (I don’t have the spec of my USB Adapter) and where I fill this flag while using the “UsbBuildVendorRequest” macro. Any same code to show how to use this “UsbBuildVendorRequest” macro
Thanks in advance
Shibu
On Tue, 24 Feb 2004 Doron Holan wrote :
Get the Bluetooth core spec from http://www.bluetooth.com.? Appendix H I
think contains the USB HCI specification.? Having implemented a lot of
the core Bluetooth protocols, you have a *LOT* of work ahead of you if
you plan on implementing L2CAP, HCI, SDP, and RFCOMM (at a minimum).
Plan on at least a year and attending a few UPFs.
D
This posting is provided “AS IS” with no warranties, and confers no
rights.
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of SUJA JAMES
Sent: Monday, February 23, 2004 11:42 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Bluetooth and USB
Hi All,
I need to write a WDM driver for a Bluetooth USB Adapter.
Does any one have any sample code or documentation on sending Bluetooth
commands to the USB Adapter?.
Please help me. How to send Bluetooth commands to the USB Adapter
Thanks in advance
Suja
— Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256 You are currently subscribed
to ntdev as: xxxxx@windows.microsoft.com To unsubscribe send a blank
email to xxxxx@lists.osr.com
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@rediffmail.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
— Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256 You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com To unsubscribe send a blank email to xxxxx@lists.osr.com