CN112118023B - Method and device for adjusting operating frequency of interphone and interphone - Google Patents

Method and device for adjusting operating frequency of interphone and interphone Download PDF

Info

Publication number
CN112118023B
CN112118023B CN201910538295.0A CN201910538295A CN112118023B CN 112118023 B CN112118023 B CN 112118023B CN 201910538295 A CN201910538295 A CN 201910538295A CN 112118023 B CN112118023 B CN 112118023B
Authority
CN
China
Prior art keywords
interphone
frequency
adjusting
mode
idle
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
CN201910538295.0A
Other languages
Chinese (zh)
Other versions
CN112118023A (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.)
Hytera Communications Corp Ltd
Original Assignee
Hytera Communications 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 Hytera Communications Corp Ltd filed Critical Hytera Communications Corp Ltd
Priority to CN201910538295.0A priority Critical patent/CN112118023B/en
Publication of CN112118023A publication Critical patent/CN112118023A/en
Application granted granted Critical
Publication of CN112118023B publication Critical patent/CN112118023B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/40Circuits
    • H04B1/401Circuits for selecting or indicating operating mode
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • H04W52/0254Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity detecting a user operation or a tactile contact or a motion of the device
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0287Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level changing the clock frequency of a controller in the equipment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0287Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level changing the clock frequency of a controller in the equipment
    • H04W52/029Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level changing the clock frequency of a controller in the equipment reducing the clock frequency of the controller
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a method and a device for adjusting the operating frequency of an interphone and the interphone, which are used for detecting whether the operating mode of the interphone is switched or not, and adjusting the operating frequency of the interphone to the frequency corresponding to the switched operating mode when the operating mode of the interphone is switched, so that the interphone can operate according to the frequency corresponding to the current operating mode in different operating modes, and the problems that the interphone still operates at the maximum operating frequency in the operating mode which can normally operate without the maximum operating frequency, the power consumption of an interphone system is high, and the standby time of the interphone is reduced are solved.

Description

