Both cellular signal strength and quality affect cellular communications. Signal strength is how strong the received signal is. Signal quality measures how much interference or noise is present in the signal. Cellular signal strength is measured in decibel-milliwats (dBm), where a -90 dBm value is better than -100.
Particle functions that return signal strength and quality are normalized to a 0.0 to 100.0 range, where higher values are better. Particle cellular signal strength can be obtained as follows:
const uint16_t PARTICLE_CONNECTED_WAIT = 10000;
uint16_t particle_connected_wait_ms = 0;
float cell_sig_strength = -1.0;
float cell_sig_quality = -1.0;
if (Particle.connected()) {
// Connected to the Particle cloud
particle_connected_wait_ms = millis()
// Wait 10 more seconds before executing the following:
CellularSignal sig = Cellular.RSSI();
float strength = sig.getStrength();
float quality = sig.getQuality();
}
if (millis() - particle_connected_wait_ms > PARTICLE_CONNECTED_WAIT) {
}
Cellular Connectivity Troubleshooting Guide
rickkas7 comments on calling Cellular.RSSI()
Do you need help developing or customizing a IoT product for your needs? Send me an email requesting a free one hour phone / web share consultation.
The information presented on this website is for the author's use only. Use of this information by anyone other than the author is offered as guidelines and non-professional advice only. No liability is assumed by the author or this web site.