Forum >Lag in RSSI refreshing
Bluno General Arduino

Lag in RSSI refreshing

userHead jamie.winton 2018-09-19 17:03:20 5135 Views8 Replies
Hi.

I am using:
Bluno Nano Arduino BLE Bluetooth
Arduino IDE 1.8.7 for Windows

I am interested in reading the RSSI value in real-time to use as a distance estimation. However, I am finding that there is a very significant lag in the RSSI value being updated. For example, when the paired device is very close it will read -41 but when I move the paired device far away it will continue to read -41 for many seconds (10-90 seconds) before it gets updated to another value such as -77. If I move closer again it will continue to say -71 for many seconds until it starts reporting the stronger signal strength. Is this simply a limitation of the Bluno device? Thanks.

My program below.

char Data[100];
char RAW[3];
int INDEX;

void setup() {
Serial.begin(115200); //Initiate the Serial comm
Serial.println("In Setup");
}


void loop(){
int x=0;

delay(500);
Serial.print("+");
Serial.print("+");
Serial.print("+");
delay(500);

for(x=0 ; Serial.available() > 0 ; x++ ){ // get the Enter AT mode words
Data[x] = Serial.read(); // Read and store Data Byte by Byte
}

Serial.println("AT+RSSI=?"); // Ask about the RSSI
delay(500);

for( ; Serial.available() > 0 ; x++ ){
Data[x] = Serial.read(); // Read and store Data Byte by Byte
}

Serial.println("AT+EXIT");
delay(500);

int last_byte = x;

//Serial.print("after AT exit, x=");
//Serial.println(x);

for( x=0; x <= last_byte; x++ ){
Serial.print(Data[x]);
}
Serial.println();
}
2022-01-19 01:06:16 slope is an enjoyable and challenging game for people of all ages. Learning how to play the game, whether you're a novice or a seasoned pro, may be enjoyable and gratifying. This article will show you how to play Slope in a simple and step-by-step manner userHeadPic irenethu167
2018-10-06 18:10:25 geometry dash is a series of five video games developed by Sweden-based developer Robert Topala, and published by his company, RobTop Games. The principal game, Geometry Dash, it is a rhythm-based platforming game which currently has 21 official levels and has more than 40 million online levels made by players. userHeadPic colorswitch0202
2018-09-27 02:22:15 Hi
I also have project with Bluno Beetle to get RSSI value to estimates the distance. But i can't get update of rssi value although waiting for long time. Bluno beetle must be restart , after restart i just get update rssi value.
Time to get update value of rssi is 5-10seconds. So to get 15samples rssi value takes about more than 1minute. Anyone can help this problem?

Thanks
userHeadPic filda.tamtam
2018-09-25 21:56:31 Hi.
I mean you can customize the update frequency code in the module firmware to change the refresh rate.
userHeadPic makermuyi
2018-09-23 16:27:03 We have applied firmware 1.97. It is the Bluno Nano (DFR0296). It still behaves the same way. Is this the latest firmware? userHeadPic jamie.winton
2018-09-22 00:28:18 Hi.
You can reprogram the firmware of the Bluetooth device to speed up the update.
userHeadPic makermuyi
2018-09-20 06:18:44 I understand that RSSI is not very accurate. Regardless, I would like to know why it takes a very long time for the value to be updated. Is there anything I can do to force the value to be updated faster? userHeadPic jamie.winton
2018-09-20 00:11:23 Hi.
Accroding you desceible of you question.you can't estimate the distance by reading the real-time value of RSSI.RSSI will increase when there is signal transmission between paired devices.RSSI is not necessarily weak when paired devices are close together.
userHeadPic makermuyi