Disclosure of Invention
The present application provides a control method, apparatus, electronic device, and storage medium for solving the above-mentioned problems in the related art, by obtaining operation information of a user for an identifier of a target function module in a display interface; generating a control instruction based on the operation information; and sending the control instruction to each household appliance corresponding to the identifier so as to uniformly control the target function module in each household appliance, and the control mode is simple.
The application provides a control method, which comprises the following steps:
acquiring operation information of a user aiming at an identifier of a target function module in a display interface;
generating a control instruction based on the operation information;
and sending the control instruction to each household appliance corresponding to the identification so as to uniformly control the target function module in each household appliance.
In some embodiments, in a case that the operation information is used to open a target function module corresponding to the identifier, the control instruction includes: and opening an instruction, sending the control instruction to each household appliance corresponding to the identifier so as to uniformly control the target function module in each household appliance, and comprising the following steps:
and sending the starting instruction to each household appliance corresponding to the identifier so as to uniformly start the target function modules in each household appliance.
In some embodiments, in a case that the operation information is used to close the target function module corresponding to the identifier, the control instruction includes: and closing the command, sending the control command to each household appliance corresponding to the identifier so as to uniformly control the target function module in each household appliance, and comprising the following steps:
and sending the closing instruction to each household appliance corresponding to the identifier so as to uniformly close the target function modules in each household appliance.
In some embodiments, the method further comprises:
when connection with each household appliance is established, acquiring an identifier of each functional module sent by each household appliance, wherein each household appliance is provided with the functional module corresponding to the identifier of each functional module;
establishing a corresponding relation between the identification of each functional module and each household appliance;
and displaying the corresponding relation in the display interface.
In some embodiments, the method further comprises:
acquiring first setting information of a user, wherein the first setting information is used for setting the identification of each functional module;
acquiring second setting information of a user, wherein the second setting information is used for setting each household appliance corresponding to the identifier of each functional module;
storing the corresponding relation between the identification of each functional module and each household appliance;
and displaying the corresponding relation in the display interface.
In some embodiments, the target function module comprises one of: microphone, loudspeaker, orientation module, networking module, display screen.
An embodiment of the present application provides a control device, including:
the first acquisition module is used for acquiring operation information of a user aiming at the identification of the target function module in the display interface;
the generating module is used for generating a control instruction based on the operation information;
and the sending module is used for sending the control instruction to each household appliance corresponding to the identifier so as to uniformly control the target function module in each household appliance.
In some embodiments, in a case that the operation information is used to open a target function module corresponding to the identifier, the control instruction includes: the opening instruction, the sending module includes:
and the first sending unit is used for sending the starting instruction to each household appliance corresponding to the identifier so as to uniformly start the target function modules in each household appliance.
An embodiment of the present application provides an electronic device, which includes a memory and a processor, where the memory stores a computer program, and the computer program, when executed by the processor, executes any one of the control methods described above.
The embodiment of the application provides a storage medium, which stores a computer program capable of being executed by one or more processors and capable of being used for realizing any one of the control methods.
According to the control method, the control device, the electronic equipment and the storage medium, operation information of a user aiming at the identification of the target function module in the display interface is obtained; generating a control instruction based on the operation information; and sending the control instruction to each household appliance corresponding to the target function module identification so as to uniformly control the target function module in each household appliance, and the control mode is simple.
Detailed Description
In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be described in further detail with reference to the attached drawings, the described embodiments should not be considered as limiting the present application, and all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
The following description will be added if a similar description of "first \ second \ third" appears in the application file, and in the following description, the terms "first \ second \ third" merely distinguish similar objects and do not represent a specific ordering for the objects, and it should be understood that "first \ second \ third" may be interchanged under certain circumstances in a specific order or sequence, so that the embodiments of the application described herein can be implemented in an order other than that shown or described herein.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the application.
Based on the problems in the related art, the embodiment of the application provides a control method, the method is applied to electronic equipment, the electronic equipment is provided with a display screen, and the electronic equipment can be a household appliance with a screen, a mobile phone and a panel lamp. The functions realized by the control method provided by the embodiment of the application can be realized by calling a program code by a processor of the electronic equipment, wherein the program code can be stored in a computer storage medium.
An embodiment of the present application provides a control method, and fig. 1 is a schematic flow chart illustrating an implementation of the control method provided in the embodiment of the present application, and as shown in fig. 1, the control method includes:
and step S1, acquiring the operation information of the user aiming at the identification of the target function module in the display interface.
In the embodiment of the application, the operation information may be a click, a touch, a sliding track, and the like. In the embodiment of the application, the display interface may include identifiers of a plurality of function modules, and the identifier of the target function module is one of the identifiers of the plurality of function modules. The identification of the target function module may include: camera identification, microphone identification, loudspeaker identification, orientation module identification, networking module identification, display screen identification etc. In the embodiment of the application, the identifier of the functional module clicked by the user is the identifier of the target functional module. For example, when the user clicks the microphone identifier, the microphone identifier is the identifier of the target function module. In the embodiment of the application, the function module identifier can be displayed in a text form or an icon form.
In step S2, a control command is generated based on the operation information.
In the embodiment of the application, different control instructions corresponding to different operation information may be preset, for example, one operation information corresponding to an opening instruction and one operation information corresponding to a closing instruction are set. In some embodiments, a switch button of each target function identifier is set in the display interface, and when the operation information of the user is used to open the target function module corresponding to the target function module identifier, an open instruction is generated. And generating a closing instruction under the condition that the operation information of the user is used for closing the target function module corresponding to the target function module identification. In some embodiments, first operation information may be set to open a target function module corresponding to the target function module identifier, when the operation information is the first operation information, an opening instruction is generated, second operation information is used to close the target function module corresponding to the target function module identifier, and when the operation information is the second operation information, a closing instruction is generated.
And step S3, sending the control instruction to each household appliance corresponding to the identification so as to uniformly control the target function module in each household appliance.
In the embodiment of the application, the electronic equipment is in communication connection with each household appliance. And the control instruction is sent to each household appliance, so that the target function module in the household appliance is controlled.
Illustratively, 4 household appliances have cameras in a home, and when the operation information is used for turning off the camera corresponding to the camera identification, the electronic device sends a turning-off instruction to the 4 household appliances, and after receiving the control instruction, the household appliances realize the unified turning-off of the cameras in the 4 household appliances.
According to the control method provided by the embodiment of the application, the operation information of the user aiming at the identification of the target function module in the display interface is obtained; generating a control instruction based on the operation information; and sending the control instruction to each household appliance corresponding to the target function module identification so as to uniformly control the target function module in each household appliance, and the control mode is simple.
In some embodiments, in a case that the operation information is used to open a target function module corresponding to the identifier, the control instruction includes: the step S3 of sending the control instruction to the home appliances corresponding to the target function module identifier to perform unified control on the target function modules in the home appliances may include:
and step S31, sending the opening instruction to each household appliance corresponding to the identifier, so that the target function modules in each household appliance are opened uniformly.
Illustratively, the operation information is used for starting the cameras, and then the operation information sends an instruction to each household appliance corresponding to the camera identification, and each household appliance closes its own camera, so that a plurality of cameras are uniformly started.
In some embodiments, in a case that the operation information is used to close the target function module corresponding to the identifier, the control instruction includes: the step S3 "of sending the control instruction to the home appliances corresponding to the identifier to perform unified control on the target function modules in the home appliances" may include:
and step S32, sending the closing instruction to each of the home appliances corresponding to the identifier, so that the target function modules in the home appliances are closed uniformly.
Exemplarily, the operation information is used for turning off the camera, and then the operation information is sent to each household appliance corresponding to the camera identifier, and the cameras in each household appliance are turned off uniformly.
In some embodiments, prior to step S1, the method further comprises:
step S11, when establishing connection with each home appliance, obtaining each function module identifier sent by each home appliance, where each home appliance has a function module corresponding to each function module identifier.
In the embodiment of the application, each household appliance can mark each functional module by using a specific identifier during development, so as to determine the identifier, and the electronic device acquires each functional module identifier sent by each household appliance when establishing connection with each household appliance.
And step S12, establishing the corresponding relation between each function module identification and each household appliance.
And step S13, displaying the corresponding relation in the display interface.
In the embodiment of the application, the functional module of the household appliance is detected according to the specific identifier, so that the functional module is displayed on the display interface.
In some embodiments, prior to step S1, the method further comprises:
acquiring first setting information of a user, wherein the first setting information is used for setting each functional module identifier; acquiring second setting information of a user, wherein the second setting information is used for setting each household appliance corresponding to each functional module identifier; storing the corresponding relation between each functional module identification and each household appliance; and displaying the corresponding relation in the display interface.
In the embodiment of the application, if no specific functional module identifier is added during production, functional modules and control modes of various household appliances accessed to a home network can be manually added.
In an embodiment of the application, the target function module includes one of: camera, microphone, loudspeaker, orientation module, networking module, display screen.
In some embodiments, fig. 2 is a schematic flow chart of an implementation flow of a control method provided in an embodiment of the present application, as shown in fig. 2, including:
step S201, identifying the functional module related to privacy of the household appliance.
In the embodiment of the present application, the functional modules related to privacy include: camera, microphone, loudspeaker, orientation module, networking module, display screen etc
In step S202, functions related to the same privacy of a plurality of home appliances are collectively displayed.
In step S203, if the user operates the function switch, corresponding function switching is performed for each home appliance.
The program of the control method provided by the embodiment of the application runs on a household appliance with a screen, a mobile phone, a tablet and the like which are connected to a household network screen device. The software presents modules such as a microphone, a loudspeaker, positioning, networking, body feeling and a display screen on a user interface, and household appliances which are accessed to a home network and have corresponding functional modules. When the intelligent household appliance is developed, a specific mark is used for marking functional modules such as a microphone, a loudspeaker, positioning, networking, body feeling and a display screen. When the intelligent household appliance is accessed to the home network, the functional module of the household appliance is detected according to the specific identification and is displayed on the user interface. And when the user interface starts the function module, sending an instruction to all the household appliances accessed to the home network. And after the household appliance receives the instruction, the corresponding function starting is realized. And when the user interface closes the function module, sending an instruction to all the household appliances accessed to the home network. And after the household appliance receives the instruction, the corresponding function is closed.
By the method, the privacy function of the intelligent household appliance is uniformly controlled, and a plurality of household appliance devices are uniformly switched according to actual use scenes. Such as turning off speakers uniformly at night, turning off the screen uniformly after leaving home, turning off the microphone uniformly while talking, turning off the camera uniformly while performing privacy activities, etc.
Based on the foregoing embodiments, the present application provides a control apparatus, where each module included in the apparatus and each unit included in each module may be implemented by a processor in a computer device; of course, the implementation can also be realized through a specific logic circuit; in the implementation process, the processor may be a Central Processing Unit (CPU), a Microprocessor Unit (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like.
An embodiment of the present application provides a control device, and fig. 3 is a schematic structural diagram of the control device provided in the embodiment of the present application, and as shown in fig. 3, the control device 300 includes:
an obtaining module 301, configured to obtain operation information of a user for an identifier of a target function module in a display interface;
a generating module 302, configured to generate a control instruction based on the operation information;
a sending module 303, configured to send the control instruction to each home appliance device corresponding to the identifier, so as to perform unified control on the target function modules in each home appliance device.
In some embodiments, in a case that the operation information is used to open a target function module corresponding to the identifier, the control instruction includes: the opening instruction, the sending module includes:
and the first sending unit is used for sending the starting instruction to each household appliance corresponding to the identifier so as to uniformly start the target function modules in each household appliance.
In some embodiments, in a case that the operation information is used to close the target function module corresponding to the identifier, the control instruction includes: a close command, the sending module comprising:
and the second sending unit is used for sending the closing instruction to each household appliance corresponding to the identifier so as to uniformly close the target function modules in each household appliance.
In some embodiments, the control device 300 further comprises:
the second acquisition module is used for acquiring the identification of each functional module sent by each household appliance when the connection is established with each household appliance, wherein each household appliance is provided with the functional module corresponding to the identification of each functional module;
the first establishing module is used for establishing the corresponding relation between the identification of each functional module and each household appliance;
and the first display module is used for displaying the corresponding relation in the display interface.
In some embodiments, the control device 300 further comprises:
the third acquisition module is used for acquiring first setting information of a user, wherein the first setting information is used for setting the identification of each functional module;
the fourth acquisition module is used for acquiring second setting information of the user, wherein the second setting information is used for setting each household appliance corresponding to the identifier of each functional module;
the storage module is used for storing the corresponding relation between the identification of each functional module and each household appliance;
and the second display module is used for displaying the corresponding relation in the display interface.
In some embodiments, the target function module comprises one of: camera, microphone, loudspeaker, orientation module, networking module, display screen.
It should be noted that, in the embodiment of the present application, if the control method is implemented in the form of a software functional module and sold or used as a standalone product, the control method may also be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or portions thereof contributing to the prior art may be embodied in the form of a software product stored in a storage medium, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the present application are not limited to any specific combination of hardware and software.
Accordingly, an embodiment of the present application provides a storage medium, on which a computer program is stored, wherein the computer program is executed by a processor to implement the steps in the control method provided in the above embodiment.
The embodiment of the application provides an electronic device; fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application, and as shown in fig. 4, theelectronic device 400 includes: aprocessor 401, at least onecommunication bus 402, auser interface 403, at least oneexternal communication interface 404, amemory 405. Wherein thecommunication bus 402 is configured to enable connective communication between these components. Theuser interface 403 may include a display screen, and theexternal communication interface 404 may include a standard wired interface and a wireless interface, among others. Theprocessor 401 is configured to execute a program of the control method stored in the memory to implement the steps in the control method provided in the above-described embodiment.
Here, it should be noted that: the above description of the storage medium and the electronic device embodiments is similar to the description of the method embodiments described above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the embodiments of the storage medium and apparatus of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, object, or apparatus that comprises the element.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated units described above in the present application may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present application may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a controller to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The above description is only for the embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.