wireless mode

3.11  item1 : AP mode 
 
 1.  Keep DUT WAN port connect to internet. 
 
 2.  Prepare 2 wireless client. 
 
 3.  Click on "General  Setup" -> "Wireless"  -> "Basic Settings" 
 

4.  Select "Access  Point" in the Mode Dropdown list. -> Click on  "Apply" -> "Apply" to reboot DUT 

 

5.  Two wireless clients will survey DUT's SSID and connect to it. 

 

6.  Verify 2 wireless clients can ping each other successfully. 

 

7.  Verify 2 wireless clients can connect to  internet through DUT. 

 

8.  Click on " Show Active Clients "  in the Associated Clients  

 

9.  Verify the pop-up "Active Wireless  Client Table" panel

 
 10. Verify the table  displays client's AID, MAC address, 802.11 PhyMode,  Power Save and BandWidth information. 
    
 
  
  
   
3.11  item2 : Station-Infrastructure   
      
 
 
 
 1.  Prepare one router and the model different  to DUT. 
 

2.  In Router, Set router is DHCP server  connect to internet and the router IP addressing scheme different to DUT. 

 
  EX:DUT IP server range is 192.168.2.100 to 192.168.2.200
 
 Router IP server range is 10.30.40.100 to 10.30.40.200 
 
 3.  In DUT, Click on "General Setup" -> "Wireless" ->  "Basic Settings" 
 
 Select Station(infrastructure)  in the Mode. 
 
  Click on "Site  Survey" to select the router -> Click on "Apply" -> "Apply" 
 
  Disable DHCP  server in DUT. 
 
 4.  Connect Client's Ethernet network card to  DUT's lan port by wired. 
 
  Input "ipconfig  /release" in the DOS command mode 
 
 Input "ipconfig  /renew" in the DOS command mode 
 
  Verify Client's ethernet network card  gets an IP address like as 10.30.40.100 from the router through DUT. 
 
 
   
  
   
   

3.11  item3 : AP bridge mode (point to point)

   
      
 
 
 
1.  Prepare 2 the same  DUT(SSID is DUT1,DUT2).  
 
 2.  Connect DUT1 to internet and configure DUT1  as below. 
 
 Set wireless mode to AP Bridge (point to point), wireless band to 2.4 GHz(B+G+N), channel number to 1, security to disable, 20  MHz channel width. 
 
 Input DUT2's MAC  address in MAC address 1 column . 
 
 3.  Disable  DUT2 DHCP server. 
 

4.  In DUT2, Configure DUT2 settings the same  as DUT1. (AP Bridge- Point to Point, 2.4 GHz(B+G+N), channel 1, 20 MHZ) 

 

 Input DUT1's MAC  address in MAC address 1 column .

 
 
5.  Verify DUT2 can connet to internet through  DUT1. 
 
 6.  The other wireless client can not find  both. 
 
 7.  Repeat step1) to step6), but change  encryption to WEP. 
 
 8.  Repeat step1) to step6), but change  encryption to WPA-PSK/TKIP. 
 
 9.  Repeat step1) to step6), but change  encryption to WPA2-PSK/AES. 
 
 

 

3.11  item4 : AP bridge mode (point to  multi-point) 

 
 1.  Prepare 2 the same  DUT(SSID is DUT1,DUT2).  
 
 2.  Connect DUT1 to internet and configure DUT1  as below. 
 
 Set wireless mode to AP Bridge-Point to Multi-Point, wireless band to 2.4 GHz(B+G+N), channel number to 1, security to disable, 20  MHz channel width. 
 
 Input DUT2's MAC  address in MAC address 1 column . 
 
 3.  Disable  DUT2 DHCP server. 
 
 4.  In DUT2, Configure DUT2 settings the same  as DUT1. (AP Bridge-Point to Multi-Point, 2.4 GHz(B+G+N), channel 1, 20 MHZ) 
 
  Input DUT1's MAC  address in MAC address 1 column . 
 
 5.  Verify DUT2 can connet to internet through  DUT1. 
 
 6.  Wireless client can not find two DUT. 
 
 7.  Repeat step1) to step6), but change  encryption to WEP. 
 
 8.  Repeat step1) to step6), but change  encryption to WPA-PSK/TKIP. 
 
 9.  Repeat step1) to step6), but change  encryption to WPA2-PSK/AES. 
 
 10. Repeat above all  nine steps, test other fill location of MAC address likes as MAC Address2,  MAC Address3 and MAC Address4 to make sure that all MAC address columns are  worked . 
 
 
 

3.11  item5 : AP bridge mode (WDS)

 
 
