How can I display the RSSI value on serial monitor or something similar, such as how long it takes to complete the data transmit? Is there any specific library I have to add-on?
Hi,
Sorry, I didn't understand the "transmit and receive problem" from your post?
You need to have the Radiohead library installed, the documentation for the Board and Talk2 Libraries can be found on the following links:
https://bitbucket.org/talk2/whisper-nod ... rc/master/
and
https://bitbucket.org/talk2/talk2-library/src/master/
To get the RSSI value on the receiving node you can use the function "lastRSSI()", which returns an int16_t value. For example:
Regarding the timing, you can use mills() to see the time before and after the transmission to have an idea of how long it took. There will be some additional processing time but should give you a very good idea.
Another way to get the transmission time is to check the RF95 datasheet (same as Semtech SX1276) and manually calculate it. Semtech also has some "LoRa Calculator", which helps calculate the time-on-air for a transmission - you can download this tool from this page: https://www.semtech.com/products/wirele ... ers/sx1272
If you need more information, please have a look on the official Radiohead library documentation at https://www.airspayce.com/mikem/arduino ... _RF95.html
Regards,
Sorry, I didn't understand the "transmit and receive problem" from your post?
You need to have the Radiohead library installed, the documentation for the Board and Talk2 Libraries can be found on the following links:
https://bitbucket.org/talk2/whisper-nod ... rc/master/
and
https://bitbucket.org/talk2/talk2-library/src/master/
To get the RSSI value on the receiving node you can use the function "lastRSSI()", which returns an int16_t value. For example:
Code: Select all
// After you identify a message has been received
Serial.println(myRadio.lastRSSI());Another way to get the transmission time is to check the RF95 datasheet (same as Semtech SX1276) and manually calculate it. Semtech also has some "LoRa Calculator", which helps calculate the time-on-air for a transmission - you can download this tool from this page: https://www.semtech.com/products/wirele ... ers/sx1272
If you need more information, please have a look on the official Radiohead library documentation at https://www.airspayce.com/mikem/arduino ... _RF95.html
Regards,
