final 1
Fork of C027_Support by
Diff: MDM.cpp
- Revision:
- 121:8da935c2c08c
- Parent:
- 117:74e4e0109a9e
- Child:
- 122:5f6804915d77
--- a/MDM.cpp Thu Jan 22 08:02:55 2015 +0000 +++ b/MDM.cpp Thu Mar 12 17:27:42 2015 +0000 @@ -678,7 +678,7 @@ char _ber[] = { 49, 43, 37, 25, 19, 13, 7, 0 }; // see 3GPP TS 45.008 [20] subclause 8.2.4 // +CSQ: <rssi>,<qual> if (sscanf(buf, "\r\n+CSQ: %d,%d",&a,&b) == 2) { - if (a != 99) status->rssi = -113 + 2*a; // 0: -113 1: -111 ... 30: -53 dBm with 2 dBm steps + if (a != 99) status->rssi = -113 + 2*a; // 0: -113 1: -111 ... 30: -53 dBm with 2 dBm steps, 31: >-51 dBm if ((b != 99) && (b < sizeof(_ber))) status->ber = _ber[b]; // } }