The phone can't find or pair with the HC-05

  • HC-05
  • HC-06

You may see

read failed, socket might closed or timeout, read ret: -1

Why it happens

  • iPhones and iPads don't support the HC-05's kind of Bluetooth in apps.
  • The module has no power or is in settings mode (slow 2-second blink).
  • It's already connected to another phone.

How to fix it

  1. Use an Android phone.
  2. Check VCC is on 5 V and the LED blinks fast (about twice a second).
  3. In Android Settings pair with 1234 or 0000, then open the terminal app.
  4. For iPhone, use a BLE module or an ESP32 with BLE.

It worked if: The LED changes from fast blinks to a slow double blink.

From how the part works. Blink patterns vary between module makers.

Didn't help? Search another error or ask us.