1
\$\begingroup\$

I have followed the directions from the site below for bluetooth comm between an Arduino board using the HC-05 and an smartphone. It works fine.

The problem is that I need to measure the RSSI from my phone and using the command AT+INQ the response from the HC-05 is "OK" and nothing else.

I paired both devices using my phone as master and the HC-05 as slave, and when I am sending commands to the HC-05 through the Arduino, the pin KEY from the HC-05 is set to high (3.3V).

Do you have any suggestion to solve the problem I am facing?

\$\endgroup\$
  • \$\begingroup\$ You should perhaps set inquire mode first? Using AT+INQM command. \$\endgroup\$ – zgrkpnr89 Jul 20 '15 at 23:53
  • \$\begingroup\$ I have not set/changed any parameter, and the default configuration is: ROLE=0, IAC=9e8b33, CLASS=0, INQM=1,9,48, IPSCAN=1024,512,1024,512. Also I have initialized SPP using AT+INIT before using the command AT+INQ \$\endgroup\$ – gus Jul 21 '15 at 16:13
2
\$\begingroup\$

You have to set the module in MASTER mode to determine RSSI values. So the ideal method would be as follows:

AT+INIT
AT+CMODE=1
AT+ROLE=1
AT+IAC?
AT+INQM?
AT+INQ
AT+INQC

AT+INIT will initialize SPP,after which making CMODE=1 enables all devices to connect and then you set the module in MASTER mode(by default it is in SLAVE mode, and hence you will not be able to determine RSSI). After this the procedure is almost same as you have mentioned.

Cheers!

\$\endgroup\$
-1
\$\begingroup\$

AT+CLASS=0 solved my issue. It was only looking for a specific class devices.

\$\endgroup\$
  • \$\begingroup\$ Welcome to EE.SE, John. Answers should answer the original question, not your question. It's not clear from your answer whether you are suggesting that the OP (original poster) should try this. You should also add an explanation as to why this works. \$\endgroup\$ – Transistor Sep 6 '17 at 6:11

protected by Community Nov 30 '18 at 17:35

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.