Movatterモバイル変換


[0]ホーム

URL:


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
CN109699065ACN201910098158.XACN201910098158ACN109699065ACN 109699065 ACN109699065 ACN 109699065ACN 201910098158 ACN201910098158 ACN 201910098158ACN 109699065 ACN109699065 ACN 109699065A
Authority
CN
China
Prior art keywords
signal
inquiry
preset
power
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 LtdfiledCriticalBeijing Xiaomi Mobile Software Co Ltd
Priority to CN201910098158.XApriorityCriticalpatent/CN109699065A/en
Publication of CN109699065ApublicationCriticalpatent/CN109699065A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本公开提供一种功率调整方法、装置、智能开关和存储介质。其中,功率调整方法,包括:检测接收的应答信号,获取所述应答信号的信号强度,并根据所述应答信号的所述信号强度,确定下一次发送询问信号的发射功率,本公开可根据应答信号的强度随时调整询问信号的发射功率,而不是以固定的发射功率发射询问信号,实现了在保持通信稳定性的同时提高电池的续航能力。

The present disclosure provides a power adjustment method, device, intelligent switch and storage medium. Wherein, the power adjustment method includes: detecting the received response signal, obtaining the signal strength of the response signal, and determining the transmission power of the next sending of the inquiry signal according to the signal strength of the response signal. The strength of the signal adjusts the transmit power of the interrogation signal at any time, instead of transmitting the interrogation signal with a fixed transmit power, which improves the battery life while maintaining communication stability.

Description

Translated fromChinese
功率调整方法、装置、智能开关和存储介质Power adjustment 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, a device, an intelligent switch and a storage medium.

背景技术Background technique

智能墙壁开关是目前物联网、智能家居常用产品。随着智能家居领域的不断发展,人们对生活空间的智能需求逐步增多,例如,使用频率较高的灯作为家庭、办公等空间必备的产品,通过智能开关控制将更加便利。Smart wall switches are commonly used products in the Internet of Things and smart homes. With the continuous development of the smart home field, people's demand for intelligent living space is gradually increasing. For example, lamps with high frequency are used as necessary products in homes, offices and other spaces, and it will be more convenient to control them through intelligent switches.

现有技术中,灯的智能开关兼容传统86盒结构,便于替换。其无线通信方案主要有紫蜂协议(Zigbee)、蓝牙低能耗(Bluetooth Low Energy,BLE)、无线宽带(WIreless-Fidelity,WIFI)、SUB-1G等,其中Zigbee、BLE、SUB-1G需要有网关配合,智能开关连接至网关,网关再通过有线或WIFI方式连接至家庭路由器,通过家庭路由器与云端服务器通信。智能开关作为节点与网关通信采用固定发射功率,国内常用0dBm或10dBm的射频发射功率。In the prior art, the intelligent switch of the light is compatible with the traditional 86-box structure, which is easy to replace. Its wireless communication solutions mainly include Zigbee (Zigbee), Bluetooth Low Energy (BLE), Wireless Broadband (WIreless-Fidelity, WIFI), SUB-1G, etc. Among them, Zigbee, BLE, and SUB-1G require gateways In cooperation, the smart switch is connected to the gateway, and the gateway is connected to the home router through wired or WIFI, and communicates with the cloud server through the home router. The intelligent switch as a node and gateway uses a fixed transmit power, and the radio frequency transmit power of 0dBm or 10dBm is commonly used in China.

如果采用0dBm发射功率相对功率较低,但距离较远或有墙阻挡时会导致通信不稳定或无法通信。如果直接采用10dBm的射频发射功率,功耗较高,对电池续航性能有直接影响。由此可见,现有技术中采用的固定发射功率通信无法在保持通信稳定性的同时提高电池续航能力。If the transmit power of 0dBm is used, the relative power is relatively low, but when the distance is long or there is a wall, the communication will be unstable or unable to communicate. If the RF transmit power of 10dBm is directly used, the power consumption is high, which has a direct impact on the battery life performance. It can be seen that the fixed transmit power communication adopted in the prior art cannot improve the battery life while maintaining communication stability.

发明内容SUMMARY OF THE INVENTION

为克服相关技术中存在的问题,本公开提供一种功率调整方法、装置、智能开关和存储介质。To overcome the problems in the related art, the present disclosure provides a power adjustment method, device, smart switch and storage medium.

根据本公开实施例的第一方面,提供一种功率调整方法,应用于智能开关,包括:According to a first aspect of the embodiments of the present disclosure, a power adjustment method is provided, applied to an intelligent switch, including:

检测接收的应答信号,获取所述应答信号的信号强度;Detect the received response signal, and obtain the signal strength of the response signal;

根据所述应答信号的所述信号强度,确定下一次发送询问信号的发射功率。According to the signal strength of the response signal, the transmit power for sending the inquiry signal next time is determined.

本公开实施例提供的方案中,通过检测接收的应答信号的强度,确定下一次发送询问信号的发射功率,能够根据应答信号的强度随时调整询问信号的发射功率,而不是以固定的发射功率发射询问信号。实现了在保持通信稳定性的同时提高电池的续航能力。In the solution provided by the embodiments of the present disclosure, the transmit power of the next time to send the interrogation signal is determined by detecting the strength of the received reply signal, and the transmit power of the interrogation signal can be adjusted at any time according to the strength of the reply signal, instead of transmitting with a fixed transmit power interrogation signal. The battery life can be improved while maintaining communication stability.

在一种具体的实现方式中,所述方法还包括:In a specific implementation, the method further includes:

根据预设置的询问周期,在询问周期内,以预设频率发送询问信号;According to the preset query period, within the query period, send the query signal at the preset frequency;

根据预设置的询问周期,在非询问周期,进入休眠状态。According to the pre-set inquiry period, in the non-interrogation period, it enters the sleep state.

在一种具体的实现方式中,所述方法还包括:In a specific implementation, the method further includes:

根据预设置的询问时间间隔,响应于问询时刻到来,发送询问信号;According to the preset query time interval, in response to the arrival of the query time, send the query signal;

在所述询问时间间隔内的非问询时刻,进入休眠状态。At the non-interrogation time in the interrogation time interval, the sleep state is entered.

进一步地,所述根据所述应答信号的所述信号强度,确定下一次发送询问信号的发射功率,包括:Further, according to the signal strength of the response signal, determining the transmit power for sending the inquiry signal next time includes:

根据预设的信号强度与发送询问信号的发射功率之间的对应关系,获取所述信号强度对应的下一次发送询问信号的发射功率。According to the corresponding relationship between the preset signal strength and the transmit power for sending the interrogation signal, the transmit power of the next time the interrogation signal is sent corresponding to the signal strength is acquired.

本公开实施例提供的方案中,根据预设的信号强度与发送询问信号的发射功率之间的对应关系,获取所述信号强度对应的发射功率,并将该发射功率作为下一次发送询问信号的发射功率,通过预设的信号强度与发射功率之间一对一的对应关系,实现对发射功率的精确调整。In the solution provided by the embodiment of the present disclosure, according to the preset correspondence between the signal strength and the transmission power for sending the inquiry signal, the transmission power corresponding to the signal strength is obtained, and the transmission power is used as the transmission power for the next time the inquiry signal is sent. Transmit power, through the preset one-to-one correspondence between signal strength and transmit power, to achieve precise adjustment of transmit power.

