Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: UbloxCellularBase.cpp
- Revision:
- 15:93b157a47b8d
- Parent:
- 14:e420232ee4e7
- Child:
- 16:afb3ca2d9915
- Child:
- 17:c6a4d5072589
--- 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