基本完成的所有收发功能

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

@ -50,13 +50,17 @@ extern "C" {
/* 硬件模块启用/禁用宏定义 */
#ifndef USE_W5500
#define USE_W5500 1 /* 默认启用W5500以太网模块 */
#define USE_W5500 0 /* 默认启用W5500以太网模块 */
#endif
#ifndef USE_RS485
#define USE_RS485 1 /* 默认启用RS485通信模块 */
#endif
/* =========================================================
🚀 核心身份标识:烧录不同设备时,请务必修改这个数字!
比如设备A烧录时改为 0x01设备B烧录时改为 0x02
========================================================= */
#define MY_DEVICE_ID 0x01
/* USER CODE END EM */
/* Exported functions prototypes ---------------------------------------------*/

View File

@ -196,31 +196,28 @@ static void send_di_event(uint8_t channel, uint8_t state)
char msg[32];
uint8_t cs;
/* 构造消息主体channel+1将0-base转换为1-base的用户可见编号 */
int len = snprintf(msg, sizeof(msg), "$DI_EVENT,%d,%d,%d*", channel + 1, state, SOURCE_DI);
/* 计算异或校验和,跳过'$'符号只对正文部分计算 */
cs = calc_checksum(msg + 1, len - 1);
/* 将校验和追加到消息末尾,格式为两位十六进制数 */
snprintf(msg + len, sizeof(msg) - len, "%02X\r\n", cs);
/* 输出调试日志到UART2记录状态变化 */
DEBUG_LOG("CH%d -> %s", channel + 1, state ? "HIGH" : "LOW");
/*----------------------------------------------------------
* 向UART1(RF433模块)发送状态变化事件
* 这是IO事件的主要路由通道用于无线上报到上位机
*----------------------------------------------------------*/
MultiUART_SendString(PORT_UART1, msg);
/* ==========================================================
🚀 核心修改:不再直接发送 msg而是套上 [0xAA] 和 [ID] 的外衣
========================================================== */
uint8_t rf_tx_buf[64];
rf_tx_buf[0] = 0xAA; // 贴上魔法帧头
rf_tx_buf[1] = MY_DEVICE_ID; // 贴上本机的身份证号 (来自 main.h)
uint16_t msg_len = strlen(msg);
memcpy(&rf_tx_buf[2], msg, msg_len); // 把真正的 DI 消息塞到第 2 个字节后面
/* 将带 ID 的完整包裹发送给 433 模块 */
MultiUART_Send(PORT_UART1, rf_tx_buf, msg_len + 2);
/* ========================================================== */
/* 输出完整消息到UART2方便调试查看 */
DEBUG_LOG("RF433 TX: \"%s\"", msg);
/*----------------------------------------------------------
* 如果设置了回调函数,也通过回调发送
* 用于支持额外的自定义处理逻辑
*----------------------------------------------------------*/
if (g_event_callback != NULL) {
g_event_callback(channel, state, msg);
}

View File

@ -89,7 +89,7 @@ static volatile uint32_t u1_last_rx_time = 0;
static uint8_t u3_rx_buffer[512];
static volatile uint16_t u3_rx_len = 0;
static volatile uint32_t u3_last_rx_time = 0;
static volatile uint32_t u3_ignore_until = 0;
/* W5500 variables */
#if USE_W5500
#define SOCKET_ID 0
@ -234,61 +234,76 @@ int main(void)
loopback_udps(SOCKET_ID, ethernet_buf, local_port);
#endif
// /* 强行拉低 M0 和 M1叫醒 433 模块处于透传模式! */
// HAL_GPIO_WritePin(M0_GPIO_Port, M0_Pin, GPIO_PIN_RESET);
// HAL_GPIO_WritePin(GPIOB, M1_Pin, GPIO_PIN_RESET);
// /* ⚠️ 致命修复:网络被注释后,单片机启动太快。
// 433模块从休眠到唤醒至少需要几百毫秒。
// 必须改成 1000 毫秒,给硬件足够的缓冲时间! */
// HAL_Delay(1000);
/* Infinite loop */
/* USER CODE BEGIN WHILE */
while (1)
/* Infinite loop */
/* USER CODE BEGIN WHILE */
while (1)
{
/* ==========================================================
第一部分:恢复系统的核心驱动引擎 (解决网络和端口不传数据的问题)
========================================================== */
UART2_Print_Task(); // 引擎负责把串口2的缓存发出去
MultiUART_Task(); // 引擎:负责网络分发、多串口异步发送 (极其重要!)
/* === 1. 恢复系统的核心驱动引擎 === */
UART2_Print_Task();
MultiUART_Task();
IO_Monitor_Task();
/* 如果你的网络指令需要解析,取消下面两行的注释 */
// CmdRouter_Task();
// CmdParser_Task();
/* ==========================================================
第二部分:网络轮询任务
========================================================== */
/* === 2. 网络轮询任务 === */
#if USE_W5500
loopback_udps(SOCKET_ID, ethernet_buf, local_port);
#endif
/* ==========================================================
第三部分:非阻塞无乱码透传 (解决485卡顿漏数据的问题)
========================================================== */
/* === 3. 极速无乱码透传 === */
/* 1. 从 433 收到无线数据 -> 给 485 */
/* === 方案 A从 433 收到无线数据 -> 拆包提取ID -> 纯净透传给 485 === */
if (u1_rx_len > 0 && (HAL_GetTick() - u1_last_rx_time > 20))
{
/* 改用 MultiUART_Send它会把数据瞬间丢进发送队列耗时0毫秒绝不卡顿单片机 */
MultiUART_Send(PORT_UART3, (uint8_t*)u1_rx_buffer, u1_rx_len);
static uint8_t temp_buf1[256];
__disable_irq();
uint16_t len = u1_rx_len;
memcpy(temp_buf1, (uint8_t*)u1_rx_buffer, len);
u1_rx_len = 0;
__enable_irq();
/* 顺便发给串口2监控 */
MultiUART_Send(PORT_UART2, (uint8_t*)u1_rx_buffer, u1_rx_len);
/* 🚀 解析“快递单”检查数据长度并且第0个字节必须是我们定义的魔法帧头 0xAA */
if (len >= 2 && temp_buf1[0] == 0xAA)
{
uint8_t sender_id = temp_buf1[1]; // 提取发件人的身份证
uint16_t real_len = len - 2; // 扒掉2个字节的衣服后真实数据的长度
uint8_t* real_data = &temp_buf1[2]; // 真实数据的起始指针
u1_rx_len = 0; /* 清空缓存 */
/* 【追踪器】打印出来:知道是哪个设备发来的! */
printf("\r\n[DEBUG] 收到来自 设备[%d] 的消息, 有效数据长度: %d 字节!\r\n", sender_id, real_len);
/* 只把干净的真实数据发给 485 设备,绝不能把 0xAA 和 ID 发给 485否则外部设备会乱码 */
if (real_len > 0) {
MultiUART_Send(PORT_UART3, real_data, real_len);
MultiUART_Send(PORT_UART2, real_data, real_len); // 电脑监控原始数据
}
}
else
{
/* 如果没有匹配上帧头(比如收到了环境干扰乱码),直接按原样丢弃或透传 */
MultiUART_Send(PORT_UART3, temp_buf1, len);
MultiUART_Send(PORT_UART2, temp_buf1, len);
}
}
/* 2. 从 485 收到设备数据 -> 通过 433 无线发射 */
/* === 方案 B从 485 收到设备数据 -> 穿上包装(附加ID) -> 通过 433 无线发射 === */
if (u3_rx_len > 0 && (HAL_GetTick() - u3_last_rx_time > 20))
{
MultiUART_Send(PORT_UART1, (uint8_t*)u3_rx_buffer, u3_rx_len);
static uint8_t temp_buf3[512];
__disable_irq();
uint16_t len = u3_rx_len;
memcpy(temp_buf3, (uint8_t*)u3_rx_buffer, len);
u3_rx_len = 0;
__enable_irq();
/* 【可选进阶】如果你希望网络端比如电脑上的UDP助手也能收到485传来的数据
你可以在这里调用你的网络发送函数,把 u3_rx_buffer 发给网口 */
/* 🚀 制作“快递包”:在最前面加上 [0xAA] 和 [本机ID] */
static uint8_t rf_tx_buf[515];
rf_tx_buf[0] = 0xAA; // 贴上魔法帧头
rf_tx_buf[1] = MY_DEVICE_ID; // 贴上本机的身份证号
memcpy(&rf_tx_buf[2], temp_buf3, len); // 把 485 收到的真实数据塞进后面
u3_rx_len = 0; /* 清空缓存 */
/* 把带有身份证的完整包裹,通过 433 发射到空气中 (长度要 +2) */
MultiUART_Send(PORT_UART1, rf_tx_buf, len + 2);
}
/* USER CODE END WHILE */
@ -349,6 +364,7 @@ void SystemClock_Config(void)
/* USER CODE BEGIN 4 */
/* USER CODE BEGIN 4 */
void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
{
if (huart->Instance == USART1) {
@ -357,8 +373,11 @@ void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
HAL_UART_Receive_IT(&huart1, &rf433_uart_rx_tmp, 1);
}
else if (huart->Instance == USART3) {
if (u3_rx_len < sizeof(u3_rx_buffer)) u3_rx_buffer[u3_rx_len++] = uart3_rx_byte;
u3_last_rx_time = HAL_GetTick();
/* 🚀 核心生效区:只有当单片机没有在发送数据时(度过屏蔽期),才允许接收 */
if (HAL_GetTick() >= u3_ignore_until) {
if (u3_rx_len < sizeof(u3_rx_buffer)) u3_rx_buffer[u3_rx_len++] = uart3_rx_byte;
u3_last_rx_time = HAL_GetTick();
}
HAL_UART_Receive_IT(&huart3, &uart3_rx_byte, 1);
}
else if (huart->Instance == USART2) {

View File

@ -100,7 +100,7 @@ void MX_USART3_UART_Init(void)
/* USER CODE END USART3_Init 1 */
huart3.Instance = USART3;
huart3.Init.BaudRate = 115200; /* 从 9600 修改为 115200 */
huart3.Init.BaudRate = 4800; /* 从 9600 修改为 115200 */
huart3.Init.WordLength = UART_WORDLENGTH_8B;
huart3.Init.StopBits = UART_STOPBITS_1;
huart3.Init.Parity = UART_PARITY_NONE;

View File

@ -37,7 +37,7 @@ const rf433_register_t rf433_default_config =
.channel = 0x17,
},
.register_5.field = {
.tx_power = RF433_TX_POWER_DBM_30,
.tx_power = RF433_TX_POWER_DBM_21,
.packet_fec = RF433_ON,
.wake_on_radio_period = RF433_WOR_PERIOD_250MS,
.reserve = RF433_OFF,

File diff suppressed because one or more lines are too long

View File

@ -493,7 +493,7 @@
<GroupNumber>2</GroupNumber>
<FileNumber>18</FileNumber>
<FileType>1</FileType>
<tvExp>1</tvExp>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2>
<PathWithFileName>..\Core\Src\uart3_passthrough.c</PathWithFileName>
@ -505,7 +505,7 @@
<GroupNumber>2</GroupNumber>
<FileNumber>19</FileNumber>
<FileType>1</FileType>
<tvExp>1</tvExp>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2>
<PathWithFileName>..\Core\Src\uart3_protocol_discriminator.c</PathWithFileName>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -46,12 +46,5 @@ project\main.o: ../Core/Inc/relay_control.h
project\main.o: ../Core/Inc/multi_uart_router.h
project\main.o: ../Core/Inc/cmd_router.h
project\main.o: ../Core/Inc/debug_log.h
project\main.o: ..\User\user_main\user_main.h
project\main.o: ..\User\ioLibrary_Driver\Ethernet\wizchip_conf.h
project\main.o: ..\User\ioLibrary_Driver\Ethernet\W5500/w5500.h
project\main.o: ..\User\ioLibrary_Driver\Ethernet\wizchip_conf.h
project\main.o: ..\User\wiz_platform\wiz_platform.h
project\main.o: ..\User\wiz_interface\wiz_interface.h
project\main.o: ..\User\Loopback\loopback.h
project\main.o: ../Core/Inc/rf433_tx_app.h
project\main.o: ../Core/Inc/rf433_rx_app.h

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

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>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -2,7 +2,7 @@ Dependencies for Project 'project', Target 'project': (DO NOT MODIFY !)
CompilerVersion: 5060960::V5.06 update 7 (build 960)::.\ARMCC
F (startup_stm32f103xb.s)(0x69F98680)(--cpu Cortex-M3 -g --apcs=interwork --pd "__MICROLIB SETA 1"
-I.\RTE\_project
-I.\RTE\_project
-IC:\Users\xtell\AppData\Local\Arm\Packs\ARM\CMSIS\6.2.0\CMSIS\Core\Include
@ -40,7 +40,7 @@ I (../Driver_RF433/Inc/rf433.h)(0x69F98677)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc_ex.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio_ex.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_exti.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_exti.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h)(0x69F98678)
@ -77,7 +77,7 @@ I (../Driver_RF433/Inc/rf433.h)(0x69F98677)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h)(0x69F98678)
I (../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h)(0x69F98678)
I (../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h)(0x69F98678)
I (../Drivers/CMSIS/Include/core_cm3.h)(0x69F98678)
I (../Drivers/CMSIS/Include/core_cm3.h)(0x69F98678)
I (../Drivers/CMSIS/Include/cmsis_version.h)(0x69F98678)
I (../Drivers/CMSIS/Include/cmsis_compiler.h)(0x69F98678)
I (../Drivers/CMSIS/Include/cmsis_armcc.h)(0x69F98678)
@ -109,8 +109,8 @@ I (C:\Keil_v5\ARM\ARMCC\include\stdio.h)(0x5F63877C)
-IC:\Users\xtell\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include
-D__UVISION_VERSION="543" -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB
-o project\rf433_tx_app.o --omf_browse project\rf433_tx_app.crf --depend project\rf433_tx_app.d)
-o project\rf433_tx_app.o --omf_browse project\rf433_tx_app.crf --depend project\rf433_tx_app.d)
I (../Driver_RF433/Inc/rf433_config.h)(0x69F98677)
I (../Core/Inc/rf433_tx_app.h)(0x69F98677)
I (../Driver_RF433/Inc/rf433.h)(0x69F98677)
@ -156,17 +156,11 @@ I (../Core/Inc/relay_control.h)(0x69F98677)
-IC:\Users\xtell\AppData\Local\Arm\Packs\ARM\CMSIS\6.2.0\CMSIS\Core\Include
-IC:\Users\xtell\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include
-D__UVISION_VERSION="543" -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB
-o project\main.o --omf_browse project\main.crf --depend project\main.d)
I (../Core/Inc/main.h)(0x69FAA5CB)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x69F98678)
-D__UVISION_VERSION="543" -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB
-o project\main.o --omf_browse project\main.crf --depend project\main.d)
I (../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h)(0x69F98678)
I (../Core/Inc/main.h)(0x69FC2953)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x69F98678)
I (../Core/Inc/stm32f1xx_hal_conf.h)(0x69F98677)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h)(0x69F98678)
@ -199,7 +193,7 @@ I (C:\Keil_v5\ARM\ARMCC\include\stdbool.h)(0x5F63877C)
I (C:\Keil_v5\ARM\ARMCC\include\stdio.h)(0x5F63877C)
I (../Core/Inc/spi.h)(0x69F98677)
I (../Core/Inc/tim.h)(0x69F98677)
I (C:\Keil_v5\ARM\ARMCC\include\stdarg.h)(0x5F63877C)
I (../Core/Inc/usart.h)(0x69F98677)
I (../Core/Inc/gpio.h)(0x69F98677)
I (../Driver_RF433/Inc/rf433.h)(0x69F98677)
I (../Driver_RF433/Inc/rf433_config.h)(0x69F98677)
@ -230,9 +224,9 @@ I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x69F98678)
I (../Core/Inc/stm32f1xx_hal_conf.h)(0x69F98677)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h)(0x69F98678)
I (../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h)(0x69F98678)
I (../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h)(0x69F98678)
I (../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h)(0x69F98678)
I (../Drivers/CMSIS/Include/core_cm3.h)(0x69F98678)
I (C:\Keil_v5\ARM\ARMCC\include\stdint.h)(0x5F63877C)
I (../Drivers/CMSIS/Include/cmsis_version.h)(0x69F98678)
@ -265,7 +259,7 @@ I (C:\Keil_v5\ARM\ARMCC\include\stdbool.h)(0x5F63877C)
-IC:\Users\xtell\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include
-D__UVISION_VERSION="543" -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB
-D__UVISION_VERSION="543" -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB
-o project\spi.o --omf_browse project\spi.crf --depend project\spi.d)
I (../Core/Inc/spi.h)(0x69F98677)
@ -298,7 +292,7 @@ I (C:\Keil_v5\ARM\ARMCC\include\stdbool.h)(0x5F63877C)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x69F98678)
I (C:\Keil_v5\ARM\ARMCC\include\stdbool.h)(0x5F63877C)
I (C:\Keil_v5\ARM\ARMCC\include\stdbool.h)(0x5F63877C)
I (C:\Keil_v5\ARM\ARMCC\include\stdio.h)(0x5F63877C)
F (../Core/Src/usart.c)(0x69FC2123)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../Middlewares/u8g2Lib/inc -I ../Middlewares/MultMenu/application -I ../Middlewares/MultMenu/disp -I ../Middlewares/MultMenu/menu -I ../Driver_RF433 -I ../Driver_RF433/Inc -I ../Driver_RF433/Src -I ..\User\wiz_platform -I ..\User\wiz_interface -I ..\User\user_main -I ..\User\Loopback -I ..\User\ioLibrary_Driver\Internet\DHCP -I ..\User\ioLibrary_Driver\Ethernet\W5500 -I ..\User\ioLibrary_Driver\Ethernet -I ..\User\ioLibrary_Driver\Application\loopback -I ..\User\ioLibrary_Driver\Application\multicast
@ -341,7 +335,7 @@ I (C:\Keil_v5\ARM\ARMCC\include\string.h)(0x5F63878A)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x69F98678)
I (C:\Keil_v5\ARM\ARMCC\include\stdbool.h)(0x5F63877C)
I (C:\Keil_v5\ARM\ARMCC\include\stdbool.h)(0x5F63877C)
I (C:\Keil_v5\ARM\ARMCC\include\stdio.h)(0x5F63877C)
I (../Driver_RF433/Inc/rf433_hal.h)(0x69F98677)
F (../Core/Src/stm32f1xx_it.c)(0x69F98677)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../Middlewares/u8g2Lib/inc -I ../Middlewares/MultMenu/application -I ../Middlewares/MultMenu/disp -I ../Middlewares/MultMenu/menu -I ../Driver_RF433 -I ../Driver_RF433/Inc -I ../Driver_RF433/Src -I ..\User\wiz_platform -I ..\User\wiz_interface -I ..\User\user_main -I ..\User\Loopback -I ..\User\ioLibrary_Driver\Internet\DHCP -I ..\User\ioLibrary_Driver\Ethernet\W5500 -I ..\User\ioLibrary_Driver\Ethernet -I ..\User\ioLibrary_Driver\Application\loopback -I ..\User\ioLibrary_Driver\Application\multicast
@ -349,7 +343,7 @@ I (../Core/Inc/uart2_print.h)(0x69F98677)
-I.\RTE\_project
-IC:\Users\xtell\AppData\Local\Arm\Packs\ARM\CMSIS\6.2.0\CMSIS\Core\Include
-IC:\Users\xtell\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include
-D__UVISION_VERSION="543" -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB
@ -386,7 +380,7 @@ I (C:\Keil_v5\ARM\ARMCC\include\stdint.h)(0x5F63877C)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x69F98678)
I (C:\Keil_v5\ARM\ARMCC\include\stdbool.h)(0x5F63877C)
I (C:\Keil_v5\ARM\ARMCC\include\stdio.h)(0x5F63877C)
I (../Core/Inc/stm32f1xx_it.h)(0x69F98677)
I (../Core/Inc/stm32f1xx_it.h)(0x69F98677)
F (../Core/Src/stm32f1xx_hal_msp.c)(0x69F98677)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../Middlewares/u8g2Lib/inc -I ../Middlewares/MultMenu/application -I ../Middlewares/MultMenu/disp -I ../Middlewares/MultMenu/menu -I ../Driver_RF433 -I ../Driver_RF433/Inc -I ../Driver_RF433/Src -I ..\User\wiz_platform -I ..\User\wiz_interface -I ..\User\user_main -I ..\User\Loopback -I ..\User\ioLibrary_Driver\Internet\DHCP -I ..\User\ioLibrary_Driver\Ethernet\W5500 -I ..\User\ioLibrary_Driver\Ethernet -I ..\User\ioLibrary_Driver\Application\loopback -I ..\User\ioLibrary_Driver\Application\multicast
-I.\RTE\_project
@ -421,7 +415,7 @@ I (C:\Keil_v5\ARM\ARMCC\include\stdint.h)(0x5F63877C)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash_ex.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash_ex.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x69F98678)
@ -458,7 +452,7 @@ I (C:\Keil_v5\ARM\ARMCC\include\stdint.h)(0x5F63877C)
-IC:\Users\xtell\AppData\Local\Arm\Packs\ARM\CMSIS\6.2.0\CMSIS\Core\Include
-IC:\Users\xtell\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include
-D__UVISION_VERSION="543" -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB
-o project\io_monitor.o --omf_browse project\io_monitor.crf --depend project\io_monitor.d)
@ -506,7 +500,7 @@ I (C:\Keil_v5\ARM\ARMCC\include\string.h)(0x5F63878A)
-IC:\Users\xtell\AppData\Local\Arm\Packs\ARM\CMSIS\6.2.0\CMSIS\Core\Include
-IC:\Users\xtell\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include
-IC:\Users\xtell\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include
-D__UVISION_VERSION="543" -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB
@ -539,7 +533,7 @@ I (../Core/Inc/multi_uart_router.h)(0x69F98677)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash_ex.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x69F98678)
@ -578,7 +572,7 @@ I (C:\Keil_v5\ARM\ARMCC\include\stdbool.h)(0x5F63877C)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc_ex.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio_ex.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_exti.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_exti.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h)(0x69F98678)
@ -620,7 +614,7 @@ I (C:\Keil_v5\ARM\ARMCC\include\stdarg.h)(0x5F63877C)
I (../Drivers/CMSIS/Include/cmsis_compiler.h)(0x69F98678)
I (../Drivers/CMSIS/Include/cmsis_armcc.h)(0x69F98678)
I (../Drivers/CMSIS/Device/ST/STM32F1xx/Include/system_stm32f1xx.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h)(0x69F98678)
I (C:\Keil_v5\ARM\ARMCC\include\stddef.h)(0x5F63877C)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc_ex.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h)(0x69F98678)
@ -1115,7 +1109,7 @@ I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio_ex.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_exti.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash_ex.h)(0x69F98678)
@ -1154,7 +1148,7 @@ F (..\Driver_RF433\Src\rf433_hal.c)(0x69F98677)(--c99 -c --cpu Cortex-M3 -D__MIC
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio_ex.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_exti.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash_ex.h)(0x69F98678)
@ -1193,7 +1187,7 @@ I (..\User\wiz_platform\wiz_platform.h)(0x69F98681)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio_ex.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_exti.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash_ex.h)(0x69F98678)
@ -1243,7 +1237,7 @@ I (..\User\ioLibrary_Driver\Ethernet\W5500/w5500.h)(0x69F98681)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x69F98678)
F (../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.c)(0x69F98678)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../Middlewares/u8g2Lib/inc -I ../Middlewares/MultMenu/application -I ../Middlewares/MultMenu/disp -I ../Middlewares/MultMenu/menu -I ../Driver_RF433 -I ../Driver_RF433/Inc -I ../Driver_RF433/Src -I ..\User\wiz_platform -I ..\User\wiz_interface -I ..\User\user_main -I ..\User\Loopback -I ..\User\ioLibrary_Driver\Internet\DHCP -I ..\User\ioLibrary_Driver\Ethernet\W5500 -I ..\User\ioLibrary_Driver\Ethernet -I ..\User\ioLibrary_Driver\Application\loopback -I ..\User\ioLibrary_Driver\Application\multicast
-I.\RTE\_project
-I.\RTE\_project
-IC:\Users\xtell\AppData\Local\Arm\Packs\ARM\CMSIS\6.2.0\CMSIS\Core\Include
@ -1253,7 +1247,7 @@ I (..\User\ioLibrary_Driver\Ethernet\W5500/w5500.h)(0x69F98681)
-o project\stm32f1xx_hal_flash_ex.o --omf_browse project\stm32f1xx_hal_flash_ex.crf --depend project\stm32f1xx_hal_flash_ex.d)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x69F98678)
I (../Core/Inc/stm32f1xx_hal_conf.h)(0x69F98677)
I (../Core/Inc/stm32f1xx_hal_conf.h)(0x69F98677)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h)(0x69F98678)
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h)(0x69F98678)
I (../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h)(0x69F98678)

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -4,7 +4,7 @@
#include "wizchip_conf.h"
/* 【新增】引入多串口路由模块 */
#include "multi_uart_router.h"
#include "main.h"
#if LOOPBACK_MODE == LOOPBACK_MAIN_NOBLCOK
/**
@ -245,18 +245,22 @@ int32_t loopback_udps(uint8_t sn, uint8_t *buf, uint16_t port)
}
size = (uint16_t)ret;
/* ========================================================== *
/* :只在数据前加一个 [NET] 标识,直接透传 */
uint8_t tx_buf[2048]; // 申请一个足够大的临时数组存放拼接后的数据
/* ========================================================== *
/* 🚀 核心修改:网络数据透传时,加上 [0xAA] 和设备 ID */
uint8_t tx_buf[2048];
// 1. 先把网络标识 "[NET]" 写进数组头部tag_len 会自动等于 5
int tag_len = sprintf((char*)tx_buf, "[NET]");
// 1. 添加统一的空中协议头 (0xAA + ID)
tx_buf[0] = 0xAA;
tx_buf[1] = MY_DEVICE_ID;
// 2. 把网络收到的真实数据 (buf) 紧挨着标识拼接到后面
memcpy(tx_buf + tag_len, buf, size);
// 2. 把网络标识 "[NET]" 写进数组,注意要从第 2 个字节开始写
int tag_len = sprintf((char*)&tx_buf[2], "[NET]");
// 3. 把拼接好的整串数据直接发给 RF433
MultiUART_Send(PORT_UART1, tx_buf, tag_len + size);
// 3. 把网络收到的真实数据 (buf) 紧挨着拼接到后面
memcpy(&tx_buf[2 + tag_len], buf, size);
// 4. 把拼接好的整串数据 (头 + ID + [NET] + 数据) 发给 RF433
MultiUART_Send(PORT_UART1, tx_buf, 2 + tag_len + size);
/* ========================================================== */
sentsize = 0;
while (sentsize != size)