在一种具体的实现方式中,所述根据所述应答信号的所述信号强度,确定下一次发送询问信号的发射功率,包括:In a specific implementation manner, the determining, according to the signal strength of the response signal, the transmit power for sending the inquiry signal next time includes:

根据预设的信号强度范围与发送询问信号的发射功率之间的对应关系,确定所述信号强度所属的信号强度范围;Determine the signal strength range to which the signal strength belongs according to the correspondence between the preset signal strength range and the transmit power for sending the inquiry signal;

根据所述信号强度范围确定下一次发送询问信号的发射功率。According to the signal strength range, the transmit power for sending the inquiry signal next time is determined.

本公开实施例提供的方案中,确定该应答信号的信号强度所属的强度范围,根据预设的信号强度范围和发送询问信号的发射功率之间的对应关系,确定下一次发送询问信号的发射功率,本实施例能够根据应答信号的信号强度确定准确且合适的发射功率。In the solution provided by the embodiment of the present disclosure, the strength range to which the signal strength of the response signal belongs is determined, and the transmission power for sending the query signal next time is determined according to the corresponding relationship between the preset signal strength range and the transmission power for sending the query signal , this embodiment can determine an accurate and appropriate transmit power according to the signal strength of the response signal.

在一种具体的实现方式中,所述根据所述应答信号的所述信号强度,确定下一次发送询问信号的发射功率,包括:In a specific implementation manner, the determining, according to the signal strength of the response signal, the transmit power for sending the inquiry signal next time includes:

响应于所述信号强度大于或者等于第一预设强度,将当前发射功率减小第一预设功率之后的功率值确定为下一次发送询问信号的发射功率;In response to the signal strength being greater than or equal to the first preset strength, determining the power value after the current transmit power is reduced by the first preset power as the transmit power for sending the inquiry signal next time;

响应于所述信号强度小于第二预设强度,将当前发射功率增大第二预设功率值之后的功率值确定为下一次发送询问信号的发射功率。In response to the signal strength being less than the second preset strength, the power value after the current transmit power is increased by the second preset power value is determined as the transmit power for sending the inquiry signal next time.

本公开实施例提供的方案中,将应答信号的信号强度与第一预设强度和第二预设强度进行比较,判断信号强度是否过大或者过小,应答信号的信号强度可体现当前的通信状态,在通信状态好时选择减小发送询问信号的发射功率,可以降低功耗,在通信状态不好时,选择增大发送询问信号的发射功率,可保证通信的稳定性。In the solution provided by the embodiment of the present disclosure, the signal strength of the response signal is compared with the first preset strength and the second preset strength to determine whether the signal strength is too large or too small, and the signal strength of the response signal can reflect the current communication When the communication state is good, you can choose to reduce the transmission power of sending the inquiry signal, which can reduce the power consumption. When the communication state is not good, choose to increase the transmission power of the inquiry signal to ensure the stability of the communication.

根据本公开实施例的第二方面,提供一种功率调整装置,包括:According to a second aspect of the embodiments of the present disclosure, there is provided a power adjustment device, including:

检测模块,用于检测接收的应答信号,获取所述应答信号的信号强度;a detection module, configured to detect the received response signal, and obtain the signal strength of the response signal;

处理模块,用于根据所述应答信号的所述信号强度,确定下一次发送询问信号的发射功率。The processing module is configured to determine, according to the signal strength of the response signal, the transmit power for sending the inquiry signal next time.

在一种具体的实现方式中,所述装置还包括:In a specific implementation, the device further includes:

第一发送模块,用于:The first sending module is used for:

根据预设置的询问周期,在询问周期内,以预设频率发送询问信号;According to the preset query period, within the query period, send the query signal at the preset frequency;

根据预设置的询问周期,在非询问周期,进入休眠状态。According to the pre-set inquiry period, in the non-interrogation period, it enters the sleep state.

在一种具体的实现方式中,所述装置还包括:In a specific implementation, the device further includes:

第二发送模块,用于:The second sending module is used for:

根据预设置的询问时间间隔,响应于问询时刻到来,发送询问信号;According to the preset query time interval, in response to the arrival of the query time, send the query signal;

在所述询问时间间隔内的非问询时刻,进入休眠状态。At the non-interrogation time in the interrogation time interval, the sleep state is entered.

进一步地,所述处理模块包括:Further, the processing module includes:

第一处理子模块,用于:The first processing submodule is used to:

根据预设的信号强度与发送询问信号的发射功率之间的对应关系,确定所述信号强度对应的下一次发送询问信号的发射功率。According to the corresponding relationship between the preset signal strength and the transmit power for sending the interrogation signal, the transmit power of the next interrogation signal corresponding to the signal strength is determined.

在一种具体的实现方式中,所述处理模块包括:In a specific implementation, the processing module includes:

第二处理子模块,用于:The second processing submodule for:

根据预设的信号强度范围与发送询问信号的发射功率之间的对应关系,确定所述信号强度所属的信号强度范围;Determine the signal strength range to which the signal strength belongs according to the correspondence between the preset signal strength range and the transmit power for sending the inquiry signal;

根据所述信号强度范围确定下一次发送询问信号的发射功率。According to the signal strength range, the transmit power for sending the inquiry signal next time is determined.

在一种具体的实现方式中,所述处理模块包括:In a specific implementation, the processing module includes:

第三处理子模块,用于:The third processing submodule for:

响应于所述信号强度大于或者等于第一预设强度,将当前发射功率减小第一预设功率之后的功率值确定为下一次发送询问信号的发射功率;In response to the signal strength being greater than or equal to the first preset strength, determining the power value after the current transmit power is reduced by the first preset power as the transmit power for sending the inquiry signal next time;

响应于所述信号强度小于第二预设强度,将当前发射功率增大第二预设功率值之后的功率值确定为下一次发送询问信号的发射功率。In response to the signal strength being less than the second preset strength, the power value after the current transmit power is increased by the second preset power value is determined as the transmit 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 the computer-executable instructions stored in the memory, so that the processor executes the power adjustment method according to any one of the first aspects.

根据本公开实施例的第四方面,提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如第一方面任一项所述的功率调整方法。According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when a processor executes the computer-executable instructions, any of the methods described in the first aspect are implemented. A method of power regulation as described in one item.

本公开实施例提供的功率调整方法、装置、智能开关和存储介质,通过检测接收的应答信号的强度,确定下一次发送询问信号的发射功率,能够根据应答信号的强度随时调整询问信号的发射功率,而不是以固定的发射功率发射询问信号。实现了在保持通信稳定性的同时提高电池的续航能力。The power adjustment method, device, intelligent switch, and storage medium provided by the embodiments of the present disclosure determine the transmit power of the next time the inquiry signal is sent by detecting the strength of the received response signal, and can adjust the transmit power of the inquiry signal at any time according to the strength of the answer signal. , instead of transmitting the interrogation signal at a fixed transmit power. The battery life can be improved while maintaining communication stability.

附图说明Description of 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.

图1是根据一示例性实施例示出的智能开关系统的应用场景示意图。FIG. 1 is a schematic diagram of an application scenario of an intelligent switch system according to an exemplary embodiment.

