CN113098439B - 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
CN113098439B
CN113098439B CN202110300817.0A CN202110300817A CN113098439B CN 113098439 B CN113098439 B CN 113098439B CN 202110300817 A CN202110300817 A CN 202110300817A CN 113098439 B CN113098439 B CN 113098439B
Authority
CN
China
Prior art keywords
attenuator
controlled
control
attenuators
request information
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.)
Active
Application number
CN202110300817.0A
Other languages
Chinese (zh)
Other versions
CN113098439A (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

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, a chip and a storage medium of an attenuator, wherein the method comprises the following steps: analyzing the received request information according to a preset format to obtain a signal identifier and attenuation parameters 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 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 apparatus for controlling an attenuator, a chip, and a storage medium.
Background
Currently, in the testing work of wireless communication products, programmable attenuators are used in a large number, wherein the formats of control commands of different brands of programmable attenuators are inconsistent, even if the attenuators of the same brands are different in command formats.
Accordingly, in the case of using a plurality of brands and models of attenuators in a working environment, it is necessary to install and control a plurality of brands of control software, and the complexity of operation is high, and at the same time, the more complex the combination of cell signals and programmable attenuators is, the more complex the operation is.
It can be seen that the complexity of the control flow of the conventional attenuator is high, which results in defects of low control efficiency and poor accuracy.
Disclosure of Invention
The embodiment of the application provides a control method and equipment, a chip and a storage medium of an attenuator, 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 attenuation parameters 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 a 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, embodiments of the present application provide a control apparatus, where the control apparatus includes an parsing unit, a determining unit, a generating unit, a transmitting unit,
the analyzing unit is used for analyzing the received request information according to a preset format and obtaining a signal identifier and attenuation parameters corresponding to the request information;
The determining unit is used for determining an attenuator to be controlled from a plurality of attenuators based on the signal identification;
the generating unit is used for generating a control instruction according to a 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 apparatus, where the control apparatus includes a processor, and a memory storing instructions executable by the processor, and when the instructions are executed by the processor, the control method of 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 a program instruction through the interface, and the processor is configured to execute the program instruction to perform the method for controlling an attenuator according to the first aspect.
In a fifth aspect, embodiments of the present application provide a computer-readable storage medium having a program stored thereon, which when executed by a processor, implements the method for controlling an attenuator according to the first aspect.
The embodiment of the application provides a control method and equipment, a chip and a storage medium of an attenuator, wherein the control equipment analyzes received request information according to a preset format to obtain a signal identifier and attenuation parameters 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 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, in the embodiment of the present application, the control device may store configuration information of a plurality of attenuators of different brands and different types in advance, 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 attenuators, so that the attenuators are controlled to attenuate the signal in response to the request information. Therefore, the attenuator control method provided by the application can realize direct control of a plurality of attenuators with brands and different types based on the request information with the unified preset format, greatly simplifies the control process flow, and effectively improves the control efficiency and control precision of the attenuators.
Drawings
FIG. 1 is a schematic diagram of a control attenuator;
FIG. 2 is a schematic diagram II of a control attenuator;
fig. 3 is a schematic implementation flow diagram of a control method of an attenuator according to an embodiment of the present application;
FIG. 4 is a schematic diagram I of generating request information;
FIG. 5 is a diagram II of generating request information;
fig. 6 is a second implementation flow chart of the control method of the attenuator according to the embodiment of the present application;
fig. 7 is a schematic diagram of a third implementation flow of a control method of an attenuator according to an embodiment of the present application;
fig. 8 is a schematic diagram of an implementation flow chart of a control method of an attenuator according to an embodiment of the present application;
fig. 9 is a schematic diagram of an implementation flow chart of a control method of an attenuator according to an embodiment of the present application;
FIG. 10 is a schematic diagram of a method of controlling an attenuator;
FIG. 11 is a second schematic diagram of an attenuator control method;
FIG. 12 is a schematic diagram of a customized function implementation on the client device side;
FIG. 13 is a second schematic diagram of a customized function implementation on the client device side;
FIG. 14 is a third schematic diagram of an attenuator control method;
FIG. 15 is a third schematic diagram of an attenuator control method;
fig. 16 is a schematic diagram of the composition structure of a control device according to an embodiment of the present application;
fig. 17 is a schematic diagram of a second component structure of the control device according to the 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 for purposes of illustration only and are not intended to be limiting. It should be noted that, for convenience of description, only a portion related to the related application is shown in the drawings.
An attenuator (attenuator) is an electronic component that provides attenuation, and is widely used in electronic devices, and its main purpose is: (1) adjusting the magnitude of a signal in the circuit; (2) In the comparison measuring circuit, the method can be used for directly reading the attenuation value of the measured network; (3) To improve impedance matching, if some circuits require a relatively stable load impedance, an attenuator may be inserted between the circuit and the actual load impedance to buffer the change in impedance.
In the testing work of wireless communication products, programmable attenuators are used in a large amount, and with the continuous enrichment and enhancement of the testing environment, programmable attenuators with stronger capability are added and combined with the existing attenuators for use.
The programmable attenuators on the market are of a plurality of brands, the automatic control principle of each brands 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 programmable attenuators of each brands are inconsistent, even though the attenuators of the same brands, the command formats of the attenuators of different types are different, and the attenuation ranges are different.
Then, when the operating environment uses the attenuators with multiple brands and multiple models, the control software for controlling the brands is required, the operation complexity is high, and meanwhile, the more complex the combination of the cell signal and the programmable attenuator connection relation is, the more complex the operation is.
Specifically, each brand of programmable attenuator generally provides an installation program, when using multiple brands and types of attenuators, a plurality of control software needs to be installed, the operation is complex, and as software and hardware are upgraded, the original version of the program needs to be uninstalled, new version of the software needs to be reinstalled, and the maintenance cost is high.
Further, when combining multiple brands of multiple types of programmable attenuators, to serve for 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 the controlled attenuators, and as shown in fig. 1, when a tester needs to change the attenuation of the antenna power of multiple CELLs (CELL), it is necessary to control multiple types of software to change the power (power) of the relevant CELL, and the flow is complex. For example, when changing the antenna power of CELL1, CELLx, CELL2, CELLy, CELL2 and CELLy are controlled by the type 1 attenuator, and CELL2 and CELLy are controlled by the type x attenuator, so when controlling the type 1 attenuator and the type x attenuator, it is necessary to switch back and forth between the type 1 control software and the type x control software, which is cumbersome to operate and prone to errors.
On the other hand, when testing certain characteristics, the existing control method of the attenuator cannot well meet the test requirements, for example, fig. 2 is a schematic diagram of the control attenuator, and as shown in fig. 2, a cell has four antennas, wherein, antenna 1 and antenna 2 are main antennas, and antenna 3 and antenna 4 are auxiliary antennas, and each antenna is connected to a certain channel of the programmable attenuator. The attenuator_type (1 in/2 out) is a brand name and a configuration model of the attenuator, wherein 1in/2out indicates that a 1-way input signal is split into 2-way output signals, so that the same CELL signal can be multiplexed to multiple test environments (such as tested devices (Device Under Test, DUTs)). The control software of the current programmable attenuator supports directly issuing control commands, for example, a tester wants to modify the attenuation values of the antenna 1 and the antenna 2 to be 20dbm, and then the command needs to be written manually: 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 of adjusting the power of the main antenna or the auxiliary antenna at the same time, a tester must determine the connection relationship between the cell antenna and the attenuator to write corresponding attenuation commands, thus increasing the complexity of use. The more operations, the more complex the combination is, 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 a plurality of attenuators with different brands and different types in advance, then after receiving request information with a unified preset format, convert the request information for requesting an attenuation signal into a control instruction according to different target formats corresponding to different attenuators, and then issue the control instruction to the corresponding attenuators, so as to respond to the request information, and control the attenuators to attenuate the signal. Therefore, the attenuator control method provided by the application can realize direct control of a plurality of attenuators with brands and different types based on the request information with the unified preset format, greatly simplifies the control process flow, and effectively improves the control efficiency and control precision of the attenuators.
Further, according to the control method of the attenuators, cloud control can be achieved for the attenuators with multiple brands and multiple types by the control device, specifically, the control device can prestore control command message format specifications supported by the attenuators with different brands and different types, and meanwhile, can prestore connection relations between cell signals and the attenuators, so that control over the attenuators can be achieved directly, the control process flow is greatly simplified, and the control efficiency and control precision of the attenuators are effectively improved.
Therefore, by adopting the control method of the attenuator, on one hand, different control software corresponding to different attenuations is not required to be installed in a test environment, and correspondingly, the different control software is not required to be updated and upgraded; on the other hand, in the control process of the attenuator, the acquisition of the connection relation of the cell signals needing to be attenuated is not performed.
That is, when the control method of the attenuator is executed, what brand of attenuator is used is not concerned any more, the format specification of a control command message supported by the attenuator is not concerned, the connection relationship between a cell signal and the attenuator is not concerned, but only the test service is concerned, and therefore, on the basis of improving the control efficiency and the control precision, the time cost and the labor cost are saved.
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, and fig. 3 is a schematic implementation flow diagram of the method for controlling an attenuator according to the embodiment of the present application, as shown in fig. 3, where in the embodiment of the present application, the method for controlling an attenuator by a control device may include the following steps:
And 101, analyzing the received request information according to a preset format to obtain a signal identifier and attenuation parameters corresponding to the request information.
In the embodiment of the application, after receiving the request information, the control device may analyze the request information according to a preset format, so as to obtain the signal identifier and the attenuation parameter corresponding to the request information.
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, whether the sending end of the request message is the same or not, and whether the attenuators used for controlling the request message are the same or not, the preset format used by the control device for analyzing the request message is uniform.
It is understood 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 parses 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 may be a request for performing attenuation processing on a plurality of signals. Correspondingly, after the control device analyzes the request information, the determined signal identifier and attenuation parameter corresponding to the signal to be attenuated may be determined, or a plurality of signal identifiers and a plurality of attenuation parameters corresponding to a plurality of signals to be attenuated may be determined.
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 parses the received request message according to the preset format, the test environment name carried in the request message may also be determined.
It will be appreciated that in the embodiments of the present application, the control device may receive the request message before parsing the request message, where the control device may receive the get request message through a graphical user interface (Graphical User Interface, GUI) or through an automated 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, or may receive an http service request sent by automation (automation). Therefore, the control method of the attenuator can be reused in different scenes of manual testing and automatic testing.
It can be appreciated 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 attenuator cloud service, enter the GUI control page, and do not need to install the control software of the attenuator. The page contains information such as CELL name, signal number, connection state, current attenuation value and the like, and a tester can generate request information by adjusting the control node left and right, so that power control is performed on the CELL in real time.
It can be understood that, in the embodiment of the present application, fig. 5 is a schematic diagram ii for generating the request information, and as shown in fig. 5, after the automation framework assembles the request message, the http service request is initiated, and the control software of the attenuator is not required to be installed in the automation.
It can be seen that in this application, neither the manual nor the automated control process requires the control device to rely on the control software of the attenuator.
Illustratively, in the present application, the control device receives http service request message (request message) generated by the tester through the GUI, where the data format of the request message meets the preset format, and the request message may carry the test environment name, the CELL name (CELL identifier), the antenna number (antenna identifier), and the attenuation value (attenuation parameter). For example, the request message is expressed 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, it can determine that the test environment name corresponding to the request message is test_rack_1, the CELL name is cell_name_2, the antenna number is signal_3, and the attenuation value is 39db.
It will be appreciated that in this application, the request message may be a list structure, where each element is a dictionary structure, and the dictionary interface may be used to determine the CELL identity, the antenna identity, and the attenuation parameters, i.e. each dictionary may record attenuation information of a certain antenna of a certain CELL.
Step 102, determining an attenuator to be controlled from a plurality of attenuators based on the signal identification.
In the embodiment of the present application, after analyzing the received request information according to the preset format, and obtaining the signal identifier and the attenuation parameter corresponding to the request information, the control device may further determine the attenuator to be controlled from the plurality of connected attenuators based on the signal identifier.
It is understood that in the embodiment of the present application, the control device may be connected with a plurality of attenuators, where the types and brands of the plurality of attenuators may not be identical. Specifically, one or more attenuators among the plurality of attenuators may respond to the request information received by the control device to perform attenuation processing on the signal, where the one or more attenuators are attenuators to be controlled.
It can be understood that in the embodiment of the present application, the signal identifier corresponding to the signal to be attenuated may be determined by the control device analyzing the request information, or may be a plurality of signal identifiers corresponding to a plurality of signals to be attenuated. The attenuator to be controlled, which is determined by the control device on the basis of the signal identification, can thus be one attenuator of the established connection or can be a plurality of attenuators of the established connection.
In the embodiment of the present application, a configuration relation mapping table may be stored in the control device in advance, where the configuration relation mapping table may determine a connection relation between the attenuator and the cell and the antenna, that is, may determine the attenuator that performs attenuation processing on a certain signal through the configuration relation mapping table.
For example, in the present application, the configuration relation mapping table may store the signal having the configuration relation and the identifier of the attenuator, for example, table 1 is a configuration relation mapping table one, and as shown in table 1, the configuration of the attenuator performing the signal attenuation processing may also be different for different signals, where, based on the configuration relation between the signal and the attenuator, the signal identifier and the attenuator identifier may be stored correspondingly, for example, the attenuator of the attenuator identifier a may perform the attenuation processing on the signal of the signal identifier 3.
TABLE 1
Signal identification Attenuator identification
1 D
2 B
3 A
4 E
…… ……
That is, in the embodiment of the present application, when determining the attenuator to be controlled among the plurality of attenuators based on the signal identifier, the control device may first determine the attenuator identifier corresponding to the signal identifier based on the configuration relation mapping table; the attenuator to be controlled may then be determined further based on the attenuator identification.
It may 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 relation mapping table may also store identifiers of a cell and/or an antenna and an attenuator having a configuration relation, for example, table 2 is a configuration relation mapping table two, and as shown in table 2, for different signals, the configuration of the attenuator performing the signal attenuation processing may also be different, where, based on the configuration relation between the cell corresponding to the signal and the antenna and the attenuator, the cell identifier and the antenna identifier may be stored in correspondence with the attenuator identifier, 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
That is, in the embodiment of the present application, when determining the attenuator to be controlled among the plurality of attenuators based on the signal identifier, the control device may also determine, based on the configuration relation mapping table, an attenuator identifier corresponding to the cell identifier and/or the antenna identifier; the attenuator to be controlled may then be determined further based on the attenuator identification.
Further, in an embodiment of the present application, fig. 6 is a second schematic implementation flow chart of a control method of an attenuator according to an embodiment of the present application, as shown in fig. 6, after analyzing, according to a preset format, received request information, and obtaining 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 by using the controller may further include the following steps:
Step 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 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 present application, after analyzing the received request information according to the preset format, the control device may further determine, based on the configuration relation mapping table, a channel identifier of the attenuator to be controlled, which corresponds to the signal identifier, after obtaining the signal identifier and the attenuation parameter corresponding to the request information. Then, the control device may determine an input channel and an output channel of the attenuator to be controlled, which correspond to the signal to be attenuated, by using the channel identifier.
It will be appreciated that in embodiments of the present application, the channel identification of the attenuator to be controlled may include an identification of the input channel and an identification of the output channel.
Further, in the embodiment of the present application, for the multi-channel attenuator, the attenuator may perform attenuation processing on a certain signal 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, which correspond 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 relation mapping table, not only an attenuator that performs 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 relation mapping table.
For example, in the present application, the configuration relation mapping table may store the signals with configuration relation and the attenuator, and the identifiers of the channels of the attenuator, for example, table 3 is a configuration relation mapping table three, as shown in table 3, the attenuators performing the attenuation processing of the signals or the channels of the attenuators may be different for different signals, where the signal identifiers may be stored correspondingly to the attenuator identifiers and the channel identifiers of the attenuators based on the configuration relation of the signals and the attenuators, for example, a path formed by the input channel of the attenuator identifier 1 and the output channel of the channel identifier 6 of the attenuator identifier a may perform the attenuation processing on the signals of the signal identifier 3.
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
…… …… …… ……
It can be seen that, in the embodiment of the present application, after determining the signal identifier of the signal to be attenuated carried in the request information, the control device may further determine, based on the pre-stored configuration relation mapping table, the attenuator to be controlled, that is, the attenuator to be controlled, and the channels 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 diagram of a third implementation flow chart of a method for controlling an attenuator according to an embodiment of the present application, as shown in fig. 7, before determining, based on the signal identifier, an attenuator to be controlled among a plurality of attenuators, that is, before step 102, the method for controlling an attenuator by a control device 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 the embodiment of the present application, the control device may first establish a connection with a plurality of attenuators whose brands and types are not identical, where the attenuator to be controlled corresponding to the request information also belongs to at least one of the attenuators of the plurality of attenuators for which the connection has been established.
The control device may then establish a service object for each of the plurality of attenuators, i.e. establish a plurality of service objects for the plurality of attenuators, one for each 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 caching the 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 step 103, generating a control instruction according to a target format and attenuation parameters corresponding to the attenuator to be controlled.
In an embodiment of the present application, after determining the attenuator to be controlled among the plurality of attenuators based on the signal identification, 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 may be understood that in the embodiment of the present application, when the control device generates the control instruction, the control device may perform formatting processing on the attenuator identifier and the attenuation parameter based on the target format, that is, the control device may perform formatting processing on 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 an 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 instruction may indicate that the path loss bit 39db is set for the attenuator identified as 2.
It may be understood that in the embodiment of the present application, when the control device generates the control instruction, the control device may further perform formatting processing on the attenuator identifier, the channel identifier, and the attenuation parameter based on the target format, that is, the control device may perform formatting processing on 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 instruction may indicate an attenuator identified as 5 for the attenuator and a path loss set to 39dB for a path with an ingress of 3 and an egress of 1.
It is understood that in the embodiment of the present application, the attenuator to be controlled determined by the control device based on the signal identifier may be one attenuator of the established connection, or may be multiple 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 schematic diagram of an implementation flow chart of a control method of an attenuator according to an embodiment of the present application, as shown in fig. 8, after a control instruction is generated by a control device according to a target format corresponding to the attenuator to be controlled and the attenuation parameter, that is, after step 103, the method for controlling the attenuator by the control device may further include the following steps:
and 109, caching the control instruction into a message queue in a service object corresponding to the attenuator to be controlled.
In the embodiment of the present application, after completing the analysis of the request information based on the preset format and completing the generation of the control instruction based on the target format of the attenuator to be controlled, the control device may store the control instruction into 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 cached in a message queue in a service object of a certain attenuator in the control device.
And 104, sending a control instruction to the attenuator to be controlled.
In the embodiment of the present application, after generating the control instruction according to the target format and the attenuation parameter corresponding to the attenuator to be controlled, the control device may send the control instruction to the corresponding attenuator to be controlled.
It can be understood that, in this 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 sequentially issue the control instructions to the attenuator to sequentially attenuate the different signals.
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 multiple control instructions to control multiple attenuators to be controlled. Therefore, when transmitting control instructions to the attenuators, the control apparatus needs to transmit each control instruction to a corresponding one of the attenuators.
Further, in an embodiment of the present application, fig. 9 is a schematic diagram of an implementation flow chart of a control method of an attenuator according to an 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 controlling the attenuator by the control device may further include the following steps:
and 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 present application, after generating the control instruction and sending the control instruction to the attenuator to be controlled, the control device may also send a query instruction to the attenuator to be controlled, and may then receive the control result returned by the attenuator to be controlled. Wherein the control result may characterize 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, after generating one or more control instructions based on the request information and issuing the one or more control instructions to one or more attenuators, the control device may further query the one or more attenuators for attenuation results of the attenuation processing performed on the one or more signals 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 acquires the control result of the signal attenuation process by sending the query 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 the 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:
step 112, receiving an update 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 update the pre-stored configuration relation mapping table with the update instruction. That is, in response to the update instruction, the configuration relationship between the attenuator and the signal is updated.
Specifically, in the embodiment of the present application, based on the above table 1, the control device may update the configuration relationship between the signal and the attenuator based on the update instruction; based on the above 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 may be understood that, in the present application, the update instruction may instruct modification processing to one or more configuration relationships in the configuration relationship mapping table, may instruct addition processing to one or more configuration relationships in the configuration relationship mapping table, and may instruct deletion processing to one or more configuration relationships in the configuration relationship mapping table.
In summary, in the embodiment of the present application, by the control method of the attenuators provided in the foregoing steps 101 to 113, unified management and control can be performed on different attenuators, specifically, the control device may directly analyze the signal to be attenuated from the request message by using the preset format, and may determine, based on the pre-stored configuration relation mapping table, the attenuator to be controlled for performing the signal attenuation processing from the plurality of connected attenuators with different types, and further may issue a control instruction to the attenuator according to the target format corresponding to the attenuator to be controlled, so that in the process of implementing signal attenuation, the attenuator may be controlled more accurately and more efficiently.
It can be understood that in the embodiment of the application, for different types and brands of attenuators, the control device can accurately convert the request message into the control instruction based on the unified preset format and the respective target formats of the attenuators, so that the control of different attenuators is directly realized without depending on different control software, the flow of control processing is greatly simplified, and the control efficiency and control precision of the attenuators are effectively improved.
That is, in the present application, there is no need to install different types of control software in the test environment, when the control of the attenuator is performed, there is no need to pay attention to what brand of attenuator is used, there is no need to pay attention to the format specification of the control command message supported by the attenuator and the connection relationship between the cell signal and the attenuator, but only pay attention to the test service, so that on the basis of improving the control efficiency and the control accuracy, the time cost and the labor cost are saved, and 1) the workload of the maintenance of the control service of the attenuator is reduced.
It should be noted that, the control method of the attenuator provided by the embodiment of the application can be applied to a manual test scene and an automatic test scene, and meanwhile, the functions of the multi-brand multi-type programmable attenuator can be abstractly integrated in cloud services provided by control equipment, the cloud service functions of the control equipment are easy to expand, any brand-new attenuator can be supported, configuration file modification can be supported, the expansion is simple, more test requirements can be met, the time and cost for installing and maintaining various different control software are saved, and further the workload for the attenuator service is reduced.
Further, the control method of the attenuator provided by the embodiment of the application can be suitable for all test requirements for controlling the attenuator, and particularly can be realized by centralizing all requirements for the attenuator in an attenuator cloud service. The control device can have a stronger and richer customizing function, for example, a cell signal change flow 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 flow 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 attenuation parameters 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 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, in the embodiment of the present application, the control device may store configuration information of a plurality of attenuators of different brands and different types in advance, 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 attenuators, so that the attenuators are controlled to attenuate the signal in response to the request information. Therefore, the attenuator control method provided by the application can realize direct control of a plurality of attenuators with brands and different types based on the request information with the unified preset format, greatly simplifies the control process flow, and effectively improves the control efficiency and control precision of the attenuators.
Based on the above embodiments, in still another embodiment of the present application, fig. 10 is a schematic diagram of a control method of an attenuator, and as shown in fig. 10, a specific frame for implementing control of an attenuator may include a three-layer structure, where a first layer structure includes a plurality of brands and models of attenuators, a second layer structure includes a control device, and a third layer structure includes a test line.
Specifically, in the embodiment of the present application, in the attenuators of the multiple brands and multiple models in the first layer structure, each of the attenuators is configured with a socket communication interface for establishing a communication connection with the control device in the second layer structure.
It will be appreciated that in the embodiments of the present application, the attenuators in the first layer structure (e.g. the attenuators 1, 2, 3) may be of different brands, or different types of attenuators, i.e. if common techniques are used, the control of the attenuators needs to be performed by means of control software 1, control software 2, control software 3 corresponding to the attenuators 1, 2, 3, respectively.
Specifically, in the embodiment of the present application, the control device in the second layer structure is capable of running cloud services that control attenuators of different types and brands.
In the embodiment of the present application, the control device may establish corresponding attenuator service objects for each of the connected plurality of attenuators, for example, establish a service object 1 corresponding to the attenuator 1, a service object 2 corresponding to the attenuator 2, and a service object 3 corresponding to the attenuator 3.
Further, in the embodiment of the present application, a message queue is set in the service object corresponding to each attenuator, where the message queue may be used to cache the message, such as the control instruction, of the corresponding attenuator.
Specifically, in the embodiment of the present application, the test line in the third layer structure may be used for issuing the 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 may also be automatically issued by the automated test system.
That is, the control device runs a cloud service that controls different types of attenuators, different brands, and can be multiplexed in both manual and automated test environments.
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, such as a preset format, and accordingly, the control device may first parse the request message based on the preset format to determine the signal that needs to be attenuated. And then, further determining an attenuator for executing the attenuation processing of the signal by utilizing a pre-stored configuration relation mapping table, further formatting the data obtained by analysis according to different target formats corresponding to different attenuators, generating corresponding control commands, and finally, sending the control commands corresponding to different attenuators to a message queue of a corresponding service object so as to respectively send the control commands to the corresponding attenuators to realize the control of the attenuators.
For example, in the present application, if the control device parses the request message to determine that the signal to be attenuated is an attenuator 2, and then determines that the attenuator performing attenuation processing on the signal to be attenuated is an attenuator 2 based on the configuration relation mapping table, the control device may perform formatting processing on the data obtained by parsing according to the target format 2 corresponding to the attenuator 2, generate a corresponding control command 2, and finally may issue the control command 2 to a message queue of the corresponding service object 2, so as to send the control command 2 to the corresponding attenuator 2, so as to implement control of the attenuator 2.
Further, in the embodiment of the present application, fig. 11 is a schematic diagram of a second control method of an attenuator, as shown in fig. 11, when a tester determines that the antenna power of CELL1, CELLx, CELL2, CELLy needs to be changed, the tester may directly send a request message to a control device, the control device uses a unified preset format to analyze each request message, determine an attenuator to be controlled corresponding to each request message and performing attenuation processing, and then generate a corresponding control instruction according to a target format corresponding to each attenuator to be controlled, and send 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, it is not necessary 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 depending on a plurality of types of software, and the control flow is simplified.
Therefore, according to the control method of the attenuators, the control equipment stores specific parameters, configuration relations and the like of the attenuators in advance, and when the attenuators are controlled, the control equipment only needs to receive a request message comprising specific information (such as corresponding cell identification, antenna identification and other related information) of signals to be attenuated, and can control the corresponding attenuators, so that cloud control can be achieved for the attenuators with multiple brands and multiple types, control software is not required to be installed in a test environment, and the control command message format specification supported by the attenuators and the connection relation between the signals and the attenuators are not required to be concerned.
It can be appreciated that in the embodiment of the present application, the attenuator cloud service provided by the control device may be multiplexed with the manual test and the automated test, so that not only can a friendly GUI interface be provided for the manual test, but also a concise control interface can be provided for the automated test, so that a tester no longer needs to write the underlying control command for controlling the attenuator.
Further, in the embodiment of the present application, the control device may further customize the control service according to the test requirement, for example, the primary antenna set and the secondary antenna set may include multiple signals, when the test is required to adjust the primary antenna set and the secondary antenna set to different values, the control scheme based on the antenna set may be customized, and the customization requirement of other automatic adjustment schemes is satisfied.
It should be noted that, the control method of the attenuator provided in the present application may also provide a customizable function. Specifically, at the ue 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 the antennas and attenuation values that need to be uniformly adjusted, so as to generate corresponding request information, and after receiving the request information, the control device may control the corresponding attenuators based on the request information, so as to realize attenuation of the antennas that need to be uniformly adjusted in the cell according to the attenuation values.
Fig. 12 is a schematic diagram of a customized function implementation at 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 signals of the cell, a tag column in the WEB GUI interface may be used to tag four antennas that need to be uniformly adjusted, and then adjust any antenna to adjust the same attenuation value of all antennas, so that the user does not need to adjust each antenna four times.
Based on the above-mentioned fig. 12, fig. 13 is a schematic diagram II of the customized function implementation on the client device side, as shown in fig. 13, after the unified adjustment of the four antennas is completed, when the user needs to adjust some two antennas respectively, the labels on the two antennas are removed, for example, the third antenna and the fourth antenna are removed, so that their attenuation can be controlled respectively without affecting 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 attenuation parameters 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 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, in the embodiment of the present application, the control device may store configuration information of a plurality of attenuators of different brands and different types in advance, 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 attenuators, so that the attenuators are controlled to attenuate the signal in response to the request information. Therefore, the attenuator control method provided by the application can realize direct control of a plurality of attenuators with brands and different types based on the request information with the unified preset format, greatly simplifies the control process flow, and effectively improves the control efficiency and control precision of the attenuators.
Based on the above embodiment, in still another embodiment of the present application, fig. 14 is a schematic diagram three of a control method of an attenuator, and as shown in fig. 14, the method for controlling the attenuator by the controller may further include the following steps:
step 201, receiving request information.
In the embodiment of the application, the control device receives the request message, where the control device may receive the obtaining request message through the GUI or may receive the obtaining request message through the automation control interface when receiving the request message.
It is understood 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 the signal to be attenuated.
In the embodiment of the application, after receiving the request information, the control device may analyze 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, whether the sending end of the request message is the same or not, and whether the attenuators used for controlling the request message are the same or not, the preset format used by the control device for analyzing the request message is uniform.
For example, in this application, the client device may send http service request message (request message) to the control device, where the request message conforms to a unified data format predefined by the control device, such as a preset format, and the request message includes a test environment name, a CELL name, 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 a list structure in which each element is a dictionary structure, each dictionary recording attenuation information of a certain antenna of a certain CELL.
Step 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 present application, after analyzing the received request information according to the preset format and determining the signal to be attenuated, the control device may further determine, by using the configuration relation mapping table, an attenuator to be controlled corresponding to the signal to be attenuated from the plurality of connected attenuators.
It is understood that in the embodiment of the present application, the control device may be connected with a plurality of attenuators, where the types and brands of the plurality of attenuators may not be identical. Specifically, one or more attenuators among the plurality of attenuators may respond to the request information received by the control device to perform attenuation processing on the signal, where the one or more attenuators are attenuators to be controlled.
In the embodiment of the present application, a configuration relation mapping table may be stored in the control device in advance, where the configuration relation mapping table may determine a connection relation between the attenuator and the cell and the antenna, that is, may determine the attenuator that performs attenuation processing on a certain signal through the configuration relation mapping table.
Further, in the embodiment of the present application, the control device may further parse the attenuator number, the input channel and the output channel of the attenuator to be controlled according to the defined configuration relation mapping table, such as the tables 1, 2 and 3.
The configuration relation mapping table may be a well-defined configuration relation file, where the configuration relation file is convenient for a user to plan and adjust a connection relation between the CELL and the attenuator, and basic information, ip addresses, and the like of some attenuators, and the configuration relation file may be expressed as follows:
and 204, generating a control instruction according to a target format corresponding to the attenuator to be controlled.
In the embodiment of the present application, after determining, based on the configuration relation mapping table, an attenuator to be controlled corresponding to a signal to be attenuated in a plurality of attenuators, 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 may be understood that, in the embodiment of the present application, when the control device generates the control instruction, the control device may perform formatting processing on the attenuator identifier and the attenuation parameter based on the target format, that is, the control device may perform formatting processing on 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.
Illustratively, in an embodiment of the present application, the control instruction after the formatting process may be expressed as:
attenuator_2:IN3_OUT1_P39;…;
wherein the control command characterizes an attenuator with a 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 be 39dB.
Step 205, a control instruction is sent to the attenuator to be controlled.
In the embodiment of the present application, after generating the control instruction according to the target format and the attenuation parameter corresponding to the attenuator to be controlled, the control device may send the control instruction to the corresponding attenuator to be controlled.
Step 206, obtaining a control result corresponding to the control instruction.
In the embodiment of the present application, after generating the control instruction and sending the control instruction to the attenuator to be controlled, the control device may also send a query instruction to the attenuator to be controlled, and may then receive the control result returned by the attenuator to be controlled. Wherein the control result may characterize the working state of the attenuator to be controlled.
Step 207, feeding back a control result.
In the embodiment of the present application, after obtaining the control result corresponding to the control instruction, the control device may feed back the control result to the client device.
In an embodiment of the present application, fig. 15 is a schematic diagram of a third 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 by a tester through a WEB GUI, and/or an http service request (request message) sent by an automation, where the request message includes an attenuation request for a certain or some CELL signals, and it is noted that the format of the request message is specified by the control device, that is, the control device receives the request message according to a agreed, unified preset format. After the request message is acquired, the control device can convert the unified message format into a special message format for different brands of different types of attenuators, namely, the control device can generate control instructions by using different target formats corresponding to different attenuators, and then send the control instructions to the attenuators.
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 parse the request message based on the preset format, so as to determine that the CELL signal needs to be attenuated. And then, further determining an attenuator for executing the attenuation processing of the CELL signal by utilizing a pre-stored configuration relation mapping table, further formatting the data obtained by analysis according to different target formats corresponding to different attenuators, generating corresponding control commands, and finally, transmitting the control commands corresponding to different attenuators to a message queue of a corresponding service object so as to respectively transmit 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 service objects of CELL, where the service objects of CELL include service objects of a certain brand and a certain type of attenuator related to CELL. That is, for different CELL, the control device may establish different corresponding CELL service objects, and the CELL service objects further include service objects with different attenuators having configuration relation 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 attenuation parameters 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 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, in the embodiment of the present application, the control device may store configuration information of a plurality of attenuators of different brands and different types in advance, 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 attenuators, so that the attenuators are controlled to attenuate the signal in response to the request information. Therefore, the attenuator control method provided by the application can realize direct control of a plurality of attenuators with brands and different types based on the request information with the unified preset format, greatly simplifies the control process flow, and effectively improves the control efficiency and control precision of the attenuators.
Based on the above embodiments, in another embodiment of the present application, fig. 16 is a schematic diagram of the composition structure of the control device according to the embodiment of the present application, and as shown in fig. 16, the control device 10 according to the embodiment of the present application may include an parsing unit 11, a determining unit 12, a generating unit 13, a transmitting unit 14,
the parsing unit 11 is configured to parse 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 a plurality of attenuators based on the signal identification;
the generating unit 13 is configured to generate a control instruction according to a 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 an embodiment of the present application, further, fig. 17 is a schematic diagram of a second component structure of the control device according to the embodiment of the present application, as shown in fig. 17, the control device 10 according to the embodiment of the present application may further include a processor 15, a memory 16 storing instructions executable by the processor 15, 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 (Application Specific Integrated Circuit, ASIC), a digital signal processor (Digital Signal Processor, DSP), a digital signal processing device (Digital Signal Processing Device, DSPD), a programmable logic device (ProgRAMmable Logic Device, PLD), a field programmable gate array (Field ProgRAMmable Gate Array, FPGA), a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, and a microprocessor. It will be appreciated that the electronic device for implementing the above-mentioned processor function may be other for different apparatuses, and embodiments of the present application are not specifically limited. 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 operation instructions, the memory 16 may comprise a high speed RAM memory, and may further comprise a non-volatile memory, e.g. at least two disk memories.
In the present embodiment, the bus 18 is used to connect the communication interface 17, the processor 15, and the memory 16 and the mutual communication between these devices.
In an embodiment of the present application, memory 16 is used to store instructions and data.
Further, in the embodiment of the present application, the processor 15 is configured to parse the received request information according to a preset format, so as 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 a 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 (RAM), such as a Random-Access Memory (RAM); or a nonvolatile Memory (non-volatile Memory), such as a Read-Only Memory (ROM), a flash Memory (flash Memory), a Hard Disk (HDD) or a Solid State Drive (SSD); or a combination of memories of the above kind and providing instructions and data to the processor 15.
In addition, each functional module in the present embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional modules.
The integrated units, if implemented in the form of software functional modules, may be stored in a computer-readable storage medium, if not sold or used as separate products, and based on this understanding, the technical solution of the present embodiment may be embodied essentially or partly in the form of a software product, or all or part of the technical solution may be embodied in a storage medium, which includes several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) or processor (processor) to perform all or part of the steps of the method of the present embodiment. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The embodiment of the application provides control equipment, which analyzes received request information according to a preset format to obtain a signal identifier and attenuation parameters 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 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, in the embodiment of the present application, the control device may store configuration information of a plurality of attenuators of different brands and different types in advance, 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 attenuators, so that the attenuators are controlled to attenuate the signal in response to the request information. Therefore, the attenuator control method provided by the application can realize direct control of a plurality of attenuators with brands and different types based on the request information with the unified preset format, greatly simplifies the control process flow, and effectively improves the control efficiency and control precision of the attenuators.
The embodiment of the present application provides a computer-readable storage medium having stored thereon a program which, when executed by a processor, implements the control method of an attenuator as described above.
Specifically, the program instructions corresponding to the control method of an attenuator in the present embodiment may be stored on a storage medium such as an optical disc, a hard disc, or a usb disk, and when the program instructions corresponding to the control method of an 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 attenuation parameters 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 a 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 program instructions through the interface, and the processor is used for running the program instructions 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 attenuation parameters 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 a target format corresponding to the attenuator to be controlled and the attenuation parameter;
and sending the control instruction to the attenuator to be controlled.
It will be appreciated by those skilled in the art that 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, magnetic 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 block and/or flow of the flowchart illustrations and/or block diagrams, and combinations of blocks and/or flow diagrams in the flowchart illustrations 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 block diagram 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 and/or block diagram 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 and/or block diagram block or blocks.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the present application.

Claims (13)

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 attenuation parameters corresponding to the request information; wherein, the signal identification comprises a cell identification and/or an antenna identification;
Determining an attenuator to be controlled among a plurality of attenuators based on the signal identification; wherein the types and brands of the attenuators are not identical;
generating a control instruction according to a target format corresponding to the attenuator to be controlled and the attenuation parameter;
sending the control instruction to the attenuator to be controlled;
wherein the 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 from the plurality of attenuators according to the attenuator identification.
2. The method according to claim 1, wherein after parsing the received request information according to a preset format to obtain the signal identifier and the attenuation parameter corresponding to the request information, the method further comprises:
determining a channel identifier of the attenuator to be controlled, which corresponds 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.
3. The method according to claim 2, wherein the generating a control instruction according to the target format and the attenuation parameter corresponding to the attenuator to be controlled includes:
And formatting the attenuator identifier, the channel identifier and the attenuation parameter based on the target format to generate the control instruction.
4. 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.
5. The method of claim 4, wherein after generating the control command according to the target format and the attenuation parameter corresponding to the attenuator to be controlled, the method further comprises:
and caching the control instruction into a message queue in a service object corresponding to the attenuator to be controlled.
6. The method according to claim 1, wherein before analyzing the received request information according to a preset format to obtain the signal identifier and the attenuation parameter corresponding to the request information, the method further comprises:
receiving the request information;
wherein said receiving said request information comprises:
The request information is received through a graphical user interface, or,
the request information is received through an automation control interface.
7. The method of 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.
8. The method of claim 7, wherein the method further comprises:
and feeding back the control result.
9. The method according to claim 1, wherein the method further comprises:
receiving an update instruction;
and updating the configuration relation mapping table based on the updating instruction.
10. The control device is characterized by comprising an analysis unit, a determination unit, a generation unit and a transmission unit,
the analyzing unit is used for analyzing the received request information according to a preset format and obtaining a signal identifier and attenuation parameters corresponding to the request information; wherein, the signal identification comprises a cell identification and/or an antenna identification;
the determining unit is used for determining an attenuator to be controlled from a plurality of attenuators based on the signal identification; wherein the types and brands of the attenuators are not identical;
The generating unit is used for generating a control instruction according to a target format corresponding to the attenuator to be controlled and the attenuation parameter;
the sending unit is used for sending the control instruction to the attenuator to be controlled;
the determining unit is specifically configured to determine an attenuator identifier corresponding to the signal identifier based on a configuration relation mapping table; and determining the attenuator to be controlled from the plurality of attenuators according to the attenuator identification.
11. A control device comprising a processor, a memory storing instructions executable by the processor, which when executed by the processor, implement the method of any one of claims 1-9.
12. A chip comprising a processor and an interface through which the processor obtains program instructions, the processor being configured to execute the program instructions to perform the method of any of claims 1-9.
13. A computer readable storage medium, on which a program is stored, which program, when being executed by a processor, implements the method according to any of claims 1-9.
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 CN113098439A (en) 2021-07-09
CN113098439B true 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)

