Skip to content

Move to common point between release_candidate and leeUpdates #644

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 269 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
269 commits
Select commit Hold shift + click to select a range
067bebb
Add bash scripts to simplify testing and rebase operations
LeeLeahy2 May 4, 2025
14b0e61
Merge pull request #637 from LeeLeahy2/update-makefile
nseidle May 13, 2025
d3a1d00
Remove duplicate declaration
nseidle May 14, 2025
f76808b
MQTT_Client: Sort the routines alphabetically
LeeLeahy2 Apr 29, 2025
bb02291
menuFirmware: Sort the routines alphabetically (after rename)
LeeLeahy2 Apr 30, 2025
37f97bd
Network: Sort the routine alphabetically (after rename)
LeeLeahy2 May 1, 2025
64629c9
NtripClient: Sort the routines alphabetically
LeeLeahy2 May 2, 2025
2f035c7
NtripServer: Sort the routines alphabetically
LeeLeahy2 May 2, 2025
5e02f84
TcpClient: Sort the routines alphabetically (after rename)
LeeLeahy2 Apr 30, 2025
92fa074
TcpServer: Sort the routines alphabetically (after rename)
LeeLeahy2 Apr 30, 2025
8ec354a
UdpServer: Sort the routines alphabetically (after rename)
LeeLeahy2 Apr 30, 2025
7585544
WebServer: Sort the routines alphabetically
LeeLeahy2 Apr 30, 2025
9a5ad60
menuFirmware: Rename routines
LeeLeahy2 Apr 30, 2025
dd769b6
Network: Rename routines
LeeLeahy2 May 1, 2025
870e27d
TcpClient: Rename discardTcpClientBytes to tcpClientDiscardBytes
LeeLeahy2 Apr 30, 2025
281aa25
TcpServer: Rename discardTcpServerBytes to tcpServerDiscardBytes
LeeLeahy2 Apr 30, 2025
1fef055
UdpServer: Rename discardUdpServerBytes to udpServerDiscardBytes
LeeLeahy2 Apr 30, 2025
f00f5fd
ESPNOW: Rename routines and variables
LeeLeahy2 May 3, 2025
b03238d
Network: Rename NETWORK_WIFI to NETWORK_WIFI_STATION
LeeLeahy2 May 3, 2025
ffb9375
HTTP_Client: Add routine header separation
LeeLeahy2 Apr 30, 2025
1b8b132
menuFirmware: Add routine header separation
LeeLeahy2 Apr 30, 2025
0065470
MQTT_Client: Add routine header separation
LeeLeahy2 Apr 29, 2025
fa132d6
NTP: Add routine header separation
LeeLeahy2 Apr 30, 2025
09a77e4
NtripClient: Add routine header separation
LeeLeahy2 Apr 30, 2025
ee5ae07
NtripServer: Add routine header separation
LeeLeahy2 Apr 30, 2025
81d72bb
TcpClient: Add routine header separation
LeeLeahy2 Apr 30, 2025
c4ebd64
TcpServer: Add routine header separation
LeeLeahy2 Apr 30, 2025
856c96d
UdpServer: Add routine header separation
LeeLeahy2 Apr 30, 2025
cd76b31
WebServer: Add routine header separation
LeeLeahy2 Apr 30, 2025
623bdf4
Add rtkMalloc and rktFree, settings.debugMalloc
LeeLeahy2 Apr 29, 2025
30e8c6c
Switch to using rtkFree
LeeLeahy2 May 4, 2025
33cdc0b
HTTP_Client: Disable connection limit
LeeLeahy2 Feb 18, 2025
226fb16
MQTT_Client: Disable connection limit
LeeLeahy2 Feb 18, 2025
8827d73
NtripClient: Disable connection limit
LeeLeahy2 Feb 18, 2025
a1ed56a
NtripServer: Disable connection limit
LeeLeahy2 Feb 18, 2025
53480dc
MQTT_Client: Add routines to break up mqttClientReceiveMessage
LeeLeahy2 Apr 30, 2025
08065fb
menuFirmware: Add routines to support OTA menu
LeeLeahy2 Apr 30, 2025
60be7ec
RTK_Everywhere: Define RTK_MAX_CONNECTION_MSEC as 15 minutes
LeeLeahy2 Apr 30, 2025
2883497
MQTT_Client: Limit connection delays to 15 minutes
LeeLeahy2 Apr 30, 2025
9c0bb9c
MQTT_Client: Remove state MQTT_CLIENT_ON and add *_CONNECTION_DELAY
LeeLeahy2 Apr 30, 2025
ef7fce7
MQTT_Client: Rename server to broker
LeeLeahy2 Apr 30, 2025
a93779a
MQTT_Client: Verify firmware file access before shutting things off
LeeLeahy2 Apr 30, 2025
19158f7
Get the MAC addresses at boot time
LeeLeahy2 Apr 30, 2025
70330a0
settings: Fix NEQ_RTK_MODE macro
LeeLeahy2 Apr 5, 2025
2e7e029
Network: Fix parameter being passed into networkDelay
LeeLeahy2 Apr 6, 2025
a5c0e98
MAC addresses: Get the MAC addresses only at boot
LeeLeahy2 Apr 27, 2025
6a56fa7
menuMain: Add exit command to radio menu
LeeLeahy2 May 4, 2025
2ff0d80
WiFi: Replace arduinoEventName array with call to Network.eventName
LeeLeahy2 May 11, 2025
1960315
Add/change comments
LeeLeahy2 Apr 30, 2025
faade1f
Network: Add fileName and lineNumber parameters to networkStart
LeeLeahy2 May 1, 2025
c4a3360
Network: Add fileName and lineNumber parameters to networkSequenceStart
LeeLeahy2 May 1, 2025
9bf8783
Network: Add fileName and lineNumber parameters to networkStop
LeeLeahy2 May 1, 2025
cddf8fd
Network: Add fileName and lineNumber parameters to networkSequenceStop
LeeLeahy2 May 1, 2025
b12d641
Network: Add fileName and lineNumber to networkSequenceStopPolling
LeeLeahy2 May 1, 2025
ebe8ffc
Network: Add fileName and lineNumber parameters to networkSequenceExit
LeeLeahy2 May 1, 2025
5904445
HTTP_Client: Move failed network check to beginning of httpClientUpdate
LeeLeahy2 May 2, 2025
f2c4675
MQTT_Client: Move failed network check to beginning of mqttClientUpdate
LeeLeahy2 May 2, 2025
407b99b
NtripClient: Move failed network check to beginning of ntripClientUpdate
LeeLeahy2 May 2, 2025
5f7ce86
NtripServer: Move failed network check to beginning of ntripServerUpdate
LeeLeahy2 May 2, 2025
d8575bc
TcpClient: Move failed network check to beginning of tcpClientUpdate
LeeLeahy2 May 2, 2025
31e69fe
TcpServer: Remove duplicate code
LeeLeahy2 May 2, 2025
5d3550b
UdpServer: Remove duplicate code
LeeLeahy2 May 2, 2025
edd8c45
support: Move generic date functions from menuPP.ino to support.ino
LeeLeahy2 May 3, 2025
711b252
Network: Enable easy print of broadcast IP address
LeeLeahy2 May 3, 2025
4569ab8
Ethernet: Add ethernetLinkUp
LeeLeahy2 May 3, 2025
2c06695
GNSS: Add createMessageList and createMessageListBase
LeeLeahy2 May 3, 2025
9dfe6d8
HTTP_Client: Add httpClientEnabled
LeeLeahy2 May 1, 2025
2bc1f6f
menuMain: Add routines
LeeLeahy2 May 3, 2025
23373df
Network: Add routines
LeeLeahy2 May 1, 2025
0329614
NtripClient: Add ntripClientEnabled
LeeLeahy2 May 2, 2025
5b57ce0
NtripServer: Add ntripServerEnabled
LeeLeahy2 May 2, 2025
b01c646
TcpClient: Add tcpClientEnabled
LeeLeahy2 May 1, 2025
25175f7
TcpServer: Add tcpServerEnabled
LeeLeahy2 May 1, 2025
1a26e39
UdpServer: Add udpServerEnabled
LeeLeahy2 May 1, 2025
5239723
WebServer: Add GET_PAGE macro
LeeLeahy2 May 2, 2025
a49b305
Display: Use wifiIconTable, displayWiFiIcon and displayWiFiFullIcon
LeeLeahy2 May 3, 2025
5155322
menuFirmware: Use new menu routines
LeeLeahy2 Apr 30, 2025
7eefeac
MQTT_Client: Use mqttClientEnabled instead of mqttClientIsNeeded
LeeLeahy2 Apr 30, 2025
e1ad0e6
MQTT_Client: Switch to using mqttClientProcessMessage
LeeLeahy2 Apr 30, 2025
91af591
HTTP_Client: Periodically display the off state reason
LeeLeahy2 May 2, 2025
015ab4f
MQTT_Client: Periodically display the off state reason
LeeLeahy2 May 2, 2025
0c6a518
Network: Switch to using networkDisplayNetworkData
LeeLeahy2 May 3, 2025
0af40d5
Network: Add display calls
LeeLeahy2 May 3, 2025
ca98dd5
Network: Reorder processing in networkUpdate
LeeLeahy2 May 3, 2025
dd27bae
Network: Fix network name lookup by priority
LeeLeahy2 Mar 10, 2025
5629aad
NTP: Periodically display off state reason
LeeLeahy2 May 2, 2025
15f953b
NtripClient: Periodically display off state reason
LeeLeahy2 May 2, 2025
4cde59c
NtripServer: Periodically display off state reason
LeeLeahy2 May 2, 2025
a5edfdf
TcpClient: Periodically display off state reason
LeeLeahy2 May 2, 2025
aaa237b
TcpServer: Periodically display off state reason
LeeLeahy2 May 2, 2025
8a148f1
UdpServer: Periodically display off state reason
LeeLeahy2 May 2, 2025
292cf52
WebServer: Periodically display web server state
LeeLeahy2 May 2, 2025
6fdf260
HTTP_Client: Switch to using httpClientEnabled
LeeLeahy2 May 2, 2025
0131829
NtripClient: Switch to using ntripClientEnabled
LeeLeahy2 May 2, 2025
04054de
NtripServer: Switch to using ntripServerEnabled
LeeLeahy2 May 2, 2025
1253b04
form.h: Rebuild using Python script
LeeLeahy2 May 3, 2025
09cde88
ESPNOW: Switch to using espNowAddPeer
LeeLeahy2 May 4, 2025
0ef6c16
menuMain: Add Bluetooth selection to radio menu
LeeLeahy2 May 4, 2025
df55624
ESPNOW: Rename routines and variables
LeeLeahy2 May 4, 2025
9b3ece0
ESPNOW: Sort the routines alphabetically
LeeLeahy2 May 10, 2025
3525c61
Network: Alphabetize the NETCONSUMER values
LeeLeahy2 May 10, 2025
7a8465f
RTK_Everywhere: Alphabetize the debug values in START_DEAD_MAN_WALKING
LeeLeahy2 May 11, 2025
c01e13b
WiFi: Sort routines alphabetically
LeeLeahy2 May 11, 2025
a6c01f6
WiFi: Add fileName and lineNumber parameters to RTK_WIFI::enable
LeeLeahy2 May 11, 2025
7968ea0
ESPNOW: Rename lastEspNowRssiUpdate to espNowLastRssiUpdate
LeeLeahy2 May 6, 2025
3c9d321
ESPNOW: Rename receivedMAC to espNowReceivedMAC
LeeLeahy2 May 6, 2025
09694d0
ESPNOW: Rename espNowRxHandler to espNowOnDataReceived
LeeLeahy2 May 10, 2025
4c8d115
ESPNOW: Rename espNowIsPaired to espNowProcessRxPairedMessage
LeeLeahy2 May 10, 2025
0969e93
NTP: Rename configureUbloxModuleNTP to ntpConfigureUbloxModule
LeeLeahy2 May 5, 2025
9a00979
ESPNOW: Add espNowIsPaired
LeeLeahy2 May 10, 2025
1ff7556
menuPP: Add prov*Enabled, prov*KeysNeeded and prov*Stop
LeeLeahy2 May 5, 2025
f35b058
MQTT_Client: Add mqttClientPrintSubscribedTopics
LeeLeahy2 May 4, 2025
01e004d
Network: Add networkMulticastDNSUpdate
LeeLeahy2 May 10, 2025
75289f6
WebServer: Add httpdDisplayConfig
LeeLeahy2 May 5, 2025
8174457
WiFi: Add new routines, move routines
LeeLeahy2 May 11, 2025
b4fdee2
Display: Add displayEthernetIcon and displayWebConfig
LeeLeahy2 May 9, 2025
9a22fb0
menuCommands: Add missing break;
LeeLeahy2 May 6, 2025
92a8c8a
menuCommands: When a setting is not found, search rtkSettingsEntries
LeeLeahy2 Apr 27, 2025
ac18a07
Network: Translate NETWORK_OFFLINE index <--> NETWORK_OFFLINE priority
LeeLeahy2 May 9, 2025
cf86aa7
Network: Handle all index values in networkInterfaceHasInternet
LeeLeahy2 May 9, 2025
e23bb8c
Network: Return current network access to internet in networkHasInternet
LeeLeahy2 May 9, 2025
896f797
NTP: Fix IP address display
LeeLeahy2 May 5, 2025
d8f3c09
NtripServer: Use settings.debugNtripServerRtcm to display RTCM data
LeeLeahy2 May 4, 2025
d5468f1
System: Remove use of PD_MQTT_CLIENT_DATA for Rover accuracy
LeeLeahy2 May 6, 2025
5cd18eb
TcpServer: Fixed crash when disabling and active clients attached
LeeLeahy2 Apr 14, 2025
8c51636
WiFi: Reset timeout so that it always <= WIFI_MAX_TIMEOUT
LeeLeahy2 May 11, 2025
d1f7488
Display: Switch to using displayWebConfig
LeeLeahy2 May 9, 2025
946367c
Display: Reduce calls to networkGetIpAddress
LeeLeahy2 May 10, 2025
08ddc93
Ethernet: Don't call WiFi! Network priorities may differ
LeeLeahy2 May 10, 2025
b5fbba1
ESPNOW: Move private variables from RTK_Everywhere.ino into ESPNOW.ino
LeeLeahy2 May 10, 2025
3b19e38
ESPNOW: Don't change the MAC address during calls
LeeLeahy2 May 10, 2025
afe499d
ESPNOW: Use the broadcast MAC address
LeeLeahy2 May 10, 2025
078f2c4
ESPNOW: Move ESPNOW variables into ESPNOW.ino
LeeLeahy2 May 6, 2025
5075a9d
ESPNOW: Always display the RX packet when debugging
LeeLeahy2 May 10, 2025
719b60c
ESPNOW: Simplify espNowProcessRxPairedMessage and add comments
LeeLeahy2 May 10, 2025
0d7895f
ESPNOW: Always display peer during removal when debugging
LeeLeahy2 May 10, 2025
918f45b
ESPNOW: Add broadcast peer for pairing, display peers during debug
LeeLeahy2 May 10, 2025
1bbc514
ESPNOW: Use espNowRemovePeer to remove peers and display during debug
LeeLeahy2 May 10, 2025
b2069fa
HTTP_Client: enableHttpClient is set by httpClientEnabled
LeeLeahy2 May 10, 2025
86874ad
HTTP_Client: Limit the maximum connection attempts
LeeLeahy2 May 10, 2025
1b90941
HTTP_Client: Start on a new line after displaying the state summary
LeeLeahy2 May 10, 2025
7332efe
HTTP_Client: Move connected check to start of httpClientUpdate
LeeLeahy2 May 10, 2025
e17ed78
HTTP_Client: Shutdown the client when necessary, restart if possible
LeeLeahy2 May 10, 2025
6c3b5c3
HTTP_Client: Delay after the network is connected
LeeLeahy2 May 10, 2025
403db85
HTTP_Client: Remove the HTTP_CLIENT_ON state
LeeLeahy2 May 10, 2025
3057be2
HTTP_Client: Reset the timeout when the network changes
LeeLeahy2 May 10, 2025
498f0ef
LARA: Verify the cellular network is highest priority before starting
LeeLeahy2 May 5, 2025
3cbefa5
menuCommands: Start using updated network services
LeeLeahy2 May 6, 2025
b991601
menuFirmware: Remove extra #ifdefs
LeeLeahy2 May 5, 2025
750dc4e
menuFirmware: Determine connected status at top of otaUpdate
LeeLeahy2 May 5, 2025
fc769c7
menuFirmware: Reset *FirmwareVersionCheck & *FirmwareUpdate in otaStop
LeeLeahy2 May 5, 2025
36321d5
menuPP: Use time constants instead of numbers
LeeLeahy2 May 5, 2025
d9bcbe4
menuPP: Periodically display the off state reason
LeeLeahy2 May 5, 2025
0b3000d
menuPP: Remove PROV*_WAIT_RTC & PROV*_CHECK_REMAINING states
LeeLeahy2 May 5, 2025
2d237a7
menuPP: Remove PROVISIONING_CHECK_ATTEMPT state
LeeLeahy2 May 5, 2025
afafdea
menuPP: Remove PROVISIONING_STARTING state
LeeLeahy2 May 5, 2025
3473c2a
menuPP: Remove PROVISIONING_WAIT_ATTEMPT state
LeeLeahy2 May 5, 2025
db5441e
menuPP: Verify certificate file loads & start MQTT client if successful
LeeLeahy2 May 5, 2025
f7bff26
menuPP: Periodic state display is done in provisioningUpdate
LeeLeahy2 May 5, 2025
af645ae
menuSystem: Switch to using Bluetooth menu routines
LeeLeahy2 May 6, 2025
4645ff9
menuSystem: Enable/disable periodic display of web server state
LeeLeahy2 May 6, 2025
d1aca9b
MQTT_Client: Properly restart when possible, shutdown when necessary
LeeLeahy2 May 4, 2025
18599ab
Network: Clear the stop event flag in networkStop
LeeLeahy2 May 10, 2025
bbd7dd9
Network: Synchronously handle connection available/loss events
LeeLeahy2 May 5, 2025
5bc0cb5
Network: Notify the network layer that Ethernet has started
LeeLeahy2 May 10, 2025
4d830f0
Network: Determine if the current network interface has internet access
LeeLeahy2 May 10, 2025
4c0163f
Network: Validate index for networkInterfaceEventStop, add debug print
LeeLeahy2 May 10, 2025
61dde42
Network: Add debug prints in networkInterfaceInternetConnectionAvailable
LeeLeahy2 May 10, 2025
f51744f
Network: Modify networkInterfaceInternetConnectionLost
LeeLeahy2 May 10, 2025
f995be3
Network: Use networkMulticastDNSUpdate to start and stop mDNS
LeeLeahy2 May 10, 2025
771a8da
Network: Display network consumers in networkPrintStatus
LeeLeahy2 May 10, 2025
138e237
Network: Stop the sequence just once
LeeLeahy2 May 10, 2025
5ec5152
Network: Start or stop mDNS as needed
LeeLeahy2 May 10, 2025
f82efd9
NTP: Check for enabled and connected at beginning of ntpServerUpdate
LeeLeahy2 May 5, 2025
bde4f37
NTP: Add NTP_STATE_WAIT_NETWORK state
LeeLeahy2 May 5, 2025
33f5237
NtripClient: Limit connection delays to 15 minutes
LeeLeahy2 May 4, 2025
29c4c25
NtripClient: Use enabled and connected in ntripClientUpdate
LeeLeahy2 May 4, 2025
65cf6bd
NtripServer: Limit connection delays to 15 minutes
LeeLeahy2 May 4, 2025
2577111
NtripServer: Validate the NTRIP_SERVER_MAX value
LeeLeahy2 May 4, 2025
5631916
NtripServer: Simplify the ntripServer to serverIndex translation
LeeLeahy2 May 4, 2025
f00c134
NtripServer: Properly restart when possible, shutdown when necessary
LeeLeahy2 May 4, 2025
06fad59
RTK_Everywhere: Redefine time quantities as 32-bit quantities
LeeLeahy2 May 9, 2025
0ec3360
RTK_Everywhere: Add WiFi, MQTT and OTA headers
LeeLeahy2 May 10, 2025
5c99c2d
States: Add name for missing state
LeeLeahy2 May 10, 2025
7d62dbd
System: Place "Halt" on display for calls to reportFatalError
LeeLeahy2 May 6, 2025
784af2c
TcpClient: Limit connection delays to 15 minutes
LeeLeahy2 May 4, 2025
86642a8
TcpClient: Properly restart when possible, shutdown when necessary
LeeLeahy2 May 4, 2025
e4af675
TcpClient: Validate the network configuration
LeeLeahy2 May 4, 2025
a786212
TcpServer: Properly restart when possible, shutdown when necessary
LeeLeahy2 May 4, 2025
5efe9cf
UpdServer: Use enabled and connected in udpServerUpdate
LeeLeahy2 May 4, 2025
4917008
WebServer: Move variables into WebServer.ino
LeeLeahy2 May 5, 2025
6e5b3da
WebServer: Reduce the stack sizes, down from 23K
LeeLeahy2 May 5, 2025
81bfd58
WebServer: Switch to using createMessageList and createMessageListBase
LeeLeahy2 May 5, 2025
3861f1b
WebServer: Switch to using the GET_PAGE macro
LeeLeahy2 May 5, 2025
c7051df
WebServer: Only start the web server once
LeeLeahy2 May 5, 2025
3ab8eca
WebServer: Add more comments and debug code
LeeLeahy2 May 5, 2025
a4a6872
WebServer: Remove a level of indirection for wsserver
LeeLeahy2 May 5, 2025
bfa247a
WebServer: Fix online.webServer use and calls to webServerStopSockets
LeeLeahy2 May 5, 2025
ced3258
WebServer: Let the network layer start and stop mDNS
LeeLeahy2 May 10, 2025
c040187
RTK_Everywhere: Delay calling verifyTables until after starting display
LeeLeahy2 May 11, 2025
e5320da
Network: Start the network when consumers request it
LeeLeahy2 May 10, 2025
11441e4
HTTP_Client: Switch to using networkConsumer* and networkUser* services
LeeLeahy2 May 10, 2025
e2d8244
menuFirmware: Switch to using networkComsumer* and networkUser* services
LeeLeahy2 May 5, 2025
06a97ad
menuPP: Switch to using networkConsumer* and networkUser* services
LeeLeahy2 May 5, 2025
7734e9e
MQTT_Client: Switch to using networkConsumer* and networkUser* services
LeeLeahy2 May 4, 2025
f959482
NTP: Start using networkConsumer* and networkUser* services
LeeLeahy2 May 6, 2025
19e61ce
NtripClient: Switch to using networkConsumer* and networkUser* services
LeeLeahy2 May 4, 2025
241c3dd
NtripServer: Switch to using networkConsumer* and networkUser* services
LeeLeahy2 May 4, 2025
4df1fa9
TcpClient: Switch to using networkConsumer* and networkUser* services
LeeLeahy2 May 4, 2025
e273ff5
TcpServer: Switch to using networkConsumer* and networkUser* services
LeeLeahy2 May 5, 2025
ac4b1a4
UdpServer: Switch to using networkConsumer* and networkUser* services
LeeLeahy2 May 4, 2025
7a0a97a
WebServer: Switch to using networkConsumer* and networkUser* services
LeeLeahy2 May 5, 2025
db485c5
WiFi: Use consumer bits to start or stop WiFi
LeeLeahy2 May 11, 2025
b03d619
Remove dead code
LeeLeahy2 May 5, 2025
2fed073
WiFi: Take WIFI_CHANNEL_t out of defines
LeeLeahy2 May 11, 2025
ee6efdf
WiFi: Let the network handle starting/stopping mDNS
LeeLeahy2 May 12, 2025
24e0f1d
WiFi: Switch to new WiFi layer
LeeLeahy2 May 10, 2025
b0d0437
WiFi: Switch from _channel to wifiChannel
LeeLeahy2 May 12, 2025
f738fc5
WiFi: Add body to wifiDisplayNetworkData stub routine
LeeLeahy2 May 12, 2025
03a1400
WiFi: Add wifiWaitNoUsers routine
LeeLeahy2 May 12, 2025
d44f601
WiFi: Initialize the global values
LeeLeahy2 May 12, 2025
850c73a
WiFi: Switch from _espNowRunning to wifiEspNowRunning
LeeLeahy2 May 12, 2025
bf111aa
WiFi: Switch from _softApRunning to wifiSoftApRunning
LeeLeahy2 May 12, 2025
ab1b992
WiFi: Switch from _stationRunning to wifiStationRunning
LeeLeahy2 May 12, 2025
c81746d
WiFi: Rename wifiStartLastTry to wifiReconnectionTimer
LeeLeahy2 May 12, 2025
4eefb75
WiFi: Fix enable calls
LeeLeahy2 May 12, 2025
66743c1
WiFi: Update the enable routine
LeeLeahy2 May 12, 2025
8974690
WiFi: Remove unused code
LeeLeahy2 May 12, 2025
c5c197f
WiFi: Setting WiFi.mode does not return a status value
LeeLeahy2 May 12, 2025
aa5989d
WiFi: Support no password for soft AP
LeeLeahy2 May 12, 2025
cabc8d6
WiFi: Update stopStart
LeeLeahy2 May 12, 2025
6d04305
WiFi: Use reportFatalError in verifyTables
LeeLeahy2 May 12, 2025
4568c5c
WiFi: Properly handle Internet connection loss in stationEventHandler
LeeLeahy2 May 12, 2025
e4bec3e
WiFi: Prepare menuWiFi for the new WiFi layer
LeeLeahy2 May 12, 2025
ecffba2
WiFi: Move locals
LeeLeahy2 May 12, 2025
00f44a2
WiFi: Fix comment
LeeLeahy2 May 12, 2025
9225cd4
WiFi: Move wifiStop routine
LeeLeahy2 May 12, 2025
ac683af
ESPNOW: Fix comment referring to settings.espnowPeerCount
LeeLeahy2 May 13, 2025
7b53138
HTTP_Client: Increase timeout for each retry
LeeLeahy2 May 13, 2025
8709d44
Network: Fix comment
LeeLeahy2 May 13, 2025
544eec9
States: Eliminate test, result already known
LeeLeahy2 May 13, 2025
0fbd959
TcpServer: Use wifiSoftApOnline instead of wifiSoftApRunning
LeeLeahy2 May 13, 2025
5a672e7
WiFi: Fix printf
LeeLeahy2 May 13, 2025
2f2f5d5
WiFi: Get new ESP-NOW channel via menuRadio
LeeLeahy2 May 12, 2025
4f65691
form.h: Rebuild using python scripts
LeeLeahy2 May 16, 2025
39a1b19
States: Stop ESP-NOW before starting WebConfig
LeeLeahy2 May 16, 2025
82f52f9
WiFi: Switch to new WiFi layer
LeeLeahy2 May 12, 2025
d8157bc
States: Don't start ESP-NOW early, causes WiFi STA channel conflict
LeeLeahy2 May 15, 2025
65461b4
States: Use RTK_Caster and RTK_Config as base soft AP name
LeeLeahy2 May 15, 2025
679b95e
WebServer: Remove DNSServer, should be handled by the network
LeeLeahy2 May 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/compile-rtk-everywhere.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
env:
FILENAME_PREFIX: RTK_Everywhere_Firmware
FIRMWARE_VERSION_MAJOR: 2
FIRMWARE_VERSION_MINOR: 1
FIRMWARE_VERSION_MINOR: 2
POINTPERFECT_LBAND_TOKEN: ${{ secrets.POINTPERFECT_LBAND_TOKEN }}
POINTPERFECT_IP_TOKEN: ${{ secrets.POINTPERFECT_IP_TOKEN }}
POINTPERFECT_LBAND_IP_TOKEN: ${{ secrets.POINTPERFECT_LBAND_IP_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion Firmware/RTK_Everywhere/AP-Config/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2202,7 +2202,7 @@

<div id="shutdownNoChargeTimeoutMinutesCheckboxDetail">
<div class="form-check mt-3">
<label class="form-check-label" for="shutdownNoChargeTimeoutMinutes">Shutdown if not charging:</label>
<label class="form-check-label" for="shutdownNoChargeTimeoutMinutes">Shutdown If Not Charging</label>
<input class="form-check-input" type="checkbox" value="" id="shutdownNoChargeTimeoutMinutesCheckbox">
<span class="tt" data-bs-placement="right"
title="If enabled, device will turn off if no external charger is present. This is helpful when deploying in machinery or where a user may forget to turn the device off. Default: Disabled">
Expand Down
4 changes: 2 additions & 2 deletions Firmware/RTK_Everywhere/Base.ino
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ void processRTCM(uint8_t *rtcmData, uint16_t dataLength)
}

for (int x = 0; x < dataLength; x++)
espnowProcessRTCM(rtcmData[x]);
espNowProcessRTCM(rtcmData[x]);

loraProcessRTCM(rtcmData, dataLength);

Expand Down Expand Up @@ -41,4 +41,4 @@ void baseCasterEnableOverride()
void baseCasterDisableOverride()
{
settings.baseCasterOverride = false;
}
}
37 changes: 14 additions & 23 deletions Firmware/RTK_Everywhere/Begin.ino
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,9 @@ void identifyBoard()
// Get unit MAC address
// This was in beginVersion, but is needed earlier so that beginBoard
// can print the MAC address if identifyBoard fails.
esp_read_mac(wifiMACAddress, ESP_MAC_WIFI_STA);
memcpy(btMACAddress, wifiMACAddress, sizeof(wifiMACAddress));
btMACAddress[5] +=
2; // Convert MAC address to Bluetooth MAC (add 2):
// https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/system.html#mac-address
memcpy(ethernetMACAddress, wifiMACAddress, sizeof(wifiMACAddress));
ethernetMACAddress[5] += 3; // Convert MAC address to Ethernet MAC (add 3)
getMacAddresses(wifiMACAddress, "wifiMACAddress", ESP_MAC_WIFI_STA, true);
getMacAddresses(btMACAddress, "btMACAddress", ESP_MAC_BT, true);
getMacAddresses(ethernetMACAddress, "ethernetMACAddress", ESP_MAC_ETH, true);

