Sending data from Blueduino central role to another BLE device

Hello,
I want to connect BlueDuino Rev 2 with another BLE device connected to an Arduino.
The BlueDuino (firmware 2.1.5) is set to central role, while the other BLE device is set to peripheral.
It connects nicely (I can check from the other device’s leds), but I am not able to send any data through transparent UART from BlueDuino to other device.
It is working anyway in the opposite direction, i.e. if I’m sending data from the peripheral device to BlueDuino, it shows up correctly in the serial monitor of BlueDuino.

Both devices are connected to two different computers, with serial monitor on, and both arduinos are loaded with serial passthrough sketches.

Can you please help? I wonder if it’s a known bug of the firmware version, I can’t find any refernce for 2.1.5

Matteo

Hi,

What module is the another BLE device?

it is an HM-10 (genuine) connected to a cactus micro rev2
I am able to send data from iphone in central role to HM10 in peripheral using lightblue, back and forth

the only transmission that doesn’t work is blueduino (central) -> HM10 (peripheral)

updated to 2.2.3 but still doesn’t work!

worse than that, when two modules are connected, if I try to send data from Blueduino to HM10, it hangs the Blueduino (does not respond to AT commands anymore). When this happens, the BLE connection is still working, because I can send data from HM10 t oBlueduino, even if the latter is not respondign to AT commands:

I’ve place an order for a HM10 module. Will test it soon

Let me know first the firmware version of HM10, mine is v540 but I could update if necessary, just to try the same

We just got the module today. the firmware version is v545.

Got the chanche to do some testing?
Matteo

I would be interested about this as well.

hey there, still no news?

Hi all,

We’re a little busy these days. I do some simple test with HM10 module. It seems has a new self learning feature. I downloaded the user manual bluetooth40_en.zip and read the “HM-10_11 V542 Self-Learning Function Introduction”.

Here’re the command list for HM10 module (firmware V545).

  • HM10 work as central role
  • BlueDuino work as peripheral role
 Those AT Command only need be executed once more
         ================================================
AT+RENEW
AT+IMME1
AT+SHOW1 (If you doesnt want to get slave device name, forget this command)
AT+COMP1
AT+NOTI1
AT+128B0
AT+UUID0xFFF2
AT+CHAR0xFFF1
AT+ROLE1
 
  Now you can use those AT Commands to discovery or connect a slave device.
  =========================================================================
AT+DISC? (Start a scan procedure)
OK+DISCS (Module response, Start scan procedure)
OK+DIS<P1><P2><P3> (Module response, Found device)
      <P1>: Device Type
      <P2>: Device MAC Address
      <P3>: Device Name
OK+DISCE (Module response, Scan procedure finished)
AT+CO<P1><P2> (Try to connect a slave device)
     <P1>: Device Type
     <P2>: Device MAC address

yes, but the case here is quite different
HM10 works as slave, and blueduino as central, so HM10 is not doing anything

BLE connection works fine, but blueduino is not sending data in UART transparent mode

M

one more issue: after upgrading to 2.2.3, I am not able anymore to talk to BLE module through arduino HWSerial1. The connection is good, because the sketch is the same as before when I was using 2.1.5, and it works with termite, but it is not working through ArduinoI didn’t notice befpre because it was hooked up with serial-TTL and I was using termite, but now I noticed that after updating to 2.2.3 it does not work anymore!

Hi,

BLE connection works fine, but blueduino is not sending data in UART transparent mode

HM10 use difference service (0xFFE0) and characteristic (0xFFE1) to send and receive data. BlueDuino use service 0xFFF0 and characteristic 0xFFF1 & 0xFFF2.

one more issue: after upgrading to 2.2.3, I am not able anymore to talk to BLE module through arduino HWSerial1.

You need add \r\n at line end to send AT command. Please try the sketch hardwareSerialMonitor first.

so you’re telling me that there is no way to make the two units communicate?
and why HM10 is able instead to send data through transparent UART to blueduino?

turns out that the 32U4 may be damaged; I reprogrammed it in bootloader mode and now it works. After a few reprogramming, anyway, it hangs again and I have to reprogram it in bootloader mode to unlock the arduino

Hi All!

Im making a blueduino project, the arduino UNO prototype work fine with hm 10 and app for android. Now im adapting the project to blueduino and i have some problems with de communication (i want to work with the blueduino in the same way and protocol with hm10s) to be 100% compatible. I´m learning about reprograming ibeacon with hm10 firm, the chip its the same cc2541but i don’t know exactly the way to do it. im working with arduino and mac.

Im following the topic,i will write if i have any news.
Thanks and comment!!

Hi mickysuarez,

BlueDuino use the chip CC2540 not CC2541. Please note.

April, no news in this regards?

We need add some AT commands to change the UUID same with HM10. We have some on-going projects so will do it after weeks.

Please make this happen fast, I need this in a project that would release as soon as possible.

Br,
Ville