HC-05 bluetooth RSSI does not work with Arduino

I cannot get HC-05 bluetooth modules to output RSSI values. I issue the following commands sequentially:

AT+INIT -> *OK* AT+INQM=1,9,48 -> *OK* AT+INQ -> *No response, it starts flashing rapidly, indicating AT mode is no longer active* 

After the INQ command, the module starts flashing quickly. I think this means that he exited AT command mode, and I do not receive a response to an INQ request. Should I issue an INIT command before INQM? since otherwise it returns an error (16).

I even tried to purchase another brand of HC-05, but it did not help.

Why is this happening, and how can I solve it?

EDIT: Just for more information, do I also have AT + VERSION? commands, and this is great for the version. The only thing that doesn't work is AT + INQ ... Here is the result when I start my serial monitor:

 bt2bt HC module - version a BtSetCmdMode 1 BtReset Set as Master OK +VERSION:2.0-20100601 OK OK OK 

UPDATE: I can still talk to the module after it starts flashing: "AT + STATE" -> + STATUS: REQUEST But how can I get answers to the INQ command from the module?

+6
source share
6 answers

Try

 at+inq\r\n 

Accordin to this , p. 17

The process for HC-05 should be:

 at+init\r\n ---- Initialize the SPP profile lib( can't repeat initialization) -> OK at+iac=9e8b33\r\n ----Inquire Bluetooth device has an access code -> OK at+class=0\r\n ----Inquire the Bluetooth device type at+inqm=1,9,48\r\n At+inq\r\n ----inquire the Bluetooth device around 
+2
source

I had the same problem. I found a strange thing. I press the small button in my HC-05 and turn on the HC-05. Then I can enter AT mode. then I can use the AT command, as in + class = 0, at + role = 1. But if I tried to enter in + inq, I do not see any answer. But ....... I tried a special event. I pressed the small button in my HC-05, and "hold on" so as not to let it go. And try the + inq command ... wow ... it works .... I don't know why ... but maybe you can try. you must press the special command AT + (high contact 34 (key)). Even if the hc-05 is in AT mode.

+8
source

To set the request settings in the chip, I think you should call

 AT+INQM=1,9,48 

not

 AT+INQM? 

This team with? used to request current settings.

+2
source

You need to add /r/n to the end of the Bluetooth module calls. /r is the carriage return character, and /n is the line character. They work together to act like pressing the enter key on a keyboard.

For calls, /r/n is required so that the Bluetooth module knows that this is the end of the command, otherwise everything will be one line.

+1
source

try the following:

 at 

Make sure you get the answer as an answer.

then

 at+init at+orgl at+role=1 at+inqm=1,9,48 at+inq 

Make sure that the device you are trying to find is in discovery mode and it should appear in the output list for a minute. I think the part you were missing was at+role=1

+1
source

please also make sure that HC-05 is in master mode

 at+role=1\r\n ----Setting the device for master mode 

By default, factory is slave mode. Because of this, I just wasted half a day.

0
source

All Articles