Method and device for adjusting operating frequency of interphone and interphone
Technical Field
The invention relates to the technical field of communication, in particular to a method and a device for adjusting the operating frequency of an interphone and the interphone.
Background
The interphone comprises three operation modes, namely a receiving mode, a transmitting mode and an idle mode. No matter what operation mode the current interphone runs in, the current interphone runs according to the fixed frequency. Typically, the fixed frequency is the maximum frequency required for the intercom to operate.
However, in general, the frequencies required for the intercom to maintain normal operation are different in the different operating modes. For example, in idle mode, only 90Mhz is needed to maintain normal operation; in the receiving mode, 90Mhz is needed to maintain normal operation; in transmit mode, 130Mhz is required to maintain normal operation.
Therefore, the interphone still runs at the maximum frequency under the working mode that the interphone can maintain normal work by needing low frequency, so that the power consumption of the interphone system is large, and the standby time of the interphone is seriously reduced.
Disclosure of Invention
In view of the above, the present invention provides a method and an apparatus for adjusting an operating frequency of an intercom, and an intercom, so as to solve the problems that in the prior art, an intercom system has large power consumption, and the standby time of the intercom is seriously reduced.
The technical scheme is as follows:
the invention provides a method for adjusting the running frequency of an interphone, which comprises the following steps:
detecting whether the running modes of the interphone are switched or not;
and if the switching of the running modes of the interphone is detected, adjusting the running frequency of the interphone to be the frequency corresponding to the switched running mode.
Preferably, the method further comprises the following steps:
when the running mode of the interphone is not switched, detecting the working state of the interphone under the running mode;
if the working state of the interphone in the running mode is detected to be an idle state or a busy state, calculating to obtain an adjusting frequency based on PID operation;
detecting the working state of the interphone in the running mode under the adjusted frequency;
if the working state of the interphone in the running mode is not detected to be an idle state and not detected to be a busy state, controlling the interphone to run according to the adjusting frequency;
otherwise, returning to execute the step of calculating to obtain the adjusting frequency based on PID operation if the working state of the interphone in the running mode is detected to be an idle state or a busy state.
Preferably, if the operating state of the intercom detected in the operating mode is an idle state or a busy state, calculating the adjustment frequency based on PID calculation includes:
acquiring the proportion of idle time in unit time under the current operating frequency and the proportion of idle time in preset unit time;
calculating the difference value of the proportion of the idle time in the unit time under the current operation frequency and the preset proportion of the idle time in the unit time;
and executing PID operation based on the difference value, and calculating to obtain the adjusting frequency.
Preferably, the PID operation is performed using the formula Freq ═ (I ∑ Idle + D ∑ Δ Idle) × PllPra; wherein, the proportional coefficient in the PID operation is 0; i is an integral coefficient, and D is a differential coefficient; Σ Idle is the accumulated Idle time difference, Δ Idle is the single Idle time difference, PllPra is the reference frequency, and Freq is the adjustment frequency.
Preferably, if it is detected that the operation mode of the intercom is switched, the adjusting the operation frequency of the intercom to the frequency corresponding to the switched operation mode includes:
calculating to obtain the adjusting frequency by adopting PID operation with the integral coefficient and the differential coefficient both being 0; wherein, the proportional coefficient in the PID operation is a coefficient corresponding to the switched operation mode;
and adjusting the operating frequency of the interphone to the adjusting frequency so that the interphone operates according to the frequency corresponding to the switched operating mode.
The invention also provides a device for adjusting the running frequency of the interphone, which comprises the following components:
the first detection unit is used for detecting whether the operation modes of the interphone are switched or not;
and the adjusting unit is used for adjusting the operating frequency of the interphone to the frequency corresponding to the switched operating mode if the switching of the operating mode of the interphone is detected.
Preferably, the method further comprises the following steps:
the second detection unit is used for detecting the working state of the interphone in the running mode when the running mode of the interphone is not switched;
the computing unit is used for computing to obtain the adjusting frequency based on PID operation if the working state of the interphone in the running mode is detected to be an idle state or a busy state;
the second detection unit is also used for detecting the working state of the interphone in the running mode under the adjustment frequency;
the control unit is used for controlling the interphone to operate according to the adjusting frequency if the working state of the interphone in the operation mode is detected to be not an idle state and not a busy state; otherwise, calling the computing unit to execute the calculation to obtain the adjusting frequency based on PID operation if the working state of the interphone in the running mode is detected to be an idle state or a busy state.
Preferably, the calculation unit includes:
the acquiring subunit is used for acquiring the proportion of the idle time in the unit time under the current operating frequency and the preset proportion of the idle time in the unit time;
the difference value calculating subunit is used for calculating the difference value between the proportion of the idle time in the unit time under the current operating frequency and the preset proportion of the idle time in the unit time;
and the first frequency calculating subunit is used for executing PID operation based on the difference value and calculating to obtain the adjusting frequency.
Preferably, the adjusting unit includes:
the second frequency calculation subunit is used for calculating to obtain the adjustment frequency by adopting PID operation with an integral coefficient and a differential coefficient both being 0; wherein, the proportional coefficient in the PID operation is a coefficient corresponding to the switched operation mode;
and the adjusting subunit is used for adjusting the operating frequency of the interphone to the adjusting frequency so as to enable the interphone to operate according to the frequency corresponding to the switched operating mode.
The invention also provides an interphone, which comprises the device for adjusting the operating frequency of the interphone.
Compared with the prior art, the technical scheme provided by the invention has the following advantages:
according to the technical scheme, whether the operation modes of the interphone are switched or not is detected in real time, and when the operation modes of the interphone are switched, the operation frequency of the interphone is adjusted to the frequency corresponding to the switched operation modes, so that the interphone can operate according to the frequency corresponding to the current operation mode in different operation modes, the problem that the interphone still operates at the maximum operation frequency in the operation mode that the interphone can normally operate without the maximum operation frequency is solved, the power consumption of an interphone system is high, and the standby time of the interphone is shortened is solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of a method for adjusting an operating frequency of an intercom according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating another method for adjusting the operating frequency of an intercom according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating the effect of adjusting the operating frequency of an intercom according to the method for adjusting the operating frequency of an intercom provided by the embodiment of the invention;
fig. 4 is a schematic structural diagram of a device for adjusting an operating frequency of an intercom according to an embodiment of the present invention.
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. 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.
The embodiment discloses a method for adjusting the operating frequency of an interphone, which is applied to the interphone. Referring to fig. 1, this embodiment includes the steps of:
s101, detecting whether the operation mode of the interphone is switched or not;
if the switching of the running modes of the interphone is detected, S102 is executed;
and in the working process of the interphone, switching among the three operation modes according to the task to be executed.
And detecting whether the running modes of the interphone are switched or not in real time. For example, when the interphone is currently operated in the transmitting mode, whether the operating mode of the interphone is switched from the transmitting mode to the receiving mode or from the transmitting mode to the idle mode is detected; when the interphone runs in a receiving mode currently, detecting whether the running mode of the interphone is switched from the receiving mode to a transmitting mode or whether the running mode of the interphone is switched from the receiving mode to an idle mode; when the interphone runs in the idle mode currently, whether the running mode of the interphone is switched to a receiving mode from the idle mode or whether the running mode of the interphone is switched to a transmitting mode from the idle mode is detected.
And S102, adjusting the running frequency of the interphone to the running frequency corresponding to the switched running mode.
When the interphone runs in different running modes, the required frequencies for maintaining normal operation in the current running mode are different. For example, in idle mode, only 90Mhz is needed to maintain normal operation; in the receiving mode, the normal work can be maintained by 90 Mhz; in transmit mode, 130Mhz is required to maintain normal operation.
In the prior art, in order to ensure that the intercom can normally operate, the operating frequency of the intercom is usually set to be the maximum frequency required by the intercom to operate, i.e. the operating frequency 130Mhz capable of normally operating in the transmission mode. The intercom operates at a fixed frequency of 130Mhz, whether or not it is currently operating in the transmit mode. However, when the interphone works in the receiving mode, the interphone can work normally only by 90Mhz, and when the interphone works in the idle mode, the interphone can work normally only by 90 Mhz. Therefore, when the interphone runs in the receiving mode and the idle mode and runs at a fixed frequency, system resources are wasted, the power consumption of the system is high, and the standby time of the interphone is shortened.
In this embodiment, when it is detected that the operation mode of the intercom is switched, the operation frequency of the intercom is adjusted, so that the intercom operates according to the frequency corresponding to the switched operation mode when the intercom operates in the switched operation mode.
Specifically, when the operating mode of the intercom is switched, the method for adjusting the operating frequency of the intercom includes:
calculating to obtain an adjustment frequency by adopting PID operation of which the integral coefficient and the differential coefficient are both 0 and the proportional coefficient is a coefficient corresponding to the switched operation mode; and adjusting the operating frequency of the interphone to the adjusted frequency so that the interphone operates according to the frequency corresponding to the switched operating mode.
The formula of the PID operation is as follows: freq ═ P × PllPra; where P is the scaling factor, PllPra is the reference frequency, and Freq is the adjustment frequency. In this example, PllPra is 19.2 Mhz.
In the process of adjusting the operating frequency based on the PID, the proportional coefficient P is different because the operating modes after switching are different.
Specifically, if the switched operation mode is the transmission mode, P is 8, that is, if it is detected that the intercom is switched from the reception mode to the transmission mode or from the idle mode to the transmission mode, the proportionality coefficient is determined to be 8, an adjustment frequency of 153.6Mhz is obtained by calculation according to Freq being 8 × 19.2Mhz, and the operation frequency of the intercom is adjusted to 153.6 Mhz;
if the switched operation mode is the receiving mode, P is 5, namely if the interphone is detected to be switched from the transmitting mode to the receiving mode or from the idle mode to the receiving mode, the proportionality coefficient is determined to be 5, the adjustment frequency 96Mhz is obtained by calculating according to Freq, 5, 19.2Mhz, and the operation frequency of the interphone is adjusted to 96 Mhz;
if the switched operation mode is the idle mode, P is 5, namely, if the interphone is detected to be switched from the transmitting mode to the idle mode or from the receiving mode to the idle mode, the proportionality coefficient is determined to be 5, the adjustment frequency 96Mhz is obtained by calculating according to Freq being 5 × 19.2Mhz, and the operation frequency of the interphone is adjusted to 96 Mhz.
The adjustment frequencies in different operation modes calculated by the PID algorithm are the maximum frequencies in the operation mode. For example, 153.6Mhz is the maximum frequency in the transmit mode, indicating that all tasks in the transmit mode can be processed normally at this frequency of 153.6 Mhz; 96Mhz is the maximum frequency in the receive mode, indicating that all tasks in the receive mode can be processed normally at this frequency of 96 Mhz.
In practical applications, the reference frequency PllPra may be selected from other frequencies, and when the reference frequency changes, the proportionality coefficient P changes accordingly. As long as it is ensured that the calculated adjustment frequency can maintain normal operation in the operation mode.
Of course, under the condition that the reference frequency and the scaling factor are determined, the operating frequencies, i.e., the adjustment frequencies, respectively corresponding to the three different operating modes can be calculated and stored in advance. One way of implementation is to maintain the correspondence between the three different operating modes and the operating frequencies in the form of a mapping table.
When the switching of the operation mode of the interphone is detected, the operation frequency corresponding to the switched operation mode is searched from the mapping table, and the operation frequency of the interphone is adjusted to the operation frequency corresponding to the switched operation mode searched from the mapping table. The running frequency of the interphone can be quickly adjusted to the frequency corresponding to the running mode to run, and the problem that the running frequency is adjusted slowly to cause power consumption waste due to the fact that the interphone still runs at the unadjusted frequency in the frequency adjusting process is solved.
According to the technical scheme, whether the operation modes of the interphone are switched is detected in real time, and when the operation modes of the interphone are switched, the operation frequency of the interphone is adjusted to the frequency corresponding to the switched operation modes, so that the interphone can operate according to the frequency corresponding to the current operation mode in different operation modes, the problem that the interphone still operates at the maximum operation frequency in the operation mode that the interphone can normally operate without the maximum operation frequency is solved, power consumption of an interphone system is high, and standby time of the interphone is shortened is solved.
The embodiment provides another method for adjusting the operating frequency of an interphone, which is different from the method for adjusting the operating frequency of an interphone disclosed in the previous embodiment in that the previous embodiment describes a method for adjusting the operating frequency of an interphone when the operating mode of the interphone is detected to be switched; the present embodiment describes a method for adjusting the operating frequency of an intercom when the operating mode of the intercom is not switched, that is, the intercom operates according to a certain operating mode.
Referring to fig. 2, this embodiment includes the following steps:
s201, when the running mode of the interphone is not switched, detecting the working state of the interphone in the running mode;
if the working state of the interphone in the running mode is detected to be an idle state or a busy state, S202 is executed;
otherwise, controlling the interphone to operate according to the current operating frequency;
when the operation modes of the interphone are not switched, namely the interphone operates in a certain operation mode, the working state of the interphone in the operation mode is detected in real time. And dividing the working state according to the proportion of the idle time in unit time under the current operating frequency. One implementation mode is that a proportion range of idle time in unit time is preset, called a preset range, and if the proportion of the idle time in unit time under the current operation frequency is greater than the maximum value of the preset range, the working state is an idle state; and if the proportion of the idle time in the unit time under the current operating frequency is smaller than the minimum value of the preset range, the working state is a busy state.
In this embodiment, the proportion of the idle time in the unit time is used as an index for determining the work-busy level, but in other embodiments, other parameters may also be used as an index for determining the work-busy level, for example, the duration of the idle state in the unit time.
When the interphone runs in a certain running mode, the working state of the interphone in the running mode is detected.
If the proportion of the idle time in the unit time under the current operating frequency is detected to be larger than the maximum value of the preset range, determining that the working state is the idle state; if the proportion of the idle time in the unit time under the current operation frequency is smaller than the minimum value of the preset range, determining that the working state is a busy state;
if the working state of the interphone is detected to be an idle state or a busy state, S202 is executed;
if the proportion of the idle time in the unit time under the current operating frequency is detected to be within the preset range, controlling the interphone to operate according to the current operating frequency; i.e. not adjusting the operating frequency of the intercom.
S202, calculating to obtain an adjusting frequency based on PID operation;
in this embodiment, the operating frequency of the intercom is adjusted based on the PID closed-loop control with the proportionality coefficient of 0.
Specifically, the proportion of the idle time in unit time under the current operating frequency and the preset proportion of the idle time in unit time are obtained, and the difference value between the proportion of the idle time in unit time under the current operating frequency and the preset proportion of the idle time in unit time is calculated; and then, based on the difference, executing PID operation and calculating to obtain the adjusting frequency.
Performing PID operation by adopting a formula Freq ═ (I ∑ Idle + D ∑ Δ Idle) × PllPra; wherein, the proportional coefficient in the PID operation is 0; i is an integral coefficient, and D is a differential coefficient; Σ Idle is the accumulated difference, Δ Idle is the single difference, PllPra is the reference frequency, and Freq is the adjustment frequency. Preferably, in the embodiment, the integral coefficient I is 0.5, the differential coefficient D is 0.8, and PllPra is 19.2; for example, the preset range is 30% -60%, if it is detected that the proportion of the idle time in the unit time under the current operating frequency is 70%, and since 70% is greater than the maximum value 60% of the preset range, the working state is the idle state; the difference between 70% and 60% is calculated to be 10%, i.e., the single difference Δ Idle is 10%, and when the first execution is performed, the cumulative difference is equal to the single difference, and thus, the cumulative difference Σ Idle is 10%. The single difference 10% and the cumulative difference 10% are substituted into the formula Freq ═ (I ∑ Idle + D × Δ Idle) × PllPra, yielding the adjustment frequency Freq ═ (0.5 × 10% +0.8 × 10%) < 19.2 ═ 2.496 Mhz.
S203, detecting the working state of the interphone in the running mode under the adjusted frequency;
if the working state of the interphone in the running mode is not an idle state and is not a busy state, executing S204;
otherwise, returning to execute the step S202;
and after the adjusting frequency is calculated based on PID operation, detecting the working state of the interphone in the operating mode when the interphone operates in the adjusting frequency. The implementation manner of detecting the operating state of the intercom is the same as the implementation manner of detecting the operating state of the intercom in step S201. And will not be described in detail herein.
If the proportion of the idle time in the unit time is detected to be within the preset range when the interphone runs according to the adjusting frequency, executing S204;
if the fact that the proportion of the idle time in the unit time is greater than the maximum value of the preset range when the interphone runs according to the adjusting frequency is detected, namely the working state of the interphone is in the idle state, or the proportion of the idle time in the unit time is smaller than the minimum value of the preset range, namely the working state of the interphone is in a busy state, the fact that the adjusting frequency is not matched with a task currently executed by the interphone is indicated, and the running frequency of the interphone needs to be adjusted again; the step S202 is executed again.
Since it is detected that the ratio of the idle time in the unit time is not within the preset range when the interphone operates according to the adjustment frequency, the step S202 needs to be performed to adjust the current operating frequency of the interphone. Therefore, in order to avoid the dead cycle, a predetermined number of times may be set. Namely, after the operation of adjusting the running frequency of the interphone for the preset times is executed, when the interphone runs according to the adjusted frequency, the proportion of the idle time in unit time is still not in the preset range, the interphone runs directly according to the adjusted frequency obtained by the last calculation, and the step of adjusting the running frequency of the interphone is not executed in a circulating mode.
And S204, controlling the interphone to operate according to the adjusting frequency.
According to the technical scheme, in the embodiment, when the interphone runs in a certain running mode, the working state of the interphone in the running mode is detected, if the working state of the interphone is in an idle state or a busy state, it is indicated that the current running frequency of the interphone is not matched with the current task to be executed, specifically, when the interphone runs according to the current running frequency in the idle state, the interphone is in the idle state for a long time after completing the task to be executed, and the interphone still runs at the current running frequency in the idle state for a long time, so that the power consumption of a system is large; in a busy state, when the interphone runs according to the current running frequency, almost all resources are used for processing tasks, so that the speed of processing the tasks by the system is reduced, and the tasks to be executed cannot be normally processed; and calculating to obtain the adjusting frequency based on PID operation, and determining that the proportion of idle time in unit time is within the preset range when the interphone runs under the adjusting frequency, namely controlling the interphone to run according to the adjusting frequency obtained by calculation when the current running frequency of the interphone is matched with the current executed task. Because under different operation modes, the interphone can operate according to the frequency matched with the current task to be executed, the problem that the standby time of the interphone is seriously influenced due to high system power consumption caused by the fact that the interphone continuously operates under the maximum frequency in order to ensure that the interphone can normally process the task to be executed is solved.
Optionally, in practical applications, when the operating frequency of the intercom is adjusted, only the method for adjusting the operating frequency of the intercom shown in fig. 1 may be performed, that is, only when the operating mode of the intercom is switched, based on the PID operation in which the integral coefficient and the differential coefficient are both 0, the operating frequency of the intercom is quickly adjusted to the maximum frequency in the switched operating mode; the method for adjusting the operating frequency of the interphone shown in fig. 2 may also be executed, that is, when the interphone operates in a certain operating mode, the operating frequency of the interphone is adjusted to operate at a frequency matched with the task to be executed in the operating mode through at least one PID closed-loop control adjustment based on the PID operation with the proportionality coefficient of 0; of course, it is also possible to perform both the method of adjusting the operating frequency of the intercom shown in fig. 1 and the method of adjusting the operating frequency of the intercom shown in fig. 2. Specifically, the method for adjusting the operating frequency shown in fig. 1 is performed when the operating mode of the intercom is switched, and the method for adjusting the operating frequency shown in fig. 2 is performed when the operating mode of the intercom is not switched, that is, the intercom operates in a certain operating mode.
Referring to fig. 3, a diagram of the effect of the operating frequency of the intercom after respectively executing the methods for adjusting the operating frequency of the intercom shown in fig. 1 and fig. 2 under different conditions is shown. Compared with the prior art in which the interphone runs at a fixed frequency, in this embodiment, when the interphone runs in the idle mode, the system power consumption can be reduced by about 10mA at a rated voltage, when the interphone runs in the receiving mode, the system power consumption can be reduced by about 6mA at the rated voltage, and when the interphone runs in the transmitting mode, the system power consumption can be reduced by about 2mA at the rated voltage.
It can be seen that when the operation modes of the interphone are switched, the operation frequency of the interphone can be quickly adjusted to the maximum frequency in the switched operation mode by executing the method for adjusting the operation frequency of the interphone shown in fig. 1; since the intercom initially operates in a certain operation mode according to the maximum frequency in the operation mode adjusted by the adjustment method shown in fig. 1, however, when the intercom operates in the operation mode, the task to be executed can be normally processed without operating at the maximum frequency in the operation mode, and in the process of operating in the certain operation mode, after the intercom is adjusted by the adjustment method shown in fig. 2, the operation frequency is a process of reducing the operation frequency.
Corresponding to the method for adjusting the operating frequency of the interphone, the embodiment further discloses a device for adjusting the operating frequency of the interphone, the device can be integrated on the interphone, the schematic structural diagram of the device is shown in fig. 4, and the device in the embodiment includes:
a first detection unit 401 and an adjustment unit 402;
a first detecting unit 401, configured to detect whether an operating mode of the intercom is switched;
an adjusting unit 402, configured to adjust an operating frequency of the intercom to a frequency corresponding to the switched operating mode if it is detected that the operating mode of the intercom is switched;
optionally, the apparatus further comprises: a second detection unit 403, a calculation unit 404, and a control unit 405;
a second detecting unit 403, configured to detect a working state of the intercom in the operating mode when the operating mode of the intercom is not switched;
a calculating unit 404, configured to calculate an adjustment frequency based on PID calculation if the operating state of the intercom in the operation mode is detected to be an idle state or a busy state;
the second detecting unit 403 is further configured to detect a working state of the intercom in the operating mode under the adjusted frequency;
a control unit 405, configured to control the intercom to operate according to the adjustment frequency if it is detected that the operating state of the intercom in the operation mode is not an idle state and is not a busy state; otherwise, the calculation unit 404 is called to execute the calculation to obtain the adjustment frequency based on the PID calculation if the working state of the intercom detected in the running mode is the idle state or the busy state.
Optionally, the calculation unit 404 includes:
the device comprises an acquisition subunit, a difference value calculation subunit and a first frequency calculation subunit;
the acquiring subunit is used for acquiring the proportion of the idle time in the unit time under the current operating frequency and the preset proportion of the idle time in the unit time;
the difference value calculating subunit is used for calculating the difference value between the proportion of the idle time in the unit time under the current operating frequency and the preset proportion of the idle time in the unit time;
and the first frequency calculating subunit is used for executing PID operation based on the difference value and calculating to obtain the adjusting frequency.
The adjusting unit 402 includes:
a second frequency calculation subunit and an adjustment subunit;
the second frequency calculation subunit is used for calculating to obtain the adjustment frequency by adopting PID operation with an integral coefficient and a differential coefficient both being 0; wherein, the proportional coefficient in the PID operation is a coefficient corresponding to the switched operation mode;
and the adjusting subunit is used for adjusting the operating frequency of the interphone to the adjusting frequency so as to enable the interphone to operate according to the frequency corresponding to the switched operating mode.
According to the technical scheme, whether the operation modes of the interphone are switched is detected in real time, and when the operation modes of the interphone are switched, the operation frequency of the interphone is adjusted to the frequency corresponding to the switched operation modes, so that the interphone can operate according to the frequency corresponding to the current operation mode in different operation modes, the problem that the interphone still operates at the maximum operation frequency in the operation mode that the interphone can normally operate without the maximum operation frequency is solved, power consumption of an interphone system is high, and standby time of the interphone is shortened is solved. And when the interphone runs in a certain running mode, detecting the working state of the interphone in the running mode, if the working state of the interphone is in an idle state or a busy state, and indicating that the current running frequency of the interphone is not matched with the current task to be executed, calculating to obtain an adjusting frequency based on PID (proportion integration differentiation) operation, and determining that the occupied proportion of the idle time in unit time is within the preset range when the interphone runs in the adjusting frequency, namely when the current running frequency of the interphone is matched with the current task to be executed, controlling the interphone to run according to the calculated adjusting frequency. Because under different operation modes, the interphone can operate according to the frequency matched with the current task to be executed, the problem that the standby time of the interphone is seriously influenced due to high system power consumption caused by the fact that the interphone continuously operates under the maximum frequency in order to ensure that the interphone can normally process the task to be executed is further solved.
The invention also discloses an interphone, wherein the interphone comprises the device for adjusting the operating frequency of the interphone disclosed by the previous embodiment.
The interphone disclosed by the embodiment is an interphone supporting G2.0 wide and narrow bands.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the device provided by the embodiment, the description is relatively simple because the device corresponds to the method provided by the embodiment, and the relevant points can be referred to the method part for description.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (8)

