tags: [entity] type: entity topic: stm32-lower note: 15 created: 2026-07-16
| # | Directory | Description |
|---|---|---|
| 10 | 10_wifi_test_hal |
WiFi AT command test |
| 11 | 11_wifi_tcp_server_hal |
WiFi TCP Server |
| Claimed Path | Actual Path | Status |
|---|---|---|
stm32/10_wifi_test_hal/Core/Src/main.c |
10_wifi_test_hal/Core/Src/main.c |
✅ Correct |
stm32/10_wifi_test_hal/Interface/ESP32/esp32.c |
10_wifi_test_hal/Interface/ESP32/esp32.c |
✅ Correct |
stm32/11_wifi_tcp_server_hal/Core/Src/main.c |
11_wifi_tcp_server_hal/Core/Src/main.c |
✅ Correct |
stm32/11_wifi_tcp_server_hal/App/WIFI/wifi.c |
11_wifi_tcp_server_hal/App/WIFI/wifi.c |
✅ Correct |
| Claimed by Note | Actual Code | Match? |
|---|---|---|
MX_USART2_UART_Init() |
Line 18 | ✅ Match |
uint8_t *cmd = "AT+RST=0\r\n" |
Line 21 | ✅ Match |
ESP32_SendCmd(cmd, strlen((char *)cmd)) |
Line 22 | ✅ Match |
HAL_Delay(2000) |
Line 25 | ✅ Match |
memset(respBuff, 0, 1024) |
Line 32 | ✅ Match |
HAL_UART_Transmit(&huart2, cmd, cmdLen, 1000) |
Line 35 | ✅ Match |
do { ESP32_ReadResp(...) } while (strstr(..., "OK") == NULL) |
Lines 38-41 | ✅ Match |
printf("%.*s\n", respLen, respBuff) |
Line 44 | ✅ Match |
HAL_UARTEx_ReceiveToIdle(&huart2, buff, 1024, len, 1000) |
Line 51 | ✅ Match |
Global: uint8_t respBuff[1024]; uint16_t respLen; |
Lines 11-12 | ✅ Match |
Note says main.c includes TCP server logic. Actual main.c (10_wifi_test_hal) only sends basic AT commands:
ESP32_Init();
ESP32_SendCmd("AT\r\n", ...);
ESP32_SendCmd("AT+GMR\r\n", ...);
The TCP server logic lives in project 11 (11_wifi_tcp_server_hal), not project 10.
Discrepancy: The note may have merged project 10 and 11 behavior. Project 10 is just a basic AT command test.
Note claims:
WIFI_Init(AP) → sets AP mode with AT+CWMODE=2, AT+CWSAP, AT+CIPAPWIFI_TCP_ServerStart() → AT+CIPMUX=1, AT+CIPSERVER=1,8080, AT+CIPDINFO=1WIFI_TCP_SendData → sprintf AT+CIPSEND, then HAL_UART_TransmitWIFI_TCP_ReadData → sscanf to parse +IPD formatAll match actual code. The +IPD parsing via sscanf is correctly captured.
Overall Accuracy: High
Issues Found:
esp32.c matches perfectly