Families Citing this family (1)

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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5948726B2 (en) * 2011-03-28 2016-07-06 ヤマハ株式会社 Controller device
JP5887941B2 (en) * 2012-01-12 2016-03-16 ティアック株式会社 Electronic equipment with faders
US10995462B2 (en) * 2018-10-10 2021-05-04 International Business Machines Corporation Autonomous mobile attenuator system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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 (2)

* Cited by examiner, † Cited by third party
Title
宽带微功率无线通信系统网络测试平台的设计与实现;田乐;信息科技辑;第2021卷(第02期);I136-744 *
田乐.宽带微功率无线通信系统网络测试平台的设计与实现.信息科技辑.第2021卷(第02期),I136-744. *

Also Published As

Publication number Publication date
CN113098439A (en) 2021-07-09

Similar Documents

Publication Publication Date Title
CN108174405B (en) Product testing method and device
CA2931150C (en) Automatic inspection and monitoring method based on time domain slotting control
CN104641673A (en) A method and a test system for automatically configuring a tester
CN107656126B (en) CAN-based automatic testing method and system for quiescent current of vehicle-mounted sound equipment
WO2022127575A1 (en) Automatic testing method and system for wifi devices and readable storage medium
CN113098439B (en) Attenuator control method and device, chip and storage medium
CN111597083B (en) Testing system of intelligent terminal
CN112765035A (en) Distributed pressure test system, method, device, electronic equipment and storage medium
CN113285841B (en) Configuration method of industrial gateway data transmission protocol
CN111930574A (en) SSD test system and SSD test method
CN111813622A (en) Equipment monitoring method and device
CN113407469B (en) Parameter configuration method and device, storage medium and electronic device
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
RU2532714C2 (en) Method of acquiring data when evaluating network resources and apparatus therefor
CN109538415B (en) Virtual fan and virtual wind power plant
CN115134403B (en) Internet of things communication assembly control method supporting multi-protocol access
CN115604095A (en) Network equipment configuration method and system
WO2022105808A1 (en) Method and apparatus for calibrating srs radio frequency emission channel, and electronic device and storage medium
CN111082860A (en) Testing method, server, system and storage medium of optical distribution node
CN100546253C (en) A kind of management method of telecommunication equipment unit
CN101753375B (en) Device for debugging UDP network packet in avionics simulation environment and method therefor
CN104270431A (en) Method and device for concurrency control
CN105306302A (en) Method and system for automatically testing Qinq function
CN105389218A (en) Methods of server cabinet for processing basic input output system (BIOS) information, and nodes

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