Control method, device, system and electronic device of target device
By displaying the power consumption interface and responding to user optimization instructions, power adjustment instructions are sent to smart devices, which solves the problem of high power consumption of smart devices and achieves power consumption optimization and battery life extension.
Patent Information
- Application Number
- CN202210320707.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-29
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2042-03-29
AI Technical Summary
Due to the limitations of the device's location or its own structure, smart devices cannot connect to the mains power, which requires battery power supply, and thus face the problem of high power consumption. Especially in smart home devices, such as smart door locks, how to reduce their power consumption has become urgent. The problem solved.
By providing a control method of the target device, displaying the power consumption interface, responding to the user's power consumption optimization instructions, displaying and adjusting the power consumption optimization items, and sending power consumption adjustment instructions to the target device to optimize its power use and reduce power consumption.
This method simplifies the user's optimization process of the target device power consumption, improves the user's possibility of optimizing the target device power consumption, effectively reduces the own power consumption of the smart device, and extends the battery life.
Smart Images

Figure CN114828175B_ABST
Abstract
Description
Technical Field
[0001] The present specification relates to the field of computer application technology, and more specifically, to a control method, device, system and electronic device for a target device. Background Art
[0002] With the rapid development of science and technology, the emergence of various smart devices has greatly enriched people's daily life experience.
[0003] Due to the limitations of the device location or its own structure, some smart devices cannot be connected to the mains and can only be powered by batteries. This has led users and manufacturers to put forward low power consumption requirements for such devices. Taking smart door locks in smart home devices as an example, most families find it difficult to provide smart door locks with the conditions to connect to the mains, so smart door locks usually use batteries to power themselves. However, some functions of smart door locks may increase their own power consumption. Therefore, how to ensure that smart devices have low power consumption is an urgent problem to be solved. Summary of the invention
[0004] In view of this, the embodiments of this specification are dedicated to providing a control method, apparatus, system and electronic device of a target device to achieve the purpose of reducing the power consumption of the target device.
[0005] In order to achieve the above technical objectives, the embodiments of this specification provide the following technical solutions:
[0006] In a first aspect, an embodiment of the present specification provides a method for controlling a target device, including:
[0007] Displaying a power consumption interface for a target device, wherein the power consumption interface includes power consumption information corresponding to the target device;
[0008] In response to a triggering operation on a power consumption optimization instruction in the power consumption interface, displaying a power consumption optimization item for the target device;
[0009] In response to the triggering operation for each of the power consumption optimization items, a corresponding power consumption adjustment instruction is sent to the target device to instruct the target device to perform power consumption adjustment processing.
[0010] In a second aspect, an embodiment of the present specification provides a method for controlling a target device, including:
[0011] Acquire a power consumption adjustment instruction, wherein the power consumption adjustment instruction is generated by the terminal device in response to a trigger operation of each power consumption optimization item for the target device; each of the power consumption optimization items is generated based on the power consumption information corresponding to the target device;
[0012] A power consumption adjustment process is performed according to the power consumption adjustment instruction.
[0013] In a third aspect, an embodiment of the present specification provides a control device for a target device, including:
[0014] A first display module, used to display a power consumption interface for a target device, wherein the power consumption interface includes power consumption information corresponding to the target device;
[0015] A second display module, configured to display a power consumption optimization item for the target device in response to a trigger operation for a power consumption optimization instruction in the power consumption interface;
[0016] The instruction sending module is used to send a corresponding power consumption adjustment instruction to the target device in response to the trigger operation for each of the power consumption optimization items, so as to instruct the target device to perform power consumption adjustment processing.
[0017] Optionally, the instruction sending module is specifically used to send a corresponding power consumption adjustment instruction to the target device in response to a trigger operation for at least two of the power consumption optimization items, so as to instruct the target device to perform adjustment processing for at least two of the power consumption optimization items.
[0018] Optionally, it also includes: a scanning display module, which is used to display a scanning interface for the target device and obtain power consumption optimization items corresponding to the target device; the scanning interface is used to display the scanning process of the power consumption information of the target device.
[0019] The scanning and displaying module obtains the power consumption optimization item corresponding to the target device and is specifically used to scan the working state parameters corresponding to each function item of the target device;
[0020] According to the scanned working status parameters, power consumption optimization items of the target device are determined.
[0021] Optionally, the function item includes a camera function; the working status parameter corresponding to the camera function includes at least one of: a real-time image opening state, a duration of the object corresponding to the camera function being turned on, and a recording duration.
[0022] The device also includes: an optimization item display module, which is used to display power consumption optimization items corresponding to the camera function in the power consumption interface of the target device; the power consumption optimization items include at least one of optimizing the real-time recording function of the picture, optimizing the object stay time and optimizing the recording time.
[0023] Optionally, the device also includes: a battery life display module, used to obtain a power status parameter of the target device in response to a battery life information request for the target device, wherein the power status parameter is used to characterize the consumed power information and / or battery life information of the target device.
[0024] The power consumption interface also includes: operating status parameters of the target device.
[0025] The battery life display module obtains the power status parameter of the target device and is specifically used to determine the current remaining power and battery power consumption time of the target device, and calculates the power status parameter according to the current remaining power and battery power consumption time.
[0026] In a fourth aspect, an embodiment of the present specification provides a control device for a target device, including:
[0027] An instruction acquisition module, used to acquire a power consumption adjustment instruction, wherein the power consumption adjustment instruction is generated by the terminal device in response to a trigger operation of each power consumption optimization item for a target device; each of the power consumption optimization items is generated based on the power consumption information corresponding to the target device;
[0028] The adjustment processing module is used to perform power consumption adjustment processing according to the power consumption adjustment instruction.
[0029] Optionally, the adjustment processing module is specifically used to reduce the setting value of the power consumption optimization item corresponding to the power consumption adjustment instruction, or to set the setting value of the power consumption optimization item corresponding to the power consumption adjustment instruction to the lower limit value of the setting range of the power consumption optimization item.
[0030] In a fifth aspect, an embodiment of the present specification provides a control system of a target device, including:
[0031] Target device and terminal device, where
[0032] The terminal device is used to display a power consumption interface for a target device, the power consumption interface including power consumption information corresponding to the target device, display power consumption optimization items for the target device in response to a trigger operation for a power consumption optimization instruction in the power consumption interface, and send a corresponding power consumption adjustment instruction to the target device in response to a trigger operation for each of the power consumption optimization items;
[0033] The target device is used to obtain a power consumption adjustment instruction and perform power consumption adjustment processing according to the power consumption adjustment instruction.
[0034] In a sixth aspect, an embodiment of the present specification provides an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the control method of the target device described in any one of the above items.
[0035] In a seventh aspect, an embodiment of the present specification provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the above-mentioned control method for the target device.
[0036] In an eighth aspect, an embodiment of the present specification provides a computer program product or a computer program, wherein the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; the processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor implements the steps of the above-mentioned control method of the target device when executing the computer instructions.
[0037] The embodiments of the present specification provide a control method, apparatus, system and electronic device for a target device, wherein, through the control method of the target device, power consumption information can be intuitively displayed to the user through a power consumption interface, and power consumption optimization items can be displayed to the user in response to a trigger operation on a power consumption optimization instruction in the power consumption interface, and power consumption adjustment processing of the target device can be achieved through a trigger operation on each of the power consumption optimization items. The entire process does not require the user to search for each power consumption optimization item through each setting interface of the target device, thereby simplifying the power consumption optimization method of the target device, increasing the possibility of the user optimizing the power consumption of the target device through the control method of the target device, and helping to reduce the power consumption of the target device itself. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 An application environment diagram of a control method for a target device in an embodiment;
[0039] Figure 2 is a hardware structure block diagram of a gateway in one embodiment;
[0040] Figure 3 is a flow chart of a method for controlling a target device in one embodiment;
[0041] Figure 4 A schematic diagram of a power consumption interface page in one embodiment;
[0042] Figure 5 A schematic diagram of an interface showing power consumption optimization items in an embodiment;
[0043] Figure 6A schematic diagram of a scanning interface and a scanning process shown in an embodiment;
[0044] Figure 7 A scanning interface and a power consumption interface for a camera function are shown as an embodiment;
[0045] Figure 8 A schematic diagram of a page for displaying working status parameters including the current remaining power, battery power consumption time and remaining battery life of a target device in one embodiment;
[0046] Fig. 9 is a signaling flow chart of a control method of a target device in one embodiment;
[0047] Fig.10 A schematic diagram of the structure of a smart door lock in one embodiment;
[0048] Fig.11 FIG. 1 is a schematic diagram of the structure of an electronic device in an embodiment. DETAILED DESCRIPTION
[0049] The following will be combined with the drawings in the embodiments of this specification to clearly and completely describe the technical solutions in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.
[0050] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0051] Exemplary Implementation Environment
[0052] Please refer to Figure 1 , Figure 1 Schematic diagram of an implementation environment that may be involved in the present invention. The implementation environment is an Internet of Things platform, which includes a terminal device 100, a gateway 200, a smart device 300 deployed in the gateway 200, a cloud server 400 and a router 500.
[0053] The terminal device 100 may be any device with communication and storage functions, such as a desktop computer, a laptop computer, a tablet computer, a smart phone, or other intelligent communication device capable of network connection, which is not limited here.
[0054] The smart device 300 can be a smart lamp, a smart printer, a smart fax machine, a smart camera, a smart air conditioner, a smart TV, a smart refrigerator, or a human body sensor, a door and window sensor, a temperature and humidity sensor, a water immersion sensor, a natural gas alarm, a smoke alarm, a wall switch, a wall socket, a wireless switch, a wireless wall switch, a magic cube controller, a curtain motor and other devices equipped with a communication module (such as a ZIGBEE module, a WIFI module, a Bluetooth communication module, etc.).
[0055] A network connection is established between the terminal device 100 and the gateway 200. In one embodiment, the terminal device 100 and the gateway 200 are connected via 2G / 3G / 4G / 5G, Wi-Fi, etc. The terminal device 100 interacts with the gateway 200 through the network connection, so that the user can control the IoT device connected to the gateway 200 to perform corresponding actions with the help of the terminal device 100.
[0056] Optionally, a client capable of managing the smart home is installed in the terminal device 100, and the client may be an application client (such as a mobile phone APP), or a web client or a small program, etc., which is not limited here.
[0057] The smart device 300 communicates with the gateway 200 through its own configured communication module, and is then controlled by the cloud server 400. In one embodiment, the smart device 300 accesses the gateway 200 through a local area network, and is thus deployed in the gateway 200. The process of the smart device 300 accessing the gateway 200 through a local area network includes that the gateway 200 first establishes a local area network, and the smart device 300 connects to the gateway 200 to access the local area network established by the gateway 200. The local area network includes: ZigBee or Bluetooth. Accordingly, the smart device 300 has a built-in communication module (such as a ZIGBEE module, a Wi-Fi module, a Bluetooth communication module, etc.) to have the function of realizing communication with the gateway 200 and the terminal device.
[0058] The gateway 200 and the terminal device 100 can both be connected to the router 500 and access the network through the router 500. The router 500 can access the server 500 through a wired or wireless communication connection. For example, the gateway 200 and the terminal device 100 can store the acquired information in the cloud server 400. Optionally, the terminal device 100 can also establish a network connection with the cloud server 400 through 2G / 3G / 4G / 5G, Wi-Fi, etc., so as to obtain data sent by the cloud server 400.
[0059] Alternatively, if Figure 1As shown, the terminal device 100, the router 500 and the gateway 200 are in the same local area network, and the path established in the local area network can be called a local area network path. When the terminal device 100, the router 500 and the gateway 200 are in the same local area network, the terminal device 100 can interact with the gateway 200 and the smart device 300 connected to the gateway 200 through the local area network path. When the terminal device 100 is not in the same local area network as the gateway 200 and the smart device 300, it can also interact through a wide area network path. The wide area network path refers to the path formed by the terminal device connecting to the cloud server 400 through a mobile network such as 2G / 3G / 4G / 5G, and the smart device 300 connecting to the cloud server 400 through the gateway 200 and the router 500.
[0060] Figure 2 is a hardware structure block diagram of a gateway according to an exemplary embodiment. This gateway is suitable for Figure 1 The implementation environment shown.
[0061] It should be noted that the gateway is only an example adapted to the present invention and cannot be considered to provide any limitation on the scope of use of the present invention. The gateway cannot be interpreted as requiring dependence on or having Figure 2 One or more components of the exemplary gateway 200 shown in FIG.
[0062] The hardware structure of the gateway 200 may vary greatly due to different configurations or performances, such as Figure 2 As shown, the gateway 200 includes: a power supply 210 , an interface 230 , at least one memory 250 , and at least one central processing unit (CPU) 270 .
[0063] The power supply 210 is used to provide working voltage for each hardware device on the gateway 200. The interface 230 includes at least one wired or wireless network interface 231, at least one serial-to-parallel conversion interface 233, at least one input-output interface 235 and at least one USB interface 237, etc., for communicating with external devices.
[0064] The memory 250 is a carrier for storing resources, which can be a read-only memory, random access memory, disk or CD, etc. The resources stored thereon include an operating system 251, an application 253 or data 255, etc. The storage method can be temporary storage or permanent storage. Among them, the operating system 251 is used to manage and control the hardware devices and application 253 on the gateway 200 to enable the central processor 270 to calculate and process the massive data 255. It can be WindowsServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, FreeRTOS, etc. The application 253 is a computer program that completes at least one specific task based on the operating system 251, which can include at least one module ( Figure 2 (not shown in the figure), each module may respectively include a series of computer-readable instructions for the gateway 200. The data 255 may be photos, pictures, etc. stored in a disk.
[0065] The central processor 270 may include one or more processors and is configured to communicate with the memory 250 through a bus to calculate and process the mass data 255 in the memory 250. As described in detail above, the gateway 200 applicable to the present invention will complete the device linkage control method by the central processor 270 reading a series of computer-readable instructions stored in the memory 250.
[0066] In addition, the present invention can also be implemented through hardware circuits or hardware circuits combined with software instructions. Therefore, the implementation of the present invention is not limited to any specific hardware circuits, software, or a combination of the two.
[0067] Exemplary Methods
[0068] An exemplary embodiment of the present specification provides a method for controlling a target device, taking the method applied to an electronic device as an example for explanation. The electronic device may be Figure 1 Terminal equipment in the system that has communication and computing functions. Figure 3 , the control method of the target device may include the following steps:
[0069] Step S101: displaying a power consumption interface for a target device, wherein the power consumption interface includes power consumption information corresponding to the target device.
[0070] Power consumption information refers to information related to the power supply used by the target device, where the power supply can be a battery (e.g., lithium battery, lead-acid battery) or other energy storage device. Specifically, the power consumption information can include information about the amount of power used by the target device and the remaining power (percentage) of the power supply in the target device.
[0071] The power consumption interface refers to an interface used to display power consumption information, and the presentation form of the interface includes but is not limited to at least one of an app page, a web page, and a mini-program page. In addition to being used to display power consumption information, the power consumption interface can also be used to display information such as the update time and current time of the power consumption information, which is not limited in this specification.
[0072] refer to Figure 4 , Figure 4 The power consumption interface provided by an embodiment of the present specification is shown, wherein the power consumption information is displayed in the form of a diagram combined with a number. Figure 4 In the interface shown, the user can learn that the remaining power percentage of the power supply (lithium battery) in the target device is 96%, the used power percentage is 4%, and the update time of the power consumption information is 14:45, etc.
[0073] Step S102: In response to a triggering operation on a power consumption optimization instruction in the power consumption interface, displaying power consumption optimization items for the target device.
[0074] A trigger operation generally refers to an immediate and / or scheduled user operation on a certain instruction. The trigger operation may include immediate operations such as the user touching or swiping on the page or the user pressing a specific button. The trigger operation may also include a scheduled operation achieved by the user pressing the page or a specific button.
[0075] Specifically in this embodiment, the trigger operation for the power consumption optimization instruction may refer to the instant operation and / or timed setting of the trigger power consumption optimization instruction performed by the user on the power consumption interface, such as the instant trigger operation implemented by the user by swiping randomly / according to a certain trajectory on the power consumption interface, or the timed trigger operation of the power consumption optimization instruction implemented by the user through corresponding settings on the power consumption interface. More specifically, the user may decide to optimize the power consumption of the target device immediately based on the display of the power consumption interface, and the instant display of the power consumption optimization item may be achieved through the instant trigger operation in the power consumption interface. When the user sets a timed trigger operation (for example, displaying the power consumption optimization item every 1 day / 1 week, etc.), the electronic device will display the power consumption optimization item for the target device when the corresponding conditions of the timed trigger operation are met.
[0076] Power consumption optimization items refer to adjustable items related to the power consumption speed (or power consumption) of the target device. More specifically, power consumption optimization items refer to adjustment items that can reduce the real-time power consumption of the target device by reducing the configuration. Some adjustable items that cannot be optimized but are related to power consumption may not be reflected as power consumption optimization items. For example, when the screen brightness of the target device is not at the lowest value, the screen brightness is the power consumption optimization item of the target device. When the continuous working time of the camera of the target device after a trigger is at the lowest value, this parameter of the camera can also be used as a power consumption optimization item.
[0077] Generally speaking, the power consumption optimization items of the target device include multiple items. However, in some cases, the power consumption optimization items of the target device may also include one item, which is not limited in this specification.
[0078] Step S103: In response to the triggering operation for each of the power consumption optimization items, a corresponding power consumption adjustment instruction is sent to the target device to instruct the target device to perform power consumption adjustment processing.
[0079] Similarly, the user's trigger operation for each power consumption optimization item can be an immediate operation or a scheduled operation. For example, after obtaining the power consumption optimization items for the target device displayed by the electronic device, the user can choose to optimize one or more of them immediately, or can choose to optimize one or more of them on a scheduled or periodic basis. In response to different trigger operations for each power consumption optimization item, the electronic device makes a corresponding response and sends a power consumption adjustment instruction corresponding to the selected power consumption optimization item to the target device to instruct the target device to perform power consumption adjustment processing, thereby achieving the purpose of optimizing the power consumption of the target device and improving the battery life of the target device.
[0080] The target device in this specification may be a smart home device or gateway in an exemplary implementation environment. In other application scenarios, the target device may also be other smart devices outside the smart home system, such as municipal / factory / traffic monitoring equipment, etc.
[0081] In this embodiment, the electronic device displays the power consumption information corresponding to the target device in the power consumption interface, and automatically displays the power consumption optimization items for the target device when detecting the user's trigger operation of the power consumption optimization instruction in the power consumption interface, so that the user can learn the relevant optimization items that affect the power consumption information of the target device. The user can trigger one or more power consumption optimization items to make the electronic device respond to the operation and send the corresponding power consumption adjustment instruction to the target device, so that the target device adjusts the corresponding power consumption optimization item according to the power consumption adjustment instruction, and realizes the power consumption adjustment processing of the target device. The whole process does not require the user to find each power consumption optimization item by himself through the various setting interfaces of the target device, which simplifies the power consumption optimization method of the target device, increases the possibility of the user to optimize the power consumption of the target device through the control method of the target device, and is conducive to reducing the power consumption of the target device itself.
[0082] In an exemplary embodiment of the present specification, in response to the triggering operation for each of the power consumption optimization items, sending a corresponding power consumption adjustment instruction to the target device to instruct the target device to perform power consumption adjustment processing includes:
[0083] In response to the triggering operation for at least two of the power consumption optimization items, a corresponding power consumption adjustment instruction is sent to the target device to instruct the target device to perform adjustment processing for at least two of the power consumption optimization items.
[0084] In this embodiment, the page displaying the power consumption optimization items for the target device may include a one-touch optimization button. Through the selection of the power consumption optimization items and / or the triggering operation of the button, a one-time triggering operation for at least two power consumption optimization items can be implemented, so that the electronic device can send a power consumption adjustment instruction corresponding to at least two power consumption optimization items to the target device according to the triggering operation, so as to instruct the target device to optimize the at least two power consumption optimization items at the same time. In this way, one triggering operation can achieve the optimization adjustment of multiple or all power consumption optimization items, which is conducive to simplifying the operation and improving the efficiency of power consumption optimization.
[0085] For example, refer to Figure 5 , Figure 5 The interface for displaying power consumption optimization items is shown, in which three power consumption optimization items are displayed. The user can select the power consumption optimization item by changing the selected state of the power consumption optimization item, and then trigger the power optimization control, such as by clicking the trigger Figure 5 Click the one-click optimization button to trigger the selected power consumption optimization item. Figure 5In the example, the user selects power consumption optimization item 2 and power consumption optimization item 3. At this time, by triggering the one-key optimization button, the electronic device can respond to the trigger operation and send a power consumption adjustment instruction including power consumption optimization item 2 and power consumption optimization item 3 to the target device to instruct the target device to adjust the power consumption optimization item 2 and power consumption optimization item 3.
[0086] In an exemplary embodiment of the present specification, the control method of the target device further includes:
[0087] S104: Displaying a scanning interface for the target device and acquiring power consumption optimization items corresponding to the target device; the scanning interface is used to display the scanning process of the power consumption information of the target device.
[0088] refer to Figure 6 , Figure 6 The scanning interface and a schematic diagram of a scanning process are shown in Figure 6 In the scanning interface, an indicator for indicating that scanning is in progress may be included, and the indicator may move with a certain motion logic to avoid the user thinking that the scanning interface is stuck or making no progress, and to give the user feedback that the scanning is in progress, and may also be supplemented with text prompts during the scanning. As the scanning process progresses, the power consumption optimization items obtained by the scan can be immediately reflected in the scanning interface, and the user can be given timely feedback on the scanning progress to avoid the situation where the user thinks that the scan has not made any progress for a long time. When the scan is completed, the indicator for indicating that scanning is in progress may disappear, and a text prompt indicating that the scan is completed may be provided, and the power consumption optimization items obtained by the scan may be displayed in the center of the interface, so that important information can be displayed in the center of the interface at different stages, which is conducive to optimizing the user experience.
[0089] The obtaining of the power consumption optimization item corresponding to the target device comprises:
[0090] S1021: Scan the working status parameters corresponding to each function item of the target device.
[0091] S1022: Determine power consumption optimization items of the target device according to the scanned working status parameters.
[0092] During the scanning process, the working state parameters of different functional items of the target device can be scanned separately to achieve a comprehensive scan of possible power consumption optimization items of the target device. After completing the scanning of the working state parameters of each functional item, the power consumption optimization item of the target device is further determined therein, so as to achieve the purpose of comprehensively and accurately determining the power consumption optimization item of the target device.
[0093] In an exemplary embodiment of the present specification, the function items of the target device may also include a camera function; the working status parameters corresponding to the camera function include: at least one of the real-time image opening status, the object stay time corresponding to the camera function opening, and the recording time.
[0094] Correspondingly, if the function item of the target device further includes a camera function, the control method of the target device further includes:
[0095] S105: In the power consumption interface of the target device, power consumption optimization items corresponding to the camera function are displayed; the power consumption optimization items include at least one of optimizing the real-time recording function of the picture, optimizing the object stay time and optimizing the recording time.
[0096] For the scanning interface and power consumption interface of the camera function, please refer to Figure 7 The real-time image opening state includes an opening state and a closing state. When the real-time image opening state is the opening state, the target device turns on the real-time recording function. When the real-time image opening state is the closing state, the target device turns off the real-time recording function. The closing state is the lower limit value of the setting range of the real-time image opening state, and the opening state is the upper limit value of the setting range of the real-time image opening state.
[0097] Reference Figure 7 , presents a scanning interface for the target device with camera function, including the scanning process of real-time image, stay time and maximum recording time. After the scanning is completed, the scanning results are displayed, such as Figure 7 The right figure shows an interface in which one power consumption optimization item that is already in the optimal state and two power consumption optimization items to be optimized are scanned. For example, if the current stay time is 30 seconds and the maximum recording time is 30 seconds, then these two items are still to be optimized. For example, after the optimization adjustment instruction is triggered by the one-key optimization function, these two items are optimized, for example, the optimized stay time is 10 seconds and the maximum recording time is 15 seconds. Therefore, by optimizing these two power consumption optimization items, the power consumption of the target device can be saved to a certain extent, thereby reducing the power consumption of the target device.
[0098] The object stay time (also referred to as the stay time) corresponding to the activation of the camera function indicates that when a person is detected to stay in front of the smart door lock for at least the stay time, the camera function is activated for recording.
[0099] The maximum single video recording duration (or recording duration or maximum recording duration) represents the maximum duration of a single video recording after the camera function is turned on. In addition to the three power consumption optimization items listed above, other power consumption optimization items corresponding to the camera function may also be included, and this application does not limit this.
[0100] These three working state setting parameters have a greater impact on the power consumption of the camera function of the target device. Therefore, these three working state parameters are used as power consumption optimization items. On the one hand, the purpose of adjusting the power consumption of the target device is achieved, and on the other hand, the problem of complex algorithm operation caused by a large number of parameters as the working state parameters corresponding to the camera function is avoided.
[0101] In an exemplary embodiment of the present specification, before displaying the power consumption interface for the target device, the method further includes:
[0102] S201: In response to a request for battery life information of the target device, obtaining a power status parameter of the target device, where the power status parameter is used to represent consumed power information and / or battery life information of the target device;
[0103] The power consumption interface also includes: power status parameters of the target device.
[0104] The step of obtaining the power status parameter of the target device includes:
[0105] The current remaining battery power and battery power consumption duration of the target device are determined.
[0106] The power state parameter is calculated according to the current remaining power and the battery power consumption time.
[0107] refer to Figure 8 , Figure 8 , a schematic diagram of a page for displaying working status parameters including the current remaining power of the target device, the battery power consumption time, and the remaining battery life is shown. In this page, the remaining battery life is displayed in units of "days". In other embodiments of this specification, the remaining battery life can also be displayed in units such as "hours". Figure 8 The system will display a reminder in the form of "XX days since the last battery replacement".
[0108] In this embodiment, displaying the remaining battery life of the target device helps the user to have a clearer understanding of the target device's battery life, thereby deciding whether to optimize the power consumption of the target device. This avoids the situation where the user can only view the current remaining battery power but cannot know how many days the battery has been used or how many days it is expected to be used, and helps the user to have a comprehensive evaluation and understanding of the power consumption, power and other information of the target device.
[0109] The specific process of calculating the power status parameters may include: calculating the average daily power consumption based on the current remaining power and the battery power consumption time. The method for calculating the average daily power consumption may include a direct arithmetic average method: average daily power consumption = (1-current remaining power / battery initial power) / battery power consumption time. For example, assuming that the current remaining power / battery initial power (i.e., the initial power of the battery after replacing the battery or charging the battery) = 56%, and the battery power consumption time is 44 days, the average daily power consumption is 1% of the battery initial power. The remaining battery life calculation method is simple and easy, and does not require excessive computing resources, which ensures that the method has a faster computing speed and less resource consumption in the terminal device or smart door lock.
[0110] Of course, various weight factors can also be added in the process of calculating the average daily power consumption based on the current remaining power and the battery consumption time (for example, outdoor activities are more frequent on weekends, and more people pass in front of the door lock, so the camera component may be triggered more times, so different weights can be given to the number of weekends and working days in the battery consumption time) for weighted calculation, and this manual does not limit this.
[0111] Accordingly, the embodiment of this specification also provides a method for controlling a target device, which is described by taking the method applied to a smart device in an exemplary implementation environment as an example. The method includes:
[0112] Acquire a power consumption adjustment instruction, wherein the power consumption adjustment instruction is generated by the terminal device in response to a trigger operation of each power consumption optimization item for the target device; each of the power consumption optimization items is generated based on the power consumption information corresponding to the target device;
[0113] A power consumption adjustment process is performed according to the power consumption adjustment instruction.
[0114] After receiving the power consumption adjustment instruction sent by the terminal device, the smart device performs power consumption adjustment processing on the power consumption optimization items according to the power consumption adjustment instruction and the power consumption optimization items included therein, so as to optimize the power consumption of the smart device itself.
[0115] Optionally, performing power consumption adjustment processing according to the power consumption adjustment instruction includes:
[0116] According to the power consumption adjustment instruction, the setting value of the power consumption optimization item corresponding to the power consumption adjustment instruction is reduced, or the setting value of the power consumption optimization item corresponding to the power consumption adjustment instruction is set to the lower limit value of the setting range of the power consumption optimization item.
[0117] For the specific limitations of this method, please refer to the limitations of the control method for the target device above, which will not be repeated here.
[0118] When the smart device is a smart door lock, the main structure of the smart door lock is shown in Figure 1. Fig.10 The main structure of the door lock includes: a human body sensor, a face recognition module, a Wi-Fi module and a Bluetooth module. The human body sensor is used to detect whether the human body is within the sensing range of the smart door lock. When the human body is within the range, the face recognition module is triggered.
[0119] The face recognition module has the user's face information recorded in it. The module is used to obtain pictures or video information including the face, compare and verify the face information, and trigger unlocking after the face verification is passed.
[0120] The Wi-Fi module provides the function of connecting the smart door lock to the cloud server through the gateway.
[0121] The Bluetooth module can be used to connect and pair the terminal device with the smart door lock in the near field, and the pairing information can be synchronized to the cloud server through the terminal device.
[0122] This specification also provides an application scenario, which applies the above-mentioned control method of the target device. Fig. 9 , the control method of the target device is applied in this application scenario as follows:
[0123] Taking the target device as a smart door lock as an example, the terminal device sends a connection request to the smart door lock through Bluetooth / ZigBee and other channels. After the smart door lock passes the verification / matching with the terminal device, it returns the permission information. After that, the terminal device and the smart door lock establish a short-range wireless communication connection such as Bluetooth or ZigBee.
[0124] The terminal device starts scanning the working status parameters of the smart door lock. During the scanning, the scanning interface for the smart door lock can be displayed. The working status parameters of each function item of the smart door lock obtained by the scan may include the working status parameters of the camera function. More specifically, they may include the real-time screen on status, the object stay time and the recording time corresponding to the camera function. The reason why the terminal device scans the working status parameters of the smart door lock based on the short-range wireless communication connection is that since the working status parameters stored on the smart door lock end are the working status parameters of the actual operation of the smart door lock, the latest or most realistic working status parameters can be easily obtained based on the short-range wireless communication connection, avoiding the problem of obtaining historical parameters from the server, gateway or other terminal devices that do not match the working status parameters of the actual operation of the smart door lock.
[0125] After obtaining the above working status parameters, the terminal device can set the working status parameters that are not the lower limit of the parameter interval as the power consumption optimization item, and display it on the power consumption interface of the smart door lock.
[0126] At this time, the user can decide to optimize at least two power consumption optimization items according to the display result of the power consumption interface. The user triggers the at least two power consumption optimization items on the interface, so that the terminal device responds to the operation and sends the corresponding power consumption adjustment instruction to the smart door lock, so that the smart door lock adjusts the at least two power consumption optimization items. The terminal device can be a smart phone.
[0127] It should be understood that although Figure 3 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 3 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0128] Exemplary Devices
[0129] The embodiment of this specification also provides a control device of a target device, including:
[0130] The first display module is used to display a power consumption interface for a target device, wherein the power consumption interface includes power consumption information corresponding to the target device.
[0131] The second display module is used to display the power consumption optimization items for the target device in response to the triggering operation of the power consumption optimization instruction in the power consumption interface.
[0132] The instruction sending module is used to send a corresponding power consumption adjustment instruction to the target device in response to the trigger operation for each of the power consumption optimization items, so as to instruct the target device to perform power consumption adjustment processing.
[0133] Optionally, the instruction sending module is specifically used to send a corresponding power consumption adjustment instruction to the target device in response to a trigger operation for at least two of the power consumption optimization items, so as to instruct the target device to perform adjustment processing for at least two of the power consumption optimization items.
[0134] Optionally, it also includes: a scanning display module, which is used to display a scanning interface for the target device and obtain power consumption optimization items corresponding to the target device; the scanning interface is used to display the scanning process of the power consumption information of the target device.
[0135] The scanning and displaying module obtains the power consumption optimization item corresponding to the target device and is specifically used to scan the working state parameters corresponding to each function item of the target device;
[0136] According to the scanned working status parameters, power consumption optimization items of the target device are determined.
[0137] Optionally, the function item includes a camera function; the working status parameter corresponding to the camera function includes at least one of: a real-time image opening state, a duration of the object corresponding to the camera function being turned on, and a recording duration.
[0138] The device also includes: an optimization item display module, which is used to display power consumption optimization items corresponding to the camera function in the power consumption interface of the target device; the power consumption optimization items include at least one of optimizing the real-time recording function of the picture, optimizing the object stay time and optimizing the recording time.
[0139] Optionally, the device also includes: a battery life display module, used to obtain a power status parameter of the target device in response to a battery life information request for the target device, wherein the power status parameter is used to characterize the consumed power information and / or battery life information of the target device.
[0140] The power consumption interface also includes: operating status parameters of the target device.
[0141] The battery life display module obtains the power status parameter of the target device and is specifically used to determine the current remaining power and battery power consumption time of the target device, and calculates the power status parameter according to the current remaining power and battery power consumption time.
[0142] The embodiment of this specification also provides a control device of a target device, including:
[0143] An instruction acquisition module, used to acquire a power consumption adjustment instruction, wherein the power consumption adjustment instruction is generated by the terminal device in response to a trigger operation of each power consumption optimization item for a target device; each of the power consumption optimization items is generated based on the power consumption information corresponding to the target device;
[0144] The adjustment processing module is used to perform power consumption adjustment processing according to the power consumption adjustment instruction.
[0145] Optionally, the adjustment processing module is specifically used to reduce the setting value of the power consumption optimization item corresponding to the power consumption adjustment instruction, or to set the setting value of the power consumption optimization item corresponding to the power consumption adjustment instruction to the lower limit value of the setting range of the power consumption optimization item.
[0146] Exemplary Systems
[0147] The embodiment of the present specification also provides a control system of a target device, including: a target device and a terminal device, wherein:
[0148] The terminal device is used to display a power consumption interface for a target device, the power consumption interface including power consumption information corresponding to the target device, display power consumption optimization items for the target device in response to a trigger operation for a power consumption optimization instruction in the power consumption interface, and send a corresponding power consumption adjustment instruction to the target device in response to a trigger operation for each of the power consumption optimization items;
[0149] The target device is used to obtain a power consumption adjustment instruction and perform power consumption adjustment processing according to the power consumption adjustment instruction.
[0150] Exemplary Electronic Devices
[0151] An exemplary embodiment of the present specification also provides an electronic device, including: a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, it executes the steps of the control method of the target device according to various embodiments of the present specification described in the above "Exemplary Method" section of the present specification.
[0152] The internal structure of the electronic device can be as follows Fig.11 As shown, the electronic device includes a processor, a memory, a network interface and an input device connected via a system bus. The processor of the electronic device is used to provide computing and control capabilities. The memory of the central control device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the steps in the control method of the target device according to various embodiments of the present specification are described in the above "Exemplary Method" section of the present specification.
[0153] The electronic device may also include a display component and a voice component. The display component may be a liquid crystal display or an electronic ink display. The input device of the electronic device may be a touch layer covered on the display component, or a button, trackball or touchpad provided on the housing of the electronic device, or an external keyboard, touchpad or mouse.
[0154] Those skilled in the art will understand that Fig.11 The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of this specification, and does not constitute a limitation on the electronic device to which the scheme of this specification is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0155] Exemplary computer program products and computer-readable storage media
[0156] In addition to the above-mentioned methods and devices, an embodiment of the present specification may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the control method of the target device according to various embodiments of the present specification described in the above-mentioned "Exemplary Method" section of the present specification.
[0157] The computer program product may be written in any combination of one or more programming languages to write program code for performing the operations of the embodiments of the present specification, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0158] In addition, an embodiment of the present specification may also be a storage medium on which a computer program is stored, and the computer program is executed by a processor to execute the steps of the control method of the target device according to various embodiments of the present specification described in the above "Exemplary Method" section of the present specification.
[0159] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this specification can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0160] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0161] The above-mentioned embodiments only express several implementation methods of this specification, and the description is relatively specific and detailed, but it cannot be understood as limiting the scope of the invention patent. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of this specification, which all belong to the protection scope of this specification. Therefore, the protection scope of the patent of this specification shall be based on the attached claims.
Claims
1. A method for controlling a target device, characterized in that: include: Displaying a power consumption interface for a target device, wherein the power consumption interface includes power consumption information corresponding to the target device, so that a user can determine whether to trigger a power consumption optimization instruction according to the power consumption information; In response to a user triggering operation on a power consumption optimization instruction in the power consumption interface, a power consumption optimization item for the target device is displayed, the power consumption optimization item being determined based on working state parameters corresponding to each function item of the scanned target device; the function item includes a camera function, and the working state parameters corresponding to the camera function include: at least one of a real-time picture opening state, a subject stay time corresponding to the camera function opening, and a recording time; the power consumption optimization item includes at least one of an optimized picture real-time recording function, an optimized subject stay time, and an optimized recording time; In response to the user's triggering operation on each of the power consumption optimization items, a corresponding power consumption adjustment instruction is sent to the target device to instruct the target device to perform power consumption adjustment processing.
2. The method according to claim 1, characterized in that The sending of a corresponding power consumption adjustment instruction to the target device in response to the user's triggering operation on each of the power consumption optimization items to instruct the target device to perform power consumption adjustment processing includes: In response to a user's triggering operation on at least two of the power consumption optimization items, a corresponding power consumption adjustment instruction is sent to the target device to instruct the target device to perform adjustment processing on the at least two of the power consumption optimization items.
3. The method according to claim 1, characterized in that The method further comprises: Displaying a scanning interface for the target device The scanning interface is used to display a scanning process for power consumption optimization items of the target device.
4. The method according to claim 1, characterized in that The display of the power consumption interface for the target device also includes: In response to a request for battery life information of the target device, obtaining a power status parameter of the target device, wherein the power status parameter is used to characterize consumed power information and / or battery life information of the target device; The power consumption interface also includes: power status parameters of the target device; The step of obtaining the power status parameter of the target device includes: Determine the current remaining power and battery consumption time of the target device; The power state parameter is calculated according to the current remaining power and the battery power consumption time.
5. A method for controlling a target device, characterized in that: include: Acquire a power consumption adjustment instruction, where the power consumption adjustment instruction is generated by the terminal device in response to a user's triggering operation on each power consumption optimization item of the target device; Each of the power consumption optimization items is determined based on the working state parameters corresponding to each function item of the scanned target device; The function item includes a camera function, and the working state parameter corresponding to the camera function includes at least one of: a real-time picture opening state, a target stay time corresponding to the camera function opening, and a recording time; the power consumption optimization item includes at least one of optimizing the real-time picture recording function, optimizing the target stay time, and optimizing the recording time; A power consumption adjustment process is performed according to the power consumption adjustment instruction.
6. The method according to claim 5, characterized in that The performing power consumption adjustment processing according to the power consumption adjustment instruction includes: According to the power consumption adjustment instruction, the setting value of the power consumption optimization item corresponding to the power consumption adjustment instruction is reduced, or the setting value of the power consumption optimization item corresponding to the power consumption adjustment instruction is set to the lower limit value of the setting range of the power consumption optimization item.
7. A control device for a target device, characterized in that: include: A first display module, used to display a power consumption interface for a target device, wherein the power consumption interface includes power consumption information corresponding to the target device; A second display module is used to display power consumption optimization items for the target device in response to a user triggering operation on the power consumption optimization instruction in the power consumption interface, wherein the power consumption optimization items are determined based on working state parameters corresponding to the scanned functional items of the target device; the functional items include a camera function, and the working state parameters corresponding to the camera function include: at least one of a real-time picture opening state, a target stay time corresponding to the camera function opening, and a recording time; the power consumption optimization items include at least one of an optimized picture real-time recording function, an optimized target stay time, and an optimized recording time; The instruction sending module is used to send a corresponding power consumption adjustment instruction to the target device in response to the user's triggering operation on each of the power consumption optimization items, so as to instruct the target device to perform power consumption adjustment processing.
8. A control device for a target device, characterized in that: include: An instruction acquisition module, used to acquire a power consumption adjustment instruction, wherein the power consumption adjustment instruction is triggered by the target terminal in response to a trigger operation of a user for each power consumption optimization item, and each of the power consumption optimization items is determined based on a working state parameter corresponding to each function item of the scanned target device; The function item includes a camera function, and the working state parameter corresponding to the camera function includes at least one of: a real-time picture opening state, a target stay time corresponding to the camera function opening, and a recording time; the power consumption optimization item includes at least one of optimizing the real-time picture recording function, optimizing the target stay time, and optimizing the recording time; The adjustment processing module is used to perform power consumption adjustment processing according to the power consumption adjustment instruction.
9. A control system for a target device, characterized in that: include: Target device and terminal device, where The terminal device is used to display a power consumption interface for a target device, the power consumption interface includes power consumption information corresponding to the target device, and in response to a user's trigger operation on a power consumption optimization instruction in the power consumption interface, display a power consumption optimization item for the target device, the power consumption optimization item is determined based on working state parameters corresponding to each function item of the scanned target device; the function item includes a camera function, and the working state parameters corresponding to the camera function include: at least one of a real-time picture on state, a target stay time corresponding to the camera function being turned on, and a recording time; the power consumption optimization item includes at least one of an optimized picture real-time recording function, an optimized target stay time, and an optimized recording time; in response to a trigger operation on each of the power consumption optimization items, send a corresponding power consumption adjustment instruction to the target device; The target device is used to obtain a power consumption adjustment instruction and perform power consumption adjustment processing according to the power consumption adjustment instruction.
10. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the method for controlling a target device according to any one of claims 1 to 6.
Citation Information
Patent Citations
Door lock operation power consumption adjusting method and device, electronic equipment and storage medium
CN113947827A