@@ -786,28 +786,6 @@ typedef struct
786786 int maxLogLength_minutes = 60 * 24 ; // Default to 24 hours
787787 char profileName [50 ] = "";
788788
789- // NTRIP Server
790- bool enableNtripServer = false;
791- bool ntripServer_StartAtSurveyIn = false; // true = Start WiFi instead of Bluetooth at Survey-In
792- char ntripServer_CasterHost [50 ] = "rtk2go .com "; // It's free...
793- uint16_t ntripServer_CasterPort = 2101 ;
794- char ntripServer_CasterUser [50 ] =
795- "test @test .com "; // Some free casters require auth. User must provide their own email address to use RTK2Go
796- char ntripServer_CasterUserPW [50 ] = "";
797- char ntripServer_MountPoint [50 ] = "bldr_dwntwn2 "; // NTRIP Server
798- char ntripServer_MountPointPW [50 ] = "WR5wRo4H ";
799-
800- // NTRIP Client
801- bool enableNtripClient = false;
802- char ntripClient_CasterHost [50 ] = "rtk2go .com "; // It's free...
803- uint16_t ntripClient_CasterPort = 2101 ;
804- char ntripClient_CasterUser [50 ] =
805- "test @test .com "; // Some free casters require auth. User must provide their own email address to use RTK2Go
806- char ntripClient_CasterUserPW [50 ] = "";
807- char ntripClient_MountPoint [50 ] = "bldr_SparkFun1 ";
808- char ntripClient_MountPointPW [50 ] = "";
809- bool ntripClient_TransmitGGA = true;
810-
811789 int16_t serialTimeoutGNSS = 1 ; // In ms - used during SerialGNSS.begin. Number of ms to pass of no data before
812790 // hardware serial reports data available.
813791
@@ -836,11 +814,7 @@ typedef struct
836814 int8_t timeZoneSeconds = 0 ;
837815
838816 // Debug settings
839- bool enablePrintWifiIpAddress = true;
840817 bool enablePrintState = false;
841- bool enablePrintWifiState = false;
842- bool enablePrintNtripClientState = false;
843- bool enablePrintNtripServerState = false;
844818 bool enablePrintPosition = false;
845819 bool enablePrintIdleTime = false;
846820 bool enablePrintBatteryMessages = true;
@@ -849,22 +823,15 @@ typedef struct
849823 bool enablePrintLogFileMessages = false;
850824 bool enablePrintLogFileStatus = true;
851825 bool enablePrintRingBufferOffsets = false;
852- bool enablePrintNtripServerRtcm = false;
853- bool enablePrintNtripClientRtcm = false;
854826 bool enablePrintStates = true;
855827 bool enablePrintDuplicateStates = false;
856828 bool enablePrintRtcSync = false;
857- bool enablePrintNTPDiag = false;
858- bool enablePrintEthernetDiag = false;
859829 RadioType_e radioType = RADIO_EXTERNAL ;
860830 uint8_t espnowPeers [5 ][6 ]; // Max of 5 peers. Contains the MAC addresses (6 bytes) of paired units
861831 uint8_t espnowPeerCount = 0 ;
862832 bool enableRtcmMessageChecking = false;
863833 BluetoothRadioType_e bluetoothRadioType = BLUETOOTH_RADIO_SPP ;
864834 bool runLogTest = false; // When set to true, device will create a series of test logs
865- bool enableTcpClient = false;
866- bool enableTcpServer = false;
867- bool enablePrintTcpStatus = false;
868835 bool espnowBroadcast = true; // When true, overrides peers and sends all data via broadcast
869836 int16_t antennaHeight = 0 ; // in mm
870837 float antennaReferencePoint = 0.0 ; // in mm
@@ -877,16 +844,6 @@ typedef struct
877844 bool enablePrintSDBuffers = false;
878845 bool forceResetOnSDFail = false; // Set to true to reset system if SD is detected but fails to start.
879846
880- WiFiNetwork wifiNetworks [MAX_WIFI_NETWORKS ] = {
881- {"", ""},
882- {"", " "},
883- {"" , "" },
884- {"" , "" },
885- };
886-
887- bool wifiConfigOverAP = true; // Configure device over Access Point or have it connect to WiFi
888- uint16_t wifiTcpPort =
889- 2947 ; // TCP port to use in Client/Server mode. 2947 is GPS Daemon: http://tcp-udp-ports.com/port-2947.htm
890847 uint8_t minElev = 10 ; // Minimum elevation (in deg) for a GNSS satellite to be used in NAV
891848 uint8_t ubxMessageRatesBase [MAX_UBX_MSG_RTCM ] = {
892849 254 }; // Mark first record with key so defaults will be applied. Int value for each supported message - Report
@@ -900,21 +857,52 @@ typedef struct
900857 // CFG-SFIMU-AUTO_MNTALG_ENA 0 = autoIMUmountAlignment
901858 bool sfUseSpeed = false; // CFG-SFODO-USE_SPEED
902859
860+ CoordinateInputType coordinateInputType = COORDINATE_INPUT_TYPE_DD ; // Default DD.ddddddddd
861+ uint16_t lbandFixTimeout_seconds = 180 ; // Number of seconds of no L-Band fix before resetting ZED
862+ int16_t minCNO_F9P = 6 ; // Minimum satellite signal level for navigation. ZED-F9P default is 6 dBHz
863+ int16_t minCNO_F9R = 20 ; // Minimum satellite signal level for navigation. ZED-F9R default is 20 dBHz
864+ uint16_t serialGNSSRxFullThreshold = 50 ; // RX FIFO full interrupt. Max of ~128. See pinUART2Task().
865+ uint8_t btReadTaskPriority = 1 ; // Read from BT SPP and Write to GNSS. 3 being the highest, and 0 being the lowest
866+ uint8_t gnssReadTaskPriority =
867+ 1 ; // Read from ZED-F9x and Write to circular buffer (SD, TCP, BT). 3 being the highest, and 0 being the lowest
868+ uint8_t handleGnssDataTaskPriority = 1 ; // Read from the cicular buffer and dole out to end points (SD, TCP, BT).
869+ uint8_t btReadTaskCore = 1 ; // Core where task should run, 0=core, 1=Arduino
870+ uint8_t gnssReadTaskCore = 1 ; // Core where task should run, 0=core, 1=Arduino
871+ uint8_t handleGnssDataTaskCore = 1 ; // Core where task should run, 0=core, 1=Arduino
872+ uint8_t gnssUartInterruptsCore =
873+ 1 ; // Core where hardware is started and interrupts are assigned to, 0=core, 1=Arduino
874+ uint8_t bluetoothInterruptsCore = 1 ; // Core where hardware is started and interrupts are assigned to, 0=core, 1=Arduino
875+ uint8_t i2cInterruptsCore = 1 ; // Core where hardware is started and interrupts are assigned to, 0=core, 1=Arduino
876+
903877 // Ethernet
878+ bool enablePrintEthernetDiag = false;
879+ bool ethernetDHCP = true;
904880 IPAddress ethernetIP = {192 , 168 , 0 , 123 };
905881 IPAddress ethernetDNS = {194 , 168 , 4 , 100 };
906882 IPAddress ethernetGateway = {192 , 168 , 0 , 1 };
907883 IPAddress ethernetSubnet = {255 , 255 , 255 , 0 };
908884 uint16_t ethernetHttpPort = 80 ;
909- uint16_t ethernetNtpPort = 123 ;
910- bool ethernetDHCP = true;
911- bool enableNTPFile = false; // Log NTP requests to file
912- bool enableTcpClientEthernet = false;
913- uint16_t ethernetTcpPort =
914- 2947 ; // TCP port to use in Client mode. 2947 is GPS Daemon: http://tcp-udp-ports.com/port-2947.htm
915- char hostForTCPClient [50 ] = "" ;
885+
886+ // WiFi
887+ bool enablePrintWifiIpAddress = true;
888+ bool enablePrintWifiState = false;
889+ bool wifiConfigOverAP = true; // Configure device over Access Point or have it connect to WiFi
890+ uint16_t wifiTcpPort =
891+ 2947 ; // TCP port to use in Client/Server mode. 2947 is GPS Daemon: http://tcp-udp-ports.com/port-2947.htm
892+ WiFiNetwork wifiNetworks [MAX_WIFI_NETWORKS ] = {
893+ {"", ""},
894+ {"", " "},
895+ {"" , "" },
896+ {"" , "" },
897+ };
898+
899+ // Multicast DNS Server
900+ bool mdnsEnable = true; // Allows locating of device from browser address 'rtk.local'
916901
917902 // NTP
903+ uint16_t ethernetNtpPort = 123 ;
904+ bool enableNTPFile = false; // Log NTP requests to file
905+ bool enablePrintNTPDiag = false;
918906 uint8_t ntpPollExponent = 6 ; // NTPpacket::defaultPollExponent 2^6 = 64 seconds
919907 int8_t ntpPrecision = -20 ; // NTPpacket::defaultPrecision 2^-20 = 0.95us
920908 uint32_t ntpRootDelay = 0 ; // NTPpacket::defaultRootDelay = 0. ntpRootDelay is defined in microseconds.
@@ -925,24 +913,42 @@ typedef struct
925913 char ntpReferenceId [5 ] = {'G' , 'P' , 'S' , 0 ,
926914 0 }; // NTPpacket::defaultReferenceId. Ref ID is 4 chars. Add one extra for a NULL.
927915
928- CoordinateInputType coordinateInputType = COORDINATE_INPUT_TYPE_DD ; // Default DD.ddddddddd
929- uint16_t lbandFixTimeout_seconds = 180 ; // Number of seconds of no L-Band fix before resetting ZED
930- int16_t minCNO_F9P = 6 ; // Minimum satellite signal level for navigation. ZED-F9P default is 6 dBHz
931- int16_t minCNO_F9R = 20 ; // Minimum satellite signal level for navigation. ZED-F9R default is 20 dBHz
932- bool mdnsEnable = true; // Allows locating of device from browser address 'rtk.local'
933- uint16_t serialGNSSRxFullThreshold = 50 ; // RX FIFO full interrupt. Max of ~128. See pinUART2Task().
934- uint8_t btReadTaskPriority = 1 ; // Read from BT SPP and Write to GNSS. 3 being the highest, and 0 being the lowest
935- uint8_t gnssReadTaskPriority =
936- 1 ; // Read from ZED-F9x and Write to circular buffer (SD, TCP, BT). 3 being the highest, and 0 being the lowest
937- uint8_t handleGnssDataTaskPriority = 1 ; // Read from the cicular buffer and dole out to end points (SD, TCP, BT).
938- uint8_t btReadTaskCore = 1 ; // Core where task should run, 0=core, 1=Arduino
939- uint8_t gnssReadTaskCore = 1 ; // Core where task should run, 0=core, 1=Arduino
940- uint8_t handleGnssDataTaskCore = 1 ; // Core where task should run, 0=core, 1=Arduino
941- uint8_t gnssUartInterruptsCore =
942- 1 ; // Core where hardware is started and interrupts are assigned to, 0=core, 1=Arduino
943- uint8_t bluetoothInterruptsCore = 1 ; // Core where hardware is started and interrupts are assigned to, 0=core, 1=Arduino
944- uint8_t i2cInterruptsCore = 1 ; // Core where hardware is started and interrupts are assigned to, 0=core, 1=Arduino
916+ // NTRIP Client
917+ bool enablePrintNtripClientRtcm = false;
918+ bool enablePrintNtripClientState = false;
919+ bool enableNtripClient = false;
920+ char ntripClient_CasterHost [50 ] = "rtk2go.com" ; // It's free...
921+ uint16_t ntripClient_CasterPort = 2101 ;
922+ char ntripClient_CasterUser [50 ] =
923+ "[email protected] " ;
// Some free casters require auth. User must provide their own email address to use RTK2Go 924+ char ntripClient_CasterUserPW [50 ] = "" ;
925+ char ntripClient_MountPoint [50 ] = "bldr_SparkFun1" ;
926+ char ntripClient_MountPointPW [50 ] = "" ;
927+ bool ntripClient_TransmitGGA = true;
945928
929+ // NTRIP Server
930+ bool enablePrintNtripServerRtcm = false;
931+ bool enablePrintNtripServerState = false;
932+ bool enableNtripServer = false;
933+ bool ntripServer_StartAtSurveyIn = false; // true = Start WiFi instead of Bluetooth at Survey-In
934+ char ntripServer_CasterHost [50 ] = "rtk2go.com" ; // It's free...
935+ uint16_t ntripServer_CasterPort = 2101 ;
936+ char ntripServer_CasterUser [50 ] =
937+ "[email protected] " ;
// Some free casters require auth. User must provide their own email address to use RTK2Go 938+ char ntripServer_CasterUserPW [50 ] = "" ;
939+ char ntripServer_MountPoint [50 ] = "bldr_dwntwn2" ; // NTRIP Server
940+ char ntripServer_MountPointPW [50 ] = "WR5wRo4H" ;
941+
942+ // TCP Client
943+ bool enablePrintTcpStatus = false;
944+ bool enableTcpClient = false;
945+ bool enableTcpClientEthernet = false;
946+ uint16_t ethernetTcpPort =
947+ 2947 ; // TCP port to use in Client mode. 2947 is GPS Daemon: http://tcp-udp-ports.com/port-2947.htm
948+ char hostForTCPClient [50 ] = "" ;
949+
950+ // TCP Server
951+ bool enableTcpServer = false;
946952} Settings ;
947953Settings settings ;
948954
0 commit comments