CN113098439A - Attenuator control method and device, chip and storage medium - Google Patents

Attenuator control method and device, chip and storage medium Download PDF

Info

Publication number
CN113098439A
CN113098439A CN202110300817.0A CN202110300817A CN113098439A CN 113098439 A CN113098439 A CN 113098439A CN 202110300817 A CN202110300817 A CN 202110300817A CN 113098439 A CN113098439 A CN 113098439A
Authority
CN
China
Prior art keywords
attenuator
control
controlled
attenuators
signal
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
CN202110300817.0A
Other languages
Chinese (zh)
Other versions
CN113098439B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202110300817.0A priority Critical patent/CN113098439B/en
Publication of CN113098439A publication Critical patent/CN113098439A/en
Application granted granted Critical
Publication of CN113098439B publication Critical patent/CN113098439B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03HIMPEDANCE NETWORKS, e.g. RESONANT CIRCUITS; RESONATORS
    • H03H11/00Networks using active elements
    • H03H11/02Multiple-port networks
    • H03H11/24Frequency-independent attenuators

Landscapes

  • Circuits Of Receivers In General (AREA)

Abstract

The embodiment of the application discloses a control method and equipment of an attenuator, a chip and a storage medium, wherein the method comprises the following steps: analyzing the received request information according to a preset format to obtain a signal identifier and an attenuation parameter corresponding to the request information; determining an attenuator to be controlled in the plurality of attenuators based on the signal identification; generating a control instruction according to a target format and attenuation parameters corresponding to the attenuator to be controlled; and sending a control instruction to the attenuator to be controlled.

Description

Attenuator control method and device, chip and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for controlling an attenuator, a chip, and a storage medium.
Background
At present, in the test work of wireless communication products, programmable attenuators are used in large quantities, wherein the formats of control commands of programmable attenuators of different brands are not consistent, and even if the attenuators of the same brand are used, the command formats of attenuators of different models are different.
Accordingly, in the case of using multiple brands and models of attenuators in a working environment, control software of multiple brands needs to be installed and controlled, and the operation complexity is high.
It can be seen that the control flow of the conventional attenuator has high complexity, which results in the defects of low control efficiency and poor accuracy.
Disclosure of Invention
The embodiment of the application provides a control method and equipment of an attenuator, a chip and a storage medium, which greatly simplify the flow of control processing and effectively improve the control efficiency and control precision of the attenuator.
The technical scheme of the embodiment of the application is realized as follows:
in a first aspect, an embodiment of the present application provides a method for controlling an attenuator, where the method includes:
analyzing the received request information according to a preset format to obtain a signal identifier and an attenuation parameter corresponding to the request information;
determining an attenuator to be controlled among a plurality of attenuators based on the signal identification;
generating a control instruction according to the target format corresponding to the attenuator to be controlled and the attenuation parameter;
and sending the control instruction to the attenuator to be controlled.
In a second aspect, an embodiment of the present application provides a control device, which includes an analysis unit, a determination unit, a generation unit, a transmission unit,
the analysis unit is used for analyzing the received request information according to a preset format to obtain a signal identifier and an attenuation parameter corresponding to the request information;
the determining unit is used for determining an attenuator to be controlled in a plurality of attenuators based on the signal identification;
the generating unit is used for generating a control instruction according to the target format corresponding to the attenuator to be controlled and the attenuation parameter;
and the sending unit is used for sending the control instruction to the attenuator to be controlled.
In a third aspect, an embodiment of the present application provides a control device, where the control device includes a processor and a memory storing instructions executable by the processor, and when the instructions are executed by the processor, the control method for the attenuator according to the first aspect is implemented.
In a fourth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and an interface, where the processor obtains program instructions through the interface, and the processor is configured to execute the program instructions to execute the control method of the attenuator according to the first aspect.
In a fifth aspect, the present application provides a computer-readable storage medium, on which a program is stored, and when the program is executed by a processor, the method for controlling an attenuator according to the first aspect is implemented.
The embodiment of the application provides a control method and equipment of an attenuator, a chip and a storage medium, wherein the control equipment analyzes received request information according to a preset format to obtain a signal identifier and an attenuation parameter corresponding to the request information; determining an attenuator to be controlled in the plurality of attenuators based on the signal identification; generating a control instruction according to a target format and attenuation parameters corresponding to the attenuator to be controlled; and sending a control instruction to the attenuator to be controlled. That is to say, in the embodiment of the present application, the control device may store configuration information of multiple attenuators of different brands and different types in advance, and after receiving request information in a unified preset format, convert the request information for requesting to attenuate a signal into a control instruction according to different target formats corresponding to different attenuators, and then issue the control instruction to the corresponding attenuator, so as to respond to the request information and control the attenuator to attenuate the signal. Therefore, the control method of the attenuator provided by the application can realize direct control of a plurality of attenuators of different brands and different types based on the request information of the unified preset format, greatly simplifies the flow of control processing, and effectively improves the control efficiency and control precision of the attenuator.
Drawings
FIG. 1 is a first schematic diagram of a control attenuator;
FIG. 2 is a second schematic diagram of the control attenuator;
FIG. 3 is a first flowchart illustrating an implementation of a method for controlling an attenuator according to an embodiment of the present application;
FIG. 4 is a diagram I illustrating the generation of request information;
FIG. 5 is a second diagram illustrating the generation of request information;
fig. 6 is a schematic diagram of an implementation flow of a control method of an attenuator according to an embodiment of the present application;
fig. 7 is a schematic flow chart illustrating an implementation of a control method of an attenuator according to an embodiment of the present application;
FIG. 8 is a fourth schematic flow chart illustrating an implementation of a control method of an attenuator according to an embodiment of the present application;
fig. 9 is a schematic flow chart of an implementation of the control method of the attenuator according to the embodiment of the present application;
FIG. 10 is a first schematic diagram of the control method of the attenuator;
FIG. 11 is a second schematic diagram of the control method of the attenuator;
FIG. 12 is a first diagram illustrating implementation of a customized function on the client device side;
FIG. 13 is a second schematic diagram of the customized function implementation on the client device side;
FIG. 14 is a third schematic diagram of the control method of the attenuator;
FIG. 15 is a third schematic diagram of the control method of the attenuator;
fig. 16 is a first schematic structural diagram of a control device according to an embodiment of the present application;
fig. 17 is a schematic structural diagram of a second configuration of a control device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the specific embodiments described herein are illustrative of the relevant application and are not limiting of the application. It should be noted that, for the convenience of description, only the parts related to the related applications are shown in the drawings.
An attenuator (attenuator) is an electronic component providing attenuation, and is widely applied to electronic equipment, and its main uses are: (1) adjusting the size of a signal in the circuit; (2) in the comparison method measuring circuit, the attenuation value of the measured network can be directly read; (3) the impedance matching is improved, and if some circuits require a relatively stable load impedance, an attenuator can be inserted between the circuit and the actual load impedance, so that the impedance change can be buffered.
In the test work of wireless communication products, the programmable attenuators can be used in a large amount, and with the continuous and abundant enhancement of test environments, the programmable attenuators with stronger capacity can be added and used together with the existing attenuators.
The programmable attenuators in the market have a plurality of brands, the automation control principle of each brand of attenuator is basically the same, control software is provided, and the control software sends Socket communication commands to remotely control the corresponding attenuators, but because the formats of the control commands of the programmable attenuators of each brand are different, even if the programmable attenuators of the same brand are used, the command formats of the attenuators of different models are different, and the attenuation ranges are also different.
Therefore, when multiple brands and models of attenuators are used in the working environment, control software for controlling multiple brands is needed, and the operation complexity is high.
Specifically, each brand of programmable attenuator generally provides an installation program, when multiple brands and types of attenuators are used, multiple control software needs to be installed, the operation is complex, and along with software and hardware upgrading, an original version program needs to be uninstalled, new version software needs to be reinstalled, and the maintenance cost is high.
Further, when multiple brands and types of programmable attenuators are combined to serve signal power adjustment of multiple CELLs, an operator needs to control multiple pieces of software, and the manual operation complexity is high, fig. 1 is a schematic diagram of controlling the attenuators, as shown in fig. 1, when a tester needs to change the attenuation of antenna power of multiple CELLs (CELLs), multiple types of software need to be controlled to change the power (power) of the relevant CELLs, and the process is complex. For example, when changing the antenna power of CELL1, CELL lx, CELL2, and CELL ly, since CELL1 and CELL lx are controlled by the type 1 attenuator and CELL2 and CELL ly are controlled by the type x attenuator, when controlling the type 1 attenuator and the type x attenuator, switching back and forth between the type 1 control software and the type x control software is required, which is cumbersome and error-prone.
On the other hand, when some characteristics are tested, the existing attenuator control method cannot meet the test requirement well, for example, fig. 2 is a schematic diagram two of controlling the attenuator, as shown in fig. 2, a cell has four antennas, where antennas 1 and 2 are main antennas, and antennas 3 and 4 are auxiliary antennas, and each antenna is connected to a certain channel of the programmable attenuator. Wherein, attentuator _ type (1in/2out) is brand name and configuration model of the attenuator, wherein 1in/2out represents that 1 input signal is split into 2 output signals, so that the same CELL signal can be multiplexed to a plurality of Test environments (such as Device Under Test, DUT). The control software of the current programmable attenuator supports direct issuing of a control command, for example, if a tester wants to modify the attenuation values of the antenna 1 and the antenna 2 to be 20dbm, the tester needs to manually write a command: A1P20A2P20, A1 and A2 represent channel numbers, P20 represents attenuation values, and then a down button is clicked to send the attenuation values to the attenuator, which means that in a test step that the power of a main antenna or an auxiliary antenna needs to be adjusted at the same time, a tester must determine the connection relationship between a cell antenna and the attenuator to write corresponding attenuation commands, so that the use complexity is increased. The more times of operation, the more complex the combination relationship and the more difficult it is to use.
In order to solve the above problem, in the embodiment of the present application, the control device may store configuration information of multiple attenuators of different brands and different types in advance, and then after receiving request information of a unified preset format, convert the request information for requesting to attenuate a signal into a control instruction according to different target formats corresponding to different attenuators, and then issue the control instruction to the corresponding attenuator, so as to respond to the request information and control the attenuator to attenuate the signal. Therefore, the control method of the attenuator provided by the application can realize direct control of a plurality of attenuators of different brands and different types based on the request information of the unified preset format, greatly simplifies the flow of control processing, and effectively improves the control efficiency and control precision of the attenuator.
Further, according to the control method of the attenuator, the control device can achieve cloud control over multiple brands and types of attenuators, specifically, the control device can store control command message format specifications supported by different brands and types of attenuators in advance, and meanwhile, can store connection relations between cell signals and the attenuators in advance, so that control over the attenuators can be achieved directly, the flow of control processing is simplified greatly, and control efficiency and control accuracy of the attenuators are improved effectively.
Therefore, by adopting the control method of the attenuator, on one hand, different control software corresponding to different attenuations does not need to be installed in a test environment, and correspondingly, the different control software does not need to be updated and upgraded; on the other hand, in the process of controlling the attenuator, the connection relation of the cell signals needing to be attenuated is not acquired in advance.
That is to say, the control method of the attenuator provided by the application does not need to pay attention to what kind of the attenuator is used when the control of the attenuator is executed, does not need to pay attention to the format specification of the control command message supported by the attenuator and the connection relation between the cell signal and the attenuator, but only needs to pay attention to the test service, and further saves the time cost and the labor cost on the basis of improving the control efficiency and the control precision.
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
An embodiment of the present application provides a method for controlling an attenuator, fig. 3 is a schematic implementation flow diagram of the method for controlling an attenuator provided in the embodiment of the present application, as shown in fig. 3, in the embodiment of the present application, the method for controlling an attenuator by a control device may include the following steps:
step 101, analyzing the received request information according to a preset format, and obtaining a signal identifier and an attenuation parameter corresponding to the request information.
In the embodiment of the application, after receiving the request information, the control device may perform parsing processing on the request information according to a preset format, so that a signal identifier and an attenuation parameter corresponding to the request information may be obtained.
It should be noted that, in the embodiment of the present application, the preset format may be a unified message format predefined by the control device. Specifically, the preset format used by the control device to parse the request message is uniform no matter whether the sending end of the request message is the same or not and whether the attenuator used for controlling the request message is the same or not.
It will be appreciated that in embodiments of the present application, the request message is a request for attenuation processing of one or more signals.
Further, in the embodiment of the present application, after the control device analyzes the received request message according to the preset format, a signal identifier and an attenuation parameter carried in the request message may be determined, where the signal identifier may indicate a signal that needs to be attenuated by controlling the attenuator, and the attenuation parameter may be used to quantify the degree of attenuation.
In the embodiment of the present application, the request information may be a request for performing attenuation processing on one signal or a request for performing attenuation processing on a plurality of signals. Accordingly, after the control device analyzes the request information, it may determine the signal identifier and the attenuation parameter corresponding to one signal to be attenuated, or determine a plurality of signal identifiers and a plurality of attenuation parameters corresponding to a plurality of signals to be attenuated.
For example, in the present application, the signal identifier corresponding to the request information may include a cell identifier and an antenna identifier, and the attenuation parameter corresponding to the request information may include an attenuation value.
Further, in the embodiment of the present application, after the control device analyzes the received request message according to the preset format, the test environment name carried in the request message may also be determined.
It can be understood that, in the embodiment of the present application, the control device may receive the request message before parsing the request message, where the control device may receive the obtaining request message through a Graphical User Interface (GUI) or an automation control Interface when receiving the request message.
For example, in the present application, the control device may receive a request message from a World Wide Web (Web) GUI, and may also receive an http service request from automation (automation). Therefore, the control method of the attenuator can be multiplexed in different scenes of manual testing and automatic testing.
It is understood that, in the embodiment of the present application, fig. 4 is a schematic diagram of generating the request information, as shown in fig. 4, each tester may directly access the web address of the fader cloud service and enter the GUI control page without installing the control software of the fader. Information such as a CELL name, a signal number, a connection state, a current attenuation value and the like is contained in a page, and a tester can generate request information by dragging a control node to adjust left and right, so that the power of the CELL is controlled in real time.
It can be understood that, in the embodiment of the present application, fig. 5 is a schematic diagram ii for generating request information, and as shown in fig. 5, after the automation framework completes assembling the request message, an http service request is initiated, and automation does not need to install control software of the attenuator.
It can be seen that in the present application, the control device does not need to rely on the control software of the attenuator in either a manual control process or an automated control process.
For example, in the present application, the control device receives an http service request message (request message) generated by a tester through a GUI, where a data format of the request message satisfies a preset format, and the request message may carry a test environment name, a CELL name (CELL identifier), an antenna number (antenna identifier), and an attenuation value (attenuation parameter). For example, the request message is expressed based on a preset format as:
[ { 'test _ rack _ name': test _ rack _1',' Signal _ index ': Signal _3', 'value': 39',' CELL _ name ': CELL _ name _2' }, … ], wherein test _ rack _ name indicates a test environment name, CELL _ name indicates a CELL name (CELL identification), Signal _ index indicates an antenna number (antenna identification), and value indicates an attenuation value (attenuation parameter).
Correspondingly, after the control device analyzes the request message according to the preset format, the test environment name corresponding to the request message is determined to be test _ rack _1, the CELL name is CELL _ name _2, the antenna number is signal _3, and the attenuation value is 39 db.
It is to be understood that, in the present application, the request message may be a list structure, where each element is a dictionary structure, and the dictionary interface may be configured to determine the CELL identifier, the antenna identifier, and the attenuation parameter, that is, each dictionary may record the attenuation information of a certain antenna of a certain CELL.
And 102, determining an attenuator to be controlled in the plurality of attenuators based on the signal identification.
In the embodiment of the application, after the control device parses the received request information according to a preset format and obtains the signal identifier and the attenuation parameter corresponding to the request information, the control device may further determine, based on the signal identifier, an attenuator to be controlled from the connected attenuators.
It is understood that in the embodiment of the present application, a plurality of attenuators may be connected to the control device, wherein the types and brands of the plurality of attenuators may not be identical. Specifically, one or more attenuators of the plurality of attenuators, that is, the attenuators to be controlled, may perform attenuation processing of the signal in response to the request information received by the control device.
It can be understood that, in the embodiment of the present application, since the control device analyzes the request information to determine that the signal identifier corresponds to one signal that needs to be attenuated, the signal identifier may also be multiple signal identifiers corresponding to multiple signals that need to be attenuated. Therefore, the attenuator to be controlled determined by the control device based on the signal identification may be one attenuator for which a connection has been established, or may be a plurality of attenuators for which a connection has been established.
It should be noted that, in the embodiment of the present application, a configuration relation mapping table may be stored in advance in the control device, where the configuration relation mapping table may determine a connection relation between the attenuator and the cell and the antenna, that is, the attenuator performing attenuation processing on a certain signal may be determined by the configuration relation mapping table.
For example, in the present application, the configuration relation mapping table may store the signals and the identifications of the attenuators having the configuration relation, for example, table 1 is a configuration relation mapping table one, as shown in table 1, for different signals, the attenuators configured to perform the signal attenuation processing may also be different, where, based on the configuration relation between the signals and the attenuators, the signal identifications and the attenuator identifications may be stored correspondingly, and the attenuator, for example, the attenuator identification a, may perform the attenuation processing on the signal of the signal identification 3.
TABLE 1
Signal identification Attenuator identification
1 D
2 B
3 A
4 E
…… ……
That is to say, in the embodiment of the present application, when determining an attenuator to be controlled among a plurality of attenuators based on the signal identifier, the control device may first determine an attenuator identifier corresponding to the signal identifier based on a configuration relationship mapping table; the attenuator to be controlled can then be determined further on the basis of the attenuator identification.
It can be understood that, in the embodiment of the present application, since the signal identifier may include a cell identifier and/or an antenna identifier, the configuration relationship mapping table may also store identifiers of cells and/or antennas and attenuators having a configuration relationship, for example, table 2 is a configuration relationship mapping table two, as shown in table 2, for different signals, attenuators configured to perform the signal attenuation processing may also be different, where, based on the configuration relationship between the cell and the antenna and the attenuator corresponding to the signal, the cell identifier and the antenna identifier may be stored in correspondence with the attenuator identifier, and for example, the attenuator of the attenuator identifier a may perform the attenuation processing on the signal of the antenna 2 in the cell identifier b.
TABLE 2
Figure BDA0002986186570000071
Figure BDA0002986186570000081
That is to say, in the embodiment of the present application, when determining an attenuator to be controlled in a plurality of attenuators based on the signal identifier, the control device may also determine, based on a configuration relationship mapping table, an attenuator identifier corresponding to the cell identifier and/or the antenna identifier; the attenuator to be controlled can then be determined further on the basis of the attenuator identification.
Further, in an embodiment of the present application, fig. 6 is a schematic view of an implementation flow of a control method of an attenuator provided in the embodiment of the present application, and as shown in fig. 6, after a controller parses received request information according to a preset format and obtains a signal identifier and an attenuation parameter corresponding to the request information, that is, after step 101, the method for controlling a control device to control the attenuator may further include the following steps:
and 105, determining a channel identifier of the attenuator to be controlled, which corresponds to the signal identifier, based on the configuration relation mapping table.
And step 106, determining an input channel and an output channel of the attenuator to be controlled according to the channel identification.
In the embodiment of the application, after the control device analyzes the received request information according to a preset format and obtains the signal identifier and the attenuation parameter corresponding to the request information, the control device may further determine, based on a configuration relationship mapping table, the channel identifier of the attenuator to be controlled, which corresponds to the signal identifier. Then, the control device may determine, by using the channel identifier, an input channel and an output channel of the attenuator to be controlled, which correspond to the signal to be attenuated.
It is understood that in the embodiments of the present application, the channel identification of the attenuator to be controlled may include an identification of an input channel and an identification of an output channel.
Further, in the embodiments of the present application, for the multi-channel attenuator, the attenuator may perform attenuation processing on a certain signal by using a part of the input channels and a part of the output channels, that is, a certain signal may be input from one of the output channels and then output from one of the output channels. Therefore, in order to control the attenuator based on the request information, the control device needs to determine the input channel and the output channel of the attenuator to be controlled corresponding to the signal identifier in the request information.
It should be noted that, in the embodiment of the present application, the control device may determine, through a pre-stored configuration relationship mapping table, not only the attenuator that performs the attenuation processing on a certain signal, but also an input channel and an output channel of the attenuator corresponding to the signal through the configuration relationship mapping table.
For example, in the present application, the configuration relationship mapping table may store the signal and the identifier of the attenuator and the identifier of the channel of the attenuator, which have the configuration relationship, for example, table 3 is a configuration relationship mapping table three, as shown in table 3, for different signals, the identifier of the attenuator or the channel of the attenuator performing the signal attenuation processing may also be different, wherein, based on the configuration relationship between the signal and the attenuator, the signal identifier may be stored in correspondence with the identifier of the attenuator and the identifier of the channel of the attenuator, for example, a path formed by the input channel of the channel identifier 1 and the output channel of the channel identifier 6 of the attenuator identifier a, and the signal of the signal identifier 3 may be subjected to the attenuation processing.
TABLE 1
Signal identification Attenuator identification Input channel identification Output channel identification
1 A 2 3
2 B 2 1
3 A 1 6
4 E 5 2
…… …… …… ……
Therefore, in the embodiment of the present application, after determining the signal identifier of the signal to be attenuated, which is carried in the request information, the control device may further determine, based on a pre-stored configuration relationship mapping table, the attenuator to be controlled, that is, the attenuator to be controlled, and the channel of the attenuator to be controlled, that is, the input channel and the output channel of the attenuator to be controlled.
Further, in an embodiment of the present application, fig. 7 is a schematic flow chart illustrating an implementation process of a control method of an attenuator provided in the embodiment of the present application, as shown in fig. 7, before the control device determines an attenuator to be controlled among the plurality of attenuators based on the signal identifier, that is, before step 102, the method for the control device to control the attenuator may further include the following steps:
step 107, establishing connection with a plurality of attenuators; wherein the plurality of attenuators includes an attenuator to be controlled.
Step 108, establishing a plurality of service objects corresponding to a plurality of attenuators; wherein one attenuator corresponds to one service object.
In an embodiment of the present application, the control device may first establish a connection with a plurality of attenuators of which brands and types are not completely the same, wherein the attenuator to be controlled corresponding to the request information also belongs to at least one of the plurality of attenuators with which the connection has been established.
Then, the control device may establish a service object for each of the plurality of attenuators, that is, establish a plurality of service objects corresponding to the plurality of attenuators, where one attenuator corresponds to one service object.
It should be noted that, in the embodiment of the present application, a message queue is set in each service object established by the control device, and the message list is used for buffering messages. When the control device uses the message list to cache the message, the control device needs to cache the message according to the message format applicable to the corresponding attenuator.
And 103, generating a control instruction according to the target format and the attenuation parameter corresponding to the attenuator to be controlled.
In the embodiment of the application, after determining the attenuator to be controlled in the plurality of attenuators based on the signal identifier, the control device may further determine a target format corresponding to the attenuator to be controlled, and then generate a control instruction corresponding to the request information according to the target format and the attenuation parameter.
It can be understood that, in the embodiment of the present application, when the control device generates the control instruction, the attenuator identifier and the attenuation parameter may be formatted based on the target format, that is, the control device may format the attenuator identifier of the attenuator to be controlled and the attenuation parameter in the request message according to the target format corresponding to the attenuator to be controlled.
For example, in the embodiment of the present application, if it is determined that the attenuator identifier of the attenuator to be controlled is 2, such as attenuator _2, and the attenuation parameter is 39db, the control instruction generated by the control device based on the target format of the attenuator to be controlled may be:
attenuator_2:P39;…;
the control command may indicate that the path loss bit 39db is set for the attenuator identified as 2.
It can be understood that, in the embodiment of the present application, when the control device generates the control instruction, the attenuator identifier, the channel identifier, and the attenuation parameter may further be formatted based on the target format, that is, the control device may format the attenuator identifier of the attenuator to be controlled, the channel identifier of the attenuator to be controlled, and the attenuation parameter in the request message according to the target format.
For example, in the embodiment of the present application, if it is determined that the attenuator identifier of the attenuator to be controlled is 5, such as attenuator _5, the channel identifier of the input channel is 3, the channel identifier of the output channel is 1, and the attenuation parameter is 39db, the control instruction generated by the control device based on the target format of the attenuator to be controlled may be:
attenuator_5:IN3_OUT1_P39;…;
the control command may indicate that the attenuator is designated 5 and the path loss is set to 39dB for the path with 3 inputs and 1 output.
It is understood that, in the embodiment of the present application, the attenuator to be controlled, which is determined by the control device based on the signal identification, may be one attenuator of the established connection, or may be a plurality of attenuators of the established connection. Therefore, when the control command is generated, one control command may be generated to control one attenuator to be controlled, or a plurality of control commands may be generated to control a plurality of attenuators to be controlled.
Further, in an embodiment of the present application, fig. 8 is a fourth schematic implementation flow chart of the control method of the attenuator provided in the embodiment of the present application, as shown in fig. 8, after the control device generates the control instruction according to the target format corresponding to the attenuator to be controlled and the attenuation parameter, that is, after step 103, the method for the control device to control the attenuator may further include the following steps:
and step 109, storing the control instruction into a message queue in the service object corresponding to the attenuator to be controlled.
In the embodiment of the application, after the control device completes the analysis of the request information based on the preset format and completes the generation of the control instruction based on the target format of the attenuator to be controlled, the control instruction may be stored in the message queue in the service object of the corresponding attenuator to be controlled.
It will be appreciated that in the present application, different control instructions for attenuating different signals may be buffered in a message queue in the service object of a particular attenuator in the control device.
And step 104, sending a control instruction to the attenuator to be controlled.
In the embodiment of the application, after the control device generates the control command according to the target format and the attenuation parameter corresponding to the attenuator to be controlled, the control device may send the control command to the corresponding attenuator to be controlled.
It can be understood that, in the present application, if different control instructions for attenuating different signals are cached in a message queue in a service object of a certain attenuator, the control device may issue the control instructions to the attenuator in sequence, so as to perform attenuation processing on different signals in sequence.
It should be noted that, in the embodiment of the present application, since the control device may generate one control instruction to control one attenuator to be controlled, or may generate a plurality of control instructions to control a plurality of attenuators to be controlled. Therefore, when sending the control instruction to the faders, the control apparatus needs to send each control instruction to a corresponding one of the faders.
Further, in an embodiment of the present application, fig. 9 is a schematic view of an implementation flow of a control method of an attenuator provided in the embodiment of the present application, as shown in fig. 9, after the control device sends the control instruction to the attenuator to be controlled, that is, after step 104, the method for the control device to control the attenuator may further include the following steps:
and step 110, sending a query instruction to the attenuator to be controlled.
And step 111, receiving a control result returned by the attenuator to be controlled.
In the embodiment of the application, after the control device generates the control instruction and sends the control instruction to the attenuator to be controlled, the control device may also send an inquiry instruction to the attenuator to be controlled, and then may receive a control result returned by the attenuator to be controlled. Wherein the control result can represent the working state of the attenuator to be controlled.
It should be noted that, in the embodiment of the present application, the request information received by the control device is used to perform attenuation processing on one or more signals, and after generating one or more control instructions based on the request information and issuing the one or more control instructions to the one or more attenuators, the control device may further query, for the one or more attenuators, an attenuation result of the attenuation processing performed on the one or more signals by the one or more attenuators based on the control instructions, so that whether the corresponding attenuation processing is completed may be determined by the one or more attenuation results returned by the one or more attenuators.
Further, in the embodiment of the present application, after the attenuator obtains the control result of the signal attenuation processing by sending an inquiry instruction to the attenuator to be controlled, the control result may be subjected to feedback processing, for example, the control device may return the control result to a user.
Further, in an embodiment of the present application, the method for controlling the attenuator by the control device may further include the steps of:
and step 112, receiving an updating instruction.
And 113, updating the configuration relation mapping table based on the updating instruction.
In the embodiment of the present application, the control device may further receive an update instruction, and then may perform update processing on the pre-stored configuration relationship mapping table by using the update instruction. Namely, the configuration relation between the attenuator and the signal is updated in response to the updating instruction.
Specifically, in the embodiment of the present application, based on the table 1, the control device may update the configuration relationship between the signal and the attenuator based on the update instruction; based on the table 2, the control device may update the configuration relationship between the cell and/or the antenna and the attenuator based on the update instruction; based on the above table 3, the control device may update the configuration relationship between the signal and the attenuator and the input channel and the output channel of the attenuator based on the update instruction.
It can be understood that, in the present application, the update instruction may indicate to modify one or more configuration relationships in the configuration map table, may also indicate to add one or more configuration relationships to the configuration map table, and may also indicate to delete one or more configuration relationships in the configuration map table.
In summary, in the embodiment of the present application, through the control method for the attenuators provided in steps 101 to 113, different attenuators can be managed and controlled in a unified manner, specifically, the control device can directly analyze a signal to be attenuated from the request message by using a preset format, and meanwhile, based on a pre-stored configuration relationship mapping table, determine an attenuator to be controlled, which performs signal attenuation processing, from multiple connected attenuators of different types, and then issue a control instruction to the attenuator to be controlled according to a target format corresponding to the attenuator to be controlled, so that the attenuator can be controlled more accurately and more efficiently in a process of implementing signal attenuation.
It can be understood that, in the embodiment of the application, for attenuators of different types and different brands, the control device can implement accurate conversion from the request message to the control instruction based on the unified preset format and the respective target formats of the attenuators, so that it is not necessary to rely on different control software to control different attenuators, but directly implement control of multiple attenuators, thereby greatly simplifying the flow of control processing, and effectively improving the control efficiency and control precision of the attenuators.
That is to say, in the present application, there is no need to install different types of control software in the test environment, and when executing the control of the attenuator, it is no longer necessary to pay attention to what kind of attenuator is used, and it is no longer necessary to pay attention to the control command message format specification supported by the attenuator, and the connection relationship between the cell signal and the attenuator, but only to the test service, and then on the basis of improving the control efficiency and the control accuracy, the time cost and the labor cost are also saved, 1) the workload of the attenuator control service maintenance is reduced.
It should be noted that the control method of the attenuator provided in the embodiment of the present application may be applied to both a manual test scenario and an automated test scenario, and meanwhile, functions of multiple brands and multiple types of programmable attenuators may be abstractly integrated in a cloud service provided by a control device, and the cloud service function of the control device is also easy to expand, and may support adding any brand type of attenuator, and may also support modifying a configuration file, so that the expansion is simple, and more test requirements may be met, and time and cost for installing and maintaining various different control software may be saved, thereby reducing workload spent on the attenuator service.
Further, the control method of the attenuator provided by the embodiment of the application can be suitable for all requirements for testing the control of the attenuator, and particularly can be realized by concentrating all requirements for the attenuator in an attenuator cloud service. The control device can have more abundant customized functions, for example, a cell signal change process configuration file can be established, and a user can automatically modify signals of a plurality of cells according to the content of the configuration file by opening the change process file, so that the working efficiency is further improved.
The embodiment of the application provides a control method of an attenuator, wherein control equipment analyzes received request information according to a preset format to obtain a signal identifier and an attenuation parameter corresponding to the request information; determining an attenuator to be controlled in the plurality of attenuators based on the signal identification; generating a control instruction according to a target format and attenuation parameters corresponding to the attenuator to be controlled; and sending a control instruction to the attenuator to be controlled. That is to say, in the embodiment of the present application, the control device may store configuration information of multiple attenuators of different brands and different types in advance, and after receiving request information in a unified preset format, convert the request information for requesting to attenuate a signal into a control instruction according to different target formats corresponding to different attenuators, and then issue the control instruction to the corresponding attenuator, so as to respond to the request information and control the attenuator to attenuate the signal. Therefore, the control method of the attenuator provided by the application can realize direct control of a plurality of attenuators of different brands and different types based on the request information of the unified preset format, greatly simplifies the flow of control processing, and effectively improves the control efficiency and control precision of the attenuator.
Based on the foregoing embodiments, in yet another embodiment of the present application, fig. 10 is a first schematic diagram of a control method of an attenuator, and as shown in fig. 10, a specific framework for implementing control of the attenuator may include a three-layer structure, where the first layer structure includes multiple-brand and multiple-model attenuators, the second layer structure includes control equipment, and the third layer structure includes a test line.
Specifically, in the embodiment of the present application, in the multi-brand and multi-model attenuators in the first layer structure, each attenuator is configured with a socket communication interface for establishing a communication connection with the control device in the second layer structure.
It is understood that in the embodiments of the present application, the attenuators (such as the attenuator 1, the attenuator 2, and the attenuator 3) in the first layer structure may be of different brands or different types of attenuators, that is, if a common technology is used, the control of the attenuators needs to be performed depending on the control software 1, the control software 2, and the control software 3 corresponding to the attenuator 1, the attenuator 2, and the attenuator 3, respectively.
Specifically, in the embodiment of the present application, the control device in the second layer structure can run a cloud service that controls attenuators of different types and brands.
It should be noted that, in the embodiment of the present application, the control device may establish corresponding fader service objects for each of the connected faders, for example, establish the service object 1 corresponding to the fader 1, the service object 2 corresponding to the fader 2, and the service object 3 corresponding to the fader 3.
Further, in the embodiment of the present application, a message queue is disposed in the service object corresponding to each attenuator, where the message queue may be used to buffer messages of the corresponding attenuator, such as a control instruction.
Specifically, in the embodiment of the present application, the test line in the third layer structure may be used for issuing a request message, that is, the control device in the second layer structure may receive the request message through the test line in the third layer.
It should be noted that, in the embodiment of the present application, the request message may be manually issued by a tester, for example, the tester issues the request message to the control device through a WEB GUI interface; the request message can also be automatically issued by the automatic test system.
That is, the control device runs cloud services that control attenuators of different types and brands, and can be reused in a manual test environment and an automatic test environment.
It should be noted that, in the embodiment of the present application, the request message received by the control device in the second layer is written according to a uniform data format, for example, a preset format, and accordingly, the control device may analyze the request message based on the preset format to determine the signal that needs to be attenuated. Then, the pre-stored configuration relation mapping table is utilized to further determine the attenuator for executing the attenuation processing of the signal, so that the data obtained by analysis can be formatted according to different target formats corresponding to different attenuators, corresponding control commands are generated, and finally the control commands corresponding to different attenuators can be issued to the message queues of corresponding service objects, so that the control commands are respectively sent to the corresponding attenuators, and the control of the attenuators is realized.
For example, in the present application, if the control device analyzes the request message to determine a signal to be attenuated, and then determines, based on the configuration relationship mapping table, that an attenuator that performs attenuation processing on the signal to be attenuated is an attenuator 2, the control device may format data obtained by analysis according to a target format 2 corresponding to the attenuator 2 to generate a corresponding control command 2, and finally may issue the control command 2 to a message queue of a corresponding service object 2 to send the control command 2 to the corresponding attenuator 2, so as to implement control of the attenuator 2.
Further, in an embodiment of the present application, fig. 11 is a schematic diagram of a control method of an attenuator, as shown in fig. 11, when determining that antenna power of CELL1, CELLx, CELL2, and CELLy needs to be changed, a tester may directly send a request message to a control device, the control device may analyze each request message using a uniform preset format, determine an attenuator to be controlled that performs attenuation processing and corresponds to each request message, then generate a corresponding control instruction according to a target format corresponding to each attenuator to be controlled, and issue the control instruction to the corresponding attenuator to be controlled.
In contrast to fig. 1 described above, when changing the antenna power of CELL1, CELLx, CELL2, CELLy, there is no need to switch back and forth between the control software of type 1 and the control software of type x. That is, when the attenuation of the antenna power of a plurality of CELL is changed, the power (power) of the relevant CELL does not need to be changed by depending on a plurality of types of software, and the control flow is simplified.
Therefore, according to the control method of the attenuator, the control device stores specific parameters, configuration relations and the like of the plurality of attenuators in advance, when the attenuator is controlled, the control device only needs to receive a request message including specific information (such as corresponding cell identification, antenna identification and other related information) of a signal to be attenuated, and can control the corresponding attenuator, so that cloud control can be achieved for the plurality of brands and types of attenuators, control software does not need to be installed in a test environment, the brand and type of the attenuator does not need to be concerned, and control command message format specifications supported by the attenuator and the connection relations between the signal and the attenuator do not need to be concerned.
It can be understood that, in the embodiment of the present application, the attenuator cloud service provided by the control device may be reused for manual testing and automated testing, which may provide a friendly GUI interface for manual testing and also provide a compact control interface for automated testing, so that a tester no longer needs to write a bottom-layer control command for controlling the attenuator.
Further, in the embodiments of the present application, the control device may further customize the control service according to the test requirement, for example, the main antenna set and the auxiliary antenna set may contain multiple signals, and when the test requires to adjust the main antenna set and the auxiliary antenna set to different values, the control scheme based on the antenna set may be customized, and the customization requirement of other automation adjusting schemes may be met.
The control method of the attenuator provided by the present application can also provide customizable functions. Specifically, on the user equipment side, when a user needs to adjust a signal of a certain cell, if the cell is configured with multiple antennas, the user may select antennas and attenuation values that need to be uniformly adjusted, and generate corresponding request information, and after receiving the request information, the control device may control corresponding attenuators based on the request information, so as to implement attenuation of the antennas that need to be uniformly adjusted in the cell according to the attenuation values.
Fig. 12 is a schematic diagram showing implementation of a customized function on a client device side, as shown in fig. 12, in a WEB GUI interface, a cell further includes multiple antennas, when a user needs to adjust a signal of the cell, a tab bar in the WEB GUI interface may be used to tag four antennas that need to be uniformly adjusted, then any one antenna may be adjusted to adjust the same attenuation value of all antennas, and the user does not need to adjust each antenna four times.
Based on fig. 12, fig. 13 is a schematic diagram illustrating implementation of a customized function on the client device side, as shown in fig. 13, after the unified adjustment of the four antennas is completed, when a user needs to adjust one of the two antennas, the tags on the two antennas are removed, and if the tags of the third and fourth antennas are removed, the attenuation of the three antennas can be controlled, without affecting the other antennas.
The embodiment of the application provides a control method of an attenuator, wherein control equipment analyzes received request information according to a preset format to obtain a signal identifier and an attenuation parameter corresponding to the request information; determining an attenuator to be controlled in the plurality of attenuators based on the signal identification; generating a control instruction according to a target format and attenuation parameters corresponding to the attenuator to be controlled; and sending a control instruction to the attenuator to be controlled. That is to say, in the embodiment of the present application, the control device may store configuration information of multiple attenuators of different brands and different types in advance, and after receiving request information in a unified preset format, convert the request information for requesting to attenuate a signal into a control instruction according to different target formats corresponding to different attenuators, and then issue the control instruction to the corresponding attenuator, so as to respond to the request information and control the attenuator to attenuate the signal. Therefore, the control method of the attenuator provided by the application can realize direct control of a plurality of attenuators of different brands and different types based on the request information of the unified preset format, greatly simplifies the flow of control processing, and effectively improves the control efficiency and control precision of the attenuator.
Based on the foregoing embodiments, in yet another embodiment of the present application, fig. 14 is a schematic diagram of a third method for controlling an attenuator, and as shown in fig. 14, the method for controlling the attenuator by a controller may further include the following steps:
step 201, request information is received.
In an embodiment of the application, the control device receives the request message, where the control device receives the get request message through the GUI or through the automation control interface when receiving the request message.
It will be appreciated that in embodiments of the present application, the request message is a request for attenuation processing of one or more signals.
Step 202, analyzing the request information according to a preset format, and determining a signal to be attenuated.
In the embodiment of the application, after receiving the request information, the control device may perform parsing processing on the request information according to a preset format, so as to obtain a signal to be attenuated corresponding to the request information, and a signal identifier and an attenuation parameter of the signal to be attenuated.
It should be noted that, in the embodiment of the present application, the preset format may be a unified message format predefined by the control device. Specifically, the preset format used by the control device to parse the request message is uniform no matter whether the sending end of the request message is the same or not and whether the attenuator used for controlling the request message is the same or not.
For example, in the present application, the client device may send an http service request message to the control device, where the request message conforms to a uniform data format predefined by the control device, such as a preset format, and the request message includes a name of the test environment, a name of the CELL, an antenna number, and an attenuation value.
The preset format may be:
[{'test_rack_name':'test_rack_1','Signal_index':'signal_3','value':'39','CELL_name':'CELL_na me_2'},…]
the request message may be in a list structure, where each element is in a dictionary structure, each dictionary recording attenuation information for a certain antenna of a certain CELL.
And 203, determining an attenuator to be controlled corresponding to the signal to be attenuated based on the configuration relation mapping table.
In the embodiment of the application, after the control device analyzes the received request information according to the preset format and determines the signal to be attenuated, the control device may further determine the attenuator to be controlled corresponding to the signal to be attenuated from the connected attenuators by using the configuration relationship mapping table.
It is understood that in the embodiment of the present application, a plurality of attenuators may be connected to the control device, wherein the types and brands of the plurality of attenuators may not be identical. Specifically, one or more attenuators of the plurality of attenuators, that is, the attenuators to be controlled, may perform attenuation processing of the signal in response to the request information received by the control device.
It should be noted that, in the embodiment of the present application, a configuration relation mapping table may be stored in advance in the control device, where the configuration relation mapping table may determine a connection relation between the attenuator and the cell and the antenna, that is, the attenuator performing attenuation processing on a certain signal may be determined by the configuration relation mapping table.
Further, in the embodiment of the present application, the control device may further analyze the attenuator number, the input channel, and the output channel of the attenuator to be controlled according to a well-defined configuration relationship mapping table, such as the above tables 1, 2, and 3.
For example, the map may also be a well-defined configuration relationship file, where the configuration relationship file is convenient for a user to plan and adjust a connection relationship between the CELL and the faders, and basic information, ip addresses, etc. of some faders, and the configuration relationship file may be represented as follows:
Figure BDA0002986186570000171
Figure BDA0002986186570000181
and step 204, generating a control instruction according to the target format corresponding to the attenuator to be controlled.
In the embodiment of the application, after determining the attenuator to be controlled corresponding to the signal to be attenuated in the plurality of attenuators based on the configuration relationship mapping table, the control device may further determine a target format corresponding to the attenuator to be controlled, and then generate the control instruction corresponding to the request information according to the target format and the attenuation parameter.
It can be understood that, in the embodiment of the present application, when the control device generates the control instruction, the attenuator identifier and the attenuation parameter may be formatted based on the target format, that is, the control device may format the attenuator identifier of the attenuator to be controlled and the attenuation parameter in the request message according to the target format corresponding to the attenuator to be controlled.
For example, in the embodiment of the present application, the control instruction after the formatting process may be represented as:
attenuator_2:IN3_OUT1_P39;…;
wherein the control command represents an attenuator with the control name of attenuator _2, and the path loss of a path with an inlet of 3 and an outlet of 1 is set to 39 dB.
And step 205, sending a control instruction to the attenuator to be controlled.
In the embodiment of the application, after the control device generates the control command according to the target format and the attenuation parameter corresponding to the attenuator to be controlled, the control device may send the control command to the corresponding attenuator to be controlled.
And step 206, acquiring a control result corresponding to the control instruction.
In the embodiment of the application, after the control device generates the control instruction and sends the control instruction to the attenuator to be controlled, the control device may also send an inquiry instruction to the attenuator to be controlled, and then may receive a control result returned by the attenuator to be controlled. Wherein the control result can represent the working state of the attenuator to be controlled.
And step 207, feeding back a control result.
In the embodiment of the application, after obtaining the control result corresponding to the control instruction, the control device may feed back the control result to the client device.
Exemplarily, in an embodiment of the present application, fig. 15 is a schematic diagram of a control method of an attenuator, as shown in fig. 15, a control device capable of providing an attenuator control cloud service may receive an http service request (request message) sent from a tester through a WEB GUI and/or an http service request (request message) sent from an automation, where the request message includes an attenuation request for a certain CELL signal or certain CELL signals, and it should be noted that a format of the request message is well defined by the control device, that is, the control device receives the request message according to a well-agreed and uniform preset format. After the request message is obtained, the control device may convert the unified message format into the dedicated message format for attenuators of different brands, that is, the control device generates the control instruction by using different target formats corresponding to different attenuators, and then sends the control instruction to the attenuator.
Specifically, in the embodiment of the present application, the request message received by the control device is written according to a uniform data format, such as a preset format, and accordingly, the control device may analyze the request message based on the preset format to determine that the CELL signal needs to be attenuated. Then, the pre-stored configuration relation mapping table is utilized to further determine the attenuator for executing the attenuation processing of the CELL signal, further format the data obtained by analysis according to different target formats corresponding to different attenuators to generate corresponding control commands, and finally the control commands corresponding to different attenuators can be issued to the message queues of corresponding service objects so as to respectively send the control commands to the corresponding attenuators to realize the control of the attenuators.
It should be noted that, in the embodiment of the present application, the control device may also pre-construct a plurality of CELL service objects, where the CELL service objects include a certain brand related to the CELL and a certain type of attenuator. That is, for different CELLs, the control device may establish corresponding different CELL service objects, and the CELL service objects further include service objects of different attenuators having a configuration relationship with the CELL.
The embodiment of the application provides a control method of an attenuator, wherein control equipment analyzes received request information according to a preset format to obtain a signal identifier and an attenuation parameter corresponding to the request information; determining an attenuator to be controlled in the plurality of attenuators based on the signal identification; generating a control instruction according to a target format and attenuation parameters corresponding to the attenuator to be controlled; and sending a control instruction to the attenuator to be controlled. That is to say, in the embodiment of the present application, the control device may store configuration information of multiple attenuators of different brands and different types in advance, and after receiving request information in a unified preset format, convert the request information for requesting to attenuate a signal into a control instruction according to different target formats corresponding to different attenuators, and then issue the control instruction to the corresponding attenuator, so as to respond to the request information and control the attenuator to attenuate the signal. Therefore, the control method of the attenuator provided by the application can realize direct control of a plurality of attenuators of different brands and different types based on the request information of the unified preset format, greatly simplifies the flow of control processing, and effectively improves the control efficiency and control precision of the attenuator.
Based on the foregoing embodiment, in another embodiment of the present application, fig. 16 is a schematic structural diagram of a composition of a control device provided in the embodiment of the present application, and as shown in fig. 16, a control device 10 provided in the embodiment of the present application may include an analyzing unit 11, a determining unit 12, a generating unit 13, a sending unit 14,
the analysis unit 11 is configured to analyze the received request information according to a preset format, and obtain a signal identifier and an attenuation parameter corresponding to the request information;
the determining unit 12 is configured to determine an attenuator to be controlled among the plurality of attenuators based on the signal identifier;
the generating unit 13 is configured to generate a control instruction according to the target format corresponding to the attenuator to be controlled and the attenuation parameter;
the sending unit 14 is configured to send the control instruction to the attenuator to be controlled.
In the embodiment of the present application, further, fig. 17 is a schematic diagram of a composition structure of the control device provided in the embodiment of the present application, and as shown in fig. 17, the control device 10 provided in the embodiment of the present application may further include a processor 15 and a memory 16 storing executable instructions of the processor 15, and further, the control device 10 may further include a communication interface 17, and a bus 18 for connecting the processor 15, the memory 16, and the communication interface 17.
In an embodiment of the present Application, the Processor 15 may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a ProgRAMmable Logic Device (PLD), a Field ProgRAMmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller, and a microprocessor. It is understood that the electronic devices for implementing the above processor functions may be other devices, and the embodiments of the present application are not limited in particular. The control device 10 may further comprise a memory 16, which memory 16 may be connected to the processor 15, wherein the memory 16 is adapted to store executable program code comprising computer operating instructions, and wherein the memory 16 may comprise a high speed RAM memory and may further comprise a non-volatile memory, such as at least two disk memories.
In the embodiment of the present application, the bus 18 is used to connect the communication interface 17, the processor 15, and the memory 16 and the intercommunication among these devices.
In an embodiment of the present application, the memory 16 is used for storing instructions and data.
Further, in an embodiment of the present application, the processor 15 is configured to analyze the received request information according to a preset format, and obtain a signal identifier and an attenuation parameter corresponding to the request information; determining an attenuator to be controlled among a plurality of attenuators based on the signal identification; generating a control instruction according to the target format corresponding to the attenuator to be controlled and the attenuation parameter; and sending the control instruction to the attenuator to be controlled.
In practical applications, the Memory 16 may be a volatile Memory (volatile Memory), such as a Random-Access Memory (RAM); or a non-volatile Memory (non-volatile Memory), such as a Read-Only Memory (ROM), a flash Memory (flash Memory), a Hard Disk (Hard Disk Drive, HDD) or a Solid-State Drive (SSD); or a combination of the above types of memories and provides instructions and data to the processor 15.
In addition, each functional module in this embodiment may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware or a form of a software functional module.
Based on the understanding that the technical solution of the present embodiment essentially or a part contributing to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium, and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the method of the present embodiment. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The embodiment of the application provides a control device, which analyzes received request information according to a preset format to obtain a signal identifier and an attenuation parameter corresponding to the request information; determining an attenuator to be controlled in the plurality of attenuators based on the signal identification; generating a control instruction according to a target format and attenuation parameters corresponding to the attenuator to be controlled; and sending a control instruction to the attenuator to be controlled. That is to say, in the embodiment of the present application, the control device may store configuration information of multiple attenuators of different brands and different types in advance, and after receiving request information in a unified preset format, convert the request information for requesting to attenuate a signal into a control instruction according to different target formats corresponding to different attenuators, and then issue the control instruction to the corresponding attenuator, so as to respond to the request information and control the attenuator to attenuate the signal. Therefore, the control method of the attenuator provided by the application can realize direct control of a plurality of attenuators of different brands and different types based on the request information of the unified preset format, greatly simplifies the flow of control processing, and effectively improves the control efficiency and control precision of the attenuator.
An embodiment of the present application provides a computer-readable storage medium on which a program is stored, which when executed by a processor implements the control method of the attenuator as described above.
Specifically, the program instructions corresponding to the control method of the attenuator in the present embodiment may be stored on a storage medium such as an optical disc, a hard disc, a U-disc, etc., and when the program instructions corresponding to the control method of the attenuator in the storage medium are read or executed by an electronic device, the method includes the following steps:
analyzing the received request information according to a preset format to obtain a signal identifier and an attenuation parameter corresponding to the request information;
determining an attenuator to be controlled among a plurality of attenuators based on the signal identification;
generating a control instruction according to the target format corresponding to the attenuator to be controlled and the attenuation parameter;
and sending the control instruction to the attenuator to be controlled.
The embodiment of the application provides a chip, which comprises a processor and an interface, wherein the processor acquires a program instruction through the interface, and the processor is used for operating the program instruction to realize the paging channel monitoring method. Specifically, the control method of the attenuator comprises the following steps:
analyzing the received request information according to a preset format to obtain a signal identifier and an attenuation parameter corresponding to the request information;
determining an attenuator to be controlled among a plurality of attenuators based on the signal identification;
generating a control instruction according to the target format corresponding to the attenuator to be controlled and the attenuation parameter;
and sending the control instruction to the attenuator to be controlled.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of implementations of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart block or blocks and/or flowchart block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks in the flowchart and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application.

