Wi-Fi Cli命令指南 ==================================================== 为方便客户快速了解SDK以及开发调试,SDK集成了一些Wi-Fi基本操作指令 代码路径 ------------------------------------------------------ ``beken378\func\wlan_ui\wlan_cli.c`` cli命令简介 ------------------------------------------------------ SDK支持的Wi-Fi相关的cli命令如下表: +-----------------------------------------------------+--------------------------+------------------------------+ | Command | Param | Description | +=====================================================+==========================+==============================+ | | param1: ssid | 目标路由器 | | sta: sta [ssid] [password] +--------------------------+------------------------------+ | | param2: password | 目标路由器密码 | +-----------------------------------------------------+--------------------------+------------------------------+ | | param1: ssid | 自定义热点名称 | | +--------------------------+------------------------------+ | ap: ap ssid [password] | param2: password | 自定义热点密码 | +-----------------------------------------------------+--------------------------+------------------------------+ | scan: scan | 无 | 扫描附近所有热点 | +-----------------------------------------------------+--------------------------+------------------------------+ | | param1: ip | 目标主机IP地址 | | ping: ping [ip] [count] +--------------------------+------------------------------+ | | param2: count | Ping包数量 | +-----------------------------------------------------+--------------------------+------------------------------+ | wifistate: wifistate - show STA/AP state | 无 | 显示当前Station/SoftAP状态 | +-----------------------------------------------------+--------------------------+------------------------------+ | ifconfig: ip - show STA/AP ip | 无 | 显示当前Station网络连接参数 | +-----------------------------------------------------+--------------------------+------------------------------+ | stopintf: stop {sta|ap} intfacename | 1:sta 0:ap | 停止当前Station/SoftAP | +-----------------------------------------------------+--------------------------+------------------------------+ | | -s | DUT作为Server | | +--------------------------+------------------------------+ | iperf: iperf [-s|-c|-stop] | -c -u | DUT作为Client, -u表示UDP | | +--------------------------+------------------------------+ | | -stop | 停止 | +-----------------------------------------------------+--------------------------+------------------------------+