sparkfun / SparkFun_RTK_Everywhere_Firmware

Centimeter precision GPS/GNSS using L1/L2/L5 signals broadcast over Bluetooth, WiFi, and Ethernet.
http://docs.sparkfun.com/SparkFun_RTK_Everywhere_Firmware/
Other
12 stars 7 forks source link

EVK - Conf WiFi form does not display stored/retrieved value for Ethernet HTTP Port (should be default 80) #227

Closed doug-foster closed 3 months ago

doug-foster commented 4 months ago

Subject of the issue

using "Conf WiFi", the displayed web form does not display stored/retrieved value for Ethernet HTTP Port (should be default 80) - it is empty. Even if not changing "Ethernet Configuration" - say changing "System Configuration" - error checking the form displays an error since no value is in the field. Behavior is the same whether WiFi mode is "AP" or "WiFi."

Your workbench

Steps to reproduce

  1. MODE button
  2. Cfg Eth
  3. connect web browser to displayed address

Expected behavior

field should be filled even if never config'd. entering value "80" removes error. Click "Save Configuration", "Exit and Reset", EVK restarts. repeat process, same result - field does not appear to be saved.

I also saw a behavior where even though the EVK Bluetooth mode was set to "Both", the web form showed "Off". In fact, the "Both" option does not appear on the select field for the form field, only "BLE" and "SPP"

Actual behavior

Screenshot 2024-04-05 at 4 33 10 PM Screenshot 2024-04-05 at 4 41 07 PM
doug-foster commented 4 months ago

Output from serial terminal session when saving web form.

Base Mode - SIV: 31 Time elapsed: 14 Accuracy (m): 0.843 SIV: 31 Time elapsed: 14 Accuracy (m): 0.843 SIV: 31 STATE_BASE_TEMP_SURVEY_STARTED --> STATE_DISPLAY_SETUP, 2024-04-05 21:26:28.067 STATE_DISPLAY_SETUP --> STATE_BASE_NOT_STARTED, 2024-04-05 21:26:41.722 Bluetooth Low-Energy broadcasting as: EVK Base-8F06 STATE_BASE_NOT_STARTED --> STATE_BASE_TEMP_SETTLE, 2024-04-05 21:26:43.942 Base Mode - SIV: 31 STATE_BASE_TEMP_SETTLE --> STATE_DISPLAY_SETUP, 2024-04-05 21:26:43.976 STATE_DISPLAY_SETUP --> STATE_WIFI_CONFIG_NOT_STARTED, 2024-04-05 21:26:51.596 Connecting WiFi...

Network Configuration:

     SSID: Cisco

WiFi Status: 3 WiFi Strength: -37 dBm MAC: E0:5A:1B:D8:8F:04 IP: 192.168.2.33 Subnet: 255.255.255.0 Gateway: 192.168.2.1 DNS 1: 192.168.2.1 DNS 2: 0.0.0.0 DNS 3: 0.0.0.0

