Skip to content

Cannot use esp32_ble_tracker on ESP32C3 #2941

@rpatel3001

Description

@rpatel3001

The problem

Trying to use the BLE tracker hub on the C3 hits a couple roadblocks. First, it requires changing /config/.esphome/build/node-name/sdkconfig.node-name by either 1) setting CONFIG_BT_BLE_50_FEATURES_SUPPORTED=n or 2) setting CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y. Either one allows the build to compile and has the same second problem.

The second problem is that builds including esp32_ble_tracker refuse to be uploaded via OTA. The esphome log shows:

========================= [SUCCESS] Took 40.25 seconds =========================
INFO Successfully compiled program.
INFO Connecting to 192.168.0.180
INFO Uploading /config/.esphome/build/node-name/.pioenvs/node-name/firmware.bin (1293824 bytes)
ERROR Error receiving acknowledge binary size: timed out

and the device log (set to VERY_VERBOSE) shows

[21:37:37][D][ota:136]: Starting OTA Update from 192.168.0.10...
[21:37:37][V][ota:167]: OTA features is 0x01
[21:37:37][V][ota:250]: OTA size is 1293824 bytes
INFO node-name.local: Error while reading incoming messages: Error while reading data: [Errno 104] Connection reset by peer
INFO Disconnected from ESPHome API for node-name.local
WARNING Disconnected from API
INFO node-name.local: Ping Failed: Error while reading data: [Errno 104] Connection reset by peer
INFO Successfully connected to node-name.local

Which version of ESPHome has the issue?

2021.12.3

What type of installation are you using?

Docker

Which version of Home Assistant has the issue?

n/a

What platform are you using?

ESP32-IDF

Board

M5Stack Stamp C3

Component causing the issue

esp32_ble_tracker

Example YAML snippet

esphome:
  name: node-name

esp32:
  board: esp32-c3-devkitm-1
  variant: esp32c3
  framework:
    type: esp-idf

logger:
  level: VERY_VERBOSE

# Enable Home Assistant API
api:
  password: ""

ota:
  password: ""

wifi:
  ssid: "xxx"
  password: "xxx"

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Fallback Hotspot"
    password: "xxx"

esp32_ble_tracker:

Anything in the logs that might be useful for us?

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions