You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: examples/ZED-F9P/Example9_multiSetVal/Example9_multiSetVal.ino
+7
Original file line number
Diff line number
Diff line change
@@ -66,6 +66,13 @@ void setup()
66
66
//but with multiple messages all in one go using newCfgValset, addCfgValset and sendCfgValset.
67
67
//Original: myGNSS.enableRTCMmessage(UBX_RTCM_1005, COM_PORT_I2C, 1); //Enable message 1005 to output through I2C port, message every second
68
68
69
+
//If we will be sending a large number of key IDs and values, packetCfg could fill up before the CFG_VALSET is sent...
70
+
//There are three possible solutions:
71
+
// Increase the space available by calling myGNSS.setPacketCfgPayloadSize
72
+
// Monitor how much space is remaining by calling myGNSS.getCfgValsetSpaceRemaining. Call myGNSS.sendCfgValset(); before packetCfg becomes full.
73
+
// Call myGNSS.autoSendCfgValsetAtSpaceRemaining(16); . This will cause the existing CFG_VALSET to be send automatically and a new one created when packetCfg has less than 16 bytes remaining.
74
+
myGNSS.autoSendCfgValsetAtSpaceRemaining(16); // Trigger an auto-send when packetCfg has less than 16 bytes are remaining
75
+
69
76
//Begin with newCfgValset
70
77
setValueSuccess &= myGNSS.newCfgValset(); // Defaults to configuring the setting in Flash, RAM and BBR
71
78
//setValueSuccess &= myGNSS.newCfgValset(VAL_LAYER_RAM); //Set this and the following settings in RAM only instead of Flash/RAM/BBR
Copy file name to clipboardexpand all lines: src/SparkFun_u-blox_GNSS_Arduino_Library.h
+4
Original file line number
Diff line number
Diff line change
@@ -996,6 +996,7 @@ class SFE_UBLOX_GNSS
996
996
uint8_tsendCfgValset(uint16_t maxWait = defaultMaxWait); // Send the CfgValset (UBX-CFG-VALSET) construct
997
997
uint8_tgetCfgValsetLen(); // Returns the length of the current CfgValset construct as number-of-keyIDs
998
998
size_tgetCfgValsetSpaceRemaining(); // Returns the number of free bytes remaining in packetCfg
999
+
voidautoSendCfgValsetAtSpaceRemaining(size_t spaceRemaining) { _autoSendAtSpaceRemaining = spaceRemaining; } // Cause CFG_VALSET packets to be sent automatically when packetCfg has less than this many bytes available
999
1000
1000
1001
// get and set functions for all of the "automatic" message processing
1001
1002
@@ -1796,6 +1797,9 @@ class SFE_UBLOX_GNSS
1796
1797
1797
1798
// Keep track of how many keys have been added to CfgValset
1798
1799
uint8_t _numCfgKeyIDs = 0;
1800
+
1801
+
// Send the current CFG_VALSET message when packetCfg has less than this many bytes available
0 commit comments