newSettings len: 11396 platformPrefix,EVK,rtkFirmwareVersion,d99.99,zedFirmwareVersion,ZED-F9P Firmware: HPG 1.32 ID: 3D4052C618,zedFirmwareVersionInt,132,deviceBTID,Device Bluetooth ID: 8F06,printDebugMessages,false,enableSD,true,enableDisplay,true,maxLogTime_minutes,1440,maxLogLength_minutes,1440,observationSeconds,60,observationPositionAccuracy,5.00,baseTypeSurveyIn,true,baseTypeFixed,false,fixedBaseCoordinateTypeECEF,true,fixedBaseCoordinateTypeGeo,false,fixedEcefX,-1280206.568,fixedEcefY,-4716804.403,fixedEcefZ,4086665.484,fixedLat,40.09029479,fixedLong,-105.18505761,fixedAltitude,1560.0890,dataPortBaud,230400,radioPortBaud,57600,zedSurveyInStartingAccuracy,1.0,measurementRateHz,4.00,debugGnss,false,enableHeapReport,false,enableTaskReports,false,dataPortChannel,0,spiFrequency,16,enableLogging,true,enableARPLogging,false,ARPLoggingInterval,10,sppRxQueueSize,2048,sppTxQueueSize,32,dynamicModel,0,lastState,1,enableResetDisplay,false,resetCount,0,enableExternalPulse,true,externalPulseTimeBetweenPulse_us,1000000,externalPulseLength_us,100000,externalPulsePolarity,1,enableExternalHardwareEventLogging,false,enableUART2UBXIn,false,ubxConstellationsGPS,true,ubxConstellationsSBAS,true,ubxConstellationsGalileo,true,ubxConstellationsBeiDou,true,ubxConstellationsGLONASS,true,profileName,Profile1,profileNumber,0,profile0Name,1: Profile1,profile1Name,2: ,profile2Name,3: ,profile3Name,4: ,profile4Name,5: ,profile5Name,6: ,profile6Name,7: ,profile7Name,8: ,serialTimeoutGNSS,1,pointPerfectDeviceProfileToken,,pointPerfectCorrectionsSource,0,autoKeyRenewal,true,pointPerfectClientID,,pointPerfectBrokerHost,,pointPerfectLBandTopic,,pointPerfectCurrentKey,,pointPerfectCurrentKeyDuration,0,pointPerfectCurrentKeyStart,0,pointPerfectNextKey,,pointPerfectNextKeyDuration,0,pointPerfectNextKeyStart,0,lastKeyAttempt,0,updateGNSSSettings,false,LBandFreq,1556290000,timeZoneHours,0,timeZoneMinutes,0,timeZoneSeconds,0,enablePrintState,false,enablePrintPosition,false,enablePrintIdleTime,false,enablePrintBatteryMessages,true,enablePrintRoverAccuracy,true,enablePrintBadMessages,false,enablePrintLogFileMessages,false,enablePrintLogFileStatus,true,enablePrintRingBufferOffsets,false,enablePrintStates,true,enablePrintDuplicateStates,false,enablePrintRtcSync,false,bluetoothRadioType,1,runLogTest,false,espnowBroadcast,true,antennaHeight,0,antennaReferencePoint,0.0,echoUserInput,true,uartReceiveBufferSize,2048,gnssHandlerBufferSize,4096,enablePrintBufferOverrun,false,enablePrintSDBuffers,false,periodicDisplay,0,periodicDisplayInterval,15000,rebootSeconds,-1,forceResetOnSDFail,false,minElev,10,coordinateInputType,0,lbandFixTimeout_seconds,180,minCNO_F9P,6,serialGNSSRxFullThreshold,50,btReadTaskPriority,1,gnssReadTaskPriority,1,handleGnssDataTaskPriority,1,btReadTaskCore,1,gnssReadTaskCore,1,handleGnssDataTaskCore,1,gnssUartInterruptsCore,1,bluetoothInterruptsCore,1,i2cInterruptsCore,1,shutdownNoChargeTimeout_s,0,disableSetupButton,false,useI2cForLbandCorrections,true,useI2cForLbandCorrectionsConfigured,false,enablePrintEthernetDiag,false,ethernetDHCP,true,ethernetIP,192.168.0.123,ethernetDNS,194.168.4.100,ethernetGateway,192.168.0.1,ethernetSubnet,255.255.255.0,httpPort,80,debugWifiState,false,wifiConfigOverAP,0,wifiNetwork0SSID,Cisco,wifiNetwork0Password,wewerewatchinghousetonight2!,wifiNetwork1SSID,,wifiNetwork1Password,,wifiNetwork2SSID,,wifiNetwork2Password,,wifiNetwork3SSID,,wifiNetwork3Password,,defaultNetworkType,2,debugNetworkLayer,false,enableNetworkFailover,true,printNetworkStatus,true,mdnsEnable,true,debugMqttClientData,false,debugMqttClientState,false,useEuropeCorrections,false,debugNtp,false,ethernetNtpPort,123,enableNTPFile,false,ntpPollExponent,6,ntpPrecision,-20,ntpRootDelay,0,ntpRootDispersion,1000,ntpReferenceId,GPS,debugNtripClientRtcm,false,debugNtripClientState,false,enableNtripClient,false,ntripClient_CasterHost,rtk2go.com,ntripClient_CasterPort,2101,ntripClient_CasterUser,test@test.com,ntripClient_CasterUserPW,,ntripClient_MountPoint,bldr_SparkFun1,ntripClient_MountPointPW,undefined,ntripClient_TransmitGGA,true,debugNtripServerRtcm,false,debugNtripServerState,false,enableNtripServer,false,ntripServer_StartAtSurveyIn,false,ntripServer_CasterHost_0,rtk2go.com,ntripServer_CasterPort_0,2101,ntripServer_CasterUser_0,test@test.com,ntripServer_CasterUserPW_0,,ntripServer_MountPoint_0,bldr_dwntwn2,ntripServer_MountPointPW_0,WR5wRo4H,ntripServer_CasterHost_1,,ntripServer_CasterPort_1,0,ntripServer_CasterUser_1,,ntripServer_CasterUserPW_1,,ntripServer_MountPoint_1,,ntripServer_MountPointPW_1,,ntripServer_CasterHost_2,,ntripServer_CasterPort_2,0,ntripServer_CasterUser_2,,ntripServer_CasterUserPW_2,,ntripServer_MountPoint_2,,ntripServer_MountPointPW_2,,ntripServer_CasterHost_3,,ntripServer_CasterPort_3,0,ntripServer_CasterUser_3,,ntripServer_CasterUserPW_3,,ntripServer_MountPoint_3,,ntripServer_MountPointPW_3,,debugPvtClient,false,enablePvtClient,false,pvtClientPort,2948,pvtClientHost,,debugPvtServer,false,enablePvtServer,false,pvtServerPort,2947,debugPvtUdpServer,false,enablePvtUdpServer,false,pvtUdpServerPort,10110,um980MessageRatesNMEA.GPDTM,0.00,um980MessageRatesNMEA.GPGBS,0.00,um980MessageRatesNMEA.GPGGA,0.50,um980MessageRatesNMEA.GPGLL,0.00,um980MessageRatesNMEA.GPGNS,0.00,um980MessageRatesNMEA.GPGRS,0.00,um980MessageRatesNMEA.GPGSA,0.50,um980MessageRatesNMEA.GPGST,0.50,um980MessageRatesNMEA.GPGSV,1.00,um980MessageRatesNMEA.GPRMC,0.50,um980MessageRatesNMEA.GPROT,0.00,um980MessageRatesNMEA.GPTHS,0.00,um980MessageRatesNMEA.GPVTG,0.00,um980MessageRatesNMEA.GPZDA,0.00,um980MessageRatesRTCMRover.RTCM1001,0.00,um980MessageRatesRTCMRover.RTCM1002,0.00,um980MessageRatesRTCMRover.RTCM1003,0.00,um980MessageRatesRTCMRover.RTCM1004,0.00,um980MessageRatesRTCMRover.RTCM1005,0.00,um980MessageRatesRTCMRover.RTCM1006,0.00,um980MessageRatesRTCMRover.RTCM1007,0.00,um980MessageRatesRTCMRover.RTCM1009,0.00,um980MessageRatesRTCMRover.RTCM1010,0.00,um980MessageRatesRTCMRover.RTCM1011,0.00,um980MessageRatesRTCMRover.RTCM1012,0.00,um980MessageRatesRTCMRover.RTCM1013,0.00,um980MessageRatesRTCMRover.RTCM1019,0.00,um980MessageRatesRTCMRover.RTCM1020,0.00,um980MessageRatesRTCMRover.RTCM1033,0.00,um980MessageRatesRTCMRover.RTCM1042,0.00,um980MessageRatesRTCMRover.RTCM1044,0.00,um980MessageRatesRTCMRover.RTCM1045,0.00,um980MessageRatesRTCMRover.RTCM1046,0.00,um980MessageRatesRTCMRover.RTCM1071,0.00,um980MessageRatesRTCMRover.RTCM1072,0.00,um980MessageRatesRTCMRover.RTCM1073,0.00,um980MessageRatesRTCMRover.RTCM1074,0.00,um980MessageRatesRTCMRover.RTCM1075,0.00,um980MessageRatesRTCMRover.RTCM1076,0.00,um980MessageRatesRTCMRover.RTCM1077,0.00,um980MessageRatesRTCMRover.RTCM1081,0.00,um980MessageRatesRTCMRover.RTCM1082,0.00,um980MessageRatesRTCMRover.RTCM1083,0.00,um980MessageRatesRTCMRover.RTCM1084,0.00,um980MessageRatesRTCMRover.RTCM1085,0.00,um980MessageRatesRTCMRover.RTCM1086,0.00,um980MessageRatesRTCMRover.RTCM1087,0.00,um980MessageRatesRTCMRover.RTCM1091,0.00,um980MessageRatesRTCMRover.RTCM1092,0.00,um980MessageRatesRTCMRover.RTCM1093,0.00,um980MessageRatesRTCMRover.RTCM1094,0.00,um980MessageRatesRTCMRover.RTCM1095,0.00,um980MessageRatesRTCMRover.RTCM1096,0.00,um980MessageRatesRTCMRover.RTCM1097,0.00,um980MessageRatesRTCMRover.RTCM1104,0.00,um980MessageRatesRTCMRover.RTCM1111,0.00,um980MessageRatesRTCMRover.RTCM1112,0.00,um980MessageRatesRTCMRover.RTCM1113,0.00,um980MessageRatesRTCMRover.RTCM1114,0.00,um980MessageRatesRTCMRover.RTCM1115,0.00,um980MessageRatesRTCMRover.RTCM1116,0.00,um980MessageRatesRTCMRover.RTCM1117,0.00,um980MessageRatesRTCMRover.RTCM1121,0.00,um980MessageRatesRTCMRover.RTCM1122,0.00,um980MessageRatesRTCMRover.RTCM1123,0.00,um980MessageRatesRTCMRover.RTCM1124,0.00,um980MessageRatesRTCMRover.RTCM1125,0.00,um980MessageRatesRTCMRover.RTCM1126,0.00,um980MessageRatesRTCMRover.RTCM1127,0.00,um980MessageRatesRTCMBase.RTCM1001,0.00,um980MessageRatesRTCMBase.RTCM1002,0.00,um980MessageRatesRTCMBase.RTCM1003,0.00,um980MessageRatesRTCMBase.RTCM1004,0.00,um980MessageRatesRTCMBase.RTCM1005,1.00,um980MessageRatesRTCMBase.RTCM1006,0.00,um980MessageRatesRTCMBase.RTCM1007,0.00,um980MessageRatesRTCMBase.RTCM1009,0.00,um980MessageRatesRTCMBase.RTCM1010,0.00,um980MessageRatesRTCMBase.RTCM1011,0.00,um980MessageRatesRTCMBase.RTCM1012,0.00,um980MessageRatesRTCMBase.RTCM1013,0.00,um980MessageRatesRTCMBase.RTCM1019,0.00,um980MessageRatesRTCMBase.RTCM1020,0.00,um980MessageRatesRTCMBase.RTCM1033,10.00,um980MessageRatesRTCMBase.RTCM1042,0.00,um980MessageRatesRTCMBase.RTCM1044,0.00,um980MessageRatesRTCMBase.RTCM1045,0.00,um980MessageRatesRTCMBase.RTCM1046,0.00,um980MessageRatesRTCMBase.RTCM1071,0.00,um980MessageRatesRTCMBase.RTCM1072,0.00,um980MessageRatesRTCMBase.RTCM1073,0.00,um980MessageRatesRTCMBase.RTCM1074,1.00,um980MessageRatesRTCMBase.RTCM1075,0.00,um980MessageRatesRTCMBase.RTCM1076,0.00,um980MessageRatesRTCMBase.RTCM1077,0.00,um980MessageRatesRTCMBase.RTCM1081,0.00,um980MessageRatesRTCMBase.RTCM1082,0.00,um980MessageRatesRTCMBase.RTCM1083,0.00,um980MessageRatesRTCMBase.RTCM1084,1.00,um980MessageRatesRTCMBase.RTCM1085,0.00,um980MessageRatesRTCMBase.RTCM1086,0.00,um980MessageRatesRTCMBase.RTCM1087,0.00,um980MessageRatesRTCMBase.RTCM1091,0.00,um980MessageRatesRTCMBase.RTCM1092,0.00,um980MessageRatesRTCMBase.RTCM1093,0.00,um980MessageRatesRTCMBase.RTCM1094,1.00,um980MessageRatesRTCMBase.RTCM1095,0.00,um980MessageRatesRTCMBase.RTCM1096,0.00,um980MessageRatesRTCMBase.RTCM1097,0.00,um980MessageRatesRTCMBase.RTCM1104,0.00,um980MessageRatesRTCMBase.RTCM1111,0.00,um980MessageRatesRTCMBase.RTCM1112,0.00,um980MessageRatesRTCMBase.RTCM1113,0.00,um980MessageRatesRTCMBase.RTCM1114,0.00,um980MessageRatesRTCMBase.RTCM1115,0.00,um980MessageRatesRTCMBase.RTCM1116,0.00,um980MessageRatesRTCMBase.RTCM1117,0.00,um980MessageRatesRTCMBase.RTCM1121,0.00,um980MessageRatesRTCMBase.RTCM1122,0.00,um980MessageRatesRTCMBase.RTCM1123,0.00,um980MessageRatesRTCMBase.RTCM1124,1.00,um980MessageRatesRTCMBase.RTCM1125,0.00,um980MessageRatesRTCMBase.RTCM1126,0.00,um980MessageRatesRTCMBase.RTCM1127,0.00,um980Constellations.GPS,1,um980Constellations.GLONASS,1,um980Constellations.Galileo,1,um980Constellations.BeiDou,1,um980Constellations.QZSS,1,minCNO_um980,10,enableTiltCompensation,true,tiltPoleLength,1.800,rtcmTimeoutBeforeUsingLBand_s,10,enableImuDebug,false,debugFirmwareUpdate,false,enableAutoFirmwareUpdate,false,autoFirmwareCheckMinutes,1440,debugCorrections,false,enableCaptivePortal,true,printBootTimes,false,printPartitionTable,false,measurementScale,0,debugWiFiConfig,false,enablePsram,true,printTaskStartStop,false,psramMallocLevel,40,um980SurveyInStartingAccuracy,2.0,enableBeeper,true,um980MeasurementRateMs,500,enableImuCompensationDebug,false,correctionsPriority.Bluetooth,0,correctionsPriority.WiFi IP (PointPerfect/MQTT),1,correctionsPriority.WiFi TCP (NTRIP),2,correctionsPriority.Ethernet IP (PointPerfect/MQTT),3,correctionsPriority.Ethernet TCP (NTRIP Client),4,correctionsPriority.L-Band,5,correctionsPriority.Cellular,6,correctionsPriority.External Radio,7,correctionsPriority.LoRa Radio,8,correctionsPriority.ESP-Now,9,minCNO,6,enableRCFirmware,false,sdFreeSpace,0 B,sdSize,0 B,sdMounted,false,hardwareID,E05A1BD88F0600,daysRemaining,No Keys,geodeticLat,35.60599701,geodeticLon,-78.79443955,geodeticAlt,92.938,ecefX,1008890.736,ecefY,-5092676.562,ecefZ,3692790.127,radioMAC,E0:5A:1B:D8:8F:04,radioType,0,espnowPeerCount,0,logFileName,,batteryIconFileName,src/BatteryBlank.png,batteryPercent, , STATE_WIFI_CONFIG_NOT_STARTED --> STATE_WIFI_CONFIG, 2024-04-05 21:27:01.223 Parsing: profileName,Profile1,measurementRateHz,4.00,measurementRateSec,0.25,dynamicModel,0,minElev,10,minCNO,6,ntripClient_CasterHost,rtk2go.com,ntripClient_CasterPort,2101,ntripClient_CasterUser,test@test.com,ntripClient_CasterUserPW,,ntripClient_MountPoint,bldr_SparkFun1,ntripClient_MountPointPW,undefined,observationSeconds,60,observationPositionAccuracy,5.00,fixedEcefX,-1280206.568,fixedEcefY,-4716804.403,fixedEcefZ,4086665.484,nicknameECEF,,fixedLatText,40.09029479,fixedLongText,-105.18505761,fixedAltitude,1560.089,antennaHeight,0,antennaReferencePoint,0,fixedHAE_APC,1560.089,nicknameGeodetic,,ntripServer_CasterHost,rtk2go.com,ntripServer_CasterPort,2101,ntripServer_CasterUser,,ntripServer_CasterUserPW,,ntripServer_MountPoint,bldr_dwntwn2,ntripServer_MountPointPW,WR5wRo4H,pointPerfectDeviceProfileToken,,radioPortBaud,57600,dataPortChannel,0,dataPortBaud,230400,externalPulseTimeBetweenPulse_us,1000000,externalPulseLength_us,100000,externalPulsePolarity,1,wifiNetwork0SSID,Cisco,wifiNetwork0Password,wewerewatchinghousetonight2!,wifiNetwork1SSID,,wifiNetwork1Password,,wifiNetwork2SSID,,wifiNetwork2Password,,wifiNetwork3SSID,,wifiNetwork3Password,,pvtServerPort,2947,pvtUdpServerPort,10110,wifiConfigOverAP,0,radioType,0,correctionsPriority.Bluetooth,0,correctionsPriority.WiFi IP (PointPerfect/MQTT),1,correctionsPriority.WiFi TCP (NTRIP),2,correctionsPriority.Ethernet IP (PointPerfect/MQTT),3,correctionsPriority.Ethernet TCP (NTRIP Client),4,correctionsPriority.L-Band,5,correctionsPriority.Cellular,6,correctionsPriority.External Radio,7,correctionsPriority.LoRa Radio,8,correctionsPriority.ESP-Now,9,lastState,1,maxLogTime_minutes,1440,maxLogLength_minutes,1440,ARPLoggingInterval,10,bluetoothRadioType,1,ethernetIP,192.168.0.123,ethernetDNS,194.168.4.100,ethernetGateway,192.168.0.1,ethernetSubnet,255.255.255.0,ethernetHttpPort,80,ethernetNtpPort,123,ethernetTcpPort,,hostForTCPClient,test,ntpPollExponent,6,ntpPrecision,-20,ntpRootDelay,0,ntpRootDispersion,1000,ntpReferenceId,GPS,ubxConstellationsGPS,true,ubxConstellationsSBAS,true,ubxConstellationsGalileo,true,ubxConstellationsBeiDou,true,ubxConstellationsGLONASS,true,enableNtripClient,false,ntripClient_TransmitGGA,true,baseTypeSurveyIn,true,baseTypeFixed,false,fixedBaseCoordinateTypeECEF,true,fixedBaseCoordinateTypeGeo,false,enableNtripServer,false,pointPerfectCorrectionsSource,false,autoKeyRenewal,true,enableExternalPulse,true,enableExternalHardwareEventLogging,false,enableUART2UBXIn,false,enablePvtClient,false,enablePvtServer,false,enablePvtUdpServer,false,enableForgetRadios,false,espnowBroadcast,true,enableRCFirmware,false,enableLogging,true,enableARPLogging,false,enableFactoryDefaults,false,enableResetDisplay,false,ethernetDHCP,true,enableTcpClientEthernet,false,fileSelectAll,false, Unknown 'ntripServer_CasterHost': 0.000 Unknown 'ntripServer_CasterPort': 2101.000 Unknown 'ntripServer_CasterUser': 0.000 Unknown 'ntripServer_CasterUserPW': 0.000 Unknown 'ntripServer_MountPoint': 0.000 Unknown 'ntripServer_MountPointPW': 0.000 Unknown 'ethernetHttpPort': 80.000 Unknown 'ethernetTcpPort': 0.000 Unknown 'hostForTCPClient': 0.000 Unknown 'enableTcpClientEthernet': 0.000

