Equipment control method and device, electronic equipment and storage medium
By detecting the number of device wake-up times of electronic devices and selecting appropriate inquiry instructions, the problem of low interaction efficiency of electronic devices in the prior art is solved, and more efficient device control is achieved.
Patent Information
- Application Number
- CN202411938583.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-26
- Publication Date
- 2025-04-22
AI Technical Summary
Existing electronic devices are inefficient when interacting with users, and cannot quickly locate user needs, and require manual control of users, resulting in low device control efficiency.
By detecting the device wake-up command of the target electronic device, the number of device wake-up times is obtained, and the appropriate target query command is selected from the preset query command based on the number of wake-up times, the electronic device outputs the query command, and controls it based on the feedback information.
Improve the efficiency of equipment control, enable target inquiry instructions to fit the user's usage habits, realize simple human-computer interaction, and reduce the user's manual control needs.
Smart Images

Figure CN119861616A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent electronic technology, and in particular to a device control method, apparatus, electronic device and storage medium. Background Art
[0002] With the development of science and technology, electronic devices are widely used, such as various household appliances. When using electronic devices, in order to facilitate users to control the electronic devices, the electronic devices usually have a human-computer interaction function.
[0003] Currently, electronic devices are not intelligent when interacting with users and are unable to quickly locate user needs. Users still need to manually control the electronic devices, resulting in low device control efficiency. Summary of the invention
[0004] Based on this, it is necessary to provide a device control method, apparatus, electronic device, computer-readable storage medium and computer program product that can improve device control efficiency in response to the above technical problems.
[0005] In a first aspect, the present application provides a device control method. The method comprises:
[0006] If a device wake-up instruction corresponding to the target electronic device is detected, obtaining the currently accumulated number of device wake-up times for the target electronic device;
[0007] According to the number of times the device is woken up, a target query instruction corresponding to the current target electronic device is selected from a plurality of preset query instructions;
[0008] The target electronic device is controlled to output the target query instruction; in response to feedback information for the target query instruction, the target electronic device is controlled according to the feedback information.
[0009] In one embodiment, the preset inquiry instruction includes at least one first instruction belonging to a mode inquiry type and at least one second instruction belonging to a general inquiry type; the target inquiry instruction corresponding to the current target electronic device is selected from multiple preset inquiry instructions based on the number of times the device is awakened, including: if the number of times the device is awakened is greater than a first preset number threshold, then the target inquiry instruction corresponding to the current target electronic device is selected from the at least one first instruction; if the number of times the device is awakened is not greater than the first preset number threshold, then the target inquiry instruction corresponding to the current target electronic device is selected from the at least one second instruction.
[0010] In one embodiment, the selecting of the target query instruction corresponding to the current target electronic device from the at least one first instruction includes: obtaining currently accumulated mode control information of each preset control mode corresponding to the target electronic device; selecting a target control mode from each preset control mode according to the mode control information of each preset control mode; and selecting a target query instruction matching the target control mode from the at least one first instruction.
[0011] In one embodiment, the mode control information includes at least one of current control information and historical control information, the current control information includes at least one of the control times of the current time period and the control time corresponding to each current mode control, and the historical control information includes at least one of the historical control times of at least one historical time period and the control time corresponding to each historical mode control; selecting a target control mode from each of the preset control modes according to the mode control information of each of the preset control modes includes: acquiring current environmental information of the environment where the target electronic device is located; for each preset control mode, generating a selection priority of the preset control mode according to the mode control information of the preset control mode and the current environmental information; selecting a target control mode from each of the preset control modes according to the selection priority of each of the preset control modes.
[0012] In one embodiment, the selection priority of the preset control mode is generated according to the mode control information of the preset control mode and the current environmental information, including: obtaining the matching degree between the preset control mode and the current environmental information; evaluating the historical misoperation status of the preset control mode according to the historical control information of the preset control mode to obtain a misoperation evaluation result; and generating the selection priority of the preset control mode according to the current control information of the preset control mode, the misoperation evaluation result and the matching degree.
[0013] In one of the embodiments, when the target inquiry instruction belongs to the general inquiry type, the feedback information includes mode control information; and controlling the target electronic device according to the feedback information includes: a mode control step: controlling the target electronic device according to the mode control information.
[0014] In one of the embodiments, when the target inquiry instruction belongs to the general inquiry type, the feedback information includes instruction execution information or instruction non-execution information; controlling the target electronic device according to the feedback information includes: if the feedback information includes instruction execution information, controlling the target electronic device according to the control mode corresponding to the target inquiry instruction; if the feedback information includes instruction non-execution information, returning to execute the mode control step.
[0015] In one of the embodiments, before selecting a target inquiry instruction corresponding to the current target electronic device from a plurality of preset inquiry instructions based on the number of times the device is woken up, the method further includes: obtaining a current time, and selecting a target greeting instruction that matches the current time from a plurality of preset greeting instructions; and controlling the target electronic device to output the target greeting instruction.
[0016] In a second aspect, the present application also provides a device control apparatus. The apparatus comprises:
[0017] An acquisition module, configured to acquire the currently accumulated number of device wake-up times for the target electronic device if a device wake-up instruction corresponding to the target electronic device is detected;
[0018] A selection module, configured to select a target query instruction corresponding to the current target electronic device from a plurality of preset query instructions according to the number of times the device is woken up;
[0019] The control module is used to control the target electronic device to output the target query instruction; in response to feedback information for the target query instruction, the target electronic device is controlled according to the feedback information.
[0020] In a third aspect, the present application further provides an electronic device. The electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0021] If a device wake-up instruction corresponding to the target electronic device is detected, obtaining the currently accumulated number of device wake-up times for the target electronic device;
[0022] According to the number of times the device is woken up, a target query instruction corresponding to the current target electronic device is selected from a plurality of preset query instructions;
[0023] The target electronic device is controlled to output the target query instruction; in response to feedback information for the target query instruction, the target electronic device is controlled according to the feedback information.
[0024] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0025] If a device wake-up instruction corresponding to the target electronic device is detected, obtaining the currently accumulated number of device wake-up times for the target electronic device;
[0026] According to the number of times the device is woken up, a target query instruction corresponding to the current target electronic device is selected from a plurality of preset query instructions;
[0027] The target electronic device is controlled to output the target query instruction; in response to feedback information for the target query instruction, the target electronic device is controlled according to the feedback information.
[0028] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0029] If a device wake-up instruction corresponding to the target electronic device is detected, obtaining the currently accumulated number of device wake-up times for the target electronic device;
[0030] According to the number of times the device is woken up, a target query instruction corresponding to the current target electronic device is selected from a plurality of preset query instructions;
[0031] The target electronic device is controlled to output the target query instruction; in response to feedback information for the target query instruction, the target electronic device is controlled according to the feedback information.
[0032] The above-mentioned device control method, apparatus, electronic device and storage medium, if a device wake-up instruction corresponding to the target electronic device is detected, then the current accumulated number of device wake-up times for the target electronic device is obtained; according to the number of device wake-up times, the target inquiry instruction corresponding to the current target electronic device is selected from multiple preset inquiry instructions; the target electronic device is controlled to output the target inquiry instruction; in response to feedback information for the target inquiry instruction, the target electronic device is controlled according to the feedback information. Since the number of device wake-up times can feedback the user's usage habits for the target electronic device, when the number of device wake-up times is used as the basis for selecting the target inquiry instruction, the target inquiry instruction can be in line with the user's usage habits for the target electronic device, so that the control of the electronic device can be achieved through simple human-computer interaction, and there is no need for the user to manually control the electronic device, thereby improving the efficiency of device control. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1A schematic diagram of an application scenario of a device control method in an embodiment;
[0034] Figure 2 A schematic diagram of a flow chart of a device control method in one embodiment;
[0035] Figure 3 A schematic diagram of a step flow chart of a method for selecting a target query instruction in an embodiment;
[0036] Figure 4 A schematic flow chart of the steps of selecting a target query instruction from a first instruction in one embodiment;
[0037] Figure 5 A schematic diagram of a step flow chart of a method for outputting a target greeting instruction in one embodiment;
[0038] Figure 6 is a schematic diagram of the structure of a target electronic device in one embodiment;
[0039] Figure 7 A schematic diagram of a step flow of a method for controlling a target electronic device in one embodiment;
[0040] Figure 8 is a structural block diagram of a device control device in an embodiment;
[0041] Fig. 9 FIG. 4 is a diagram showing the internal structure of an electronic device in one embodiment. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0043] The device control method provided in the embodiment of the present application can be applied to Figure 1In the application scenario shown. As shown in the figure, the target electronic device 102 communicates with the server 104 through the network. The communication between the target electronic device 102 and the server 104 can be communicated through a connecting line or wirelessly. There is no limitation here. The target electronic device 102 is used to provide functional services for users. The data storage system can store the data (device wake-up instructions, device wake-up times, feedback information, etc.) that the server 104 needs to process. If the device wake-up instruction corresponding to the target electronic device 102 is detected by the server 104, the current accumulated device wake-up times for the target electronic device 102 are obtained; according to the device wake-up times, the target inquiry instruction corresponding to the current target electronic device 102 is selected from multiple preset inquiry instructions; the target electronic device 102 is controlled to output the target inquiry instruction; in response to the feedback information for the target inquiry instruction, the target electronic device 102 is controlled according to the feedback information. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. The server 104 can be implemented with an independent server or a server cluster composed of multiple servers. The target electronic device 102 may include household appliances, which may be, but not limited to, various air conditioners, fans, cleaning robots, air purifiers, electric heaters, etc.
[0044] In another application scenario, the target electronic device 102 is configured with a storage unit, and / or the target electronic device 102 communicates with a data storage system, and the storage unit and the data storage system are used to store data (device wake-up instructions, device wake-up times, feedback information, etc.) that the target electronic device 102 needs to process. If the target electronic device 102 detects a device wake-up instruction corresponding to the target electronic device 102, the current accumulated device wake-up times for the target electronic device 102 are obtained; according to the device wake-up times, the target inquiry instruction corresponding to the current target electronic device 102 is selected from multiple preset inquiry instructions; the target electronic device 102 is controlled to output the target inquiry instruction; in response to the feedback information for the target inquiry instruction, the target electronic device is controlled according to the feedback information. The target electronic device 102 may include a home appliance with a voice interaction function.
[0045] In one embodiment, Figure 2 As shown, a device control method is provided, which is applied to Figure 1 Taking the server 104 in the example as an example, the following steps are included:
[0046] Step 202: If a device wake-up instruction corresponding to the target electronic device is detected, the currently accumulated number of device wake-up times for the target electronic device is obtained.
[0047] Among them, the device wake-up instruction in step 202 is a pre-set instruction for waking up the target electronic device. The device wake-up instruction can be a voice wake-up instruction, for example, certain wake-up words are set, and when the user speaks the wake-up word, a voice wake-up instruction is generated. The device wake-up instruction can also be a control wake-up instruction, and the control wake-up instruction includes at least one of a remote control wake-up control instruction, a button wake-up control instruction, and a touch wake-up control instruction; the number of device wake-ups is the cumulative number of device wake-ups for the target electronic device within a first preset time period. The first preset time period can be the most recent time period set as needed, for example, within the past three days, within the past day, etc., or it can be a historical time period set as needed, for example, the current time is January 10, and the historical time period is from January 1 to January 3.
[0048] Exemplarily, obtaining the currently accumulated number of device wake-up times for the target electronic device includes: obtaining the currently accumulated number of device wake-up times sent by the target electronic device.
[0049] As an embodiment, obtaining the current accumulated number of device wake-up times sent by the target electronic device includes: obtaining the current accumulated number of device wake-up times sent by a microcontroller in the target electronic device.
[0050] Step 204 : selecting a target query instruction corresponding to the current target electronic device from a plurality of preset query instructions according to the number of device wake-up times.
[0051] Exemplarily, step 204 includes: determining the query type corresponding to the target query instruction according to the number of device wake-up times; and selecting the target query instruction corresponding to the current target electronic device from a plurality of preset query instructions according to the query type corresponding to the target query instruction.
[0052] Step 206: Control the target electronic device to output a target query instruction.
[0053] As an embodiment, step 206 includes: if the target electronic device includes a voice broadcast component, controlling the voice broadcast component of the target electronic device to broadcast the target query instruction.
[0054] The voice broadcast component may be, but is not limited to, a loudspeaker, a voice broadcast device, and the like.
[0055] As another embodiment, step 206 includes: if the target electronic device includes a display component, controlling the display component of the target electronic device to display the target query instruction.
[0056] Among them, the display components include display screen, wired controller, etc.
[0057] In this way, a variety of target query instruction output modes are provided for the target electronic device, ensuring that various types of devices can output the target query instruction.
[0058] Step 208, in response to the feedback information of the target query instruction, control the target electronic device according to the feedback information.
[0059] Among them, the feedback information in step 208 is used to characterize the user's feedback on the target query instruction, and the feedback information includes at least one of voice feedback information and control feedback information. The control feedback information includes at least one of key feedback information, remote control feedback information and touch feedback information.
[0060] Exemplarily, controlling the target electronic device according to the feedback information includes: controlling the target electronic device according to the inquiry type and the feedback information corresponding to the target inquiry instruction.
[0061] In this embodiment, if a device wake-up instruction corresponding to the target electronic device is detected, the current accumulated number of device wake-up times for the target electronic device is obtained; according to the number of device wake-up times, the target inquiry instruction corresponding to the current target electronic device is selected from multiple preset inquiry instructions; the target electronic device is controlled to output the target inquiry instruction; in response to feedback information for the target inquiry instruction, the target electronic device is controlled according to the feedback information. Since the number of device wake-up times can feedback the user's usage habits for the target electronic device, when the number of device wake-up times is used as the basis for selecting the target inquiry instruction, the target inquiry instruction can be in line with the user's usage habits for the target electronic device, so that the control of the electronic device can be achieved through simple human-computer interaction, and there is no need for the user to manually control the electronic device, thereby improving the efficiency of device control.
[0062] In one embodiment, Figure 3 As shown, a method for selecting a target query instruction is provided, in which the preset query instruction includes at least one first instruction belonging to a mode query type and at least one second instruction belonging to a general query type; Figure 2 In step 204, according to the number of device wake-up times, a target query instruction corresponding to the current target electronic device is selected from a plurality of preset query instructions, including:
[0063] Step 302: If the number of times the device wakes up is greater than a first preset number threshold, a target query instruction corresponding to the current target electronic device is selected from at least one first instruction.
[0064] Among them, the first preset number threshold is a critical value set on demand to determine the current cumulative number of device wake-up times with a low frequency of use of the target electronic device. The first preset number threshold corresponds to the first preset time period corresponding to the number of device wake-up times. The longer the duration represented by the first preset time period, the higher the first preset number threshold is set.
[0065] As one embodiment, a target query instruction corresponding to the current target electronic device is selected from at least one first instruction, including: selecting a target control mode of the current predicted user's expected control from each preset control mode corresponding to the target electronic device, and selecting a target query instruction corresponding to the current target electronic device that matches the target control mode from at least one first instruction.
[0066] Wherein, when the target electronic device includes an air conditioner, the preset control mode includes at least one of an air conditioner temperature control mode, an air conditioner wind speed control mode and an air conditioner personalized control mode, and the air conditioner personalized control mode includes at least one of an air conditioner fresh air mode, an air conditioner ventilation mode, an air conditioner sleep mode, a strong mode, an air conditioner ECO (Ecology Conservation Optimization, energy saving) mode, a drying mode, a dehumidification mode, a cooling mode, an air supply mode, a heating mode, a humidification mode and an automatic mode; when the target electronic device includes a fan, the preset control mode includes at least one of a fan shaking control mode and a fan wind speed control mode; when the target electronic device includes a cleaning robot, the preset control mode includes at least one of a robot automatic mode, a fixed-point mode, an edge mode, a robot sleep mode, a strong mode, a sweeping mode and a mopping mode; when the target electronic device includes an air purifier, the preset control mode includes at least one of a purifier automatic mode, a manual mode, a purifier sleep mode, a quick cleaning mode and an extreme speed mode; when the target electronic device includes an electric heater, the preset control mode includes an electric heater temperature control mode.
[0067] Step 304: If the number of times the device is awakened is not greater than the first preset number threshold, a target query instruction corresponding to the current target electronic device is selected from at least one second instruction.
[0068] Exemplarily, selecting a target query instruction corresponding to the current target electronic device from at least one second instruction includes: selecting the target query instruction corresponding to the current target electronic device from at least one second instruction according to instruction information of the second instruction.
[0069] Among them, when the output form of the target inquiry instruction belongs to the broadcast output form, the instruction information includes at least one of the output content and the voice broadcast tone type; when the output form of the target inquiry instruction belongs to the display output form, the instruction information includes the output content.
[0070] Further, as an embodiment, according to the instruction information of the second instruction, a target query instruction corresponding to the current target electronic device is selected from at least one second instruction, including: selecting a target query instruction whose instruction information meets the user's expectations from at least one second instruction, wherein, in the case where the instruction information includes output content, if the output content of the second instruction matches the user's expected output content, then it is determined that the instruction information of the second instruction meets the user's expectations; in the case where the instruction information includes a voice broadcast timbre type, if the output content of the second instruction matches the user's expected broadcast timbre type, then it is determined that the instruction information of the second instruction meets the user's expectations; in the case where the instruction information includes a voice broadcast timbre type and output content, if the voice broadcast timbre type of the second instruction matches the user's expected broadcast timbre type, and the output content of the second instruction matches the user's expected output content, then it is determined that the instruction information of the second instruction meets the user's expectations.
[0071] In this way, the target query instructions output by the target electronic device in different output forms can meet the user's expectations in various dimensions (for example, the above-mentioned voice broadcast timbre dimension and output content dimension).
[0072] In this embodiment, if the number of device wake-up times is greater than the first preset number threshold, the target query instruction corresponding to the current target electronic device is selected from at least one first instruction; if the number of device wake-up times is not greater than the first preset number threshold, the target query instruction corresponding to the current target electronic device is selected from at least one second instruction. When the number of device wake-up times is greater than the first preset number threshold, that is, the user wakes up the target electronic device at a high frequency, it can be explained that the currently acquired usage-related data for the target electronic device (for example, the mode control information described below) is more representative of the user's expectations than (the usage-related data acquired when the user wakes up the target electronic device at a low frequency), and therefore, the target query instruction selected from the first instruction belonging to the mode query type can be made to be more in line with the user's expectations; when the number of device wake-up times is not greater than the first preset number threshold, that is, the user wakes up the target electronic device at a low frequency, it can be explained that the currently acquired usage-related data for the target electronic device is relatively deviated from the user's expectations, and therefore, the target query instruction that can accurately obtain the user's real expected control feedback is selected from the second instruction belonging to the general query type; in summary, the selection accuracy of the target query instruction is improved.
[0073] In one embodiment, Figure 4 As shown, a method for selecting a target query instruction from a first instruction is provided. In this method, Figure 3 The step 302 of selecting a target query instruction corresponding to the current target electronic device from at least one first instruction includes:
[0074] Step 402: Acquire currently accumulated mode control information of each preset control mode corresponding to the target electronic device.
[0075] Among them, the mode control information in step 402 includes at least one of the current control information and the historical control information. The current control information includes the control number of the current time period and at least one of the control time corresponding to each current mode control. The current time period can be the current day or the previous few hours, for example, the previous 2 hours, the previous 4 hours, etc., and there is no limitation here. The historical control information includes the historical control number of at least one historical time period and at least one of the control time corresponding to each historical mode control. The historical time period can be within three days or within five days, and there is no limitation here.
[0076] Step 404 : selecting a target control mode from the preset control modes according to the mode control information of the preset control modes.
[0077] As an embodiment, step 404 includes: obtaining current environmental information of the environment where the target electronic device is located; for each preset control mode, generating a selection priority of the preset control mode based on the mode control information of the preset control mode and the current environmental information; and selecting a target control mode from each preset control mode based on the selection priority of each preset control mode.
[0078] The current environmental information includes at least one of current meteorological information, current temperature information, current environmental pollution information, current wind force information, current precipitation information and current humidity information.
[0079] Furthermore, obtaining current environmental information of the environment where the target electronic device is located includes: obtaining the location of the target electronic device, and obtaining the current time, and obtaining the current environmental information of the environment where the target electronic device is located through network query based on the location of the target electronic device and the current time.
[0080] As one embodiment, a selection priority of a preset control mode is generated based on mode control information of the preset control mode and current environmental information, including: obtaining a matching degree between the preset control mode and the current environmental information; evaluating historical misoperation conditions of the preset control mode based on historical control information of the preset control mode to obtain misoperation evaluation results; and generating a selection priority of the preset control mode based on the current control information, misoperation evaluation results and matching degree of the preset control mode.
[0081] Among them, the more control times in the current time period, the higher the frequency of using the preset control mode, the higher the selection priority of the generated preset control mode, and the more the control time corresponding to each current control mode matches the current time, the higher the selection priority of the generated preset control mode; the lower the misoperation risk of the preset control mode represented by the misoperation evaluation result, the higher the selection priority of the generated preset control mode; the higher the matching degree, the higher the selection priority of the generated preset control mode.
[0082] Furthermore, obtaining the degree of match between the preset control mode and the current environmental information includes: obtaining a mode function of the preset control mode, and determining the degree of match between the mode function of the preset control mode and the current environmental information as the degree of match between the preset control mode and the current environmental information.
[0083] As one embodiment, based on the historical control information of the preset control mode, the historical misoperation status of the preset control mode is evaluated to obtain an misoperation evaluation result, including: the more the number of historical controls in at least one historical time period, the lower the misoperation risk for the preset control mode represented by the misoperation evaluation result; the more the control time corresponding to each historical mode control matches the current time, the lower the misoperation risk for the preset control mode represented by the misoperation evaluation result.
[0084] The closer the time period of the control time (corresponding to each current control mode or each historical mode control) is to the time period of the current time, the more the control time matches the current time.
[0085] As an embodiment, selecting a target control mode from each preset control mode according to the selection priority of each preset control mode includes: selecting a target control mode whose corresponding selection priority meets the priority condition from each preset control mode.
[0086] The priority condition may be greater than a preset priority threshold, or may be the highest priority among all preset control modes.
[0087] Step 406: Select a target query instruction that matches the target control mode from the at least one first instruction.
[0088] Exemplarily, step 406 includes: obtaining similarities between the target control mode and at least one first instruction respectively, and selecting a target query instruction whose corresponding similarity is greater than a preset similarity threshold from the at least one first instruction.
[0089] In this embodiment, by acquiring the currently accumulated mode control information of each preset control mode corresponding to the target electronic device; selecting the target control mode from each preset control mode according to the mode control information of each preset control mode; selecting the target query instruction matching the target control mode from at least one first instruction, when the number of device wake-up times is greater than the first preset number threshold, that is, the user wakes up the target electronic device at a high frequency, then it can be explained that the currently acquired mode control information is better able to represent the user's expectations than (the mode control data acquired when the user wakes up the target electronic device at a low frequency), and therefore, the selected target query instruction can be made more in line with the user's expectations, thereby improving the accuracy of selecting the target query instruction.
[0090] In one embodiment, Figure 5 As shown, a method for outputting a target greeting instruction is provided, in which: Figure 2 Before selecting the target query instruction corresponding to the current target electronic device from a plurality of preset query instructions according to the number of device wake-up times in step 204, the method further includes:
[0091] Step 502, obtaining the current time, and selecting a target greeting instruction that matches the current time from a plurality of preset greeting instructions.
[0092] The multiple preset greeting instructions in step 502 include greeting instructions for multiple greeting time periods.
[0093] Exemplarily, selecting a target greeting instruction that matches the current time from a plurality of preset greeting instructions includes: obtaining greeting time periods to which the plurality of preset greeting instructions belong, and selecting a target greeting instruction whose greeting time period includes the current time from the plurality of preset greeting instructions.
[0094] Step 504, controlling the target electronic device to output a target greeting instruction.
[0095] Optionally, the specific implementation of controlling the target electronic device to output the target greeting instruction can refer to the specific implementation content of step 206, which will not be described in detail here.
[0096] Alternatively, if Figure 6 As shown, as an embodiment, when the device control method is applied to a target electronic device, the target electronic device includes: a main controller, a clock chip and a microcontroller. The clock chip can be a chip that generates a stable clock signal through an internal quartz crystal oscillator and converts it into a time signal in the form of second pulses through a binary divider, and is used to provide stable and accurate time; the microcontroller communicates with the clock chip to convert and process the time signal collected by the clock chip to obtain a logic signal; the main controller communicates with the microcontroller to perform logic processing and execution on the logic signal processed by the microcontroller.
[0097] In this way, since the clock chip can be powered by the built-in battery, when the target electronic device is disconnected from the power supply, the clock chip can also operate normally to ensure the precision and accuracy of the time.
[0098] In this embodiment, by obtaining the current time and selecting a target greeting instruction that matches the current time from multiple preset greeting instructions; controlling the target electronic device to output the target greeting instruction, the target greeting instruction that matches the greeting time period can be output according to the current time, thereby improving the humanized interaction of the target electronic device.
[0099] In one embodiment, Figure 7 As shown, a method for controlling a target electronic device is provided, in which: Figure 2 The step 208 of controlling the target electronic device according to the feedback information includes:
[0100] In the case that the target inquiry instruction is of the mode inquiry type, the feedback information includes mode control information; step 209 is executed to control the target electronic device according to the mode control information.
[0101] When the target query instruction belongs to a general query type, the feedback information includes instruction execution information or instruction non-execution information; if the feedback information includes instruction execution information, step 210 is executed to control the target electronic device according to the control mode corresponding to the target query instruction.
[0102] If the feedback information includes instruction not executed information, the process returns to step 209 .
[0103] In this embodiment, when the target inquiry instruction belongs to the general inquiry type, the feedback information includes mode control information; the target electronic device is controlled according to the mode control information; when the target inquiry instruction belongs to the general inquiry type, if the feedback information includes instruction execution information, the target electronic device is controlled according to the control mode corresponding to the target inquiry instruction; if the feedback information includes instruction non-execution information, the execution mode control step is returned, and the control method of the target electronic device in various situations is realized through the ring logic, so that the target electronic device can be more likely to be automatically controlled according to the user's expectations, thereby improving the accuracy of automatic control of the device.
[0104] As a more detailed embodiment, if a device wake-up instruction corresponding to the target electronic device is detected, the current time is obtained, and a target greeting instruction matching the current time is selected from multiple preset greeting instructions; the target electronic device is controlled to output the target greeting instruction; the currently accumulated number of device wake-up times for the target electronic device is obtained; if the number of device wake-up times is greater than a first preset number threshold, the currently accumulated mode control information of each preset control mode corresponding to the target electronic device is obtained; the current environmental information of the environment where the target electronic device is located is obtained; the matching degree between the preset control mode and the current environmental information is obtained; according to the historical control information of the preset control mode, the historical misoperation status of the preset control mode is evaluated to obtain the misoperation evaluation result; according to the current control information, the misoperation evaluation result and the matching degree of the preset control mode, the selection priority of the preset control mode is generated; according to the selection priority of each preset control mode, the target control mode is selected from each preset control mode; if the number of device wake-up times is not greater than the first preset number threshold, the target inquiry instruction corresponding to the current target electronic device is selected from at least one second instruction.
[0105] Further, the target electronic device is controlled to output a target inquiry instruction; when the target inquiry instruction belongs to a general inquiry type, the mode control step is: controlling the target electronic device according to the mode control information; when the target inquiry instruction belongs to a general inquiry type, if the feedback information includes instruction execution information, the target electronic device is controlled according to the control mode corresponding to the target inquiry instruction; if the feedback information includes instruction non-execution information, returning to the execution mode control step.
[0106] In this embodiment, by obtaining the current time and selecting a target greeting instruction that matches the current time from multiple preset greeting instructions; controlling the target electronic device to output the target greeting instruction, the target greeting instruction that matches the greeting time period can be output according to the current time, thereby improving the humanized interaction of the target electronic device; when the number of device wake-up times is greater than the first preset number threshold, that is, the user wakes up the target electronic device at a higher frequency, then it can be explained that the currently obtained mode control information is better able to represent the user's expectations than (the mode control data obtained when the user wakes up the target electronic device at a lower frequency), and therefore, the selected target inquiry instruction can be made more in line with the user's expectations, thereby improving the accuracy of selecting the target inquiry instruction; when the number of device wake-up times is not greater than the first preset number threshold, that is, the user wakes up the target electronic device at a lower frequency, then it can be explained that the currently obtained usage-related data for the target electronic device is relatively deviated from the user's expectations, and therefore, the target inquiry instruction that can accurately obtain the user's true expected control feedback is selected from the second instruction belonging to the general inquiry type.
[0107] Furthermore, since the number of device wake-up times can reflect the user's usage habits for the target electronic device, when the number of device wake-up times is used as the basis for selecting the target inquiry instruction, the target inquiry instruction can be in line with the user's usage habits for the target electronic device, so that the electronic device can be controlled through simple human-computer interaction, and there is no need for the user to manually control the electronic device. Therefore, the device control efficiency is improved, and the control method of the target electronic device in various situations is realized through the ring logic, so that the target electronic device can be more likely to be automatically controlled according to the user's expectations, thereby improving the automatic control accuracy of the device.
[0108] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0109] Based on the same inventive concept, the embodiment of the present application also provides a device control device for implementing the device control method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more device control device embodiments provided below can refer to the limitations on the device control method above, and will not be repeated here.
[0110] In one embodiment, Figure 8 As shown, a device control apparatus 800 is provided, comprising: an acquisition module 802, a selection module 804 and a control module 806, wherein:
[0111] The acquisition module 802 is used to acquire the currently accumulated number of device wake-up times for the target electronic device if a device wake-up instruction corresponding to the target electronic device is detected;
[0112] A selection module 804 is used to select a target query instruction corresponding to the current target electronic device from a plurality of preset query instructions according to the number of device wake-up times;
[0113] The control module 806 is used to control the target electronic device to output the target query instruction; in response to the feedback information for the target query instruction, the target electronic device is controlled according to the feedback information.
[0114] In one embodiment, the preset inquiry instructions include at least one first instruction belonging to a mode inquiry type and at least one second instruction belonging to a general inquiry type; the selection module 804 is also used to select the target inquiry instruction corresponding to the current target electronic device from the at least one first instruction if the number of device wake-up times is greater than a first preset number threshold; if the number of device wake-up times is not greater than the first preset number threshold, select the target inquiry instruction corresponding to the current target electronic device from the at least one second instruction.
[0115] In one embodiment, the selection module 804 is also used to obtain the currently accumulated mode control information of each preset control mode corresponding to the target electronic device; select a target control mode from each preset control mode according to the mode control information of each preset control mode; and select a target query instruction that matches the target control mode from at least one first instruction.
[0116] In one embodiment, the mode control information includes at least one of current control information and historical control information, the current control information includes at least one of the control times of the current time period and the control time corresponding to each current mode control, and the historical control information includes at least one of the historical control times of at least one historical time period and the control time corresponding to each historical mode control; the selection module 804 is also used to obtain current environmental information of the environment in which the target electronic device is located; for each preset control mode, a selection priority of the preset control mode is generated according to the mode control information and the current environmental information of the preset control mode; and a target control mode is selected from each preset control mode according to the selection priority of each preset control mode.
[0117] In one embodiment, the selection module 804 is also used to obtain the matching degree between the preset control mode and the current environmental information; based on the historical control information of the preset control mode, the historical misoperation status of the preset control mode is evaluated to obtain the misoperation evaluation result; based on the current control information, misoperation evaluation result and matching degree of the preset control mode, the selection priority of the preset control mode is generated.
[0118] In one embodiment, when the target inquiry instruction belongs to a general inquiry type, the feedback information includes mode control information; the control module 806 is also used for a mode control step: controlling the target electronic device according to the mode control information.
[0119] In one embodiment, when the target inquiry instruction belongs to a general inquiry type, the feedback information includes instruction execution information or instruction non-execution information; the control module 806 is also used to control the target electronic device according to the control mode corresponding to the target inquiry instruction if the feedback information includes instruction execution information; if the feedback information includes instruction non-execution information, return to the execution mode control step.
[0120] In one embodiment, before selecting a target inquiry instruction corresponding to the current target electronic device from multiple preset inquiry instructions based on the number of device wake-ups, the control module 806 is also used to obtain the current time and select a target greeting instruction matching the current time from multiple preset greeting instructions; and control the target electronic device to output the target greeting instruction.
[0121] Each module in the above-mentioned device control device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in an electronic device in the form of hardware, or can be stored in a memory in an electronic device in the form of software, so that the processor can call and execute operations corresponding to each module above.
[0122] In one embodiment, an electronic device is provided. The electronic device may be a terminal, and its internal structure diagram may be as follows: Fig. 9 As shown. The electronic device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic 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 input / output interface of the electronic device is used to exchange information between the processor and the external device. The communication interface of the electronic device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a device control method is implemented. The display unit of the electronic device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the electronic device casing, or an external keyboard, touchpad or mouse.
[0123] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application 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.
[0124] In one embodiment, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.
[0125] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0126] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0127] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments 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 the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0128] 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.
[0129] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A device control method, characterized in that: The method comprises: If a device wake-up instruction corresponding to the target electronic device is detected, obtaining the currently accumulated number of device wake-up times for the target electronic device; According to the number of times the device is woken up, a target query instruction corresponding to the current target electronic device is selected from a plurality of preset query instructions; Controlling the target electronic device to output the target query instruction; In response to feedback information for the target query instruction, the target electronic device is controlled according to the feedback information.
2. The method according to claim 1, characterized in that The preset inquiry instruction includes at least one first instruction belonging to a mode inquiry type and at least one second instruction belonging to a general inquiry type; the selecting, according to the number of times the device is woken up, a target inquiry instruction corresponding to the current target electronic device from a plurality of preset inquiry instructions includes: If the number of times the device is awakened is greater than a first preset number threshold, selecting a target query instruction corresponding to the current target electronic device from the at least one first instruction; If the number of times the device is awakened is not greater than a first preset number threshold, a target query instruction corresponding to the current target electronic device is selected from the at least one second instruction.
3. The method according to claim 2, characterized in that The step of selecting a target query instruction corresponding to the current target electronic device from the at least one first instruction includes: Acquire currently accumulated mode control information of each preset control mode corresponding to the target electronic device; Selecting a target control mode from each of the preset control modes according to the mode control information of each of the preset control modes; A target query instruction matching the target control mode is selected from the at least one first instruction.
4. The method according to claim 3, characterized in that The mode control information includes at least one of current control information and historical control information, the current control information includes at least one of the control times of the current time period and the control time corresponding to each current mode control, and the historical control information includes at least one of the historical control times of at least one historical time period and the control time corresponding to each historical mode control; the selecting a target control mode from each of the preset control modes according to the mode control information of each of the preset control modes includes: Acquire current environment information of the environment where the target electronic device is located; For each preset control mode, generating a selection priority of the preset control mode according to the mode control information of the preset control mode and the current environment information; A target control mode is selected from the preset control modes according to the selection priority of each of the preset control modes.
5. The method according to claim 4, characterized in that The step of generating the selection priority of the preset control mode according to the mode control information of the preset control mode and the current environment information includes: Obtaining a matching degree between the preset control mode and the current environment information; According to the historical control information of the preset control mode, the historical misoperation status of the preset control mode is evaluated to obtain a misoperation evaluation result; A selection priority of the preset control mode is generated according to the current control information of the preset control mode, the misoperation evaluation result and the matching degree.
6. The method according to claim 2, characterized in that In the case where the target inquiry instruction belongs to the general inquiry type, the feedback information includes mode control information; and controlling the target electronic device according to the feedback information includes: Mode control step: controlling the target electronic device according to the mode control information.
7. The method according to claim 6, characterized in that In the case where the target inquiry instruction belongs to the general inquiry type, the feedback information includes instruction execution information or instruction non-execution information; and controlling the target electronic device according to the feedback information includes: If the feedback information includes instruction execution information, controlling the target electronic device according to the control mode corresponding to the target query instruction; If the feedback information includes instruction non-execution information, the method returns to execute the mode control step.
8. The method according to any one of claims 1 to 7, characterized in that Before selecting a target query instruction corresponding to the current target electronic device from a plurality of preset query instructions according to the number of device wake-up times, the method further includes: Acquire the current time, and select a target greeting instruction matching the current time from a plurality of preset greeting instructions; The target electronic device is controlled to output the target greeting instruction.
9. A device control device, characterized in that: The device comprises: An acquisition module, configured to acquire the currently accumulated number of device wake-up times for the target electronic device if a device wake-up instruction corresponding to the target electronic device is detected; A selection module, configured to select a target query instruction corresponding to the current target electronic device from a plurality of preset query instructions according to the number of times the device is woken up; The control module is used to control the target electronic device to output the target query instruction; in response to feedback information for the target query instruction, the target electronic device is controlled according to the feedback information.
10. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.