Help me. HM-10 multiple connects

First of all, I'm not good at English. Sorry about that

I'll try to explain my problem as well as i possible

This is my Code.

#include <SoftwareSerial.h>

#define BT_RXD 8
#define BT_TXD 9

SoftwareSerial bluetooth(BT_RXD, BT_TXD);

void setup() {
Serial.begin(9600);
bluetooth.begin(9600);
}

void loop() {
if (bluetooth.available()) {
Serial.write(bluetooth.read());
}

if (Serial.available()) {
bluetooth.write(Serial.read());
}
}

I have two HM-10, and one UNO, and LEONARDO

I uploaded that code to both arduinos.

and used AT comman like this

AT+ROLE
using this command, I distinguished between master and slave

AT+ADDR
using this command to slave, I checked slave module's address

AT+INQ
using this command to master, I find connectable device near me

AT+CONN
using this command to master, I connected two HM-10 each other

After connecting, the two HM-10's led turs on without blank

So, I think they are connected without problem

I expected that if I type something to Serial monital, then I can see that on the other side of arduino's Serai monital

But, it doesn't work even I type anything include AT commands

When before I connect two modules each ohter, I tried connect the module with my phone using terminal app, one by one.

In that time I succeded transfer some word both of HM-10

But, if I connected HM-10 each other, then I can't transfer any words as I said

Please help me

You are trying to use an HM-10 in the same way as an HC-05. I think this is confusing, unreliable, and a bad idea. You might get some help from the Martyn Currey website. You might need the Bluetooth Connect library.g

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.