doug-foster commented 4 months ago

The shell script I wrote which compiles local copies of the latest main & RC branches (fetched by GitHub desktop), does run the same python scripts as .github/workflows/compile-rtk-everywhere.yml. My script is attached, the build output is below.

I mention this because I thought maybe I had missed changes you made in form.h when I built the latest RC for this issue. I ran my script with a "full" build flag which also runs the python scripts. The problem with not saving the HTTP value still persisted and resulted with the same behavior as I left in the previous comment.

dougfoster@MacBook-Pro-2 ~ % script rtkb rtk rc - f,p,c,u ... done [ Set vars. ] ... rtkb.pdf

--- Fri Apr 5 17:00:27 EDT 2024 --- rtk-build "rtk rc - f,p,c,u" ... ... check 4 args ... ... done [ Validate input. ] ... ... done [ Set vars based on input. ] ... ... check for valid repo directory ... ... /Users/dougfoster/Dropbox/Data/doug/Topics/_dev-arduino/SparkFun_RTK_Everywhere_Firmware (GitHub)/Firmware/RTK_Everywhere/ ... ... repo directory is valid ... ... done [ Set repo vars & validate directory. ] ... ... module = "rtk", branch = "rc" ... ... copy "RTK_Everywhere" from repo to sketch directory ... ... full build, run all steps ... ... done [ Copy repo dir into Arduino sketch library. ] ... ... create config file for arduino-cli ... Config file written to: /Users/dougfoster/Library/Arduino15/arduino-cli.yaml ... done [ Create arduino-cli config file. ] ... ... update index of cores & lib to the latest version ... Downloading index: package_index.tar.bz2 downloaded
Downloading index: package_esp32_index.json downloaded
... done [ Update index of cores ] ... Downloading index: library_index.tar.bz2 downloaded
... done [ Update index of lib. ] ... ... install esp32:esp32@2.0.11 board core package & dependent tools ... Platform esp32:esp32@2.0.11 already installed ... done [ Install ESP32 core version. ] ... /Users/dougfoster/Documents/sh-scripts/rtkb.zsh:289: parse error: condition expected: = ... skip [ Change partition table. ] ... ... install known libraries ... Already installed ArduinoJson@6.19.4 Already installed ESP32Time@2.0.0 Already installed ESP32_BleSerial@1.0.4 Already installed ESP32-OTA-Pull@1.0.0 Already installed Ethernet@2.0.2 Already installed JC_Button@2.1.2 Already installed PubSubClient@2.8.0 Already installed SdFat@2.1.1 Already installed SparkFun LIS2DH12 Arduino Library@1.0.3 Already installed SparkFun MAX1704x Fuel Gauge Arduino Library@1.0.4 Already installed SparkFun u-blox GNSS v3@3.0.14 Already installed SparkFun_WebServer_ESP32_W5500@1.5.5 Already installed SparkFun Qwiic OLED Arduino Library@1.0.13 Already installed SSLClientESP32@2.0.0 Already installed SparkFun Extensible Message Parser@1.0.0 Already installed SparkFun BQ40Z50 Battery Manager Arduino Library@1.0.0 Already installed ArduinoMqttClient@0.1.8 Already installed SparkFun 9DoF IMU Breakout - ICM 20948 - Arduino Library@1.2.12 ... done [ Install 'Arduino approved' libraries. ] ... ... install unapproved libraries for sketches ... --git-url and --zip-path flags allow installing untrusted files, use it at your own risk. Enumerating objects: 45, done. Counting objects: 100% (45/45), done. Compressing objects: 100% (33/33), done. Total 45 (delta 14), reused 35 (delta 11), pack-reused 0 Library installed --git-url and --zip-path flags allow installing untrusted files, use it at your own risk. Enumerating objects: 100, done. Counting objects: 100% (100/100), done. Compressing objects: 100% (77/77), done. Total 100 (delta 41), reused 63 (delta 18), pack-reused 0 Library installed --git-url and --zip-path flags allow installing untrusted files, use it at your own risk. Enumerating objects: 69, done. Counting objects: 100% (69/69), done. Compressing objects: 100% (61/61), done. Total 69 (delta 3), reused 46 (delta 1), pack-reused 0 Library installed --git-url and --zip-path flags allow installing untrusted files, use it at your own risk. Enumerating objects: 23, done. Counting objects: 100% (23/23), done. Compressing objects: 100% (21/21), done. Total 23 (delta 0), reused 10 (delta 0), pack-reused 0 Library installed ... done [ Install 'Arduino NOT approved' libraries. ] ... ... install python pyserial library ... Requirement already satisfied: pyserial in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (3.5) ... done[7] ...

