jvpernis / esp32-ps3

Control your ESP32 projects with a PS3 controller!
319 stars 86 forks source link

Error while trying to connect #43

Open tenitz opened 2 years ago

tenitz commented 2 years ago

Hello!

I am running this component on ESP-IDF v4.2 with following code:

void app_main(void)
{
    uint8_t new_mac[8] = {0x30,0xae,0xa4,0xbf,0x5b,0x7e};
    esp_base_mac_addr_set(new_mac);
    nvs_flash_init();

    ps3SetEventCallback(controller_event_cb);
    ps3SetBluetoothMacAddress(new_mac);
    ps3Init();
    while (!ps3IsConnected()) {
        // Prevent the Task Watchdog from triggering
        vTaskDelay(10 / portTICK_PERIOD_MS);
    }
}

I set the custom MAC-address on two original PS3 controllers with the SixaxisPairerTool. While trying to connect to the ESP with either controller, the following error appears in the logs everytime the PS-button is pressed:

I (1178) PS3_SPP: ESP_SPP_INIT_EVT
I (1198) PS3_L2CAP: [ps3_l2cap_init_service] Service PS3-HIDC Initialized
I (1198) PS3_L2CAP: [ps3_l2cap_init_service] Service PS3-HIDI Initialized
E (4538) BT_BTM: btm_sec_l2cap_access_req: (acceptor) remote features unknown!!sec_flags:0x80
julian-weinert commented 2 years ago

Hey @tenitz, did you ever solve this issue? I just realised I overlooked this one and posted a new one