【米尔MYS-8MMX】米尔MYS-8MMQ6-8E2D-180-C开箱报告三——网络
<div class='showpostmsg'> 本帖最后由 tobot 于 2021-8-9 23:27 编辑<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">米尔</font></span></span><span style="font-size:10.5000pt"><span style="font-family:宋体">MYS-8MMQ6-8E2D-180-C<font face="宋体">缺省是没有开启无线网络的,如果接上鼠标键盘,当然可以直接在系统上配置,但也可以在串口命令行配置,下面以</font><font face="Calibri">WiFi</font><font face="宋体">连接为例进行测评。</font></span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">进入</font>/etc<font face="宋体">目录,查看目录,发现存在</font><font face="Calibri">wpa_supplicant.conf</font><font face="宋体">文件。</font></span></span></span></span></p>
<p align="center" style="text-align:center"> </p>
<p align="center" style="text-align:center"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">图一、</font>/etc<font face="宋体">的目录结构</font></span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">打开看看,发现里面基本没有什么内容。修改一下试试,命令为</font>sudo nano wpa_supplicant.conf<font face="宋体">,修改其中</font><font face="Calibri">network</font><font face="宋体">字段的内容,如下:</font></span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:Calibri">network={</span></span></span></span></p>
<p style="margin-left:28px; text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:Calibri">ssid="</span></span><span style="font-size:10.5000pt"><span style="font-family:宋体">WiFi<font face="宋体">名称</font></span></span><span style="font-size:10.5000pt"><span style="font-family:Calibri">"</span></span></span></span></p>
<p style="margin-left:28px; text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:Calibri">psk="</span></span><span style="font-size:10.5000pt"><span style="font-family:宋体">WiFi<font face="宋体">密码</font></span></span><span style="font-size:10.5000pt"><span style="font-family:Calibri">"</span></span></span></span></p>
<p style="margin-left:28px; text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:Calibri">key_mgmt=WPA-PSK</span></span></span></span></p>
<p style="margin-left:28px; text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:Calibri">priority=1</span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:Calibri">}</span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">再输入</font></span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体">ifconfig wlan0 up</span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">开启</font>wlan0<font face="宋体">接口,这时使用</font><font face="Calibri">ifconfig</font><font face="宋体">命令看到只有发,没有收数据。</font></span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">输入</font></span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:Calibri">wpa_supplicant -Dnl80211</span></span> <span style="font-size:10.5000pt"><span style="font-family:Calibri">-iwlan0 -c</span></span><span style="font-size:10.5000pt"><span style="font-family:宋体">/etc/</span></span><span style="font-size:10.5000pt"><span style="font-family:Calibri">wpa_supplicant.conf </span></span><span style="font-size:10.5000pt"><span style="font-family:宋体">&</span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">把之前的配置导入</font>wlan0<font face="宋体">运行,这时,再使用</font><font face="Calibri">ifconfig</font><font face="宋体">,可以看到</font><font face="Calibri">wlan0</font><font face="宋体">已经有收发了,也许是我</font><font face="Calibri">AP</font><font face="宋体">的问题,获取地址似乎有问题,通过</font></span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:Calibri">ifconfig wlan0 192.168.1.12</span></span><span style="font-size:10.5000pt"><span style="font-family:宋体">8</span></span><span style="font-size:10.5000pt"><span style="font-family:Calibri"> netmask 255.255.255.0</span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">配置</font>wlan0<font face="宋体">的</font><font face="Calibri">ip</font><font face="宋体">地址,可以</font><font face="Calibri">ping</font><font face="宋体">通同</font><font face="Calibri">wifi</font><font face="宋体">下的计算机(地址是</font><font face="Calibri">192.168.1.144/24</font><font face="宋体">)了。</font></span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">电脑是</font>64<font face="宋体">位</font><font face="Calibri">windows</font><font face="宋体">系统,下载附件的</font><font face="Calibri">iperf3</font><font face="宋体">,并解压。</font></span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">在命令行界面中输入命令</font></span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体">iperf3 -s</span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">建立</font>iperf<font face="宋体">服务器。</font></span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">在终端窗口里面输入</font></span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体">iperf3 -c 192.168.1.144</span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">测试</font>wifi<font face="宋体">速率结果如下:</font></span></span></span></span></p>
<p align="center" style="text-align:center"> </p>
<p align="center" style="text-align:center"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">图二、</font></span></span><span style="font-size:10.5000pt"><span style="font-family:宋体">station<font face="宋体">模式下</font></span></span><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">电脑做</font></span></span><span style="font-size:10.5000pt"><span style="font-family:宋体">server<font face="宋体">端的记录</font></span></span></span></span></p>
<p align="center" style="text-align:center"> </p>
<p align="center" style="text-align:center"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">图三、</font></span></span><span style="font-size:10.5000pt"><span style="font-family:宋体">station<font face="宋体">模式下</font></span></span><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">板卡做</font></span></span><span style="font-size:10.5000pt"><span style="font-family:宋体">client<font face="宋体">端的记录</font></span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">上述结果是</font></span></span><span style="font-size:10.5000pt"><span style="font-family:宋体">WIFI<font face="宋体">做</font><font face="Calibri">Station</font><font face="宋体">模式,比手册给出的典型值要高一些。</font></span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">接下来,尝试传输一个大文件。</font></span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">在电脑上建立一个</font>ftp server<font face="宋体">,在终端窗口输入“</font><font face="Calibri">ftp </font><font face="宋体">电脑地址”、“用户名”、“密码”登录到新建</font><font face="Calibri">ftp server</font><font face="宋体">上,使用二进制模式(</font><font face="Calibri">bin</font><font face="宋体">命令),</font><font face="Calibri">get</font><font face="宋体">一个文件,结果如下:</font></span></span></span></span></p>
<p align="center" style="text-align:center"> </p>
<p align="center" style="text-align:center"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">图四、</font></span></span><span style="font-size:10.5000pt"><span style="font-family:宋体">ftp<font face="宋体">实测数值</font></span></span></span></span></p>
<p align="center" style="text-align:center"> </p>
<p align="center" style="text-align:center"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">图五、</font></span></span><span style="font-size:10.5000pt"><span style="font-family:宋体">ftp<font face="宋体">服务端记录</font></span></span></span></span></p>
<p align="center" style="text-align:center"> </p>
<p align="center" style="text-align:center"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">图六、实际文件大小</font></span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">无论从客户端显示还是根据服务器端的文件大小</font></span></span><span style="font-size:10.5000pt"><span style="font-family:宋体">÷传输时间计算,</span></span><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">传输文件的平均速率是</font></span></span><span style="font-size:10.5000pt"><span style="font-family:宋体">200kbyte/s<font face="宋体">也就是</font><font face="Calibri">1.6Mbps</font><font face="宋体">,远低于使用</font><font face="Calibri">iperf</font><font face="宋体">的测试值。原因尚不明确,不排除电脑有限制。</font></span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">接下来,测试板卡的</font>AP<font face="宋体">模式。</font></span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">之前在</font>/etc<font face="宋体">目录下看到系统上自带了</font><font face="Calibri">hostapd</font><font face="宋体">工具,可以尝试用此命令建立无线热点。</font></span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">输入</font></span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体">ifconfig wlan0 up</span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:Calibri">ifconfig wlan0 192.168.1.12</span></span><span style="font-size:10.5000pt"><span style="font-family:宋体">8</span></span><span style="font-size:10.5000pt"><span style="font-family:Calibri"> netmask 255.255.255.0</span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体">hostapd -B /etc/hostapd.conf</span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">在电脑上搜索网络,可以看到多出了一个名为</font>“<font face="Calibri">test</font><font face="宋体">”的无线接入点。点击连接后,发现</font><font face="Calibri">wifi</font><font face="宋体">显示为正在识别,这是因为没有启用</font><font face="Calibri">dhcp</font><font face="宋体">,不能分配地址,因此在电脑上还需设置静态</font><font face="Calibri">ip</font><font face="宋体">地址,可以设置和之前获取地址相同。</font></span></span></span></span></p>
<p align="center" style="text-align:center"> </p>
<p align="center" style="text-align:center"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">图七、电脑</font></span></span><span style="font-size:10.5000pt"><span style="font-family:宋体">ip<font face="宋体">地址设定</font></span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">点击确定后,可以使用</font></span></span><span style="font-size:10.5000pt"><span style="font-family:宋体">ping<font face="宋体">命令</font></span></span><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">测试连通性。</font></span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">再次使用</font>iperf3<font face="宋体">测试速率</font></span></span></span></span></p>
<p align="center" style="text-align:center"> </p>
<p align="center" style="text-align:center"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">图八、</font></span></span><span style="font-size:10.5000pt"><span style="font-family:宋体">AP<font face="宋体">模式下服务器端记录</font></span></span></span></span></p>
<p align="center" style="text-align:center"> </p>
<p align="center" style="text-align:center"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">图九、</font></span></span><span style="font-size:10.5000pt"><span style="font-family:宋体">AP<font face="宋体">模式下客户端记录</font></span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">这个数值高于手册参考值,调转服务器和客户端再测一次。</font></span></span></span></span></p>
<p align="center" style="text-align:center"> </p>
<p align="center" style="text-align:center"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">图十、</font></span></span><span style="font-size:10.5000pt"><span style="font-family:宋体">AP<font face="宋体">模式下服务器端记录</font></span></span></span></span></p>
<p align="center" style="text-align:center"> </p>
<p align="center" style="text-align:center"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">图十一、</font></span></span><span style="font-size:10.5000pt"><span style="font-family:宋体">AP<font face="宋体">模式下客户端记录</font></span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">看来,产品手册给出的数值是相当保守的,估计也是为了避免实测结果低于手册值,不好向客户解释。</font></span></span></span></span></p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">附:产品手册中给出的参考数值</font></span></span></span></span></p>
<p style="text-align:justify"> </p>
</div><script> var loginstr = '<div class="locked">查看本帖全部内容,请<a href="javascript:;" style="color:#e60000" class="loginf">登录</a>或者<a href="https://bbs.eeworld.com.cn/member.php?mod=register_eeworld.php&action=wechat" style="color:#e60000" target="_blank">注册</a></div>';
if(parseInt(discuz_uid)==0){
(function($){
var postHeight = getTextHeight(400);
$(".showpostmsg").html($(".showpostmsg").html());
$(".showpostmsg").after(loginstr);
$(".showpostmsg").css({height:postHeight,overflow:"hidden"});
})(jQuery);
} </script><script type="text/javascript">(function(d,c){var a=d.createElement("script"),m=d.getElementsByTagName("script"),eewurl="//counter.eeworld.com.cn/pv/count/";a.src=eewurl+c;m.parentNode.insertBefore(a,m)})(document,523)</script> <p>好像标称可以达到433Mbps,看起来这个值和测试结果差的有点远呢。</p>
freebsder 发表于 2021-8-10 09:45
好像标称可以达到433Mbps,看起来这个值和测试结果差的有点远呢。
<p>今天又试了一下,和距离强相关,在近距离(2米内)无遮挡,速度基本和手册相同,距离远一点,即使上天线,效果也不佳,手册给出的参考值是有道理的。</p>
tobot 发表于 2021-8-10 16:37
今天又试了一下,和距离强相关,在近距离(2米内)无遮挡,速度基本和手册相同,距离远一点,即使上天线 ...
<p>哦对,我看标称说的是1m内</p>
页:
[1]