// First, test for devices that do not have ID resistors
if (productVariant == RTK_UNKNOWN)
Expand Down Expand Up @@ -135,20 +131,20 @@ void identifyBoard()
if (idWithAdc(idValue, 1, 10, 17.5))
productVariant = RTK_EVK;

// Facet mosaic: 1/4.7 --> 2666mV < 2721mV < 2772mV (5.5% tolerance)
else if (idWithAdc(idValue, 1, 4.7, 5.5))
// Facet mosaic: 1/4.7 --> 2618mV < 2721mV < 2811mV (10% tolerance)
else if (idWithAdc(idValue, 1, 4.7, 10))
productVariant = RTK_FACET_MOSAIC;

// Facet v2 L-Band: 12.1/1.5 --> 318mV < 364mV < 416mV (7.5% tolerance)
else if (idWithAdc(idValue, 12.1, 1.5, 7.5))
// Facet v2 L-Band: 12.1/1.5 --> 312mV < 364mV < 423mV (8.5% tolerance)
else if (idWithAdc(idValue, 12.1, 1.5, 8.5))
productVariant = RTK_FACET_V2_LBAND;

// Facet v2: 10.0/2.7 --> 650mV < 702mV < 756mV (4.75% tolerance)
else if (idWithAdc(idValue, 10.0, 2.7, 4.75))
// Facet v2: 10.0/2.7 --> 612mV < 702mV < 801mV (8.5% tolerance)
else if (idWithAdc(idValue, 10.0, 2.7, 8.5))
productVariant = RTK_FACET_V2;

