HCI_LE_Transmitter_Test command

mike_dawes
Posts: 2
Joined: Thu Apr 25, 2024 6:53 pm

HCI_LE_Transmitter_Test command

Postby mike_dawes » Wed Nov 13, 2024 5:32 pm

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?

mike_dawes
Posts: 2
Joined: Thu Apr 25, 2024 6:53 pm

Re: HCI_LE_Transmitter_Test command

Postby mike_dawes » Fri Nov 15, 2024 10:55 pm

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

Who is online

Users browsing this forum: No registered users and 79 guests