... done [ Install Python serial library. ] ... ... update RTK_Everywhere/form.h using python ... ... change to RTK_Everywhere Tools directory ... ... run python script index_html_zipper.py - update index_html ...

SparkFun RTK: gzip index.html into form.h

Step 1: gzip ../RTK_Everywhere/AP-Config/index.html into ../RTK_Everywhere/AP-Config/index.html.gzip

Step 2: create ../RTK_Everywhere/form.h.header from ../RTK_Everywhere/form.h

Step 3: create ../RTK_Everywhere/form.h.footer from ../RTK_Everywhere/form.h

Step 4: create ../RTK_Everywhere/form.h from ../RTK_Everywhere/form.h.header + ../RTK_Everywhere/AP-Config/index.html.gzip + ../RTK_Everywhere/form.h.footer

Step 5: delete ../RTK_Everywhere/form.h.header + ../RTK_Everywhere/AP-Config/index.html.gzip + ../RTK_Everywhere/form.h.footer

Done! ... running python script main_js_zipper.py - update main_js ...

SparkFun RTK: gzip main.js into form.h

Step 1: gzip ../RTK_Everywhere/AP-Config/src/main.js into ../RTK_Everywhere/AP-Config/src/main.js.gzip

Step 2: create ../RTK_Everywhere/form.h.header from ../RTK_Everywhere/form.h