图2是根据一示例性实施例示出的功率调整方法实施例一的流程示意图。FIG. 2 is a schematic flowchart of Embodiment 1 of a power adjustment method according to an exemplary embodiment.

图3是根据一示例性实施例示出的功率调整方法实施例二的流程示意图。FIG. 3 is a schematic flowchart of Embodiment 2 of a power adjustment method according to an exemplary embodiment.

图4是根据一示例性实施例示出的功率调整方法实施例三的流程示意图。FIG. 4 is a schematic flowchart of Embodiment 3 of a power adjustment method according to an exemplary embodiment.

图5是根据一示例性实施例示出的功率调整装置实施例一的示意图。FIG. 5 is a schematic diagram of Embodiment 1 of a power adjustment apparatus according to an exemplary embodiment.

图6是根据一示例性实施例示出的功率调整装置实施例二的示意图。FIG. 6 is a schematic diagram of Embodiment 2 of a power adjustment apparatus according to an exemplary embodiment.

图7是根据一示例性实施例示出的功率调整装置实施例三的示意图。FIG. 7 is a schematic diagram of Embodiment 3 of a power adjustment apparatus according to an exemplary embodiment.

图8是根据一示例性实施例示出的功率调整装置实施例四的示意图。FIG. 8 is a schematic diagram of Embodiment 4 of a power adjustment apparatus according to an exemplary embodiment.

图9是根据一示例性实施例示出的智能开关实体的框图。Fig. 9 is a block diagram of a smart switch entity according to an exemplary embodiment.

图10是根据一示例性实施例示出的一种智能开关1200的框图。FIG. 10 is a block diagram of a smart switch 1200 according to an exemplary embodiment.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. Where the following description refers to the drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with some aspects of the invention as recited in the appended claims.

图1是根据一示例性实施例示出的智能开关系统的应用场景示意图。如图1所示,该智能开关系统10,包括:智能开关11,网关12,服务器13。FIG. 1 is a schematic diagram of an application scenario of an intelligent switch system according to an exemplary embodiment. As shown in FIG. 1 , the intelligent switch system 10 includes: an intelligent switch 11 , a gateway 12 , and a server 13 .

智能开关控制的对象可以是灯、音箱、电视、洗衣机、空调、电冰箱等智能家电,也可以是电脑、扫地机器人等智能终端,本方案对此不做要求。The objects controlled by the smart switch can be smart home appliances such as lights, speakers, TVs, washing machines, air conditioners, refrigerators, etc., or smart terminals such as computers and sweeping robots, which are not required in this scheme.

智能开关11与网关12连接,与网关12进行无线通信。可选的,无线通信的方案包括但不限于紫蜂协议(Zigbee)、蓝牙低能耗(Bluetooth Low Energy,BLE)、SUB-1G。在本公开实施例中,该智能开关具有与网关进行通信的接口。The smart switch 11 is connected to the gateway 12 and performs wireless communication with the gateway 12 . Optionally, the wireless communication solution includes but is not limited to Zigbee protocol (Zigbee), Bluetooth Low Energy (Bluetooth Low Energy, BLE), SUB-1G. In the embodiment of the present disclosure, the smart switch has an interface for communicating with the gateway.

同时,网关12通过有线或WIFI的方式与服务器13连接进行通信。应理解,网关可通过路由器连接至服务器。At the same time, the gateway 12 communicates with the server 13 in a wired or WIFI manner. It should be understood that the gateway may be connected to the server through a router.

在实际智能开关系统中,智能开关11以及网关12均可以有一个或多个,图1仅以一个作为示例。In an actual smart switch system, there may be one or more smart switches 11 and gateways 12 , and FIG. 1 only takes one as an example.

在一种具体的实现方式中,服务器13将接收到的控制指令转化为指令信息发送到网关12,智能开关11向网关12发送询问信号,网关12接收到智能开关11发送的询问信号后,发送应答信号给智能开关11,若网关12接收到服务器发送的指令信息,则应答信号中包含有该指令信息。In a specific implementation manner, the server 13 converts the received control instruction into instruction information and sends it to the gateway 12 , the smart switch 11 sends an inquiry signal to the gateway 12 , and the gateway 12 receives the inquiry signal sent by the smart switch 11 and sends an inquiry signal. The response signal is sent to the smart switch 11. If the gateway 12 receives the instruction information sent by the server, the response signal contains the instruction information.

其中,服务器13可接收外部设备发送的智能开关控制指令,例如,接收遥控器发送的打开或者关闭的指令,或者,若智能开关的控制对象是灯,服务器可接收光感装置在周围环境亮度不足时发送的打开或者调亮的指令。Among them, the server 13 can receive the intelligent switch control instruction sent by the external device, for example, receive the opening or closing instruction sent by the remote control, or, if the control object of the intelligent switch is a light, the server can receive the light sensing device when the brightness of the surrounding environment is insufficient. The command to turn on or brighten when sent.

或者,服务器13可接收用户预设置的智能开关的控制逻辑,根据预设置的控制逻辑,以及周围环境的变化,生成控制指令。例如,若智能开关的控制对象是灯,服务器接收到光感装置发送的感光数据,根据感光数据以及用户预设置的亮度范围,判断是否需要对灯打开、关闭、调亮或者调暗。示例性的,若智能开关的控制对象是空调,服务器可根据用户预设置的空调打开时间以及关闭时间,在对应时间点生成相应的控制指令。Alternatively, the server 13 may receive the control logic of the smart switch preset by the user, and generate the control instruction according to the preset control logic and the change of the surrounding environment. For example, if the control object of the smart switch is a light, the server receives the light-sensing data sent by the light-sensing device, and determines whether the light needs to be turned on, off, brighter or darker according to the light-sensing data and the brightness range preset by the user. Exemplarily, if the control object of the smart 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.

在一种具体的实现方式中,服务器13也可以是一种终端设备,包括:个人计算机PC、笔记本、平板电脑、手机等具有处理能力的智能设备。该终端设备可用于实现上述服务器13所能实现的功能。In a specific implementation manner, the server 13 may also be a terminal device, including: a personal computer PC, a notebook, a tablet computer, a mobile phone, and other smart devices with processing capabilities. The terminal device can be used to implement the functions that the above server 13 can implement.

在一种具体的实现方式中,针对智能开关的无线通信方案采用无线局域网(WIreless-Fidelity,WIFI)的情况,智能开关不需要与网关相连,可以通过WIFI直接通过路由器与服务器进行通信,针对这种情况这里不再赘述。In a specific implementation, for the case where the wireless communication scheme of the smart switch adopts a wireless local area network (WIreless-Fidelity, WIFI), the smart switch does not need to be connected to the gateway, and can communicate with the server directly through the router through WIFI. This situation will not be repeated here.

