Skip to content

BluetoothSerial phone can pair but cannot connect #6847

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
liangzhichao63 opened this issue Jun 8, 2022 · 7 comments
Closed
1 task done

BluetoothSerial phone can pair but cannot connect #6847

liangzhichao63 opened this issue Jun 8, 2022 · 7 comments
Assignees
Labels
Area: BT&Wifi BT & Wifi related issues Resolution: Unable to reproduce With given information issue is unable to reproduce

Comments

@liangzhichao63
Copy link

Board

ESP32 PICO KIT

Device Description

ESP32 PICO KIT

Hardware Configuration

Empty development board

Version

v1.0.6

IDE Name

arduino ide

Operating System

win10

Flash frequency

40Mhz

PSRAM enabled

no

Upload speed

115200

Description

Arduino bluetoothserial code example, you can pair but cannot connect.

Sketch

#include "BluetoothSerial.h"

#if !defined(CONFIG_BT_ENABLED) || !defined(CONFIG_BLUEDROID_ENABLED)
#error Bluetooth is not enabled! Please run `make menuconfig` to and enable it
#endif

BluetoothSerial SerialBT;

void setup() {
  Serial.begin(115200);
  SerialBT.begin("ESP32test"); //Bluetooth device name
  Serial.println("The device started, now you can pair it with bluetooth!");
}

void loop() {
  if (Serial.available()) {
    SerialBT.write(Serial.read());
  }
  if (SerialBT.available()) {
    Serial.write(SerialBT.read());
  }
  delay(20);
}

Debug Message

No Debug Message

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@liangzhichao63 liangzhichao63 added the Status: Awaiting triage Issue is waiting for triage label Jun 8, 2022
@VojtechBartoska VojtechBartoska added the Area: BT&Wifi BT & Wifi related issues label Jun 9, 2022
@me-no-dev
Copy link
Member

have you tried with version 2.0.3?

@liangzhichao63
Copy link
Author

Yes, I have. The connection works when using BLE.But the BluetoothSerial was not working properly.

@SuGlider SuGlider self-assigned this Jun 10, 2022
@SuGlider
Copy link
Collaborator

@liangzhichao63

I have just made it work correctly with a ESP32-DevKit board and Arduino Core 2.0.3.
Basically, I just paired it in Win11 and then open the Device Manager to see the COM port associated to the Bluetooth Serial connection. Finally I open 2 Putty windows, one for the ESP32-UART and another for the Bluetooth COM port.

When I type in one of the Putty windows, it displays in the other one, as expected.

@SuGlider
Copy link
Collaborator

image

image

@SuGlider SuGlider added Resolution: Unable to reproduce With given information issue is unable to reproduce and removed Status: Awaiting triage Issue is waiting for triage labels Jun 10, 2022
@liangzhichao63
Copy link
Author

It may be that the ESP32 PICO D4 chip is not adapted, thank you for helping me verify.

@VojtechBartoska
Copy link
Contributor

@liangzhichao63 Can I consider this as solved?

@VojtechBartoska VojtechBartoska added the Resolution: Awaiting response Waiting for response of author label Jun 14, 2022
@VojtechBartoska
Copy link
Contributor

VojtechBartoska commented Jul 26, 2022

Closing as unable to reproduce, explanation was provided and there were not further questions.

@VojtechBartoska VojtechBartoska closed this as not planned Won't fix, can't repro, duplicate, stale Jul 26, 2022
@VojtechBartoska VojtechBartoska removed the Resolution: Awaiting response Waiting for response of author label Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: BT&Wifi BT & Wifi related issues Resolution: Unable to reproduce With given information issue is unable to reproduce
Projects
None yet
Development

No branches or pull requests

4 participants