Part 1
요약·해설
공식 scan 결과 4개와 connect transcript를 SSID·RSSI·channel 값까지 보존합니다.
Scan · Connect · Disconnect
CC3220SF
WPA/WPA2
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
5087F8A4570C7BE2C739D50286346013D84E45786738C51F745E250409FB41B6
.. zephyr:code-sample:: wifi-shell
:name: Wi-Fi shell
:relevant-api: net_stats
Test Wi-Fi functionality using the Wi-Fi shell module.
Overview
********
This sample allows testing Wi-Fi drivers for various boards by
enabling the Wi-Fi shell module that provides a set of commands:
scan, connect, and disconnect. It also enables the net_shell module
to verify net_if settings.
Building and Running
********************
Verify the board and chip you are targeting provide Wi-Fi support.
For instance you can use TI's CC3220 by selecting the cc3220sf_launchxl board.
.. zephyr-app-commands::
:zephyr-app: samples/net/wifi
:board: cc3220sf_launchxl
:goals: build
:compact:
Sample console interaction
==========================
.. code-block:: console
shell> wifi scan
Scan requested
shell>
Num | SSID (len) | Chan | RSSI | Sec
1 | kapoueh! 8 | 1 | -93 | WPA/WPA2
2 | mooooooh 8 | 6 | -89 | WPA/WPA2
3 | Ap-foo blob.. 13 | 11 | -73 | WPA/WPA2
4 | gksu 4 | 1 | -26 | WPA/WPA2
----------
Scan request done
shell> wifi connect "gksu" 4 SecretStuff
Connection requested
shell>
Connected
shell>
Part 3
한국어 전문 번역
개요
이 sample은 scan, connect, disconnect command set을 제공하는 Wi-Fi shell module을 활성화하여 여러 board의 Wi-Fi driver를 시험할 수 있게 합니다.
또한 net_if 설정을 확인할 수 있도록 net_shell module도 활성화합니다.
빌드 및 실행
대상 board와 chip이 Wi-Fi를 지원하는지 확인합니다.
예를 들어 cc3220sf_launchxl board를 선택하여 TI CC3220을 사용할 수 있습니다.
west build -b cc3220sf_launchxl samples/net/wifi
Sample console interaction
다음 transcript는 Wi-Fi network를 scan하여 SSID, length, channel, RSSI와 security type을 표시한 뒤 gksu network에 연결하는 예입니다.
shell> wifi scan
Scan requested
shell>
Num | SSID (len) | Chan | RSSI | Sec
1 | kapoueh! 8 | 1 | -93 | WPA/WPA2
2 | mooooooh 8 | 6 | -89 | WPA/WPA2
3 | Ap-foo blob.. 13 | 11 | -73 | WPA/WPA2
4 | gksu 4 | 1 | -26 | WPA/WPA2
----------
Scan request done
shell> wifi connect "gksu" 4 SecretStuff
Connection requested
shell>
Connected
shell>
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.