在上述实施例中,应理解,智能开关通过接收网关发送的或者路由器发送的应答信号获取服务器发送的指令信息,因此,智能开关与网关之间或者智能开关与通过路由器连接的服务器之间的通信质量和通信稳定性对智能开关及时准确的获取指令信息并执行指令信息对应的操作有较大影响。而设置智能开关始终以较大的发射功率进行工作,在保证通信质量的同时,对电池的消耗过大。本公开实施例提供的功率调整方法,为了保证智能开关能够在良好的通信环境中接收到网关传递的服务器的控制指令,同时,不影响电池的续航能力,提供至少以下几种实现方式:In the above embodiment, it should be understood that the intelligent switch obtains the instruction information sent by the server by receiving the response signal sent by the gateway or sent by the router. Therefore, the communication between the intelligent switch and the gateway or between the intelligent switch and the server connected through the router The quality and communication stability have a great influence on the intelligent switch to obtain the command information timely and accurately and execute the corresponding operation of the command information. However, the smart switch is always set to work with a larger transmit power, which consumes too much battery while ensuring the communication quality. In the power adjustment method provided by the embodiments of the present disclosure, in order to ensure that the intelligent switch can receive the control instructions of the server transmitted by the gateway in a good communication environment, and at the same time, the battery life is not affected, at least the following implementations are provided:

方式一:根据预设的信号强度与发射功率间的一一对应的关系,确定当前信号强度对应的发射功率,并将该发射功率作为下一次发送询问信号时的发射功率。Manner 1: Determine the transmit power corresponding to the current signal strength according to the preset one-to-one correspondence between the signal strength and the transmit power, and use the transmit power as the transmit power when sending the inquiry signal next time.

方式二:根据预设的信号强度范围与发送询问信号的发射功率之间的对应关系,确定当前信号强度所属的信号强度范围,并根据该信号强度范围确定下一次发送询问信号的发射功率。Manner 2: Determine the signal strength range to which the current signal strength belongs according to the corresponding relationship between the preset signal strength range and the transmit power for sending the inquiry signal, and determine the transmit power for the next time the inquiry signal is sent according to the signal strength range.

方式三:根据当前应答信号的信号强度与第一预设强度和第二预设强度的比较结果,确定信号强度是否过大或者过小,若信号强度过大,则减小下一次发送询问信号时的发射功率,若信号强度过小,则增大下一次发送询问信号时的发射功率。Mode 3: Determine whether the signal strength is too large or too small according to the comparison result of the signal strength of the current response signal with the first preset strength and the second preset strength, and if the signal strength is too large, reduce the next sending of the inquiry signal If the signal strength is too low, increase the transmit power when sending the inquiry signal next time.

进一步地,上述不同方式可以对应不同的功率调整策略,功率调整策略可以存储在智能开关上,智能开关在接收到应答信号之后确定出应答信号的信号强度,再根据自身存储的功率调整策略,确定下一次发送询问信号的发射功率;功率调整策略也可以存储在终端或服务器上,智能开关确定出应答信号的信号强度之后,可以将该信号强度信息发送给终端或服务器,由终端或服务器根据存储的功率调整策略,确定下一次发送询问信号的发射功率,并将确定的发射功率发送给智能开关,智能开关在下一次发送询问信号时采用该发射功率进行发送。Further, the above-mentioned different ways can correspond to different power adjustment strategies, and the power adjustment strategy can be stored on the intelligent switch. After receiving the response signal, the intelligent switch determines the signal strength of the response signal, and then determines the power adjustment strategy according to its own stored power adjustment strategy. The transmit power of the next time the inquiry signal is sent; the power adjustment strategy can also be stored on the terminal or server. After the smart switch determines the signal strength of the response signal, the signal strength information can be sent to the terminal or server, and the terminal or server will store the information according to the signal strength. It determines the transmit power of the next time the inquiry signal is sent, and sends the determined transmit power to the smart switch, and the smart switch uses the transmit power to send the inquiry signal next time.

下面以智能开关的控制对象为灯为例,通过几个实施例,介绍智能开关通过调整发射功率提供通信稳定性的具体实现。The following takes the control object of the smart switch as a light as an example, and introduces the specific implementation of the smart switch providing communication stability by adjusting the transmit power through several embodiments.

图2是根据一示例性实施例示出的功率调整方法实施例一的流程示意图。如图2所示,该功率调整方法包括:FIG. 2 is a schematic flowchart of Embodiment 1 of a power adjustment method according to an exemplary embodiment. As shown in Figure 2, the power adjustment method includes:

S101:检测接收的应答信号,获取应答信号的信号强度。S101: Detect the received response signal, and obtain the signal strength of the response signal.

在本步骤中,智能开关在紫蜂协议(Zigbee)、蓝牙低能耗(Bluetooth LowEnergy,BLE)、SUB-1G等通信环境中,可通过网关发送的应答信号接收来自于服务器或者终端设备的指令信息,在WIFI通信环境中,可通过路由器发送的应答信号接收来自于服务器或者终端设备的指令信息。In this step, in a communication environment such as Zigbee (Zigbee), Bluetooth Low Energy (BLE), SUB-1G, etc., the smart switch can receive the instruction information from the server or terminal device through the response signal sent by the gateway , In the WIFI communication environment, the instruction information from the server or the terminal device can be received through the response signal sent by the router.

其中,网关或者路由器在收到智能开关发送的询问信号后,会返回应答信号。智能开关接收应答信号,并检测该应答信号,获取该应答信号的信号强度。The gateway or router will return a response signal after receiving the inquiry signal sent by the smart switch. The intelligent switch receives the response signal, detects the response signal, and obtains the signal strength of the response signal.

S102:根据应答信号的信号强度,确定下一次发送询问信号的发射功率。S102: Determine the transmit power for sending the inquiry signal next time according to the signal strength of the response signal.

通过该应答信号的信号强度,能够体现在通信过程中是否受到某些因素的影响,造成当前通信质量不佳的问题,例如,在通信过程中,遇到门、家具、墙等物体的遮挡,会使当前的通信质量受到影响。如果通信质量不佳,则需要相应的提高发射功率,以保证通信的稳定性,而通信质量恢复后可降低发射功率,不对电池的续航造成过多的影响。Through the signal strength of the response signal, it can be reflected whether the communication process is affected by certain factors, resulting in the problem of poor communication quality. The current communication quality will be affected. If the communication quality is not good, it is necessary to increase the transmit power accordingly to ensure the stability of the communication. After the communication quality is restored, the transmit power can be reduced without causing too much impact on the battery life.

因此,需要根据应答信号的信号强度,确定通信质量的情况,并确定下一次发送的询问信号的发射功率的大小。Therefore, it is necessary to determine the communication quality according to the signal strength of the response signal, and to determine the size of the transmission power of the inquiry signal to be sent next time.

本实施例提供的功率调整方法,通过检测接收的应答信号的强度,确定下一次发送询问信号的发射功率,能够根据应答信号的强度随时调整询问信号的发射功率,而不是以固定的发射功率发射询问信号。实现了在保持通信稳定性的同时提高电池的续航能力。The power adjustment method provided in this embodiment determines the transmission power of the next time the inquiry signal is sent 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 with a fixed transmission power interrogation signal. The battery life can be improved while maintaining communication stability.

在上述实施例的基础上,在接收应答信号之前,该功率调整方法还包括:On the basis of the above embodiment, before receiving the response signal, the power adjustment method further includes:

智能开关预设置了询问周期和/或休眠周期,根据预设置的询问周期,在询问周期内,以预设频率发送询问信号,而根据预设置的询问周期,在非询问周期(即休眠周期内),进入休眠状态,以降低功耗。询问周期和休眠周期可以为交替的时间段,例如询问周期对应的时间段之后是非询问周期对应的时间段,然后又是询问周期对应的时间段,以此类推。The intelligent switch presets an inquiry period and/or a sleep period. According to the preset inquiry period, during the inquiry period, the inquiry signal is sent at a preset frequency, and according to the pre-set inquiry period, in the non-inquiry period (that is, the sleep period). ), enter the sleep state to reduce power consumption. The interrogation period and the sleep period may be alternate time periods, for example, the time period corresponding to the interrogation period is followed by the time period corresponding to the non-interrogation period, and then the time period corresponding to the interrogation period, and so on.

在一种实现方式中,在询问周期内,智能开关上的预设频率相当于预设置了询问时间间隔,即每隔一个询问时间间隔发送一次询问信号,即在每个问询时刻到来时发送询问信号,而在询问周期结束后,即非询问周期进入休眠状态;在非询问周期结束后,自动唤醒,再次进入询问周期。In an implementation manner, during the inquiry period, the preset frequency on the smart switch is equivalent to the preset inquiry time interval, that is, an inquiry signal is sent every other inquiry time interval, that is, when each inquiry moment arrives Inquiry signal, and after the inquiry period ends, the non-inquiry period enters the dormant state; after the non-inquiry period ends, it automatically wakes up and enters the inquiry period again.

或者,or,

智能开关预设置了询问时间间隔,则在每个问询时刻到来时发送询问信号,而在询问时间间隔内的非问询时刻,进入休眠状态。The intelligent switch pre-sets an inquiry time interval, and then sends an inquiry signal when each inquiry time arrives, and enters a sleep state at non-inquiry time within the inquiry time interval.

智能开关按照预设置的询问周期和/或预设置的询问时间间隔向网关或者路由器发送询问信号,以获取应答信号以及应答信号中携带的服务器发送的指令信息。应理解,发射询问信号的预设频率可以根据实际应用情况进行设置,当预设频率足够小时,可以理解为实时向网关或者路由器发送询问信号,获取应答信号。The intelligent switch sends an inquiry signal to the gateway or router according to a preset inquiry period and/or a preset inquiry time interval to obtain the reply signal and the instruction information sent by the server carried in the reply signal. It should be understood that the preset frequency for transmitting the query signal can be set according to the actual application. When the preset frequency is sufficiently small, it can be understood that the query signal is sent to the gateway or router in real time to obtain the response signal.

在上述实施例的基础上,在一种具体的实现方式中,根据应答信号的信号强度,确定下一次发送询问信号的发射功率,包括:根据预设的信号强度与发送询问信号的发射功率之间的对应关系,获取该信号强度对应的下一次发送询问信号的发射功率。具体的,智能开关中预设置有信号强度与发送询问信号的发射功率之间的对应关系,该对应关系为信号强度与发射功率一一对应的关系,根据当前获取的信号强度,在预设置的信号强度与发送询问信号的发射功率之间的对应关系中以遍历或者对比的方式进行查找,获取到对应的发射功率,并将该发射功率作为下一次发送询问信号的发射功率。On the basis of the above-mentioned embodiment, in a specific implementation manner, determining the transmit power for sending the inquiry signal next time according to the signal strength of the response signal includes: according to the difference between the preset signal strength and the transmit power for sending the inquiry signal The corresponding relationship between them is obtained, and the transmit power of the next time the inquiry signal is sent corresponding to the signal strength is obtained. Specifically, the intelligent switch is preset with a corresponding relationship between the signal strength and the transmission power for sending the inquiry signal, and the corresponding relationship is a one-to-one correspondence between the signal strength and the transmission power. According to the currently obtained signal strength, in the preset The corresponding relationship between the signal strength and the transmit power for sending the inquiry signal is searched by traversal or comparison, to obtain the corresponding transmit power, and use the transmit power as the transmit power for the next time the inquiry signal is sent.

或者,根据应答信号的信号强度,确定下一次发送询问信号的发射功率,包括如图3所示的具体步骤,图3是根据一示例性实施例示出的功率调整方法实施例二的流程示意图。如图3所示步骤包括:Alternatively, according to the signal strength of the response signal, determining the transmit power of the next time the inquiry signal is sent includes the specific steps shown in FIG. 3 , which is a schematic flowchart of Embodiment 2 of the power adjustment method according to an exemplary embodiment. The steps shown in Figure 3 include:

S201:根据预设的信号强度范围与发送询问信号的发射功率之间的对应关系,确定信号强度所属的信号强度范围。S201: Determine the signal strength range to which the signal strength belongs according to the corresponding relationship between the preset signal strength range and the transmit power for sending the inquiry signal.

预设的信号强度范围与发送询问信号的发射功率之间的对应关系,为预设置的多个信号强度范围以及每个强度范围对应的发送询问信号的发射功率。The correspondence between the preset signal strength range and the transmit power for sending the interrogation signal is a plurality of preset signal strength ranges and the transmit power for sending the interrogation signal corresponding to each strength range.

在本步骤中,根据预设置的多个信号强度范围,确定当前应答信号的信号强度所属的信号强度范围。In this step, the signal strength range to which the signal strength of the current response signal belongs is determined according to a plurality of preset signal strength ranges.

S202:根据强度范围确定下一次发送询问信号的发射功率。S202: Determine the transmit power for sending the inquiry signal next time according to the strength range.

根据步骤S201中确定的当前应答信号的信号强度所属的信号强度范围,获取到与该信号强度范围对应的发送询问信号的发射功率,并将该发射功率作为下一次发送询问信号的发射功率。According to the signal strength range to which the signal strength of the current response signal determined in step S201 belongs, the transmit power of the query signal corresponding to the signal strength range is obtained, and the transmit power is used as the transmit power of the next time the query signal is sent.

本公开实施例提供的功率调整方法,通过确定当前接收到的应答信号的信号强度所属的信号强度范围,根据预设的信号强度范围与发送询问信号的发射功率之间的对应关系,确定下一次发送询问信号的发射功率,实现了对发射功率的精准调整。In the power adjustment method provided by the embodiment of the present disclosure, by determining the signal strength range to which the signal strength of the currently received response signal belongs, and according to the corresponding relationship between the preset signal strength range and the transmit power for sending the inquiry signal, determine the next time The transmission power of sending the inquiry signal realizes the precise adjustment of the transmission power.

或者,根据应答信号的信号强度,确定下一次发送询问信号的发射功率,包括如图4所示的具体步骤,图4是根据一示例性实施例示出的功率调整方法实施例三的流程示意图。Or, according to the signal strength of the response signal, determining the transmit power of the next sending of the inquiry signal includes the specific steps shown in FIG. 4 , which is a schematic flowchart of Embodiment 3 of the power adjustment method according to an exemplary embodiment.