Step 3: create ../RTK_Everywhere/form.h.footer from ../RTK_Everywhere/form.h

Step 4: create ../RTK_Everywhere/form.h from ../RTK_Everywhere/form.h.header + ../RTK_Everywhere/AP-Config/src/main.js.gzip + ../RTK_Everywhere/form.h.footer

Step 5: delete ../RTK_Everywhere/form.h.header + ../RTK_Everywhere/AP-Config/src/main.js.gzip + ../RTK_Everywhere/form.h.footer

Done! ... return back to script directory ... ... done [ Python script - update form.h web file. ] ... ... setting compile options ... ... sketch is /Users/dougfoster/Documents/Arduino/sketches/RTK_Everywhere/RTK_Everywhere.ino ... --- Fri Apr 5 17:00:58 EDT 2024 --- ... beginning compile, be patient ... WARNING: library JC_Button claims to run on avr architecture(s) and may be incompatible with your current board which runs on esp32 architecture(s). Library SparkFun u-blox PointPerfect Library has been declared precompiled: Using precompiled library in /Users/dougfoster/Documents/Arduino/libraries/SparkFun_u-blox_PointPerfect_Library/src/esp32 Sketch uses 2770969 bytes (88%) of program storage space. Maximum is 3145728 bytes. Global variables use 78296 bytes (23%) of dynamic memory, leaving 249384 bytes for local variables. Maximum is 327680 bytes.

