Page 1 of 1

HCI_LE_Transmitter_Test command

Posted: Wed Nov 13, 2024 5:32 pm
by mike_dawes
I am attempting to use the esp_vhci_host_send_packet() function on an ESP32-PICO-D4 to send the HCI LE Transmitter Test command. The command response status is always 0x12 (Invalid HCI Command Parameters). Other HCI test commands (LE Receiver Test command) work as expected with a 0x00 status. I have tried changing the parameter values and confirmed the validity of the parameters with the HCI specification.

https://www.bluetooth.com/wp-content/up ... c1896cca8d

Code: Select all

    // HCI packet (HCI_LE_Transmitter_Test command)
    uint8_t hci_cmd[] = {
        0x01,          // HCI Command packet type
        0x1E, 0x20, // HCI_LE_Transmitter_Test opcode
        0x01,          // RF channel (0-39)
        0x5,            // Length of test packet payload
        0x01           // Packet payload 
    };
host rcv pkt: 040e04051e2012

Has anyone else run into this issue?

Re: HCI_LE_Transmitter_Test command

Posted: Fri Nov 15, 2024 10:55 pm
by mike_dawes
Realized I'd neglected to include the number of parameters

// HCI packet (HCI_LE_Transmitter_Test command)
uint8_t hci_cmd[] = {
0x01, // HCI Command packet type
0x1E, 0x20, // HCI_LE_Transmitter_Test opcode
0x03, // Number of parameters
0x01, // RF channel (0-39)
0x5, // Length of test packet payload
0x01 // Packet payload
};