Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
Some embodiments of the invention are described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Fig. 1 is a block diagram of a terminal station 10 according to an embodiment of the present invention. In the embodiment of the present invention, when the terminal radio station 10 is applied to a radio station communication system, the terminal radio station 10 can monitor its own signal transmission status, protect the signal transmission function of the terminal radio station 10, prevent the terminal radio station 10 from having a long hair, and avoid a breakdown of the radio station communication system including the terminal radio station 10. The terminal radio station 10 may be a wireless data transmission analog radio station, or a wireless data transmission digital radio station.
In the present embodiment, the terminal station 10 includes a communication protection device 100, a memory 11, a processor 12, a communication unit 13, a transmission timer 14, and a power-on timer 15. The memory 11, the processor 12, the communication unit 13, the transmission timer 14 and the power-on timer 15 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines.
In this embodiment, the Memory 11 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an electrically Erasable Programmable Read-Only Memory (EEPROM), and the like. The memory 11 may be used to store programs that are executed by the processor 12 upon receiving execution instructions.
In this embodiment, the processor 12 may be an integrated circuit chip having signal processing capabilities. The Processor 12 may be a general-purpose Processor including a Central Processing Unit (CPU), a Network Processor (NP), and the like. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In this embodiment, the communication unit 13 is configured to establish a communication connection between the terminal station 10 and a master station or other terminal stations in a radio station communication system via a network, and to transmit and receive data via the network.
In this embodiment, the communication protection apparatus 100 includes at least one software functional module which may be stored in the memory 11 in the form of software or firmware (firmware) or solidified in an Operating System (OS) of the terminal station 10. The processor 12 may execute executable modules stored in the memory 11, such as software functional modules and computer programs included in the communication protection apparatus 100. In this embodiment, the terminal radio station 10 enables the terminal radio station 10 to stop signal transmission in time when a long-hair phenomenon occurs through the communication protection device 100, so as to provide protection for the signal transmission function of the terminal radio station 10, prevent the long-hair phenomenon from occurring in the terminal radio station 10, and avoid a breakdown condition of a radio station communication system including the terminal radio station 10.
In this embodiment, the transmission timer 14 is configured to reference a transmission time length when the terminal radio station 10 transmits a signal each time, and the power-on timer 15 is configured to reference a power-on time length when the terminal radio station 10 is powered on each time, so that the communication protection device 100 regulates and controls a signal transmission state of the terminal radio station 10 based on the transmission timer 14 and the power-on timer 15.
It will be appreciated that the configuration shown in fig. 1 is merely a schematic illustration of the configuration of terminal station 10, and that terminal station 10 may include more or fewer components than shown in fig. 1, or may have a different configuration than shown in fig. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
Fig. 2 is a flowchart illustrating a communication protection method according to an embodiment of the present invention. In the embodiment of the present invention, the communication protection method is applied to the terminal station 10, and specific procedures and steps of the communication protection method shown in fig. 2 are described in detail below.
Step S210, when the terminal radio station 10 transmits a signal each time, determining whether the signal transmission frequency of the terminal radio station 10 at the current transmission time point in the time period corresponding to the preset communication duration is less than the preset transmission frequency according to each recorded transmission time point.
In this embodiment, the memory 11 of the terminal station 10 stores a ring buffer created for recording the corresponding transmission time point of each signal transmission, wherein each element space in the ring buffer corresponds to the transmission time point of one signal transmission. The terminal radio station 10 records the transmission time point of the signal transmission in the element space corresponding to the ring buffer every time the signal is transmitted.
In this embodiment, each time the terminal radio station 10 transmits a signal, it is determined whether the signal transmission frequency of the terminal radio station 10 at the current transmission time point of the current signal transmission in the time period corresponding to the preset communication time duration is less than the preset transmission frequency according to the recorded transmission time point of each signal transmission in the ring buffer. Wherein, the step of judging whether the signal transmission times of the terminal radio station 10 at the current transmission time point in the time period corresponding to the preset communication duration is less than the preset transmission times according to the recorded transmission time points comprises:
monitoring the number of target element spaces with the transmitting time points recorded in the annular buffer zone in real time;
when the monitored number of the target element spaces is larger than or equal to the preset emission times, acquiring target emission time points from all recorded emission time points, wherein the number of time points spaced between the target emission time points and the current emission time points when the current signals are emitted is the same as the preset emission times;
calculating a time difference value between the current transmitting time point and the target transmitting time point, and comparing the time difference value with the preset communication time length;
if the time difference is not greater than the preset communication time, judging that the signal transmission times of the terminal radio station 10 in the time period corresponding to the preset communication time are not less than the preset transmission times;
if the time difference is greater than the preset communication time, it is determined that the signal transmission times of the terminal radio station 10 in the time period corresponding to the preset communication time are less than the preset transmission times.
In this embodiment, the total number of element spaces in the ring buffer is greater than the preset number of times of transmission, and the target element space is an element space in which transmission time points are recorded. When monitoring that the number of the target element spaces in the ring buffer is greater than or equal to the preset transmission times, the terminal radio station 10 indicates that the terminal radio station 10 has performed a signal transmission process for which the number of times is not less than the preset transmission times, at this time, the terminal radio station 10 acquires a target transmission time point matched with a current transmission time point of this signal transmission from all recorded transmission time points, wherein the number of time points spaced between the target transmission time point and the current transmission time point is the same as the preset transmission times, and the target transmission time point is one of historical time points of the current transmission time point of this signal transmission.
When the number of the monitored target element spaces is greater than or equal to the preset transmission times and the time difference between the target transmission time point and the current transmission time point is obtained, the terminal radio station 10 judges whether the signal transmission times of the terminal radio station 10 in the time period corresponding to the preset communication time period are less than the preset transmission times by comparing the time difference with the preset communication time period.
If the time difference is not greater than the preset communication time, indicating that the terminal radio station 10 performs signal transmission with the frequency not less than the preset transmission frequency within a time period of which the time is not greater than the preset communication time, determining that the signal transmission frequency of the terminal radio station 10 within a time period corresponding to the preset communication time is not less than the preset transmission frequency; if the time difference is greater than the preset communication time, it indicates that the terminal radio station 10 fails to transmit the signal with the frequency not less than the preset transmission frequency within the time period in which the time is not greater than the preset communication time, and it is determined that the signal transmission frequency of the terminal radio station 10 within the time period corresponding to the preset communication time is less than the preset transmission frequency. Wherein, the preset number of transmission times may be 200, 250 or 300; the preset communication time period may be 10 minutes, 15 minutes, or 20 minutes.
In this embodiment, when the number of the monitored target element spaces is greater than or equal to the preset transmission times and the calculation process of the time difference is completed, the terminal station 10 subtracts the earliest historical time point of the recorded time points in the ring buffer from the current transmission time point of the signal transmission to obtain the corresponding time difference, and compares the obtained time difference with the preset communication time length. And if the obtained time difference is greater than or equal to the preset communication time, deleting the historical time point with the earliest recorded time point in the annular buffer area so as to update the element space of the annular buffer area.
Step S220, if the signal transmission frequency is less than the preset transmission frequency, controlling the terminal radio station 10 to transmit a signal at the current transmission time point, and comparing the current corresponding signal transmission time length with the preset transmission time length.
In this embodiment, when it is determined that the signal transmission times of the terminal radio station 10 at the current transmission time point in the time period corresponding to the preset communication time length are less than the preset transmission times, the terminal radio station 10 is controlled to transmit signals at the current transmission time point, and the current corresponding signal transmission time length is compared with the preset transmission time length. The transmission timer 14 is configured according to a preset transmission duration, and the time length of the transmission timer 14 corresponding to the timing time period is the same as the preset transmission duration. The terminal radio station 10 compares the signal transmission duration corresponding to the signal transmission with a preset transmission duration each time the signal is transmitted, so that the terminal radio station 10 determines whether the signal transmission function of the terminal radio station 10 needs to be protected according to the comparison result.
Optionally, the step of comparing the current corresponding signal transmission duration with the preset transmission duration by the terminal radio station 10 includes:
controlling the transmission timer 14 to be correspondingly started when the terminal radio station 10 transmits signals each time, and monitoring the signal transmission state of the terminal radio station 10 when the corresponding timing time of the transmission timer 14 is exhausted;
if the signal transmission state of the terminal radio station 10 when the corresponding timing time of the transmission timer 14 is exhausted is monitored to be still in a continuous transmission state, it is determined that the current signal transmission time length of the terminal radio station 10 is not less than the preset transmission time length, otherwise, it is determined that the current signal transmission time length of the terminal radio station 10 is less than the preset transmission time length. The preset transmission time period may be 30 seconds, 40 seconds, or 25 seconds.
In this embodiment, when the terminal radio station 10 transmits a signal, the terminal radio station 10 may transmit the signal by turning on a power supply of the transmitter, and stop transmitting the signal by turning off the power supply of the transmitter when the signal transmission is completed, at this time, turning on the power supply of the transmitter may indicate that the terminal radio station 10 is in a signal transmission state of a continuous transmission state, and the turn-on duration of the power supply of the transmitter is the signal transmission duration of the terminal radio station 10. For example, if the preset transmission time is 30 seconds, the terminal radio station 10 correspondingly starts the transmission timer 14 each time the terminal radio station transmits a signal, monitors a signal transmission state when the timing time corresponding to the transmission timer 14, which is 30 seconds, is exhausted, and then determines that the signal transmission time of the terminal radio station 10 at this time is not less than the preset transmission time when the signal transmission state is still in a continuous transmission state when the timing time corresponding to the terminal radio station 10, which is 30 seconds, is exhausted, otherwise determines that the current signal transmission time of the terminal radio station 10 is less than the preset transmission time.
Step S230, if the signal transmission frequency is not less than the preset transmission frequency, or the signal transmission duration is not less than the preset transmission duration, controlling the terminal radio station 10 not to transmit a signal within a time period corresponding to a preset protection duration.
In this embodiment, when it is determined that the signal transmission times of the terminal radio station 10 at the current transmission time point in the time period corresponding to the preset communication time length are not less than the preset transmission times, the terminal radio station 10 starts to be controlled to be maintained in a state of not transmitting signals until the time corresponding to the preset protection time length is exhausted. The preset protection time can be 6 hours, 5 hours or 3 hours.
In this embodiment, when it is determined that the signal transmission times of the terminal radio station 10 at the current transmission time point in the time period corresponding to the preset communication time length are less than the preset transmission times, and the target transmission time length of the terminal radio station 10 at the current transmission time point is less than the preset transmission time length, the terminal radio station 10 starts to be controlled to be maintained in a state of not transmitting signals until the time corresponding to the preset protection time length is exhausted.
Fig. 3 is a second schematic flow chart of the communication protection method according to the embodiment of the present invention. In this embodiment of the present invention, before the step S210, the communication protection method further includes a step S209.
Step S209, comparing the power-on duration corresponding to the power-on of the terminal radio station 10 with a preset power-on duration, and controlling the terminal radio station 10 not to transmit a signal in a time period corresponding to the preset power-on duration when the power-on duration is less than the preset power-on duration.
In this embodiment, the power-on timer 15 is configured according to a preset power-on duration, and a time length of a timing time period corresponding to the power-on timer 15 is the same as the preset power-on duration. The terminal station 10 will maintain the state of not transmitting signal at each power-on until the time corresponding to the preset power-on time is exhausted. The preset power-on time period may be 5 seconds, 6 seconds, or 8 seconds.
Optionally, the step of comparing the power-on duration corresponding to the power-on of the terminal radio station 10 with a preset power-on duration, and controlling the terminal radio station 10 not to transmit a signal in a time period corresponding to the preset power-on duration when the power-on duration is less than the preset power-on duration includes:
and controlling the power-on timer 15 to be correspondingly started when the terminal radio station 10 is powered on, and controlling the terminal radio station 10 not to transmit a signal when the timing time corresponding to the power-on timer 15 is not exhausted.
Fig. 4 is a third schematic flow chart of a communication protection method according to an embodiment of the present invention. In this embodiment of the present invention, before the step S209, the communication protection method further includes a step S208.
Step S208, configuring a preset transmission duration, a preset communication duration, a preset transmission frequency, a preset protection duration, and a preset power-on duration corresponding to the terminal radio station 10.
In this embodiment, the preset transmission time, the preset communication time, the preset transmission times, the preset protection time and the preset power-on time corresponding to the terminal radio station 10 may be configured differently by a manufacturer of the terminal radio station 10 and/or an operation and maintenance worker of a radio station communication system to which the terminal radio station 10 is applied according to actual requirements, so that the terminal radio station 10 can stop signal transmission in time when a long-time phenomenon occurs, thereby protecting a signal transmission function of the terminal radio station 10, preventing the terminal radio station 10 from occurring the long-time phenomenon, and avoiding a situation that a radio station communication system including the terminal radio station 10 is paralyzed.
Fig. 5 is a block diagram of the communication protection apparatus 100 shown in fig. 1 according to an embodiment of the present invention. In the embodiment of the present invention, the terminal station 10 records and stores a transmission time point when a signal is transmitted each time, and the communication protection apparatus 100 includes a transmission frequency determining module 110, a transmission duration comparing module 120, and a communication protection control module 130.
The transmission frequency judging module 110 is configured to, when the terminal radio station 10 transmits a signal each time, judge, according to each recorded transmission time point, whether the signal transmission frequency of the terminal radio station 10 at the current transmission time point in a time period corresponding to a preset communication time length is smaller than a preset transmission frequency.
In this embodiment, the manner that the transmission frequency judging module 110 judges whether the signal transmission frequency of the terminal radio station 10 at the current transmission time point in the time period corresponding to the preset communication duration is less than the preset transmission frequency according to each recorded transmission time point includes:
monitoring the number of target element spaces with the transmitting time points recorded in the annular buffer zone in real time;
when the monitored number of the target element spaces is larger than or equal to the preset emission times, acquiring target emission time points from all recorded emission time points, wherein the number of time points spaced between the target emission time points and the current emission time points when the current signals are emitted is the same as the preset emission times;
calculating a time difference value between the current transmitting time point and the target transmitting time point, and comparing the time difference value with the preset communication time length;
if the time difference is not greater than the preset communication time, judging that the signal transmission times of the terminal radio station 10 in the time period corresponding to the preset communication time are not less than the preset transmission times;
if the time difference is greater than the preset communication time, it is determined that the signal transmission times of the terminal radio station 10 in the time period corresponding to the preset communication time are less than the preset transmission times.
The transmission number judging module 110 may execute step S210 shown in fig. 2, and the specific execution process may refer to the above detailed description of step S210.
The transmission duration comparison module 120 is configured to control the terminal radio station 10 to transmit a signal at a current transmission time point and compare a current corresponding signal transmission duration with a preset transmission duration if the signal transmission times are smaller than the preset transmission times.
In this embodiment, the manner of comparing the current corresponding signal transmission duration with the preset transmission duration by the transmission duration comparing module 120 includes:
controlling the transmission timer 14 to be correspondingly started when the terminal radio station 10 transmits signals each time, and monitoring the signal transmission state of the terminal radio station 10 when the corresponding timing time of the transmission timer 14 is exhausted;
if the signal transmission state of the terminal radio station 10 when the corresponding timing time of the transmission timer 14 is exhausted is monitored to be still in a continuous transmission state, it is determined that the current signal transmission time length of the terminal radio station 10 is not less than the preset transmission time length, otherwise, it is determined that the current signal transmission time length of the terminal radio station 10 is less than the preset transmission time length.
The transmission duration comparing module 120 may execute step S220 shown in fig. 2, and the specific execution process may refer to the above detailed description of step S220.
The communication protection control module 130 is configured to control the terminal radio station 10 not to transmit a signal within a time period corresponding to a preset protection duration if the signal transmission frequency is not less than the preset transmission frequency or the signal transmission duration is not less than the preset transmission duration.
In this embodiment, the communication protection control module 130 may execute step S230 shown in fig. 2, and the specific execution process may refer to the above detailed description of step S230.
The communication protection control module 130 is further configured to compare a power-on duration corresponding to the power-on of the terminal radio station 10 with a preset power-on duration, and when the power-on duration is smaller than the preset power-on duration, control the terminal radio station 10 not to transmit a signal in a time period corresponding to the preset power-on duration.
In this embodiment, the manner that the communication protection control module 130 compares the power-on duration corresponding to the power-on of the terminal radio station 10 with the preset power-on duration, and controls the terminal radio station 10 not to transmit the signal within the time period corresponding to the preset power-on duration when the power-on duration is smaller than the preset power-on duration includes:
and controlling the power-on timer 15 to be correspondingly started when the terminal radio station 10 is powered on, and controlling the terminal radio station 10 not to transmit a signal when the timing time corresponding to the power-on timer 15 is not exhausted.
The communication protection control module 130 may execute step S209 shown in fig. 3, and the specific execution process may refer to the above detailed description of step S209.
Fig. 6 is a second block diagram of the communication protection apparatus 100 shown in fig. 1 according to an embodiment of the present invention. In the embodiment of the present invention, the communication protection apparatus 100 may further include a communication parameter configuration module 140.
The communication parameter configuration module 140 is configured to configure a preset transmission duration, a preset communication duration, a preset transmission frequency, a preset protection duration, and a preset power-on duration corresponding to the terminal radio station 10.
In this embodiment, the communication parameter configuration module 140 may execute step S208 shown in fig. 4, and the specific execution process may refer to the above detailed description of step S208.
In summary, in the communication protection method and the apparatus provided in the embodiments of the present invention, the communication protection method can provide protection for the signal transmission function of the terminal radio station, prevent the terminal radio station from having a long hair, and avoid a breakdown of the radio station communication system including the terminal radio station. The terminal radio station records and stores the transmission time point of each signal transmission. Firstly, when a terminal radio station transmits signals each time, the method judges whether the signal transmission times of the terminal radio station at the current transmission time point in a time period corresponding to the preset communication time length are less than the preset transmission times according to the recorded transmission time points. And then, when the signal transmission times are less than the preset transmission times, the method controls the terminal radio station to transmit signals at the current transmission time point, and compares the current corresponding signal transmission time length with the preset transmission time length. And finally, when the signal transmission times are not less than the preset transmission times or the signal transmission duration is not less than the preset transmission duration, controlling the terminal radio station not to transmit signals in a time period corresponding to the preset protection duration, so that the terminal radio station can stop signal transmission in time when the long-time transmission phenomenon occurs, thereby protecting the signal transmission function of the terminal radio station, preventing the long-time transmission phenomenon from occurring in the terminal radio station and avoiding the condition that a wireless radio station communication system comprising the terminal radio station is paralyzed.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.