Disclosure of Invention
The invention mainly aims to provide a device control method, a device, an electronic device and a storage medium, which are used for solving the problem that the data authority of the interconnected device is not effectively controlled in the prior art, so that the interconnected device carries out operation of corresponding authority according to the biological characteristics of a user, and the privacy of the interconnected device is improved.
In a first aspect, the present invention provides an apparatus control method, including:
a first terminal collects first user request information, wherein the first user request information comprises first user permission information;
the first terminal sends the first user permission information to a second terminal;
the second terminal collects second user request information, wherein the second user request information comprises a second user operation instruction and second user permission information;
judging whether the first user authority information is matched with the second user authority information;
and if the first user authority information is matched with the second user authority information, the second terminal executes the second user operation instruction.
Optionally, the first user permission information is voiceprint information or password information.
Optionally, the step of sending, by the first terminal, the first user right information to the second terminal includes:
and the first terminal sends the encrypted first user permission information to the second terminal.
Optionally, the step of acquiring, by the first terminal, first user request information, where the first user request information includes first user permission information includes:
the first user request information also comprises a first user operation instruction;
and responding to a first user operation instruction, and editing the first user permission information.
Optionally, the step of sending, by the first terminal, the first user right information to the second terminal includes:
and the first terminal sends the first user permission information to the second terminal through Bluetooth or a local area network.
According to a second aspect of the embodiments of the present invention, there is provided an apparatus control device including:
an acquisition module: the system is used for collecting user authority information;
a storage module: used for storing the user authority information;
a data transmission module: the acquisition module is used for sending the user authority information to the storage module;
a judging module: the system is used for judging whether the user authority information is matched or not;
an execution module: and executing the user operation instruction.
Optionally, the device control apparatus further includes:
an editing module: and editing the user authority information.
According to a third aspect of embodiments of the present invention, the present invention provides an electronic device, including a memory and a processor, where the memory is used for storing one or more computer instructions, and the one or more computer instructions, when executed by the processor, implement the device control method of any one of the first aspect.
According to a fourth aspect of the embodiments of the present invention, there is provided a storage medium in which a program is stored, the program implementing the apparatus control method according to any one of the first aspects described above when executed by a computer.
Compared with the prior art, one or more embodiments in the above scheme can have the following advantages or beneficial effects:
according to the invention, the user permission data is collected, and the user permission data transmission is realized among the interconnection equipment, so that the problem that the data permission of the interconnection equipment is not effectively controlled in the prior art is solved, the interconnection equipment is enabled to operate with corresponding permission according to the biological characteristics of the user, and the privacy of the interconnection equipment is improved.
Detailed Description
The following detailed description of the embodiments of the present invention will be provided with reference to the accompanying drawings and examples, so that how to apply the technical means to solve the technical problems and achieve the corresponding technical effects can be fully understood and implemented. The embodiments of the present invention and the features of the embodiments can be combined with each other without conflict, and the formed technical solutions are within the scope of the present invention.
Example one
As shown in fig. 1, an embodiment of the present invention provides an apparatus control method including the following steps S101 to S105:
step S101: the first terminal collects first user request information, wherein the first user request information comprises first user permission information.
The first terminal is used for requesting information such as voiceprint information of a user, the voiceprint information is input through a microphone of the mobile phone, for example, a section of text is provided, multiple times of reading are conducted according to the provided text, voiceprint characteristics are extracted, a voiceprint model is successfully created, and the voiceprint model is added into a voiceprint library. The first user request information may also be a password entered by the user, such as a numeric password or an alphabetic password. The first user request information may further include a first user operation instruction, which may be edited by the user after the user inputs the authority information, and the first user operation instruction may modify a password set by the user, for example. Meanwhile, the user can set the authority information of other users, such as the authority of photos respectively seen by grandpa, father and mom.
Step S102: the first terminal sends the first user permission information to the second terminal.
The second terminal is, for example, an intelligent television, after the user inputs the authority information in the mobile phone, the user authority information is transmitted to the intelligent television through the local area network or the Bluetooth, and the user authority information can be encrypted during transmission, so that the data security is improved. After receiving the user authority transmitted by the mobile phone, the smart television decrypts and stores the user authority information if the user authority information is confidential.
Step S103: and the second terminal acquires second user request information, wherein the second user request information comprises a second user operation instruction and second user permission information.
For example, the second user permission information is voiceprint characteristics in user voice instructions collected by the smart television, and the second user operation instructions are operation instructions in the user voice instructions, for example, an album is opened. Or, another collection method is, for example, that the user uses a remote controller to input a password and an operation instruction.
Step S104: and judging whether the first user authority information is matched with the second user authority information.
And judging whether the voiceprint characteristics of the user collected by the smart television are matched with the voiceprint characteristics input by the user through the mobile phone or not, and executing the operation instruction of the user if the voiceprint characteristics are matched with the voiceprint characteristics input by the user through the mobile phone.
Step S105: and if the first user authority information is matched with the second user authority information, the second terminal executes a second user operation instruction.
If the voiceprint features of the user collected by the smart television are matched with the voiceprint features input by the user through the mobile phone, executing an operation instruction according to the user permission, for example, dad sends an instruction for checking an album through the smart television, and the smart television requests the mobile phone to obtain and display the picture information which dad has the permission to see. Or the mom sends an instruction for viewing the photo album through the smart television, and the smart television requests the mobile phone to obtain and display the picture information which the mom has the right to view.
Example two
As shown in fig. 2, an embodiment of the present invention provides an apparatus control device including:
an acquisition module: the system is used for collecting user authority information;
a storage module: used for storing the user authority information;
a data transmission module: the acquisition module is used for sending the user authority information to the storage module;
a judging module: the system is used for judging whether the user authority information is matched or not;
an execution module: and executing the user operation instruction.
In some embodiments, the device control apparatus further comprises:
an editing module: for editing the user right information.
EXAMPLE III
The embodiment of the invention provides an electronic device, which may be a mobile phone, a tablet computer, or the like, and includes a memory and a processor, where the memory is used for storing one or more computer instructions, and the one or more computer instructions, when executed by the processor, implement the device control method in the above embodiment.
Wherein, the processor is used for executing all or part of the steps in the device control method in the first embodiment. The memory is used to store various types of data, such as voiceprint data and the like.
The Processor may be an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a controller, a microcontroller, a microprocessor, or other electronic components, and is configured to execute the apparatus control method in the first embodiment.
The Memory may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk.
Example four
Each functional unit in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes 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 steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program check codes, such as a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
In the embodiments provided in the present disclosure, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
It should be noted that, in the present disclosure, 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, article, or apparatus that comprises the element.
Although the embodiments disclosed in the present disclosure are described above, the above description is only for the convenience of understanding the present disclosure, and is not intended to limit the present disclosure. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the disclosure as defined by the appended claims.