Base class for the ublox-xxx-cellular-xxx classes. Cannot be used standalone, only inherited by classes that do properly useful stuff. Or, to put it another way, if you are using any of the ublox-xxx-cellular-xxx classes, you will need this class also.
Dependents: example-ublox-cellular-interface example-ublox-cellular-driver-gen HelloMQTT example-ublox-cellular-interface_r410M ... more
Revision 15:93b157a47b8d, committed 2018-07-12
- Comitter:
- fahim.alavi@u-blox.com
- Date:
- Thu Jul 12 10:13:45 2018 +0500
- Parent:
- 14:e420232ee4e7
- Child:
- 16:afb3ca2d9915
- Child:
- 17:c6a4d5072589
- Child:
- 18:2c255818b3a9
- Commit message:
- Updated RSSI calculation by changing quality index to value in dB
Changed in this revision
| UbloxCellularBase.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/UbloxCellularBase.cpp Tue Jan 09 13:20:15 2018 +0000
+++ b/UbloxCellularBase.cpp Thu Jul 12 10:13:45 2018 +0500
@@ -30,7 +30,8 @@
/* Array to convert the 3G qual number into a median EC_NO_LEV number.
*/
/* 0 1 2 3 4 5 6 7 */
-const int qualConvert3G[] = {44, 41, 35, 29, 23, 17, 11, 7};
+ /* 44, 41, 35, 29, 23, 17, 11, 7*/
+const int qualConvert3G[] = {-2, -4, -7, -10, -13, -16, -19, -21};
/* Array to convert the 3G "rssi" number into a dBm RSCP value rounded up to the
* nearest whole number.
@@ -1027,9 +1028,10 @@
// 3G
if ((qual >= 0) && (qual <= 7)) {
qual = qualConvert3G[qual];
+ rssiRet = rscpConvert3G[rssi];
+ rssiRet -= qual;
}
- rssiRet = rscpConvert3G[rssi];
- rssiRet -= qual;
+
break;
case LTE:
// LTE
u-blox