张洁,朱磊,郭林源.单片机扩展CH395以太网控制器的通信速率测试[J].国外电子测量技术,2017,36(7):90-94
单片机扩展CH395以太网控制器的通信速率测试
MCU extended CH395 Ethernet controller communication rate test
  
DOI:
中文关键词:  网络速率测试  CH395  C8051F340  SPI  TCP/IP协议栈
英文关键词:network rate test  CH395  C8051F340  SPI  TCP/IP protocol stack
基金项目:国家自然科学基金(61401347)、陕西省科技厅工业科技攻关项目(2016GY 101)、陕西省教育厅自然科学基金(17JK1105)、西安工程大学博士科研启动基金(BS1410)项目资助
作者单位
张洁 西安工程大学电子信息学院 西安 710000 
朱磊 西安工程大学电子信息学院 西安 710000 
郭林源 西安工程大学电子信息学院 西安 710000 
AuthorInstitution
Zhang Jie Electronics and Information College, Xi’an Polytechnic University, Xi’an 710000, China 
Zhu Lei Electronics and Information College, Xi’an Polytechnic University, Xi’an 710000, China 
Guo Linyuan Electronics and Information College, Xi’an Polytechnic University, Xi’an 710000, China 
摘要点击次数: 544
全文下载次数: 776
中文摘要:
      CH395是一款集成TCP/IP协议栈的国产以太网控制器芯片,为给普通单片机扩展基于CH395的以太网通信功能,提供实测数据传输速率参考。以单片机C8051F340外扩CH395为例,给出了一种简单易行的CH395网络通信速率测试方案。该方案在硬件上选用C8051F340片上外设中占用硬件资源较少且速率较快的SPI接口与CH395互连实现网络数据交互。在软件上单片机C8051F340直接通过命令调用CH395自带的库函数并采用CH395内置的TCP/IP协议栈把单片机配置成服务器,用LabVIEW上位机做的客户端与其进行数据通信。通过一种测试方案两种测试方法并经过多次数据通信实验,在SPI单收和单发模式下不丢失数据的情况下网络通信平均速率可以稳定达到200 KB/s。
英文摘要:
      CH395 is an integrated TCP/IP protocol stack of domestic Ethernet controller chip,for the ordinary single chip expansion based on CH395 Ethernet communication function to provide the measured communication rate reference,In this paper, the C8051F340 single chip expansion CH395, for example, gives a simple CH395 network communication rate test program.The program on the hardware selection C8051F340 on chip peripherals in the hardware resources less and faster SPI interface and CH395 interconnection to achieve network data interaction, In the software on the microcontroller C8051F340 directly through the command to call CH395 comes with the library function and the use of CH395 built in TCP/IP protocol stack to configure the microcontroller as a server, with the LabVIEW host computer to do with its data communication.In the test program in the two test methods and a number of experimental data show that the data in the SPI mode, single shot and single shot without losing data in the case of the average speed can be stable to 200 KB/s.
查看全文  查看/发表评论  下载PDF阅读器