A kind of serial server with function of exchange
Technical field
The present invention relates to communication technique field, relate in particular to a kind of serial server with function of exchange.
Background technology
Along with the continuous development of ethernet technology, increasing field level equipment begins to adopt the main interface of Ethernet as data communication.Yet also have numerous serial equipment still to exist at the Industry Control scene, serial server becomes the best equipment that the existing serial equipment of solution is networked immediately undoubtedly.
Serial server is actually a kind of protocol conversion device, usually serial server has an Ethernet interface and one or more serial line interface, the user can utilize serial server to become Ethernet data to transmit the data transaction of user's serial equipment, thereby reaches the purpose of networking.
Yet in the middle of actual use,, must rely on ethernet switching device to carry out Y-connection, as shown in Figure 1 because serial server networking pattern is single.Therefore influenced the application of serial server greatly at the Industry Control scene.
Summary of the invention
The technical problem to be solved in the present invention provides a kind of serial server with function of exchange.
For solving the problems of the technologies described above, the objective of the invention is to be achieved through the following technical solutions.
A kind of serial server with function of exchange comprises: power supply, ethernet interface circuit, Ethernet switching chip, serial interface circuit, the universal asynchronous reception of UART/transmission chip, ROM/FLASH, RAM and processor;
Described Ethernet switching chip links to each other with ethernet interface circuit, is used for the realization of Ethernet function of exchange;
Described UART chip links to each other with serial interface circuit, is used for the realization of various different serial port functions;
Described processor links to each other with RAM, ROM/FLASH respectively, is used for the operation of serial server maim body; Described processor also links to each other with the UART chip with Ethernet switching chip respectively.
Wherein, also comprise: the LED indicating circuit, described LED indicating circuit links to each other with processor, is used to realize the indication of product function and ruuning situation.
Wherein, also comprise: EEPROM (Electrically Erasable Programmable Read Only Memo) EEPROM, described EEPROM links to each other with processor, is used to store the configuration information of user to serial server.
Wherein, adopt the MII/RMII interface to realize between described Ethernet chip and the processor.
Above technical scheme as can be seen, the present invention has following beneficial effect:
The present invention is by being integrated into the Ethernet function of exchange in the serial server, thereby fundamentally changed the networking mode of existing Ethernet serial server, can realize that not only Y-connection, chain connect, tree-like connection, and in conjunction with Ethernet looped network algorithm, can realize safer looped network connected mode, be with a wide range of applications at industrial control field.
Description of drawings
Fig. 1 is existing serial server networking schematic diagram;
Fig. 2 is a serial server structured flowchart of the present invention;
Fig. 3 is the embodiment of the invention 1 a chain structure networking schematic diagram;
Fig. 4 is the embodiment of the invention 2 a tree structures networking schematic diagram;
Fig. 5 is the embodiment of the invention 3 a loop configuration networking schematic diagram.
Embodiment
Core concept of the present invention: the present invention is by being integrated into the Ethernet function of exchange in the serial server, (this class chip is very abundant to use Ethernet switching chip, the BCM5325E of broadcom company etc. for example) substitutes single ethernet controller or PHY chip in the existing serial server, thereby make serial server self possess function of exchange, fundamentally change the networking mode of existing Ethernet serial server, realized networking modes such as the Y-connection of Ethernet serial server, chain connection, tree-like connection.
For ease of the present invention is further understood, now reach specific embodiment in conjunction with the accompanying drawings and describe the present invention.
See also shown in Figure 2ly, comprising: power supply, ethernet interface circuit, Ethernet switching chip, serial interface circuit, UART (universal asynchronous reception/transmission) chip, processor, LED indicating circuit, RAM, ROM or FLASH, EEPROM (EEPROM (Electrically Erasable Programmable Read Only Memo));
Power supply is used to each built-up circuit to provide work required power supply;
Ethernet switching chip links to each other with ethernet interface circuit, is used for the realization of Ethernet function of exchange;
The UART chip links to each other with serial interface circuit, is used for the realization of various different serial port functions;
The LED indicating circuit links to each other with processor, is used to realize the indication of product function and ruuning situation;
Processor links to each other with RAM, ROM or FLASH respectively, is used for the operation of serial server maim body;
EEPROM links to each other with processor, is used to store the configuration information of user to serial server, if with information stores in FLASH this part can ignore; Processor also links to each other with the UART chip with Ethernet switching chip respectively.
Connected mode is varied between above-mentioned Ethernet chip and the processor, can adopt the MII/RMII interface to realize usually.
On the basis of above-mentioned hardware, not only can realize having the serial server of exchange capacity, and, can also realize a series of network functions such as VLAN, IGMP, broadcast storm are drawn up, QOS in conjunction with the exchanger chip resource, improve the range of application of serial server greatly.
The present invention is by being integrated into the Ethernet function of exchange in the serial server, thereby fundamentally changed the networking mode of existing Ethernet serial server, can realize that not only chain connects (Fig. 3), tree-like connection (Fig. 4), annular connects (Fig. 5), and, can realize safer looped network connected mode in conjunction with Ethernet looped network algorithm.
More than a kind of serial server with function of exchange provided by the present invention is described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.