Disclosure of Invention
The present invention is directed to overcome at least one of the above-mentioned drawbacks (shortcomings) of the prior art, and provides a method, an apparatus, a device and a storage medium for switching operating modes of a repeater, which are used to switch operating modes of the repeater conveniently and quickly.
The technical scheme adopted by the invention is as follows:
a method for switching working modes of a repeater comprises the following steps: enabling the digital signal processing software of the corresponding version and the parameters of the corresponding digital signal processing software according to the current working mode identification when the digital signal processing software is started each time; one version of digital signal processing software and parameters corresponding to the version of digital signal processing software are used for realizing a specific working mode of the repeater; if the external certificate is received after starting, selecting a corresponding working mode identifier according to the external certificate, which specifically comprises: if the working mode identifier corresponding to the external certificate is the same as the current working mode identifier, the current working mode identifier is not switched; if the working mode identification corresponding to the external certificate is different from the current working mode identification, switching to the former so as to switch the digital signal processing software and the parameters after restarting.
The working mode identification is the basis for starting the digital signal processing software of the repeater, each working mode identification corresponds to one version of the digital signal processing software, each version of the digital signal processing software uses one set of independent parameters to keep the running stability, and the digital signal processing software and the corresponding parameters are stored in advance. When the main control software of the repeater or the repeater is started, one version of digital signal processing software needs to be selected, the version of digital signal processing software is operated, the digital signal processing software automatically identifies and matches corresponding parameters, the repeater works in a specific working mode, and the difference of bandwidth and/or sub-band quantity exists between different working modes. The external certificate is a control signal sent to the repeater from the outside and is used for maintaining or changing the current working mode identification of the repeater, and each external certificate corresponds to one version of digital signal processing software. As can be seen from the above, the working mode identifier only plays a role when the repeater or the master control software of the repeater is started, and during the working period of the repeater, the change of the working mode identifier does not affect the running of the digital signal processing software of the current version, namely, the normal working of the repeater after the working mode is selected; if the working mode of the repeater needs to be switched, after the current working mode identification needs to be changed through an external certificate, the repeater or the main control software of the repeater is restarted, so that the digital signal processing software of the corresponding version is selected according to the changed working mode identification, and thus, the repeater needs to be restarted every time the working mode is switched, so that the parameters in the original working mode can be stored for being read and used next time, and only one independent version of digital signal processing software is configured after the repeater is started, and a set of independent parameters is read for operation in the normal operation stage, thereby ensuring the stable operation in a single mode, realizing the remote wireless control, and the software version and the parameters designed in the process are prestored, and the realization mode is convenient and fast; compared with the prior art in the background technology, the repeater does not need to be subjected to additional software debugging or hardware replacement, and an operator only needs to complete the step of sending the external certificate, so that the realization threshold is reduced; on the other hand, the burden of the digital signal processing chip is reduced, and the hardware cost is saved.
Further, after receiving the external certificate after starting, selecting the corresponding working mode identifier according to the external certificate, the method further comprises: the restart is automatically performed.
There are many implementations of restarting, including timed restart, manual restart, and automatic restart, among others. In one embodiment of the invention, after receiving the external certificate, the master control software of the repeater or the repeater is automatically restarted no matter whether the external certificate corresponds to the current working mode identifier, that is, whether the working mode identifier is changed, at this time, the external certificate is added with a remote control automatic restart function, and if the repeater is required to be restarted under the premise of not changing the working mode of the repeater, the external certificate corresponding to the current working mode identifier of the repeater is sent to the repeater from the outside. On the other hand, under the condition that the working mode needs to be changed, after the working mode identification is changed by receiving an external certificate, the digital signal processing software is automatically restarted, and then the digital signal processing software of the corresponding version is selected according to the changed working mode identification, so that the efficiency and the automation degree of controlling and switching the working mode of the repeater are improved.
Further, if the working mode identifier corresponding to the external certificate is different from the current working mode identifier, switching to the former so as to switch the digital signal processing software and the parameters after restarting, further comprising: and after the working mode identifier corresponding to the external certificate is switched, restarting is automatically carried out.
In another embodiment of the invention, if an external certificate corresponding to the current working mode identifier is received, namely under the condition of not switching the working mode, the repeater does not automatically restart, and continues to run the digital signal processing software of the current version to maintain the current working mode; if the working mode identification corresponding to the received external certificate is different from the current working mode identification, the working mode identification of the repeater is changed, the working mode identification corresponding to the external certificate is switched to, and the repeater is automatically restarted. Compared with the above embodiment, if the working mode is not switched, the normal running state is not interrupted, which is beneficial to protecting the working continuity of the repeater.
Further, the method for switching the working modes of the repeater further comprises the following steps: verifying the validity of the external certificate; and if the external certificate is received after starting, verifying the validity of the external certificate, and selecting the corresponding working mode identifier according to the valid external certificate.
And when the external certificate is received, verifying the external certificate, and then carrying out subsequent steps of adjusting the working mode identifier and/or automatically restarting. The verification of the external certificate includes at least one of the following three aspects: firstly, whether the external certificate corresponds to the repeater or not, in practical application, the number of the repeaters is large, and the repeater has a possibility of receiving the external certificate for controlling other repeaters by mistake, so that the repeater switches the working mode by mistake, and therefore the repeater needs to confirm whether the received external certificate is a control signal for controlling the repeater; secondly, whether the external voucher correctly carries the information of the working mode identification or not and whether the working mode identification corresponding to the external voucher is locally stored in the repeater or not; thirdly, whether the external certificate is sent by the correct device or terminal, even if the working mode identification information carried by the external certificate is correct and complete and is the control signal of the repeater corresponding to the external certificate, the external certificate still has the possibility of counterfeit. And the external certificate is verified to ensure that the repeater operates correctly in an assumed working mode, so that the possible situations are avoided.
Further, the external credential is an authorization code.
The authorization code is generated by an authorization encryption tool, the repeater decrypts after receiving the authorization code, analyzes whether the equipment or the terminal sending the authorization code has the authority of changing the working mode identifier, and extracts the information of which working mode identifier needs to be changed, wherein the information is carried in the authorization code. The authorization code technology is mature, and the normal operation and the correct switching of the working mode of the repeater can be effectively guaranteed by taking the authorization code as an external certificate.
Further, each version of the digital signal processing software and the parameters of each corresponding one of the versions of the digital signal processing software are stored in different areas of the same memory.
In order to maintain stable operation in a single operating mode, each version of digital signal processing software and each parameter corresponding to one version of digital signal processing software need to be stored in relatively independent areas. The digital signal processing software of each version and the parameters of the digital signal processing software of each corresponding version can be stored by using a single memory respectively, the implementation mode ensures the independence of all parties, but the repeater needs to be associated with a plurality of memories simultaneously, the efficiency of information transmission and processing is reduced to a certain degree, and the hardware cost is increased. Preferably, each version of digital signal processing software and each parameter corresponding to one version of digital signal processing software are stored in different areas of the same memory, in the software debugging stage, the different versions of digital signal processing software for realizing different working modes are programmed onto different areas of the same memory, the parameter used by each version of digital signal processing software is determined according to each working mode, a set of independent parameters corresponding to one version of digital signal processing software is formed and stored in the memory, and the areas are kept relatively independent. After the master control software of the repeater or the repeater is started, the digital signal processing software of the corresponding version is loaded from a certain area in the memory according to the working mode identification, the digital signal processing software identifies and reads a set of parameters of the certain area in the memory, the digital signal processing software of other versions and the parameters of reading errors are not easy to be loaded by mistake, the data in the memory are not interfered with each other, the information transmission and processing efficiency of the repeater during starting and running is improved, and the hardware cost is reduced.
The technical scheme adopted by the invention is as follows:
a working mode switching device of a repeater comprises a main control module and a digital signal processing module; the main control module is used for enabling the digital signal processing software of the corresponding version and the parameters of the corresponding digital signal processing software according to the current working mode identification when the main control module is started each time so as to enable the digital signal processing module to run by the digital signal processing software and the parameters; one version of digital signal processing software and the corresponding parameters are used for realizing one working mode of the repeater; the main control module is further configured to select a corresponding working mode identifier according to the external certificate if the external certificate is received after the start, and specifically includes: if the working mode identifier corresponding to the external certificate is the same as the current working mode identifier, the current working mode identifier is not switched; if the working mode identification corresponding to the external certificate is different from the current working mode identification, switching to the former so as to switch the digital signal processing software and the parameters after restarting.
The main control module is used for controlling and coordinating the operation of the repeater; the digital signal processing module is used for operating digital signal processing software and processing the wireless signals received by the repeater. The digital signal processing module is controlled by the main control module, and the main control module determines which version of digital signal processing software is started according to the current working mode identifier, and enables the digital signal processing module to load the version of digital signal processing software and read corresponding parameters for operation so as to realize a certain working mode of the repeater. The working mode identification is stored in the working mode switching device of the repeater and can be rewritten and read. And rewriting the working mode identifier through the external certificate so that the main control module controls the digital signal processing module to load the digital signal processing software of another version after restarting, thereby realizing the switching of the working mode.
Further, the device for switching the working modes of the repeater further comprises: the storage module is used for storing different versions of digital signal processing software and parameters corresponding to the different versions of digital signal processing software, and the digital signal processing software of each version and the parameters corresponding to one version of digital signal processing software are stored in different areas of the storage module.
The working mode switching device of the repeater is internally provided with a storage module, and stores each version of digital signal processing software and each parameter corresponding to one version of digital signal processing software in each relatively independent area in the storage module, so that the repeater is ensured to stably operate in a single working mode, other external memories are not needed, and links of the device are reduced.
The technical scheme adopted by the invention is as follows:
a computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the working mode switching method of the repeater when executing the computer program.
A computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the above-described operating mode switching method of a repeater.
Compared with the prior art, the invention has the beneficial effects that:
(1) the switching method can be realized by a set of master control software, is universal in different working modes of the repeater, and does not need to be matched with digital signal software of different versions to replace the master control software; the repeater is started each time only by loading one version of prestored digital signal processing software and a set of corresponding parameters, and the subsequent operation stage does not relate to other versions of digital signal processing software and parameters, so that the repeater can operate reliably, the switching engineering is faster, and the operation threshold is reduced.
(2) The working mode identification inside the repeater is changed through the external certificate, so that the working mode of the repeater is switched, remote wireless control is realized, the working mode of the repeater can be changed quickly and conveniently, the working mode identification does not influence the normal work of the repeater, and the repeater is guaranteed to run stably and reliably from the other side.
Detailed Description
The drawings are only for purposes of illustration and are not to be construed as limiting the invention. For a better understanding of the following embodiments, certain features of the drawings may be omitted, enlarged or reduced, and do not represent the size of an actual product; it will be understood by those skilled in the art that certain well-known structures in the drawings and descriptions thereof may be omitted.
Example 1
As shown in fig. 1, this embodiment provides a method for switching operating modes of a repeater, which includes the following steps:
s1: starting a repeater;
s2: enabling the digital signal processing software of the corresponding version and the parameters of the corresponding digital signal processing software according to the current working mode identification;
the working mode identifiers are stored data which can be read and rewritten, each working mode identifier corresponds to one version of digital signal processing software, the digital signal processing software is read after the repeater is started and is started according to the version of the digital signal processing software, and the digital signal processing software automatically identifies and matches corresponding parameters to enable the repeater to work in a specific working mode;
as shown in fig. 2, the present embodiment illustrates the specific steps of S2 with a repeater including two operating modes, including:
s21: judging whether the current working mode identification corresponds to class A version digital signal processing software or not; if so, perform S22; if not, executing S23;
s22: enabling the class A version digital signal processing software and parameters of the corresponding class A version digital signal processing software;
s23: the parameters of class A version digital signal processing software and the corresponding class B version digital signal processing software are enabled.
S21 is performed after S1 is executed, and S3 is performed after S22 or S23 is executed. Class A version digital signal processing software and class B version digital signal processing software in the embodiment respectively correspond to two working modes, namely a narrowband multicarrier mode and a broadband multi-subsegment mode, under the narrowband multicarrier mode, a repeater works at a bandwidth of 75kHz and below per narrowband carrier, and processes wireless signals with a frequency band of 890-954 MHz; under the broadband multi-subsection mode, the repeater works with the bandwidth of 200kHz and above per broadband subsection, and processes the wireless signals with the frequency band of 890-909 MHz. The class A version digital signal processing software and the class B version digital signal processing software are both stored in advance, parameters corresponding to the class A version digital signal processing software and the class B version digital signal processing software are also stored in advance, after the working mode is started, the repeater loads one version of digital signal processing software and corresponding parameters, the prestored contents do not need to be read again in the normal operation stage, and the stability in the single working mode is kept. For the above illustration, in practical application, digital signal processing software of other versions may be added according to needs to enable the repeater to implement operation and switching of more working modes, the number of the working modes for switching after addition is greater than two, and S21 is referred to increase the judgment process to enable S2 to determine the finally enabled digital signal processing software of one version; meanwhile, the narrowband multicarrier mode and the wideband multisubsegment mode are not necessarily adopted, that is, the digital signal processing software of class a and class B versions is not necessary to implement the technical features of the embodiment, and can be replaced by digital signal processing software of other versions. In practical applications, if the number of the working modes is large, other technologies may be used to match the corresponding versions of the digital signal processing software through the working mode identifier, which are well known to those skilled in the art and therefore will not be described in detail.
S3: normally running enabled digital signal processing software;
s4: judging whether an external certificate is received; if not, executing S5; if so, perform S6;
s5: returning to S3;
s6: judging whether the working mode identification corresponding to the external certificate is the same as the current working mode identification; if so, perform S7; if not, executing S8;
s7: the current working mode identification is not changed; returning to S3;
s8: switching to a working mode identifier corresponding to the external certificate;
s9: restarting automatically;
the external certificate is sent by an external device or terminal with the authority of controlling the repeater, which is the basis for the repeater to establish the working mode identifier, and the repeater is controlled to rewrite the working mode identifier to achieve the purpose of determining the digital signal processing software started after the repeater or the repeater master control software is started, so that the repeater is controlled to switch the supposed working mode. The working mode identification only plays a role when the master control software of the repeater or the repeater is started, and during the working period of the repeater, the step of changing the working mode identification by receiving an external certificate does not influence the running of the digital signal processing software of the current version, namely the normal working of the repeater after the working mode is selected. If the working mode of the repeater needs to be switched, after the current working mode identification needs to be changed through an external certificate, the repeater or the main control software of the repeater is restarted, so that the digital signal processing software of the corresponding version is selected according to the changed working mode identification, therefore, the repeater needs to be restarted every time the working mode is switched, the parameters in the original working mode can be stored for being read and used next time, the repeater is only configured with the digital signal processing software of an independent version after being started, a set of independent parameters is read for operation in the normal operation stage, the stable operation in a single mode is ensured, the burden of a digital signal processing chip is reduced on the other hand, and the hardware cost is saved.
If an external certificate corresponding to the current working mode identification is received, namely under the condition of not switching the working mode, the repeater does not automatically restart, continues to run the digital signal processing software of the current version, and maintains the current working mode; if the working mode identification corresponding to the received external certificate is different from the current working mode identification, the working mode identification of the repeater is changed, the working mode identification corresponding to the external certificate is switched to, and the repeater is automatically restarted. If the external certificate is received and the working mode is not switched, the normal running state is not interrupted, which is beneficial to protecting the working continuity of the repeater.
Alternatively, S7 may be: the current working mode identification is not changed; jumping to S9; if the repeater needs to be restarted under the premise of not changing the working mode of the repeater, the external certificate corresponding to the current working mode identifier of the repeater is sent to the repeater from the outside. On the other hand, under the condition that the working mode needs to be changed, after the working mode identification is changed by receiving an external certificate, the digital signal processing software is automatically restarted, and then the digital signal processing software of the corresponding version is selected according to the changed working mode identification, so that the efficiency and the automation degree of controlling and switching the working mode of the repeater are improved.
Alternatively, S9 may be: automatically restarting at regular time; the restarting has various implementation modes, including timed restarting, manual restarting, automatic restarting and the like, the automatic restarting is carried out at regular time without carrying out automatic restarting after the working mode identification is switched, the repeater is allowed to continue to normally run in the original working mode until the timed restarting, and the continuous work of the repeater is favorably kept. In practical application, the restarting mode can be replaced according to the requirement.
Preferably, as shown in fig. 3, when S4 is completed, T1 is performed before S6 is performed, where T1 specifically is: verifying the validity of the external certificate; and when the external certificate is received, verifying the external certificate, and then carrying out subsequent steps of adjusting the working mode identifier and/or automatically restarting. The verification of the external certificate includes at least one of the following three aspects: firstly, whether the external certificate corresponds to the repeater or not, in practical application, the number of the repeaters is large, and the repeater has a possibility of receiving the external certificate for controlling other repeaters by mistake, so that the repeater switches the working mode by mistake, and therefore the repeater needs to confirm whether the received external certificate is a control signal for controlling the repeater; secondly, whether the external voucher correctly carries the information of the working mode identification or not and whether the working mode identification corresponding to the external voucher is locally stored in the repeater or not; thirdly, whether the external certificate is sent by the correct device or terminal, even if the working mode identification information carried by the external certificate is correct and complete and is the control signal of the repeater corresponding to the external certificate, the external certificate still has the possibility of counterfeit. If the received external certificate has no validity, the repeater can be kept in normal operation and/or the external certificate is reported, and the technical personnel in the field can flexibly deal with the external certificate according to the actual application needs, so the external certificate is not shown in the attached drawings. And the external certificate is verified to ensure that the repeater operates correctly in an assumed working mode, so that the possible situations are avoided. Alternatively, the execution order may be changed to: after completing S6, executing T1 before executing S8, namely verifying the validity of the external certificate if it is determined that the operation mode identifier needs to be rewritten, wherein the execution sequence reduces the execution times of T1, and even if the external certificate does not have validity, the current normal operation of the repeater and the enabled digital signal processing software after restarting are not affected, so that the validity of the external certificate without rewriting the operation mode identifier can not be verified.
Optionally, the aforementioned external credential is an authorization code, which is generated by an authorization encryption tool, and the repeater decrypts the authorization code after receiving the authorization code, analyzes whether the device or the terminal that sent the authorization code has the authority to change the working mode identifier, and extracts the information of which working mode identifier needs to be changed, which is carried in the authorization code. The authorization code technology is mature, and the normal operation and the correct switching of the working mode of the repeater can be effectively guaranteed by taking the authorization code as an external certificate. In practical applications, other prior art techniques may be used to generate the external credential as needed, which are well known to those skilled in the art and therefore will not be described in detail.
Preferably, the parameters of each version of digital signal processing software and each corresponding one of the versions of digital signal processing software are stored in different areas of the same memory. In order to maintain stable operation in a single operating mode, each version of digital signal processing software and each parameter corresponding to one version of digital signal processing software need to be stored in relatively independent areas. The digital signal processing software of each version and the parameters of the digital signal processing software of each corresponding version can be stored by using a single memory respectively, the implementation mode ensures the independence of all parties, but the repeater needs to be associated with a plurality of memories simultaneously, the efficiency of information transmission and processing is reduced to a certain degree, and the hardware cost is increased. Preferably, each version of digital signal processing software and each parameter corresponding to one version of digital signal processing software are stored in different areas of the same memory, in the software debugging stage, the different versions of digital signal processing software for realizing different working modes are programmed onto different areas of the same memory, the parameter used by each version of digital signal processing software is determined according to each working mode, a set of independent parameters corresponding to one version of digital signal processing software is formed and stored in the memory, and the areas are kept relatively independent. After the master control software of the repeater or the repeater is started, the digital signal processing software of the corresponding version is loaded from a certain area in the memory according to the working mode identification, the digital signal processing software identifies and reads a set of parameters of the certain area in the memory, the digital signal processing software of other versions and the parameters of reading errors are not easy to be loaded by mistake, the data in the memory are not interfered with each other, the information transmission and processing efficiency of the repeater during starting and running is improved, and the hardware cost is reduced.
Preferably, the working mode switching method of the repeater can also backup digital signal processing software of each version and each set of parameters, and is favorable for quick recovery after the stored data is damaged under abnormal conditions. The backup techniques are well known in the art, and those skilled in the art can combine the above embodiments, so they are not shown in the drawings and will not be described herein.
Based on the same idea as the working mode switching method of the repeater, the embodiment further provides a working mode switching device of the repeater, which can be used for executing the working mode switching method of the repeater.
As shown in fig. 4, the device for switching the operating mode of the repeater includes amain control module 1 and a digitalsignal processing module 2. Themain control module 1 is used for enabling the digital signal processing software of the corresponding version and the parameters of the corresponding digital signal processing software according to the current working mode identification when being started each time, so that the digitalsignal processing module 2 runs by the digital signal processing software and the parameters; one version of digital signal processing software and the corresponding parameters are used for realizing one working mode of the repeater; themain control module 1 is further configured to select a corresponding working mode identifier according to the external credential if the external credential is received after the start, and specifically includes: if the working mode identifier corresponding to the external certificate is the same as the current working mode identifier, the current working mode identifier is not switched; if the working mode identification corresponding to the external certificate is different from the current working mode identification, switching to the former so as to switch the digital signal processing software and the parameters after restarting.
Themain control module 1 is used for controlling and coordinating the operation of the repeater; the digitalsignal processing module 2 is used for operating digital signal processing software and processing the wireless signals received by the repeater. The digitalsignal processing module 2 is controlled by themain control module 1, and themain control module 1 determines which version of digital signal processing software is enabled according to the current working mode identifier, and enables the digitalsignal processing module 2 to load the version of digital signal processing software and read corresponding parameters for operation, so as to realize a certain working mode of the repeater. The working mode identification is stored in the working mode switching device of the repeater and can be rewritten and read. And the working mode identifier is rewritten through an external certificate, so that themain control module 1 controls the digitalsignal processing module 2 to load digital signal processing software of another version after restarting, and the switching of the working mode is realized.
Preferably, the device for switching operating modes of a repeater of this embodiment further includes astorage module 3, configured to store different versions of digital signal processing software and parameters corresponding to the different versions of digital signal processing software, where each version of digital signal processing software and each parameter corresponding to one version of digital signal processing software are stored in different areas of the storage module.
The working mode switching device of the repeater of the embodiment is internally provided with the storage module, and stores the digital signal processing software of each version and the parameters of each version corresponding to the digital signal processing software in each relatively independent area in the storage module, so that the repeater can be ensured to stably operate in a single working mode, other external memories are not needed, and the links of the device are reduced.
In the embodiment of the device for switching operating modes of a repeater, the logical division of each functional module is only used as an example, and in practical applications, the above functions may be distributed by different functional modules according to needs, for example, due to the configuration requirements of hardware or the realization of software, that is, the internal structures of themain control module 1, the digitalsignal processing module 2, or thestorage module 3 may be divided into functional modules different from those described above, but all the functions described above can be completed. Next, the information interaction, execution process, and other contents between the modules of the working mode switching device of the repeater in the above example are based on the same concept as the carrier muting method in this embodiment, and the principle and technical effect thereof are the same as the working mode switching method of the repeater, and specific contents can be referred to the description of the method embodiment and are not repeated here.
Based on the same idea as the working mode switching method of the repeater, the embodiment further provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the working mode switching method of the repeater when executing the computer program.
Based on the same idea as the operating mode switching method of the repeater described above, the present embodiment also provides a computer-readable storage medium on which a computer program is stored, which, when executed by a processor, implements any of the data processing methods mentioned above.
It should be understood that the above-mentioned embodiments of the present invention are only examples for clearly illustrating the technical solutions of the present invention, and are not intended to limit the specific embodiments of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention claims should be included in the protection scope of the present invention claims.