1. A method for adjusting the operating frequency of an interphone is characterized by comprising the following steps:
detecting whether the running modes of the interphone are switched or not;
if the switching of the running modes of the interphone is detected, adjusting the running frequency of the interphone to be the frequency corresponding to the switched running mode;
when the running mode of the interphone is not switched, detecting the working state of the interphone under the running mode;
if the working state of the interphone in the running mode is detected to be an idle state or a busy state, calculating to obtain an adjusting frequency based on PID operation; acquiring the proportion of idle time in unit time under the current operating frequency and the proportion of idle time in preset unit time; calculating the difference value of the proportion of the idle time in the unit time under the current operation frequency and the preset proportion of the idle time in the unit time; and executing PID operation based on the difference value, and calculating to obtain the adjusting frequency.
2. The method of claim 1, further comprising:
detecting the working state of the interphone in the running mode under the adjusted frequency;
if the working state of the interphone in the running mode is not detected to be an idle state and not detected to be a busy state, controlling the interphone to run according to the adjusting frequency;
otherwise, returning to execute the step of obtaining the adjusting frequency based on PID calculation if the working state of the interphone in the running mode is detected to be an idle state or a busy state.
3. The method according to claim 2, characterized in that the PID operation is performed using the formula Freq ═ (I ∑ Idle + D ∑ Idle) × PllPra; wherein, the proportional coefficient in the PID operation is 0; i is an integral coefficient, and D is a differential coefficient; Σ Idle is the accumulated Idle time difference, Δ Idle is the single Idle time difference, PllPra is the reference frequency, and Freq is the adjustment frequency.
4. The method according to any one of claims 1 to 3, wherein the adjusting the operating frequency of the interphone to the frequency corresponding to the switched operating mode if the switching of the operating mode of the interphone is detected comprises:
calculating to obtain the adjusting frequency by adopting PID operation with the integral coefficient and the differential coefficient both being 0; wherein, the proportional coefficient in the PID operation is a coefficient corresponding to the switched operation mode;
and adjusting the operating frequency of the interphone to the adjusting frequency so that the interphone operates according to the frequency corresponding to the switched operating mode.
5. The utility model provides a device of adjustment intercom operating frequency which characterized in that includes:
the first detection unit is used for detecting whether the operation modes of the interphone are switched or not;
the adjusting unit is used for adjusting the operating frequency of the interphone to the frequency corresponding to the switched operating mode if the switching of the operating mode of the interphone is detected;
the second detection unit is used for detecting the working state of the interphone in the running mode when the running mode of the interphone is not switched;
the computing unit is used for computing to obtain the adjusting frequency based on PID operation if the working state of the interphone in the running mode is detected to be an idle state or a busy state; wherein the calculation unit includes:
the acquiring subunit is used for acquiring the proportion of the idle time in the unit time under the current operating frequency and the preset proportion of the idle time in the unit time;
the difference value calculating subunit is used for calculating the difference value between the proportion of the idle time in the unit time under the current operating frequency and the preset proportion of the idle time in the unit time;
and the first frequency calculating subunit is used for executing PID operation based on the difference value and calculating to obtain the adjusting frequency.
6. The apparatus of claim 5, further comprising:
the second detection unit is also used for detecting the working state of the interphone in the running mode under the adjustment frequency;
the control unit is used for controlling the interphone to operate according to the adjusting frequency if the working state of the interphone in the operation mode is detected to be not an idle state and not a busy state; otherwise, calling the computing unit to execute the calculation to obtain the adjusting frequency based on PID operation if the working state of the interphone in the running mode is detected to be an idle state or a busy state.
7. The apparatus according to claim 5 or 6, wherein the adjusting unit comprises:
the second frequency calculation subunit is used for calculating to obtain the adjustment frequency by adopting PID operation with an integral coefficient and a differential coefficient both being 0; wherein, the proportional coefficient in the PID operation is a coefficient corresponding to the switched operation mode;
and the adjusting subunit is used for adjusting the operating frequency of the interphone to the adjusting frequency so as to enable the interphone to operate according to the frequency corresponding to the switched operating mode.
8. An intercom station comprising means for adjusting the operating frequency of the intercom station as claimed in any one of claims 5 to 7.
CN201910538295.0A 2019-06-20 2019-06-20 Method and device for adjusting operating frequency of interphone and interphone Active CN112118023B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910538295.0A CN112118023B (en) 2019-06-20 2019-06-20 Method and device for adjusting operating frequency of interphone and interphone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910538295.0A CN112118023B (en) 2019-06-20 2019-06-20 Method and device for adjusting operating frequency of interphone and interphone

