完成了使485输出的数据可以被上位机解析

This commit is contained in:
2026-05-08 09:45:08 +08:00
parent f05c3106f1
commit c9989b3e6a
74 changed files with 787 additions and 755 deletions

View File

@ -28,34 +28,51 @@ 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 gpio.c...
compiling spi.c...
compiling systick.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 main.c...
../Core/Src/main.c(264): warning: #223-D: function "memcpy" declared implicitly
memcpy(temp_buf1, (uint8_t*)u1_rx_buffer, len);
../Core/Src/main.c: 1 warning, 0 errors
compiling cmd_parser.c...
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 usart.c...
compiling cmd_parser.c...
compiling gpio.c...
compiling relay_control.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_msp.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 stm32f1xx_hal_msp.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
@ -86,38 +103,10 @@ 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 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 relay_control.c...
compiling stm32f1xx_it.c...
compiling stm32f1xx_hal_gpio_ex.c...
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++) {
@ -126,20 +115,24 @@ compiling multi_uart_router.c...
..\Core\Src\multi_uart_router.c(158): warning: #177-D: function "rx_ring_pop" was declared but never referenced
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 tim.c...
compiling stm32f1xx_hal_spi.c...
compiling tim.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 stm32f1xx_hal_rcc.c...
compiling stm32f1xx_hal_flash.c...
compiling stm32f1xx_hal_gpio.c...
compiling stm32f1xx_hal_cortex.c...
compiling stm32f1xx_hal_gpio.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);
@ -150,18 +143,21 @@ 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 stm32f1xx_hal_tim_ex.c...
compiling stm32f1xx_hal_exti.c...
compiling stm32f1xx_hal_uart.c...
compiling system_stm32f1xx.c...
compiling user_main.c...
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 socket.c...
compiling stm32f1xx_hal_tim.c...
compiling dhcp.c...
compiling wiz_platform.c...
compiling loopback.c...
@ -171,9 +167,9 @@ compiling loopback.c...
memcpy(&tx_buf[2 + tag_len], buf, size);
..\User\Loopback\loopback.c: 2 warnings, 0 errors
linking...
Program Size: Code=19500 RO-data=656 RW-data=212 ZI-data=8188
Program Size: Code=19640 RO-data=572 RW-data=212 ZI-data=8188
FromELF: creating hex file...
"project\project.axf" - 0 Error(s), 42 Warning(s).
"project\project.axf" - 0 Error(s), 40 Warning(s).
<h2>Software Packages used:</h2>
@ -197,7 +193,7 @@ Package Vendor: Keil
* Component: ARM::CMSIS:CORE@6.1.1
Include file: CMSIS/Core/Include/tz_context.h
Build Time Elapsed: 00:00:22
Build Time Elapsed: 00:00:20
</pre>
</body>
</html>