在本实施例中,预设置了第一预设强度和第二预设强度,该第一预设强度和第二预设强度为根据具体的设备、芯片以及应用场景预先设置的强度阈值,分别代表了信号强度的上限阈值和下限阈值。通过将当前应答信号的信号强度分别与第一预设强度和第二预设强度进行对比,确定当前通信质量以及功耗情况:若信号强度介于第一预设强度与第二预设强度之间,则当前通信质量以及功耗情况均符合要求,若信号强度大于或者等于第一预设强度,则当前通信质量满足要求,但功耗过大,需要降低下一次发送询问信号的发射功率;若信号强度小于第二预设强度,则当前通信质量不佳,需要增大下一次发送询问信号的发射功率。如图4所示,具体实现步骤如下:In this embodiment, a first preset intensity and a second preset intensity are preset, and the first preset intensity and the second preset intensity are intensity thresholds preset according to specific devices, chips, and application scenarios, respectively. Represents the upper and lower thresholds of signal strength. By comparing the signal strength of the current response signal with the first preset strength and the second preset strength, the current communication quality and power consumption are determined: if the signal strength is between the first preset strength and the second preset strength time, the current communication quality and power consumption meet the requirements, 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 transmit power of the next inquiry signal needs to be reduced; If the signal strength is less than the second preset strength, the current communication quality is not good, and it is necessary to increase the transmit power for sending the inquiry signal next time. As shown in Figure 4, the specific implementation steps are as follows:

S301:响应于信号强度大于或者等于第一预设强度,将当前发射功率减小第一预设功率之后的功率值确定为下一次发送询问信号的发射功率。S301: In response to the signal strength being greater than or equal to the first preset strength, determine the power value after the current transmit power is reduced by the first preset power as the transmit power for sending the inquiry signal next time.

在本步骤中,当信号强度大于或者等于第一预设强度时,代表当前的通信质量满足要求,但功耗过大,则需要将当前发射功率减小第一预设功率,并将减小后的功率值作为下一次发送询问信号的发射功率。In this step, when the signal strength is greater than or equal to the first preset strength, it means that the current communication quality meets the requirements, but the power consumption is too large, so the current transmit power needs to be reduced by the first preset power, and the The latter power value is used as the transmit power of the next time the inquiry signal is sent.

在一种具体的实现方式中,减小当前发射功率的方法还包括,将当前发射功率减小至第一功率值,可选的,该预设功率值可以为0dBm。In a specific implementation manner, the method for reducing the current transmit power further includes reducing the current transmit power to a first power value. Optionally, the preset power value may be 0 dBm.

在一种具体的实现方式中,第一预设功率可以为0,例如,当前应用模式优先保证通信质量及通信稳定性时,对信号强度的大小不做限制。In a specific implementation manner, the first preset power may be 0. For example, when the current application modeprioritizes ensuring communication quality and communication stability, the magnitude of the signal strength is not limited.

S302:响应于信号强度小于第二预设强度,将当前发射功率增大第二预设功率值之后的功率值确定为下一次发送询问信号的发射功率。S302: In response to the signal strength being less than the second preset strength, determine the power value after the current transmit power is increased by the second preset power value as the transmit power for sending the inquiry signal next time.

在本步骤中,当信号强度小于第二预设强度时,代表当前的通信质量不佳,不能满足通信要求,则需要将当前发射功率增大第二预设功率值,并将增大后的功率值作为下一次发送询问信号的发射功率。In this step, when the signal strength is less than the second preset strength, it means that the current communication quality is not good and cannot meet the communication requirements, then the current transmit power needs to be increased by the second preset power value, and the increased The power value is used as the transmit power for the next time the inquiry signal is sent.

在一种具体的实现方式中,增大当前发射功率的方法还包括,将当前发射功率增大至第二功率值,可选的,该预设功率值可以为10dBm。In a specific implementation manner, the method for increasing the current transmit power further includes increasing the current transmit power to a second power value. Optionally, the preset power value may be 10 dBm.

本公开实施例提供的功率调整方法,能够实现根据应答信号的信号强度与预设强度的比较结果,确定当前的信号强度需要增大第一预设功率或者减小第二预设功率,并将增大或者减小后的功率值作为下一次发送询问信号的发射功率。通过信号强度与预设强度的对比,确定当前的通信质量以及功耗情况,并进一步确定下一次发送询问信号的发射功率为当前发射功率增大或者减小后的功率值,实现了在信号强度大于第一预设强度时功耗大,以及信号强度小于第二预设强度时,通信不稳定的问题。The power adjustment method provided by the embodiment of the present disclosure can realize 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 adjust the The increased or decreased power value is used as the transmit power of the next time the inquiry signal is sent. By comparing the signal strength with the preset strength, the current communication quality and power consumption are determined, and the transmit power of the next inquiry signal is further determined to be the power value after the current transmit power is increased or decreased. When the strength is greater than the first preset strength, the power consumption is large, and when the signal strength is less than the second preset strength, the communication is unstable.

在上述实施例的基础上,在一种具体的实现方式中,可将第一预设功率设定为足够小的值,例如1dBm,则当信号强度大于或者等于第一预设强度时,代表当前的通信质量满足要求,但功耗过大,则需要将当前发射功率减小第一预设功率,并将减小后的功率值作为下一次发送询问信号的发射功率,若确定下一次接收的应答信号的信号强度仍大于或者等于第一预设强度,则继续对下一次的“当前”发射功率减小第一预设功率,直至信号强度小于第一预设功率。On the basis of the above embodiment, in a specific implementation manner, the first preset power may be set to a sufficiently small value, for example, 1 dBm, and when the signal strength is greater than or equal to the first preset strength, it represents The current communication quality meets the requirements, 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 the next time the inquiry signal is sent. The signal strength of the response signal is still greater than or equal to the first preset strength, continue to reduce the first preset power for the next "current" transmit power until the signal strength is less than the first preset power.

相应的,也可将第二预设功率设定为足够小,例如1dBm,则当信号强度小于第二预设强度时,代表当前的通信质量不佳,不满足通信要求,则需要将当前发射功率增大第二预设功率,并将增大后的功率值作为下一次发送询问信号的发射功率,若确定下一次接收的应答信号的信号强度仍小于第二预设强度,则继续对下一次“当前”发射功率增大第二预设功率,直至信号强度大于或者等于第二预设功率。Correspondingly, the second preset power can also be set to be small enough, for example, 1dBm. When the signal strength is less than the second preset strength, it means that the current communication quality is not good and the communication requirements are not met, and the current transmission The power is increased by the second preset power, and the increased power value is used as the transmit power of the next time to send the inquiry signal. If it is determined that the signal strength of the next received response signal is still less than the second preset strength, continue to A "current" transmit power is increased by the second preset power until the signal strength is greater than or equal to the second preset power.

在一些实施例中,也可以设置一个预设强度,即第一预设强度和第二预设强度也可以相同。In some embodiments, a preset intensity can also be set, that is, the first preset intensity and the second preset intensity can also be the same.

本公开实施例提供的功率调整方法,在通信质量不满足要求时,通过逐步增加发射功率,以提高通信质量,在通信质量满足要求但功耗过大时,通过逐步减小发射功率,以降低功耗,进而实现了在不增加多余功率损耗的同时,达到提高通信稳定性的目的。In the power adjustment method provided by the embodiments of the present disclosure, when the communication quality does not meet the requirements, the transmission power is gradually increased to improve the communication quality, and when the communication quality meets the requirements but the power consumption is too large, the transmission power is gradually reduced to reduce the power consumption, thereby achieving the purpose of improving communication stability without increasing excess power consumption.

图5是根据一示例性实施例示出的功率调整装置实施例一的示意图,如图5所示,该功率调整装置100包括:FIG. 5 is a schematic diagram of Embodiment 1 of a power adjustment apparatus according to an exemplary embodiment. As shown in FIG. 5 , the power adjustment apparatus 100 includes:

