none
Vendor HCI command RRS feed

  • Question

  • Hi,

    Iam trying to send Vendor HCI command.

    Iam getting error 87 (Invalid Parameter)

    Is patterns required after data?

    Code snippet:

    PBTH_VENDOR_SPECIFIC_COMMAND pVendorSpecificCommand; DWORD dwSize = sizeof(BTH_VENDOR_SPECIFIC_COMMAND) + 3; BYTE outputbuffer[254]; unsigned char data[] = {0x04, 0x04, 0x24}; pVendorSpecificCommand = (PBTH_VENDOR_SPECIFIC_COMMAND)::LocalAlloc(LPTR, dwSize);

    pVendorSpecificCommand->ManufacturerId = 2;//Intel pVendorSpecificCommand->LmpVersion = 0;//To All radios pVendorSpecificCommand->MatchAnySinglePattern = TRUE; pVendorSpecificCommand->HciHeader.OpCode = 0xFC00; pVendorSpecificCommand->HciHeader.TotalParameterLength = 3; memcpy(pVendorSpecificCommand->Data, data, 3);

    DWORD dwErrCode = DeviceIoControl(hRadio, IOCTL_BTH_HCI_VENDOR_COMMAND, pVendorSpecificCommand, dwSize,outputbuffer

    , 254, 0, NULL);

    if (!dwErrCode) { dwErrCode = GetLastError(); } ::LocalFree(pVendorSpecificCommand);

    Sunday, December 28, 2014 7:05 AM