Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Neyzoter committed Jun 20, 2019
1 parent f72485c commit 3b71032
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion HARDWARE/WIFI/userwifi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down
13 changes: 12 additions & 1 deletion USER/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit 3b71032

Please sign in to comment.