Used library Version Path SparkFun_WebServer_ESP32_W5500 1.5.5 /Users/dougfoster/Documents/Arduino/libraries/SparkFun_WebServer_ESP32_W5500 WiFi 2.0.0 /Users/dougfoster/Library/Arduino15/packages/esp32/hardware/esp32/2.0.11/libraries/WiFi Ethernet 2.0.2 /Users/dougfoster/Documents/Arduino/libraries/Ethernet ESP32-OTA-Pull 1.0.0 /Users/dougfoster/Documents/Arduino/libraries/ESP32-OTA-Pull HTTPClient 2.0.0 /Users/dougfoster/Library/Arduino15/packages/esp32/hardware/esp32/2.0.11/libraries/HTTPClient WiFiClientSecure 2.0.0 /Users/dougfoster/Library/Arduino15/packages/esp32/hardware/esp32/2.0.11/libraries/WiFiClientSecure ArduinoJson 6.19.4 /Users/dougfoster/Documents/Arduino/libraries/ArduinoJson Update 2.0.0 /Users/dougfoster/Library/Arduino15/packages/esp32/hardware/esp32/2.0.11/libraries/Update DNSServer 2.0.0 /Users/dougfoster/Library/Arduino15/packages/esp32/hardware/esp32/2.0.11/libraries/DNSServer ESPmDNS 2.0.0 /Users/dougfoster/Library/Arduino15/packages/esp32/hardware/esp32/2.0.11/libraries/ESPmDNS ArduinoMqttClient 0.1.8 /Users/dougfoster/Documents/Arduino/libraries/ArduinoMqttClient PubSubClient 2.8 /Users/dougfoster/Documents/Arduino/libraries/PubSubClient SparkFun u-blox GNSS v3 3.0.14 /Users/dougfoster/Documents/Arduino/libraries/SparkFun_u-blox_GNSS_v3 Wire 2.0.0 /Users/dougfoster/Library/Arduino15/packages/esp32/hardware/esp32/2.0.11/libraries/Wire SPI 2.0.0 /Users/dougfoster/Library/Arduino15/packages/esp32/hardware/esp32/2.0.11/libraries/SPI LittleFS 2.0.0 /Users/dougfoster/Library/Arduino15/packages/esp32/hardware/esp32/2.0.11/libraries/LittleFS FS 2.0.0 /Users/dougfoster/Library/Arduino15/packages/esp32/hardware/esp32/2.0.11/libraries/FS ESP32Time 2.0.0 /Users/dougfoster/Documents/Arduino/libraries/ESP32Time SdFat 2.1.1 /Users/dougfoster/Documents/Arduino/libraries/SdFat SparkFun UM980 Triband RTK GNSS Arduino Library 1.0.2 /Users/dougfoster/Documents/Arduino/libraries/SparkFun_UM980_Triband_RTK_GNSS_Arduino_Library SparkFun Extensible Message Parser 1.0.0 /Users/dougfoster/Documents/Arduino/libraries/SparkFun_Extensible_Message_Parser SparkFun MAX1704x Fuel Gauge Arduino Library 1.0.4 /Users/dougfoster/Documents/Arduino/libraries/SparkFun_MAX1704x_Fuel_Gauge_Arduino_Library SparkFun BQ40Z50 Battery Manager Arduino Library 1.0.0 /Users/dougfoster/Documents/Arduino/libraries/SparkFun_BQ40Z50_Battery_Manager_Arduino_Library ESP32_BleSerial 1.0.4 /Users/dougfoster/Documents/Arduino/libraries/ESP32_BleSerial ESP32 BLE Arduino 2.0.0 /Users/dougfoster/Library/Arduino15/packages/esp32/hardware/esp32/2.0.11/libraries/BLE SparkFun Qwiic OLED Arduino Library 1.0.13 /Users/dougfoster/Documents/Arduino/libraries/SparkFun_Qwiic_OLED_Arduino_Library Ticker 2.0.0 /Users/dougfoster/Library/Arduino15/packages/esp32/hardware/esp32/2.0.11/libraries/Ticker JC_Button 2.1.2 /Users/dougfoster/Documents/Arduino/libraries/JC_Button ESP Async WebServer 1.2.3 /Users/dougfoster/Documents/Arduino/libraries/ESP_Async_WebServer AsyncTCP 1.1.1 /Users/dougfoster/Documents/Arduino/libraries/AsyncTCP SparkFun u-blox PointPerfect Library 1.11.4 /Users/dougfoster/Documents/Arduino/libraries/SparkFun_u-blox_PointPerfect_Library

