ESP32 BT SPP Master does not connect
Posted: Tue Feb 08, 2022 10:09 pm
Hi
I am using AT firmware 2.2 on ESP32 WROVER board. I can connect the ESP32 as BT SPP slave to a PC without any issues.
I have a Parani Bluetooth dongle SD-1000 that I can use as SPP Master or Slave.
If I use that as Master and ESP32 as BT SPP Slave, it works.
If I use Parani device as BT SPP Slave, with PC (as Master) it works.
However, if I use ESP32 BT SPP as Master and Parani as Slave, it doesn't work. ESP32 connection fails and just gives "ERROR" without any clue of the failure cause.
Please see the snapshot below of the AT commands interface with ESP32:
ready
AT+GMR
AT+GMR
AT version:2.2.0.0(s-c6fa6bf - ESP32 - Jul 2 2021 06:45:01)
SDK version:v4.2.2-76-gefa6eca
compile time(3a696ba):Jul 2 2021 11:50:38
Bin version:2.2.0(WROVER-32)
OK
AT+BTINIT=1
AT+BTINIT=1
OK
AT+BTNAME="TEK926"
AT+BTNAME="TEK926"
OK
AT+BTSPPINIT=1
AT+BTSPPINIT=1
OK
AT+BTSTARTDISC=0,10,10
AT+BTSTARTDISC=0,10,10
+BTSTARTDISC:"34:68:95:87:fd:60",,0x4,0xf,0x40,-90
+BTSTARTDISC:"00:01:95:5f:e3:17",,,,-17
+BTSTARTDISC:"00:01:95:5f:e3:17",,,,-18
+BTSTARTDISC:"70:54:b4:d7:84:22",TOSHIBA TV,0x4,0xf,0x40,-83
+BTSTARTDISC:"70:54:b4:d7:84:22",TOSHIBA TV,0x4,0xf,0x40,-84
+BTSTARTDISC:"00:01:95:5f:e3:17",,,,-16
+BTSTARTDISC:"54:13:79:ce:c1:ee",,0x4,0xf,0x40,-88
+BTSTARTDISC:"54:13:79:ce:c1:ee",,0x4,0xf,0x40,-85
+BTSTARTDISC:"70:54:b4:d7:84:22",,0x4,0xf,0x40,-85
+BTSTARTDISC:"70:54:b4:d7:84:22",TOSHIBA TV,0x4,0xf,0x40,-83
+BTSTARTDISC:"00:01:95:5f:e3:17",,,,-17
+BTSTARTDISC:"70:54:b4:d7:84:22",TOSHIBA TV,0x4,0xf,0x40,-81
+BTSTARTDISC:"70:54:b4:d7:84:22",TOSHIBA TV,0x4,0xf,0x40,-83
+BTSTARTDISC:"00:01:95:5f:e3:17",,,,-17
+BTSTARTDISC:"70:54:b4:2f:98:48",TOSHIBA TV,0x4,0xf,0x40,-91
+BTSTARTDISC:"00:01:95:5f:e3:17"
+BTSTARTDISC:"54:13:79:ce:c1:ee"
+BTSTARTDISC:"34:68:95:87:fd:60"
OK
AT+BTSPPCONN=0,0,"00:01:95:5f:e3:17"
AT+BTSPPCONN=0,0,"00:01:95:5f:e3:17"
ERROR
No matter what MAC address I use, it always gives "ERROR". I have tried to use "Authorisation" at both ends too but no success.
I have seen the documentation and examples. I have also seen some scattered posts about others facing the same issue.
Please could you help resolve this - we are unable to proceed with the project due to this issue.
Thanks
I am using AT firmware 2.2 on ESP32 WROVER board. I can connect the ESP32 as BT SPP slave to a PC without any issues.
I have a Parani Bluetooth dongle SD-1000 that I can use as SPP Master or Slave.
If I use that as Master and ESP32 as BT SPP Slave, it works.
If I use Parani device as BT SPP Slave, with PC (as Master) it works.
However, if I use ESP32 BT SPP as Master and Parani as Slave, it doesn't work. ESP32 connection fails and just gives "ERROR" without any clue of the failure cause.
Please see the snapshot below of the AT commands interface with ESP32:
ready
AT+GMR
AT+GMR
AT version:2.2.0.0(s-c6fa6bf - ESP32 - Jul 2 2021 06:45:01)
SDK version:v4.2.2-76-gefa6eca
compile time(3a696ba):Jul 2 2021 11:50:38
Bin version:2.2.0(WROVER-32)
OK
AT+BTINIT=1
AT+BTINIT=1
OK
AT+BTNAME="TEK926"
AT+BTNAME="TEK926"
OK
AT+BTSPPINIT=1
AT+BTSPPINIT=1
OK
AT+BTSTARTDISC=0,10,10
AT+BTSTARTDISC=0,10,10
+BTSTARTDISC:"34:68:95:87:fd:60",,0x4,0xf,0x40,-90
+BTSTARTDISC:"00:01:95:5f:e3:17",,,,-17
+BTSTARTDISC:"00:01:95:5f:e3:17",,,,-18
+BTSTARTDISC:"70:54:b4:d7:84:22",TOSHIBA TV,0x4,0xf,0x40,-83
+BTSTARTDISC:"70:54:b4:d7:84:22",TOSHIBA TV,0x4,0xf,0x40,-84
+BTSTARTDISC:"00:01:95:5f:e3:17",,,,-16
+BTSTARTDISC:"54:13:79:ce:c1:ee",,0x4,0xf,0x40,-88
+BTSTARTDISC:"54:13:79:ce:c1:ee",,0x4,0xf,0x40,-85
+BTSTARTDISC:"70:54:b4:d7:84:22",,0x4,0xf,0x40,-85
+BTSTARTDISC:"70:54:b4:d7:84:22",TOSHIBA TV,0x4,0xf,0x40,-83
+BTSTARTDISC:"00:01:95:5f:e3:17",,,,-17
+BTSTARTDISC:"70:54:b4:d7:84:22",TOSHIBA TV,0x4,0xf,0x40,-81
+BTSTARTDISC:"70:54:b4:d7:84:22",TOSHIBA TV,0x4,0xf,0x40,-83
+BTSTARTDISC:"00:01:95:5f:e3:17",,,,-17
+BTSTARTDISC:"70:54:b4:2f:98:48",TOSHIBA TV,0x4,0xf,0x40,-91
+BTSTARTDISC:"00:01:95:5f:e3:17"
+BTSTARTDISC:"54:13:79:ce:c1:ee"
+BTSTARTDISC:"34:68:95:87:fd:60"
OK
AT+BTSPPCONN=0,0,"00:01:95:5f:e3:17"
AT+BTSPPCONN=0,0,"00:01:95:5f:e3:17"
ERROR
No matter what MAC address I use, it always gives "ERROR". I have tried to use "Authorisation" at both ends too but no success.
I have seen the documentation and examples. I have also seen some scattered posts about others facing the same issue.
Please could you help resolve this - we are unable to proceed with the project due to this issue.
Thanks