CN111935563A - Photoelectric free switching connection method - Google Patents
Photoelectric free switching connection method Download PDFInfo
- Publication number
- CN111935563A CN111935563A CN202010598468.0A CN202010598468A CN111935563A CN 111935563 A CN111935563 A CN 111935563A CN 202010598468 A CN202010598468 A CN 202010598468A CN 111935563 A CN111935563 A CN 111935563A
- Authority
- CN
- China
- Prior art keywords
- phy
- physical layer
- optical
- light energy
- setting
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 15
- 230000003287 optical effect Effects 0.000 claims abstract description 28
- 238000004891 communication Methods 0.000 claims abstract description 20
- 239000013307 optical fiber Substances 0.000 claims description 9
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q11/00—Selecting arrangements for multiplex systems
- H04Q11/0001—Selecting arrangements for multiplex systems using optical switching
- H04Q11/0062—Network aspects
- H04Q11/0071—Provisions for the electrical-optical layer interface
Abstract
The invention discloses a photoelectric free switching connection method.A Media Access Control (MAC) layer drives a related physical layer (PHY), takes optical communication as priority, switches a PHY register of the physical layer to an optical communication mode first, and detects whether optical energy exists; if no light energy exists, switching to an electric signal mode, configuring the physical layer PHY to the electric signal mode, and then setting the PHY attribute; if the current optical energy parameter is detected to be inconsistent with the last stored value, resetting the physical layer PHY; step 54, detecting the connection state if the current light energy parameter is detected to be consistent with the value stored last time, and directly setting the PHY attribute if the current light energy parameter is in the Link Up state; if not, automatically defining a hundred mega optical interface and setting the hundred mega attribute of the PHY. The method and the device can automatically identify and switch to a specific physical medium, are convenient and quick, avoid the complexity of manual operation, and greatly improve the user experience.
Description
Technical Field
The invention belongs to the technical field of Ethernet communication, and particularly relates to a method for freely switching optical fiber and twisted pair communication media.
Background
At present, many communication devices integrate a hundred mega/giga optical fiber/twisted pair communication interface, and users want to plug and unplug a network cable at will to keep the devices in a normal communication state, so that the problem of free switching between electrical signals and optical signals is faced. At present, many devices need a method that a user inputs an operation command or logs in a webpage first and then clicks to select a communication medium when switching between the photoelectric devices, and although the method can meet the requirement and the switching is not frequent, the method wastes time and labor after all.
Disclosure of Invention
The purpose of the invention is as follows: in order to overcome the defects in the prior art, the invention provides a photoelectric free switching connection method, namely, on the premise that equipment simultaneously supports two communication media, an automatic switching algorithm is given by taking optical communication as priority, so that the equipment can support various application fields.
The technical scheme is as follows: in order to achieve the purpose, the invention adopts the technical scheme that:
a photoelectric free switching connection method comprises the following steps:
step 1, the MAC layer driver is associated with the physical layer PHY, and the MAC layer driver can always read the current state of the physical layer PHY after the physical layer PHY is bound.
And 2, taking optical communication as priority, switching the physical layer PHY register to an optical communication mode, and detecting whether optical energy exists or not.
And 3, switching to an electric signal mode if no light energy exists, configuring the physical layer PHY into the electric signal mode, and then setting the PHY attribute.
And 4, if the light energy is detected, indicating that the optical fiber is inserted currently.
And 5, detecting whether the current light energy parameter is consistent with the last stored value:
and 51, if the current optical energy parameter is detected to be inconsistent with the last stored value, resetting the physical layer PHY.
And step 52, resetting the required time, increasing printing, reading the hundred mega flag register of the current physical layer PHY, if the hundred mega flag register is successfully set, indicating that the physical layer PHY is reset, and otherwise, exiting.
In step 53, the PHY attribute at this time is set.
Step 54, detecting the connection status if the current optical energy parameter is detected to be consistent with the last stored value.
Step 541, if the Link Up state is true, the PHY attribute is directly set.
And step 542, if the Link Up state is not the Link Up state, automatically defining a hundred megaoptical ports, and setting a hundred megaattribute of the PHY.
Preferably: the PHY attributes include full duplex, rate, auto-negotiation, and status.
Compared with the prior art, the invention has the following beneficial effects:
according to the connecting method for photoelectric free switching, other application scenes can be treated similarly. The adaptive processing of hundreds of mega/giga of fiber/twisted pair is added in driving the bundled physical layer PHY implementation. On need not any operation can automatic identification and switch to concrete physical medium when practical scene, convenient and fast has avoided manual operation's loaded down with trivial details, has greatly promoted user experience.
Drawings
Fig. 1 is a network deployment architecture diagram.
FIG. 2 is a flow chart of the present invention.
Detailed Description
The present invention is further illustrated by the following description in conjunction with the accompanying drawings and the specific embodiments, it is to be understood that these examples are given solely for the purpose of illustration and are not intended as a definition of the limits of the invention, since various equivalent modifications will occur to those skilled in the art upon reading the present invention and fall within the limits of the appended claims.
A connection method of photoelectric free switching, as shown in fig. 1 and 2, comprising the following steps:
step 1, the MAC layer driver is associated with the physical layer PHY, and the MAC layer driver can always read the current state of the physical layer PHY after the physical layer PHY is bound.
And 2, switching the physical layer (PHY) register to an optical communication mode to detect whether light energy exists or not because optical communication is preferred.
And 3, switching to an electric signal mode if no light energy exists, configuring the physical layer PHY to the electric signal mode, and then setting PHY attributes including full duplex, rate, auto-negotiation, state and the like.
And 4, if light energy is detected, the optical fiber is inserted currently, but hundreds of megabytes or gigabytes need to be detected.
And 5, detecting whether the current light energy parameter is consistent with the last stored value:
in step 51, if the current optical energy parameter is detected to be inconsistent with the last stored value, for example, the last giga is detected, and the energy parameter is different in this hundred mega, the PHY of the physical layer is reset first.
And step 52, resetting the required time, increasing printing, reading the hundred mega flag register of the current physical layer PHY, if the hundred mega flag register is successfully set, indicating that the physical layer PHY is reset, and otherwise, exiting.
In step 53, the PHY attribute at this time is set.
Step 54, detecting the connection status if the current optical energy parameter is detected to be consistent with the last stored value.
Step 541, if it is Link Up state, directly setting PHY attributes including full duplex, rate, auto-negotiation and state.
Step 542, if not in Link Up state, automatically defining a hundred mega optical interface, and setting a hundred mega attribute of the PHY, which is a method designed for the problem that many devices cannot adapt to a hundred mega optical fiber, that is, light energy is found but cannot adapt.
At this point, the algorithm ends.
As shown in the network deployment of fig. 1, the device communication interface has the following three insertion modes:
1) only inserting the twisted pair;
the next hop is connected with a hundred mega/kilomega switch, and the equipment can obtain an IP address and normally receive and transmit data packets;
2) plugging hundreds of mega/giga optical fibers;
the next hop of a hundred mega/giga optical switch or an optical-to-electrical converter can be self-adaptive, and can be freely switched among hundred mega/giga optical fiber communication.
3) The optical fiber and the twisted pair are simultaneously inserted.
Since optical communication is preferred, it is selectively connected to an optical switch/optical-to-electrical converter, which converts an input optical signal into an electrical signal and then forwards the electrical signal. Even if the twisted pair interface is pulled out, the equipment is not influenced.
The optical interface accommodates hundreds of megabits/gigabytes by negotiating with the optical switch/optical-to-electrical converter, with normal communication of data. When the optical port is unplugged, the equipment can be automatically switched to the twisted-pair interface, and data can still be normally communicated.
The above description is only of the preferred embodiments of the present invention, and it should be noted that: it will be apparent to those skilled in the art that various modifications and adaptations can be made without departing from the principles of the invention and these are intended to be within the scope of the invention.
Claims (2)
1. A photoelectric free switching connection method is characterized by comprising the following steps:
step 1, the MAC layer driver is associated with a physical layer PHY, and the MAC layer driver can always read the current state of the physical layer PHY after the physical layer PHY is bound;
step 2, taking optical communication as priority, switching a physical layer (PHY) register to an optical communication mode, and detecting whether optical energy exists or not;
step 3, if no light energy exists, switching to an electric signal mode, configuring the physical layer PHY to the electric signal mode, and then setting the PHY attribute;
step 4, if the light energy is detected, it indicates that the optical fiber is inserted currently;
and 5, detecting whether the current light energy parameter is consistent with the last stored value:
step 51, if the current optical energy parameter is detected to be inconsistent with the last stored value, resetting the physical layer PHY;
step 52, resetting the time required, at this time, increasing printing, reading the hundred mega flag register of the current physical layer PHY, if the hundred mega flag register is successfully set, indicating that the physical layer PHY has finished resetting, otherwise, exiting;
step 53, setting the PHY attribute at this time;
step 54, detecting the connection state if the current light energy parameter is detected to be consistent with the value stored last time;
step 541, if the Link Up state is true, directly setting the PHY attribute;
and step 542, if the Link Up state is not the Link Up state, automatically defining a hundred megaoptical ports, and setting a hundred megaattribute of the PHY.
2. The opto-electrically freely switchable connection method according to claim 1, characterized in that: the PHY attributes include full duplex, rate, auto-negotiation, and status.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010598468.0A CN111935563A (en) | 2020-06-28 | 2020-06-28 | Photoelectric free switching connection method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010598468.0A CN111935563A (en) | 2020-06-28 | 2020-06-28 | Photoelectric free switching connection method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111935563A true CN111935563A (en) | 2020-11-13 |
Family
ID=73316711
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010598468.0A Pending CN111935563A (en) | 2020-06-28 | 2020-06-28 | Photoelectric free switching connection method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111935563A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2003056775A1 (en) * | 2001-12-30 | 2003-07-10 | Legend (Beijing) Limited. | A means and control method for adapting different media of transmission link of network on physical layer. |
CN1534932A (en) * | 2003-03-27 | 2004-10-06 | 华为技术有限公司 | Method of supporting multi kilomega ethernet terminal photoelectric multiplex |
CN104639468A (en) * | 2015-01-07 | 2015-05-20 | 武汉微创光电股份有限公司 | Optical port adaptive Ethernet switch and adaptive method thereof |
CN107172506A (en) * | 2017-04-25 | 2017-09-15 | 烽火通信科技股份有限公司 | A kind of adaptive switching system of photoelectricity based on service-aware and method |
-
2020
- 2020-06-28 CN CN202010598468.0A patent/CN111935563A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2003056775A1 (en) * | 2001-12-30 | 2003-07-10 | Legend (Beijing) Limited. | A means and control method for adapting different media of transmission link of network on physical layer. |
CN1534932A (en) * | 2003-03-27 | 2004-10-06 | 华为技术有限公司 | Method of supporting multi kilomega ethernet terminal photoelectric multiplex |
CN104639468A (en) * | 2015-01-07 | 2015-05-20 | 武汉微创光电股份有限公司 | Optical port adaptive Ethernet switch and adaptive method thereof |
CN107172506A (en) * | 2017-04-25 | 2017-09-15 | 烽火通信科技股份有限公司 | A kind of adaptive switching system of photoelectricity based on service-aware and method |
Non-Patent Citations (1)
Title |
---|
许国光等: "一种基于嵌入式应用的光电切换设计和算法", 《通信与广播电视》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7356433B2 (en) | Apparatus of automatically detecting type of cable connected to network and method thereof | |
CN103308996A (en) | Active optical cable connector plug and active optical cable using same | |
US20220245079A1 (en) | USB Signal Communication Over An Optical Link | |
CN101583054A (en) | Method for realizing that optical interface supports multiple rate patterns by adopting optical module and device | |
CN103490906A (en) | Power supply processing method and device and power supply system | |
CN108141370B (en) | Bus system | |
CN102571502A (en) | Terminal access equipment and reverse power over Ethernet (PoE) state detection method | |
CN104639468A (en) | Optical port adaptive Ethernet switch and adaptive method thereof | |
CN107465957B (en) | Method for rapidly connecting ARC power amplifier equipment by smart television | |
CN103095367A (en) | Optical-fiber interface speed self-adapting method and optical-fiber network device | |
CN101345754B (en) | Duplexing pattern matching method and apparatus, communication system | |
CN102143238B (en) | Communication interface, switching circuit and switching method of communication interfaces | |
CN111835569A (en) | Optical interface rate and mode self-adapting method, system and storage medium | |
CN101958888A (en) | Configuration method of port negotiation capacity, communication port and communication device | |
CN203399204U (en) | Embedded network hard disk video recorder and network hard disk video recording system | |
US7673078B2 (en) | Communicating configuration information over standard interconnect link | |
CN111935563A (en) | Photoelectric free switching connection method | |
CN111541958A (en) | Optical interface rate self-adaption method, equipment, device and readable storage medium | |
CN108476245B (en) | Method for establishing port connection and port chip | |
CN203800942U (en) | Optical cross matrix in fiber channel switch | |
CN112804598A (en) | Optical line terminal line card and method compatible with PON function | |
CN103684935A (en) | Adaptive method and system for photoelectric network port of Ethernet | |
CN102404134A (en) | System and method for realizing Dying gasp signal uploading in communication network system with pluggable module | |
CN202889375U (en) | Ethernet photoelectric port self-adaptive system | |
CN112019705B (en) | Camera and video monitoring system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201113 |