CN109699065A - Power regulating method, device, intelligent switch and storage medium - Google Patents

Power regulating method, device, intelligent switch and storage medium Download PDF

Info

Publication number
CN109699065A
CN109699065A CN201910098158.XA CN201910098158A CN109699065A CN 109699065 A CN109699065 A CN 109699065A CN 201910098158 A CN201910098158 A CN 201910098158A CN 109699065 A CN109699065 A CN 109699065A
Authority
CN
China
Prior art keywords
signal
inquiry
power
preset
strength
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.)
Pending
Application number
CN201910098158.XA
Other languages
Chinese (zh)
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201910098158.XA priority Critical patent/CN109699065A/en
Publication of CN109699065A publication Critical patent/CN109699065A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/04TPC
    • H04W52/06TPC algorithms
    • H04W52/14Separate analysis of uplink or downlink
    • H04W52/146Uplink power control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/04TPC
    • H04W52/18TPC being performed according to specific parameters
    • H04W52/24TPC being performed according to specific parameters using SIR [Signal to Interference Ratio] or other wireless path parameters
    • H04W52/245TPC being performed according to specific parameters using SIR [Signal to Interference Ratio] or other wireless path parameters taking into account received signal strength

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The disclosure provides a kind of power regulating method, device, intelligent switch and storage medium.Wherein, power regulating method, it include: the received answer signal of detection, obtain the signal strength of the answer signal, and according to the signal strength of the answer signal, determine that the transmission power for sending request signal next time, the disclosure can adjust at any time the transmission power of request signal according to the intensity of answer signal, rather than request signal is emitted with fixed transmission power, realize the cruising ability that battery is improved while keeping communication stability.

Description

Power regulation method, device, intelligent switch and storage medium
Technical Field
The present disclosure relates to the field of smart homes, and in particular, to a power adjustment method and apparatus, a smart switch, and a storage medium.
Background
The intelligent wall switch is a common product for the Internet of things and the intelligent home at present. Along with the continuous development in intelligent house field, people progressively increase to the intelligent demand in living space, for example, the higher lamp of frequency of utilization is as the indispensable product in spaces such as family, official working, and it will be more convenient to control through intelligent switch.
Among the prior art, the compatible tradition 86 box structures of intelligence switch of lamp, the replacement of being convenient for. The WIreless communication scheme mainly comprises a Zigbee protocol (Zigbee), Bluetooth Low Energy (BLE), a WIreless broadband (WIFI), SUB-1G and the like, wherein the Zigbee protocol, the BLE and the SUB-1G need to be matched by a gateway, an intelligent switch is connected to the gateway, the gateway is connected to a home router in a wired or WIFI mode, and the gateway communicates with a cloud server through the home router. The intelligent switch is used as a node to communicate with the gateway by adopting fixed transmitting power, and the domestic radio frequency transmitting power of 0dBm or 10dBm is commonly used.
If 0dBm of transmitting power is adopted, the transmitting power is relatively low, but the distance is long or the wall is blocked, the communication is unstable or can not be communicated. If the radio frequency transmitting power of 10dBm is directly adopted, the power consumption is higher, and the battery endurance performance is directly influenced. Therefore, the fixed transmission power communication adopted in the prior art cannot improve the battery endurance while maintaining the communication stability.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a power adjustment method, apparatus, smart switch, and storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided a power adjustment method applied to an intelligent switch, including:
detecting a received response signal and acquiring the signal intensity of the response signal;
determining the transmitting power of the next transmitted inquiry signal according to the signal strength of the response signal.
In the scheme provided by the embodiment of the disclosure, the transmitting power of the next query signal is determined by detecting the strength of the received response signal, and the transmitting power of the query signal can be adjusted at any time according to the strength of the response signal instead of transmitting the query signal with fixed transmitting power. The battery endurance is improved while the communication stability is maintained.
In a specific implementation, the method further includes:
according to a preset inquiry period, sending an inquiry signal at a preset frequency in the inquiry period;
and entering a sleep state in a non-inquiry period according to a preset inquiry period.
In a specific implementation, the method further includes:
responding to the inquiry moment to come according to a preset inquiry time interval, and sending an inquiry signal;
entering a sleep state at a non-query time within the query time interval.
Further, said determining the transmission power of the next transmitted interrogation signal based on said signal strength of said reply signal comprises:
and acquiring the transmitting power of the next inquiry signal transmitting corresponding to the signal strength according to the corresponding relation between the preset signal strength and the transmitting power of the inquiry signal transmitting.
In the scheme provided by the embodiment of the disclosure, the transmitting power corresponding to the signal strength is obtained according to the corresponding relationship between the preset signal strength and the transmitting power for transmitting the inquiry signal, the transmitting power is used as the transmitting power for transmitting the inquiry signal next time, and the accurate adjustment of the transmitting power is realized through the one-to-one corresponding relationship between the preset signal strength and the transmitting power.
In a specific implementation manner, the determining the transmission power of the next inquiry signal according to the signal strength of the response signal includes:
determining a signal intensity range to which the signal intensity belongs according to a corresponding relation between a preset signal intensity range and transmitting power for sending an inquiry signal;
and determining the transmitting power of the next inquiry signal according to the signal intensity range.
In the scheme provided by the embodiment of the disclosure, the strength range to which the signal strength of the response signal belongs is determined, and the transmitting power for transmitting the inquiry signal next time is determined according to the corresponding relationship between the preset signal strength range and the transmitting power for transmitting the inquiry signal.
In a specific implementation manner, the determining the transmission power of the next inquiry signal according to the signal strength of the response signal includes:
in response to the signal strength being greater than or equal to a first preset strength, determining a power value after the current transmission power is reduced by the first preset power as the transmission power for sending the inquiry signal next time;
and in response to the signal strength being smaller than the second preset strength, determining the power value after the current transmission power is increased by the second preset power value as the transmission power for sending the inquiry signal next time.
In the scheme provided by the embodiment of the disclosure, the signal strength of the response signal is compared with the first preset strength and the second preset strength, whether the signal strength is too large or too small is judged, the signal strength of the response signal can reflect the current communication state, the transmitting power for sending the inquiry signal is selected to be reduced when the communication state is good, the power consumption can be reduced, and the transmitting power for sending the inquiry signal is selected to be increased when the communication state is not good, so that the stability of communication can be ensured.
According to a second aspect of the embodiments of the present disclosure, there is provided a power adjustment apparatus, including:
the detection module is used for detecting the received response signal and acquiring the signal intensity of the response signal;
and the processing module is used for determining the transmitting power of the next inquiry signal according to the signal strength of the response signal.
In a specific implementation manner, the apparatus further includes:
a first sending module configured to:
according to a preset inquiry period, sending an inquiry signal at a preset frequency in the inquiry period;
and entering a sleep state in a non-inquiry period according to a preset inquiry period.
In a specific implementation manner, the apparatus further includes:
a second sending module, configured to:
responding to the inquiry moment to come according to a preset inquiry time interval, and sending an inquiry signal;
entering a sleep state at a non-query time within the query time interval.
Further, the processing module comprises:
a first processing submodule for:
and determining the transmitting power of the next inquiry signal transmitted corresponding to the signal strength according to the corresponding relation between the preset signal strength and the transmitting power of the inquiry signal transmitted.
In a specific implementation manner, the processing module includes:
a second processing submodule for:
determining a signal intensity range to which the signal intensity belongs according to a corresponding relation between a preset signal intensity range and transmitting power for sending an inquiry signal;
and determining the transmitting power of the next inquiry signal according to the signal intensity range.
In a specific implementation manner, the processing module includes:
a third processing sub-module to:
in response to the signal strength being greater than or equal to a first preset strength, determining a power value after the current transmission power is reduced by the first preset power as the transmission power for sending the inquiry signal next time;
and in response to the signal strength being smaller than the second preset strength, determining the power value after the current transmission power is increased by the second preset power value as the transmission power for sending the inquiry signal next time.
According to a third aspect of the embodiments of the present disclosure, there is provided an intelligent switch, including: a processor and a memory;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored by the memory, causing the processor to perform the power adjustment method of any one of the first aspects.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored therein computer-executable instructions that, when executed by a processor, implement the power adjustment method according to any one of the first aspect.
According to the power adjustment method, the device, the intelligent switch and the storage medium, the transmitting power of the next inquiry signal is determined by detecting the strength of the received response signal, and the transmitting power of the inquiry signal can be adjusted at any time according to the strength of the response signal instead of transmitting the inquiry signal with fixed transmitting power. The battery endurance is improved while the communication stability is maintained.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a schematic diagram illustrating an application scenario of an intelligent switching system according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating a first embodiment of a power adjustment method according to an exemplary embodiment.
Fig. 3 is a flowchart illustrating a second embodiment of a power adjustment method according to an exemplary embodiment.
Fig. 4 is a flowchart illustrating a third embodiment of a power adjustment method according to an exemplary embodiment.
Fig. 5 is a schematic diagram illustrating a first embodiment of a power adjustment apparatus according to an exemplary embodiment.
Fig. 6 is a schematic diagram of a second embodiment of a power adjustment apparatus according to an exemplary embodiment.
Fig. 7 is a schematic diagram of a third embodiment of a power adjustment apparatus according to an exemplary embodiment.
Fig. 8 is a schematic diagram illustrating a fourth embodiment of a power adjustment apparatus according to an exemplary embodiment.
Fig. 9 is a block diagram illustrating an intelligent switching entity according to an example embodiment.
Fig. 10 is a block diagram illustrating an intelligent switch 1200 according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a schematic diagram illustrating an application scenario of an intelligent switching system according to an exemplary embodiment. As shown in fig. 1, the intelligent switching system 10 includes: intelligent switch 11, gateway 12, server 13.
The intelligent switch can be controlled by intelligent household appliances such as lamps, sound boxes, televisions, washing machines, air conditioners, refrigerators and the like, and can also be controlled by intelligent terminals such as computers, floor sweeping robots and the like, and the scheme does not require the intelligent switch.
The intelligent switch 11 is connected to the gateway 12, and performs wireless communication with the gateway 12. Optionally, the scheme of wireless communication includes, but is not limited to, Zigbee protocol (Zigbee), Bluetooth Low Energy (BLE), SUB-1G. In an embodiment of the disclosure, the intelligent switch has an interface for communicating with a gateway.
Meanwhile, the gateway 12 is connected to the server 13 for communication by means of wired or WIFI. It should be understood that the gateway may be connected to the server through a router.
In an actual intelligent switch system, there may be one or more intelligent switches 11 and gateways 12, and fig. 1 only uses one as an example.
In a specific implementation manner, the server 13 converts the received control instruction into instruction information and sends the instruction information to the gateway 12, the intelligent switch 11 sends an inquiry signal to the gateway 12, the gateway 12 sends a response signal to the intelligent switch 11 after receiving the inquiry signal sent by the intelligent switch 11, and if the gateway 12 receives the instruction information sent by the server, the response signal includes the instruction information.
The server 13 may receive an intelligent switch control command sent by an external device, for example, an on or off command sent by a remote controller, or, if the control object of the intelligent switch is a lamp, the server may receive an on or on command sent by the light sensing device when the ambient brightness is insufficient.
Alternatively, the server 13 may receive the control logic of the intelligent switch preset by the user, and generate the control command according to the preset control logic and the change of the surrounding environment. For example, if the control object of the intelligent switch is a lamp, the server receives the light sensing data sent by the light sensing device, and determines whether the lamp needs to be turned on, turned off, turned on or dimmed according to the light sensing data and the brightness range preset by the user. For example, if the control object of the intelligent switch is an air conditioner, the server may generate a corresponding control instruction at a corresponding time point according to the on-time and off-time of the air conditioner preset by the user.
In a specific implementation manner, the server 13 may also be a terminal device, including: personal Computers (PCs), notebooks, tablet computers, mobile phones and other intelligent devices with processing capability. Which can be used to implement the functions that the server 13 can implement.
In a specific implementation manner, when a WIreless local-area network (WIFI) is adopted for a WIreless communication scheme of the intelligent switch, the intelligent switch does not need to be connected to a gateway, and can directly communicate with a server through the router through the WIFI, which is not described herein again.
In the above embodiment, it should be understood that the intelligent switch acquires the instruction information sent by the server by receiving the response signal sent by the gateway or sent by the router, and therefore, the communication quality and the communication stability between the intelligent switch and the gateway or between the intelligent switch and the server connected through the router have a great influence on the operation of the intelligent switch for timely and accurately acquiring the instruction information and executing the instruction information. And set up intelligent switch and carry out work with great transmitting power all the time, when guaranteeing communication quality, too big to the consumption of battery. In order to ensure that the intelligent switch can receive a control instruction of the server transmitted by the gateway in a good communication environment and simultaneously does not affect the endurance capacity of the battery, the power adjustment method provided by the embodiment of the disclosure provides at least the following implementation modes:
the first method is as follows: and determining the transmitting power corresponding to the current signal strength according to the one-to-one correspondence relationship between the preset signal strength and the transmitting power, and taking the transmitting power as the transmitting power when the inquiry signal is sent next time.
The second method comprises the following steps: and determining the signal intensity range to which the current signal intensity belongs according to the corresponding relation between the preset signal intensity range and the transmitting power for transmitting the inquiry signal, and determining the transmitting power for transmitting the inquiry signal next time according to the signal intensity range.
The third method comprises the following steps: and determining whether the signal intensity is too large or too small according to the comparison result of the signal intensity of the current response signal and the first preset intensity and the second preset intensity, if so, reducing the transmitting power when the inquiry signal is sent next time, and if not, increasing the transmitting power when the inquiry signal is sent next time.
Furthermore, the different modes can correspond to different power adjustment strategies, the power adjustment strategies can be stored in the intelligent switch, the intelligent switch determines the signal strength of the response signal after receiving the response signal, and then determines the transmitting power for sending the inquiry signal next time according to the power adjustment strategies stored in the intelligent switch; the power adjustment strategy can also be stored on the terminal or the server, the intelligent switch can send the signal strength information to the terminal or the server after determining the signal strength of the response signal, the terminal or the server determines the transmitting power for sending the inquiry signal next time according to the stored power adjustment strategy and sends the determined transmitting power to the intelligent switch, and the intelligent switch sends the inquiry signal next time by using the transmitting power.
In the following, a specific implementation that the intelligent switch provides communication stability by adjusting the transmission power is described by taking a control object of the intelligent switch as an example and through several embodiments.
Fig. 2 is a flowchart illustrating a first embodiment of a power adjustment method according to an exemplary embodiment. As shown in fig. 2, the power adjustment method includes:
s101: and detecting the received response signal to acquire the signal strength of the response signal.
In this step, the intelligent switch may receive the instruction information from the server or the terminal device through the response signal sent by the gateway in the communication environments such as Zigbee protocol (Zigbee), Bluetooth Low Energy (BLE), and SUB-1G, and may receive the instruction information from the server or the terminal device through the response signal sent by the router in the WIFI communication environment.
Wherein, the gateway or the router returns a response signal after receiving the inquiry signal sent by the intelligent switch. The intelligent switch receives the response signal, detects the response signal and acquires the signal intensity of the response signal.
S102: and determining the transmitting power of the next transmitted inquiry signal according to the signal strength of the response signal.
Through the signal strength of the response signal, whether the signal strength is affected by some factors in the communication process or not can be reflected, and the problem of poor current communication quality is caused, for example, in the communication process, the current communication quality is affected due to the fact that objects such as doors, furniture and walls are shielded. If the communication quality is not good, the transmission power needs to be correspondingly improved to ensure the stability of the communication, and the transmission power can be reduced after the communication quality is recovered, so that excessive influence on the endurance of the battery is avoided.
Therefore, it is necessary to determine the condition of the communication quality and the magnitude of the transmission power of the next transmitted inquiry signal according to the signal strength of the response signal.
The power adjustment method provided in this embodiment determines the transmission power of the next inquiry signal by detecting the strength of the received response signal, and can adjust the transmission power of the inquiry signal at any time according to the strength of the response signal, instead of transmitting the inquiry signal at a fixed transmission power. The battery endurance is improved while the communication stability is maintained.
On the basis of the above embodiment, before receiving the response signal, the power adjustment method further includes:
the intelligent switch is preset with an inquiry period and/or a sleep period, transmits an inquiry signal at a preset frequency in the inquiry period according to the preset inquiry period, and enters a sleep state in a non-inquiry period (i.e. the sleep period) according to the preset inquiry period so as to reduce power consumption. The interrogation period and sleep period may be alternating time periods, such as a time period corresponding to an interrogation period followed by a time period corresponding to a non-interrogation period, then a time period corresponding to an interrogation period, and so on.
In one implementation, in an inquiry period, a preset frequency on the intelligent switch is equivalent to preset inquiry time intervals, namely, an inquiry signal is sent once every other inquiry time interval, namely, the inquiry signal is sent when each inquiry moment comes, and after the inquiry period is ended, namely, a non-inquiry period enters a sleep state; and after the non-inquiry period is finished, automatically waking up and entering the inquiry period again.
Or,
the intelligent switch presets an inquiry time interval, transmits an inquiry signal when each inquiry time arrives, and enters a dormant state at a non-inquiry time in the inquiry time interval.
The intelligent switch sends an inquiry signal to the gateway or the router according to a preset inquiry period and/or a preset inquiry time interval so as to acquire the response signal and the instruction information sent by the server carried in the response signal. It should be understood that the preset frequency for transmitting the query signal may be set according to the actual application, and when the preset frequency is sufficiently small, it may be understood that the query signal is transmitted to the gateway or the router in real time to obtain the response signal.
On the basis of the foregoing embodiments, in a specific implementation manner, determining the transmission power of the next inquiry signal to be sent according to the signal strength of the response signal includes: and acquiring the transmitting power of the next inquiry signal transmitting corresponding to the signal strength according to the corresponding relation between the preset signal strength and the transmitting power of the inquiry signal transmitting. Specifically, a corresponding relationship between the signal strength and the transmission power for sending the inquiry signal is preset in the intelligent switch, the corresponding relationship is a one-to-one corresponding relationship between the signal strength and the transmission power, according to the currently obtained signal strength, the corresponding relationship between the preset signal strength and the transmission power for sending the inquiry signal is searched in a traversing or comparing manner, the corresponding transmission power is obtained, and the transmission power is used as the transmission power for sending the inquiry signal next time.
Or, determining the transmission power of the next inquiry signal according to the signal strength of the response signal, including the specific steps shown in fig. 3, where fig. 3 is a flowchart illustrating a second embodiment of the power adjustment method according to an exemplary embodiment. The steps shown in fig. 3 include:
s201: and determining the signal intensity range to which the signal intensity belongs according to the corresponding relation between the preset signal intensity range and the transmitting power for transmitting the inquiry signal.
The preset corresponding relationship between the signal strength range and the transmission power for sending the inquiry signal is a plurality of preset signal strength ranges and the transmission power for sending the inquiry signal corresponding to each strength range.
In this step, a signal strength range to which the signal strength of the current reply signal belongs is determined according to a plurality of preset signal strength ranges.
S202: the transmit power for the next interrogation signal to be transmitted is determined based on the intensity range.
According to the signal intensity range to which the signal intensity of the current response signal determined in step S201 belongs, the transmission power of the transmission inquiry signal corresponding to the signal intensity range is obtained, and the transmission power is used as the transmission power of the next transmission inquiry signal.
According to the power adjustment method provided by the embodiment of the disclosure, the signal intensity range to which the signal intensity of the currently received response signal belongs is determined, and the transmitting power for transmitting the inquiry signal next time is determined according to the corresponding relationship between the preset signal intensity range and the transmitting power for transmitting the inquiry signal, so that the accurate adjustment of the transmitting power is realized.
Or, determining the transmission power of the next inquiry signal according to the signal strength of the response signal, including the specific steps shown in fig. 4, where fig. 4 is a flowchart illustrating a third embodiment of the power adjustment method according to an exemplary embodiment.
In this embodiment, a first preset intensity and a second preset intensity are preset, where the first preset intensity and the second preset intensity are intensity thresholds preset according to specific devices, chips, and application scenarios, and respectively represent an upper threshold and a lower threshold of a signal intensity. The signal intensity of the current response signal is respectively compared with the first preset intensity and the second preset intensity, and the current communication quality and the power consumption condition are determined: if the signal strength is between the first preset strength and the second preset strength, the current communication quality and the power consumption condition both meet the requirements, and if the signal strength is greater than or equal to the first preset strength, the current communication quality meets the requirements, but the power consumption is too large, and the transmitting power for sending the inquiry signal next time needs to be reduced; if the signal strength is less than the second preset strength, the current communication quality is not good, and the transmitting power for sending the inquiry signal next time needs to be increased. As shown in fig. 4, the specific implementation steps are as follows:
s301: and in response to the signal strength being greater than or equal to the first preset strength, determining the power value after the current transmission power is reduced by the first preset power as the transmission power for next transmission of the inquiry signal.
In this step, when the signal strength is greater than or equal to the first preset strength, it represents that the current communication quality meets the requirement, but the power consumption is too large, the current transmission power needs to be reduced by the first preset power, and the reduced power value is used as the transmission power for sending the inquiry signal next time.
In a specific implementation manner, the method for reducing the current transmission power further includes reducing the current transmission power to a first power value, and optionally, the preset power value may be 0 dBm.
In a specific implementation, the first preset power may be 0, for example, the current application modePriority ofAnd when the communication quality and the communication stability are ensured, the size of the signal intensity is not limited.
S302: and in response to the signal strength being less than the second preset strength, determining the power value after the current transmission power is increased by the second preset power value as the transmission power for next transmission of the inquiry signal.
In this step, when the signal strength is smaller than the second preset strength, which represents that the current communication quality is not good and cannot meet the communication requirement, the current transmission power needs to be increased by the second preset power value, and the increased power value is used as the transmission power for sending the inquiry signal next time.
In a specific implementation manner, the method for increasing the current transmission power further includes increasing the current transmission power to a second power value, and optionally, the preset power value may be 10 dBm.
The power adjustment method provided by the embodiment of the disclosure can determine that the current signal strength needs to increase the first preset power or decrease the second preset power according to the comparison result between the signal strength of the response signal and the preset strength, and use the increased or decreased power value as the transmission power for sending the inquiry signal next time. The current communication quality and the power consumption condition are determined by comparing the signal strength with the preset strength, and the transmitting power for sending the inquiry signal next time is further determined to be the power value of the current transmitting power after the current transmitting power is increased or reduced, so that the problems of large power consumption when the signal strength is greater than the first preset strength and unstable communication when the signal strength is less than the second preset strength are solved.
On the basis of the foregoing embodiments, in a specific implementation manner, the first preset power may be set to a sufficiently small value, for example, 1dBm, when the signal strength is greater than or equal to the first preset strength, it represents that the current communication quality meets the requirement, but the power consumption is too large, the current transmission power needs to be reduced by the first preset power, and the reduced power value is used as the transmission power for sending the query signal next time, and if it is determined that the signal strength of the response signal received next time is still greater than or equal to the first preset strength, the first preset power continues to be reduced for the next "current" transmission power until the signal strength is less than the first preset power.
Correspondingly, the second preset power may also be set to be sufficiently small, for example, 1dBm, when the signal strength is less than the second preset strength, which indicates that the current communication quality is not good and does not meet the communication requirement, the current transmission power needs to be increased by the second preset power, and the increased power value is used as the transmission power for sending the inquiry signal next time, and if it is determined that the signal strength of the response signal received next time is still less than the second preset strength, the second preset power is continuously increased for the next "current" transmission power until the signal strength is greater than or equal to the second preset power.
In some embodiments, a preset intensity may also be set, i.e. the first preset intensity and the second preset intensity may also be the same.
According to the power adjusting method provided by the embodiment of the disclosure, when the communication quality does not meet the requirement, the communication quality is improved by gradually increasing the transmitting power, and when the communication quality meets the requirement but the power consumption is too large, the power consumption is reduced by gradually reducing the transmitting power, so that the purpose of improving the communication stability is achieved while the unnecessary power loss is not increased.
Fig. 5 is a schematic diagram of a first embodiment of a power adjustment apparatus according to an exemplary embodiment, and as shown in fig. 5, the power adjustment apparatus 100 includes:
the detection module 101: the device is used for detecting the received response signal and acquiring the signal strength of the response signal;
the processing module 102: for determining the transmission power for the next transmission of an interrogation signal on the basis of the signal strength of the response signal.
The power adjusting device provided by the embodiment of the disclosure comprises a detection module and a processing module, wherein the transmission power of the next inquiry signal is determined by detecting the strength of the response signal sent by the gateway, and the transmission power of the inquiry signal can be adjusted at any time according to the strength of the response signal instead of transmitting the inquiry signal with fixed transmission power. The battery endurance is improved while the communication stability is maintained.
On the basis of the embodiment shown in fig. 5, fig. 6 is a schematic diagram of a second embodiment of a power adjustment apparatus according to an exemplary embodiment, and as shown in fig. 6, the power adjustment apparatus 100 further includes:
the first transmission module 103:
according to a preset inquiry period, sending an inquiry signal at a preset frequency in the inquiry period;
and entering a sleep state in a non-inquiry period according to a preset inquiry period.
On the basis of the embodiment shown in fig. 5, fig. 7 is a schematic diagram of a third embodiment of a power adjustment apparatus according to an exemplary embodiment, and as shown in fig. 7, the power adjustment apparatus 100 further includes:
second sending module 104:
responding to the inquiry moment to come according to a preset inquiry time interval, and sending an inquiry signal;
entering a sleep state at a non-query time within the query time interval.
On the basis of the foregoing embodiments, fig. 8 is a schematic diagram illustrating a fourth embodiment of a power adjustment apparatus according to an exemplary embodiment, and as shown in fig. 8, the processing module 102 includes:
a first processing submodule 1021 for:
and determining the transmitting power of the next inquiry signal transmitted corresponding to the signal strength according to the corresponding relation between the preset signal strength and the transmitting power of the inquiry signal transmitted.
A second processing sub-module 1022 for:
determining a signal intensity range to which the signal intensity belongs according to a corresponding relation between a preset signal intensity range and transmitting power for sending an inquiry signal;
and determining the transmitting power of the next inquiry signal according to the signal intensity range.
A third processing submodule 1023, configured to:
in response to the signal strength being greater than or equal to a first preset strength, determining a power value after the current transmission power is reduced by the first preset power as the transmission power for sending the inquiry signal next time;
and in response to the signal strength being smaller than the second preset strength, determining the power value after the current transmission power is increased by the second preset power value as the transmission power for sending the inquiry signal next time.
With regard to the power adjustment apparatus in the above embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments of the related method, and will not be elaborated here.
Fig. 9 is a block diagram illustrating an intelligent switching entity according to an example embodiment. Referring to fig. 9, an embodiment of the present disclosure provides an intelligent switch 60, including: a processor 601 and a memory 602.
Wherein,
a memory 602 for storing computer-executable instructions;
the processor 601 is configured to execute computer-executable instructions stored in the memory to implement the steps performed by the power adjustment apparatus in the foregoing embodiments. Reference may be made in particular to the description relating to the method embodiments described above.
Alternatively, the memory 602 may be separate or integrated with the processor 601.
When the memory 602 is separately provided, the intelligent switch further comprises a bus 603 for connecting the memory 602 and the processor 601.
In the above-mentioned embodiment of the smart device, it should be understood that the Processor may be a Central Processing Unit (CPU), other general-purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. The general-purpose processor may be a microprocessor or a processor, or any conventional processor, and the aforementioned memory may be a read-only memory (ROM), a Random Access Memory (RAM), a flash memory, a hard disk, or a solid state disk. The steps of a method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
The present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the technical solution of any of the foregoing methods for providing power adjustment.
Referring to fig. 10, fig. 10 is a block diagram illustrating an intelligent switch 1200 according to an exemplary embodiment.
Referring to fig. 10, the smart switch 1200 may include one or more of the following components: processing component 1202, memory 1204, power component 1206, input/output (I/O) interface 1212, sensor component 1214, and communications component 1216.
The processing component 1202 generally controls the overall operation of the intelligent switch 1200, such as operations associated with display, data communication, multimedia operations, and recording operations. The processing components 1202 may include one or more processors 1220 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 1202 can include one or more modules that facilitate interaction between the processing component 1202 and other components. For example, the processing component 1202 can include a multimedia module to facilitate interaction between the multimedia component 1208 and the processing component 1202.
The memory 1204 is configured to store various types of data to support the operation in the intelligent switch 1200. Examples of such data include instructions for any application or method operating on the smart switch 1200, various types of data, messages, pictures, videos, and so forth. The memory 1204 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
A power supply component 1206 provides power to the various components of the smart switch 1200. The power components 1206 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the intelligent switch 1200.
The I/O interface 1212 provides an interface between the processing component 1202 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc.
The sensor assembly 1214 includes one or more sensors for providing various aspects of state assessment for the smart switch 1200. For example, the sensor assembly 1214 may detect the on/off state of the smart switch 1200, the relative positioning of the components, such as the display and keypad of the smart switch 1200, the sensor assembly 1214 may also detect a change in the position of the smart switch 1200 or a component of the smart switch 1200, the presence or absence of user contact with the smart switch 1200, the orientation or acceleration/deceleration of the smart switch 1200, and a change in the temperature of the smart switch 1200. The sensor assembly 1214 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 1214 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1214 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communications component 1216 is configured to facilitate communications between the smart switch 1200 and other devices in a wired or wireless manner. The smart switch 1200 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1216 receives the broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 1216 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the smart switch 1200 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components. For performing a power adjustment method, comprising:
detecting a received response signal and acquiring the signal intensity of the response signal;
determining the transmitting power of the next transmitted inquiry signal according to the signal strength of the response signal.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided that includes instructions, such as the memory 1204 that includes instructions, that are executable by the processor 1220 of the intelligent switch 1200 to perform the methods described above. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (14)

1. A power regulation method is applied to an intelligent switch and comprises the following steps:
detecting a received response signal and acquiring the signal intensity of the response signal;
determining the transmitting power of the next transmitted inquiry signal according to the signal strength of the response signal.
2. The method of claim 1, further comprising:
according to a preset inquiry period, sending an inquiry signal at a preset frequency in the inquiry period;
and entering a sleep state in a non-inquiry period according to a preset inquiry period.
3. The method of claim 1, further comprising:
responding to the inquiry moment to come according to a preset inquiry time interval, and sending an inquiry signal;
entering a sleep state at a non-query time within the query time interval.
4. The method of claim 1, wherein said determining a transmit power for a next transmitted interrogation signal based on said signal strength of said reply signal comprises:
and determining the transmitting power of the next inquiry signal transmitted corresponding to the signal strength according to the corresponding relation between the preset signal strength and the transmitting power of the inquiry signal transmitted.
5. The method of claim 1, wherein said determining a transmit power for a next transmitted interrogation signal based on said signal strength of said reply signal comprises:
determining a signal intensity range to which the signal intensity belongs according to a corresponding relation between a preset signal intensity range and transmitting power for sending an inquiry signal;
and determining the transmitting power of the next inquiry signal according to the signal intensity range.
6. The method of claim 1, wherein said determining a transmit power for a next transmitted interrogation signal based on said signal strength of said reply signal comprises:
in response to the signal strength being greater than or equal to a first preset strength, determining a power value after the current transmission power is reduced by the first preset power as the transmission power for sending the inquiry signal next time;
and in response to the signal strength being smaller than the second preset strength, determining the power value after the current transmission power is increased by the second preset power value as the transmission power for sending the inquiry signal next time.
7. A power regulation device, comprising:
the detection module is used for detecting the received response signal and acquiring the signal intensity of the response signal;
and the processing module is used for determining the transmitting power of the next inquiry signal according to the signal strength of the response signal.
8. The apparatus of claim 7, further comprising:
a first sending module configured to:
according to a preset inquiry period, sending an inquiry signal at a preset frequency in the inquiry period;
and entering a sleep state in a non-inquiry period according to a preset inquiry period.
9. The apparatus of claim 7, further comprising:
a second sending module, configured to:
responding to the inquiry moment to come according to a preset inquiry time interval, and sending an inquiry signal;
entering a sleep state at a non-query time within the query time interval.
10. The apparatus of claim 7, wherein the processing module comprises:
a first processing submodule for:
and determining the transmitting power of the next inquiry signal transmitted corresponding to the signal strength according to the corresponding relation between the preset signal strength and the transmitting power of the inquiry signal transmitted.
11. The apparatus of claim 7, wherein the processing module comprises:
a second processing submodule for:
determining a signal intensity range to which the signal intensity belongs according to a corresponding relation between a preset signal intensity range and transmitting power for sending an inquiry signal;
and determining the transmitting power of the next inquiry signal according to the signal intensity range.
12. The apparatus of claim 7, wherein the processing module comprises:
a third processing sub-module to:
in response to the signal strength being greater than or equal to a first preset strength, determining a power value after the current transmission power is reduced by the first preset power as the transmission power for sending the inquiry signal next time;
and in response to the signal strength being smaller than the second preset strength, determining the power value after the current transmission power is increased by the second preset power value as the transmission power for sending the inquiry signal next time.
13. An intelligent switch, comprising: a processor and a memory;
the memory stores computer-executable instructions;
the processor executing the computer-executable instructions stored by the memory causes the processor to perform the power adjustment method of any of claims 1 to 6.
14. A computer-readable storage medium having computer-executable instructions stored thereon, which when executed by a processor, implement the power adjustment method of any one of claims 1 to 6.
CN201910098158.XA 2019-01-31 2019-01-31 Power regulating method, device, intelligent switch and storage medium Pending CN109699065A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910098158.XA CN109699065A (en) 2019-01-31 2019-01-31 Power regulating method, device, intelligent switch and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910098158.XA CN109699065A (en) 2019-01-31 2019-01-31 Power regulating method, device, intelligent switch and storage medium

Publications (1)

Publication Number Publication Date
CN109699065A true CN109699065A (en) 2019-04-30

Family

ID=66234697

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910098158.XA Pending CN109699065A (en) 2019-01-31 2019-01-31 Power regulating method, device, intelligent switch and storage medium

Country Status (1)

Country Link
CN (1) CN109699065A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110493861A (en) * 2019-08-22 2019-11-22 珠海格力电器股份有限公司 Bluetooth mesh network node power adjusting method, bluetooth equipment node and Bluetooth gateway
WO2022000670A1 (en) * 2020-06-28 2022-01-06 美的集团武汉制冷设备有限公司 Control method and operation control apparatus for air conditioner, and air conditioner
CN114141005A (en) * 2021-12-03 2022-03-04 维沃移动通信有限公司 Power control method, device, control circuit and electronic equipment
CN114326426A (en) * 2021-12-28 2022-04-12 艾拉物联网络(深圳)有限公司 Intelligent home whole-house communication control method
CN114630349A (en) * 2022-03-18 2022-06-14 深圳绿米联创科技有限公司 Control method, device, system, electronic equipment and storage medium
CN116471654A (en) * 2023-05-12 2023-07-21 铜仁职业技术学院 Communication method, device and storage medium of low-power consumption Bluetooth equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130137378A1 (en) * 2011-11-29 2013-05-30 General Electric Company Method for reducing power consumption in node devices of a condition monitoring system
CN103415066A (en) * 2013-08-12 2013-11-27 惠州Tcl移动通信有限公司 Adjustment method and terminal for WIFI transmission power
CN104301980A (en) * 2014-09-26 2015-01-21 深圳市华信天线技术有限公司 Data radio and power self-adaption method thereof
CN104768222A (en) * 2014-01-06 2015-07-08 哈曼国际工业有限公司 Localization of mobile device using radio signal parameters
CN105191449A (en) * 2013-03-21 2015-12-23 松下知识产权经营株式会社 Wireless communication device and transmission-power control device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130137378A1 (en) * 2011-11-29 2013-05-30 General Electric Company Method for reducing power consumption in node devices of a condition monitoring system
CN105191449A (en) * 2013-03-21 2015-12-23 松下知识产权经营株式会社 Wireless communication device and transmission-power control device
CN103415066A (en) * 2013-08-12 2013-11-27 惠州Tcl移动通信有限公司 Adjustment method and terminal for WIFI transmission power
CN104768222A (en) * 2014-01-06 2015-07-08 哈曼国际工业有限公司 Localization of mobile device using radio signal parameters
CN104301980A (en) * 2014-09-26 2015-01-21 深圳市华信天线技术有限公司 Data radio and power self-adaption method thereof

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110493861A (en) * 2019-08-22 2019-11-22 珠海格力电器股份有限公司 Bluetooth mesh network node power adjusting method, bluetooth equipment node and Bluetooth gateway
WO2022000670A1 (en) * 2020-06-28 2022-01-06 美的集团武汉制冷设备有限公司 Control method and operation control apparatus for air conditioner, and air conditioner
CN114141005A (en) * 2021-12-03 2022-03-04 维沃移动通信有限公司 Power control method, device, control circuit and electronic equipment
CN114326426A (en) * 2021-12-28 2022-04-12 艾拉物联网络(深圳)有限公司 Intelligent home whole-house communication control method
CN114630349A (en) * 2022-03-18 2022-06-14 深圳绿米联创科技有限公司 Control method, device, system, electronic equipment and storage medium
CN114630349B (en) * 2022-03-18 2024-04-09 深圳绿米联创科技有限公司 Control method, device, system, electronic equipment and storage medium
CN116471654A (en) * 2023-05-12 2023-07-21 铜仁职业技术学院 Communication method, device and storage medium of low-power consumption Bluetooth equipment
CN116471654B (en) * 2023-05-12 2024-02-06 铜仁职业技术学院 Communication method, device and storage medium of low-power consumption Bluetooth equipment

