D-Link bluetooth usb adapter
D-Link bluetooth usb adapter
- Subject: D-Link bluetooth usb adapter
- From: Tatiana & Dmitri <email@hidden>
- Date: Mon, 08 Jul 2002 16:40:41 -0700
Hi,
I'm trying to talk to D-Link adapter using HCI. I'm able to get pipes
indexes and properties. I found: interrupt IN an index 1, bulk IN at 2 and
bulk OUT at 3. I'm sending HCI_Read_Buffer_Size to pipe 0
char read_buffer_size_command[3];
read_buffer_size_command[0] = 0xA0; // 1010.0000
read_buffer_size_command[1] = 0x04; // 0000.0100
read_buffer_size_command[2] = 0x00; // 0000.0000
using
req.bmRequestType = USBmakebmRequestType(kUSBOut, kUSBVendor,
kUSBDevice);
req.wLength = size; // 3
req.pData = data; // points to read_buffer_size_command
req.noDataTimeout = NO_DATA_TIMEOUT; // 5000
req.completionTimeout = NO_COMPLETION_TIMEOUT; // 5000
err = (*gBluetoothDevice.intf)->ControlRequestTO(gBluetoothDevice.intf,
0, &req);
I'm not getting any erros at this point.
After this I'm trying to read event pipe in hope I get any response.
Unfortunately I don't get any. ReadPipeTO times out (returns -536870206) or
if I use ReadPipe it never gets any data.
Could you give me a hint what I'm doing wrong. I appreciate any input.
I'm sorry if my question is out of scope of this list.
Thank you,
Dmitri.
_______________________________________________
bluetooth-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/bluetooth-dev
Do not post admin requests to the list. They will be ignored.