基本完成的所有收发功能

This commit is contained in:
2026-05-07 17:47:52 +08:00
parent 61530dccec
commit f05c3106f1
82 changed files with 3008 additions and 4922 deletions

View File

@ -28,53 +28,34 @@ Project File Date: 05/05/2026
*** Using Compiler 'V5.06 update 7 (build 960)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Rebuild target 'project'
assembling startup_stm32f103xb.s...
compiling main.c...
../Core/Src/main.c(262): warning: #223-D: function "memcpy" declared implicitly
memcpy(temp_buf1, (uint8_t*)u1_rx_buffer, len);
../Core/Src/main.c(274): warning: #870-D: invalid multibyte character sequence
printf("\r\n[DEBUG] 收到来自 设备[%d] 的消<E79A84><E6B688>?, 有效数据长度: %d 字节!\r\n", sender_id, real_len);
../Core/Src/main.c(295): warning: #223-D: function "memcpy" declared implicitly
memcpy(temp_buf3, (uint8_t*)u3_rx_buffer, len);
../Core/Src/main.c: 3 warnings, 0 errors
compiling systick.c...
compiling spi.c...
compiling rf433_tx_app.c...
..\Core\Src\rf433_tx_app.c(28): warning: #188-D: enumerated type mixed with another type
static rf433_tx_app_t g_tx_app = {0};
..\Core\Src\rf433_tx_app.c: 1 warning, 0 errors
compiling gpio.c...
compiling spi.c...
compiling systick.c...
compiling main.c...
../Core/Src/main.c(96): warning: #47-D: incompatible redefinition of macro "ETHERNET_BUF_MAX_SIZE" (declared at line 9 of "..\User\user_main\user_main.h")
#define ETHERNET_BUF_MAX_SIZE 2048
../Core/Src/main.c: 1 warning, 0 errors
compiling rf433_rx_app.c...
..\Core\Src\rf433_rx_app.c(23): warning: #188-D: enumerated type mixed with another type
static rf433_rx_app_t g_rx_app = {0};
..\Core\Src\rf433_rx_app.c: 1 warning, 0 errors
compiling cmd_parser.c...
compiling usart.c...
compiling cmd_parser.c...
compiling gpio.c...
compiling relay_control.c...
compiling uart2_print.c...
..\Core\Src\uart2_print.c(485): warning: #1-D: last line of file ends without a newline
#endif
..\Core\Src\uart2_print.c: 1 warning, 0 errors
compiling debug_log.c...
compiling stm32f1xx_it.c...
compiling io_monitor.c...
../Core/Inc/data_source.h(8): warning: #1-D: last line of file ends without a newline
#endif /* __DATA_SOURCE_H */
..\Core\Src\io_monitor.c: 1 warning, 0 errors
compiling stm32f1xx_hal_msp.c...
compiling cmd_router.c...
../Core/Inc/data_source.h(8): warning: #1-D: last line of file ends without a newline
#endif /* __DATA_SOURCE_H */
../Core/Inc/uart3_protocol_discriminator.h(150): warning: #1-D: last line of file ends without a newline
#endif
../Core/Inc/uart3_passthrough.h(207): warning: #1-D: last line of file ends without a newline
#endif
../Core/Inc/uart3_smart_router_config.h(143): warning: #1-D: last line of file ends without a newline
#endif
..\Core\Src\cmd_router.c(286): warning: #188-D: enumerated type mixed with another type
for (port_id_t i = 0; i < PORT_COUNT; i++) {
..\Core\Src\cmd_router.c(463): warning: #188-D: enumerated type mixed with another type
for (port_id_t port_id = 0; port_id < PORT_COUNT; port_id++) {
..\Core\Src\cmd_router.c(554): warning: #188-D: enumerated type mixed with another type
for (port_id_t port = 0; port < PORT_COUNT; port++) {
..\Core\Src\cmd_router.c(116): warning: #550-D: variable "g_current_parsing_port" was set but never used
static uint8_t g_current_parsing_port = PORT_UART2;
..\Core\Src\cmd_router.c: 8 warnings, 0 errors
compiling relay_control.c...
compiling stm32f1xx_it.c...
compiling uart3_protocol_discriminator.c...
../Core/Inc/uart3_protocol_discriminator.h(150): warning: #1-D: last line of file ends without a newline
#endif
@ -105,8 +86,38 @@ compiling uart3_protocol_discriminator.c...
..\Core\Src\uart3_protocol_discriminator.c(58): warning: #177-D: function "check_scan_timeout" was declared but never referenced
static bool check_scan_timeout(uint32_t current_tick)
..\Core\Src\uart3_protocol_discriminator.c: 14 warnings, 0 errors
compiling stm32f1xx_hal_spi.c...
compiling io_monitor.c...
../Core/Inc/data_source.h(8): warning: #1-D: last line of file ends without a newline
#endif /* __DATA_SOURCE_H */
..\Core\Src\io_monitor.c: 1 warning, 0 errors
compiling debug_log.c...
compiling cmd_router.c...
../Core/Inc/data_source.h(8): warning: #1-D: last line of file ends without a newline
#endif /* __DATA_SOURCE_H */
../Core/Inc/uart3_protocol_discriminator.h(150): warning: #1-D: last line of file ends without a newline
#endif
../Core/Inc/uart3_passthrough.h(207): warning: #1-D: last line of file ends without a newline
#endif
../Core/Inc/uart3_smart_router_config.h(143): warning: #1-D: last line of file ends without a newline
#endif
..\Core\Src\cmd_router.c(286): warning: #188-D: enumerated type mixed with another type
for (port_id_t i = 0; i < PORT_COUNT; i++) {
..\Core\Src\cmd_router.c(463): warning: #188-D: enumerated type mixed with another type
for (port_id_t port_id = 0; port_id < PORT_COUNT; port_id++) {
..\Core\Src\cmd_router.c(554): warning: #188-D: enumerated type mixed with another type
for (port_id_t port = 0; port < PORT_COUNT; port++) {
..\Core\Src\cmd_router.c(116): warning: #550-D: variable "g_current_parsing_port" was set but never used
static uint8_t g_current_parsing_port = PORT_UART2;
..\Core\Src\cmd_router.c: 8 warnings, 0 errors
compiling stm32f1xx_hal.c...
compiling uart3_passthrough.c...
../Core/Inc/uart3_passthrough.h(207): warning: #1-D: last line of file ends without a newline
#endif
../Core/Inc/uart3_smart_router_config.h(143): warning: #1-D: last line of file ends without a newline
#endif
..\Core\Src\uart3_passthrough.c(273): warning: #1-D: last line of file ends without a newline
}
..\Core\Src\uart3_passthrough.c: 3 warnings, 0 errors
compiling multi_uart_router.c...
..\Core\Src\multi_uart_router.c(273): warning: #188-D: enumerated type mixed with another type
for (port_id_t i = 0; i < PORT_COUNT; i++) {
@ -116,38 +127,19 @@ compiling multi_uart_router.c...
static uint16_t rx_ring_pop(uart_rx_ring_t *ring, uint8_t *byte)
..\Core\Src\multi_uart_router.c: 3 warnings, 0 errors
compiling stm32f1xx_hal_gpio_ex.c...
compiling uart3_passthrough.c...
../Core/Inc/uart3_passthrough.h(207): warning: #1-D: last line of file ends without a newline
#endif
../Core/Inc/uart3_smart_router_config.h(143): warning: #1-D: last line of file ends without a newline
#endif
..\Core\Src\uart3_passthrough.c(273): warning: #1-D: last line of file ends without a newline
}
..\Core\Src\uart3_passthrough.c: 3 warnings, 0 errors
compiling tim.c...
compiling stm32f1xx_hal_spi.c...
compiling stm32f1xx_hal_rcc.c...
compiling stm32f1xx_hal_rcc_ex.c...
compiling stm32f1xx_hal_cortex.c...
compiling stm32f1xx_hal_flash.c...
compiling stm32f1xx_hal_pwr.c...
compiling stm32f1xx_hal_dma.c...
compiling stm32f1xx_hal_flash_ex.c...
compiling stm32f1xx_hal_gpio.c...
compiling stm32f1xx_hal_exti.c...
compiling stm32f1xx_hal_tim_ex.c...
compiling stm32f1xx_hal_tim.c...
compiling user_main.c...
compiling wiz_interface.c...
..\User\wiz_interface\wiz_interface.c(201): warning: #870-D: invalid multibyte character sequence
printf(" -> [WIZ] 硬件复位通过<EFBC81><E8AFB4>? TIM2 定时器工作完全正常!\r\n");
..\User\wiz_interface\wiz_interface.c: 1 warning, 0 errors
compiling multicast.c...
compiling w5500.c...
compiling socket.c...
compiling stm32f1xx_hal_uart.c...
compiling wizchip_conf.c...
compiling dhcp.c...
compiling stm32f1xx_hal_cortex.c...
compiling stm32f1xx_hal_rcc_ex.c...
compiling stm32f1xx_hal_dma.c...
compiling stm32f1xx_hal_pwr.c...
compiling stm32f1xx_hal_flash_ex.c...
compiling system_stm32f1xx.c...
compiling rf433_hal.c...
compiling stm32f1xx_hal_exti.c...
compiling rf433.c...
..\Driver_RF433\Src\rf433.c(209): warning: #188-D: enumerated type mixed with another type
ret = rf433_set_config(&rf433_current_config);
@ -158,18 +150,30 @@ compiling rf433.c...
..\Driver_RF433\Src\rf433.c(132): warning: #177-D: function "rf433_response_command_check" was declared but never referenced
static bool rf433_response_command_check(rf433_request_cmd_t cmd, uint8_t *buffer, uint8_t length)
..\Driver_RF433\Src\rf433.c: 4 warnings, 0 errors
compiling rf433_hal.c...
compiling wiz_interface.c...
..\User\wiz_interface\wiz_interface.c(201): warning: #870-D: invalid multibyte character sequence
printf(" -> [WIZ] 硬件复位通过<EFBC81><E8AFB4>? TIM2 定时器工作完全正常!\r\n");
..\User\wiz_interface\wiz_interface.c: 1 warning, 0 errors
compiling stm32f1xx_hal_tim.c...
compiling user_main.c...
compiling multicast.c...
compiling stm32f1xx_hal_tim_ex.c...
compiling stm32f1xx_hal_uart.c...
compiling w5500.c...
compiling socket.c...
compiling wizchip_conf.c...
compiling dhcp.c...
compiling wiz_platform.c...
compiling loopback.c...
..\User\Loopback\loopback.c(249): warning: #9-D: nested comment is not allowed
/* 只在数据前加一<EFBFBD><EFBFBD>? [NET] 标识,直接透传 */
..\User\Loopback\loopback.c(256): warning: #223-D: function "memcpy" declared implicitly
memcpy(tx_buf + tag_len, buf, size);
/* 🚀 核心修改:网络数据透传时,加上 [0xAA] 和设<E5928C><E8AEBE>? ID */
..\User\Loopback\loopback.c(260): warning: #223-D: function "memcpy" declared implicitly
memcpy(&tx_buf[2 + tag_len], buf, size);
..\User\Loopback\loopback.c: 2 warnings, 0 errors
linking...
Program Size: Code=32896 RO-data=936 RW-data=392 ZI-data=9480
Program Size: Code=19500 RO-data=656 RW-data=212 ZI-data=8188
FromELF: creating hex file...
"project\project.axf" - 0 Error(s), 40 Warning(s).
"project\project.axf" - 0 Error(s), 42 Warning(s).
<h2>Software Packages used:</h2>