Communication method, device, medium and optical fiber communication equipment for optical fiber communication equipment

By obtaining and detecting the status information of optical fiber communication equipment and controlling its communication status, it solves the problem of data communication errors caused by the exchange of status information after the negotiation is established, and achieves higher security and reliability.

CN112583479BActive Publication Date: 2024-09-06TP-LINK INT SHENZHEN CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011212503.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-03
Publication Date
2024-09-06
Estimated Expiration
2040-11-03

AI Technical Summary

Technical Problem

Existing optical fiber communication equipment has the problem of exchanging status information after negotiation is established, resulting in data communication errors or even failure to work properly.

Method used

By obtaining the status information of the current optical fiber communication equipment, it detects whether the peer device meets the preset status information exchange mechanism, and controls the communication status based on the status information of the two, including determining whether the preset communication conditions are met, adjusting the transmit optical power and negotiation rate to Ensure communication security and reliability.

Benefits of technology

It effectively reduces the power consumption during communication, reduces data communication errors, ensures the normal operation of communication equipment, and increases the security and reliability of data communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112583479B
    Figure CN112583479B
Patent Text Reader

Abstract

The present invention discloses a communication method for optical fiber communication equipment, including: obtaining the status information of the current optical fiber communication equipment, wherein the status information of the current optical fiber communication equipment includes: environmental status information, status information of the control module and status information of the driving module; when it is detected that the opposite communication equipment connected to the current optical fiber communication equipment meets the preset status information exchange mechanism, the status information of the current optical fiber communication equipment is sent to the opposite communication equipment, and the status information of the opposite communication equipment is received; the communication status of the current optical fiber communication equipment is controlled according to the status information of the current optical fiber communication equipment and the status information of the opposite communication equipment. The embodiment of the present invention also provides a communication device, medium and optical fiber communication equipment of optical fiber communication equipment, which can effectively solve the error problem of data communication caused by the exchange of status information after establishing communication through negotiation in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of optical fiber communication technology, and in particular to a communication method, device, medium and optical fiber communication equipment of optical fiber communication equipment. Background Art

[0002] Optical fiber communications technology has emerged from optical communications and has become one of the main pillars of modern communications, playing a pivotal role in modern telecommunications networks. The negotiation mechanism of the optical fiber interface includes auto-negotiation and forced negotiation. Since the auto-negotiation mechanism is at the same layer as the PCS, the negotiation of the optical fiber interface must first establish link synchronization before negotiation can be performed.

[0003] Communication devices generally exchange status information between communication devices only after establishing communication through negotiation. If the communication status of the communication device is changed at this time, data communication errors may easily occur, and the communication device may even fail to work normally. Summary of the invention

[0004] The embodiments of the present invention provide a communication method, device, medium and optical fiber communication device for optical fiber communication equipment, which can effectively solve the problem of data communication errors caused by state information exchange after establishing communication through negotiation in the prior art.

[0005] An embodiment of the present invention provides a communication method of an optical fiber communication device, comprising:

[0006] Acquire the current state information of the optical fiber communication device, wherein the current state information of the optical fiber communication device includes: environment state information, control module state information and drive module state information;

[0007] When it is detected that the opposite communication device connected to the current optical fiber communication device meets the preset status information exchange mechanism, the status information of the current optical fiber communication device is sent to the opposite communication device, and the status information of the opposite communication device is received;

[0008] Controlling the communication state of the current optical fiber communication device according to the state information of the current optical fiber communication device and the state information of the opposite end communication device;

[0009] The controlling the communication state of the current optical fiber communication device according to the state information of the current optical fiber communication device and the state information of the opposite end communication device specifically includes:

[0010] Determining whether the status information of the current optical fiber communication device and the status information of the opposite end communication device both meet the preset communication conditions;

[0011] When the judgment result is that the preset communication condition is met, the current optical fiber communication device is controlled to start communication;

[0012] When the judgment result is that the preset communication condition is not met, the current optical fiber communication device is controlled to stop communication.

[0013] As an improvement of the above scheme, after acquiring the status information of the current optical fiber communication device, after detecting that the opposite end communication device connected to the current optical fiber communication device satisfies the preset status information exchange mechanism, sending the status information of the current optical fiber communication device to the opposite end communication device, and before receiving the status information of the opposite end communication device, it also includes:

[0014] Determine whether the opposite communication device connected to the current optical fiber communication device satisfies the preset status information exchange mechanism.

[0015] As an improvement of the above solution, when the judgment result is that the preset communication condition is met, the current optical fiber communication device is controlled to start communication, and then it also includes:

[0016] The transmission optical power of the current optical fiber communication device and the negotiation rate of the optical fiber interface are controlled respectively according to the status information of the opposite communication device and the status information of the opposite communication device.

[0017] As an improvement of the above solution, the status information of the opposite communication device includes: receiving sensitivity, environmental status information, status information of the driving module and status information of the control module;

[0018] Correspondingly, the controlling the transmitted optical power of the current optical fiber communication device and the negotiation rate of the optical fiber interface according to the status information of the opposite communication device and the status information of the opposite communication device respectively specifically includes:

[0019] Controlling the negotiation rate of the optical fiber interface according to the environmental status information of the opposite communication device and the environmental information of the current optical fiber communication device;

[0020] The emission optical power of the current optical fiber communication device is controlled according to the receiving sensitivity of the opposite communication device, the state information of the driving module of the current optical fiber communication device and the state information of the control module of the current optical fiber communication device.

[0021] As an improvement of the above solution, after determining whether the opposite end communication device connected to the current optical fiber communication device satisfies the preset status information exchange mechanism, the method further includes:

[0022] When the judgment result is that the preset status information exchange mechanism is not satisfied, the driving module is controlled to communicate.

[0023] As an improvement of the above solution, the environmental status information includes at least one of the following:

[0024] Ambient temperature, ambient humidity, altitude;

[0025] The state information of the control module includes at least one of the following:

[0026] Processor temperature, processor utilization, storage memory status;

[0027] The state information of the driver module includes at least one of the following:

[0028] Transmitted optical power, length of optical fiber, modulation current, drive current, temperature of drive module, voltage quality, and voltage ripple.

[0029] Another embodiment of the present invention provides a communication device of an optical fiber communication device, including:

[0030] An acquisition module, used to acquire the status information of the current optical fiber communication device, wherein the status information of the current optical fiber communication device includes: environmental status information, status information of the control module and status information of the drive module;

[0031] A detection module, configured to send the status information of the current optical fiber communication device to the opposite communication device and receive the status information of the opposite communication device when detecting that the opposite communication device connected to the current optical fiber communication device satisfies a preset status information exchange mechanism;

[0032] A communication module, used for controlling the communication state of the current optical fiber communication device according to the state information of the current optical fiber communication device and the state information of the opposite end communication device;

[0033] The controlling the communication state of the current optical fiber communication device according to the state information of the current optical fiber communication device and the state information of the opposite end communication device specifically includes:

[0034] Determining whether the status information of the current optical fiber communication device and the status information of the opposite end communication device both meet the preset communication conditions;

[0035] When the judgment result is that the preset communication condition is met, the current optical fiber communication device is controlled to start communication;

[0036] When the judgment result is that the preset communication condition is not met, the current optical fiber communication device is controlled to stop communication.

[0037] Another embodiment of the present invention provides a storage medium, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the communication method of the optical fiber communication device described in the above-mentioned embodiment of the invention.

[0038] Another embodiment of the present invention provides an optical fiber communication device, comprising an optical fiber interface for communicating with an opposite communication device, a driving module for driving the optical fiber interface to communicate, an environmental monitoring device for acquiring environmental status information, and a control module; wherein the control module comprises: a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, the communication method of the optical fiber communication device described in the above embodiment of the invention is implemented;

[0039] The state information acquisition end of the control module is connected to the output end of the environment monitoring device and the state information output end of the driving module respectively, the control end of the control module is connected to the controlled end of the driving module, and the driving end of the driving module is connected to the optical fiber interface.

[0040] Compared with the prior art, the communication method, device, medium and fiber optic communication device of the fiber optic communication device disclosed in the embodiment of the present invention, when detecting that the opposite communication device connected to the current fiber optic communication device meets the preset status information exchange mechanism, sends the status information of the current fiber optic communication device to the opposite communication device, receives the status information of the opposite communication device, and then controls the communication status of the current fiber optic communication device according to the status information of the current fiber optic communication device and the status information of the opposite communication device, which can effectively reduce the power consumption during communication, reduce the error situation of data communication, ensure the normal operation of the communication device, and increase the security of data communication. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 It is a flow chart of a communication method of an optical fiber communication device provided by an embodiment of the present invention;

[0042] Figure 2 It is a flowchart of step S30 of a communication method of an optical fiber communication device provided by an embodiment of the present invention;

[0043] Figure 3 It is a structural schematic diagram of a communication device of an optical fiber communication device provided by an embodiment of the present invention;

[0044] Figure 4 It is a structural schematic diagram of an optical fiber communication provided by an embodiment of the present invention;

[0045] Figure 5It is a structural schematic diagram of a control module for optical fiber communication provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0046] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0047] See also Figure 1 , is a flow chart of a communication method of an optical fiber communication device provided by an embodiment of the present invention.

[0048] An embodiment of the present invention provides a communication method of an optical fiber communication device, comprising:

[0049] S10 , obtaining status information of the current optical fiber communication device, wherein the status information of the current optical fiber communication device includes: environmental status information, status information of the control module 1 , and status information of the drive module 2 .

[0050] Wherein, the environmental status information includes at least one of the following: ambient temperature, ambient humidity, altitude; the status information of the control module 1 includes at least one of the following: processor temperature, processor utilization, memory status; the status information of the driver module 2 includes at least one of the following: emitted light power, length of optical fiber line, modulation current, drive current, temperature of driver module 2, voltage quality, voltage ripple. It should be noted that, in this embodiment, the control module 1 monitors multiple status information at the same time, so as to better adjust the communication status of the current optical fiber communication device. It can be understood that the control module 1 can monitor the status information, and a control chip can be set up separately to monitor various status information, and various status information can also be monitored by the driver module 2, which is not limited here.

[0051] S20, when it is detected that the opposite communication device connected to the current optical fiber communication device meets the preset status information exchange mechanism, the status information of the current optical fiber communication device is sent to the opposite communication device, and the status information of the opposite communication device is received.

[0052] Among them, the status information of the opposite communication device includes: receiving sensitivity, environmental status information, status information of the control module 1 and status information of the driving module 2; the environmental status information includes: ambient temperature, ambient humidity, and altitude; the status information of the control module 1 includes: processor temperature, processor utilization, and memory status; the status information of the driving module 2 includes: transmitted light power, length of the optical fiber line, modulation current, driving current, temperature of the driving module 2, voltage quality, and voltage ripple.

[0053] Specifically, in this embodiment, the opposite communication device is connected to the driving module through the optical fiber interface 3. After the optical fiber communication device is connected to the optical fiber interface 3, if the connected optical fiber communication device (i.e., the opposite communication device) satisfies the preset status information exchange mechanism, it means that the connected optical fiber communication device has the ability to exchange status information before communication. Therefore, the status information of the current optical fiber communication device is sent to the connected optical fiber communication device, and the status information of the connected optical fiber communication device is received to exchange status information.

[0054] It should be noted that in the prior art, when the optical fiber communication device communicates, it receives the related signals of self-negotiation or forced negotiation, and the preset state information exchange mechanism is that the signal logic sequence detected by the current optical fiber communication device is the start signal. In this embodiment, if the logic sequence of the received signal is the "100100100" sequence, then it is determined to be a start signal. It can be seen that the state information is exchanged only when the current optical fiber communication device and the opposite communication device both have the ability to exchange state information before communication.

[0055] S30, controlling the communication state of the current optical fiber communication device according to the state information of the current optical fiber communication device and the state information of the opposite end communication device.

[0056] It should be noted that, since the status information of the current optical fiber communication device includes the environmental status information, the status information of the control module 1 and the status information of the driving module 2, the environmental status information, the status information of the control module 1 and the status information of the driving module 2 will all affect the communication status of the current optical fiber communication device. For example, the emission optical power of the current optical fiber communication device is controlled according to the length of the optical fiber line and the temperature of the processor; for another example, if the temperature of the processor is too high, it means that the current optical fiber communication device is not suitable for communication, and the communication needs to be shut down at this time.

[0057] To summarize, when it is detected that the opposite communication device connected to the current optical fiber communication device satisfies the preset status information exchange mechanism, the status information of the current optical fiber communication device is sent to the opposite communication device, and the status information of the opposite communication device is received, and then the communication status of the current optical fiber communication device is controlled according to the status information of the current optical fiber communication device and the status information of the opposite communication device, which can effectively reduce the power consumption during communication, reduce the errors in data communication, ensure the normal operation of the communication equipment, and increase the security of data communication.

[0058] As an improvement of the above scheme, after acquiring the status information of the current optical fiber communication device, after detecting that the opposite end communication device connected to the current optical fiber communication device satisfies the preset status information exchange mechanism, sending the status information of the current optical fiber communication device to the opposite end communication device, and before receiving the status information of the opposite end communication device, it also includes:

[0059] S11, determining whether the opposite end communication device connected to the current optical fiber communication device satisfies a preset status information exchange mechanism.

[0060] Specifically, in the prior art, since the optical fiber communication device receives related signals of self-negotiation or forced negotiation during communication, it is necessary to judge the opposite communication device connected to the optical fiber interface 3 to determine the working mode of the current optical fiber communication device.

[0061] As an improvement of the above solution, controlling the communication state of the current optical fiber communication device according to the state information of the current optical fiber communication device and the state information of the opposite end communication device specifically includes:

[0062] See also Figure 2 , S300, determining whether the status information of the current optical fiber communication device and the status information of the opposite end communication device both meet the preset communication conditions.

[0063] S301, when the judgment result is that the preset communication condition is met, the current optical fiber communication device is controlled to start communication.

[0064] S302, when the judgment result is that the preset communication condition is not met, the current optical fiber communication device is controlled to stop communication.

[0065] Among them, the preset communication condition is that the status information of the current optical fiber communication device and the status information of the opposite communication device do not exceed the corresponding preset thresholds; for example, whether the processor temperature of the current optical fiber communication device and the processor temperature of the opposite communication device are both lower than the preset first temperature threshold; whether the ambient temperature is lower than the preset second temperature threshold; whether the working voltage exceeds the preset voltage threshold, etc. It can be understood that the above thresholds can be set as needed and are not limited here. It should be noted that when exchanging status information, when there is information exceeding its threshold in the status information, it means that the current optical fiber communication device does not meet the preset communication conditions and cannot communicate. When there is no information exceeding its threshold in the status information, it means that the current optical fiber communication device meets the preset communication conditions and can communicate.

[0066] As an improvement of the above solution, when the judgment result is that the preset communication condition is met, the current optical fiber communication device is controlled to start communication, and then it also includes:

[0067] S40, controlling the transmission optical power of the current optical fiber communication device and the negotiation rate of the optical fiber interface 3 respectively according to the status information of the opposite communication device and the status information of the opposite communication device.

[0068] In this embodiment, when the current ambient temperature is within the preset ambient temperature range, the optical fiber interface 3 is only allowed to operate at a rate of 1 Gigabit, and cannot be allowed to operate at 10 Gigabit or above (because when the optical fiber interface 3 operates at 10 Gigabit, the ambient temperature will be greater than the ambient temperature when the optical fiber interface 3 operates at 1 Gigabit). At this time, the control module 1 will negotiate with the opposite communication device to a rate of 1 Gigabit instead of 10 Gigabit, thereby improving the reliability of optical communication and also improving the intelligence of optical communication. It should be noted that the preset ambient temperature range can be set as needed. In this embodiment, the ambient temperature range is [t max -Δt,t max ], t max is the maximum value of the ambient temperature, Δt can be 0.5 or other values, which are not limited here.

[0069] As an improvement of the above solution, the status information of the opposite device includes: receiving sensitivity, environmental status information, status information of the driving module 2 and status information of the control module 1;

[0070] Correspondingly, the controlling the transmission optical power of the current optical fiber communication device and the negotiation rate of the optical fiber interface 3 respectively according to the status information of the opposite communication device and the status information of the opposite communication device specifically includes:

[0071] The negotiation rate of the optical fiber interface 3 is controlled according to the environmental status information of the opposite communication device and the environmental information of the current optical fiber communication device.

[0072] The emission optical power of the current optical fiber communication device is controlled according to the receiving sensitivity of the opposite communication device, the state information of the driving module 2 of the current optical fiber communication device and the state information of the control module 1 of the current optical fiber communication device.

[0073] In this embodiment, the transmission optical power will be affected by the length of the optical fiber line of the current optical fiber communication device and the receiving sensitivity of the opposite device; if the receiving sensitivity of the opposite end is higher, the transmission optical power of the current optical fiber communication device will be lower, and if the receiving sensitivity of the opposite end is lower, the transmission optical power of the current optical fiber communication device will be higher.

[0074] For example, if the receiving sensitivity of the opposite communication device is A, and the length of the optical fiber communication is B, then the emission optical power value C of the current optical fiber communication device can be obtained according to the algorithm of the prior art or a large amount of experimental experience. It can be seen from the experiment that the emission optical power at this time is less than or equal to the device that does not support the state information exchange mechanism. It can be seen that exchanging state information before communication can effectively reduce the optical communication power consumption of the optical fiber communication device.

[0075] As an improvement to the above solution, if the current optical fiber communication device only communicates with one opposite communication device, encryption information can be added to the status information; after the opposite device connected to the optical fiber interface 3 decrypts the encrypted information, the current optical fiber communication device starts communication.

[0076] As an improvement of the above solution, after determining whether the opposite end communication device connected to the current optical fiber communication device satisfies the preset status information exchange mechanism, the method further includes:

[0077] S20', when the judgment result is that the preset state information exchange mechanism is not satisfied, the driving module 2 is controlled to communicate.

[0078] Specifically, if the opposite communication device does not satisfy the state information exchange mechanism, communication with the opposite communication device is performed according to the prior art, that is, self-negotiation or forced negotiation is performed.

[0079] See also Figure 3 , is a schematic structural diagram of a communication device of an optical fiber communication device provided by an embodiment of the present invention.

[0080] Another embodiment of the present invention provides a communication device of an optical fiber communication device, including:

[0081] The acquisition module 10 is used to acquire the status information of the current optical fiber communication device, wherein the status information of the current optical fiber communication device includes: environmental status information, status information of the control module 1 and status information of the driving module 2 .

[0082] The detection module 20 is used to send the status information of the current optical fiber communication device to the opposite communication device and receive the status information of the opposite communication device when it is detected that the opposite communication device connected to the current optical fiber communication device meets the preset status information exchange mechanism.

[0083] The communication module 30 is used to control the communication state of the current optical fiber communication device according to the state information of the current optical fiber communication device and the state information of the opposite end communication device.

[0084] A communication device of an optical fiber communication device provided by an embodiment of the present invention sends status information of the current optical fiber communication device to the opposite communication device and receives status information of the opposite communication device when it detects that the opposite communication device connected to the current optical fiber communication device satisfies a preset status information exchange mechanism, and then controls the communication status of the current optical fiber communication device according to the status information of the current optical fiber communication device and the status information of the opposite communication device, which can effectively reduce power consumption during communication, reduce errors in data communication, ensure the normal operation of the communication device, and increase the security and reliability of data communication.

[0085] See also Figure 4-5 , is a structural diagram of an optical fiber communication device provided by an embodiment of the present invention.

[0086] An embodiment of the present invention provides an optical fiber communication device, comprising an optical fiber interface 3 for communicating with an opposite communication device, a driving module 2 for driving the optical fiber interface 3 to communicate, an environmental monitoring device for obtaining environmental status information, and a control module 1; wherein the control module 1 comprises: a processor 11, a memory 12, and a computer program stored in the memory 12 and configured to be executed by the processor 11, and when the processor 11 executes the computer program, the communication method of the optical fiber communication device described in the above-mentioned embodiment of the invention is implemented; wherein the environmental detection device comprises: a temperature sensor, a humidity sensor, etc.

[0087] The status information acquisition end of the control module 1 is connected to the output end of the environmental monitoring device and the status information output end of the driving module 2 respectively, the control end of the control module 1 is connected to the controlled end of the driving module 2, and the driving end of the driving module 2 is connected to the optical fiber interface 3.

[0088] An embodiment of the present invention provides an optical fiber communication device, in which a control module receives status information of the optical fiber communication device and controls a driving module 2 to perform optical communication according to the status information of the optical fiber communication device, thereby effectively reducing power consumption during communication, reducing errors in data communication, ensuring the normal operation of the communication device, and increasing the security of data communication.

[0089] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory and executed by the processor to implement the present invention. The one or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program in the optical fiber communication device.

[0090] The optical fiber communication device may be a computing device such as a router, a switch, and a cloud server. The optical fiber communication device may include, but is not limited to, a processor and a memory. Those skilled in the art may understand that the schematic diagram is only an example of an optical fiber communication device and does not constitute a limitation on the optical fiber communication device. The optical fiber communication device may include more or fewer components than shown in the diagram, or may combine certain components, or different components. For example, the optical fiber communication device may also include input and output devices, network access devices, buses, etc.

[0091] The processor 11 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the optical fiber communication device, and uses various interfaces and lines to connect various parts of the entire optical fiber communication device.

[0092] The memory 12 can be used to store the computer program and / or module, and the processor realizes various functions of the optical fiber communication device by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Med ia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0093] Wherein, if the module / unit integrated in the optical fiber communication device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium, etc.

[0094] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.

[0095] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A communication method for an optical fiber communication device, It is characterized in that include: Acquire the current state information of the optical fiber communication device, wherein the current state information of the optical fiber communication device includes: environment state information, control module state information and drive module state information; When it is detected that the opposite communication device connected to the current optical fiber communication device meets the preset status information exchange mechanism, the status information of the current optical fiber communication device is sent to the opposite communication device, and the status information of the opposite communication device is received; Controlling the communication state of the current optical fiber communication device according to the state information of the current optical fiber communication device and the state information of the opposite end communication device; The controlling the communication state of the current optical fiber communication device according to the state information of the current optical fiber communication device and the state information of the opposite end communication device specifically includes: Determining whether the status information of the current optical fiber communication device and the status information of the opposite end communication device both meet the preset communication conditions; When the judgment result is that the preset communication condition is met, the current optical fiber communication device is controlled to start communication; When the judgment result is that the preset communication condition is not met, the current optical fiber communication device is controlled to stop communication.

