HM-10 BLE module - How to force disconnect all devices from the HM-10 side?

a year ago by promitheas to c/ece

Hello everyone! I have the following HM-10 module which is 5v tolerant: Bluetooth Module for Arduino - HM10 I have connected it as such: HM-10 -> Arduino Vcc -> 5v GND -> GND STATE -> pin 11 Rx -> pin 10 Tx -> pin 9 BRK -> pin 5 I am using the SoftwareSerial library so that I keep my debugging log messages. Here is the relevant code: else if (strcmp(options[result], "Disconnect") == 0) { g_selection_pending = false; digitalWrite(5, LOW); delay(100); digitalWrite(5, HIGH...

Hello once again everyone!

I've made considerable progress on my thesis thanks in part to you guys answering my previous post here. I'm already writing up the report, and have pretty much the entire system programmed through the Arduino.

However, I am still having difficulties figuring out how to initiate/force a disconnect of all BT devices connected to the HM-10 module (this is the one I got). You can refer to the post I made on the arduino forums (link in post) where I also searched for the solution but had no luck, but sadly its been almost 2 weeks and still no answer.

To cut a long story short, I have all the pins of the HM-10 wired except the BRK pin currently, even though I wired that up previously and tried sending LOW-HIGH-LOW and HIGH-LOW-HIGH pulses to try to disconnect. As far as I understand it, what I have is not exactly the HM-10 but an HM-10 mounted on a breakout board(?).

The data sheet on the website I got it from seems to be for the bare HM-10 so its a bit confusing for me. It talks about a specific pin (PIO0) which looks to be wired to a switch, but there is no switch or button on the actual module and that doesn't help me anyway as I want to initiate a disconnect from code.

So how can I make it disconnect from all devices when the user for example selects a certain option from the menu of my system?

As always, I will greatly appreciate any help, and of course if you need any more info let me know and I'll try to provide it.

ece
ece

@lemmy.world

login for more options
3133
104
27

Electrical and computer engineering (ECE) community, for professionals and learners. Discuss ECE related topics here, for instance digital design, signal processing, circuit analysis, electromagnetics, microelectronics, power electronics, RF electronics, etc.

go to feed...