CN105763336B - The multiple network protocol switching method and switching device of single network interface card - Google Patents
The multiple network protocol switching method and switching device of single network interface card Download PDFInfo
- Publication number
- CN105763336B CN105763336B CN201610076761.4A CN201610076761A CN105763336B CN 105763336 B CN105763336 B CN 105763336B CN 201610076761 A CN201610076761 A CN 201610076761A CN 105763336 B CN105763336 B CN 105763336B
- Authority
- CN
- China
- Prior art keywords
- chip
- spi bus
- network
- piece
- eeprom
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/08—Protocols for interworking; Protocol conversion
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Communication Control (AREA)
Abstract
A kind of the multiple network protocol switching method and switching device of single network interface card, the spi bus channel of network chip in single network interface card is connected to piece to select on the S-SPI bus run of chip, piece is selected to six P-SPI bus runs on chip again, it is connected respectively on the spi bus channel of six eeprom chips, and respectively each eeprom chip downloads the EEPROM program of corresponding different network protocol;The control of chip is selected by logic unit piece, and management network chip calls EEPROM program and network interface card in which eeprom chip to export the operating time of this network protocol, to realize that network chip exports different network protocols at times.The present invention realizes the one card for multiple uses of single network interface card, under the premise of ensuring safety and the working efficiency of communication apparatus, reduces board quantity in communication apparatus, alleviates the weight of communication apparatus, reduces the volume of communication apparatus.
Description
Technical field
The present invention relates to the technical field of collection of simulant signal, the multiple network agreement of specifically a kind of single network interface card is cut
Change method and switching device.
Background technique
With the development of microelectronic industry, the promotion of chip fabrication technique, major chip manufacturer collects on small chip
At function it is more and more, the development of network chip is exactly a good example, and the network chip of present state-of-the-art technology is not only
It increased in the quantity of network interface, and it supports the type of network protocol also to increased, such as Intel Company's hair
The network chips such as the Intel-82580EB and Intel-I350 of cloth, so that it may support 1000Base-T, Serdes-BX, Serdes-
KX, Serdes-Fiber, SGMII-PHF, SFP up to 6 kinds of network protocols, moreover, every kind of network protocol all supports 4 tunnels individual
Network interface allows for the network card design company in downstream when the network interface card product of different network protocol is supported in design in this way, it is not necessary to
Select a kind of more a variety of network chips for supporting network protocol, a kind of network chip that supporting multiple network protocol meets its complete set
The design requirement of network interface card product.
With the development and progress of network communication technology and the birth of more network agreement, it is based on multiple network agreement
Between be unable to connection communication, steal, distort the advantages of Content of Communication, and the considerations of for communication security, multiple network protocol it is logical
News technology is gradually used by different communication fields, after the mechanics of communication using multiple network protocol, the communication apparatus and the external world
Other each communication apparatus all use a kind of unique communication protocol different from his equipment when communicating, thus substantially increase
The safety of network communication.
Although the safety is improved for network communication, the single communication association of grafting multiple types multi-quantity in communication apparatus
The network interface card of view, following problem is exactly: communication apparatus volume becomes huge, is not easy to carry, install, and communication apparatus
Power consumption also increase many, to power supply vehicle, higher requirements are also raised, above problem cause communications equipment open country
The decline of outer maneuverability, and the reduction of communication efficiency.
Summary of the invention
The technical problem to be solved in the present invention is to provide the multiple network protocol switching sides of specifically a kind of single network interface card
Method and switching device.
The technical scheme adopted by the present invention to solve the technical problems existing in the known art is that
The multiple network protocol switching method of single network interface card of the invention, by the spi bus of network chip in single network interface card
Channel is connected to spi bus piece and selects on the S-SPI bus run of chip, then selects six P-SPI on chip total spi bus piece
Line passage, i.e. P-SPI0 are connected respectively on the spi bus channel of six eeprom chips to P-SPI5, and are respectively each
Eeprom chip downloads the EEPROM program of corresponding different network protocol;Core is selected into logic control element port and spi bus piece
The control port of piece is connected, and 6 kinds of working conditions of chip is selected by logic control element control spi bus piece, it may be assumed that state 0 is corresponding
S-SPI bus run is communicated with P-SPI0 bus run, and the corresponding S-SPI bus run of state 1 is communicated with P-SPI1 bus run,
And so on communicated to the corresponding S-SPI bus run of state 6 with P-SPI5 bus run, spi bus piece selects S-SPI in chip total
Line passage is connected with a P-SPI bus run every time, that is, calls a corresponding EEPROM program in corresponding eeprom chip.
The present invention can also use following technical measures:
Logic control element control spi bus piece selects chip to circuit sequentially switching in six kinds of working conditions.
Logic control element controls six work shapes that spi bus piece selects chip by three control bits C2, C1, C0
State.Specific control bit and the corresponding relationship of working condition are as shown in following table 1.
The control bit of 1 logic control element of table selects the corresponding table of chip operation state with spi bus piece
As shown in Figure 1, the multiple network protocol switching method of single network interface card, specifically includes the following steps:
Step S0, communication equipment power on, and network chip is started to work;
Step S1, spi bus piece select chip to execute state 0, and network chip starts to adjust the program in eeprom chip 0, and
Complete the output of corresponding network protocol;
After step S2, step S1 execute 3ms, spi bus piece selects chip to execute state 1, and network chip starts to adjust
Program in eeprom chip 1, and complete the output of corresponding network protocol;
After step S3, step S2 execute 3ms, spi bus piece selects chip to execute state 2, and network chip starts to adjust
Program in eeprom chip 2, and complete the output of corresponding network protocol;
After step S4, step S3 execute 3ms, spi bus piece selects chip to execute state 3, and network chip starts to adjust
Program in eeprom chip 3, and complete the output of corresponding network protocol;
After step S5, step S4 execute 3ms, spi bus piece selects chip to execute state 4, and network chip starts to adjust
Program in eeprom chip 4, and complete the output of corresponding network protocol;
After step S6, step S5 execute 3ms, spi bus piece selects chip to execute state 5, and network chip starts to adjust
Program in eeprom chip 5, and complete the output of corresponding network protocol.
Step S1 is continued to execute after step S5 executes 3ms, in cycles, until device powers down.
According to the standard of network communication, the time of one bag data of every transmitting-receiving is not more than 2ms in network communication, and network chip
The time of EEPROM program is called to be no more than 1ms, so we set the state retention time in logic control element to
3ms, it may be assumed that each state stops the 3ms time, 6 state successively rotations, can make network chip point in the time of 18ms in this way
Period output kind network protocol thus makes network interface card have a function of card six, in addition, if only needing to prop up in communication equipment
5 kinds or less network protocol are held, then only needs to set default setting for corresponding states in logic control element, is grasped
Make simple.
The multiple network protocol switching device of single network interface card of the invention, including spi bus piece select chip, network chip,
Logic control element and eeprom chip;Wherein network chip is that multiprotocol network chip, network chip is supported to pass through spi bus
The S-SPI bus run of chip is selected to be connected with spi bus piece, spi bus piece selects chip to pass through six P-SPI bus runs point
It is not connected with six eeprom chips;Logic control element selects chip by three control bits C2, C1, C0 and spi bus piece
Control port be connected.
The advantages and positive effects of the present invention are:
In the multiple network protocol switching method and switching device of single network interface card of the invention, by network core in single network interface card
The spi bus channel of piece is connected to spi bus piece and selects on the S-SPI bus run of chip, then piece is selected to six P- on chip
Spi bus channel, i.e. P-SPI0 are connected respectively on the spi bus channel of six eeprom chips to P-SPI5, and are respectively
Each eeprom chip downloads the EEPROM program of corresponding different network protocol;The control of chip is selected piece by logic unit, is managed
Reason network chip calls EEPROM program in which eeprom chip and network interface card to export the operating time of this network protocol,
To realize that network chip exports different network protocols at times, thus principle designs network interface card and can then support at times
Multiple network protocol.The present invention realizes the one card for multiple uses of single network interface card, in the safety and work for ensuring communication apparatus
Under the premise of efficiency, reduce board quantity in communication apparatus, alleviate the weight of communication apparatus, reduces the body of communication apparatus
Product, the lightweight of communication apparatus, miniaturization, high efficiency are made that technology guarantees.
Detailed description of the invention
Fig. 1 is the specific flow chart of the embodiment of the multiple network protocol switching method of single network interface card of the invention;
Fig. 2 is the configuration diagram of the multiple network protocol switching device of single network interface card of the invention.
Specific embodiment
Referring to specific embodiment, the present invention will be described in detail.
The multiple network protocol switching method of single network interface card of the invention, by the spi bus of network chip in single network interface card
Channel is connected to spi bus piece and selects on the S-SPI bus run of chip, then piece is selected six P-SPI bus runs on chip,
That is P-SPI0 to P-SPI5 is connected respectively on the spi bus channel of six eeprom chips, and respectively each eeprom chip
The EEPROM program of corresponding different network protocol is downloaded, to guarantee that network chip can have an opportunity to call each eeprom chip
In EEPROM program, carry out Configuration network chip, and export different network protocols;Logic control element port and SPI is total
Line piece selects the control port of chip to be connected, and 6 kinds of working conditions of chip is selected by logic control element control spi bus piece, it may be assumed that shape
The corresponding S-SPI bus run of state 0 is communicated with P-SPI0 bus run, and the corresponding S-SPI bus run of state 1 and P-SPI1 bus are logical
Road communicates, and so on communicated to the corresponding S-SPI bus run of state 6 with P-SPI5 bus run, spi bus piece selects in chip
S-SPI bus run is connected with a P-SPI bus run every time, that is, calls a correspondence in corresponding eeprom chip
EEPROM program.The control of chip is selected by logic unit spi bus piece, so that it may manage which network chip calls
EEPROM program and network interface card in eeprom chip export the operating time of this network protocol, to realize that network chip is defeated at times
Different network protocol out.
Logic control element control spi bus piece selects chip to circuit sequentially switching in six kinds of working conditions.
Logic control element controls six work shapes that spi bus piece selects chip by three control bits C2, C1, C0
State.
As shown in Fig. 2, the multiple network protocol switching device of single network interface card of the invention, including spi bus piece select chip,
Network chip, logic control element and eeprom chip;Wherein network chip is to support multiprotocol network chip, and network chip is logical
It crosses spi bus and selects the S-SPI bus run of chip to be connected with spi bus piece, spi bus piece selects chip to pass through six P-SPI
Bus run is connected with six eeprom chips respectively;Logic control element is total by three control bits C2, C1, C0 and SPI
Line piece selects the control port of chip to be connected.The network interface card for being provided with switching device of the invention can support multiple network at times
Protocol.
The above described is only a preferred embodiment of the present invention, be not intended to limit the present invention in any form, though
The right present invention has been described by way of example and in terms of the preferred embodiments, however, being not intended to limit the invention, any technology people for being familiar with this profession
Member can make a little change or modification using the technology contents disclosed certainly without departing from the scope of the present invention, at
For the equivalent embodiment of equivalent variations, but anything that does not depart from the technical scheme of the invention content, according to the technical essence of the invention
Any simple modification, equivalent change and modification to the above embodiments, belong in the range of technical solution of the present invention.
Claims (6)
1. a kind of multiple network protocol switching method of single network interface card, it is characterised in that: by the SPI of network chip in single network interface card
Bus run is connected to spi bus piece and selects on the S-SPI bus run of chip, then spi bus piece is selected to six on chip
PSPI bus run, i.e. P-SPI0 are connected respectively on the spi bus channel of six eeprom chips to P-SPI5, and respectively
The EEPROM program of corresponding different network protocol is downloaded for each eeprom chip;By logic control element port and spi bus piece
It selects the control port of chip to be connected, 6 kinds of working conditions of chip is selected by logic control element control spi bus piece, it may be assumed that state 0
Corresponding S-SPI bus run is communicated with P-SPI0 bus run, the corresponding S-SPI bus run of state 1 and P-SPI1 bus run
Communicate, and so on communicated to the corresponding S-SPI bus run of state 6 with P-SPI5 bus run, spi bus piece selects in chip
SSPI bus run is connected with a P-SPI bus run every time, that is, calls a correspondence in corresponding eeprom chip
EEPROM program.
2. the multiple network protocol switching method of single network interface card according to claim 1, it is characterised in that: logic control list
Member control spi bus piece selects chip to circuit sequentially switching in six kinds of working conditions.
3. the multiple network protocol switching method of single network interface card according to claim 1 or 2, it is characterised in that: logic control
Unit processed controls six working conditions that spi bus piece selects chip by three control bits C2, C1, C0.
4. the multiple network protocol switching method of single network interface card according to claim 3, it is characterised in that: specifically include with
Lower step:
Step S0, communication equipment power on, and network chip is started to work;
Step S1, spi bus piece select chip to execute state 0, and network chip starts to adjust the program in eeprom chip 0, and completes
The output of corresponding network protocol;
After step S2, step S1 execute 3ms, spi bus piece selects chip to execute state 1, and network chip starts to adjust EEPROM core
Program in piece 1, and complete the output of corresponding network protocol;
After step S3, step S2 execute 3ms, spi bus piece selects chip to execute state 2, and network chip starts to adjust EEPROM core
Program in piece 2, and complete the output of corresponding network protocol;
After step S4, step S3 execute 3ms, spi bus piece selects chip to execute state 3, and network chip starts to adjust EEPROM core
Program in piece 3, and complete the output of corresponding network protocol;
After step S5, step S4 execute 3ms, spi bus piece selects chip to execute state 4, and network chip starts to adjust EEPROM core
Program in piece 4, and complete the output of corresponding network protocol;
After step S6, step S5 execute 3ms, spi bus piece selects chip to execute state 5, and network chip starts to adjust EEPROM core
Program in piece 5, and complete the output of corresponding network protocol.
5. step S1 is continued to execute after step S5 executes 3ms, in cycles, until device powers down.
6. a kind of multiple network protocol switching device of single network interface card, it is characterised in that: select chip, network including spi bus piece
Chip, logic control element and eeprom chip;The spi bus channel of network chip is connected to spi bus piece in single network interface card
It selects on the S-SPI bus run of chip, then spi bus piece is selected into six PSPI bus runs on chip, i.e. P-SPI0 to P-
SPI5 is connected respectively on the spi bus channel of six eeprom chips, and respectively each eeprom chip downloading is corresponding different
The EEPROM program of network protocol;The control port of chip is selected to be connected with spi bus piece logic control element port, by logic
Control unit control spi bus piece selects 6 kinds of working conditions of chip, and wherein network chip is to support multiprotocol network chip, net
Network chip selects the S-SPI bus run of chip to be connected by spi bus with spi bus piece, and spi bus piece selects chip by six
A P-SPI bus run is connected with six eeprom chips respectively;Logic control element passes through three control bits C2, C1, C0
The control port of chip is selected to be connected with spi bus piece.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610076761.4A CN105763336B (en) | 2016-02-04 | 2016-02-04 | The multiple network protocol switching method and switching device of single network interface card |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610076761.4A CN105763336B (en) | 2016-02-04 | 2016-02-04 | The multiple network protocol switching method and switching device of single network interface card |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105763336A CN105763336A (en) | 2016-07-13 |
CN105763336B true CN105763336B (en) | 2019-04-09 |
Family
ID=56329950
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610076761.4A Active CN105763336B (en) | 2016-02-04 | 2016-02-04 | The multiple network protocol switching method and switching device of single network interface card |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105763336B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107748725A (en) * | 2017-10-24 | 2018-03-02 | 天津市英贝特航天科技有限公司 | Display protocol switching device and method based on AMD display card |
CN110727620A (en) * | 2019-09-12 | 2020-01-24 | 珠海格力电器股份有限公司 | Motion controller and communication interface extension method of motion controller |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1592301A (en) * | 2003-09-02 | 2005-03-09 | 华为技术有限公司 | Communication method of realizing multi-IP addresses |
CN1902585A (en) * | 2003-11-12 | 2007-01-24 | 英特尔公司 | Method, system, and program for interfacing with a network adaptor supporting a plurality of devices |
CN101150412A (en) * | 2007-10-18 | 2008-03-26 | 中兴通讯股份有限公司 | A method for realizing dual-protocol stack switching based on network card |
CN101719873A (en) * | 2009-12-11 | 2010-06-02 | 曙光信息产业(北京)有限公司 | Kilomega virtual network card |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7599289B2 (en) * | 2005-05-13 | 2009-10-06 | Lockheed Martin Corporation | Electronic communication control |
-
2016
- 2016-02-04 CN CN201610076761.4A patent/CN105763336B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1592301A (en) * | 2003-09-02 | 2005-03-09 | 华为技术有限公司 | Communication method of realizing multi-IP addresses |
CN1902585A (en) * | 2003-11-12 | 2007-01-24 | 英特尔公司 | Method, system, and program for interfacing with a network adaptor supporting a plurality of devices |
CN101150412A (en) * | 2007-10-18 | 2008-03-26 | 中兴通讯股份有限公司 | A method for realizing dual-protocol stack switching based on network card |
CN101719873A (en) * | 2009-12-11 | 2010-06-02 | 曙光信息产业(北京)有限公司 | Kilomega virtual network card |
Also Published As
Publication number | Publication date |
---|---|
CN105763336A (en) | 2016-07-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105763336B (en) | The multiple network protocol switching method and switching device of single network interface card | |
CN206075271U (en) | A kind of protocol converter for supporting various serial protocols | |
CN110457244A (en) | A kind of communication mode conversion method, system and the processor of serial ports | |
CN208689144U (en) | A kind of battery charging and discharging test macro based on middle-position machine control | |
CN107239422A (en) | A kind of lossless method for receiving bursty data of TTL serial ports under low-power consumption mode | |
CN108089491A (en) | A kind of multi-channel-CAN communication bus ports-Extending method and system | |
CN202058139U (en) | Serial port conversion module based on universal asynchronous receiver/transmitter (UART) serial port expansion chip | |
CN208128284U (en) | A kind of Ethernet based on S698PM turns Multi-path synchronous serial interface communication apparatus | |
CN201699737U (en) | High-performance communication processing and control platform device | |
CN206948301U (en) | A kind of switching device of eSIM cards | |
CN110572920A (en) | Automatic code writing system and method for connecting multiple lamps | |
CN104007944A (en) | Debugging printing method and system | |
CN104486102B (en) | A kind of multifunctional network equipment and flow processing method | |
CN202750101U (en) | Ethernet message processor | |
CN109818941A (en) | Realize that 10GE interface equipment supports the system and method for 25GE interface | |
CN205920159U (en) | A generic interface for electric energy meter | |
CN209417723U (en) | Bluetooth and multiplex roles intercommunication intelligence attached device | |
CN105471863B (en) | The embedded adaptive device of Fibre Optical Sensor, system and building method towards heterogeneous network | |
CN110262989A (en) | A kind of multifunctional communication converter and the means of communication | |
CN206258981U (en) | A kind of terminal control circuitry | |
CN103957470A (en) | Video-oriented traffic control and optimization method and system | |
CN103227744A (en) | Bridging chip for wireless module and wired network | |
CN107548131A (en) | A kind of mobile broadband equipment and its electricity saving method | |
CN103107570B (en) | The communication structure of battery management system and the extended method of battery management system | |
CN206212025U (en) | CAN message changes equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |