I use the following 2 commands to calculate the rssi value:
AT+INQM=1,9,48
AT+INQ
Whenever I ask my phone's bluetooth to get all the all the available devices and write these codes (in the serial monitor), HC-05 returns me the rssi value
else it either gives error[0] or just returns an OK.
How to resolve this, I want it to return me the RSSI everytime
thanks in advanced
Please note the following questions already asked about HC05 by @harrylily , which might be relevant:
I am using this code to send AT commands using HC-05 to calculate RSSI value :
#include <SoftwareSerial.h>
SoftwareSerial BTSerial(12, 13);
void command(const char *toSend, unsigned long milliseconds) {
String result;
Serial.print("Sending: ");
Serial.println(toSend);
BTSerial.println(toSend);
unsigned long startTime = millis();
Serial.print("Received: ");
while (millis() - startTime < milliseconds) {
if (BTSerial.available()) {
char c = BTSerial.read();
Serial.wr…
https://forum.arduino.cc/t/unable-to-find-rssi-using-at-commands-in-hc-05/881455
I want to calculate distance using RSSI value. I want my HC-05 and arduino UNO to calculate the RSSI value from any nearby bluetooth connected device.
how to write the code for this (I dont know much of arduino coding).
Also all the libraries I found are for wifi module, kindly suggest some library for getting RSSI in HC-05.
Thanks,
system
Closed
November 12, 2021, 2:21pm
3
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.