Similar Documents

Publication Publication Date Title
CN109699065A (en) Power regulating method, device, intelligent switch and storage medium
US11824677B2 (en) Smart home device control method, medium, mobile terminal and apparatus
RU2662362C2 (en) System, method and apparatus for intelligent device grouping
US9756705B2 (en) Systems and methods for lighting and appliance control
US20170345290A1 (en) Remote control docking station and system
EP3173888A1 (en) Method and system for managing household devices
US20170013062A1 (en) Hub apparatus and method for providing service thereof
JP2017532855A (en) Method and apparatus for operating intelligent electrical equipment
CN104932276B (en) The control method and device of home intelligent power supply
CN108234562B (en) Equipment control method, control equipment and controlled equipment
US10101771B2 (en) Remote control docking station and system
CN103813039A (en) Home appliance control method, home server and home appliance control system
CN106895559B (en) Air conditioning control method and device
CN110992673A (en) Remote controller, control method thereof, and computer storage medium
KR101499307B1 (en) Wireless personal area network (pan) coordinator implementing power savings by transitioning between active and sleep states
CN109831756B (en) Operating system based on human intelligent recognition and wireless sensor network
KR20190098320A (en) Method for managing device based on signal strength band and electronic device thereof
US20200221383A1 (en) Method and apparatus for providing service by using bluetooth low energy technology
KR20190079720A (en) Remote control system with intelligent cooling / heating control and illumination function for companion animals
CN111885447A (en) Electronic device, control method thereof, control device thereof, and readable storage medium
US11482095B2 (en) Wireless control method, system, and apparatus for determining the state of a power switch
CN110958658A (en) Communication equipment and method
CN110134047A (en) Method for airing, device and storage medium
CN110636147A (en) Network distribution method and device of double-control switch, switch and intelligent switch system
WO2019120188A1 (en) Automatic communication mode switching method, terminal and smart device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190430