Used platform Version Path esp32:esp32 2.0.11 /Users/dougfoster/Library/Arduino15/packages/esp32/hardware/esp32/2.0.11 ... end of compile ... --- Fri Apr 5 17:02:20 EDT 2024 --- ... copy binaries to build directories ... ... saving compile notes ... ... copied binaries (all) from sketch dir to build archive dir ... ... copied binaries (firmware) from sketch dir to upload dir ... ... bin directory is "/Users/dougfoster/Dropbox/Data/doug/Projects/2024-01-26-SparkFun_RTK_EVK/_builds/2024-04-05@17-00-58**RTK_Everywhere_rc" ... ... done [ Compile. ] ... ... upload to rtk ... --- Fri Apr 5 17:02:20 EDT 2024 --- ... beginning upload ... ... esptool.py --chip esp32 --p /dev/cu.usbserial-1424120 --baud 460800 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_freq 80m --flash_size detect 0x1000 /Users/dougfoster/Dropbox/Data/doug/Projects/2024-01-26-SparkFun_RTK_EVK/_builds/_upload/RTK_Surveyor.ino.bootloader.bin 0x8000 /Users/dougfoster/Dropbox/Data/doug/Projects/2024-01-26-SparkFun_RTK_EVK/_builds/_upload/RTK_Surveyor_Partitions_16MB.bin 0x10000 /Users/dougfoster/Dropbox/Data/doug/Projects/2024-01-26-SparkFun_RTK_EVK/_builds/_upload/RTK_Everywhere.ino.bin ...

