备份 丢包率测试
This commit is contained in:
parent
9e357c0254
commit
c42d39ab47
|
@ -145,7 +145,7 @@
|
|||
<SetRegEntry>
|
||||
<Number>0</Number>
|
||||
<Key>ST-LINKIII-KEIL_SWO</Key>
|
||||
<Name>-U420014000D0000504A51544E -O2254 -SF1800 -C0 -A0 -I0 -HNlocalhost -HP7184 -P1 -N00("ARM CoreSight SW-DP (ARM Core") -D00(2BA01477) -L00(0) -TO131090 -TC10000000 -TT10000000 -TP21 -TDS8000 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO7 -FD20000000 -FC800 -FN1 -FF0STM32F4xx_1024.FLM -FS08000000 -FL0100000 -FP0($$Device:STM32F407VGTx$CMSIS\Flash\STM32F4xx_1024.FLM)</Name>
|
||||
<Name>-UB -O2254 -SF1800 -C0 -A0 -I0 -HNlocalhost -HP7184 -P1 -N00("ARM CoreSight SW-DP (ARM Core") -D00(2BA01477) -L00(0) -TO131090 -TC10000000 -TT10000000 -TP21 -TDS8000 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO7 -FD20000000 -FC800 -FN1 -FF0STM32F4xx_1024.FLM -FS08000000 -FL0100000 -FP0($$Device:STM32F407VGTx$CMSIS\Flash\STM32F4xx_1024.FLM)</Name>
|
||||
</SetRegEntry>
|
||||
</TargetDriverDllRegistry>
|
||||
<Breakpoint/>
|
||||
|
|
|
@ -22,12 +22,6 @@ static err_t tcpecho_recv(void *arg, struct tcp_pcb *tpcb, struct pbuf *p, err_t
|
|||
tcp_echo_flags = 1;
|
||||
tcp_recved(tpcb, p->tot_len); // 读取数据的控制块 得到所有数据的长度
|
||||
memcpy(&server_pcb1, &tpcb, sizeof(struct tcp_pcb *));
|
||||
/* 返回接收到的数据*/
|
||||
// tcp_write(tpcb, p->payload, p->tot_len, 1);
|
||||
|
||||
// uint8_t send_buf1[] = "I recevice your data:";
|
||||
// tcp_write(tpcb, send_buf1, sizeof(send_buf1), 1);
|
||||
// tcp_write(tpcb, p->payload, p->tot_len, 1);
|
||||
#if 0
|
||||
memcpy(hart2_uart2.tx_data, (int *)p->payload, p->tot_len);
|
||||
HART2_RTS_SEND;
|
||||
|
@ -37,7 +31,7 @@ static err_t tcpecho_recv(void *arg, struct tcp_pcb *tpcb, struct pbuf *p, err_t
|
|||
#if 1
|
||||
memcpy(hart1_uart5.tx_data, (int *)p->payload, p->tot_len);
|
||||
HART1_RTS_SEND;
|
||||
HAL_UART_Transmit(&huart5, hart1_uart5.tx_data, p->tot_len, 1000);
|
||||
HAL_UART_Transmit(&huart5, hart1_uart5.tx_data, p->tot_len, 100);
|
||||
HART1_RTS_RECEIVE;
|
||||
#endif
|
||||
#if 0
|
||||
|
|
Loading…
Reference in New Issue