Martin
Martin

Reputation: 2904

HM-10 BLE microcontroller connected without PIN

I'm using HM-10 controller to communicate with my Android App. In Arduino console I set pin with command AT+PIN112233 which should be Passkey for BLE device. This PIN was saved to my device but Android phone can connect to this device without any confirmation or PIN request. Is this normal behaviour?

I just find device through scanning in BroadcastReceiver and I get device under action BluetoothDevice.ACTION_FOUND. It will return BluetoothDevice and I just connect to this device with

bleGatt = bleDevice.connectGatt(this, true, bleGattCallback)

I did not get any Dialog window in my Android App asking for PIN. Also tried some other apps for Bluetooth or BLE connection and it was the same. None of them asked for PIN during pairing.

Also my HM-10 BLE controller does not react to some AT commands:

Upvotes: 1

Views: 1201

Answers (3)

Ruchith Reddy
Ruchith Reddy

Reputation: 1

The AT+TYPE command only works with HM10 version >V515. The default for any module is

no need pincode(TYPE 1)

The command to get version of our module is AT+VERR?. Data sheet of HM10 https://people.ece.cornell.edu/land/courses/ece4760/PIC32/uart/HM10/DSD%20TECH%20HM-10%20datasheet.pdf

Upvotes: 0

Martin
Martin

Reputation: 2904

I had clone model MLT-BT05 where AT+TYPE2 is not working. That means I cant set pairing method only change PIN which is practically useless.

Upvotes: 0

anyotherdude
anyotherdude

Reputation: 83

I believe this behavior is normal. The same thing happened with my Arduino Nano 33 BLE and Android app that I built. The pin code connection process is for bonding.

Upvotes: 0

Related Questions