Connect two HM-10 bluetooth error

Hi everyone,
I use two Arduino UNO boards, then pin two HM-10 Bluetooth on each board, and I want to talk between them.
When I open the serial port window and type "AT", it replies "OK".And I also can change its name and its "master" or"slave" by typing "AT+NAME***" and "AT+ROLE".
I know their MAC address as "AT+ADDR?", but I can't connect the two of them.
I search for lots of information, and they tell me to type "AT+CO***"(*** is the MAC address), "AT+BAND***", and "AT+DISC***", but they all didn't work. :disappointed_relieved:
This is my code:(Slave and Master are the same)

#include <SoftwareSerial.h>
int HM10_TxD=2;int HM10_RxD=3;
SoftwareSerial BT(HM10_TxD,HM10_RxD);
char cb, cS;
void setup()
{
  Serial. begin(9600);
  BT.begin(9600);
}
void loop() {
if(Serial.available()){cB=Serial.read();BT.print(cB);}
if(BT.available()){cS=BT.read();Serial.print(cS);}
}

If you have any solution, please tell me the AT commands, thanks!

I also have another problem, when I type "AT+RENEW", the Bluetooth doesn't work! :sob: