CN110417479A - A kind of method and device for power adjustment - Google Patents

A kind of method and device for power adjustment Download PDF

Info

Publication number
CN110417479A
CN110417479A CN201810404201.6A CN201810404201A CN110417479A CN 110417479 A CN110417479 A CN 110417479A CN 201810404201 A CN201810404201 A CN 201810404201A CN 110417479 A CN110417479 A CN 110417479A
Authority
CN
China
Prior art keywords
link
power
optical signal
consume
initial trans
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810404201.6A
Other languages
Chinese (zh)
Other versions
CN110417479B (en
Inventor
袁舒瑞
邱劲松
汪青华
许继辉
周小雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201810404201.6A priority Critical patent/CN110417479B/en
Publication of CN110417479A publication Critical patent/CN110417479A/en
Application granted granted Critical
Publication of CN110417479B publication Critical patent/CN110417479B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/07Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems
    • H04B10/075Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal
    • H04B10/079Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal using measurements of the data signal
    • H04B10/0795Performance monitoring; Measurement of transmission parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/50Transmitters
    • H04B10/564Power control

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Optical Communication System (AREA)

Abstract

This application discloses a kind of method and devices for power adjustment, this method comprises: first device determines the second link consume of the second link;First device sends the first optical signal to second device with Initial Trans by the first link, which determines that the first link of the first link consumes according to the reception power and Initial Trans of the first optical signal for second device;First device receives the second optical signal that second device is sent by the second link, and the transmission power of second optical signal is that second device is determining according to the consume of the first link of Initial Trans and the first link;First device is consumed according to reception power, the second link of the second optical signal and Initial Trans determine that the first link consumes;First device consumes the transmission power of the first link of adjustment according to the first link.By implementing the application, first device can consume the transmission power of adjust automatically optical signal according to link.

Description

A kind of method and device for power adjustment
Technical field
This application involves field of communication technology more particularly to a kind of method and devices for power adjustment.
Background technique
Optical module (optical module) is one of core component of optic communication.Optical module is by opto-electronic device, function The composition such as circuit and optical interface, opto-electronic device include emitting and receiving two parts.In simple terms, the effect of optical module is to realize The mutual conversion of optical signal and electric signal, transmitting terminal converts electrical signals into optical signal, after being transmitted by optical fiber, receiving end again Optical signal is converted into electric signal.Optical module can also include GigaBit Interface Converter (gigabit interface Converter, GBIC).Optical module can be small package hot plug transceiver (small form-factor pluggable Transceiver, SFP) optical module, SFP+ optical module etc..
In existing practical application, the transmission power of optical module is fixed.For meet different distance optical module it Between communication, the fixed transmission power of usual optical module is very big.For example, distance is 20 kms between optical module A and optical module B, Distance is 100 kms between optical module A and optical module C.Due to the transmission power of optical module A be it is fixed, one can be arranged Fixed transmission power of a very big transmission power as optical module A just can guarantee that optical module A is communicated with optical module B and C in this way Between can communicate.
Since the transmission power of optical module A is very big, when the optical module with different distance communicates, need using light decay Subtract device to decay to the light emitting power of optical module A, avoid makes photoreceiver generate mistake since light emitting power is superpower Very.It needs professional to carry out when disposing optical attenuator early period at present, needs to be selected according to optical mode block type and fiber lengths Light decay is selected, the phenomenon that optical power burns optical module occurs in layman's misoperation.As it can be seen that deployment optical attenuator is very numb It is tired.Therefore, how to automatically adjust to the transmission power of optical module is current urgent problem to be solved.
Summary of the invention
This application provides a kind of method and devices for power adjustment, can be consumed certainly according to the link of transmitting link Dynamicly the transmission power of transmitting link is adjusted, without disposing optical attenuator.
In a first aspect, this application provides a kind of method for power adjustment, this method comprises: first device determines Second link of two links consumes, which receives the optical signal that second device is sent for first device;First device The first optical signal is sent to second device with Initial Trans by the first link, and first link is for first device to the Two devices send optical signal, and first optical signal is for second device according to the reception power and initial transmissions function of the first optical signal Rate determines the first link consume of the first link;First device receives the second light letter that second device is sent by the second link Number, the transmission power of second optical signal is that second device is determining according to Initial Trans and first link consume;The One device is consumed according to reception power, the second link of the second optical signal and Initial Trans determine that the first link consumes;The One device consumes the transmission power of the first link of adjustment according to the first link.
As it can be seen that first device can determine the link consume of transmitting link by implementing method described in first aspect, into And the transmission power of adjust automatically optical signal is consumed according to link.
Optionally, Initial Trans are greater than the receiving sensitivity of second device, and are less than the maximum of second device and receive Power, the transmission power of the first link adjusted are the sum of Initial Trans and the consume of the first link.
By implementing the optional mode, the reception power that second device receives the optical signal is Initial Trans. Since Initial Trans are greater than the receiving sensitivity of second device, and it is less than the maximal received power of second device, therefore, the Two devices are to the reception power of optical signal in reasonable range.Therefore, by implementing the optional mode, first device can be automatic Ground is adjusted to suitable transmission power to the transmission power of the optical signal of first device, makes second device to the reception function of optical signal Rate is in reasonable range.
Optionally, first device can also receive the third light that second device is sent with Initial Trans by the second link Signal;Correspondingly, first device determines the specific embodiment of the second link consume of the second link are as follows: first device is according to the The reception power and Initial Trans of three optical signals determine the second link consume of the second link.
By implementing the optional mode, before first device and second device formal communication, first device can be automatic Ground is adjusted transmission power.
Optionally, first device can also receive the 4th optical signal that second device is sent, the 4th light by the second link Signal carries the transmission power of the 4th optical signal;Correspondingly, first device determines the specific of the second link consume of the second link Embodiment are as follows: first device determines the second link according to the transmission power of the 4th optical signal and the reception power of the 4th optical signal The second link consume;First device can also carry out following steps: first device receives second device by the second link and sends The 5th optical signal;Correspondingly, first device sends the first light letter to second device with Initial Trans by the first link Number specific embodiment are as follows: first device detects the consume of the second link and the sum of the reception power of the 5th optical signal is initial When transmission power, the first optical signal is sent to second device with Initial Trans by the first link.
By implementing the optional mode, after first device and second device formal communication, second device is first When receiving receiving sensitivity of the power less than second device of link, first device can automatically be adjusted transmission power.
Optionally, first device is consumed according to reception power, the second link of the second optical signal and Initial Trans are true The specific embodiment of fixed first link consume are as follows: first device detects the reception power of the second optical signal, and determines that first mends Repay power Y1Value, Y1=P1+PTB-P0, wherein P1For the reception power of the second currently detected optical signal, PTBFor the second chain Road consume, P0For Initial Trans;As the first compensation power Y1Value when being less than predetermined power threshold value, first device is by first Compensate power Y1Value be determined as the first link consume.
By implementing the optional embodiment, the first link can be consumed the hair of compensation to the second link by second device Power is penetrated accurately to notify the first link to consume to first device.
Optionally, when first compensates power Y1Value be equal to predetermined power threshold value when, first device continues to test the second light The reception power of signal, and continue to determine the first compensation power Y according to the reception power of the second optical signal detected1Value; As the first compensation power Y1Value be greater than zero, and when being less than predetermined power threshold value, first device stops second optical signal of detection It receives power and stops determining the first compensation power Y1Value, and determine second device last time compensation power PxIt is One compensation power Y1Value;When the reception power for detecting the second optical signal is that the first reception power continuously reaches preset duration When, first device stops the reception power of the second optical signal of detection and stops determining the first compensation power Y1Value, and determine The power P of second device last time compensationxIt is zero, the first reception power is that Initial Trans and the second link consume it Difference;First device determines that the times N of the transmission power with predetermined power threshold compensation to the second link, the times N are the first benefit Repay power Y1Value be equal to predetermined power threshold value total quantity, N is positive integer;First device is according to predetermined power threshold value, this time Number N and PxDetermine that the first link consumes, wherein PTA=N*PTH+Px, PTAFor the consume of the first link, PTHFor predetermined power threshold value, Px More than or equal to zero, and it is less than predetermined power threshold value.
By implementing the optional mode, when the consume of the first link is excessive, second device can be several times by the first link To the transmission power of the second link, the reception power for receiving signal to avoid first device is excessive to cause the first dress for consume compensation Set damage.
Optionally, when first compensates power Y1Value be equal to predetermined power threshold value when, first device continues to test the second light The reception power of signal, and continue to determine the first compensation power Y according to the reception power of the second optical signal detected1Value; During first device detects the reception power of the second optical signal, target power P is determined3, target power P3=n*PTH+P0, N is fixed first compensation power Y1Value be equal to predetermined power threshold value quantity;As target power P3Greater than first device When maximum transmission power, stops the reception power of the second optical signal of detection and stop determining the first compensation power Y1Value, and To host reporting fault information.
As target power P3Greater than first device maximum transmission power when, illustrate the first link consume PTAIt is excessive, first Link is likely to occur failure.It therefore, can be in time to host reporting fault information, so that maintenance by implementing the optional mode Personnel can have found that the first link breaks down in time.
Optionally, after first device consumes the transmission power for adjusting the first link according to the first link, first device is logical It crosses the second link and receives the 6th optical signal that second device is sent, include signal quality parameter, signal quality in the 6th optical signal Parameter is used to indicate the signal receiving quality of the first link;First device adjusts the transmitting of the first link according to signal quality parameter Power.
By implementing the optional mode, in first device and second device formal communication, first device being capable of basis The signal receiving quality situation of second device carrys out fine adjustment signal transmission power, maintains optimal communication efficiency with this.
Second aspect, this application provides a kind of method for power adjustment, this method comprises: second device passes through the One link receives the first optical signal for sending with Initial Trans of first device, and first link is for second device reception the The optical signal that one device is sent;Second device determines the first link according to the reception power and Initial Trans of the first optical signal The first link consume;Second device sends the second optical signal, the hair of second optical signal by the second chain road direction first device Penetrating power is according to Initial Trans and the consume determination of the first link, which is used for second device to first device Send optical signal.
As it can be seen that being conducive to first device can determine the link of transmitting link by implementing method described in second aspect Consume, and then according to the transmission power of link consume adjust automatically optical signal.
Optionally, Initial Trans are greater than the receiving sensitivity of second device, and are less than the maximum of second device and receive Power.By implementing the optional mode, be conducive to the transmission power that first device can automatically to the optical signal of first device It is adjusted to suitable transmission power, makes second device to the reception power of optical signal in reasonable range.
Optionally, before second device sends the second optical signal by the second chain road direction first device, second device is also logical It crosses the second link and sends third optical signal to first device with Initial Trans.
By implementing the optional mode, be conducive to before first device and second device formal communication, first device Automatically transmission power is adjusted.
Optionally, second device receives the first optical signal that first device is sent with Initial Trans by the first link Before, second device also executes following steps: second device sends the 4th optical signal by the second chain road direction first device, this Four optical signals carry the transmission power of the 4th optical signal;Second device detects that the reception power of the first link is less than second device Receiving sensitivity when, by the second link with Initial Trans to first device send the 5th optical signal.
By implementing the optional mode, be conducive to after first device and second device formal communication, second device In the first link when receiving receiving sensitivity of the power less than second device, first device automatically adjusts transmission power It is whole.
Optionally, when the consume of the first link is less than predetermined power threshold value, the transmission power of second optical signal is to pass through First link consumes compensated power, the transmission power of second optical signal be the consume of the first link and Initial Trans it With.
By implementing the optional mode, the first link can be consumed the transmitting function of compensation to the second link by second device Rate to first device accurately to notify the first link to consume.
Optionally, when the consume of the first link is greater than or equal to predetermined power threshold value, the consume of the first link is divided into N+1 times The transmission power of second link is compensated, the preceding compensated transmission power of n times is predetermined power threshold value and initial transmissions The sum of power, the compensated transmission power of last time are PxThe sum of with Initial Trans, wherein PTA=N*PTH+Px, PTAFor The consume of first link, PTHFor predetermined power threshold value, N is positive integer, PxMore than or equal to zero, and it is less than predetermined power threshold value;The The transmission power of two optical signals alternately changes according to compensated transmission power and Initial Trans.
By implementing the optional mode, when the consume of the first link is excessive, second device can be several times by the first link To the transmission power of the second link, the reception power for receiving signal to avoid first device is excessive to cause the first dress for consume compensation Set damage.
Optionally, after second device sends the second optical signal by the second chain road direction first device, method further include: the Two devices send the 6th optical signal by the second chain road direction first device, include signal quality parameter in the 6th optical signal, should Signal quality parameter is used to indicate the signal receiving quality of the first link.
By implementing the optional mode, in first device and second device formal communication, first device being capable of basis The signal receiving quality situation of second device carrys out fine adjustment signal transmission power, maintains optimal communication efficiency with this.
The third aspect provides a kind of device for power adjustment, which can be performed above-mentioned Method in the possible embodiment of first aspect, second aspect, first aspect or the possible embodiment of second aspect.The function Corresponding software realization can also can be executed by hardware by hardware realization.The hardware or software include one or more A unit corresponding with above-mentioned function.The unit can be software and/or hardware.Based on the same inventive concept, this is used for function The principle and beneficial effect that the device of rate adjustment solves the problems, such as may refer to above-mentioned first aspect, second aspect, first aspect In possible embodiment or the possible embodiment of second aspect and beneficial effect, overlaps will not be repeated.
Fourth aspect provides a kind of device for power adjustment, which includes: processor And transceiver;Processor is connected with transceiver;Transceiver is for realizing the communication between other network elements.Wherein, the processor For realizing above-mentioned first aspect, second aspect, the possible embodiment of first aspect or the possible embodiment of second aspect In scheme;The device for being used for power adjustment is optical module or this is used to include optical module, i.e. light in the device of power adjustment Module belongs to a part in the device for power adjustment.The embodiment that solves the problems, such as of device for power adjustment with And beneficial effect may refer to the possible embodiment of above-mentioned first aspect, second aspect, first aspect or second aspect may Embodiment and beneficial effect, overlaps will not be repeated.
5th aspect, provides a kind of computer program product, when run on a computer, so that computer executes Above-mentioned first aspect, second aspect, in the possible embodiment of the possible embodiment of first aspect or second aspect Method.
6th aspect, provides a kind of chip product of device for power adjustment, executes above-mentioned first aspect, second Method in the possible embodiment of aspect, the possible embodiment of first aspect or second aspect.
7th aspect, has mentioned for a kind of computer readable storage medium, is stored with instruction in computer readable storage medium, When run on a computer, so that computer executes the possible implementation of above-mentioned first aspect, second aspect, first aspect Method in the possible embodiment of mode or second aspect.
Detailed description of the invention
Fig. 1 is a kind of schematic diagram of communication system provided by the embodiments of the present application;
Fig. 2 is a kind of schematic diagram of method for power adjustment provided by the embodiments of the present application;
Fig. 3~Fig. 5 is the interaction flow schematic diagram between first device provided by the embodiments of the present application and second device;
Fig. 6 and Fig. 7 is the schematic diagram of the transmission power variation of the second optical signal provided by the embodiments of the present application;
Fig. 8 is the schematic diagram of another method for power adjustment provided by the embodiments of the present application;
Fig. 9 be it is provided by the embodiments of the present application another for power adjustment method schematic diagram;
Figure 10 be it is provided by the embodiments of the present application another for power adjustment method schematic diagram;
Figure 11 be it is provided by the embodiments of the present application another for power adjustment method schematic diagram;
Figure 12 is the interaction flow schematic diagram between first device provided by the embodiments of the present application and second device;
Figure 13 is a kind of structural schematic diagram of device for power adjustment provided by the embodiments of the present application;
Figure 14 be it is provided by the embodiments of the present application another for power adjustment device structural schematic diagram.
Specific embodiment
The application specific embodiment is described in further detail with reference to the accompanying drawing.
The embodiment of the present application provides a kind of method and device for power adjustment, can be according to the link of transmitting link Consume is automatically adjusted the transmission power of transmitting link, without disposing optical attenuator.
In order to more fully understand the embodiment of the present application, the communication system of the embodiment of the present application is illustrated below.
Referring to Figure 1, Fig. 1 is a kind of schematic diagram of communication system provided by the embodiments of the present application.As shown in Figure 1, this is logical Letter system includes first device and second device.Wherein, first device and second device by the first link and the second link into Row communication.First link sends optical signal to second device for first device, and receives first device for second device The optical signal of transmission.Second link sends optical signal to first device for second device, and receives for first device The optical signal that two devices are sent.First link and the second link be not identical.
Optionally, the first link and the second link can be optical fiber link.Optionally, first device and second device can be with Belong to a part of first device and second device for optical module or optical module.Optionally, first device can be located at first and set In standby, second device can be located in the second equipment.First equipment and the second equipment can be optical transmitter and receiver, interchanger, router Or base station etc..Wherein, optical module can for SFP, GigaBit Interface Converter (gigabit interface converter, GBIC), the light such as 10 gigabit small package hot plug transceiver XFP (10Gigabit Small Form Factor Pluggable) Module.
Communication means and relevant device provided herein are introduced in detail below.
Fig. 2 is referred to, Fig. 2 is a kind of flow diagram of method for power adjustment provided by the embodiments of the present application. As shown in Fig. 2, the method for being used for power adjustment includes the following steps 201~206, in which:
Step 201, first device determine the second link consume of the second link.
Step 202, first device send the first optical signal to second device with Initial Trans by the first link.
In the embodiment of the present application, step 201 can be executed before step 202 or step 201 can after step 202, It is executed before step 205.
Step 203, second device determine the first link according to the reception power and Initial Trans of the first optical signal The consume of first link.
In the embodiment of the present application, second device receive that first device is sent with Initial Trans by the first link the One optical signal.After second device receives the first optical signal, the reception power of the first optical signal can detect, and according to first The reception power and Initial Trans of optical signal determine the first link consume of the first link.Initial Trans are to be preset in Transmission power on first device and second device.
The consume of the first link, second device are subtracted since the reception power of the first optical signal is equal to Initial Trans The difference of Initial Trans and the reception power of the first optical signal can be determined as to the consume of the first link.
Step 204, second device send the second optical signal by the second chain road direction first device.
Step 204 executes after step 203.That is, after second device determines the consume of the first link, second Device sends the second optical signal by the second chain road direction first device.
Wherein, the transmission power of second optical signal is determined according to the consume of the first link and Initial Trans.Tool Body, after second device determines the consume of the first link, determine that the second light is believed according to the consume of the first link and Initial Trans Number transmission power, then by the second link with the transmission power of determining second optical signal to first device send second Optical signal.
Step 205, first device is consumed according to reception power, the second link of the second optical signal and Initial Trans are true Fixed first link consume.
In the embodiment of the present application, after first device receives the second optical signal that second device is sent by the second link, The reception power of the second optical signal is detected, and according to the reception power of the second optical signal, the consume of the second link and initial transmissions function Rate determines that the first link consumes.
Step 206, first device consume the transmission power of the first link of adjustment according to the first link.
In the embodiment of the present application, after first device determines the consume of the first link, according to the first link consume adjustment first The transmission power of link.
For example, as shown in figure 3, first device determines that the second link consumes PTBFor 13dBm (decibel milliwatt).First dress It sets with Initial Trans P0The first optical signal is sent to second device.After second device receives the first optical signal, the is determined The reception power of one optical signal.As it can be seen that the reception power of the first optical signal is P0-PTA, wherein PTAFor the first chain of the first link Road consume.After second device determines the reception power of the first optical signal, by Initial Trans P0With connecing for the first optical signal The difference for receiving power is determined as the first link consume PTA.Assuming that Initial Trans P0For 20dBm, the reception power of the first optical signal For 8dBm, then the first link consumes PTAFor 12dBm.
Second device determines that the first link consumes PTALater, P is consumed according to the first linkTAWith Initial Trans P0It determines The transmission power of second optical signal, and the second optical signal is sent with determining transmission power by the second chain road direction first device. First device is according to the reception power P of the second optical signal1, the second link consume PTBWith Initial Trans P0Determine the first link Consume PTA.For example, the transmission power of the second optical signal can be Initial Trans P0P is consumed with the first linkTAThe sum of, i.e. P0 +PTA.Therefore, the reception power P of the second optical signal1=P0+PTA-PTB.First device is according to the reception power P of the second optical signal1、 Second link consumes PTBWith Initial Trans P0It just can determine that the first link consumes PTA, i.e. PTA=P1-P0+PTB.Certainly, second The transmission power of optical signal may be to consume P according to the first linkTAWith Initial Trans P0Other determining transmission powers, The embodiment of the present application is without limitation.
First device determines that the first link consumes PTALater, so that it may which P is consumed according to the first linkTAAdjust the first link Transmission power.
As it can be seen that by implementing method described in Fig. 2, first device can determine the link consume of transmitting link, Jin Ergen According to the transmission power of link consume adjust automatically optical signal.Therefore, by implementing method described in Fig. 2, deployment light decay is not had to Subtract device can the transmission power automatically to the optical signal of first device be adjusted.
In a kind of possible embodiment, Initial Trans are greater than the receiving sensitivity of second device, and less than the The maximal received power of two devices.The transmission power of first link adjusted is that Initial Trans and the first link consume it With.Wherein, the receiving sensitivity of second device refers to that second device can be properly received the minimum reception power of signal.The The maximal received power of two devices is the maximal received power that second device can receive signal.
By implementing the possible embodiment, the reception power that second device receives the optical signal is initial transmissions function Rate.Since Initial Trans are greater than the receiving sensitivity of second device, and it is less than the maximal received power of second device, because This, second device is to the reception power of optical signal in reasonable range.Therefore, by implementing the embodiment, first device can Suitable transmission power automatically is adjusted to the transmission power of the optical signal of first device, connects second device to optical signal Power is received in reasonable range.
In a kind of possible embodiment, when second device determines that the consume of the first link is less than predetermined power threshold value, The transmission power of second optical signal is to consume compensated power by the first link, and the transmission power of second optical signal is The sum of the consume of first link and Initial Trans.
Correspondingly, first device is consumed according to reception power, the second link of the second optical signal and Initial Trans are true The specific embodiment of fixed first link consume the following steps are included:
(11) first device detects the reception power of the second optical signal, and determines the first compensation power Y1Value, Y1=P1+ PTB-P0, P1For the reception power of the second currently detected optical signal, PTBFor the consume of the second link, P0For Initial Trans.
(12) when first compensates power Y1Value be less than predetermined power threshold value when, first device by first compensate power Y1's Value is determined as the consume of the first link.
For example, as shown in figure 4, second device mode according to described in above-mentioned Fig. 3 determines that the first link consumes PTA For 12dBm.First device determines that the second link consumes PTBFor 13dBm.
If predetermined power threshold value PTHFor 14dBm, then second device determines that the first link consumes PTALater, second device is true The transmission power of fixed second optical signal is P0+PTA, and the is sent by the second chain road direction first device with determining transmission power Two optical signals.After first device receives the second optical signal, the reception power P of the second optical signal is determined1, and determine that first mends Repay power Y1Value, Y1=P1+PTB-P0.The reception power P of second optical signal1For 19dBm, the second link consumes PTBFor 13dBm, Initial Trans P0For 20dBm, therefore the first compensation power Y1Value be 12dBm.Due to the first compensation power Y1Value be less than Predetermined power threshold value, therefore, first device determine that the first link consumes PTAFor 12dBm.Last first device uses the first link Consume PTAAdjust the transmission power of the first link.Fig. 4 is P with transmission power adjustedTA+P0For.
By implementing the possible embodiment, the first link can be consumed the hair of compensation to the second link by second device Power is penetrated accurately to notify the first link to consume to first device.
Optionally, when second device determines that the consume of the first link is greater than or equal to predetermined power threshold value, the first link consumption Damage is divided into N+1 times and compensates to the transmission power of the second link, and the preceding compensated transmission power of n times is predetermined power threshold The sum of value and Initial Trans, the compensated transmission power of last time are PxThe sum of with Initial Trans, wherein PTA= N*PTH+Px, PTAFor the consume of the first link, PTHFor predetermined power threshold value, N is positive integer, PxMore than or equal to zero, and it is less than default Power threshold;The transmission power of second optical signal alternately changes according to compensated transmission power and Initial Trans.
Correspondingly, first device is consumed according to reception power, the second link of the second optical signal and Initial Trans are true The specific embodiment of fixed first link consume is further comprising the steps of in addition to including above-mentioned (11) and (12):
(13) when first compensates power Y1Value be equal to predetermined power threshold value when, first device continues to test the second optical signal Reception power, and continue to determine the first compensation power Y according to the reception power of the second optical signal detected1Value.
(14) when first compensates power Y1Value be greater than zero, and be less than predetermined power threshold value when, first device stop detection The reception power of second optical signal and stopping determine the first compensation power Y1Value, and determine PxValue be and to be less than greater than zero First compensation power Y of predetermined power threshold value1Value.
(15) when the reception power for detecting the second optical signal is that the first reception power continuously reaches preset duration, first Device stops the reception power of the second optical signal of detection and stops determining the first compensation power Y1Value, and determine second device The power P of last time compensationxIt is zero, which is the difference that Initial Trans and the second link consume.
(16) first device determines the times N of the transmission power with predetermined power threshold compensation to the second link, the times N For the first compensation power Y1Value be equal to predetermined power threshold value total quantity, the N be positive integer.
(17) first device is according to predetermined power threshold value, the times N and PxDetermine that the first link consumes, wherein PTA=N* PTH+Px
By implementing the optional mode, when the consume of the first link is excessive, second device can be several times by the first link To the transmission power of the second link, the reception power for receiving signal to avoid first device is excessive to cause the first dress for consume compensation Set damage.
For example, as shown in figure 5, second device mode according to described in above-mentioned Fig. 3 determines that the first link consumes PTA For 12dBm.First device determines that the second link consumes PTBFor 13dBm.
If predetermined power threshold value PTHFor 5dBm, due to PTA=N*PTH+Px=12dBm, N are positive integer, PxIt is greater than or equal to Zero, and it is less than predetermined power threshold value PTH.Therefore, N is equal to 2, PxEqual to 2dBm.Second device determines that the first link consumes PTAIt Afterwards, the first link is consumed into PTADivide 3 times and the transmission power of the second link is compensated, the hair of the second link after compensating for the first time Penetrating power is P0+ 5dBm, the transmission power of the second link is P after second of compensation0+ 5dBm, the second link after third time compensates Transmission power is P0+2dBm.Second device is according to compensated transmission power and Initial Trans P0Alternately variation sends second Optical signal.For example, the transmission power variation of the second optical signal can be as shown in Figure 6.
Correspondingly, first device can detect the reception power of the second optical signal.First device detects the second light for the first time The reception power P of signal1For P0+5-PTB.First device is according to the reception power P of the second currently detected optical signal1Determine One compensation power Y1Value.Due to the first compensation power Y1=P1+PTB-P0=5dBm, the first compensation power Y1Value be equal to it is default Power threshold PTH, therefore first device continues to test the reception power of the second optical signal, and continues according to the second light detected The reception power of signal determines the first compensation power Y1Value, and first device record predetermined power threshold value compensated to second The number of the transmission power of link is 1.Optionally, first device can start counter and be compensated predetermined power threshold value to second The number of the transmission power of link is counted.The reception power P for the second optical signal that first device detects for the second time1For P0- PTB, first device is according to the reception power P of the second optical signal detected for the second time1Determine the first compensation power Y1=P1+PTB- P0=0dBm.The reception power P for the second optical signal that first device third time detects1For P0+5-PTB, first device is according to The reception power P of the second optical signal detected three times1Determine the first compensation power Y1=P1+PTB-P0=5dBm.Therefore first It is 2 that device, which records predetermined power threshold value by the number compensated to the transmission power of the second link, i.e. counter adds 1.First device The reception power of 4th the second optical signal detected is P0-PTB, first device believes according to the second light detected for the 4th time Number reception power P1Determine the first compensation power Y1=P1+PTB-P0=0dBm.The 5th the second light detected of first device The reception power P of signal1For P0+2-PTB, due to the reception power P of the second optical signal detected according to the 5th time1Determining One compensation power Y1=P1+PTB-P0=2dBm, the first compensation power Y1Value be less than predetermined power threshold value PTH(i.e. 5), and be greater than 0, then first device determines PxFor 2dBm.When first device detects the first compensation power Y1Value be less than predetermined power threshold value PTH (i.e. 5dBm), and be greater than 0 when, first device stop detection the second optical signal reception power and stop determine first compensation function Rate Y1Value.Finally, it is 2 that first device, which determines that predetermined power threshold value is compensated to the times N of the transmission power of the second link, and And PxFor 2dBm.First device determines that the first link consumes PTA=N*PTH+Px.Last first device consumes P using the first linkTA Adjust the transmission power of the first link.Fig. 5 is P with transmission power adjustedTA+P0For.
Again for example, if predetermined power threshold value PTHFor 6dBm, due to PTA=N*PTH+Px=12dBm, N are positive integer, Px More than or equal to zero, and it is less than predetermined power threshold value PTH.Therefore, N is equal to 2, PxEqual to 0dBm.Second device determines the first link Consume PTALater, the first link is consumed into PTAThe transmission power of second link is compensated, the after compensating for the first time points for 3 times The transmission power of two links is P0+ 6, the transmission power of the second link is P after second of compensation0+ 6, the second chain after third time compensates The transmission power on road is P0+0.Second device is according to compensated transmission power and Initial Trans P0Alternately variation sends the Two optical signals.For example, the variation of the second optical signal can be as shown in Figure 7.
Correspondingly, first device can detect the reception power of the second optical signal.First device detects the second light for the first time The reception power P of signal1For P0+6-PTB.First device is according to the reception power P of the second optical signal detected for the first time1It determines First compensation power Y1Value.Due to the first compensation power Y1=P1+PTB-P0=6dBm, the first compensation power Y1Value be equal to it is pre- If power threshold PTH, therefore first device continues to test the reception power of the second optical signal, and continues according to second detected The reception power of optical signal determines the first compensation power Y1Value, and first device record predetermined power threshold value is compensated to the The number of the transmission power of two links is 1.The reception power P for the second optical signal that first device detects for the second time1For P0- PTB, first device is according to the reception power P of the second optical signal detected for the second time1Determine the first compensation power Y1=P1+PTB- P0=0dBm.The reception power P for the second optical signal that first device third time detects1For P0+6-PTB, first device is according to The reception power P of the second optical signal detected three times1Determine the first compensation power Y1=P1+PTB-P0=6dBm.Therefore first It is 2 that device, which records predetermined power threshold value by the number compensated to the transmission power of the second link, i.e. counter adds 1.First device The reception power P of 4th the second optical signal detected1For P0-PTB, and continuous 2ms detects the reception of the second optical signal Power P1For P0-PTB, therefore, first device determines PxFor 0dBm.When first device detects that continuous 2ms reception detects second The reception power of optical signal is P0-PTBWhen, first device stops the reception power of the second optical signal of detection and stops determining the One compensation power Y1
Finally, first device determines that N is 2, and PxFor 0dBm.First device determines that the first link consumes PTA=N*PTH+ Px
Optionally, first device can also carry out following steps in addition to executing above-mentioned (11) and (12):
(21) when first compensates power Y1Value be equal to predetermined power threshold value when, first device continues to test the second optical signal Reception power, and continue to determine the first compensation power Y according to the reception power of the second optical signal detected1Value.
(22) during first device detects the reception power of the second optical signal, target power P is determined3, the target Power P3=n*PTH+P0, n is fixed first compensation power Y1Value be equal to predetermined power threshold value quantity.
(23) as target power P3Greater than first device maximum transmission power when, stop detection the second optical signal reception Power and stopping determine the first compensation power Y1Value, and to host reporting fault information.Wherein, which can be first Equipment where device, the first equipment where the first device as described in above-mentioned communication system.
As target power P3Greater than first device maximum transmission power when, illustrate the first link consume PTAIt is excessive, first Link is likely to occur failure.It therefore, can be in time to host reporting fault information, so that maintenance by implementing the optional mode Personnel can have found that the first link breaks down in time.
For example, if second device determines that the first link consumes PTAFor 30dBm, predetermined power threshold value PTHFor 4dBm, then Second device, which is divided 8 times, compensates the transmission power of the second link, and the power of preceding 7 compensation are predetermined power threshold value PTH(i.e. 4), the power of last time compensation is Px(i.e. 2dBm).If the maximum transmission power of first device is 55dBm, initial transmissions function Rate P0For 40dBm, then the first compensation power Y is determined in first device1Value be equal to predetermined power threshold value quantity be 4 when, target Power P3=4*PTH+P0=56dBm.Due to target power P at this time3Greater than the maximum transmission power of first device, then first device Stop the reception power of the second optical signal of detection and stops determining the first compensation power Y1Value, and to host reporting fault believe Breath.
Optionally, when first device determines target power P3Greater than first device maximum transmission power when, and second Link consumes PTBLess than predetermined power threshold value PTHWhen, first device can also be to second device with transmission power P0+PTBAnd P0+PTH Optical signal is sent, alternately to notify second device to stop sending the second optical signal.Second device detects the light letter of the first link Number reception power be P0+PTB-PTAAnd P0+PTH-PTAWhen alternately changing, stop sending the second optical signal.
When first device determines that target power P3 is greater than the maximum transmission power of first device, illustrate that the first link consumes PTAIt is excessive, it has not needed to consume P using the first link at this timeTAAdjust the transmission power of the first link, therefore first device is not Need to continue to test the reception power of the second optical signal to determine that the first link consumes PTA.As it can be seen that by implementing the optional side Formula, first device can notify second device to stop sending the second optical signal in time, be conducive to the CPU money for saving second device Source.
Optionally, first device continues to send optical signal to second device during receiving the second optical signal.If the Two devices do not receive any optical signal by the first link within a preset period of time during sending the second optical signal, then Second device is reported to host is used to indicate the instruction information that the corresponding optical fiber of the first link is pulled out.
By implementing the optional mode, second device may detect in time the corresponding optical fiber of the first link whether by It extracts, and is reported to host be used to indicate the instruction information that the corresponding optical fiber of the first link is pulled out in time, thus operation maintenance personnel It can find that the corresponding optical fiber of the first link is pulled out in time.
Fig. 8 is referred to, Fig. 8 is the process signal of another method for power adjustment provided by the embodiments of the present application Figure.As shown in figure 8, the method for being used for power adjustment includes the following steps 801~807, in which:
Step 801, second device send third optical signal to first device with Initial Trans by the second link.
In the embodiment of the present application, the first optical signal first can be sent to second device from first device, keep second device true Fixed first link consume, then third optical signal is sent from second device to first device, so that first device is determined that the second link consumes Damage.Alternatively, third optical signal first can also be sent to first device from second device, first device is made to determine that the second link consumes Damage, then the first optical signal is sent from first device to second device, so that second device is determined that the first link consumes, the application is implemented Example is without limitation.
Step 802, first device determine the second link according to the reception power and Initial Trans of third optical signal The consume of second link.
In the embodiment of the present application, first device receive that second device is sent with Initial Trans by the second link the Three optical signals.After first device receives third optical signal, the reception power of third optical signal is detected, and according to third light The reception power and Initial Trans of signal determine the second link consume of the second link.
The consume of the second link, first device are subtracted since the reception power of third optical signal is equal to Initial Trans The difference of Initial Trans and the reception power of third optical signal can be determined as to the consume of the second link.
Step 803, first device send the first optical signal to second device with Initial Trans by the first link.
Step 804, second device determine the first link according to the reception power and Initial Trans of the first optical signal The consume of first link.
Step 805, second device send the second optical signal by the second chain road direction first device.
Step 806, first device is consumed according to reception power, the second link of the second optical signal and Initial Trans are true Fixed first link consume.
Step 807, first device consume the transmission power of the first link of adjustment according to the first link.
Wherein, step 202~step 206 phase in the specific embodiment with above method embodiment of step 803~807 Together, for details, reference can be made to the corresponding description of step 203~step 206, this will not be repeated here.
By implementing method described in Fig. 8, before first device and second device formal communication, first device can be certainly Dynamic ground is adjusted transmission power.
Fig. 9 is referred to, Fig. 9 is the process signal of another method for power adjustment provided by the embodiments of the present application Figure.As shown in figure 9, the method for being used for power adjustment includes the following steps 901~908, in which:
Step 901, second device send the 4th optical signal by the second chain road direction first device.
Wherein, the 4th optical signal carries the transmission power of the 4th optical signal.
Step 902, first device determine according to the transmission power of the 4th optical signal and the reception power of the 4th optical signal Second link of two links consumes.
In the embodiment of the present application, after first device receives the 4th optical signal, the 4th light is decoded from the 4th optical signal The transmission power of signal, and the second link is determined according to the transmission power of the 4th optical signal and the reception power of the 4th optical signal The consume of second link.
Wherein, the consume of the second link is that the transmission power of the 4th optical signal subtracts the reception power of the 4th optical signal.
Step 903, second device detect when receiving receiving sensitivity of the power less than second device of the first link, lead to It crosses the second link and sends the 5th optical signal to first device with Initial Trans.
When the sum of step 904, the reception power for detecting the consume of the second link and the 5th optical signal are Initial Trans, First device sends the first optical signal to second device with Initial Trans by the first link.
In the embodiment of the present application, after first device receives the 5th optical signal, the consume of the second link and the 5th light are detected When the sum of reception power of signal is initial transmissions function, first device is by the first link with Initial Trans to second device Send the first optical signal.
Step 905, second device determine the first link according to the reception power and Initial Trans of the first optical signal The consume of first link.
Step 906, second device send the second optical signal by the second chain road direction first device.
Step 907, first device is consumed according to reception power, the second link of the second optical signal and Initial Trans are true Fixed first link consume.
Step 908, first device consume the transmission power of the first link of adjustment according to the first link.
Wherein, step 202~step 206 phase in the specific embodiment with above method embodiment of step 904~908 Together, for details, reference can be made to the corresponding description of step 202~step 206, this will not be repeated here.
By implementing method described in Fig. 9, after first device and second device formal communication, second device is When receiving receiving sensitivity of the power less than second device of one link, first device can automatically adjust transmission power It is whole.
0, Figure 10 is the process signal of another method for power adjustment provided by the embodiments of the present application referring to Figure 1 Figure.As shown in Figure 10, which includes following 1001~1008 part, in which:
Step 1001, first device determine the second link consume of the second link.
Step 1002, first device send the first optical signal to second device with Initial Trans by the first link.
Step 1003, second device determine the first link according to the reception power and Initial Trans of the first optical signal The consume of first link.
Step 1004, second device send the second optical signal by the second chain road direction first device.
Step 1005, first device are according to the reception power of the second optical signal, the consume of the second link and Initial Trans Determine that the first link consumes.
Step 1006, first device consume the transmission power of the first link of adjustment according to the first link.
Wherein, step 201~step 206 phase in the specific embodiment with above method embodiment of step 1001~1006 Together, for details, reference can be made to the corresponding description of step 201~step 206, this will not be repeated here.
Step 1007, second device send the 6th optical signal by the second chain road direction first device.
It wherein, include signal quality parameter in the 6th optical signal, which is used to indicate the first link Signal receiving quality.Optionally, which includes the received signal power of the first link and receives in the bit error rate At least one or information quality parameter can also be that other are used to indicate the parameter of the signal receiving quality of the first link, this Shen Please embodiment without limitation.
Step 1008, first device adjust the transmission power of the first link according to signal quality parameter.
In the embodiment of the present application, after first device receives the 6th optical signal that second device is sent by the second link, Decoding obtains signal quality parameter from the 6th optical signal, and the transmitting function of the first link is adjusted according to the signal quality parameter Rate.For example, the signal quality parameter be used to indicate the first link signal receiving quality it is poor when, first device can increase by first The transmission power of link, so that second device improves in the signal receiving quality of the first link.
As it can be seen that by implementation steps 1007 and 1008, in first device and second device formal communication, first device energy Enough signal receiving quality situations according to second device maintain optimal communication efficiency come fine adjustment signal transmission power, with this.
It is noted that first device and second device can functions having the same.In first device and second device Before formal communication, second device can also be adjusted the transmission power of the second link according to the identical principle of first device.
1, Figure 11 is that another process for being used for the method for power adjustment provided by the embodiments of the present application is illustrated referring to Figure 1 Figure.As shown in figure 11, which includes following 1101~1110 part, in which:
Step 1101, first device send the first optical signal to second device with Initial Trans by the first link.
Step 1102, second device determine the first link according to the reception power and Initial Trans of the first optical signal The consume of first link.
Step 1103, second device send third optical signal to first device with Initial Trans by the second link.
Step 1104, first device determine the second link according to the reception power and Initial Trans of third optical signal The consume of second link.
Step 1105, second device send the second optical signal by the second chain road direction first device.
Step 1106, first device are according to the reception power of the second optical signal, the consume of the second link and Initial Trans Determine that the first link consumes.
Step 1107, first device consume the transmission power of the first link of adjustment according to the first link.
The specific embodiment of above-mentioned steps 1101~1107 is identical as the specific embodiment of above-mentioned steps 803~807, For details, reference can be made to the specific embodiments of above-mentioned steps 803~807, and this will not be repeated here.
Step 1108, first device send the 7th optical signal by the first chain road direction second device.
In the embodiment of the present application, the transmission power of the 7th optical signal is true according to the consume of the second link and Initial Trans Fixed.Specifically, after first device determines the consume of the second link, the is determined according to the consume of the second link and Initial Trans The transmission power of seven optical signals, then the 7th optical signal is sent to second device with determining transmission power by the first link.
Step 1109, second device are according to the reception power of the 7th optical signal, the consume of the first link and Initial Trans Determine that the second link consumes.
Step 1110, second device consume the transmission power of the second link of adjustment according to the second link.
Wherein, step 1108~1110 and the execution of step 1105~step 1107 sequence in no particular order.
For example, as shown in figure 12, first device is with Initial Trans P0The first optical signal is sent to second device, Similarly second device is with Initial Trans P0Third optical signal is sent to first device.
After second device receives the first optical signal, the reception power of the first optical signal is determined.Second device is according to first The reception power and Initial Trans of optical signal determine that the first link consumes.Assuming that Initial Trans P0For 20dBm, first The reception power of optical signal is 8dBm, then the first link consumes PTAFor 12dBm.
Similarly, after first device receives third optical signal, the reception power of third optical signal is determined.First device according to The reception power Initial Trans of third optical signal determine that the second link consumes.Assuming that Initial Trans P0For 20dBm, The reception power of three optical signals is 7dBm, then the second link consumes PTBFor 13dBm.
Second device determines that the first link consumes PTALater, for example, determining that the transmission power of the second optical signal is just to originate Penetrate power P0P is consumed with the first linkTAThe sum of, i.e. P0+PTA.Second device is passed through with the transmission power of the second determining optical signal Second chain road direction first device sends the second optical signal.After first device detects the second optical signal, the second optical signal is determined Reception power P1=P0+PTA-PTB.First device is according to the reception power P of the second optical signal1, the second link consume PTBWith it is first It originates and penetrates power P0It just can determine that the first link consumes PTA, i.e. PTA=P1-P0+PTB.Certainly, the transmission power of the second optical signal It can the according to first link consume PTAWith Initial Trans P0Other determining transmission powers, the embodiment of the present application do not limit It is fixed.First device determines that the first link consumes PTALater, so that it may which P is consumed according to the first linkTAAdjust the transmitting function of the first link Rate.
Similarly, first device determines that the second link consumes PTBLater, for example, determining that the transmission power of the 7th optical signal is first It originates and penetrates power P0P is consumed with the second linkTBThe sum of, i.e. P0+PTB.After second device detects the 7th optical signal, is determined The reception power P of seven optical signals2=P0+PTB-PTA.Second device is according to the reception power P of the 7th optical signal2, the first link consumption Damage PTAWith Initial Trans P0It just can determine that the second link consumes PTB, i.e. PTB=P2-P0+PTA.Certainly, the hair of the 7th optical signal Penetrating power may be to consume P according to the second linkTBWith Initial Trans P0Other determining transmission powers, the application are implemented Example is without limitation.Second device determines that the second link consumes PTBLater, so that it may which P is consumed according to the second linkTBAdjust the second link Transmission power.
By method described in Figure 11, second device can also determine second device by principle identical with first device Transmitting link link consume, and according to link consume automatic adjustment transmitting link transmission power.That is, passing through figure Method described in 11, first device and second device can automatically adjust the transmission power of transmitting link.
In a kind of possible embodiment, Initial Trans are greater than the receiving sensitivity of second device, and less than the The maximal received power of two devices.And Initial Trans are greater than the receiving sensitivity of first device, and are less than first device Maximal received power.The transmission power of first link adjusted is the sum of Initial Trans and the consume of the first link.It adjusts The transmission power of the second link after whole is the sum of Initial Trans and the consume of the second link.
By implementing the possible embodiment, the transmission power that first device can automatically to the optical signal of first device It is adjusted to suitable transmission power, makes second device to the reception power of optical signal in reasonable range.Second device can also be certainly Dynamic ground is adjusted to suitable transmission power to the transmission power of the optical signal of second device, makes reception of the first device to optical signal Power is in reasonable range.
The embodiment of the present invention can carry out the division of functional module according to above method example to equipment, for example, can be right The each functional module of each function division is answered, two or more functions can also be integrated in a module.It is above-mentioned Integrated module both can take the form of hardware realization, can also be realized in the form of software function module.It needs to illustrate , be to the division of module in the embodiment of the present invention it is schematical, only a kind of logical function partition in actual implementation may be used To there is other division mode.
3, Figure 13 is a kind of device for power adjustment provided in an embodiment of the present invention referring to Figure 1.This is used for power The device of adjustment can be above-mentioned first device.The device for being used for power adjustment includes: communication module 1301 and processing mould Block 1302.Wherein:
Processing module 1302, for determining that the second link of the second link consumes, the second link is used for power tune for this Whole device receives the optical signal that second device is sent;Communication module 1301, for passing through the first link with Initial Trans The first optical signal is sent to second device, the first link sends light letter to second device for the device for being used for power adjustment Number, the first optical signal determines the first link according to the reception power and Initial Trans of the first optical signal for second device The consume of first link;Communication module 1301, be also used to by the second link receive second device send the second optical signal, second The transmission power of optical signal is that second device is determining according to the consume of the first link of Initial Trans and the first link;Processing Module 1302 is also used to the reception power according to the second optical signal, the consume of the second link and Initial Trans and determines the first chain Road consume;Processing module 1302 is also used to consume the transmission power of the first link of adjustment according to the first link.
Optionally, communication module 1301 are also used to send by the second link reception second device with Initial Trans Third optical signal;Processing module 1302 determines the mode of the second link consume of the second link specifically: is believed according to third light Number reception power and Initial Trans determine the second link the second link consume.
Optionally, communication module 1301 are also used to receive the 4th optical signal that second device is sent by the second link, the Four optical signals carry the transmission power of the 4th optical signal;Processing module 1302 determines the mode of the second link consume of the second link Specifically: determine that the second link of the second link consumes according to the reception power of the transmission power of the 4th optical signal and the 4th optical signal Damage;Communication module 1301 is also used to receive the 5th optical signal that second device is sent by the second link;Communication module 1301 is logical The first link is crossed in such a way that Initial Trans send the first optical signal to second device specifically: detect that the second link consumes When the sum of damage and reception power of the 5th optical signal are Initial Trans, by the first link with Initial Trans to second Device sends the first optical signal.
Optionally, processing module 1302 is according to the reception power of the second optical signal, the consume of the second link and initial transmissions function Rate determines the mode of the first link consume specifically: the reception power of the second optical signal of detection, and determine the first compensation power Y1 Value, Y1=P1+PTB-P0, P1For the reception power of the second currently detected optical signal, PTBFor the consume of the second link, P0It is first Beginning transmission power;As the first compensation power Y1Value be less than predetermined power threshold value when, by first compensate power Y1Value be determined as The consume of one link.
Optionally, processing module 1302 is also used to: when first compensates power Y1Value be equal to predetermined power threshold value when, continue The reception power of the second optical signal is detected, and continues to determine the first compensation function according to the reception power of the second optical signal detected Rate Y1Value;As the first compensation power Y1Value be greater than zero, and when being less than predetermined power threshold value, stop second optical signal of detection It receives power and stops determining the first compensation power Y1Value, and determine second device last time compensation power PxIt is One compensation power Y1Value;When the reception power for detecting the second optical signal is that the first reception power continuously reaches preset duration When, stop the reception power of the second optical signal of detection and stops determining the first compensation power Y1Value, and determine second device The power P of last time compensationxIt is zero, first receives the difference that power is Initial Trans and the consume of the second link;It determines and uses Predetermined power threshold compensation to the second link transmission power times N, the times N be first compensation power Y1Value be equal to it is pre- If the total quantity of power threshold, which is positive integer;According to predetermined power threshold value, times N and PxDetermine that the first link consumes, In, PTA=N*PTH+Px, PTAFor the consume of the first link, PTHFor predetermined power threshold value, N is positive integer, PxMore than or equal to zero, and Less than predetermined power threshold value.
Optionally, processing module 1302 is also used to: when first compensates power Y1Value be equal to predetermined power threshold value when, continue The reception power of the second optical signal is detected, and continues to determine the first compensation function according to the reception power of the second optical signal detected Rate Y1Value;During detecting the reception power of the second optical signal, target power P is determined3, target power P3=n*PTH+ P0, n is fixed first compensation power Y1Value be equal to predetermined power threshold value quantity;As target power P3Greater than for function When the maximum transmission power of the device of rate adjustment, stops the reception power of the second optical signal of detection and stop determining the first compensation Power Y1Value, and to host reporting fault information.
Optionally, communication module 1301 are also used to consume the first link of adjustment according to the first link in processing module 1302 Transmission power after, the 6th optical signal that second device is sent is received by the second link, includes signal in the 6th optical signal Mass parameter, signal quality parameter are used to indicate the signal receiving quality of the first link;Processing module 1302, is also used to according to letter Number mass parameter adjusts the transmission power of the first link.
Optionally, Initial Trans are greater than the receiving sensitivity of second device, and are less than the maximum of second device and receive Power, the transmission power of the first link adjusted are the sum of Initial Trans and the consume of the first link.
4, Figure 14 is the structural representation of another device for being used for power adjustment disclosed in the embodiment of the present application referring to Figure 1 Figure.As shown in figure 14, which includes processor 1401 and transceiver 1402.Wherein, processor 1401 are connected with transceiver 1402.
In a kind of possible realization, described device 1400 directly by optical module, such as SFP optical module, is realized.It is understood that Illustrated process device 1401 is the processor being set in optical module.Processor 1401 can be micro-control unit (microcontroller unit, MCU).It can integrated memory etc. in MCU.MCU is for executing in above method embodiment the The correlation step of one device or second device.
The transceiver 1402 is for realizing the communication between other network elements, i.e., transceiver 1402 is for receiving optical signal With transmitting optical signal.It may include photoelectric conversion circuit in transceiver 1402.Photoelectric conversion circuit is for receiving transceiver 1402 Optical signal be converted to electric signal, and will need to emit electric signal and be converted to optical signal, so that transceiver 1402 is emitted.
In alternatively possible realization, the transceiver 1402 is realized by optical module namely optical module belongs to described device A part in 1400.Optical module cooperates together with the processor 1401 realizes power adjustment.
The processor 1401 can be general processor, for example, central processing unit (central processing Unit, CPU), network processing unit (network processor, NP).The processor 1401 is also possible to specific integrated circuit (application-specific integrated circuit, ASIC), programmable logic device or combinations thereof.It is programmable Logical device, such as can be field programmable gate array (field programmable gate array, FPGA), it is complicated Programmable logic device (English: complex programmable logic device, abbreviation: CPLD) etc. or it is any Combination.
If the processor 1401 is general processor, described device 1400 can also include memory 1403 (in figure It is not shown), for storing program instruction, the processor 1401 calls the program instruction stored in the memory 1403, executes The correlation step of first device or second device in above method embodiment.
Based on the same inventive concept, the principle and the application method that each device provided in the embodiment of the present application solves the problems, such as Embodiment is similar, therefore the implementation of each device may refer to the implementation of method, for succinct description, repeats no more herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, reference can be made to the related descriptions of other embodiments.
Finally, it should be noted that the above various embodiments is only to illustrate the technical solution of the application, rather than its limitations;To the greatest extent Pipe is described in detail the application referring to foregoing embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, each embodiment technology of the application that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (17)

1. a kind of method for power adjustment, which is characterized in that the described method includes:
First device determines the second link consume of the second link, and second link receives the second dress for the first device Set the optical signal of transmission;
The first device sends the first optical signal to the second device with Initial Trans by the first link, and described the One link sends optical signal to the second device for the first device, and first optical signal is used for the second device The first link consume of first link is determined according to the reception power of first optical signal and the Initial Trans;
The first device receives the second optical signal that the second device is sent, the second light letter by second link Number transmission power that be the second device consume according to the Initial Trans and first link is determining;
The first device is according to the reception power of second optical signal, second link consume and the initial transmissions function Rate determines the first link consume;
The first device adjusts the transmission power of first link according to first link consume.
2. the method according to claim 1, wherein the method also includes:
The first device receives the third that the second device is sent with the Initial Trans by second link Optical signal;
The first device determines the second link consume of the second link, comprising:
The first device determines second chain according to the reception power and the Initial Trans of the third optical signal Second link on road consumes.
3. the method according to claim 1, wherein the method also includes:
The first device receives the 4th optical signal that the second device is sent, the 4th light letter by second link Number carry the transmission power of the 4th optical signal;
The first device determines the second link consume of the second link, comprising:
The first device determines institute according to the transmission power of the 4th optical signal and the reception power of the 4th optical signal State the second link consume of the second link;
The method also includes:
The first device receives the 5th optical signal that the second device is sent by second link;
The first device sends the first optical signal to the second device with Initial Trans by the first link, comprising:
The first device detects the sum of the second link consume and the reception power of the 5th optical signal just to originate When penetrating power, the first optical signal is sent to the second device with the Initial Trans by first link.
4. method according to any one of claims 1 to 3, which is characterized in that the first device is according to described second The reception power of optical signal, second link consume and the Initial Trans determine the first link consume, comprising:
The first device detects the reception power of second optical signal, and determines the first compensation power Y1Value, the Y1= P1+PTB-P0, wherein P1For the reception power of currently detected second optical signal, PTBFor second link consume, P0 For the Initial Trans;
As the first compensation power Y1Value be less than predetermined power threshold value when, the first device will it is described first compensate power Y1Value be determined as first link consume.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
As the first compensation power Y1Value when being equal to the predetermined power threshold value, the first device continues to test described the The reception power of two optical signals, and continue to determine first compensation according to the reception power of second optical signal detected Power Y1Value;
As the first compensation power Y1Value be greater than zero, and when being less than the predetermined power threshold value, the first device stops inspection It surveys the reception power of second optical signal and stops determining the first compensation power Y1Value, and determine it is described second dress Set the power P of last time compensationxValue be it is described first compensation power Y1Value;
When the reception power for detecting second optical signal is that the first reception power continuously reaches preset duration, described first Device stops detecting the reception power of second optical signal and stops determining the first compensation power Y1Value, and determine described in The power P of second device last time compensationxIt is zero, described first receives power as the Initial Trans and described second The difference of link consume;
The first device determines the times N of the transmission power with the predetermined power threshold compensation to second link, institute Stating times N is the first compensation power Y1Value be equal to the predetermined power threshold value total quantity, the N be positive integer;
The first device is according to the predetermined power threshold value, the times N and the PxDetermine the first link consume, In, PTA=N*PTH+Px, the PTAFor first link consume, the PTHFor the predetermined power threshold value, the PxIt is greater than Or it is equal to zero, and be less than the predetermined power threshold value.
6. according to the method described in claim 4, it is characterized in that, the method also includes:
As the first compensation power Y1Value when being equal to the predetermined power threshold value, the first device continues to test described the The reception power of two optical signals, and continue to determine the first compensation power according to the reception power of second optical signal detected Y1Value;
During the first device detects the reception power of second optical signal, target power P is determined3, the target Power P3=n*PTH+P0, the n is the fixed first compensation power Y1Value be equal to the predetermined power threshold value number Amount;
As the target power P3Greater than the first device maximum transmission power when, stop detecting second optical signal It receives power and stops determining the first compensation power Y1Value, and to host reporting fault information.
7. method described in any one according to claim 1~6, which is characterized in that the first device is according to described first After link consume adjusts the transmission power of first link, the method also includes:
The first device receives the 6th optical signal that the second device is sent, the 6th light letter by second link It include signal quality parameter in number, the signal quality parameter is used to indicate the signal receiving quality of first link;
The first device adjusts the transmission power of first link according to the signal quality parameter.
8. a kind of method for power adjustment, which is characterized in that the described method includes:
Second device receives the first optical signal that first device is sent with Initial Trans, first chain by the first link Road receives the optical signal that the first device is sent for the second device;
The second device determines first chain according to the reception power and the Initial Trans of first optical signal First link on road consumes;
The second device sends the second optical signal by first device described in the second chain road direction, second optical signal Transmission power be it is determining according to the Initial Trans and first link consume, second link is for described the Two devices send optical signal to the first device.
9. according to the method described in claim 8, it is characterized in that, the second device passes through described in the second chain road direction Before one device sends the second optical signal, the method also includes:
The second device sends third light letter to the first device with the Initial Trans by second link Number.
10. according to the method described in claim 8, it is characterized in that, the second device receives the first dress by the first link Before setting the first optical signal sent with Initial Trans, the method also includes:
The second device sends the 4th optical signal by first device described in the second chain road direction, and the 4th optical signal is taken Transmission power with the 4th optical signal;
The second device detects when receiving receiving sensitivity of the power less than the second device of first link, leads to It crosses second link and sends the 5th optical signal to the first device with the Initial Trans.
11. according to method described in claim 8~10 any one, which is characterized in that when first link consume is less than When predetermined power threshold value, the transmission power of second optical signal is to consume compensated power, institute by first link The transmission power for stating the second optical signal is the sum of first link consume and the Initial Trans.
12. according to the method for claim 11, which is characterized in that when first link consume is greater than or equal to default function When rate threshold value, the first link consume is divided into N+1 times and compensates to the transmission power of second link, and preceding n times are mended Transmission power after repaying is the sum of the predetermined power threshold value and the Initial Trans, the compensated transmitting of last time Power is PxThe sum of with the Initial Trans, wherein PTA=N*PTH+Px, PTAFor first link consume, PTHFor institute Predetermined power threshold value is stated, N is positive integer, PxMore than or equal to zero, and it is less than the predetermined power threshold value;Second optical signal Transmission power alternately change according to compensated transmission power and the Initial Trans.
13. a kind of device for power adjustment, which is characterized in that the device for power adjustment includes:
Processing module, for determining that the second link of the second link consumes, second link is used for power adjustment for described Device receive second device send optical signal;
Communication module, it is described for sending the first optical signal to the second device with Initial Trans by the first link First link sends optical signal to the second device for the device for power adjustment, and first optical signal is used for The second device determines first link according to the reception power of first optical signal and the Initial Trans The consume of first link;
The communication module is also used to receive the second optical signal that the second device is sent by second link, described The transmission power of second optical signal is that the second device is determined according to the Initial Trans and first link consume 's;
The processing module is also used to the reception power according to second optical signal, second link consumes and described first Beginning transmission power determines the first link consume;
The processing module is also used to consume the transmission power for adjusting first link according to first link.
14. the device according to claim 13 for power adjustment, which is characterized in that
The communication module is also used to send by second link reception second device with the Initial Trans Third optical signal;
The processing module determines the mode of the second link consume of the second link specifically:
The second link of second link is determined according to the reception power of the third optical signal and the Initial Trans Consume.
15. the device according to claim 13 for power adjustment, which is characterized in that
The communication module is also used to receive the 4th optical signal that the second device is sent by second link, described 4th optical signal carries the transmission power of the 4th optical signal;
The processing module determines the mode of the second link consume of the second link specifically:
Second link is determined according to the reception power of the transmission power of the 4th optical signal and the 4th optical signal The consume of second link;
The communication module is also used to receive the 5th optical signal that the second device is sent by second link;
The communication module is the first link in such a way that Initial Trans send the first optical signal to the second device Specifically: when detecting that the sum of the second link consume and the reception power of the 5th optical signal are Initial Trans, The first optical signal is sent to the second device by the first link with the Initial Trans.
16. the device of power adjustment is used for described in 3~15 any one according to claim 1, which is characterized in that the processing Module is consumed according to the reception power of second optical signal, second link and the Initial Trans determine described the The mode of one link consume specifically:
The reception power of second optical signal is detected, and determines the first compensation power Y1Value, the Y1=P1+PTB-P0, In, P1For the reception power of currently detected second optical signal, PTBFor second link consume, P0It is described initial Transmission power;
As the first compensation power Y1Value be less than predetermined power threshold value when, will it is described first compensate power Y1It is determined as described The consume of first link.
17. the device according to claim 16 for power adjustment, which is characterized in that the processing module is also used to:
As the first compensation power Y1Value be equal to the predetermined power threshold value when, continue to test connecing for second optical signal Power is received, and continues to determine the first compensation power Y according to the reception power of second optical signal detected1Value;
As the first compensation power Y1Value be greater than zero, and when being less than the predetermined power threshold value, stop detecting second light The reception power of signal and stopping determine the first compensation power Y1Value, and determine that second device last time is mended The power P repaidxValue be it is described first compensation power Y1Value;
When the reception power for detecting second optical signal is that the first reception power continuously reaches preset duration, stop detection The reception power of second optical signal and stopping determine the first compensation power Y1Value, and determine that the second device is last The power P of single compensationxIt is zero, the first reception power is that the Initial Trans and second link consume it Difference;
Determine the times N of the transmission power of the predetermined power threshold compensation to second link, the times N is described First compensation power Y1Value be equal to the predetermined power threshold value total quantity, the N be positive integer;
According to the predetermined power threshold value, the times N and the PxDetermine the first link consume, wherein PTA=N*PTH+ Px, the PTAFor first link consume, the PTHFor the predetermined power threshold value, the PxMore than or equal to zero, and it is small In the predetermined power threshold value.
CN201810404201.6A 2018-04-28 2018-04-28 Method and device for power adjustment Active CN110417479B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810404201.6A CN110417479B (en) 2018-04-28 2018-04-28 Method and device for power adjustment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810404201.6A CN110417479B (en) 2018-04-28 2018-04-28 Method and device for power adjustment

Publications (2)

Publication Number Publication Date
CN110417479A true CN110417479A (en) 2019-11-05
CN110417479B CN110417479B (en) 2021-02-23

Family

ID=68357228

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810404201.6A Active CN110417479B (en) 2018-04-28 2018-04-28 Method and device for power adjustment

Country Status (1)

Country Link
CN (1) CN110417479B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112564787A (en) * 2020-12-09 2021-03-26 中天通信技术有限公司 Automatic debugging method and device for optical module

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110081936A1 (en) * 2009-10-02 2011-04-07 Interdigital Patent Holdings, Inc. Method and apparatus for controlling transmit power of transmissions on more than one component carrier
CN103782531A (en) * 2013-06-17 2014-05-07 华为技术有限公司 Optical signal transmission method, device and optical transmitter
CN104159282A (en) * 2013-05-15 2014-11-19 华为技术有限公司 Signal adjusting method and apparatus, and cell

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110081936A1 (en) * 2009-10-02 2011-04-07 Interdigital Patent Holdings, Inc. Method and apparatus for controlling transmit power of transmissions on more than one component carrier
CN104159282A (en) * 2013-05-15 2014-11-19 华为技术有限公司 Signal adjusting method and apparatus, and cell
CN103782531A (en) * 2013-06-17 2014-05-07 华为技术有限公司 Optical signal transmission method, device and optical transmitter

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112564787A (en) * 2020-12-09 2021-03-26 中天通信技术有限公司 Automatic debugging method and device for optical module
CN112564787B (en) * 2020-12-09 2022-09-27 中天通信技术有限公司 Automatic debugging method and device for optical module

Also Published As

Publication number Publication date
CN110417479B (en) 2021-02-23

Similar Documents

Publication Publication Date Title
CN101895350B (en) 10G Ethernet passive network single-fiber bidirectional optical module
CN101820558B (en) Method for detecting long luminance ONU in passive optical network
CN202696605U (en) PON light module detecting device
CN100488071C (en) Method for protecting photoelectric integrated device and photoelectric integrated device
CN110086545A (en) A kind of information transferring method in OLT, ONU, PON system and PON system
WO2020181549A1 (en) Power saving mechanisms for high speed passive optical network
CN103391137A (en) 1*9 low-rate optical module with DDM (data distribution management) function
CN201243290Y (en) Inserting/pulling type light transmit-receive integrated module for Ether passive optical network
CN110417479A (en) A kind of method and device for power adjustment
CN104919725B (en) The detection means and method of optical network uplink signal
CN102916746B (en) EPON and optical module for optical network unit thereof
WO2019128953A1 (en) Single board of optical line terminal and optical line terminal
CN201830410U (en) Passive optical network (PON) terminal
CN107276668B (en) A kind of polarization mode dispersion monitoring method, device, electronic equipment and storage medium
CN103647606A (en) GPON terminal transmitting-receiving-integrated optical assembly with RSSI function
WO2023071326A1 (en) Fault locating method, device and optical network system
CN203377886U (en) 1*9 low rate optical module with DDM function
CN105656554A (en) Visible light communication system and method
CN202978953U (en) Planar optical waveguide type single-fiber bidirectional four-port optical assembly and optical transceiver integrated module
CN202503520U (en) High-speed Ethernet optical module and radio-frequency data transmission device thereof
CN204517815U (en) A kind of luminous power overload protecting circuit
CN103326790A (en) Optical transmitter capable of automatically controlling power
CN102868446B (en) A kind of OLT optical module using couple APD to share booster circuit
CN203761404U (en) Optical module employing Ethernet passive optical network
CN205545280U (en) Two SFP optical modules of receiving of 32Kbps~80Mbps low rate

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
GR01 Patent grant
GR01 Patent grant