<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[【新人上手】D1哪吒开发板Tina Linux 下WiFi的连接]]></title><description><![CDATA[<p dir="auto">16、<strong>查看wifi规格</strong></p>
<p dir="auto">支持2.4G wifi，支持13个工作信道（Channel1－13），提供wifi扫描命令，可搜索到附件的wifi list。</p>
<p dir="auto">执行：</p>
<pre><code>wifi_scan_results_test
</code></pre>
<p dir="auto">可以看到：</p>
<pre><code>root@TinaLinux:/# wifi_scan_results_test

*********************************
***Start scan!***
*********************************
bssid / frequency / signal level / flags / ssid
0e:e0:df:1e:6a:36       2472    -39     [WPA2-PSK-CCMP][ESS]    RANDOLPH
******************************
Wifi get_scan_results: Success!
******************************
</code></pre>
<p dir="auto">17、<strong>station模式</strong></p>
<p dir="auto">开机时如检测到曾经连接过wifi，则自动连接上一此连接的wifi。</p>
<p dir="auto">执行：</p>
<pre><code>wifi_connect_ap_test &lt;ssid&gt; &lt;psk&gt;
</code></pre>
<p dir="auto">可见：</p>
<pre><code>root@TinaLinux:/# wifi_connect_ap_test  RANDOLPH xxxxxxxx
==================================
Connected to the AP(RANDOLPH)
Getting ip address(RANDOLPH)......
auto connected Successful  !!!!
==================================
Connecting to the network(RANDOLPH)......
sh: odhcp6c: not found
[   84.050715] wlan0: deauthenticating from 0e:e0:df:1e:6a:36 by local choice (reason=3)
[   84.085703] [WSM_WRN] Issue unjoin command(TX).
[   84.092916] [WSM_WRN] STA mode, send_deauth_to_self
[   84.098429] [TXRX_WRN] Issue unjoin command(TX) by self.
[   85.775478] wlan0: authenticate with 0e:e0:df:1e:6a:36 (try 1)
[   85.782532] [STA_WRN] [HT40][xradio_join_work][bss_ht_info]:
[   85.782532] [primary_chan  :0x0000000d]
[   85.782532] [ht_param      :0x00000000]
[   85.782532] [operation_mode:0x00000000]
[   85.782532] [stbc_param    :0x00000000]
[   85.782532] [basic_set[0]  :0x00000000]
[   85.810406] [STA_WRN] [HT40][xradio_join_work][PhyModeCfg:0x0007]
[   85.810406] [ModemFlags    :0x00000007]
[   85.810406] [ChWidthCfg    :0x00000000]
[   85.810406] [PriChCfg      :0x00000000]
[   85.810406] [BandCfg       :0x00000000]
[   85.810406] [STBC_Enable   :0x00000000]
[   85.810406] [PreambleCfg   :0x00000000]
[   85.810406] [SGI_Enable    :0x00000000]
[   85.810406] GF_Enable      :0x00000000]
[   85.867864] wlan0: authenticated
[   85.872260] wlan0: associate with 0e:e0:df:1e:6a:36 (try 1)
[   85.886562] wlan0: RX AssocResp from 0e:e0:df:1e:6a:36 (capab=0x411 status=0 aid=1)
[   85.895310] wlan0: associated
[   85.904359] [AP_WRN] arp_addr_cnt not clear at disconnecting,filter abnormal enable!!!
[   85.914312] [AP_WRN] [STA] ASSOC HTCAP 11N 58
[   85.919277] [AP_WRN] [HT40][xradio_bss_info_changed][ht_prot:0x00000000][HtProtMode:0x0000][Green:0x0000]
[   85.919673] [AP_WRN] [HT40][xradio_bss_info_changed][PhyModeCfg:0xd007]
[   85.919673] [ModemFlags    :0x00000007]
[   85.919673] [ChWidthCfg    :0x00000000]
[   85.919673] [PriChCfg      :0x00000000]
[   85.919673] [BandCfg       :0x00000000]
[   85.919673] [STBC_Enable   :0x00000000]
[   85.919673] [PreambleCfg   :0x00000001]
[   85.919673] [SGI_Enable    :0x00000001]
[   85.919673] [GF_Enable     :0x00000001]
Connected to the AP(RANDOLPH)
Getting ip address(RANDOLPH)......
Wifi connect ap : Success!
==================================

</code></pre>
<p dir="auto">可以ping百度验证：</p>
<pre><code>root@TinaLinux:/# ping baidu.com
PING baidu.com (220.181.38.148): 56 data bytes
64 bytes from 220.181.38.148: seq=0 ttl=50 time=84.309 ms
64 bytes from 220.181.38.148: seq=1 ttl=50 time=75.818 ms
64 bytes from 220.181.38.148: seq=2 ttl=50 time=69.916 ms
64 bytes from 220.181.38.148: seq=3 ttl=50 time=71.139 ms
64 bytes from 220.181.38.148: seq=4 ttl=50 time=102.807 ms
^C
--- baidu.com ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 69.916/80.797/102.807 ms
</code></pre>
<p dir="auto">18、<strong>Softap模式</strong></p>
<p dir="auto">支持softap模式，提供softap模式demo，开启后可被其他设备连入。</p>
<p dir="auto">执行：</p>
<pre><code>softap_up &lt;ssid&gt; &lt;pwd&gt; &lt;broadcast/hidden&gt;
softap_down
</code></pre>
<p dir="auto">可见</p>
<pre><code>root@TinaLinux:/# softap_up nezha 12345678 broadcast
***************************
Start hostapd test!
***************************
wpa2-psk!
Start to set softap!
Message is: OK
Set softap finished!
[  433.525126] [TXRX_WRN] drop=1771, fctl=0x00d0.
[  433.552706] wlan0: deauthenticating from 0e:e0:df:1e:6a:36 by local choice (reason=3)
[  433.589037] [WSM_WRN] Issue unjoin command(TX).
[  433.599152] [WSM_WRN] STA mode, send_deauth_to_self
[  433.604623] [TXRX_WRN] Issue unjoin command(TX) by self.
[  433.678548] [STA_WRN] !!! xradio_remove_interface: vif_id=0
[  435.741366] ieee80211_do_open: vif_type=2, p2p=0, ch=3, addr=40:3f:ea:5e:f0:32
[  435.758671] [STA] !!!xradio_vif_setup: id=0, type=2, p2p=0, addr=40:3f:ea:5e:f0:32
[  435.784698] [AP_WRN] BSS_CHANGED_ASSOC but driver is unjoined.
Start to start softap!
SoftAP started successfullyHaving catch sig_chld!
Message is: OK
Start softap finished!
</code></pre>
<p dir="auto">打开手机wifi可见：</p>
<p dir="auto"></p>
<p dir="auto">关闭则执行：</p>
<pre><code>softap_down
</code></pre>
<p dir="auto">注意：是无法访问网络的。</p>
<p dir="auto">19、<strong>自动搜索</strong></p>
<p dir="auto">已连接ap后，会自动搜索保存的列表，重启后自动连接。</p>
<p dir="auto">20、<strong>信号强度获取</strong></p>
<p dir="auto">同16条，结果中可见。</p>
]]></description><link>https://bbs.aw-ol.com/topic/841/新人上手-d1哪吒开发板tina-linux-下wifi的连接</link><generator>RSS for Node</generator><lastBuildDate>Tue, 19 May 2026 18:39:04 GMT</lastBuildDate><atom:link href="https://bbs.aw-ol.com/topic/841.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 23 Dec 2021 05:48:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 【新人上手】D1哪吒开发板Tina Linux 下WiFi的连接 on Tue, 30 Aug 2022 03:54:06 GMT]]></title><description><![CDATA[<p dir="auto">为啥没有softap这个东东</p>
]]></description><link>https://bbs.aw-ol.com/post/9936</link><guid isPermaLink="true">https://bbs.aw-ol.com/post/9936</guid><dc:creator><![CDATA[luciferseva]]></dc:creator><pubDate>Tue, 30 Aug 2022 03:54:06 GMT</pubDate></item></channel></rss>