Bluebee 4.0 RSSI

Bluetooth, XBee, RF......

Bluebee 4.0 RSSI

Postby hiphop9686 » Fri Apr 01, 2016 12:25 pm

I able to get RSSI and display in Arduino Serial monitor when 2 bluebee 4.0 are connected.

I want to ask, is it possible to compare the RSSI ?

such that 1st RSSI = -49
2nd RSSI = -51

and do comparison in the coding, display the difference in serial monitor?

any advice?
hiphop9686
Apprentice
 
Posts: 34
Joined: Thu Nov 26, 2015 9:58 pm

Re: Bluebee 4.0 RSSI

Postby bengchet » Mon Apr 04, 2016 10:41 am

Hi,

Yes it is possible in coding. Make 2 variables, let's say int newRSSI=0 and int oldRSSI=0.

The flow:
1. Get updated RSSI and store it to newRSSI.
2. Get the difference between newRSSI and oldRSSI and display the difference in Serial monitor.
3. Copy the value of newRSSI to oldRSSI.
4. Repeat step 1-3.

Try do the coding according to this flow.

P:S: You can try Arduino Serial Plotter and see the graph, requirement: use Serial.println(RSSI) instead of Serial.print(RSSI), println is a must. Add a delay before going back to step 1 from step 4 as sampling time. A delay of 1000 ms meaning 1 sec sampling interval.
bengchet
Moderator
 
Posts: 227
Joined: Tue Aug 25, 2015 8:29 am

Re: Bluebee 4.0 RSSI

Postby hiphop9686 » Mon Apr 04, 2016 6:31 pm

Thank you for the information.

It really helps me a lot.
hiphop9686
Apprentice
 
Posts: 34
Joined: Thu Nov 26, 2015 9:58 pm


Return to Wireless Device

Who is online

Users browsing this forum: No registered users and 1 guest

cron