Hi all -
I have a BLE Beacon device/sensor that throws out 3 sensor values every 0.5 seconds. I am getting the sensor data pretty reliably, but sometimes (at random) there’s a 6 - 10 second drop in data - no data is seen in the ESPhome logs. In the following log snippet, the sensor device is sitting within 6 inches (15.25 cm) of the ESP32 device, so signal attenuation shouldn’t be a problem.
Here’s the log snippet:
[22:08:42][V][sensor:059]: 'OnSemi BLE Temperature': Received new state 24.760000
[22:08:42][D][sensor:110]: 'OnSemi BLE Temperature': Sending state 76.56800 °F with 2 decimals of accuracy
[22:08:42][V][sensor:059]: 'OnSemi BLE Humidity': Received new state 41.490002
[22:08:42][D][sensor:110]: 'OnSemi BLE Humidity': Sending state 41.49000 % with 2 decimals of accuracy
[22:08:42][V][sensor:059]: 'OnSemi BLE Battery': Received new state 2881.000000
[22:08:42][D][sensor:110]: 'OnSemi BLE Battery': Sending state 2881.00000 mV with 1 decimals of accuracy
[22:08:42][V][component:204]: Component esp32_ble_tracker took a long time for an operation (0.06 s).
[22:08:42][V][component:205]: Components should block for at most 20-30ms.
[22:08:43][V][esp32_ble:179]: (BLE) gap_event_handler - 3
[22:08:43][V][esp32_ble:179]: (BLE) gap_event_handler - 3
[22:08:43][V][esp32_ble:179]: (BLE) gap_event_handler - 3
[22:08:43][V][esp32_ble:179]: (BLE) gap_event_handler - 3
[22:08:43][V][esp32_ble:179]: (BLE) gap_event_handler - 3
[22:08:43][V][esp32_ble:179]: (BLE) gap_event_handler - 3
[22:08:43][V][esp32_ble:179]: (BLE) gap_event_handler - 3
[22:08:43][V][esp32_ble:179]: (BLE) gap_event_handler - 3
[22:08:44][V][esp32_ble:179]: (BLE) gap_event_handler - 3
[22:08:44][V][esp32_ble:179]: (BLE) gap_event_handler - 3
[22:08:44][V][esp32_ble:179]: (BLE) gap_event_handler - 3
[22:08:44][V][esp32_ble:179]: (BLE) gap_event_handler - 3
[22:08:44][V][esp32_ble:179]: (BLE) gap_event_handler - 3
[22:08:44][V][esp32_ble:179]: (BLE) gap_event_handler - 3
[22:08:45][V][esp32_ble:179]: (BLE) gap_event_handler - 3
[22:08:45][V][esp32_ble:179]: (BLE) gap_event_handler - 3
[22:08:45][V][esp32_ble:179]: (BLE) gap_event_handler - 3
[22:08:45][V][esp32_ble:179]: (BLE) gap_event_handler - 3
[22:08:45][V][esp32_ble:179]: (BLE) gap_event_handler - 3
[22:08:45][V][esp32_ble:179]: (BLE) gap_event_handler - 3
[22:08:46][V][esp32_ble:179]: (BLE) gap_event_handler - 3
[22:08:46][V][esp32_ble:179]: (BLE) gap_event_handler - 3
[22:08:46][V][esp32_ble:179]: (BLE) gap_event_handler - 3
[22:08:46][V][esp32_ble:179]: (BLE) gap_event_handler - 3
[22:08:46][V][esp32_ble:179]: (BLE) gap_event_handler - 3
[22:08:47][V][esp32_ble:179]: (BLE) gap_event_handler - 3
[22:08:47][V][sensor:059]: 'OnSemi BLE Temperature': Received new state 24.760000
[22:08:47][D][sensor:110]: 'OnSemi BLE Temperature': Sending state 76.56800 °F with 2 decimals of accuracy
[22:08:47][V][sensor:059]: 'OnSemi BLE Humidity': Received new state 41.500000
[22:08:47][D][sensor:110]: 'OnSemi BLE Humidity': Sending state 41.50000 % with 2 decimals of accuracy
[22:08:47][V][sensor:059]: 'OnSemi BLE Battery': Received new state 2870.000000
[22:08:47][D][sensor:110]: 'OnSemi BLE Battery': Sending state 2870.00000 mV with 1 decimals of accuracy
I usually see a lot of the “gap_event_handler - 3” log messages preceeding the data gaps. Wondering if it’s related, but I’m not finding much info on the net about the gap_event_handler message. Any ideas of where to look or investigte the data drop outs?
thanks