针对目前同步串行协议通信速率低和可靠性差的现状,设计了一个基于ARM加交换芯片的协议转换器来完成同步串行协议到网络通信协议的转换;设计采用S3C2440为核心处理器,并通过服务器和客户端建立连接,以套接字的形式将SPI协议转换成TCP协议接入到以太网,采用网络调试助手和串口调试助手对客户端和服务器的协议转换通信进行测试和分析;实验结果表明服务器通过SPI总线发出的数据经过封包后构造成可以在网络上转发的报文,经过交换芯片的端口转发到达客户端完成SPI到TCP协议的转换。
In view of Considering the situation that recently the low rate and poor reliability of synchronous serial communication, we designed a protocol converter based on ARM processor and exchange chip to complete the conversion from synchronous serial protocol to the network communication protocol. The design uses the $3C2440 as the core processor and take the form of the socket to convert SPI protocol to TCP protocol through the way of that server and client establish connection. This article access to the Ethernet USES the network debug- ging assistants and serial debugging assistant for the client and server communication protocol conversion for testing and analysis. The ex- perimental results show that the data from the server through the SPI bus after the packet structure to forward the message on the Internet, through the exchange of chip port forwarding to the client to complete the SPI to TCP protocol conversion.