检测模块101:用于检测接收的应答信号,获取所述应答信号的信号强度;Detection module 101: used to detect the received response signal, and obtain the signal strength of the response signal;

处理模块102:用于根据所述应答信号的所述信号强度,确定下一次发送询问信号的发射功率。The processing module 102 is configured to determine, according to the signal strength of the response signal, the transmit power for sending the inquiry signal next time.

本公开实施例提供的功率调整装置,包括检测模块以及处理模块,通过检测网关发送的应答信号的强度,确定下一次发送询问信号的发射功率,能够根据应答信号的强度随时调整询问信号的发射功率,而不是以固定的发射功率发射询问信号。实现了在保持通信稳定性的同时提高电池的续航能力。The power adjustment device provided by the embodiment of the present disclosure includes a detection module and a processing module, determines the transmission power of the next time the inquiry signal is sent by detecting the strength of the response signal sent by the gateway, 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 interrogation signal at a fixed transmit power. The battery life can be improved while maintaining communication stability.

在图5所示实施例的基础上,图6是根据一示例性实施例示出的功率调整装置实施例二的示意图,如图6所示,该功率调整装置100,还包括:Based on the embodiment shown in FIG. 5 , FIG. 6 is a schematic diagram of Embodiment 2 of a power adjustment apparatus according to an exemplary embodiment. As shown in FIG. 6 , the power adjustment apparatus 100 further includes:

第一发送模块103:The first sending module 103:

根据预设置的询问周期,在询问周期内,以预设频率发送询问信号;According to the preset query period, within the query period, send the query signal at the preset frequency;

根据预设置的询问周期,在非询问周期,进入休眠状态。According to the pre-set inquiry period, in the non-interrogation period, it enters the sleep state.

在图5所示实施例的基础上,图7是根据一示例性实施例示出的功率调整装置实施例三的示意图,如图7所示,该功率调整装置100,还包括:Based on the embodiment shown in FIG. 5 , FIG. 7 is a schematic diagram of Embodiment 3 of a power adjustment apparatus according to an exemplary embodiment. As shown in FIG. 7 , the power adjustment apparatus 100 further includes:

第二发送模块104:The second sending module 104:

根据预设置的询问时间间隔,响应于问询时刻到来,发送询问信号;According to the preset query time interval, in response to the arrival of the query time, send the query signal;

在所述询问时间间隔内的非问询时刻,进入休眠状态。At the non-interrogation time in the interrogation time interval, the sleep state is entered.

在上述实施例的基础上,图8是根据一示例性实施例示出的功率调整装置实施例四的示意图,如图8所示,该处理模块102,包括:On the basis of the foregoing embodiment, FIG. 8 is a schematic diagram of Embodiment 4 of a power adjustment apparatus according to an exemplary embodiment. As shown in FIG. 8 , the processing module 102 includes:

第一处理子模块1021,用于:The first processing sub-module 1021 is used for:

根据预设的信号强度与发送询问信号的发射功率之间的对应关系,确定所述信号强度对应的下一次发送询问信号的发射功率。According to the corresponding relationship between the preset signal strength and the transmit power for sending the interrogation signal, the transmit power of the next interrogation signal corresponding to the signal strength is determined.

第二处理子模块1022,用于:The second processing submodule 1022 is used for:

根据预设的信号强度范围与发送询问信号的发射功率之间的对应关系,确定所述信号强度所属的信号强度范围;Determine the signal strength range to which the signal strength belongs according to the correspondence between the preset signal strength range and the transmit power for sending the inquiry signal;

根据所述信号强度范围确定下一次发送询问信号的发射功率。According to the signal strength range, the transmit power for sending the inquiry signal next time is determined.

第三处理子模块1023,用于:The third processing submodule 1023 is used for:

响应于所述信号强度大于或者等于第一预设强度,将当前发射功率减小第一预设功率之后的功率值确定为下一次发送询问信号的发射功率;In response to the signal strength being greater than or equal to the first preset strength, determining the power value after the current transmit power is reduced by the first preset power as the transmit power for sending the inquiry signal next time;

响应于所述信号强度小于第二预设强度,将当前发射功率增大第二预设功率值之后的功率值确定为下一次发送询问信号的发射功率。In response to the signal strength being less than the second preset strength, the power value after the current transmit power is increased by the second preset power value is determined as the transmit power for sending the inquiry signal next time.

关于上述各个实施例中的功率调整装置,其中各个模块执行操作的具体方式已经在有关方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the power adjustment apparatuses in the foregoing embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments of the related methods, and will not be described in detail here.

图9是根据一示例性实施例示出的智能开关实体的框图。参考图9,本公开实施例提供的智能开关60,包括:处理器601和存储器602。Fig. 9 is a block diagram of a smart switch entity according to an exemplary embodiment. Referring to FIG. 9 , the smart switch 60 provided by the embodiment of the present disclosure includes: a processor 601 and a memory 602 .

其中,in,

存储器602,用于存储计算机执行指令;a memory 602 for storing computer-executed instructions;

处理器601,用于执行存储器存储的计算机执行指令,以实现上述实施例中功率调整装置所执行的各个步骤。具体可以参见前述方法实施例中的相关描述。The processor 601 is configured to execute the computer-executed instructions stored in the memory, so as to implement each step performed by the power adjustment apparatus in the above-mentioned embodiment. For details, refer to the relevant descriptions in the foregoing method embodiments.

可选地,存储器602既可以是独立的,也可以跟处理器601集成在一起。Optionally, the memory 602 may be independent or integrated with the processor 601 .

当存储器602独立设置时,该智能开关还包括总线603,用于连接所述存储器602和处理器601。When the memory 602 is set independently, the smart switch further includes a bus 603 for connecting the memory 602 and the processor 601 .

在上述智能设备的实施例中,应理解,处理器可以是中央处理单元(英文:CentralProcessing Unit,简称:CPU),还可以是其他通用处理器、数字信号处理器(英文:DigitalSignal Processor,简称:DSP)、专用集成电路(英文:Application Specific IntegratedCircuit,简称:ASIC)等。通用处理器可以是微处理器或者处理器也可以是任何常规的处理器等,而前述的存储器可以是只读存储器(英文:read-only memory,缩写:ROM)、随机存取存储器(英文:random access memory,简称:RAM)、快闪存储器、硬盘或者固态硬盘。结合本发明实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。In the above-mentioned embodiment of the smart device, it should be understood that the processor may be a central processing unit (English: Central Processing Unit, referred to as: CPU), and can also be other general-purpose processors, digital signal processors (English: Digital Signal Processor, referred to as: DSP), application specific integrated circuit (English: Application Specific Integrated Circuit, referred to as: ASIC) and so on. The general-purpose processor may be a microprocessor or a processor or any conventional processor, etc., and the aforementioned memory may be a read-only memory (English: read-only memory, abbreviation: ROM), random access memory (English: random access memory, referred to as RAM), flash memory, hard disk or solid-state disk. The steps of the method disclosed in conjunction with the embodiments of the present invention may be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.

本申请还提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时,实现前述任一方案提供功率调整方法的技术方案。The present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements any of the foregoing technical solutions for providing a power adjustment method.

