A kind of equalizer configuration method and management module
Technical field
The present invention relates to field of communication technology more particularly to a kind of equalizer configuration methods and management module.
Background technique
In a communications system, due to element or device insertion and the loss of bearing power that generates is referred to as and is inserted into damage
Consumption, abbreviation Insertion Loss are an important indicators for measuring communications system transmission quality.
Currently, Insertion Loss a part of communication system comes from the longer route of veneer interior cabling, some comes from veneer
Between the longer cable of length.As shown in Figure 1, in the prior art, for the Insertion Loss for reducing communication system, improving its transmission quality, meeting
Balanced device is disposed between the high-speed link chip and longer cable of veneer.When Board Power up, by veneer administrative unit or
The configuration resistance of balanced device periphery sets the parameter of setting balanced device, and the parameter setting post-equalizer of balanced device can be
Cable waste provides compensation, to play the role of the quality of enhancing transmission signal, restores link.And the parameter of balanced device is once
After setting, as fixed value, balanced device just can only play compensating action to the Insertion Loss of the cable of specific standard, thus when veneer makes
When with the cables of other specifications, the Insertion Loss of cable can be larger, the phenomenon that packet loss even links failure easily occurs, this is limited significantly
The use of veneer.
In conclusion in the prior art, due to the fixed line for causing veneer that can only use specific standard of the parameter of balanced device
Cable causes the use of veneer to be restricted.
Summary of the invention
For this purpose, the embodiment of the present invention provides a kind of equalizer configuration method and management module, can according to cable specification from
The parameter of the adjustment balanced device of adaptation, improves veneer to the compatibility of different size cable.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that
In a first aspect, providing a kind of equalizer configuration method, it is applied to veneer, management module and pipe is provided on veneer
Reason module passes through the interface module that the first bus is connected, the balanced device and high-speed chain that are connected with management module by the second bus
Road chip, interface module are connected with high-speed link chip by balanced device;
Method includes:
Management module determines whether the access medium of access interface module is cable;
If it is determined that access medium is cable, the Insertion Loss of cable is obtained;
According to the Insertion Loss of cable and the mating table of the Insertion Loss prestored, parametric equalizer corresponding with the Insertion Loss of cable is determined,
And according to parametric equalizer equalizer;Wherein, the mating table of Insertion Loss includes the corresponding relationship of cable Insertion Loss and parametric equalizer.
Optionally, in the above method, the types value of cable can be stored in advance in management module, when interface module accesses access matchmaker
After matter, the types value of access medium can be first obtained, and then compares the types value of the types value and the cable prestored of access medium, if
The two matching then illustrates that accessing medium is cable, if the two mismatches, illustrates that accessing medium is not cable.
Preferably, the types value of cable can be write in specific register by cable manufacturer when cable dispatches from the factory, it is special
Not used register in the preferably existing specification of register is determined, for example, a byte in address A0h byte 96- byte 127.
In this way, management module, which reads the cable Insertion Loss value stored in the particular register by the first bus, can obtain inserting for cable
Damage.
Second aspect, provides a kind of management module, and management module setting is additionally provided with and management mould on veneer, on veneer
Block passes through the interface module that the first bus is connected, the balanced device and high-speed link core that are connected with management module by the second bus
Piece, interface module are connected with high-speed link chip by balanced device;Management module comprises determining that unit, acquiring unit and matches
Set unit;
Wherein it is determined that unit, for determining whether the access medium of access interface module is cable;
Acquiring unit is used for if it is determined that unit determines that access medium for cable, obtains the Insertion Loss of cable;
Determination unit, the mating table of Insertion Loss for being also used to the Insertion Loss according to cable and prestoring, the determining Insertion Loss pair with cable
The parametric equalizer answered;Wherein, the mating table of Insertion Loss includes the corresponding relationship of cable Insertion Loss and parametric equalizer.
Configuration unit, for according to parametric equalizer equalizer.
The third aspect, provides a kind of management module, and management module setting is additionally provided with and management mould on veneer, on veneer
Block passes through the interface module that the first bus is connected, the balanced device and high-speed link core that are connected with management module by the second bus
Piece, interface module are connected with high-speed link chip by balanced device;
Management module includes: processor, and processor is used to execute equalizer configuration method as described in relation to the first aspect.
In the prior art, after the parameter one of balanced device is set, as fixed value, therefore balanced device can only be to specific standard
Cable generate Insertion Loss play compensating action, when veneer use other specifications cable when, the Insertion Loss of cable can be larger, easily
There is the phenomenon that packet loss even links failure, so that the use of veneer is restricted.And it is based on the embodiment of the present invention
Equalizer configuration method and management module obtain cable after determining that the access medium of access single board interface module is cable
Insertion Loss, and parametric equalizer corresponding with cable Insertion Loss is determined according to the Insertion Loss of cable and the mating table of the Insertion Loss prestored, in turn
According to parametric equalizer come equalizer.As it can be seen that being different from the prior art, equalizer configuration side provided in an embodiment of the present invention
Method and management module can be mentioned according to the parameter of the adaptive adjustment balanced device of cable specification, thus based on the embodiment of the present invention
The equalizer configuration method and management module of confession can be improved veneer to the compatibility of different size cable, enable veneer
Using the cable of different size, so that the use scope of veneer is wider.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, required use in being described below to embodiment
Attached drawing be briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this
For the those of ordinary skill of field, without creative efforts, it can also be obtained according to these attached drawings others
Attached drawing.
Fig. 1 is balanced device schematic view of the mounting position in the prior art;
Fig. 2 is a kind of structural schematic diagram of veneer provided in an embodiment of the present invention;
Fig. 3 is a kind of flow diagram one of equalizer configuration method provided in an embodiment of the present invention;
Fig. 4 is a kind of flow diagram two of equalizer configuration method provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram one of management module provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram two of management module provided in an embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram three of management module provided in an embodiment of the present invention;
Fig. 8 is a kind of structural schematic diagram four of management module provided in an embodiment of the present invention;
Fig. 9 is the structural schematic diagram of another management module provided in an embodiment of the present invention.
Specific embodiment
It should be noted that for the ease of clearly describing the technical solution of the embodiment of the present invention, in the following each realities of the present invention
It applies in example, uses the printed words such as " first ", " second " and function and the essentially identical identical entry of effect or similar item are distinguished,
It will be appreciated by those skilled in the art that the printed words such as " first ", " second " are not defined quantity and execution order.
In addition, it should be noted that, in the absence of conflict, the features in the embodiments and the embodiments of the present application can
To be combined with each other.It will appreciated by the skilled person that example shown in the embodiment of the present application be the present invention for convenient for
Reader schematically illustrates made by understanding, and does not constitute a limitation of the invention.
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description.
Firstly, the embodiment of the present invention provides a kind of veneer, structure is as shown in Figure 2.Referring to fig. 2, pipe is provided on veneer
Reason module, be connected by the second bus with management module by the connected interface module of the first bus, with management module it is balanced
Device and high-speed link chip, interface module are connected with high-speed link chip by balanced device.Wherein, the first bus and second total
Line is specifically as follows I2C bus, and the present invention is not especially limit this.
It is specific as shown in Figure 3 the embodiment of the invention provides a kind of equalizer configuration method based on above-mentioned veneer, comprising:
S301, management module determine whether the access medium of access interface module is cable.
If S302, management module determine access, medium is cable, obtains the Insertion Loss of cable.
According to the Insertion Loss of cable and the mating table of Insertion Loss prestored, determination is corresponding with the Insertion Loss of cable for S303, management module
Parametric equalizer, and according to parametric equalizer equalizer.
Wherein, it should be noted that the mating table of Insertion Loss includes the corresponding relationship of cable Insertion Loss and parametric equalizer.It is exemplary
, provide a simple examples of the mating table of Insertion Loss as shown in Table-1.Assuming that the Insertion Loss for the cable that management module is got is
1.25dB, then the mating table of the Insertion Loss according to shown in table -1, can determine that the parameter of corresponding balanced device is 26 (hexadecimals).
The mating table of -1 Insertion Loss of table
Cable Insertion Loss (dB) |
Parametric equalizer |
0 |
20 |
0.25 |
21 |
0.5 |
22 |
0.75 |
23 |
1 |
24 |
1.25 |
25 |
1.5 |
26 |
1.75 |
27 |
2.0 |
28 |
2.25 |
29 |
2.5 |
2A |
2.75 |
2B |
3 |
2C |
3.25 |
2D |
3.5 |
2E |
3.75 |
2F |
Certainly, it will appreciated by the skilled person that being only a kind of tool provided in an embodiment of the present invention shown in table -1
Body example, and do not constitute a limitation of the invention.
Specifically, in equalizer configuration method provided in an embodiment of the present invention, as shown in figure 4, management module determines access
Whether the access medium of interface module is cable (i.e. step S301), be can specifically include:
S301a, management module obtain the types value of the access medium of access interface module.
Specifically, due in existing specification SFF-8472, the definition access matchmaker in the register of address A0h byte 8
The types value of matter, for details, reference can be made to tables -2 as follows, therefore management module can read byte by the first bus at A0h
The data stored in 8 register (being referred to as the second register in the embodiment of the present invention) can get the class of access medium
Offset.
- 2 Transceiver Identification Example of table (A0h Byte 3-10)
S301b, management module determine whether the types value of access medium matches with the cable offset prestored.
Specifically, illustrating that accessing medium is if the types value of cable access medium is matched with the cable offset prestored
Cable;If the types value and the cable offset prestored that access medium mismatch, illustrate that accessing medium is not cable.
Wherein, the cable offset prestored specifically can be 04h and 08h, and wherein 04h is the types value of passive cable, 08h
For the types value of active type cable.It is readily appreciated that, if the types value of the access medium obtained is 04h or 08h, indicates that access medium is
Cable;And if the types value of the access medium obtained is the value except 04h and 08h, then it represents that access medium is not cable.
Preferably, in equalizer configuration method provided in an embodiment of the present invention, can by cable manufacturer cable dispatch from the factory when,
The types value of cable is write in specific register, not used register in the preferably existing specification of particular register, for example,
A byte in address A0h byte 96- byte 127.In this way, management module is read in the particular register by the first bus
The cable Insertion Loss value of storage can obtain the Insertion Loss of cable.
That is, management module obtains the Insertion Loss of cable in step S302, can specifically include:
Management module reads the cable Insertion Loss value stored in the first register at the A0h of address by the first bus, wherein
The address of first register is a byte in byte 96-127.
Specifically, management module can specifically include according to parametric equalizer equalizer in step S303:
Management module passes through the second bus configuration balanced device according to parametric equalizer.
In the prior art, after the parameter one of balanced device is set, as fixed value, therefore balanced device can only be to specific standard
Cable generate Insertion Loss play compensating action, when veneer use other specifications cable when, the Insertion Loss of cable can be larger, easily
There is the phenomenon that packet loss even links failure, so that the use of veneer is restricted.And equilibrium provided in an embodiment of the present invention
In device configuration method, management module is after determining that the access medium of access single board interface module is cable, i.e., acquisition cable is slotting
Damage, and parametric equalizer corresponding with cable Insertion Loss, and then basis are determined according to the Insertion Loss of cable and the mating table of the Insertion Loss prestored
Parametric equalizer carrys out equalizer.As it can be seen that it is different from the prior art, equalizer configuration method provided in an embodiment of the present invention,
Can be according to the parameter of the adaptive adjustment balanced device of cable specification, thus equalizer configuration based on the embodiment of the present invention
Method can be improved veneer to the compatibility of different size cable, so that veneer is able to use the cable of different size, to make
The use scope for obtaining veneer is wider.
Based on the above method, the embodiment of the invention also provides a kind of management modules 50.Referring to fig. 2, management module 50 is set
It sets on veneer, the interface module being connected with management module 50 by the first bus and management module 50 is additionally provided on veneer
The balanced device and high-speed link chip being connected by the second bus, interface module pass through balanced device phase with high-speed link chip
Even.
As shown in figure 5, management module 50 comprises determining that unit 501, acquiring unit 502 and configuration unit 503.
Wherein it is determined that unit 501, for determining whether the access medium of access interface module is cable.
Acquiring unit 502 is used for if it is determined that unit 501 determines that access medium for cable, obtains the Insertion Loss of cable.
Determination unit 501, the mating table of Insertion Loss for being also used to the Insertion Loss according to cable and prestoring, the determining Insertion Loss with cable
Corresponding parametric equalizer.Wherein, the mating table of Insertion Loss includes the corresponding relationship of cable Insertion Loss and parametric equalizer.
Configuration unit 503, for according to parametric equalizer equalizer.
Preferably, as shown in fig. 6, in management module provided in an embodiment of the present invention 50, acquiring unit 502 specifically be can wrap
Include read module 5021.
Read module 5021 is inserted for reading the cable stored in the first register at the A0h of address by the first bus
Damage value, the address of the first register are a byte in byte 96-127.
Preferably, as shown in fig. 7, in management module provided in an embodiment of the present invention 50, determination unit 501 specifically be can wrap
It includes: obtaining module 5011 and determining module 5012.
Wherein, module 5011 is obtained, for obtaining the types value of access medium.
Determining module 5012, for determining whether the types value of access medium matches with the cable offset prestored;If
Match, it is determined that access medium is cable;If mismatching, it is determined that access medium is not cable.
Preferably, obtaining module 5011 specifically can be used for:
The types value stored in the second register is read at A0h by the first bus, the address of the second register is word
Section 8.
Optionally, as shown in figure 8, in management module provided in an embodiment of the present invention 50, configuration unit 503 specifically be can wrap
Include configuration module 5031.
Configuration module 5031, for passing through the second bus configuration balanced device according to parametric equalizer.
Specifically, can refer to using the method for 50 equalizer of management module provided in an embodiment of the present invention of the invention real
A preceding description is applied, details are not described herein again.
It can be used in executing above-mentioned equalizer configuration method by management module 50 in this present embodiment, therefore, can obtain
The technical effect obtained is also referred to the description of above method embodiment, and details are not described herein again.
Based on the above method, the embodiment of the invention also provides a kind of management modules 90, and referring to fig. 2, management module 90 is set
It sets on veneer, the interface module being connected with management module 90 by the first bus and management module 90 is additionally provided on veneer
The balanced device and high-speed link chip being connected by the second bus, interface module pass through balanced device phase with high-speed link chip
Even.
As shown in figure 9, the management module 90 includes processor 901, the processor 901 is for executing implementation of the present invention
The equalizer configuration method that example one provides.
It can be used in executing above-mentioned equalizer configuration method by management module 90 in this present embodiment, therefore, can obtain
The technical effect obtained is also referred to the description of above method embodiment, and details are not described herein again.
In addition, the embodiment of the present invention also provides a kind of calculating readable media (or medium), including carry out when executed with
The computer-readable instruction of lower operation: the operation of management module in above method embodiment is executed.
In addition, also providing a kind of computer program product, including above-mentioned computer-readable media.
It should be understood that in various embodiments of the present invention, magnitude of the sequence numbers of the above procedures are not meant to execute suitable
Sequence it is successive, the execution of each process sequence should be determined by its function and internal logic, the implementation without coping with the embodiment of the present invention
Process constitutes any restriction.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description,
Only the example of the division of the above functional modules, it in practical application, can according to need and by above-mentioned function distribution
It is completed by different functional modules, i.e., the internal structure of device is divided into different functional modules, it is described above to complete
All or part of function.System, the specific work process of device and unit of foregoing description can be implemented with reference to preceding method
Corresponding process in example, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the module or
The division of unit, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units
Or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, institute
Display or the mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, device or unit
Indirect coupling or communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the present invention
The all or part of the steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory
(English: Read-Only Memory, abbreviation: ROM), random access memory (English: Random Access Memory, referred to as:
RAM), the various media that can store program code such as magnetic or disk.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.