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 31:b0a6a610d114, committed 2019-08-29
- Comitter:
- fahimalavi
- Date:
- Thu Aug 29 16:52:05 2019 +0500
- Parent:
- 30:38230504a646
- Child:
- 32:1fc4850f1253
- Commit message:
- get band select bitmask to set new bands
Changed in this revision
| UbloxCellularBase.cpp | Show annotated file Show diff for this revision Revisions of this file |
| UbloxCellularBase.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/UbloxCellularBase.cpp Tue Aug 27 18:38:29 2019 +0500
+++ b/UbloxCellularBase.cpp Thu Aug 29 16:52:05 2019 +0500
@@ -1541,6 +1541,22 @@
return status;
}
+
+bool UbloxCellularBase::get_band_bitmask(uint64_t *m1_bitmask, uint64_t *nb1_bitmask) {
+
+ bool status = false;
+ int eBandMastRat0, eBandMastRat1;
+
+ LOCK();
+
+ if(_at->send("AT+UBANDMASK?") && _at->recv("+UBANDMASK: %d,%llu,%d,%llu", &eBandMastRat0, m1_bitmask, &eBandMastRat1, nb1_bitmask) && _at->recv("OK")) {
+
+ status = true;
+ }
+ UNLOCK();
+
+ return status;
+}
#endif //TARGET_UBLOX_C030_R41XM
#ifdef TARGET_UBLOX_C030_R412M
--- a/UbloxCellularBase.h Tue Aug 27 18:38:29 2019 +0500
+++ b/UbloxCellularBase.h Thu Aug 29 16:52:05 2019 +0500
@@ -484,6 +484,14 @@
* @return True if successful, otherwise false.
*/
bool set_band_bitmask(RAT rat, uint64_t bitmask);
+
+ /** get band select bitmasks
+ *
+ * @param m1_bitmask pointer to band select bitmask of M1
+ * @param nb1_bitmask pointer to band select bitmask of NB1
+ * @return True if successful, otherwise false.
+ */
+ bool get_band_bitmask(uint64_t *m1_bitmask, uint64_t *nb1_bitmask);
#endif
protected:
u-blox