Hello! I was wondering where is the RSSI value is being kept. I was told that it was kept inside a register and if so, I'm wondering how do I find out/which register it is because we're going to connect it to a PIC later on and will need it to refer to that register and value.

You can use several AT commands.AT+ROLE=1 -> set Master roleAT+INIT -> start SPPAT+INQM=1,9,48 -> set enquiry RSSI and max number of devices discoveredAT+IQM -> Get address, class and RSSI value of detected devices

Thanks for the reply!We already did testing and paired the BlueBee with a smartphone. But what we aim to do now is that we want the RSSI value from the link between the paired BlueBee and the smartphone to be processed in PIC coding since the BlueBee itself will be connected to a PIC later on. So my question is, how do we get the value so that it can be processed in the PIC? Like, is there a specific line of coding which we can use to make the PIC refer to the RSSI value within the bluetooth module? Please correct me if I am wrong, thank you.

You need to program the PIC to do serial (UART) communication with Bluebee. Then try the command as mention by bengchet to obtain the RSSI value.

Cytron Technologies invest time and resources providing tutorial, training and support for STEM education and maker movement. We need your support by purchasing products from Cytron Technologies. Thanks.http://www.cytron.com.my

So basically it's like this, we've connected all the 4 pins from the bluebee to the PIC (cross connecting Tx & Rx), paired the bluebee with a phone (to create a wireless link) and then afterwards I would need to write the C code in PIC to request RSSI value from bluebee to be transferred to the PIC so that I can store this value in a variable, which will be used later.

But if I use the code given by BengChet above, it is AT command and not C command. I was wondering how can I write the AT command in C code.

Emm I think you're jumping too much. Do you know about UART? It is a communication protocol between 2 devices, and bluebee is one of them. Try to study about this first before going to send the AT command. We have the tutorial about PIC and UART but that post is in 2011, not sure the code is still compatible with current version of compiler or not. But the concept is there.

If you want the express way, try using Arduino. It has ready made library for serial (UART) communication. It looks like this:

*This is not the complete code, I just wanna show you about serial (UART) communication in Arduino and how to write the AT command in Arduino.

Cytron Technologies invest time and resources providing tutorial, training and support for STEM education and maker movement. We need your support by purchasing products from Cytron Technologies. Thanks.http://www.cytron.com.my

How do you execute the AT commands? These commands can only work if only BlueBee itself has not connected to any devices and it is in AT mode. Try execute the commands without arduino platform, use UART terminal instead to do testing as Arduino Serial monitor, RealTerm, Hyperterminal etc.