// Postcard: 3.3/10 --> 2421mV < 2481mV < 2539mV (4.75% tolerance)
else if (idWithAdc(idValue, 3.3, 10, 4.75))
// Postcard: 3.3/10 --> 2371mV < 2481mV < 2582mV (8.5% tolerance)
else if (idWithAdc(idValue, 3.3, 10, 8.5))
productVariant = RTK_POSTCARD;
}

Expand Down Expand Up @@ -747,7 +743,7 @@ void beginBoard()
void beginVersion()
{
char versionString[21];
getFirmwareVersion(versionString, sizeof(versionString), true);
firmwareVersionGet(versionString, sizeof(versionString), true);

char title[50];
RTKBrandAttribute *brandAttributes = getBrandAttributeFromBrand(present.brand);
Expand Down Expand Up @@ -926,7 +922,7 @@ void beginSD()
}

// Load firmware file from the microSD card if it is present
scanForFirmware();
microSDScanForFirmware();

// Mark card not yet usable for logging
sdCardSize = 0;
Expand Down Expand Up @@ -989,12 +985,7 @@ void beginGnssUart()

// Never freed...
if (rbOffsetArray == nullptr)
{
if (online.psram == true)
rbOffsetArray = (RING_BUFFER_OFFSET *)ps_malloc(length);
else
rbOffsetArray = (RING_BUFFER_OFFSET *)malloc(length);
}
rbOffsetArray = (RING_BUFFER_OFFSET *)rtkMalloc(length, "Ring buffer (rbOffsetArray)");

