diff --git a/HARDWARE/WIFI/userwifi.c b/HARDWARE/WIFI/userwifi.c index 3ddd984..bcb549a 100644 --- a/HARDWARE/WIFI/userwifi.c +++ b/HARDWARE/WIFI/userwifi.c @@ -25,7 +25,7 @@ u8 Time_Sync_Flag = 0; //最近时钟是否同步 volatile u8 Wifi_Send_EN = 0; //数据采集和发送使能,是CAN和ADC采集的总开关 u8 CAN_Get_EN = CAN1_ENABLE_BIT_SLC|CAN2_ENABLE_BIT_SLC; //CAN数据发送使能(第0位使能can1,第1位使能can2),默认开启(必须满足Wifi_Send_EN=1,才能采集) -u8 ADC_Get_EN = 1; //ADC数据采集使能,默认开启(必须满足Wifi_Send_EN=1,才能采集) +u8 ADC_Get_EN = 0; //ADC数据采集使能,默认开启(必须满足Wifi_Send_EN=1,才能采集) Queue adc_queue; //ADC数据存储 Queue can_queue; //can数据存储 u8 localDestIp_txrx[4] = {255,255,255,255}; diff --git a/USER/main.c b/USER/main.c index a64ea95..1275fe3 100644 --- a/USER/main.c +++ b/USER/main.c @@ -121,14 +121,25 @@ void testAdc(void){ delay_ms(1000); #endif } - +/** + * @brief 测试WIFI最快传输速度 + * @param None + * @retval None + */ +u8 data[1500]; +void testMaxWifiSpeed(){ + + rsi_send_ludp_data(localSocketDescriptor_txrx, data,1500, RSI_PROTOCOL_UDP_V4, (uint8 *)localDestIp_txrx, localDestSocket_txrx, &bytes_sent); +} int main(void) { setBoardSta(BOARD_INITING);Initialization();setBoardSta(BOARD_INITED);//初始化系统 setBoardSta(BOARD_RUNNING);//运行中 u8 RspCode;u16 tcpRecvBuffLen;u8 * pRecvData; + memset(data,32,1500); while(1) { +// testMaxWifiSpeed(); if(RSI_WIFI_OPER_MODE == RSI_WIFI_CLIENT_MODE_VAL){ if(IAM_MASTER_CLOCK == 'Y'){ if(sync_interval_time >= SYNC_INTERVAL_TIME&&Wifi_Send_EN){