Claims (15)

1. A method of controlling an attenuator, the method comprising:
analyzing the received request information according to a preset format to obtain a signal identifier and an attenuation parameter corresponding to the request information;
determining an attenuator to be controlled among a plurality of attenuators based on the signal identification;
generating a control instruction according to the target format corresponding to the attenuator to be controlled and the attenuation parameter;
and sending the control instruction to the attenuator to be controlled.
2. The method of claim 1,
the signal identification comprises a cell identification and/or an antenna identification.
3. The method of claim 2, wherein determining an attenuator to be controlled among a plurality of attenuators based on the signal identification comprises:
determining an attenuator identifier corresponding to the signal identifier based on a configuration relation mapping table;
and determining the attenuator to be controlled in the plurality of attenuators according to the attenuator identifier.
4. The method according to claim 3, wherein after parsing the received request message according to the preset format and obtaining the signal identifier and the attenuation parameter corresponding to the request message, the method further comprises:
determining a channel identifier of the attenuator to be controlled corresponding to the signal identifier based on a configuration relation mapping table;
and determining an input channel and an output channel of the attenuator to be controlled according to the channel identification.
5. The method according to claim 4, wherein the generating a control command according to the target format corresponding to the attenuator to be controlled and the attenuation parameter comprises:
and formatting the attenuator identifier, the channel identifier and the attenuation parameter based on the target format to generate the control instruction.
6. The method of claim 1, wherein prior to determining an attenuator to be controlled among a plurality of attenuators based on the signal identification, the method further comprises:
establishing a connection with the plurality of attenuators;
establishing a plurality of service objects corresponding to the attenuators; wherein one attenuator corresponds to one service object.
7. The method according to claim 6, wherein after generating the control command according to the target format corresponding to the attenuator to be controlled and the attenuation parameter, the method further comprises:
and caching the control instruction into a message queue in a service object corresponding to the attenuator to be controlled.
8. The method according to claim 1, wherein before parsing the received request message according to the preset format and obtaining the signal identifier and the attenuation parameter corresponding to the request message, the method further comprises:
receiving the request information;
wherein the receiving the request information comprises:
the request information is received through a graphical user interface, or,
and receiving the request information through an automation control interface.
9. The method according to claim 1, wherein after the sending the control instruction to the attenuator to be controlled, the method further comprises:
sending a query instruction to the attenuator to be controlled;
and receiving a control result returned by the attenuator to be controlled.
10. The method of claim 9, further comprising:
and feeding back the control result.
11. The method of claim 3, further comprising:
receiving an updating instruction;
and updating the configuration relation mapping table based on the updating instruction.
12. A control apparatus comprising an analysis unit, a determination unit, a generation unit, a transmission unit,
the analysis unit is used for analyzing the received request information according to a preset format to obtain a signal identifier and an attenuation parameter corresponding to the request information;
the determining unit is used for determining an attenuator to be controlled in a plurality of attenuators based on the signal identification;
the generating unit is used for generating a control instruction according to the target format corresponding to the attenuator to be controlled and the attenuation parameter;
and the sending unit is used for sending the control instruction to the attenuator to be controlled.
13. A control device comprising a processor, a memory storing instructions executable by the processor, the instructions when executed by the processor implementing the method of any one of claims 1 to 11.
14. A chip, characterized in that the chip comprises a processor and an interface, the processor fetching program instructions through the interface, the processor being configured to execute the program instructions to perform the method according to any of claims 1-11.
15. A computer-readable storage medium, on which a program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-11.
CN202110300817.0A 2021-03-22 2021-03-22 Attenuator control method and device, chip and storage medium Active CN113098439B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110300817.0A CN113098439B (en) 2021-03-22 2021-03-22 Attenuator control method and device, chip and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110300817.0A CN113098439B (en) 2021-03-22 2021-03-22 Attenuator control method and device, chip and storage medium