if (!rbOffsetArray)
{
Expand Down
4 changes: 2 additions & 2 deletions Firmware/RTK_Everywhere/Buttons.ino
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void powerDown(bool displayInfo)
{
// Platforms with power control won't get here
// Postcard will get here if the battery is too low

systemPrintln("Device powered down");
delay(5000);

Expand Down Expand Up @@ -224,4 +224,4 @@ bool buttonPressedFor(uint8_t buttonNumber, uint16_t maxTime)
uint8_t buttonLastPressed()
{
return (gpioExpander_lastReleased);
}
}
4 changes: 2 additions & 2 deletions Firmware/RTK_Everywhere/Cellular.ino
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ void cellularEvent(arduino_event_id_t event)
if (networkInterfaceHasInternet(NETWORK_CELLULAR) && (event != ARDUINO_EVENT_ETH_GOT_IP) &&
(event != ARDUINO_EVENT_ETH_GOT_IP6) && (event != ARDUINO_EVENT_PPP_CONNECTED))
{
networkInterfaceEventInternetLost(NETWORK_CELLULAR);
networkInterfaceEventInternetLost(NETWORK_CELLULAR, __FILE__, __LINE__);
}

// Cellular State Machine
Expand Down Expand Up @@ -157,7 +157,7 @@ void cellularSimCheck(NetIndex_t index, uintptr_t parameter, bool debug)
{
systemPrintf("SIM card not present. Marking cellular offline.\r\n");
present.cellular_lara = false;
networkSequenceExit(index, debug);
networkSequenceExit(index, debug, __FILE__, __LINE__);
}
}

Expand Down
79 changes: 45 additions & 34 deletions Firmware/RTK_Everywhere/Developer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
// Ethernet
//----------------------------------------

bool ethernetLinkUp() {return false;}
void menuEthernet() {systemPrintln("**Ethernet not compiled**");}

bool ntpLogIncreasing = false;
Expand All @@ -33,8 +34,9 @@ void ntpServerStop() {}

void menuTcpUdp() {systemPrint("**Network not compiled**");}
void networkBegin() {}
uint8_t networkConsumers() {return(0);}
uint16_t networkGetConsumerTypes() {return(0);}
void networkConsumerAdd(NETCONSUMER_t consumer, NetIndex_t network, const char * fileName, uint32_t lineNumber) {}
bool networkConsumerIsConnected(NETCONSUMER_t consumer) {return false;}
void networkConsumerRemove(NETCONSUMER_t consumer, NetIndex_t network, const char * fileName, uint32_t lineNumber) {}
IPAddress networkGetIpAddress() {return("0.0.0.0");}
const uint8_t * networkGetMacAddress()
{
Expand All @@ -44,7 +46,8 @@ const uint8_t * networkGetMacAddress()
return btMACAddress;
#endif
return zero;
}
}
NetPriority_t networkGetPriority() {return 0;}
bool networkHasInternet() {return false;}
bool networkHasInternet(NetIndex_t index) {return false;}
bool networkInterfaceHasInternet(NetIndex_t index) {return false;}
Expand All @@ -54,6 +57,8 @@ void networkMarkHasInternet(NetIndex_t index) {}
void networkSequenceBoot(NetIndex_t index) {}
void networkSequenceNextEntry(NetIndex_t index, bool debug) {}
void networkUpdate() {}
void networkUserAdd(NETCONSUMER_t consumer, const char * fileName, uint32_t lineNumber) {}
void networkUserRemove(NETCONSUMER_t consumer, const char * fileName, uint32_t lineNumber) {}
void networkValidateIndex(NetIndex_t index) {}
void networkVerifyTables() {}

Expand Down Expand Up @@ -83,30 +88,30 @@ bool ntripServerIsCasting(int serverIndex) {
// TCP client
//----------------------------------------

void tcpClientDiscardBytes(RING_BUFFER_OFFSET previousTail, RING_BUFFER_OFFSET newTail) {}
int32_t tcpClientSendData(uint16_t dataHead) {return 0;}
void tcpClientUpdate() {}
void tcpClientValidateTables() {}
void tcpClientZeroTail() {}
void discardTcpClientBytes(RING_BUFFER_OFFSET previousTail, RING_BUFFER_OFFSET newTail) {}

//----------------------------------------
// TCP server
//----------------------------------------

void tcpServerDiscardBytes(RING_BUFFER_OFFSET previousTail, RING_BUFFER_OFFSET newTail) {}
int32_t tcpServerSendData(uint16_t dataHead) {return 0;}
void tcpServerZeroTail() {}
void tcpServerValidateTables() {}
void discardTcpServerBytes(RING_BUFFER_OFFSET previousTail, RING_BUFFER_OFFSET newTail) {}

//----------------------------------------
// UDP server
//----------------------------------------

void udpServerDiscardBytes(RING_BUFFER_OFFSET previousTail, RING_BUFFER_OFFSET newTail) {}
int32_t udpServerSendData(uint16_t dataHead) {return 0;}
void udpServerStop() {}
void udpServerUpdate() {}
void udpServerZeroTail() {}
void discardUdpServerBytes(RING_BUFFER_OFFSET previousTail, RING_BUFFER_OFFSET newTail) {}

#endif // COMPILE_NETWORK

Expand All @@ -117,7 +122,9 @@ void discardUdpServerBytes(RING_BUFFER_OFFSET previousTail, RING_BUFFER_OFFSET n
#ifndef COMPILE_OTA_AUTO

void otaAutoUpdate() {}
bool otaNeedsNetwork() {return false;}
bool otaCheckVersion(char *versionAvailable, uint8_t versionAvailableLength) {return false;}
void otaMenuDisplay(char * currentVersion) {}
bool otaMenuProcessInput(byte incoming) {return false;}
void otaUpdate() {}
void otaUpdateStop() {}
void otaVerifyTables() {}
Expand All @@ -131,9 +138,9 @@ void otaVerifyTables() {}
#ifndef COMPILE_MQTT_CLIENT

bool mqttClientIsConnected() {return false;}
bool mqttClientNeedsNetwork() {return false;}
void mqttClientPrintStatus() {}
void mqttClientRestart() {}
void mqttClientStartEnabled() {}
void mqttClientUpdate() {}
void mqttClientValidateTables() {}

Expand Down Expand Up @@ -165,7 +172,6 @@ bool webServerStart(int httpPort = 80)
bool parseIncomingSettings() {return false;}
void sendStringToWebsocket(const char* stringToSend) {}
void stopWebServer() {}
bool webServerNeedsNetwork() {return false;}
void webServerStop() {}
void webServerUpdate() {}
void webServerVerifyTables() {}
Expand All @@ -178,18 +184,17 @@ void webServerVerifyTables() {}

#ifndef COMPILE_ESPNOW

bool espnowGetState() {return ESPNOW_OFF;}
bool espnowIsPaired() {return false;}
void espnowProcessRTCM(byte incoming) {}
esp_err_t espnowRemovePeer(uint8_t *peerMac) {return ESP_OK;}
esp_err_t espnowSendPairMessage(uint8_t *sendToMac) {return ESP_OK;}
bool espnowSetChannel(uint8_t channelNumber) {return false;}
void espnowStart() {}
#define ESPNOW_START() false
void espnowStaticPairing() {}
void espnowStop() {}
#define ESPNOW_STOP() true
void updateEspnow() {}
bool espNowGetState() {return ESPNOW_OFF;}
bool espNowIsPaired() {return false;}
void espNowProcessRTCM(byte incoming) {}
bool espNowProcessRxPairedMessage() {return true;}
esp_err_t espNowRemovePeer(const uint8_t *peerMac) {return ESP_OK;}
esp_err_t espNowSendPairMessage(const uint8_t *sendToMac) {return ESP_OK;}
bool espNowSetChannel(uint8_t channelNumber) {return false;}
bool espNowStart() {return true;}
void espNowStaticPairing() {}
bool espNowStop() {return true;}
void espNowUpdate() {}

#endif // COMPILE_ESPNOW

Expand All @@ -199,19 +204,22 @@ void updateEspnow() {}

#ifndef COMPILE_WIFI

void menuWiFi() {systemPrintln("**WiFi not compiled**");}
bool wifiApIsRunning() {return false;}
bool wifiConnect(bool startWiFiStation, bool startWiFiAP, unsigned long timeout) {return false;}
uint32_t wifiGetStartTimeout() {return 0;}
#define WIFI_IS_RUNNING() 0
int wifiNetworkCount() {return 0;}
void wifiResetThrottleTimeout() {}
void wifiResetTimeout() {}
#define WIFI_SOFT_AP_RUNNING() {return false;}
bool wifiStart() {return false;}
bool wifiStationIsRunning() {return false;}
#define WIFI_STOP() {}
bool wifiUnavailable() {return true;}
void menuWiFi() {systemPrintln("**WiFi not compiled**");}
void wifiDisplayNetworkData() {}
void wifiDisplaySoftApStatus() {}
bool wifiEspNowOff(const char * fileName, uint32_t lineNumber) {return true;}
bool wifiEspNowOn(const char * fileName, uint32_t lineNumber) {return false;}
void wifiEspNowSetChannel(WIFI_CHANNEL_t channel) {}
uint32_t wifiGetStartTimeout() {return 0;}
int wifiNetworkCount() {return 0;}
void wifiResetThrottleTimeout() {}
void wifiResetTimeout() {}
const char * wifiSoftApGetSsid() {return "";}
bool wifiSoftApOff(const char * fileName, uint32_t lineNumber) {return true;}
bool wifiSoftApOn(const char * fileName, uint32_t lineNumber) {return false;}
bool wifiStationOff(const char * fileName, uint32_t lineNumber) {return true;}
bool wifiStationOn(const char * fileName, uint32_t lineNumber) {return false;}
void wifiStopAll() {}

#endif // COMPILE_WIFI

Expand Down Expand Up @@ -276,7 +284,10 @@ void pointperfectPrintKeyInformation(const char *requestedBy) {systemPrintln("**

#ifndef COMPILE_LG290P

void lg290pBoot() {}
void lg290pHandler(uint8_t * buffer, int length) {}
bool lg290pMessageEnabled(char *nmeaSentence, int sentenceLength) {return false;}
void lg290pReset() {}

#endif // COMPILE_LG290P

Expand Down
Loading