1.  Prepare 2 the same  DUT(SSID is DUT1,DUT2).  
 
 2.  Connect DUT1 to internet and configure DUT1  as below. 
 
 Set wireless mode to AP Bridge-WDS, wireless band to 2.4 GHz(B+G+N), channel number to 1, security to disable, 20  MHz channel width. 
 
 Input DUT2's MAC  address in MAC address 1 column . 
 
 3.  Disable  DUT2 DHCP server. 
 
 4.  In DUT2, Configure DUT2 settings the same  as DUT1. (AP Bridge-WDS, 2.4 GHz(B+G+N), channel 1, 20 MHZ) 
 
 Input DUT1's MAC  address in MAC address 1 column . 
 
 5.  Verify DUT2 can connet to internet through  DUT1. 
 
 6.  Wireless client find two DUT and connect to  DUT2 will get IP from DUT1 to connect to internet. 
 
 7.  Repeat step1) to step6), but change  encryption to WEP. 
 
 8.  Repeat step1) to step6), but change encryption  to WPA-PSK/TKIP. 
 
 9.  Repeat step1) to step6), but change  encryption to WPA2-PSK/AES. 
 
 10.  Repeat above all nine steps, test other  fill location of MAC address likes as MAC Address2, MAC Address3 and MAC  Address4 to make sure that all MAC address columns are worked . 
 
 11. Click on " Show Active Clients " in Associated Clients  
 
 12. Verify the pop-up  "Active Wireless Client Table" panel 
 
 13. Verify the table  displays client's AID, MAC address, 802.11 PhyMode,  Power Save and BandWidth information. 
 
 
 

3.11  item6 : Universal repeater mode

 
 
1.  Prepare a router and a wireless client. 
 
Keep the router connect to internet. 
 
 2.  Enable DHCP server in router. 
 
 3.  Set DUT LAN IP address within router DHCP  IP addressing scheme. 
 
 yioDisable DUT's DHCP server. 
 
 4.  In DUT Web GUI, Click on "General  Setup" -> "Wireless"  
 
  Select "Universal  Repeater" in the mode dropdown lsit. 
 
  Click on "Site  Survey" to select the router. 
 
 Set DUT wireless channel number the same  as the router wireless channel number. 
 
 Set DUT wireless band same as the router  wireless band. 
 
 Click on "Apply" to reboot DUT 
 
 5.  Verify Wireless client can survey DUT and  connect to it. 
 
 Verify Wireless client gets an IP  address from the router through DUT. 
 
 Verify Wireless client connects to  internet through DUT and the router. 
 
 6.  Ethernet network card connect to DUT by  wired. 
 
 Wired client gets an IP address from the  router through DUT. 
 
 Wired client connect to internet through  DUT and the router. 
 
7.  Repeat step1) to step6), but change  encryption to WEP. 
 
 8.  Repeat step1) to step6), but change  encryption to WPA-PSK/TKIP. 
 
 9.  Repeat step1) to step6), but change  encryption to WPA2-PSK/AES. 
 
 10. Click on " Show Active Clients " in Associated Clients  
 
 11. Verify the pop-up  "Active Wireless Client Table" panel 
 12. Verify the table  displays client's AID, MAC address, 802.11 PhyMode,  Power Save and BandWidth information. 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
这段代码是一个名为`Work_State`的函数,它没有任何输入参数和返回值。让我们逐行分析代码: 1. `if (Show.mode != MODE_SET_ONLINE && Show.mode != MODE_SET_TX && Show.mode != MODE_SET_RX)`:这是一个条件语句,检查`Show.mode`的值是否不等于`MODE_SET_ONLINE`、`MODE_SET_TX`和`MODE_SET_RX`。如果条件为真,将执行`Show_Duty()`函数。 2. `switch (Show.mode)`:这是一个`switch`语句,根据`Show.mode`的值执行不同的代码块。 3. `case MODE_SET_ONLINE:`:如果`Show.mode`的值等于`MODE_SET_ONLINE`,将执行紧随其后的代码块。在这个模式下,会进行一系列操作,包括处理HID数据、发送CDC数据、接收UART数据等。 4. `case MODE_SET_OFFLINE:`:如果`Show.mode`的值等于`MODE_SET_OFFLINE`,将执行紧随其后的代码块。在这个模式下,会选择离线模式、选择文件并进行自动烧录操作。 5. `case MODE_SET_ALGO:`:如果`Show.mode`的值等于`MODE_SET_ALGO`,将执行紧随其后的代码块。在这个模式下,可以选择烧录算法(目标芯片)。 6. `case MODE_SET_FILE:`:如果`Show.mode`的值等于`MODE_SET_FILE`,将执行紧随其后的代码块。在这个模式下,可以选择下载文件。 7. `case MODE_SET_WIRELESS:`:如果`Show.mode`的值等于`MODE_SET_WIRELESS`,将执行紧随其后的代码块。在这个模式下,可以选择无线模式。 8. `case MODE_SET_TX:`:如果`Show.mode`的值等于`MODE_SET_TX`,将执行紧随其后的代码块。在这个模式下,会接收UART数据并处理无线发射端操作。 9. `case MODE_SET_RX:`:如果`Show.mode`的值等于`MODE_SET_RX`,将执行紧随其后的代码块。在这个模式下,会接收UART数据并处理无线接收端操作。 10. `default:`:如果`Show.mode`的值不匹配上述任何一个模式,将执行紧随其后的代码块。在这个例子中,代码块为空。 总体来说,这段代码根据`Show.mode`的值执行不同的操作。不同模式下会执行不同的功能,如处理数据、发送数据、接收数据等。具体的操作细节需要根据具体的业务逻辑和代码实现来分析。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值