Publications (2)

Publication Number Publication Date
CN112118023A CN112118023A (en) 2020-12-22
CN112118023B true CN112118023B (en) 2022-04-15

Family

ID=73796189

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910538295.0A Active CN112118023B (en) 2019-06-20 2019-06-20 Method and device for adjusting operating frequency of interphone and interphone

Country Status (1)

Country Link
CN (1) CN112118023B (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4682719B2 (en) * 2005-06-30 2011-05-11 パナソニック株式会社 Wireless communication system and method for adjusting communication frequency of wireless communication system
CN101442690A (en) * 2007-11-23 2009-05-27 佛山市顺德区顺达电脑厂有限公司 Detection method and apparatus capable of saving power consumption of communication apparatus
CN101448041B (en) * 2008-12-25 2011-04-20 华为终端有限公司 Method and device for controlling terminal power consumption
CN101576768A (en) * 2009-06-15 2009-11-11 北京中星微电子有限公司 Method and device for switching device frequency
CN102314213B (en) * 2010-07-09 2016-03-30 精英电脑股份有限公司 The computer system of dynamic conditioning frequency of operation
CN102917316A (en) * 2012-10-31 2013-02-06 深圳市桑达无线通讯技术有限公司 Group calling/broadcasting method in terminal monitoring cell
US10237712B2 (en) * 2016-06-08 2019-03-19 Honeywell International Inc. In-field wireless access to smart instruments using Bluetooth low energy
CN106506031B (en) * 2016-11-14 2019-03-22 北京小米移动软件有限公司 Adjust the method and device of talk back equipment frequency

Also Published As

Publication number Publication date
CN112118023A (en) 2020-12-22

Similar Documents

Publication Publication Date Title
CN103067975B (en) The load-balancing method of WLAN and device
CN110187753B (en) Application program control method, device, terminal and computer readable storage medium
CN107844187B (en) Power consumption management method and device and electronic equipment
KR101538498B1 (en) Method and appratus for battery gaging in portable terminal
EP2760013A1 (en) Backlight adjustment method, backlight adjustment apparatus, and display screen
CN103685474A (en) File downloading method and file downloading device
CN102779062A (en) Method and device for controlling number of threads accessing system resources
CN105680521A (en) Charging function detection method and apparatus for mobile terminal, and mobile terminal
EP3059653B1 (en) Power conversion device and method for controlling same
CN103944941A (en) Control method, device and system of electronic equipment
CN104656735B (en) Control parameter adjusting method and device of power factor correction circuit and air conditioner
CN105704785A (en) Network searching method, device and mobile terminal
CN111342937A (en) Method and device for dynamically adjusting voltage and/or frequency of coding and decoding processor
CN112118023B (en) Method and device for adjusting operating frequency of interphone and interphone
CN109392041B (en) Network mode switching method and device
CN105116985B (en) A kind of DDR clock frequency control method thereofs and system
CN107749796A (en) The output power distribution method and device of PoE system
CN111245355B (en) Control method of cleaning device, and readable storage medium
JP3497295B2 (en) Power system stabilization method and device
CN110686366A (en) Air conditioner control method and device and computer readable storage medium
CN103716694A (en) Intelligent household electrical appliance, and intelligent household electrical appliance CPU frequency conversion method and device
CN107147870B (en) Method for adaptively adjusting power consumption of intercom device and intercom device
JP2019040434A (en) Power conditioner having solar cell i-v curve measuring function
JP2015054649A (en) Controller
CN211478944U (en) Control device of accessory equipment

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