2. The communication method of the optical fiber communication device according to claim 1, It is characterized in that After acquiring the status information of the current optical fiber communication device, after detecting that the opposite end communication device connected to the current optical fiber communication device satisfies the preset status information exchange mechanism, sending the status information of the current optical fiber communication device to the opposite end communication device, and before receiving the status information of the opposite end communication device, the method further includes: Determine whether the opposite communication device connected to the current optical fiber communication device satisfies the preset status information exchange mechanism.

3. The communication method of the optical fiber communication device according to claim 1, It is characterized in that When the judgment result is that the preset communication condition is met, the current optical fiber communication device is controlled to start communication, and then the method further includes: The transmission optical power of the current optical fiber communication device and the negotiation rate of the optical fiber interface are controlled respectively according to the status information of the opposite communication device and the status information of the opposite communication device.

4. The communication method of the optical fiber communication device according to claim 3, It is characterized in that The status information of the opposite communication device includes: receiving sensitivity, environmental status information, status information of the driving module and status information of the control module; Correspondingly, the controlling the transmitted optical power of the current optical fiber communication device and the negotiation rate of the optical fiber interface according to the status information of the opposite communication device and the status information of the opposite communication device respectively specifically includes: Controlling the negotiation rate of the optical fiber interface according to the environmental status information of the opposite communication device and the environmental information of the current optical fiber communication device; The emission optical power of the current optical fiber communication device is controlled according to the receiving sensitivity of the opposite communication device, the state information of the driving module of the current optical fiber communication device and the state information of the control module of the current optical fiber communication device.

5. The communication method of the optical fiber communication device according to claim 2, It is characterized in that After determining whether the opposite end communication device connected to the current optical fiber communication device satisfies the preset status information exchange mechanism, the method further includes: When the judgment result is that the preset status information exchange mechanism is not satisfied, the driving module is controlled to communicate.

6. The communication method of the optical fiber communication device according to claim 1, It is characterized in that The environmental status information includes at least one of the following: Ambient temperature, ambient humidity, altitude; The state information of the control module includes at least one of the following: Processor temperature, processor utilization, storage memory status; The state information of the driver module includes at least one of the following: Transmitted optical power, length of optical fiber, modulation current, drive current, temperature of drive module, voltage quality, and voltage ripple.

7. A communication device for optical fiber communication equipment, It is characterized in that include: An acquisition module, used to acquire the status information of the current optical fiber communication device, wherein the status information of the current optical fiber communication device includes: environmental status information, status information of the control module and status information of the drive module; A detection module, configured to send the status information of the current optical fiber communication device to the opposite communication device and receive the status information of the opposite communication device when detecting that the opposite communication device connected to the current optical fiber communication device satisfies a preset status information exchange mechanism; A communication module, used for controlling the communication state of the current optical fiber communication device according to the state information of the current optical fiber communication device and the state information of the opposite end communication device; The controlling the communication state of the current optical fiber communication device according to the state information of the current optical fiber communication device and the state information of the opposite end communication device specifically includes: Determining whether the status information of the current optical fiber communication device and the status information of the opposite end communication device both meet the preset communication conditions; When the judgment result is that the preset communication condition is met, the current optical fiber communication device is controlled to start communication; When the judgment result is that the preset communication condition is not met, the current optical fiber communication device is controlled to stop communication.

8. An optical fiber communication device, It is characterized in that include: An optical fiber interface for communicating with a peer communication device, a driving module for driving the optical fiber interface to communicate, an environmental monitoring device for acquiring environmental status information, and a control module; wherein the control module comprises: a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the communication method of the optical fiber communication device according to any one of claims 1 to 6 when executing the computer program; The state information acquisition end of the control module is connected to the output end of the environment monitoring device and the state information output end of the driving module respectively, the control end of the control module is connected to the controlled end of the driving module, and the driving end of the driving module is connected to the optical fiber interface.

9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the communication method of the optical fiber communication device according to any one of claims 1 to 6.