请参考图10,图10是根据一示例性实施例示出的一种智能开关1200的框图。Please refer to FIG. 10 , which is a block diagram of a smart switch 1200 according to an exemplary embodiment.

参照图10,智能开关1200可以包括以下一个或多个组件:处理组件1202,存储器1204,电源组件1206,输入/输出(I/O)的接口1212,传感器组件1214,以及通信组件1216。10, the smart switch 1200 may include one or more of the following components: a processing component 1202, a memory 1204, a power supply component 1206, an input/output (I/O) interface 1212, a sensor component 1214, and a communication component 1216.

处理组件1202通常控制智能开关1200的整体操作,诸如与显示,数据通信,多媒体操作和记录操作相关联的操作。处理组件1202可以包括一个或多个处理器1220来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件1202可以包括一个或多个模块,便于处理组件1202和其他组件之间的交互。例如,处理组件1202可以包括多媒体模块,以方便多媒体组件1208和处理组件1202之间的交互。The processing component 1202 generally controls the overall operation of the smart switch 1200, such as operations associated with display, data communication, multimedia operations, and recording operations. The processing component 1202 can include one or more processors 1220 to execute instructions to perform all or some of the steps of the above-described methods. Additionally, processing component 1202 may include one or more modules that facilitate interaction between processing component 1202 and other components. For example, processing component 1202 may include a multimedia module to facilitate interaction between multimedia component 1208 and processing component 1202.

存储器1204被配置为存储各种类型的数据以支持在智能开关1200的操作。这些数据的示例包括用于在智能开关1200上操作的任何应用程序或方法的指令,各类数据,消息,图片,视频等。存储器1204可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。Memory 1204 is configured to store various types of data to support operation at smart 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 the like. Memory 1204 may be implemented by any type of volatile or nonvolatile storage device or combination thereof, 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 Disk.

电源组件1206为智能开关1200的各种组件提供电力。电源组件1206可以包括电源管理系统,一个或多个电源,及其他与为智能开关1200生成、管理和分配电力相关联的组件。Power component 1206 provides power to various components of smart switch 1200 . Power components 1206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to smart switch 1200 .

I/O接口1212为处理组件1202和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。The I/O interface 1212 provides an interface between the processing component 1202 and a peripheral interface module, which may be a keyboard, a click wheel, a button, or the like.

传感器组件1214包括一个或多个传感器,用于为智能开关1200提供各个方面的状态评估。例如,传感器组件1214可以检测到智能开关1200的打开/关闭状态,组件的相对定位,例如组件为智能开关1200的显示器和小键盘,传感器组件1214还可以检测智能开关1200或智能开关1200一个组件的位置改变,用户与智能开关1200接触的存在或不存在,智能开关1200方位或加速/减速和智能开关1200的温度变化。传感器组件1214可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件1214还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,传感器组件1214还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 1214 includes one or more sensors for providing various aspects of status assessment for smart switch 1200 . For example, the sensor component 1214 can detect the on/off state of the smart switch 1200, the relative positioning of components, such as the display and keypad of the component is the smart switch 1200, the sensor component 1214 can also detect the smart switch 1200 or a component of the smart switch 1200. Changes in position, presence or absence of user contact with the smart switch 1200 , orientation or acceleration/deceleration of the smart switch 1200 and changes in the temperature of the smart switch 1200 . Sensor assembly 1214 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. 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 component 1214 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

通信组件1216被配置为便于智能开关1200和其他设备之间有线或无线方式的通信。智能开关1200可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件1216经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,通信组件1216还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。Communication component 1216 is configured to facilitate wired or wireless communication between smart switch 1200 and other devices. The smart switch 1200 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 1216 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1216 also includes a near field communication (NFC) module to facilitate short-range communication. 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.

在示例性实施例中,智能开关1200可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现。用于执行功率调整方法,包括: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 Programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation. Used to perform power regulation methods including:

检测接收的应答信号,获取所述应答信号的信号强度;Detect the received response signal, and obtain the signal strength of the response signal;

根据所述应答信号的所述信号强度,确定下一次发送询问信号的发射功率。According to the signal strength of the response signal, the transmit power for sending the inquiry signal next time is determined.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器1204,上述指令可由智能开关1200的处理器1220执行以完成上述方法。例如,非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as a memory 1204 including instructions, executable by the processor 1220 of the smart switch 1200 to perform the method described above. For example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由权利要求书指出。Other embodiments of the invention will readily occur to those skilled in the art upon 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 that follow the general principles of the invention and include common knowledge or conventional techniques in the art not disclosed by this disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the invention being indicated by the claims.

应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求书来限制。It should be understood that the present invention is not limited to the precise structures described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims (14)

CN201910098158.XA2019-01-312019-01-31Power regulating method, device, intelligent switch and storage mediumPendingCN109699065A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201910098158.XACN109699065A (en)2019-01-312019-01-31Power regulating method, device, intelligent switch and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201910098158.XACN109699065A (en)2019-01-312019-01-31Power regulating method, device, intelligent switch and storage medium

Publications (1)

Publication NumberPublication Date
CN109699065Atrue CN109699065A (en)2019-04-30

Family

ID=66234697

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201910098158.XAPendingCN109699065A (en)2019-01-312019-01-31Power regulating method, device, intelligent switch and storage medium

Country Status (1)

CountryLink
CN (1)CN109699065A (en)

Cited By (7)

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

Citations (5)

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

Patent Citations (5)

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

Cited By (9)

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

Similar Documents

PublicationPublication DateTitle
CN109699065A (en)Power regulating method, device, intelligent switch and storage medium
US11003277B2 (en)Display method and apparatus
CN113055873B (en) Inter-device identification method, device, electronic device and storage medium
US11223497B2 (en)Method and apparatus for providing notification by interworking plurality of electronic devices
US9892634B2 (en)Remote control docking station and system
KR102208433B1 (en)Method and apparatus for selecting at least one communication method
EP4325946A2 (en)Proximity communication method and apparatus
RU2603258C1 (en)Method, device, equipment and system for control of connection and disconnection of a wireless network
US20170013062A1 (en)Hub apparatus and method for providing service thereof
CN113472382B (en)Wireless communication method, wireless communication device, electronic tag, and storage medium
EP2993928A1 (en)Device selection to establish a wireless communication
CN108234562B (en)Equipment control method, control equipment and controlled equipment
US10101771B2 (en)Remote control docking station and system
CN104865835A (en)Intelligent household system based on ZigBee
US10156888B2 (en)Method and apparatus for controlling multiple processors to reduce current consumption
CN106444413A (en)Smart home control method and device and router
KR102326198B1 (en)Method for managing device based on signal strength band and electronic device thereof
CN103823626A (en)Method and device for regulating display contents and electronic equipment
KR101499307B1 (en)Wireless personal area network (pan) coordinator implementing power savings by transitioning between active and sleep states
KR20150124873A (en)Apparatus and method for controlling communication module
US20240312463A1 (en)Device Control Method and Apparatus
WO2024041359A1 (en)Link control method and electronic device
CN107632600A (en)Method and device for controlling movement of air purifier, mobile terminal and purifier
US11317347B2 (en)Method and apparatus for providing service by using Bluetooth low energy technology
US20210049898A1 (en)Wireless Control Method and System, and Apparatus

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication

Application publication date:20190430

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp