BLE 5.0 HM-19 pairing (bonding)!

Hello everyone,

first of, I really tried the search engine but I could not find anything about my issue or HM-19. :triumph: :triumph: :triumph:

I guess it's a really new product which sounds very promising (or a big scam!).

So simply here's my issue.
Whatever I do, I can't pair my android mobile phone to the HM-19 module. I can connect it without password, but, not pairing. It keeps telling me "an app is needed to connect".

I can also communicate with the module using serial port. And could find the firmware version which is v114.

I tried to flash it also to pervious firmware, but, without any luck neither.

Any help is very very very appropriated! Because I have no more to do except throwing the module against the wall :rofl: :rofl: :rofl:

Thank you all in advanced.
Tommy

Pairing is an optional feature in BLE. Maybe your device does not support it (all the original Arduinos and the ArduinoBLE library do not ether). You can simply use a generic BLE app and test it. I use BLE Scanner on iOS but there many others on iOS and Android. Simply connect and see if you can read and write the characteristics.

Probably not such a great idea, and recognising what you've got is rather more constructive. The first thing to consider is: do you really need the pairing process? Most users probably get along just fine by connecting directly via the app - as you have already been advised.

What this presupposes, of course, is that you have installed a BLE-capable app. If not, you might start with the terminal app by Kai Morich.
image
The fact that you got the advice probably implies that Android is seeing Bluetooth OK.

Maybe your device does not support it

I have Galaxy s10. I checked its specs, it supports BLE 5.0. Is that what you mean?

(all the original Arduinos and the ArduinoBLE library do not ether)

I don't use any library. Just serial communication.

You can simply use a generic BLE app and test it

I have tried many apps (BLE scanner, Serial bluetooth terminal by Kai.....). All I can do with those apps is connecting the HM-19 but, without password. I mean in TYPE1 or TYPE2. I want the app to ask me for password , I don't anyone can connect to it!

Probably not such a great idea

Agree with you, that's why I'm here asking for help :slightly_smiling_face:

do you really need the pairing process?

To be more clear, as I understand it, the pairing is needed just the first time. It asks for password, connecting and doesn't need to do anything I use my app. Simply, when I open my app, it connects automatically. Right?

What this presupposes, of course, is that you have installed a BLE-capable app. If not, you might start with the terminal app by Kai Morich.

I tried it. I can make a successful connection, but, only when HM-19 on TYPE1 or TYPE2. If HM-19 on TYPE3 and I try to connect to it using this app, I get this message "Connection failed: PAIRING requested.. perform pairing steps. For troubleshooting see info" and at the same time a pairing notification pops up asking for pairing... When I accept pairing, it connects WITHOUT asking for password, BUT JUST FOR " SECONDS.........

Isn't so weird? Did I miss something?

As I understand it, no, the Morich app does not ask for a pass word but it will attempt to auto-connect with the most recent customer. If a password was required, the phone would be doing it, not he app. It is just faintly possible that this procedure is more down to the app than Android, but I doubt it. I'm afraid the Morich app is the only BLE app I have ever used, and that only fleetingly.

My manual for the HM-19 CC2460R2 has no AT command to set the password, but it is not clear to me that we are talking about the same device, as what I understand to be a snip from your datasheet does not match mine.

As KK points out, pairing is an optional feature, or should I say a PIN, but this may be more in theory than in fact. The HM-10 does have an AT command to set it, but I don't recall doing so - or using the default.

but it is not clear to me that we are talking about the same device

Yes. We are talking about the same device. HM-19 module based on CC2460R2.
Please note that there're two different (different software) HM-19 modules in the market. One with JiNan Huamao software (which I have) and the other one with DSD tech software. But, I guess it's the same shit with little differences.

My manual for the HM-19 CC2460R2 has no AT command to set the password

No it has.... check the photo and please note the notice in the end of the example. It says that the password or PIN function is added since V107. My module is V114 . I attached the whole AT Command PDF file also, you can check the page 24.

HM-18-19 datasheet.pdf (993.4 KB)

As KK points out, pairing is an optional feature, or should I say a PIN , but this may be more in theory than in fact. The HM-10 does have an AT command to set it, but I don't recall doing so - or using the default.

The HM-10 has it! I have HM-10 and tested it. It works as it should work. On TYPE3. the device asks for PIN and pairs easily when right PIN entered.

Thanx, I will file it away. I don't use BLE much. I see that the manual I have, provider unknown, is for v1.03 of 2018.

Thanx, I will file it away. I don't use BLE much. I see that the manual I have, provider unknown, is for v1.03 of 2018.

Give it a try... why not. But, as long as your module version is V1.03 so I guess it's from DSD Tech and not from JiNan Huamao.

Give it a try and please give us a feedback.