Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Fig. 1 is a flowchart of an optional setting method of a control authority based on an intelligent home control system according to an embodiment of the present invention, and as shown in fig. 1, the flowchart includes the following steps:
step S102, acquiring schedule information of family members in a target area, wherein the schedule information is used for indicating one or more temporary users to be located in the target area within a specified time period;
that is, the visiting time, the leaving time and the personal information of one or more temporary users can be obtained according to the schedule information.
Step S104, generating prompt information according to the acquired schedule information, and sending the prompt information to a client of a family member who allows setting of the control authority of the temporary user, wherein the control authority is the control authority of the temporary user on equipment in the target area;
step S106, receiving confirmation information sent by the client, wherein the confirmation information is used for indicating whether the client allows setting the control authority of the temporary user to the equipment within the specified time.
According to the invention, schedule information of family members in a target area is acquired, wherein the schedule information is used for indicating that one or more temporary users are located in the target area within a specified time period; generating prompt information according to the acquired schedule information, and sending the prompt information to a client of a family member allowed to set the control authority of the temporary user, wherein the control authority is the control authority of the temporary user on equipment in the target area; receiving confirmation information sent by the client, wherein the confirmation information is used for indicating whether the client allows setting of the control authority of the temporary user to the equipment within the appointed time, so that the problems that in the related technology, a family member needs to manually set the control authority of the family equipment for the temporary user, the process is complicated and the like are solved, the control authority of the temporary user to the family equipment does not need to be manually set, and the automatic setting of the control authority of the temporary user is realized according to the schedule information of the family member.
The step S104 may be implemented in various ways, and in an alternative embodiment, the following scheme may be implemented: acquiring keyword information from the schedule information according to a preset rule; and generating the prompt information according to the keyword information, namely presetting which keyword information can be extracted, and further generating the prompt information which can be sent to the client of the family member allowed to set the control authority of the temporary user according to the keyword information.
The schedule information may be obtained by at least one of the following ways: acquiring the schedule information input by one or more family members; and acquiring the schedule information from the accounts of the one or more family members.
In the embodiment of the invention, before sending the prompt message to the client allowing to set the control authority of the temporary user, the setting levels of a plurality of family members corresponding to the target area are further determined; according to the indication of the setting level, determining the family members which are allowed to set the control authority of the temporary user from the plurality of family members, that is, in general, some family members in the plurality of family members can allow the control authority of the temporary user to be set, and of course, all family members can allow the control authority of the temporary user to be set.
Optionally, after receiving the acknowledgement information sent by the client, the method further includes: and under the condition that the confirmation information indicates that the client side allows the setting of the control authority of the temporary user on the equipment within the specified time, determining whether the temporary user is an existing account, if so, activating the existing account of the temporary user, and if not, registering the account for the temporary user.
Further, the prompt message further includes: information allowing the client to control the permission level of the temporary user, where different permission levels correspond to different settings in the target area, for example, a first level may process all home devices in the target area, a second area may process some home devices in the target area, and a third level may only control a specific device in the target area.
The control authority of the embodiment of the invention comprises the following steps: the intelligent home equipment has the switching authority, the function control authority and the like.
According to the technical scheme of the embodiment of the invention, the visiting information (the visiting information can specifically comprise the name and visiting time of the visiting user) can be generated according to the schedule information of the user (also called schedule information, also called schedule information of the embodiment of the invention), the control authority of the equipment (such as intelligent home equipment) can be automatically configured for the visiting user (also called temporary visitor), the actual operation process can also be the control authority of the equipment can be automatically configured for the visiting user directly according to the schedule information of the user, the operation of family member users of the intelligent home operation system can be further reduced, the situation that the user forgets to configure the control authority of the equipment for the visiting user is avoided, and the visiting user cannot use the intelligent home equipment.
In the embodiment of the invention, the key information required for configuring the control authority is extracted according to the schedule information, and the visiting information of the visiting user is generated, and the visiting information can be identified by the smart home operating system and is used for configuring the control authority of the smart home device.
It should be noted that, in the process of configuring the control authority of the device for the visiting user, the visiting information is required to be examined and approved and whether the visiting user is a historical user is judged, the examination and approval of the visiting information can effectively improve the security of the smart home, the judgment whether the visiting user is the historical user is matched with the setting possibly stored by the historical user, the repetition of authority setting is reduced, and the efficiency of setting the control authority is improved.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The embodiment further provides a device for setting the control authority based on the smart home control system, and the device is used for implementing the above embodiments and preferred embodiments, and the description of the device is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 2 is a block diagram of a structure of an optional setting device for setting a control authority based on an intelligent home control system according to an embodiment of the present invention, and as shown in fig. 2, the setting device includes:
an obtaining module 20, configured to obtain schedule information of family members in a target area, where the schedule information is used to indicate that one or more temporary users are located in the target area within a specified time period;
the generating module 22 is configured to generate prompt information according to the acquired schedule information;
a sending module 24, configured to send the prompt message to a client of a family member that allows setting of a control authority of the temporary user, where the control authority is the control authority of the temporary user on a device located in the target area;
a receiving module 26, configured to receive acknowledgement information sent by the client, where the acknowledgement information is used to indicate whether the client allows setting of the control authority of the temporary user on the device within the specified time.
According to the invention, schedule information of family members in a target area is acquired, wherein the schedule information is used for indicating that one or more temporary users are located in the target area within a specified time period; generating prompt information according to the acquired schedule information, and sending the prompt information to a client of a family member allowed to set the control authority of the temporary user, wherein the control authority is the control authority of the temporary user on equipment in the target area; receiving confirmation information sent by the client, wherein the confirmation information is used for indicating whether the client allows setting of the control authority of the temporary user to the equipment within the appointed time, so that the problems that in the related technology, a family member needs to manually set the control authority of the family equipment for the temporary user, the process is complicated and the like are solved, the control authority of the temporary user to the family equipment does not need to be manually set, and the automatic setting of the control authority of the temporary user is realized according to the schedule information of the family member.
In the embodiment of the present invention, the generating module is further configured to obtain keyword information from the schedule information according to a preset rule; and generating the prompt information according to the keyword information, namely presetting which keyword information can be extracted, and further generating the prompt information which can be sent to the client of the family member allowed to set the control authority of the temporary user according to the keyword information.
The schedule information acquiring process, the acquiring module, is further configured to: acquiring the schedule information input by one or more family members; and acquiring the schedule information from the accounts of the one or more family members.
In the embodiment of the present invention, before sending the prompt message to the client allowing to set the control authority of the temporary user, the obtaining module is further configured to further determine the setting levels of the plurality of family members corresponding to the target area; according to the indication of the setting level, determining the family members which are allowed to set the control authority of the temporary user from the plurality of family members, that is, in general, some family members in the plurality of family members can allow the control authority of the temporary user to be set, and of course, all family members can allow the control authority of the temporary user to be set.
Optionally, the receiving module 26 is further configured to: and under the condition that the confirmation information indicates that the client side allows the setting of the control authority of the temporary user on the equipment within the specified time, determining whether the temporary user is an existing account, if so, activating the existing account of the temporary user, and if not, registering the account for the temporary user.
Further, the prompt message further includes: information allowing the client to control the permission level of the temporary user, where different permission levels correspond to different settings in the target area, for example, a first level may process all home devices in the target area, a second area may process some home devices in the target area, and a third level may only control a specific device in the target area.
The control authority of the embodiment of the invention comprises the following steps: the intelligent home equipment has the switching authority, the function control authority and the like.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
In order to better understand the configuration flow of the control authority, the following explains the technical solutions with reference to the preferred embodiments, but the technical solutions of the embodiments of the present invention are not limited.
The invention provides a method for setting control authority of equipment based on a smart home operating system, which comprises the steps of extracting schedule information of family member users in the smart home operating system, obtaining personal information, visiting time, leaving time and other visiting information of temporary visitors, and automatically setting the control authority of the smart home equipment for the temporary visitors through the visiting information.
Fig. 3 is a flowchart of a configuration method of control authority according to a preferred embodiment of the present invention, as shown in fig. 3, including:
step S301, acquiring schedule information of family member users in an intelligent family operating system;
step S302, extracting key information and generating visiting information of the temporary visitor according to the schedule information;
in the preferred embodiment of the invention, the schedule information of the family member user in the intelligent family operating system is firstly acquired, the intelligent family operating system can directly acquire the schedule information of the family member user terminal, and also can acquire the information of memorandum, short message, mail and the like of the user terminal and generate the schedule information based on the information.
In an optional embodiment, the smart phone of the user a is installed with a client of the smart home operating system, the user a is a home user of the smart home operating system, and the client acquires a schedule reminder in a schedule client in the smart phone of the user a and generates schedule information, where the schedule information may be a single-person schedule, such as: guest B, 2019.6.1 plays with her home. It can also be a multi-person schedule, such as: guests C, D, E, 2019.4.1 are played at home for 2 days.
In another alternative embodiment, the client obtains the mail information of the user a, and when the preset characters are recognized, such as the character information of "visiting", "home and live", and the like, extracts the corresponding visitor information, date information, and the like, and generates the schedule information, such as: guest F, 2019.3.1 to Jing lived for 3 days.
Optionally, the retrieved schedule information may include, but is not limited to, the name of the casual visitor, the visit location, the visit time, and the departure time.
In addition to the above information, if the name, the head portrait, the mobile phone number, and the like of the temporary visitor exist in the information such as the business card, the address book, and the like in the mobile phone of the user a, the client of the smart home operating system may also obtain the information as schedule information.
Optionally, the visiting information is generated according to the acquired schedule information and a preset visiting information format.
If the preset visiting information format is assumed as follows: the name + visiting place + visiting time + leaving time, and the obtained visiting information includes name F, visiting place "home 1", visiting time "2019.4.1 am 8 pm", and leaving time "2019.4.2 pm 3 pm", and according to the format of the visiting information, the visiting information can be generated: f, 1,2019.4.1 am 8 am at home, 2019.4.2 pm 3 am.
Based on the format of the visiting information, generally, when the schedule information is obtained in step 101, the client may determine which schedule information should be obtained according to a preset format of the visiting information.
The generated visiting information is used for reminding the user, for example, the visiting information can be displayed on an app interface, and a prompt is displayed: is device control authority granted to the visitor? If the user can click yes or no, deleting the visiting information; if the user clicks yes, the client side of the smart home operating system sends the visiting information to the server of the smart home operating system.
Step S303, judging whether the family user member has the authority setting qualification, if so, turning to step S304, and if not, turning to step S305;
it should be noted that, the smart home operating system generally has a plurality of users, including a family member user and a temporary visitor, wherein some family member users are set to be able to perform permission setting on the smart home device, and the permissions of the family member users are also classified into levels, for example, a first user having the highest permission setting qualification, a second user having the next permission setting qualification, and the like.
It should be noted that the user a may be a user qualified for setting a right, or may not be a user qualified for setting a right. For example, although a child in a family member does not have the authority setting qualification, but a guest may visit, information of the child guest may be determined by obtaining a schedule in a smart terminal such as a child mobile phone, a tablet, or a watch, but since the child does not have the authority setting qualification, the generated visiting data is transmitted to a first user (e.g., a parent of the child) of the smart home operating system in a next step for setting the authority of the temporary guest.
Step S304, judging whether the control authority of the equipment is set for the temporary visitor, if so, turning to step S306, and if not, ending;
step S305, sending the visiting information to the first user with the highest authority setting qualification;
step S306, judging whether the temporary visitor is an existing account, if so, turning to step S307, and if not, turning to step S308;
step S307, activating a temporary visitor account;
step S308, registering an account for the temporary visitor according to the visiting information;
and step S309, setting equipment control authority for the temporary visitor according to the visiting information.
Specifically, in the smart home operating system, the control authority of the temporary visitor to the smart home device is set according to the generated visiting information. The specific substeps are as follows:
step S309-1, the server generates approval information in a preset format according to the visiting information and sends the approval information to the client of the family user with the device control authority setting qualification;
the server first generates approval information in a predetermined format according to the visiting information, as shown in fig. 4, the approval information generally includes: the family user information of the visiting information and the visiting information content are generated.
Optionally, as shown in fig. 5, the approval information may further include a selection of a temporary guest device control permission level, and in one example, when the family member user clicks yes, a next dialog box may pop up to ask the user to select a permission level, such as a level one, a level two, or the like.
The permission level can be a permission range preset by the first user, for example, the first level can control all smart home devices, the second level can control all devices except the smart door access, and the third level can control some devices.
Further, the server transmits the generated approval information to the client of the home user qualified for the device control authority setting.
In general, the smart home operating system server stores a mapping relationship between the home member user and the authority setting qualification, and can determine the home member user having the setting qualification of the device control authority according to the mapping relationship.
S309-2, the client of the family user with the device control authority setting qualification sends the confirmation information of the approval information to the server;
the confirmation information of the approval information at least comprises visiting information, and if the authority level of the temporary visitor is selected by the family user with the qualification set by the device control authority, the confirmation information also comprises the authority level of the temporary visitor. Such as: reddish week, peony cell, 2019.4.1.8:00,2019.4.1.14:00, grade three.
And the substep S309-3, the server sets the control authority of the temporary visitor to the intelligent home equipment according to the received confirmation information.
Specifically, the server registers an account in the smart home operating system by using the name of the visitor in the confirmation message, the validity period of the account is time data in the confirmation message, and the device control authority of the account is level data in the confirmation message.
Furthermore, the server stores in advance authority configuration information composed of the authority levels and mapping relations, such as corresponding device control priorities, device control ranges and the like, and directly completes setting of the device control ranges, the priorities and the like for the account according to the mapping relations included in the levels.
For example, the server registers an ID and a password for the temporary visitor F according to the name of the temporary visitor, and sets the authority limit of the visitor F as follows according to the time in the visiting information: 2019.4.1.8:00 through 2019.4.1.14:00, i.e., the permissions of guest F take effect at 2019.4.1.8:00 and fail at 2019.4.1.14:00, the scope and priority of guest F control devices is automatically configured according to level three. The password can be sent to the visitor through the communication information of the temporary visitor F, for example, a short message is sent to the temporary visitor F according to the mobile phone number of the temporary visitor F, the temporary visitor F can download the client of the intelligent home operating system by self, and the client enters an account through the name and the received password to realize the control of the intelligent home equipment.
In another optional embodiment, if the server detects that the visitor F does not log in the account within a predetermined time from the time when the account is valid, if the account authority does not log in within one hour, the server invalidates the visitor account authority.
Before permission setting is carried out on the temporary visitor, whether the name of the temporary visitor in the visiting information is a stored user of the smart home operating system or not can be judged, if yes, the temporary permission of the temporary visitor user account is started, and time limit setting of the temporary permission is carried out according to the visiting time and the leaving time in the visiting information. In this case, the server does not need to register a new account for the visitor again, and for the visitor, the intelligent home client can be accessed through the name ID and the password set previously, so as to realize control over intelligent home equipment, such as remote starting of an air conditioner, reservation of an electric cooker, reservation of a washing machine, and the like.
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, acquiring schedule information of family members in a target area, wherein the schedule information is used for indicating that one or more temporary users are located in the target area within a specified time period;
s2, generating prompt information according to the acquired schedule information, and sending the prompt information to a client of a family member who allows setting of the control authority of the temporary user, wherein the control authority is the control authority of the temporary user on equipment in the target area;
and S3, receiving confirmation information sent by the client, wherein the confirmation information is used for indicating whether the client allows setting the control authority of the temporary user to the equipment within the specified time.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, acquiring schedule information of family members in a target area, wherein the schedule information is used for indicating that one or more temporary users are located in the target area within a specified time period;
s2, generating prompt information according to the acquired schedule information, and sending the prompt information to a client of a family member who allows setting of the control authority of the temporary user, wherein the control authority is the control authority of the temporary user on equipment in the target area;
and S3, receiving confirmation information sent by the client, wherein the confirmation information is used for indicating whether the client allows setting the control authority of the temporary user to the equipment within the specified time.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.