Publications (2)

Publication Number Publication Date
CN113098439A true CN113098439A (en) 2021-07-09
CN113098439B CN113098439B (en) 2024-02-02

Family

ID=76668834

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110300817.0A Active CN113098439B (en) 2021-03-22 2021-03-22 Attenuator control method and device, chip and storage medium

Country Status (1)

Country Link
CN (1) CN113098439B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114035469A (en) * 2021-11-08 2022-02-11 中电科思仪科技股份有限公司 General control system and method for program-controlled attenuator

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130060364A1 (en) * 2011-03-28 2013-03-07 Yamaha Corporation System for controlling a mixer via external controller
US20130182871A1 (en) * 2012-01-12 2013-07-18 Teac Corporation Electronic device with faders
WO2014166451A1 (en) * 2013-07-26 2014-10-16 中兴通讯股份有限公司 Attenuation device, system, method and computer storage medium
WO2019037775A1 (en) * 2017-08-24 2019-02-28 新华三信息安全技术有限公司 Issuance of service configuration file
US20200115863A1 (en) * 2018-10-10 2020-04-16 International Business Machines Corporation Autonomous mobile attenuator system
WO2020088326A1 (en) * 2018-10-31 2020-05-07 京东方科技集团股份有限公司 Interface operation and maintenance method and apparatus
CN111130502A (en) * 2019-12-28 2020-05-08 苏州摩联通信技术有限公司 Attenuator control circuit

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130060364A1 (en) * 2011-03-28 2013-03-07 Yamaha Corporation System for controlling a mixer via external controller
US20130182871A1 (en) * 2012-01-12 2013-07-18 Teac Corporation Electronic device with faders
WO2014166451A1 (en) * 2013-07-26 2014-10-16 中兴通讯股份有限公司 Attenuation device, system, method and computer storage medium
WO2019037775A1 (en) * 2017-08-24 2019-02-28 新华三信息安全技术有限公司 Issuance of service configuration file
US20200115863A1 (en) * 2018-10-10 2020-04-16 International Business Machines Corporation Autonomous mobile attenuator system
WO2020088326A1 (en) * 2018-10-31 2020-05-07 京东方科技集团股份有限公司 Interface operation and maintenance method and apparatus
CN111130502A (en) * 2019-12-28 2020-05-08 苏州摩联通信技术有限公司 Attenuator control circuit

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
田乐: "宽带微功率无线通信系统网络测试平台的设计与实现", 信息科技辑, vol. 2021, no. 02, pages 136 - 744 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114035469A (en) * 2021-11-08 2022-02-11 中电科思仪科技股份有限公司 General control system and method for program-controlled attenuator
CN114035469B (en) * 2021-11-08 2024-04-12 中电科思仪科技股份有限公司 General control system and method for program-controlled attenuator

Also Published As

Publication number Publication date
CN113098439B (en) 2024-02-02

Similar Documents

Publication Publication Date Title
CN111083225B (en) Data processing method and device in Internet of things platform and Internet of things platform
CN105915633B (en) Automatic operation and maintenance system and method
CN113098439B (en) Attenuator control method and device, chip and storage medium
WO2022027480A1 (en) Data collection method and apparatus, modbus system, and storage medium
CN111124603A (en) CD-ROM mounting method, device and related equipment
CN107566480B (en) User activity information acquisition method and device for mobile terminal application and storage medium
CN107357530B (en) Setting method and device for OpenStack cloud hard disk
CN112527348A (en) Upgrading system and upgrading method of non-intelligent interactive electronic whiteboard
CN113285841B (en) Configuration method of industrial gateway data transmission protocol
CN100421494C (en) Data configuration method for access network device
CN111736938A (en) Information display method and device, storage medium and electronic device
CN111930574A (en) SSD test system and SSD test method
US7475164B2 (en) Apparatus, system, and method for automated device configuration and testing
CN113783744B (en) Time delay measurement method, time delay measurement device, computer equipment and storage medium
CN111752916B (en) Data acquisition method and device, computer readable storage medium and electronic equipment
CN111416722A (en) Communication method and device
CN113095782A (en) Automatic approval decision-making method and device
CN109538415B (en) Virtual fan and virtual wind power plant
CN111082860A (en) Testing method, server, system and storage medium of optical distribution node
CN115174398A (en) Network equipment configuration method, equipment and medium based on python interactive shell
CN112087430B (en) System and method for accessing MCTP (multimedia broadcast multicast service) equipment through SMASH (simple multimedia application service) interface
CN100546253C (en) A kind of management method of telecommunication equipment unit
CN114218904A (en) Configurable report export design method and system
CN112035274A (en) Service processing method, device and system
CN102917065B (en) A kind of searching method, cloud computing node and cloud computing management end of node

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