This project about connecting Android, Bluetooth LE/4.0. It's designed for use with BLE/BT 4.0 modules based upon TI's CC2540. You can use the module to get the rssi value and distance betwwen cell phone and the module.
Pls check your HM-10 module is genuine http://fab.cba.mit.edu/classes/863.15/doc/tutorials/programming/bluetooth/bluetooth40_en.pdf
Step1:AT+RENEW
Step2:AT+RESET
Step3:AT+IBEA1
Step4:AT+ROLE0
Step5:AT+IMME1
Step6:AT+MODE2
Step7:AT+RESET
1.Click Button
Char Transfer Test
2.HM10 transfer "GET"
RSSI
Distance
- RX is digital pin 12 (connect to TX of other device)
- TX is digital pin 13 (connect to RX of other device)
Console Display Set:No End Line
If you use my app to connect HM10 module(Slave mode), and use HM10 sent "GET" to cell phone. The cell phone will feedback the RSSI and DIST to HM10. The photo as below