SPI以太网口芯片DM9051ANX在ESP32 C3进行iPerf测试

电子说

1.4w人已加入

描述

硬件平台:ESP32 C3 + DM9051ANX

SDK: ESP-IDF V5.4

测试工具:Iperf

iperf –s    /Server 端/

-------------------------------------------------------------------------------------------

Server listening on TCP port 5001       /Serve 端模式 默认监听 5001 port/

TCP window size:  128 KByte (default)   /通过设置TCP窗口大小,默认128KByte/

-------------------------------------------------------------------------------------------

Server端和Client端设置 :Iperf测试需要分别在服务器端和客户端上运行。服务器端负责监听来自客户端的连接请求,并进行数据传输;客户端则负责发起连接请求并接收数据。

审核编辑 黄宇

对DM9051ANX进行测试,客户端成功连接到服务器,分别以不同的SPI CLK 60、50、40、30、20、10MHz进行测试,并在30秒内分别传输了62.2、62、62、50、43、25.8MB数据,SPI以太网口芯片DM9051ANX网口性能数据如下面表格所示。

在这份表格,我们可以了解到DM9051ANX在ESP32平台的以太网TCP传输网口性能优良。以下『Interval』表示时间间隔、『Transfer』表示时间间隔里面转输的数据量、『Bandwidth』是时间间隔里的传输速率。

 

[  1] local 192.168.123.150 port 5001 connected with 192.168.123.139 port 61506 (icwnd/mss/irtt=14/1440/699)
      [ ID] Interval       Transfer     Bandwidth
[  1] 0.0000-30.0016 sec  62.2 MBytes 17.4 Mbits/sec 
[  2] local 192.168.123.150 port 5001 connected with 192.168.123.139 port 54700 (icwnd/mss/irtt=14/1440/740)
      [ ID] Interval       Transfer     Bandwidth
[  2] 0.0000-29.9971 sec  62.0 MBytes 17.3 Mbits/sec
[  3] local 192.168.123.150 port 5001 connected with 192.168.123.139 port 53275 (icwnd/mss/irtt=14/1440/692)
      [ ID] Interval       Transfer     Bandwidth
[  3] 0.0000-30.0115 sec  62.0 MBytes 17.3 Mbits/sec 
[  4] local 192.168.123.150 port 5001 connected with 192.168.123.139 port 52898 (icwnd/mss/irtt=14/1440/725)
      [ ID] Interval       Transfer     Bandwidth
[  4] 0.0000-30.0100 sec  50.3 MBytes 14.1 Mbits/sec 
[  5] local 192.168.123.150 port 5001 connected with 192.168.123.139 port 57280 (icwnd/mss/irtt=14/1440/726)
      [ ID] Interval       Transfer     Bandwidth
[  5] 0.0000-29.9985 sec  43.0 MBytes 12.0 Mbits/sec 
[  6] local 192.168.123.150 port 5001 connected with 192.168.123.139 port 64960 (icwnd/mss/irtt=14/1440/824)
      [ ID] Interval       Transfer     Bandwidth
[  6] 0.0000-30.0312 sec  25.8 MBytes 7.20 Mbits/sec

 

以上DM9051ANX网口性能数据整理如下:

SPI CLK时钟频率(MHz) 10 20 30 40 50 60
DM9051ANX网口性能 (Mbps) 7.2 12  14.1  17.3 17.3 17.4

因为SPI CLK运作会占用主控ESP32 C3的任务执行(Multi-task) ,请用户查看下手上项目应用,如果没有其他因素要权衡,为了避免以太网口执行时,被ESP32其他任务拖延,建议用户应以最佳效能来运行DM9051ANX网口性能。

审核编辑 黄宇

打开APP阅读更多精彩内容
声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 举报投诉

全部0条评论

快来发表一下你的评论吧 !

×
20
完善资料,
赚取积分