Commit f0ee919
Add enhanced DHCP/network diagnostics and ping tests
Enhanced network connectivity diagnostics in QEMU E2E tests:
Network Logging Improvements (wled.cpp):
- Added verbose DHCP client initialization logging
- Log DHCP start result and error codes
- Wait 2 seconds after DHCP start and check IP assignment status
- Display assigned IP, gateway, and netmask when available
- Log when DHCP is still negotiating
- Added logging for static IP configuration path
Connectivity Testing Improvements (workflow):
- Added ping tests before HTTP tests for basic connectivity verification
- Test localhost ping first
- Attempt to detect and ping guest IP (10.0.2.x) from QEMU logs
- More verbose output showing each connectivity test attempt
- Helps diagnose if issue is network layer vs HTTP server
This addresses the request to:
1. Indicate when DHCP requests are being made and if replies are received
2. Use ping as well as HTTP requests to verify connectivity
The enhanced logging helps differentiate between:
- Network stack initialization issues
- DHCP negotiation problems
- IP assignment failures
- HTTP server startup delays
Co-authored-by: netmindz <[email protected]>1 parent db57333 commit f0ee919
2 files changed
+49
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
166 | 184 | | |
167 | 185 | | |
168 | 186 | | |
| |||
189 | 207 | | |
190 | 208 | | |
191 | 209 | | |
192 | | - | |
193 | 210 | | |
194 | 211 | | |
195 | 212 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1081 | 1081 | | |
1082 | 1082 | | |
1083 | 1083 | | |
1084 | | - | |
| 1084 | + | |
1085 | 1085 | | |
1086 | 1086 | | |
1087 | 1087 | | |
| 1088 | + | |
1088 | 1089 | | |
| 1090 | + | |
1089 | 1091 | | |
1090 | | - | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
1091 | 1115 | | |
1092 | 1116 | | |
| 1117 | + | |
1093 | 1118 | | |
1094 | 1119 | | |
1095 | 1120 | | |
1096 | 1121 | | |
1097 | 1122 | | |
1098 | | - | |
| 1123 | + | |
| 1124 | + | |
1099 | 1125 | | |
1100 | 1126 | | |
1101 | 1127 | | |
| |||
0 commit comments