[go: up one dir, main page]

CN102255975A - Dual-port-random access memory (RAM)-based embedded common Ethernet/Internet protocol (IP) communication interface device - Google Patents

Dual-port-random access memory (RAM)-based embedded common Ethernet/Internet protocol (IP) communication interface device Download PDF

Info

Publication number
CN102255975A
CN102255975A CN2011101616430A CN201110161643A CN102255975A CN 102255975 A CN102255975 A CN 102255975A CN 2011101616430 A CN2011101616430 A CN 2011101616430A CN 201110161643 A CN201110161643 A CN 201110161643A CN 102255975 A CN102255975 A CN 102255975A
Authority
CN
China
Prior art keywords
circuit
core board
data
ethernet
communication interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2011101616430A
Other languages
Chinese (zh)
Other versions
CN102255975B (en
Inventor
陈在平
贾超
倪建云
魏一
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianjin University of Technology
Original Assignee
Tianjin University of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tianjin University of Technology filed Critical Tianjin University of Technology
Priority to CN201110161643.0A priority Critical patent/CN102255975B/en
Publication of CN102255975A publication Critical patent/CN102255975A/en
Application granted granted Critical
Publication of CN102255975B publication Critical patent/CN102255975B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

一种基于双口RAM的嵌入式通用Ethernet/IP通信接口装置,包括:核心板单元,用于接收发送并分析处理Ethernet/IP工业以太网和外部设备的数据信息,为底板单元中的指示电路提供指示逻辑信号,固化系统信息,为整个装置提供软件支持;底板单元,通过核心板接口电路与核心板单元连接构成一个整体,用于与Ethernet/IP网络进行通信交换Ethernet/IP数据,与外部设备进行通信交换外部数据,为外部设备提供标准电路接口,用于通信接口装置与外部设备进行互联,指示当前通信接口装置的工作状态,为通信接口装置提供电源与复位功能。本发明具有广泛的通用性,当外部设备满足通信接口装置中接口电路的规范时,通信接口装置可与任意外部设备互联交换Ethernet/IP数据信息。

Figure 201110161643

An embedded general-purpose Ethernet/IP communication interface device based on dual-port RAM, including: a core board unit, used to receive, send, analyze and process data information of Ethernet/IP industrial Ethernet and external equipment, and is an indicator circuit in the bottom board unit Provide indication logic signals, solidify system information, and provide software support for the entire device; the bottom board unit is connected to the core board unit through the core board interface circuit to form a whole, and is used to communicate with the Ethernet/IP network to exchange Ethernet/IP data, and external The equipment communicates and exchanges external data, provides standard circuit interfaces for external equipment, and is used for interconnection between communication interface devices and external equipment, indicating the current working status of communication interface devices, and providing power and reset functions for communication interface devices. The invention has wide versatility, and when the external equipment meets the specification of the interface circuit in the communication interface device, the communication interface device can interconnect and exchange Ethernet/IP data information with any external equipment.

Figure 201110161643

Description

基于双口RAM的嵌入式通用Ethernet/IP通信接口装置Embedded Universal Ethernet/IP Communication Interface Device Based on Dual-port RAM

技术领域 technical field

本发明涉及工业网络通信技术领域,特别是涉及一种具有广泛通用性的嵌入式通用Ethernet/IP通信接口装置。The invention relates to the technical field of industrial network communication, in particular to an embedded universal Ethernet/IP communication interface device with wide versatility.

背景技术 Background technique

近年来工业自动化控制系统向着智能化、信息化、网络化方向发展。目前在所有的网络技术中,基于TCP/IP协议的以太网技术已经成为事实上的标准网络,将标准TCP/IP以太网延伸到工业实时控制领域,与通用工业协议CIP(Common Industrial Protoco1)相结合,就形成了工业以太网Ethernet/IP。In recent years, the industrial automation control system has been developing in the direction of intelligence, informationization and networking. At present, in all network technologies, Ethernet technology based on TCP/IP protocol has become a de facto standard network, extending standard TCP/IP Ethernet to the field of industrial real-time control, and is comparable to the common industrial protocol CIP (Common Industrial Protocol1). Combined, industrial Ethernet Ethernet/IP is formed.

由于Ethernet/IP发展时间不长,在我国更是刚刚起步,因此Ethernet/IP在我国的推广面临着种种问题,开发成本高、专业的技术人员严重匮乏等等制约着Ethernet/IP的发展。Since the development of Ethernet/IP is not long, and it has just started in my country, the promotion of Ethernet/IP in my country is facing various problems, such as high development costs and a serious shortage of professional technicians, etc., which restrict the development of Ethernet/IP.

传统的非工业以太网设备集成进入工业以太网不仅需要将庞大的工业以太网通信协议代码嵌入进设备的软件控制系统,甚至要大量改变设备的设计结构,改造技术复杂且成本很高,不利于工业设备与工业以太网的集成。The integration of traditional non-industrial Ethernet devices into industrial Ethernet not only requires embedding a huge industrial Ethernet communication protocol code into the software control system of the device, but also requires a large number of changes in the design structure of the device. The transformation technology is complex and costly, which is not conducive to Integration of industrial equipment with Industrial Ethernet.

目前还没有出现具备基于双口RAM的嵌入式通用Ethernet/IP通信接口装置,使其可以与任意满足接口电路1027规范的外部设备互联。At present, there is no embedded universal Ethernet/IP communication interface device based on dual-port RAM, so that it can be interconnected with any external device that meets the interface circuit 1027 specification.

发明内容 Contents of the invention

本发明的目的是克服现有技术存在的上述不足,提供一种基于双口RAM的嵌入式通用Ethernet/IP通信接口装置,使其具有广泛的通用性,可以与任意具有规范接口电路的外部设备进行互联,并通过指示电路反映当前通信接口装置的工作情况,方便工作人员进行装置的故障监控和排查。The purpose of the present invention is to overcome the above-mentioned deficiency that prior art exists, provide a kind of embedded universal Ethernet/IP communication interface device based on dual-port RAM, make it have wide versatility, can be connected with any external equipment with standard interface circuit It is interconnected and reflects the current working condition of the communication interface device through the indicating circuit, which is convenient for the staff to monitor and troubleshoot the device.

本发明提供的基于双口RAM的嵌入式通用Ethernet/IP通信接口装置,包括核心板单元和底板单元两部分,其中,The embedded universal Ethernet/IP communication interface device based on dual-port RAM provided by the present invention includes two parts, a core board unit and a bottom board unit, wherein,

核心板单元:Core board unit:

由微处理器、以及分别与微处理器双向连接的SDRAM电路和FLASH电路构成;所述的核心板单元用于接收发送并分析处理Ethernet/IP工业以太网和外部设备的数据信息,为底板单元中的指示电路提供指示逻辑信号,以及固化系统信息,并为整个装置提供软件支持;It is composed of a microprocessor, SDRAM circuit and FLASH circuit respectively bidirectionally connected with the microprocessor; the core board unit is used to receive, send, analyze and process the data information of Ethernet/IP industrial Ethernet and external equipment, and is a bottom board unit The indication circuit in the system provides indication logic signals, solidifies system information, and provides software support for the entire device;

底板单元,包括:Base unit, consisting of:

核心板接口电路:底板单元通过核心板接口电路与核心板单元连接,使核心板单元与底板单元构成一个整体;Core board interface circuit: the base board unit is connected to the core board unit through the core board interface circuit, so that the core board unit and the base board unit form a whole;

以太网电路:与Ethernet/IP网络双向连接,同时通过核心板接口电路与核心板单元双向连接,通过以太网电路,用于核心板单元与Ethernet/IP网络进行信息交互,交换Ethernet/IP网络数据;Ethernet circuit: two-way connection with the Ethernet/IP network, and two-way connection with the core board unit through the core board interface circuit, and through the Ethernet circuit, it is used for information exchange between the core board unit and the Ethernet/IP network, and exchange of Ethernet/IP network data ;

外部数据交换电路:通过核心板接口电路与核心板单元双向连接,同时通过接口电路与外部设备双向连接,通过外部数据交换电路使核心板单元与外部设备进行通信,交换外部数据;External data exchange circuit: two-way connection with the core board unit through the core board interface circuit, and two-way connection with the external device through the interface circuit, and the core board unit communicates with the external device through the external data exchange circuit to exchange external data;

指示电路:通过核心板接口电路与核心板单元连接,由核心板单元提供指示逻辑信号,通过指示电路指示当前通信接口装置的工作状态,当通信模块工作异常时,指示电路发出异常显示,异常恢复后显示恢复正常;Indicating circuit: connected to the core board unit through the core board interface circuit, the core board unit provides the indicating logic signal, and indicates the working status of the current communication interface device through the indicating circuit. After the display returns to normal;

电源电路:通过核心板接口电路与核心板单元连接,并经过接口电路与外部设备连接,通过电源电路为通信接口装置提供稳定电源;Power supply circuit: connect to the core board unit through the core board interface circuit, and connect to the external equipment through the interface circuit, and provide stable power supply for the communication interface device through the power supply circuit;

复位电路:通过核心板接口电路与核心板单元连接,同时经过接口电路连接外部设备,通过复位电路为通信接口装置提供复位功能,复位电路根据外部设备发出的复位命令信号给于核心板单元复位逻辑信号,复位信号被触发后,通信接口装置将重新启动;Reset circuit: connect to the core board unit through the core board interface circuit, and connect external devices through the interface circuit at the same time, provide reset function for the communication interface device through the reset circuit, and reset the circuit to the reset logic of the core board unit according to the reset command signal sent by the external device signal, after the reset signal is triggered, the communication interface device will restart;

接口电路:通过接口电路为外部设备提供标准电路接口,使通信接口装置能够与任意满足接口电路规范的外部设备互联,即插即用,便于安装调试。Interface circuit: Provide a standard circuit interface for external equipment through the interface circuit, so that the communication interface device can be interconnected with any external equipment that meets the interface circuit specification, plug and play, easy to install and debug.

本发明的优点和有益效果:Advantages and beneficial effects of the present invention:

由以上本发明提供的技术方案可见,与现有技术相比较,本发明提供了一种基于双口RAM的嵌入式Ethernet/IP通用通信接口装置,其可以与任意满足接口电路1027规范,即具有2.00mm标准间距的15X2针接口插槽的外部设备进行互联交换Ethernet/IP网络数据,具有广泛的通用性,方便安装调试,并提供工作状态提示,方便维护人员进行装置的故障监控和排查,当故障排除后装置自动恢复正常工作,具有重大的实际意义。It can be seen from the technical solution provided by the present invention above that, compared with the prior art, the present invention provides a dual-port RAM-based embedded Ethernet/IP general communication interface device, which can meet any interface circuit 1027 specification, that is, has 2.00mm standard spacing of 15X2 pin interface slots for external devices to interconnect and exchange Ethernet/IP network data, has a wide range of versatility, is convenient for installation and debugging, and provides working status prompts, which is convenient for maintenance personnel to monitor and troubleshoot device faults. After troubleshooting, the device automatically resumes normal operation, which is of great practical significance.

附图说明 Description of drawings

图1为本发明提供的一种基于双口RAM的嵌入式Ethernet/IP通用通信接口装置的总体结构图;Fig. 1 is the general structural diagram of a kind of embedded Ethernet/IP universal communication interface device based on dual-port RAM provided by the present invention;

图2为图1核心板单元101中微处理器1011S3C2440电路图;Fig. 2 is the circuit diagram of the microprocessor 1011S3C2440 in the core board unit 101 of Fig. 1;

图3为图1核心板单元101中FLASH1013电路的电路图;Fig. 3 is the circuit diagram of the FLASH1013 circuit in the core board unit 101 of Fig. 1;

图4为图1核心板单元101中SDRAM1012电路的电路图;Fig. 4 is the circuit diagram of SDRAM1012 circuit in Fig. 1 core board unit 101;

图5为图1底板单元102中核心板接口电路1021;FIG. 5 is a core board interface circuit 1021 in the bottom board unit 102 of FIG. 1;

图6为图1底板单元102中以太网电路1022的电路图;FIG. 6 is a circuit diagram of the Ethernet circuit 1022 in the backplane unit 102 of FIG. 1;

图7为图1底板单元102中外部数据交换电路1023的电路图;FIG. 7 is a circuit diagram of the external data exchange circuit 1023 in the bottom plate unit 102 of FIG. 1;

图8为图1底板单元102中指示电路1024的电路图;FIG. 8 is a circuit diagram of the indicating circuit 1024 in the base unit 102 of FIG. 1;

图9为图1底板单元102中电源电路1025的电路图;FIG. 9 is a circuit diagram of the power supply circuit 1025 in the base unit 102 of FIG. 1;

图10为图1底板单元102中复位电路1026的电路图;FIG. 10 is a circuit diagram of the reset circuit 1026 in the bottom plate unit 102 of FIG. 1;

图11为图1底板单元102中接口电路1027的电路图。FIG. 11 is a circuit diagram of the interface circuit 1027 in the backplane unit 102 of FIG. 1 .

为了使本技术领域的人员更好地理解本发明方案,下面结合附图和实施方式对本发明进行说明。In order to enable those skilled in the art to better understand the solution of the present invention, the present invention will be described below in conjunction with the accompanying drawings and embodiments.

具体实施方式 Detailed ways

图1为本发明提供的一种基于双口RAM的嵌入式通用Ethernet/IP通信接口装置的总体结构图。FIG. 1 is an overall structural diagram of an embedded universal Ethernet/IP communication interface device based on dual-port RAM provided by the present invention.

参见图1,本发明提供的基于双口RAM的嵌入式通用Ethernet/IP通信接口装置包括,核心板单元101和底板单元102两部分,其中,Referring to Fig. 1, the embedded universal Ethernet/IP communication interface device based on dual-port RAM provided by the present invention includes two parts, a core board unit 101 and a bottom board unit 102, wherein,

核心板单元101:Core board unit 101:

由微处理器1011、以及分别与微处理器1011双向连接的SDRAM电路1012和FLASH电路1013构成;所述的核心板单元用于接收发送并分析处理Ethernet/IP工业以太网和外部设备的数据信息,为底板单元中的指示电路提供指示逻辑信号,以及固化系统信息,并为整个装置提供软件支持;Consists of a microprocessor 1011, and SDRAM circuit 1012 and FLASH circuit 1013 bidirectionally connected to the microprocessor 1011 respectively; the core board unit is used to receive, send, analyze and process data information of Ethernet/IP industrial Ethernet and external devices , to provide indication logic signals for the indication circuit in the base unit, as well as solidify system information, and provide software support for the entire device;

底板单元102,包括:Base unit 102, comprising:

核心板接口电路1021:底板单元通过核心板接口电路与核心板单元101中的微处理器1011双向连接,使核心板单元101与底板单元102相连构成一个整体;Core board interface circuit 1021: the bottom board unit is bidirectionally connected with the microprocessor 1011 in the core board unit 101 through the core board interface circuit, so that the core board unit 101 and the bottom board unit 102 are connected to form a whole;

以太网电路1022:与Ethernet/IP网络双向连接,同时通过核心板接口电路1021与核心板单元101双向连接,通过以太网电路1022,用于核心板单元101与Ethernet/IP网络进行信息交互,交换Ethernet/IP网络数据;Ethernet circuit 1022: two-way connection with the Ethernet/IP network, and two-way connection with the core board unit 101 through the core board interface circuit 1021. Ethernet/IP network data;

外部数据交换电路1023:通过核心板接口电路1021与核心板单元双向连接,同时通过接口电路1027与外部设备双向连接,通过外部数据交换电路1023使核心板单元101与外部设备进行通信,交换外部数据;External data exchange circuit 1023: two-way connection with the core board unit through the core board interface circuit 1021, and two-way connection with the external device through the interface circuit 1027, and the core board unit 101 communicates with the external device through the external data exchange circuit 1023 to exchange external data ;

指示电路1024:通过核心板接口电路1021与核心板单元连接,由核心板单元101提供指示逻辑信号,通过指示电路1024指示当前通信接口装置的工作状态,当通信模块工作异常的时候指示电路发出异常显示,异常恢复后显示恢复正常;Indicating circuit 1024: connected to the core board unit through the core board interface circuit 1021, the core board unit 101 provides an indicating logic signal, and indicates the working status of the current communication interface device through the indicating circuit 1024, and when the communication module is working abnormally, the indicating circuit sends out an abnormality Display, the display returns to normal after the abnormality is restored;

电源电路1025:通过核心板接口电路1021与核心板单元连接,并经过接口电路1027与外部设备连接,通过电源电路1025,为通信接口装置提供稳定电源;Power supply circuit 1025: connect to the core board unit through the core board interface circuit 1021, and connect to external equipment through the interface circuit 1027, and provide a stable power supply for the communication interface device through the power supply circuit 1025;

复位电路1026:通过核心板接口电路1021与核心板单元连接,同时经过接口电路1027连接外部设备,通过复位电路1026,为通信接口装置提供复位功能,复位电路1026根据外部设备发出的复位命令信号给于核心板单元101中的微处理器1011复位逻辑信号,复位信号被触发后,通信接口装置将重新启动。Reset circuit 1026: connect to the core board unit through the core board interface circuit 1021, and connect external devices through the interface circuit 1027 at the same time, provide a reset function for the communication interface device through the reset circuit 1026, and reset the circuit 1026 according to the reset command signal sent by the external device. The microprocessor 1011 in the core board unit 101 resets the logic signal. After the reset signal is triggered, the communication interface device will restart.

接口电路1027:通过接口电路1027,为外部设备提供标准电路接口,使通信接口装置能够与任意满足接口电路1027规范的外部设备互联,即插即用,便于安装调试。Interface circuit 1027: Through the interface circuit 1027, a standard circuit interface is provided for external equipment, so that the communication interface device can be interconnected with any external equipment that meets the specifications of the interface circuit 1027, plug and play, easy to install and debug.

本发明装置涉及的各单元电路的具体结构如下:The specific structure of each unit circuit involved in the device of the present invention is as follows:

核心板单元101Core board unit 101

微处理器1011,参见图2,采用基于ARM920T内核的16/32位RISC嵌入式微处理器S3C2440A,用于向底板单元102采集和下发Ethernet/IP数据和外部设备数据,接收来自底板单元102的复位电路1026的复位信号,向底板单元102的指示电路1024提供逻辑指示信号反映当前通信接口装置的工作状态,初始化软件协议栈完成通信接口装置所有的软件处理任务;Microprocessor 1011, referring to Fig. 2, adopts 16/32-bit RISC embedded microprocessor S3C2440A based on ARM920T core, is used for collecting and delivering Ethernet/IP data and external device data to base unit 102, and receiving data from base unit 102 The reset signal of the reset circuit 1026 provides a logical indication signal to the indication circuit 1024 of the backplane unit 102 to reflect the working state of the current communication interface device, and initializes the software protocol stack to complete all software processing tasks of the communication interface device;

具体实现上,所述微处理器1011采集底板单元102中以太网电路1022中Ethernet/IP网络数据和数据交换电路中的外部设备数据,并向以太网电路1022和数据交换电路下发Ethernet/IP数据和外部数据;采集来自底板单元102中复位电路1026的复位信号,微处理器1011接收到复位信号后自动重启;此外,微处理器1011不断扫描通信接口装置的工作情况,发送指示逻辑信号给底板单元102的指示电路1024,反映当前通信接口装置的工作状态;In specific implementation, the microprocessor 1011 collects the Ethernet/IP network data in the Ethernet circuit 1022 in the backplane unit 102 and the external device data in the data exchange circuit, and sends the Ethernet/IP network data to the Ethernet circuit 1022 and the data exchange circuit. data and external data; collect the reset signal from the reset circuit 1026 in the base unit 102, and the microprocessor 1011 automatically restarts after receiving the reset signal; in addition, the microprocessor 1011 constantly scans the working conditions of the communication interface device, and sends an indication logic signal to The indicator circuit 1024 of the base unit 102 reflects the working status of the current communication interface device;

需要说明的是,微处理器1011在初始上电后,所有参数的状态都需要一个初始值,这样才能在一个初始状态下进入正常的工作状态。在微处理器1011开始执行时,需将相关的参数如通信接口装置IP地址、I/O交换字节数大小等参数写入微控制器,这样通信接口装置才能正常工作。因此需要将所有的初始化参数由外部设备通过底板单元102的外部数据交换电路写入到微处理器1011中,从而完成初始化。It should be noted that, after the microprocessor 1011 is initially powered on, the states of all parameters need an initial value, so that the microprocessor 1011 can enter a normal working state in an initial state. When the microprocessor 1011 starts to execute, relevant parameters such as IP address of the communication interface device, I/O exchange byte size and other parameters need to be written into the microcontroller, so that the communication interface device can work normally. Therefore, all initialization parameters need to be written into the microprocessor 1011 by the external device through the external data exchange circuit of the bottom board unit 102, so as to complete the initialization.

FLASH电路1013,参见图3,通过数据总线和控制总线与微处理器双向连接,三星K9F2G08U0B-PCB0是NAND型FLASH芯片,数据存储容量为256M,还有2M的NOR型FLASH,构成双FLASH启动,微处理器1011通过NAND型FLASH芯片,读写通信接口装置的程序信息以及配置信息,存储的程序信息在通信接口装置掉电后不会丢失;FLASH circuit 1013, see Figure 3, bidirectionally connected to the microprocessor through the data bus and control bus, Samsung K9F2G08U0B-PCB0 is a NAND-type FLASH chip with a data storage capacity of 256M, and 2M NOR-type FLASH, which constitutes a dual FLASH startup. The microprocessor 1011 reads and writes the program information and configuration information of the communication interface device through the NAND type FLASH chip, and the stored program information will not be lost after the communication interface device is powered off;

SDRAM电路1012,参见图4,具有一片型号为MT48LC16M16A2P的64MB容量的同步动态随机存储器SDRAM1012芯片,通过地址总线、数据总线和控制总线与处理器双向连接,通过大容量的SDRAM1012芯片为处理器提供高速的数据处理能力,用于在系统中做程序的运行空间、数据及堆栈区;SDRAM circuit 1012, referring to Figure 4, has a synchronous dynamic random access memory SDRAM1012 chip with a 64MB capacity of model MT48LC16M16A2P, which is bidirectionally connected to the processor through the address bus, data bus and control bus, and provides high-speed memory for the processor through the large-capacity SDRAM1012 chip. The data processing capability is used to make the running space, data and stack area of the program in the system;

底板单元102base unit 102

核心板接口电路1021,参见图5,包括2组36X2和两组16X2的间距2.0mm的标准接插器件,使得核心板单元101与底板单元102双向连接,电气特性以及物理特性上构成一个整体;The core board interface circuit 1021, referring to Fig. 5, includes two sets of 36X2 and two sets of 16X2 standard plug-in devices with a spacing of 2.0 mm, so that the core board unit 101 and the base board unit 102 are bidirectionally connected, and form a whole in terms of electrical and physical characteristics;

以太网电路1022,参见图6以太网电路1022的接口电路图,包括:以太网控制器DM9000与微处理器1011通过数据总线LDATA0-LDATA15和控制总线双向连接,用于将来自Ethernet/IP网络的数据报文发送给微处理器10111011,微处理器1011按照Ethernet/IP规范对来自Ethernet/IP工业以太网的报文进行判断与过滤(即解析),并接收来自微处理器1011下发的Ethernet/IP数据报文发送到Ethernet/IP网络上,即向Ethernet/IP工业以太网发送符合Ethernet/IP协议的报文,从而提高本发明通信接口装置的通信效率;以太网控制器的TXO+、TXO-、RXI+、RXI-四个引脚与网络滤波器H1102NL的TDP、TDN、RDP、RDN四个引脚双向连接交换数据,以太网接口电路器件RJ45的TX+、TX-、RX+、RX-四个引脚与网络滤波器H1102NL的TXP、TXN、RXP、RXN四个引脚双向连接交换数据,提供以太网物理接口,3.3V电源与地信号通过电容、电感电路为以太网电路提供模拟电源与模拟地信号。Ethernet circuit 1022, referring to the interface circuit diagram of Fig. 6 Ethernet circuit 1022, comprises: Ethernet controller DM9000 and microprocessor 1011 are bidirectionally connected by data bus LDATA0-LDATA15 and control bus, for the data from Ethernet/IP network The message is sent to the microprocessor 10111011, and the microprocessor 1011 judges and filters (i.e. parses) the message from the Ethernet/IP industrial Ethernet according to the Ethernet/IP specification, and receives the Ethernet/IP message sent by the microprocessor 1011. The IP data message is sent to the Ethernet/IP network, that is, the message conforming to the Ethernet/IP protocol is sent to the Ethernet/IP industrial Ethernet, thereby improving the communication efficiency of the communication interface device of the present invention; the TXO+ and TXO- of the Ethernet controller , RXI+, RXI- four pins and network filter H1102NL TDP, TDN, RDP, RDN four pins two-way connection exchange data, Ethernet interface circuit device RJ45 TX+, TX-, RX+, RX- four pins The four pins of TXP, TXN, RXP and RXN of the network filter H1102NL are bidirectionally connected to exchange data, providing Ethernet physical interface, 3.3V power supply and ground signal provide analog power supply and analog ground for Ethernet circuit through capacitor and inductor circuit Signal.

外部数据交换电路1023,参见图7,与微处理器1011双向连接,用于接收微处理器1011下发的数据给外部设备,并将来自外部设备的数据发送给微处理器1011;The external data exchange circuit 1023, referring to Fig. 7, is bidirectionally connected with the microprocessor 1011, and is used to receive the data sent by the microprocessor 1011 to the external device, and send the data from the external device to the microprocessor 1011;

图7所示外部数据交换电路1023,采用8位数据位5V供电电压的双口RAM提供通信接口装置与应用设备之间的数据共享空间,微处理器1011的nGCS5引脚作为共用的片选线与电平转换芯片SN74LVC4245的

Figure BDA0000068681440000051
引脚和双口RAM的引脚相连,只有当片选线为低电平选中它们的时候才允许元件工作。微处理器1011的8位数据线DATA[0:7]通过电平转换芯片SN74LVC4245与双口RAM的数据线I/O[0:7]L相连,微处理器1011的LnWE引脚作为写信号控制线与双口RAM的R/WL引脚和电平转换芯片的DIR引脚相连。微处理器1011的LnOE引脚作为读控制线与双口RAM的
Figure BDA0000068681440000053
引脚相连。微处理器1011的LADDR[0:10]与双口RAM的10位地址总线A[0:10]L相连。双口RAM的中断
Figure BDA0000068681440000054
L引脚和
Figure BDA0000068681440000055
引脚与微处理器1011的nWAIT和EINT9引脚相连。The external data exchange circuit 1023 shown in Figure 7 adopts a dual-port RAM with 8 data bits and a 5V power supply voltage to provide a data sharing space between the communication interface device and the application equipment, and the nGCS5 pin of the microprocessor 1011 is used as a shared chip selection line with level shifter chip SN74LVC4245
Figure BDA0000068681440000051
pins and dual-port RAM’s The pins are connected to allow the components to operate only when the chip select line is low to select them. The 8-bit data line DATA[0:7] of the microprocessor 1011 is connected to the data line I/O[0:7]L of the dual-port RAM through the level conversion chip SN74LVC4245, and the LnWE pin of the microprocessor 1011 is used as a write signal The control line is connected with the R/WL pin of the dual-port RAM and the DIR pin of the level conversion chip. The LnOE pin of the microprocessor 1011 is used as the read control line and the dual-port RAM
Figure BDA0000068681440000053
pins are connected. The LADDR[0:10] of the microprocessor 1011 is connected with the 10-bit address bus A[0:10]L of the dual-port RAM. Dual-port RAM interrupt
Figure BDA0000068681440000054
L pin and
Figure BDA0000068681440000055
The pin is connected with the nWAIT and EINT9 pins of the microprocessor 1011.

需要说明的是,双口RAM的型号为IDT7132,芯片硬件性能优良,使得外围接口电路1027的设计变得十分简便。为了防止同一个时刻出现两个端口同时使用同一个数据单元的情况,双口RAM硬件提供了三种不同的地址争用机制,即硬件繁忙机制、中断机制与令牌机制。本发明的通信接口装置使用硬件繁忙机制与中断机制对地址竞争进行判优。硬件繁忙机制,双口RAM两个端口各有一个BUSY引脚,当一端口试图访问一个正在被另一个端口访问的地址单元时,相应的BUSY引脚会被置低电平。中断机制,利用地址为0x7FE与0x7FF即双口RAM的最高两个地址单元作为中断寄存器,例如当左端口向0x7FF单元写入数据的时候双口RAM将右中断引脚

Figure BDA0000068681440000056
置低电平,当右端口读取0x7FF单元内数据的时候双口RAM自动将
Figure BDA0000068681440000057
电平拉高,反之亦然,利用中断机制可以方便的实现两个CPU之间的数据高速交换。双口RAM与微处理器1011的硬件接口电路如图7所示。It should be noted that the model of the dual-port RAM is IDT7132, and the chip hardware has excellent performance, which makes the design of the peripheral interface circuit 1027 very simple. In order to prevent two ports from using the same data unit at the same time, the dual-port RAM hardware provides three different address contention mechanisms, namely hardware busy mechanism, interrupt mechanism and token mechanism. The communication interface device of the present invention uses a hardware busy mechanism and an interrupt mechanism to arbitrate address competition. Hardware busy mechanism, the two ports of dual-port RAM each have a BUSY pin, when one port tries to access an address unit being accessed by the other port, the corresponding BUSY pin will be set low. The interrupt mechanism uses the address 0x7FE and 0x7FF, that is, the highest two address units of the dual-port RAM as interrupt registers. For example, when the left port writes data to the 0x7FF unit, the dual-port RAM will interrupt the right pin
Figure BDA0000068681440000056
Set low level, when the right port reads the data in the 0x7FF unit, the dual-port RAM will automatically
Figure BDA0000068681440000057
The level is pulled high, and vice versa, the high-speed data exchange between the two CPUs can be easily realized by using the interrupt mechanism. The hardware interface circuit of the dual-port RAM and the microprocessor 1011 is shown in FIG. 7 .

双口RAM的中断INT引脚以及繁忙BUSY引脚为开漏输出,因此在实际应用时要为它们外接上拉电阻,

Figure BDA0000068681440000058
引脚为微处理器1011提供外部中断源,引脚为微处理器1011提供插入等待信号。The interrupt INT pin and the busy BUSY pin of the dual-port RAM are open-drain outputs, so they should be externally connected with pull-up resistors in practical applications.
Figure BDA0000068681440000058
pin provides an external interrupt source for the microprocessor 1011, pin provides an insertion wait signal to the microprocessor 1011.

微处理器1011为3.3V供电电压,与5V电平直接相连存在电平不匹配的情况,需要利用电平转换芯片的方法来解决双方电平不匹配的问题。电平转换芯片为SN74LVC4245具有3.3V与5V两套独立的电源供电,两边具有一对对称的8位数据口,可以实现3.3V信号与5V信号的互转。SN74LVC4245的DIR引脚控制数据信号的传输方向,DIR引脚为高电平的时候信号允许从5V向3.3V方向传输,DIR引脚为低电平的时候允许信号从3.3V向5V方向传输。当微处理器1011读取数据总线数据时,LnWE引脚自动为高电平,DIR引脚信号方向由双口RAM到微处理器1011,当微处理器10111011写数据的时LnWE自动为低电平,电DIR引脚信号方向由微处理器10111011到双口RAM,这样可以控制双方数据信号的传输。The microprocessor 1011 has a power supply voltage of 3.3V, and there is a level mismatch when it is directly connected to the 5V level. It is necessary to use a level conversion chip to solve the problem of level mismatch between the two parties. The level conversion chip is SN74LVC4245, which has two independent power supplies of 3.3V and 5V, and a pair of symmetrical 8-bit data ports on both sides, which can realize the mutual conversion of 3.3V signals and 5V signals. The DIR pin of SN74LVC4245 controls the transmission direction of the data signal. When the DIR pin is at a high level, the signal is allowed to be transmitted from 5V to 3.3V. When the DIR pin is at a low level, the signal is allowed to be transmitted from 3.3V to 5V. When the microprocessor 1011 reads data from the data bus, the LnWE pin is automatically high, and the signal direction of the DIR pin is from the dual-port RAM to the microprocessor 1011. When the microprocessor 10111011 writes data, the LnWE is automatically low. Ping, DIR pin signal direction from the microprocessor 10111011 to the dual-port RAM, which can control the transmission of both data signals.

指示电路1024,参见图8,与微处理器1011单向连接,用于指示当前通信模块的工作状态,由微处理器1011根据当前通信模块的工作状态向指示电路1024发出指示逻辑信号。Referring to FIG. 8 , the indicating circuit 1024 is unidirectionally connected to the microprocessor 1011 for indicating the working state of the current communication module, and the microprocessor 1011 sends an indicating logic signal to the indicating circuit 1024 according to the working state of the current communication module.

如图8所示,4个LED的阳极与电源电压3.3V连接,4个LED的阴极通过4个1K的限流电阻与微处理器1011的GPG7、GPG10、GPF6、GPF5引脚相连,4个引脚在输出低电平时对应的LED被点亮,微处理器1011根据当前通信接口装置的工作状态,将初始化状态、装置与网络连接状态等反映给指示电路1024。As shown in Figure 8, the anodes of the four LEDs are connected to the power supply voltage 3.3V, and the cathodes of the four LEDs are connected to the GPG7, GPG10, GPF6, and GPF5 pins of the microprocessor 1011 through four 1K current-limiting resistors. When the pin outputs a low level, the corresponding LED is lit, and the microprocessor 1011 reflects the initialization status, device and network connection status, etc. to the indicating circuit 1024 according to the current working status of the communication interface device.

电源电路1025,如图9所示,采用5V供电,包括有电源开关和指示灯,经可带载1.5A的低压差线性稳压源AS1117AR-3.3芯片稳压,5V电源电压经过2.6A保险丝,通过电容滤波后接入AS1117AR-3.3的Vin输入端,AS1117AR-3.3的的GND端直接接地,通过两个相连的Vout引脚输出3.3V稳定电压,AS1117AR-3.3输出的3.3V电压经过电容滤波后提供装置所需要的3.3V稳定电源并接入电源指示灯POWERRED的阳极,电源指示灯POWERRED的阴极经过1K的电阻接地,为通信接口装置提供电源指示。The power supply circuit 1025, as shown in Figure 9, adopts 5V power supply, including a power switch and an indicator light, and is regulated by a low-dropout linear voltage regulator AS1117AR-3.3 chip capable of carrying 1.5A. The 5V power supply voltage passes through a 2.6A fuse. Connect to the Vin input terminal of AS1117AR-3.3 after being filtered by a capacitor, the GND terminal of AS1117AR-3.3 is directly grounded, output a 3.3V stable voltage through two connected Vout pins, and the 3.3V voltage output by AS1117AR-3.3 is filtered by a capacitor Provide the 3.3V stable power required by the device and connect it to the anode of the power indicator POWERRED. The cathode of the power indicator POWERRED is grounded through a 1K resistor to provide power indication for the communication interface device.

复位电路1026,参见图10,与微处理器1011单向连接,用于复位通信接口装置,在复位电路1026接收到来自外部设备的复位信号时,复位电路1026将复位信号发送给微处理器1011,微处理器1011接收到复位信号后重新启动。The reset circuit 1026, referring to Fig. 10, is unidirectionally connected with the microprocessor 1011, and is used to reset the communication interface device. When the reset circuit 1026 receives a reset signal from an external device, the reset circuit 1026 sends the reset signal to the microprocessor 1011 , the microprocessor 1011 restarts after receiving the reset signal.

如图10所示的复位电路1026,MAX811是一款比较简单的复位芯片,3号引脚连接接口电路1027的27引脚,而2号引脚连接微处理器1011的复位引脚nRESET。在3号引脚接收到来自外部设备的一个低电平信号时,MAX811的3号引脚向微处理器1011发送一个低电平信号,微处理器1011的复位引脚接收一个低电平信号后触发复位功能。As shown in the reset circuit 1026 in FIG. 10 , MAX811 is a relatively simple reset chip. Pin 3 is connected to pin 27 of the interface circuit 1027 , and pin 2 is connected to the reset pin nRESET of the microprocessor 1011 . When pin 3 receives a low-level signal from an external device, pin 3 of MAX811 sends a low-level signal to the microprocessor 1011, and the reset pin of the microprocessor 1011 receives a low-level signal Then trigger the reset function.

接口电路1027,参见图11,与外部设备双向连接,用于通信接口装置与外部设备进行互联。如图11所示,接口电路1027采用标准2.0mm间距的15X2针插针器件,用以外部设备与通信接口装置进行数据交换,接插器件1脚与2脚为电源引脚,由外部设备为通信接口装置提供电源,接插器件3脚到7脚连接双口RAM右端的

Figure BDA0000068681440000061
Figure BDA0000068681440000062
引脚,通过控制引脚外部设备与双口RAM相互提供控制逻辑,接插器件8到18引脚为地址信号线,与双口RAM右端地址线A[0:10]R相连,由外部设备提供地址选通信号为双口RAM提供地址信号逻辑,接插器件19到26引脚为数据信号线,与双口RAM右端的数据线I/O[0:7]R相连,与外部设备交换数据信息,接插器件27引脚为复位引脚,与复位电路1026MAX811芯片的3号引脚相连,由外部设备提供复位逻辑信号驱动通信接口装置的复位电路1026,接插器件28引脚NC为空引脚,接插器件29引脚与30引脚为串行口数据引脚,与微处理器1011的TXD0与RXD0引脚相连,用以通信接口装置与PC机进行串行通信交换数据进行固件升级。The interface circuit 1027, referring to FIG. 11, is bidirectionally connected with external equipment, and is used for interconnecting the communication interface device with external equipment. As shown in Figure 11, the interface circuit 1027 adopts a standard 2.0mm pitch 15X2 pin device for data exchange between external equipment and communication interface devices. The communication interface device provides power, and the pins 3 to 7 of the plug-in device are connected to the right end of the dual-port RAM.
Figure BDA0000068681440000061
Figure BDA0000068681440000062
Pins, external devices and dual-port RAM provide mutual control logic through control pins, pins 8 to 18 of the plug-in device are address signal lines, connected to the address line A[0:10]R at the right end of the dual-port RAM, and controlled by external devices Provide address strobe signal to provide address signal logic for dual-port RAM. Pins 19 to 26 of the plug-in device are data signal lines, connected to the data line I/O[0:7]R on the right end of dual-port RAM, and exchanged with external devices Data information, the 27 pins of the plug-in device are reset pins, which are connected to the No. 3 pin of the reset circuit 1026MAX811 chip, and the reset logic signal is provided by the external device to drive the reset circuit 1026 of the communication interface device, and the 28-pin NC of the plug-in device is Empty pins, the 29 pins and 30 pins of the plug-in device are serial port data pins, which are connected with the TXD0 and RXD0 pins of the microprocessor 1011, and are used for serial communication and data exchange between the communication interface device and the PC. Firmware upgrade.

具体体现上,本发明提供的基于双口RAM的嵌入式Ethernet/IP通用通信接口装置,首先在上电后微处理器1011初始化自身的软硬件功能,通过引导代码进入操作系统,启动Ethernet/IP协议栈引导程序,通过指示电路1024显示当前通信接口装置的启动状态。Specifically, the embedded Ethernet/IP universal communication interface device based on dual-port RAM provided by the present invention firstly initializes the software and hardware functions of the microprocessor 1011 after power-on, enters the operating system through the boot code, and starts the Ethernet/IP The protocol stack bootstrap program displays the startup status of the current communication interface device through the indicator circuit 1024 .

然后微处理器1011通过采集数据交换电路1022的外部设备初始化信息,将初始化信息读入Ethernet/IP协议栈引导程序,用以配置IP地址、输入输出I/O数据字节大小等参数,完成初始化功能,通过指示电路1024显示当前初始化状态。当初始化结束后,Ethernet/IP协议栈引导程序将启动Ethernet/IP协议栈主程序开始处理Ethernet/IP报文,分析处理来自Ethernet/IP网络和外部设备的数据信息,根据Ethernet/IP协议规范,将来自Ethernet/IP网络的数据报文自动解包,以及自动打包将要发送到Ethernet/IP网络的数据报文,通过指示电路1024显示当前通信接口装置与外部设备和Ethernet/IP网络的通信状态。Then the microprocessor 1011 reads the initialization information into the Ethernet/IP protocol stack bootloader by collecting the external device initialization information of the data exchange circuit 1022, in order to configure parameters such as IP address, input and output I/O data byte size, and complete the initialization Function, through the indicator circuit 1024 to display the current initialization status. When the initialization is finished, the Ethernet/IP protocol stack boot program will start the main program of the Ethernet/IP protocol stack to start processing Ethernet/IP packets, analyze and process data information from the Ethernet/IP network and external devices, according to the Ethernet/IP protocol specification, Automatically unpack the data message from the Ethernet/IP network, and automatically package the data message to be sent to the Ethernet/IP network, and display the communication status of the current communication interface device, external equipment and the Ethernet/IP network through the indicating circuit 1024.

本发明在上述过程中,微处理器1011首先初始化自身软硬件,利用启动代码引导操作系统的运行,根据初始化信息初始化Ethernet/IP对象模型、通信参数、设置扫描周期以及外围以太网电路1022、数据交换电路等,从而完成通信接口装置初始化过程。然后进行Ethernet/IP配置、组态,在通过Ethernet/IP网络配置、组态之后,通信接口装置就连接上了Ethernet/IP网络,之后通信接口装置就进入无限数据循环交换状态。In the above process of the present invention, the microprocessor 1011 first initializes its own software and hardware, utilizes the startup code to guide the operation of the operating system, and initializes the Ethernet/IP object model, communication parameters, setting scan cycle and peripheral Ethernet circuit 1022, data according to the initialization information. Exchange circuits, etc., thereby completing the initialization process of the communication interface device. Then carry out Ethernet/IP configuration and configuration. After configuring and configuring through the Ethernet/IP network, the communication interface device is connected to the Ethernet/IP network, and then the communication interface device enters an infinite data cycle exchange state.

对于上述本发明提供的装置,该装置在通信接口装置工作异常时,通过指示电路1024立即显示出异常状态,用户能够及时的判断故障原因,能够有效的排查通信过程出现的问题。结合图10所示的电路,在故障发生时可以发出异常提示,提示用户尽快排除故障。此外,当故障排除后通信接口装置立即自动回复正常工作状态,本发明的指示电路1024,响应速度快、电路简单,且成本低廉、工作效率高。For the above-mentioned device provided by the present invention, when the communication interface device is working abnormally, the abnormal state will be displayed immediately through the indicating circuit 1024, so that the user can judge the cause of the failure in time and effectively troubleshoot the problems in the communication process. Combined with the circuit shown in Figure 10, an abnormal prompt can be issued when a fault occurs, prompting the user to eliminate the fault as soon as possible. In addition, when the fault is eliminated, the communication interface device automatically returns to the normal working state immediately. The indicating circuit 1024 of the present invention has fast response speed, simple circuit, low cost and high working efficiency.

对于本发明提供的装置,在与外部设备通信设计中,采用了双口RAM作为外部设备与通信接口装置微处理器1011的共享存储器,设计简单、数据交换实时性高,且利用标准接插器件作为接口电路1027,从而具有广泛的通用性,通信模块可以与任意符合通信模块接口电路1027规范的外部设备互联,大大增强了通信模块的实用性,即插即用,装置利用率高,可以实现外部设备到Ethernet/IP网络的快速接入。在数据交换电路设计中,双口RAM与微处理器1011之间使用电平转换芯片作为隔离元件来解决电平不匹配的问题,使微处理器1011不会由于电平不匹配问题造成硬件损坏,方法简单高效,具有良好的电平转换效果。For the device provided by the present invention, in the design of communication with external equipment, dual-port RAM is adopted as the shared memory of external equipment and communication interface device microprocessor 1011, the design is simple, the real-time performance of data exchange is high, and standard plug-in devices are used As the interface circuit 1027, it has wide versatility. The communication module can be interconnected with any external device that conforms to the specification of the communication module interface circuit 1027, which greatly enhances the practicability of the communication module. It is plug and play, and the device utilization rate is high. Fast access of external devices to Ethernet/IP network. In the data exchange circuit design, a level conversion chip is used as an isolation element between the dual-port RAM and the microprocessor 1011 to solve the problem of level mismatch, so that the microprocessor 1011 will not cause hardware damage due to level mismatch. , the method is simple and efficient, and has a good level conversion effect.

综上所述,与现有技术相比较,本发明提供了一种基于双口RAM的嵌入式通用Ethernet/IP通信接口装置,其具有广泛的通用性,可以与任意满足接口电路1027规范,即具有2.00mm标准间距的15X2针接口插槽的外部设备进行互联,即插即用,便于安装调试,通过指示电路1024及时反映当前通信接口装置的工作状态,方便维护人员进行装置的故障监控和排查,当故障排除后装置自动恢复正常工作,具有重大的实际意义。In summary, compared with the prior art, the present invention provides a dual-port RAM-based embedded universal Ethernet/IP communication interface device, which has wide versatility and can be used with any interface circuit that meets the 1027 specification, namely The 15X2 pin interface slots with a standard spacing of 2.00mm are interconnected with external devices, plug and play, easy to install and debug, and reflect the working status of the current communication interface device in a timely manner through the indicator circuit 1024, which is convenient for maintenance personnel to monitor and troubleshoot the device , when the fault is eliminated, the device automatically resumes normal operation, which has great practical significance.

以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above is only a preferred embodiment of the present invention, it should be pointed out that, for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications can also be made. It should be regarded as the protection scope of the present invention.

Claims (9)

1.一种基于双口RAM的嵌入式通用Ethernet/IP通信接口装置,其特征在于该装置包括核心板单元和底板单元两部分,其中,1. a kind of embedded universal Ethernet/IP communication interface device based on dual-port RAM, it is characterized in that this device comprises two parts of core board unit and base board unit, wherein, 核心板单元:Core board unit: 由微处理器、以及分别与微处理器双向连接的SDRAM电路和FLASH电路构成;所述的核心板单元用于接收发送并分析处理Ethernet/IP工业以太网和外部设备的数据信息,为底板单元中的指示电路提供指示逻辑信号,以及固化系统信息,并为整个装置提供软件支持;It is composed of a microprocessor, SDRAM circuit and FLASH circuit respectively bidirectionally connected with the microprocessor; the core board unit is used to receive, send, analyze and process the data information of Ethernet/IP industrial Ethernet and external equipment, and is a bottom board unit The indication circuit in the system provides indication logic signals, solidifies system information, and provides software support for the entire device; 底板单元,包括:Base unit, consisting of: 核心板接口电路:底板单元通过核心板接口电路与核心板单元连接,使核心板单元与底板单元构成一个整体;Core board interface circuit: the base board unit is connected to the core board unit through the core board interface circuit, so that the core board unit and the base board unit form a whole; 以太网电路:与Ethernet/IP网络双向连接,同时通过核心板接口电路与核心板单元双向连接,通过以太网电路,用于核心板单元与Ethernet/IP网络进行信息交互,交换Ethernet/IP网络数据;Ethernet circuit: two-way connection with the Ethernet/IP network, and two-way connection with the core board unit through the core board interface circuit, and through the Ethernet circuit, it is used for information exchange between the core board unit and the Ethernet/IP network, and exchange of Ethernet/IP network data ; 外部数据交换电路:通过核心板接口电路与核心板单元双向连接,同时通过接口电路与外部设备双向连接,通过外部数据交换电路使核心板单元与外部设备进行通信,交换外部数据;External data exchange circuit: two-way connection with the core board unit through the core board interface circuit, and two-way connection with the external device through the interface circuit, and the core board unit communicates with the external device through the external data exchange circuit to exchange external data; 指示电路:通过核心板接口电路与核心板单元连接,由核心板单元提供指示逻辑信号,通过指示电路指示当前通信接口装置的工作状态,当通信模块工作异常时,指示电路发出异常显示,异常恢复后显示恢复正常;Indicating circuit: connected to the core board unit through the core board interface circuit, the core board unit provides the indicating logic signal, and indicates the working status of the current communication interface device through the indicating circuit. After the display returns to normal; 电源电路:通过核心板接口电路与核心板单元连接,并经过接口电路与外部设备连接,通过电源电路为通信接口装置提供稳定电源;Power supply circuit: connect to the core board unit through the core board interface circuit, and connect to the external equipment through the interface circuit, and provide stable power supply for the communication interface device through the power supply circuit; 复位电路:通过核心板接口电路与核心板单元连接,同时经过接口电路连接外部设备,通过复位电路为通信接口装置提供复位功能,复位电路根据外部设备发出的复位命令信号给于核心板单元复位逻辑信号,复位信号被触发后,通信接口装置将重新启动;Reset circuit: connect to the core board unit through the core board interface circuit, and connect external devices through the interface circuit at the same time, provide reset function for the communication interface device through the reset circuit, and reset the circuit to the reset logic of the core board unit according to the reset command signal sent by the external device signal, after the reset signal is triggered, the communication interface device will restart; 接口电路:通过接口电路为外部设备提供标准电路接口,使通信接口装置能够与任意满足接口电路规范的外部设备互联,即插即用,便于安装调试。Interface circuit: Provide a standard circuit interface for external equipment through the interface circuit, so that the communication interface device can be interconnected with any external equipment that meets the interface circuit specification, plug and play, easy to install and debug. 2.如权利要求1所述的装置,其特征在于,2. The apparatus of claim 1, wherein 所述的核心板单元中的微处理器,用于采集来自以太网电路的Ethernet/IP输入数据并下发输出Ethernet/IP数据,采集来自外部数据交换电路的外部设备数据并下发输出数据,接收复位电路提供的复位信号完成复位功能,向指示电路提供逻辑指示信号反映当前通信接口装置的工作状态,初始化并执行软件协议栈完成通信接口装置所有的软件处理任务;The microprocessor in the core board unit is used to collect Ethernet/IP input data from the Ethernet circuit and send output Ethernet/IP data, collect external device data from the external data exchange circuit and send output data, Receive the reset signal provided by the reset circuit to complete the reset function, provide a logic indicator signal to the indicator circuit to reflect the current working status of the communication interface device, initialize and execute the software protocol stack to complete all the software processing tasks of the communication interface device; 所述的FLASH电路采用FLASH芯片构成,是通信接口装置的程序存储器,存储编程期间的系统信息,保证系统调点后程序信息不丢失,微处理器通过FLASH芯片读写通信接口装置的程序信息以及配置信息;Described FLASH circuit adopts FLASH chip to constitute, is the program memory of communication interface device, stores the system information during programming, guarantees that the program information is not lost after system adjustment, and microprocessor reads and writes the program information of communication interface device through FLASH chip and configuration information; 所述的SDRAM电路采用SDRAM芯片构成,是同步动态随机存储器,通过不断刷新存储阵列保证数据不丢失,为通信接口装置提供程序运行空间和高速数据处理能力;The SDRAM circuit is composed of an SDRAM chip, which is a synchronous dynamic random access memory, which ensures that data is not lost by continuously refreshing the storage array, and provides program running space and high-speed data processing capability for the communication interface device; 3.如权利要求1或2所述的装置,其特征在于所述的核心板接口电路包括2组36X2和两组16X2的间距2.0mm的标准接插器件,使得核心板单元与底板单元双向连接,电气特性以及物理特性上构成一个整体。3. The device according to claim 1 or 2, characterized in that the core board interface circuit includes two sets of 36X2 and two sets of 16X2 standard plug-in devices with a spacing of 2.0mm, so that the core board unit and the base board unit are bidirectionally connected , electrical characteristics and physical characteristics constitute a whole. 4.如权利要求1或2所述的装置,其特征在于所述的以太网电路包括:以太网网控制器DM9000,通过核心板接口电路与核心板单元中微处理器的数据端口LDATA0-LDATA15双向连接,DM9000的TXO+、TXO-、RXI+、RXI-四个引脚与网络滤波器H1102NL的TDP、TDN、RDP、RDN引脚双向连接,用于微处理器与以太网网络交换数据的桥梁,以太网接口器件RJ45的TX+、TX-、RX+、RX-四个引脚与网络滤波器的TXP、TXN、RXP、RXN四个引脚双向连接,为通信接口装置接入以太网提供接口电路,3.3V电源与地信号通过电容、电感电路为以太网电路提供模拟电源与模拟地信号。4. The device as claimed in claim 1 or 2, characterized in that said Ethernet circuit comprises: Ethernet network controller DM9000, through the data port LDATA0-LDATA15 of the microprocessor in the core board interface circuit and the core board unit Two-way connection, the TXO+, TXO-, RXI+, RXI- four pins of DM9000 are connected to the TDP, TDN, RDP, RDN pins of the network filter H1102NL in two directions, which is used as a bridge for the microprocessor to exchange data with the Ethernet network, The TX+, TX-, RX+, RX- four pins of the Ethernet interface device RJ45 are bidirectionally connected with the four pins TXP, TXN, RXP, RXN of the network filter, providing an interface circuit for the communication interface device to access the Ethernet, The 3.3V power supply and ground signal provide analog power supply and analog ground signal for the Ethernet circuit through the capacitor and inductance circuit. 5.如权利要求1或2所述的装置,其特征在于所述的外部数据交换电路包括:一片双口RAM芯片和一片电平转换芯片SN74LVC4245,双口RAM芯片型号为IDT7132,一个双口RAM芯片配备两套独立的地址、数据和控制线,允许两个独立的CPU或控制器同时对该存储器芯片进行随机性的访问,作为微处理器与外部设备的共享数据存储器,用以交换微处理器与外部设备之间的数据信息,并由双口RAM硬件提供地址争用判优逻辑,避免由于对双口RAM同一地址单元数据的读写情况发生而导致的数据错误问题;双口RAM芯片左端地址总线和左端控制总线与微处理器单向连接,由微处理器提供地址和逻辑控制信号,为避免电平不匹配的情况,双口RAM芯片的左端数据总线与电平转换芯片SN74LVC4245的B端数据总线双向连接,电平转换芯片SN74LVC4245的A端数据总线与微处理器的数据总线双向连接,用以双口RAM芯片与微处理器之间交换数据,微处理器的nGCS5与LnWE引脚分别与电平转换芯片SN74LVC4245的片选引脚
Figure FDA0000068681430000021
和方向引脚DIR相连,用以控制电平转换芯片的工作逻辑,双口RAM右端的地址总线、数据总线和控制总线通过接口电路与外部设备互联,由外部设备提供地址、数据和逻辑控制信号。
5. The device as claimed in claim 1 or 2, characterized in that said external data exchange circuit comprises: a dual-port RAM chip and a slice level conversion chip SN74LVC4245, the dual-port RAM chip model is IDT7132, a dual-port RAM The chip is equipped with two sets of independent addresses, data and control lines, allowing two independent CPUs or controllers to simultaneously access the memory chip randomly, as a shared data memory between the microprocessor and external devices, to exchange microprocessors The data information between the device and the external device, and the address contention arbitration logic is provided by the dual-port RAM hardware, so as to avoid the data error problem caused by the reading and writing of the data of the same address unit of the dual-port RAM; the dual-port RAM chip The left address bus and the left control bus are unidirectionally connected to the microprocessor, and the microprocessor provides address and logic control signals. In order to avoid the situation of level mismatch, the left data bus of the dual-port RAM chip and the level conversion chip SN74LVC4245 The B-side data bus is bidirectionally connected, and the A-side data bus of the level conversion chip SN74LVC4245 is bidirectionally connected to the data bus of the microprocessor, which is used to exchange data between the dual-port RAM chip and the microprocessor. The nGCS5 of the microprocessor and the LnWE pin The pins are respectively connected with the chip select pins of the level conversion chip SN74LVC4245
Figure FDA0000068681430000021
It is connected to the direction pin DIR to control the working logic of the level conversion chip. The address bus, data bus and control bus at the right end of the dual-port RAM are connected to external devices through the interface circuit, and the external devices provide address, data and logic control signals .
6.如权利要求1或2所述的装置,其特征在于所述的指示电路包括:4个并联的LED灯,各支路LED灯通过限流电阻及核心板接口电路与核心板单元中的微处理器单向连接,由微处理器提供逻辑信号,反映当前通信接口装置的工作情况,通信接口装置工作异常时,LED灯显示异常,当故障排除后LED灯恢复正常显示。6. The device as claimed in claim 1 or 2, characterized in that said indicating circuit comprises: 4 LED lamps connected in parallel, and each branch LED lamp communicates with the core board unit through a current-limiting resistor and a core board interface circuit. The microprocessor is one-way connected, and the microprocessor provides logic signals to reflect the current working conditions of the communication interface device. When the communication interface device is working abnormally, the LED light will display abnormally. After the fault is eliminated, the LED light will return to normal display. 7.如权利要求1或2所述的所述的装置,其特征在于所述的电源电路包括:采用5V供电,经可带载1.5A的低压差线性稳压源AS1117AR-3.3芯片稳压,5V电源电压经过2.6A保险丝,通过电容滤波后接入AS1117AR-3.3的Vin输入端,AS1117AR-3.3的GND端直接接地,通过两个相连的Vout引脚输出3.3V稳定电压,AS1117AR-3.3输出的3.3V电压经过电容滤波后提供装置所需要的3.3V稳定电源并接入电源指示灯POWERRED的阳极,电源指示灯POWERRED的阴极经过1K的电阻接地,为通信接口装置提供电源指示。7. The device according to claim 1 or 2, characterized in that the power supply circuit includes: using 5V power supply, the voltage is stabilized by a low-dropout linear voltage regulator AS1117AR-3.3 chip capable of carrying 1.5A, The 5V power supply voltage is connected to the Vin input terminal of AS1117AR-3.3 after passing through a 2.6A fuse and filtered by a capacitor. The GND terminal of AS1117AR-3.3 is directly grounded, and a 3.3V stable voltage is output through two connected Vout pins. AS1117AR-3.3 outputs After the 3.3V voltage is filtered by the capacitor, the 3.3V stable power supply required by the device is provided and connected to the anode of the power indicator POWERRED. The cathode of the power indicator POWERRED is grounded through a 1K resistor to provide power indication for the communication interface device. 8.如权利要求1或2所述的装置,其特征在于所述复位电路包括:复位芯片MAX811,复位芯片MAX811的输入端与接口电路单元相连,由外部设备提供复位逻辑信号,复位芯片MAX811的输出端通过核心板接口电路与核心板单元中的微处理器的复位引脚nRESET引脚相连,当有外部设备触发复位逻辑信号时为微处理器提供复位能力。8. The device as claimed in claim 1 or 2, wherein the reset circuit comprises: a reset chip MAX811, the input end of the reset chip MAX811 is connected to the interface circuit unit, and the reset logic signal is provided by an external device, and the reset chip MAX811 The output end is connected to the reset pin nRESET pin of the microprocessor in the core board unit through the core board interface circuit, and provides reset capability for the microprocessor when an external device triggers a reset logic signal. 9.如权利要求5所述的装置,其特征在于所述接口电路包括:标准2.0mm间距的15X2针插针器件,用以外部设备与通信接口装置进行数据交换,接插器件1脚与2脚为电源引脚,由外部设备为通信接口装置提供电源,接插器件3脚到7脚为控制引脚,外部设备通过控制引脚与通信接口装置相互提供控制逻辑,接插器件8到18引脚为地址信号线,由外部设备提供双口RAM右端地址总线地址信号,接插器件19到26引脚为数据信号线,外部设备与双口RAM右端数据总线交换数据信息,接插器件27引脚为复位引脚,由外部设备提供复位逻辑信号驱动通信接口装置的复位电路,接插器件28引脚为空引脚,接插器件29与30引脚为串行口数据引脚,通过核心板接口电路与核心板单元中的微处理器的串行口引脚相连,用以通信接口装置与PC机进行串行通信交换数据进行固件升级。9. The device according to claim 5, characterized in that the interface circuit comprises: a standard 2.0mm pitch 15X2-pin device for exchanging data between external equipment and the communication interface device, the 1 pin of the plug-in device and the 2 Pins are power supply pins, external equipment provides power for communication interface devices, pins 3 to 7 of the plug-in device are control pins, external devices provide control logic to each other through control pins and communication interface devices, and plug-in devices 8 to 18 The pins are address signal lines, and the external device provides the address signal of the address bus at the right end of the dual-port RAM. The pin is a reset pin, and the external device provides a reset logic signal to drive the reset circuit of the communication interface device. The 28 pins of the plug-in device are empty pins, and the 29 and 30 pins of the plug-in device are serial port data pins. The interface circuit of the core board is connected with the serial port pin of the microprocessor in the core board unit, and is used for the serial communication exchange data between the communication interface device and the PC for firmware upgrade.
CN201110161643.0A 2011-06-16 2011-06-16 Embedded Universal Ethernet/IP Communication Interface Device Based on Dual-port RAM Expired - Fee Related CN102255975B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110161643.0A CN102255975B (en) 2011-06-16 2011-06-16 Embedded Universal Ethernet/IP Communication Interface Device Based on Dual-port RAM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110161643.0A CN102255975B (en) 2011-06-16 2011-06-16 Embedded Universal Ethernet/IP Communication Interface Device Based on Dual-port RAM

Publications (2)

Publication Number Publication Date
CN102255975A true CN102255975A (en) 2011-11-23
CN102255975B CN102255975B (en) 2014-05-21

Family

ID=44982965

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110161643.0A Expired - Fee Related CN102255975B (en) 2011-06-16 2011-06-16 Embedded Universal Ethernet/IP Communication Interface Device Based on Dual-port RAM

Country Status (1)

Country Link
CN (1) CN102255975B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064311A (en) * 2012-12-12 2013-04-24 南充市鹰派科技有限公司 Electronic warfare system
CN103293995A (en) * 2013-06-09 2013-09-11 南车株洲电力机车研究所有限公司 Field bus communication module based on microcontroller
CN104539273A (en) * 2014-12-06 2015-04-22 佛山市雅洁源科技股份有限公司 Plug wire control mainboard structure for direct drinking water device
CN105867190A (en) * 2016-04-15 2016-08-17 北京博瑞爱飞科技发展有限公司 Interface system and interface control method of unmanned aerial vehicle
CN113079480A (en) * 2021-04-12 2021-07-06 广东轻工职业技术学院 A wireless communication interface device
CN114402568A (en) * 2019-08-02 2022-04-26 欧姆龙株式会社 Network system, information processing device, and information processing method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5819050A (en) * 1996-02-29 1998-10-06 The Foxboro Company Automatically configurable multi-purpose distributed control processor card for an industrial control system
CN102035679A (en) * 2010-12-17 2011-04-27 天津理工大学 Ethernet/IP protocol based remote I/O (Input/ Output) module with short-circuit protection and self diagnosis function

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5819050A (en) * 1996-02-29 1998-10-06 The Foxboro Company Automatically configurable multi-purpose distributed control processor card for an industrial control system
CN102035679A (en) * 2010-12-17 2011-04-27 天津理工大学 Ethernet/IP protocol based remote I/O (Input/ Output) module with short-circuit protection and self diagnosis function

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ZAIPING CHEN,YI WEI,CHAO JIA: "《Advanced Materials Research》", 28 March 2011, article "《Communication Technology Research Based on Ethernet/IP》" *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064311A (en) * 2012-12-12 2013-04-24 南充市鹰派科技有限公司 Electronic warfare system
CN103293995A (en) * 2013-06-09 2013-09-11 南车株洲电力机车研究所有限公司 Field bus communication module based on microcontroller
CN103293995B (en) * 2013-06-09 2016-01-20 南车株洲电力机车研究所有限公司 Based on the fieldbus communications module of microcontroller
CN104539273A (en) * 2014-12-06 2015-04-22 佛山市雅洁源科技股份有限公司 Plug wire control mainboard structure for direct drinking water device
CN105867190A (en) * 2016-04-15 2016-08-17 北京博瑞爱飞科技发展有限公司 Interface system and interface control method of unmanned aerial vehicle
CN114402568A (en) * 2019-08-02 2022-04-26 欧姆龙株式会社 Network system, information processing device, and information processing method
US12013675B2 (en) 2019-08-02 2024-06-18 Omron Corporation Network system, information processing device, and information processing method
CN113079480A (en) * 2021-04-12 2021-07-06 广东轻工职业技术学院 A wireless communication interface device

Also Published As

Publication number Publication date
CN102255975B (en) 2014-05-21

Similar Documents

Publication Publication Date Title
CN116501681B (en) CXL data transmission board card and method for controlling data transmission
CN208188815U (en) BMC module system
CN102255975A (en) Dual-port-random access memory (RAM)-based embedded common Ethernet/Internet protocol (IP) communication interface device
CN101533380A (en) Multi-device connection system
CN207408936U (en) A kind of multiplex roles PCIE device adapter
CN204966020U (en) Scanning card, LED lamp plate, switching card and LED display screen control system
CN109271330A (en) Universal BMC system based on integrated information system
CN112000501A (en) A management system for multi-node partition server to access I2C devices
CN102724093A (en) Advanced telecommunications computing architecture (ATCA) machine frame and intelligent platform management bus (IPMB) connection method thereof
CN105281433A (en) Distribution terminal communication system
CN103067201B (en) A kind of multi-protocol communication manager
CN206249290U (en) A kind of server test device
CN102880235A (en) Single-board computer based on loongson 2F central processing unit (CPU) as well as reset management and using method of single-board computer
CN217085747U (en) Multi-interface communication device based on VPX bus
CN202583795U (en) Hot-plug PLC multi-interface communication module
CN100383544C (en) A real-time monitoring method and device for a level signal
CN105426334B (en) Parallel extensive usb expansion device and working method, system
CN202143108U (en) A Universal Ethernet/IP Communication Interface Device
CN101442460A (en) Industry Ethernet adapter
CN107942808B (en) DCS capacity expanding device
CN205754298U (en) An intelligent communication extension component applied to photovoltaic power generation system
CN205263790U (en) Display control board
CN107391332A (en) A kind of storage system and debugging system
CN204009881U (en) A kind of PCIE board with monitoring function
CN112019402A (en) A kind of intelligent network card multifunctional debugging device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140521

Termination date: 20160616