esptool.py v4.7.0 Serial port /dev/cu.usbserial-1424120 Connecting......... Chip is ESP32-D0WD-V3 (revision v3.1) Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None Crystal is 40MHz MAC: e0:5a:1b:d8:8f:04 Uploading stub... Running stub... Stub running... Changing baud rate to 460800 Changed. Configuring flash size... Auto-detected Flash size: 16MB Flash will be erased from 0x00001000 to 0x00005fff... Flash will be erased from 0x00008000 to 0x00008fff... Flash will be erased from 0x00010000 to 0x002b5fff... Flash params set to 0x024f Compressed 17984 bytes to 12318... Wrote 17984 bytes (12318 compressed) at 0x00001000 in 0.6 seconds (effective 238.4 kbit/s)... Hash of data verified. Compressed 3072 bytes to 129... Wrote 3072 bytes (129 compressed) at 0x00008000 in 0.1 seconds (effective 403.9 kbit/s)... Hash of data verified. Compressed 2776720 bytes to 1733660... Wrote 2776720 bytes (1733660 compressed) at 0x00010000 in 43.4 seconds (effective 511.5 kbit/s)... Hash of data verified.

Leaving... Hard resetting via RTS pin... ... upload complete ... --- Fri Apr 5 17:03:11 EDT 2024 --- ... done [ Upload. ] ... ... skip [ Erase flash. ] ... ... finished! --- Fri Apr 5 17:03:11 EDT 2024 ---

dougfoster@MacBook-Pro-2 ~ % ping 192.168.2.33 PING 192.168.2.33 (192.168.2.33): 56 data bytes 64 bytes from 192.168.2.33: icmp_seq=0 ttl=255 time=45.072 ms 64 bytes from 192.168.2.33: icmp_seq=1 ttl=255 time=186.644 ms 64 bytes from 192.168.2.33: icmp_seq=2 ttl=255 time=178.685 ms 64 bytes from 192.168.2.33: icmp_seq=3 ttl=255 time=99.513 ms ^C --- 192.168.2.33 ping statistics --- 4 packets transmitted, 4 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 45.072/127.478/186.644/58.514 ms dougfoster@MacBook-Pro-2 ~ % ping 192.168.2.36 PING 192.168.2.36 (192.168.2.36): 56 data bytes 64 bytes from 192.168.2.36: icmp_seq=0 ttl=128 time=0.998 ms 64 bytes from 192.168.2.36: icmp_seq=1 ttl=128 time=0.466 ms 64 bytes from 192.168.2.36: icmp_seq=2 ttl=128 time=0.358 ms 64 bytes from 192.168.2.36: icmp_seq=3 ttl=128 time=0.346 ms ^C --- 192.168.2.36 ping statistics --- 4 packets transmitted, 4 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 0.346/0.542/0.998/0.267 ms dougfoster@MacBook-Pro-2 ~ %

PaulZC commented 4 months ago

Hi Doug (@doug-foster ),

Thanks for reporting... Yeah. We've got some work to do here. There is a small mismatch between what the JS web page expects / produces, and what the firmware expects. As a minimum, we need to fix:

Unknown 'ntripServer_CasterHost': 0.000
Unknown 'ntripServer_CasterPort': 2101.000
Unknown 'ntripServer_CasterUser': 0.000
Unknown 'ntripServer_CasterUserPW': 0.000
Unknown 'ntripServer_MountPoint': 0.000
Unknown 'ntripServer_MountPointPW': 0.000
Unknown 'ethernetHttpPort': 80.000
Unknown 'ethernetTcpPort': 0.000
Unknown 'hostForTCPClient': 0.000
Unknown 'enableTcpClientEthernet': 0.000

We are at the point where we need to add / update the Config WiFi HTML and JS for the Torch. It is a very different beast to the EVK / Facet. The UM980 messages are completely different to those for the ZED-F9P. If I'm not careful, I'll end up with two large blocks of HTML and JS, one for the ZED and a second for the UM980. It'll be messy to maintain. And will be further complicated when we add the mosaic X5 into the mix... It would indeed be so much better if the firmware could construct the webpage - as JSON maybe - zips it - and throws it to a very simple JS plus HTML page - which unzips it and does the necessary. I'll have a good chat with @nseidle about this.

I'll say the same thing in #230 too.

Cheers! Paul

PaulZC commented 4 months ago

The httpPort issue is resolved in release_candidate...

doug-foster commented 3 months ago

I confirmed default httpPort now displays as 80 in https://github.com/sparkfun/SparkFun_RTK_Everywhere_Firmware_Binaries/blob/main/RTK_Everywhere_Firmware_RC-Apr_24_2024.bin on EVK. However there are still sync issues between the web menu and the settings/serial menu - see latest comment on Issue https://github.com/sparkfun/SparkFun_RTK_Everywhere_Firmware/issues/230.