取消打印数据
This commit is contained in:
@@ -210,7 +210,7 @@ void WCHNET_UdpServerRecv1(struct _SCOK_INF *socinf, u32 ipaddr, u16 port, u8 *b
|
|||||||
if( (0x80 == buf[0]) && (0x00 == buf[1]) )
|
if( (0x80 == buf[0]) && (0x00 == buf[1]) )
|
||||||
{
|
{
|
||||||
memcpy((uint8_t *)&(un_request_frame.arr[0]),buf, sizeof(UnRequestFrame));
|
memcpy((uint8_t *)&(un_request_frame.arr[0]),buf, sizeof(UnRequestFrame));
|
||||||
printf("read_id = %d \r\n",request_read_id);
|
// printf("read_id = %d \r\n",request_read_id);
|
||||||
//20250412 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
|
//20250412 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
|
||||||
for (uint8_t i = 0; i < 4; i++)
|
for (uint8_t i = 0; i < 4; i++)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -393,7 +393,7 @@ void initUart(void)
|
|||||||
NVIC_Init(&NVIC_InitStructure);
|
NVIC_Init(&NVIC_InitStructure);
|
||||||
USART_Cmd(UART6, ENABLE);
|
USART_Cmd(UART6, ENABLE);
|
||||||
|
|
||||||
/* UART7 TX-->C.2 RX-->C.3 *///???982??com2
|
/* UART7 TX-->C.2 RX-->C.3 *///???982??com2 <20><>ȡGGA<47><41><EFBFBD><EFBFBD>
|
||||||
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_2;
|
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_2;
|
||||||
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
|
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
|
||||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_PP;
|
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_PP;
|
||||||
|
|||||||
@@ -309,7 +309,7 @@ void OnParamSignal(void *data)
|
|||||||
uint16_t request_id = ((uint16_t)datagram[7] << 8) | (uint16_t)datagram[8];// 大端模式
|
uint16_t request_id = ((uint16_t)datagram[7] << 8) | (uint16_t)datagram[8];// 大端模式
|
||||||
|
|
||||||
// 调试输出
|
// 调试输出
|
||||||
printf("Received request ID: 0x%04X\n", request_id);
|
// printf("Received request ID: 0x%04X\n", request_id);
|
||||||
|
|
||||||
// 计算CRC
|
// 计算CRC
|
||||||
uint8_t calculatedCrc = calculateCRC(datagram, sizeof(UnParamRequest) - 1);
|
uint8_t calculatedCrc = calculateCRC(datagram, sizeof(UnParamRequest) - 1);
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ static void requestInput(void *signal_id)
|
|||||||
if(signal_id == &un_request_frame)
|
if(signal_id == &un_request_frame)
|
||||||
{
|
{
|
||||||
processRequestframe(REQUEST_READ_ID);
|
processRequestframe(REQUEST_READ_ID);
|
||||||
printf("request ID");
|
// printf("request ID");
|
||||||
}
|
}
|
||||||
else{}
|
else{}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user