Disclosure of Invention
In order to solve the technical problems, the application provides an antenna feeder gain control method, a computing device and a storage medium, which can be applied to the field of aerospace, particularly in the aspect of arrow-mounted antenna feeder gain control, can realize dynamic gain adjustment, and ensures the global reliability and transparency of a gain adjustment process.
An antenna feed gain control method, comprising:
installing antenna feeder equipment and setting parameters;
deploying a gain adjustment algorithm on an Ethernet platform through an intelligent contract, and initializing an Ethernet block chain network;
the method comprises the steps of collecting data in real time through an antenna feeder device and transmitting the data to a processing device;
calculating a quantization index according to a preset algorithm and a model;
uploading the quantization index to an intelligent contract, obtaining gain adjustment data according to rules and strategies set by the intelligent contract, sending instructions to antenna feeder equipment for adjustment according to the gain adjustment data, and recording the gain adjustment data and adjustment results of each time.
Preferably, the deploying the gain adjustment algorithm on the ethernet platform through the smart contract includes:
setting a desired signal strength and a desired signal-to-noise ratio;
setting a mapping for storing different environment parameters, and associating different addresses with corresponding environment parameters;
initializing default environment parameters and setting the environment parameters;
receiving as parameters a desired signal strength and a desired signal to noise ratio and storing them in a map in association with a caller address;
gain adjustment is carried out according to the current environment;
the gain-adjusted related data is recorded and validated.
Preferably, the gain adjustment according to the current environment includes:
judging the requirements and conditions of the current communication environment according to the quantization indexes;
when the current communication environment does not meet the requirement, a gain adjustment quantity function is called, and gain adjustment quantity is calculated according to the signal strength and the difference between the signal-to-noise ratio and the expected value;
and updating the gain value according to the calculation result of the gain adjustment quantity.
Preferably, the quantization index includes signal strength, signal-to-noise ratio, data transmission rate, and bit error rate.
Preferably, the relevant data of the recording and verifying gain adjustment include an environment address, a signal strength, a signal to noise ratio, a gain adjustment amount and a new gain value.
Preferably, the parameters set by the antenna feeder device include an antenna type, an antenna mounting angle, an antenna far-field pattern and a maximum transmitting power.
Preferably, the data collected in real time by the antenna feeder device includes signal strength and signal to noise ratio.
According to another aspect of the present application, there is also provided a computing device including: the antenna feed gain control system comprises a processor and a memory storing a computer program, wherein the computer program is executed by the processor to execute the antenna feed gain control method.
According to another aspect of the present application, there is also provided a computer readable storage medium having stored thereon computer instructions which, when run on a computer, cause the computer to perform the antenna feed gain control method.
Compared with the prior art, the application has at least the following beneficial effects:
1. the application realizes the characteristics of distributed account book and decentralization by using the Ethernet block chain technology in an intelligent contract mode, ensures that the gain adjustment process has global credibility and transparency, and can verify and examine the legality of the gain adjustment by any participant.
2. The application protects the security of gain adjustment data by utilizing the security and encryption technology of the Ethernet block chain, prevents data tampering and unauthorized access, and ensures the data integrity and confidentiality of the system.
3. The application utilizes intelligent contracts and self-adaptive algorithm to realize the automation and the intellectualization of gain control, reduces the requirement of manual intervention, reduces the complexity of operation and improves the stability and the reliability of the system.
4. The application realizes dynamic adaptive gain control through the flexibility and the programmability of the intelligent contract of the Ethernet, and automatically optimizes the gain setting according to the real-time signal strength, the signal to noise ratio and other related parameters so as to improve the communication performance and the flexibility of the system.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be clearly and completely described below with reference to specific embodiments of the present application and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
As shown in fig. 1, an antenna feed gain control method includes the following steps:
and S1, installing antenna feeder equipment and setting parameters.
Specifically, an antenna feed device is installed and relevant parameters are set, including antenna type, antenna installation angle, antenna far field pattern and maximum transmit power.
And S2, deploying a gain adjustment algorithm on the Ethernet platform through an intelligent contract, and initializing the Ethernet block chain network.
The method specifically comprises the following steps:
step S21, setting the desired signal strength and the desired signal to noise ratio.
Step S22, mapping for storing different environment parameters is set for associating different addresses with corresponding environment parameters.
Step S23, initializing default environment parameters and setting the environment parameters.
Step S24, receiving the desired signal strength and the desired signal to noise ratio as parameters and storing them in a map in association with the caller address.
And S25, performing gain adjustment according to the current environment.
And judging the requirements and conditions of the current communication environment according to the quantization indexes. When the current communication environment does not meet the requirement, a gain adjustment quantity function is called, and the gain adjustment quantity is calculated according to the signal strength and the difference between the signal-to-noise ratio and the expected value. And updating the gain value according to the calculation result of the gain adjustment quantity.
Step S26, recording and verifying the gain-adjusted related data.
Specifically, recording and verifying the gain-adjusted data includes: environment address, signal strength, signal to noise ratio, gain adjustment, and new gain value.
And S3, acquiring data in real time through the antenna feeder equipment, and transmitting the data to the processing equipment.
Specifically, through the antenna feeder equipment, relevant data such as signal strength, signal to noise ratio and the like are acquired in real time. The acquired data is transmitted to a ground station or related equipment by wireless transmission or direct connection.
And S4, calculating a quantization index according to a preset algorithm and a model.
In the ground station or related equipment, the received data is processed and analyzed. And calculating quantization indexes including signal strength, signal-to-noise ratio, data transmission rate and bit error rate according to a preset algorithm and model.
And S5, uploading the quantization index to an intelligent contract, obtaining gain adjustment data according to rules and strategies set by the intelligent contract, sending instructions to the antenna feeder equipment according to the gain adjustment data to adjust, and recording the gain adjustment data and adjustment results of each time.
And uploading the calculated quantization index to an intelligent contract in the Ethernet block chain network. In the intelligent contract, the decision and adjustment of the self-adaptive gain are carried out according to the received data and preset rules.
And the intelligent contract judges the requirements and conditions of the current communication environment according to the numerical value of the quantization index. And according to the set rules and strategies, intelligently reducing and calculating proper gain adjustment quantity, and sending a command to the antenna feeder equipment for adjustment. The gain adjustment can be automatically adjusted based on the change trend of the quantization index and the set threshold value so as to improve the communication quality and performance.
In addition, the smart contract records data and results of each gain adjustment, ensuring traceability and verifiability of operation. The data and the resulting record of each gain adjustment can be used for subsequent data analysis, performance assessment and development of improvement measures.
The arrow-mounted communication device can interact with the blockchain network, provide relevant data of the received signals for the intelligent contract, and acquire corresponding gain adjustment instructions. Nodes in the blockchain network verify and process the data provided by the equipment, and execute a gain adjustment algorithm defined in the intelligent contract to realize the arrow-borne antenna feed gain self-adaptive control based on the Ethernet. The calculation and application of the quantization index ensure the feasibility of real-time monitoring and accurate adjustment, and improve the performance, flexibility and stability of the arrow-borne communication system. Meanwhile, the participation of the Ethernet block chain provides data security and tamper-proof guarantee, and the reliability and the credibility of gain adjustment are ensured. Therefore, the antenna feed gain control method of the application ensures that the gain adjustment process has global transparency and reliability, and any participant can verify the validity and accuracy of the gain adjustment.
In the embodiment of the application, the deployment scheme of the gain adjustment algorithm on the Ethernet platform combines the intelligent contract, recording and verification mechanism of the Ethernet, so as to ensure that the arrow-borne antenna feed gain adjustment meets the requirements in a real-time dynamic environment.
The solubility language is a programming language oriented to intelligent contracts and is specially used for intelligent contract development on an Ethernet platform. The solubility language has a similar syntax structure to that of JavaScript and c++, but it introduces some concepts and functions specific to intelligent contract development. It supports key construction of contracts, functions, variables, events, etc., and provides rich data types, operators, and library functions so that developers can write complex intelligent contract logic. Using the solubility language, developers can define the states and behavior of smart contracts, including variables, functions, and events. The smart contracts may be deployed onto the ethernet blockchain and interact with other contracts or external accounts. The following are partial source codes based on the solubility language:
pragma solidity ^0.8.0;
contract GainAdjustment {
struct Environment {
uint256 desired SignalStrength;// desired Signal Strength
uint256 desired SignalToNoiseRatio;// desired signal to noise ratio
}
mapping (address= > Environment) public environments;// storing parameters of different environments
event GainAdjusted(address indexed environment, uint256 signalStrength, uint256 signalToNoiseRatio, uint256 adjustment, uint256 newGain);
constructor() {
Initialization default environment parameters
environments[msg.sender] = Environment(80, 20);
}
Setting environmental parameters
function setEnvironmentParameters(uint256 desiredSignalStrength, uint256 desiredSignalToNoiseRatio) public {
environments[msg.sender] = Environment(desiredSignalStrength, desiredSignalToNoiseRatio);
}
Gain adjustment
function adjustGain(uint256 signalStrength, uint256 signalToNoiseRatio) public {
Environment memory currentEnvironment = environments[msg.sender];
Calculating gain adjustment according to quantization index
uint256 adjustment = calculateAdjustment(signalStrength, signalToNoiseRatio, currentEnvironment);
Updating gain value according to gain adjustment amount
uint256 newGain;
if (adjustment>0) {
newGain = gain + adjustment;
} else {
The/avoiding gain is negative
newGain = 0;
}
Recording and verifying gain adjustment
emit GainAdjusted(msg.sender, signalStrength, signalToNoiseRatio, adjustment, newGain);
require(newGain>= currentEnvironment.desiredSignalStrength, "Gain does not meet desired signal strength.");
require(signalToNoiseRatio>= currentEnvironment.desiredSignalToNoiseRatio, "Signal-to-noise ratio does not meet desired requirement.");
gain = newGain;
}
Calculating gain adjustment amount
function calculateAdjustment(uint256 signalStrength, uint256 signalToNoiseRatio, Environment memory currentEnvironment) internal pure returns (uint256) {
Adjustment based on signal strength and difference between signal-to-noise ratio and desired value
uint256 strengthDifference = signalStrength>currentEnvironment.desiredSignalStrength ? signalStrength - currentEnvironment.desiredSignalStrength : 0;
uint256 snrDifference = signalToNoiseRatio>currentEnvironment.desiredSignalToNoiseRatio ? signalToNoiseRatio - currentEnvironment.desiredSignalToNoiseRatio : 0;
Calculating gain adjustment amount based on the difference
uint256 adjustment = strengthDifference + snrDifference;
return adjustment;
}
}
In this embodiment, one Environment structure is added to store parameters of different environments. The environments structure is a mapping (mapping) that is used to associate different addresses with corresponding environment parameters.
In the constructor, default environment parameters are initialized. When deploying the contract, the address of the contract creator will be automatically associated to the default environment parameters.
The setEnvironmentParameters function allows contract callers to set parameters for a particular environment, receives desired signal strength, desired signalstrength, and desired signal to noise ratio, desired signalto-noise ratio as parameters, and stores them in an environmentmap in association with caller addresses.
The adjustGain function is used for adjusting the gain according to the current environment parameters, receives the current signal strength signalStrength and the signal to noise ratio signalToNoiseRatio as parameters, and calls the calcuatieAdjust function to calculate the gain adjustment quantity. Then, the gain value newGain is updated according to the calculation result.
In terms of recording and verification, the event gainAdjust is used to record the relevant information of gain adjustment, including the environment address, signal strength, signal to noise ratio, gain adjustment amount, and new gain value, by triggering the event using the emit key.
Before updating the gain value, verification is performed by using a required statement, so that the new gain value is ensured to meet the signal strength requirement of the current environment, and the signal to noise ratio meets the expected requirement. If the verification fails, the transaction will be rejected and the gain value will not be updated. Finally, according to the calculated new gain value, the arrow-carried antenna feed gain variable in the contract is updated.
It is noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of exemplary embodiments according to the present application. As used herein, the singular is also intended to include the plural unless the context clearly indicates otherwise, and furthermore, it is to be understood that the terms "comprises" and/or "comprising" when used in this specification are taken to specify the presence of stated features, steps, operations, devices, components, and/or combinations thereof.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein.
The above description is only of the preferred embodiments of the present application and is not intended to limit the present application, but various modifications and variations can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.