first of, I really tried the search engine but I could not find anything about my issue or HM-19.
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
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.
The fact that you got the advice probably implies that Android is seeing Bluetooth OK.
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!
Agree with you, that's why I'm here asking for help
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.........
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.
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.