A control method and device for intelligent device, device and storage medium
By assigning virtual sub-accounts to each family under the administrator account and establishing corresponding relationships, the problem of slow response speed and complicated permission control when the administrator account manages multiple household smart devices is solved, and the efficiency and user experience of smart device control are improved. .
Patent Information
- Application Number
- CN202010998198.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-21
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-09-21
AI Technical Summary
In the existing technology, the administrator account manages all home smart devices, resulting in entry information being stored together, resulting in slow response speed for obtaining the device list, complicated device management, and confusing permission control.
By assigning virtual sub-accounts to each family under the administrator account and establishing a corresponding entry list to represent the relationship between the administrator account, family identification and virtual sub-accounts, control of smart devices is achieved.
It improves the efficiency of item query, reduces the time of item query, and improves the speed and user experience of smart device control.
Smart Images

Figure CN112307460B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to but are not limited to electronic technology, and in particular, to a control method and apparatus, device, and storage medium for a smart device. Background Art
[0002] In the related art, an administrator account is used to manage all the smart devices in the home, which results in the item information of all smart devices being stored together, which in turn leads to slow response speed in obtaining the device list, complicated and confusing device management and permission control, etc. Therefore, how to improve the efficiency of item query, reduce the time of item query, increase the speed of controlling smart devices, and enhance user experience are issues that technicians in this field need to focus on. Summary of the invention
[0003] In view of this, the embodiments of the present application provide a control method and apparatus, device, and storage medium for a smart device to solve at least one problem existing in the related art.
[0004] The technical solution of the embodiment of the present application is implemented as follows:
[0005] On the one hand, an embodiment of the present application provides a method for controlling a smart device, the method comprising:
[0006] The server receives a sub-account creation request initiated by an administrator account of an engineering application; the administrator account is associated with family identifiers of at least two families to manage at least two smart devices of each family; the sub-account creation request carries information for creating a virtual sub-account for the administrator account according to the family identifier;
[0007] In a case where it is determined that the administrator account enables the virtual sub-account, at least one virtual sub-account is allocated to each family under the administrator account;
[0008] Establishing a corresponding entry for each of the families, and obtaining a list including at least two corresponding entries, wherein the corresponding entries are used to represent the corresponding relationship between the administrator account, the family identifier, and the virtual sub-account;
[0009] The family identifier associated with the administrator account is returned to the engineering application to achieve control over the smart device.
[0010] On the other hand, an embodiment of the present application provides a control device for a smart device, the device comprising:
[0011] A first receiving module is used to receive a sub-account creation request initiated by an administrator account of an engineering application; the administrator account is associated with family identifiers of at least two families to manage at least two smart devices in each of the families; the sub-account creation request carries information for creating a virtual sub-account for the administrator account according to the family identifier;
[0012] An allocation module, configured to allocate at least one virtual sub-account to each family under the administrator account when it is determined that the administrator account enables the virtual sub-account;
[0013] A creation module, used to establish a corresponding entry for each of the families, and obtain a list including at least two corresponding entries, wherein the corresponding entries are used to represent the corresponding relationship between the administrator account, the family identifier and the virtual sub-account;
[0014] A feedback module is used to return the family identifier associated with the administrator account to the engineering application to achieve control of the smart device.
[0015] On the other hand, an embodiment of the present application provides a control device for a smart device including a memory and a processor, wherein the memory stores a computer program that can be executed on the processor, and the processor implements the steps in the above method when executing the program.
[0016] On the other hand, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and the computer program implements the steps in the above method when executed by a processor.
[0017] The control method of the smart device provided in the embodiment of the present application, on the one hand, creates a virtual sub-account for the administrator account according to the family identification, so that the management authority of the administrator account can be divided through the virtual sub-account. On the other hand, a corresponding entry is established for each of the families, and a list including at least two corresponding entries is obtained. The corresponding entry is used to characterize the corresponding relationship between the administrator account, the family identification and the virtual sub-account. In this way, all the corresponding entries of the families can be split to obtain a list of multiple corresponding entries. In this way, the entry query can be performed according to the list, the efficiency of the entry query is improved, and the time of the entry query is reduced, so that the speed of controlling the smart device can be improved and the user experience can be enhanced. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 This is a schematic diagram of the implementation flow of the control method of the smart device according to the embodiment of the present application;
[0019] Figure 2 This is a schematic diagram of the implementation flow of the control method of the smart device according to the embodiment of the present application;
[0020] Figure 3 This is a schematic diagram of the implementation flow of the control method of the smart device according to the embodiment of the present application;
[0021] Figure 4 This is a schematic diagram of the implementation flow of the control method of the smart device according to the embodiment of the present application;
[0022] Figure 5 This is a schematic diagram of the implementation flow of the control method of the smart device according to the embodiment of the present application;
[0023] Fig. 6A This is a schematic diagram of the implementation flow of the control method of the smart device according to the embodiment of the present application;
[0024] Figure 6B This is a schematic diagram of the implementation flow of the control method of the smart device according to the embodiment of the present application;
[0025] Figure 7 This is a schematic diagram of the composition structure of the control device of the smart device according to the embodiment of the present application;
[0026] Figure 8 A schematic diagram of a hardware entity of a control device of a smart device in an embodiment of the present application. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions of the present application are further elaborated in detail below in conjunction with the drawings and embodiments. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0028] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be 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.
[0029] If similar descriptions of "first / second" appear in the application documents, the following instructions are added. In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0030] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0031] The technical solution of the present application is further described in detail below with reference to the accompanying drawings and embodiments.
[0032] The present application provides a method for controlling a smart device. Figure 1 Schematic diagram of the implementation process of the control method of the smart device in the embodiment of the present application. Figure 1 As shown, the method includes:
[0033] Step S101, the server receives a sub-account creation request initiated by an administrator account of an engineering application; the administrator account is associated with at least two family identifiers to manage at least two smart devices of each family; the sub-account creation request carries information for creating a virtual sub-account for the administrator account according to the family identifier;
[0034] Here, the server is a logical server, and the logical server includes at least one physical server; each of the physical servers can be used to implement a function. For example, the logical server includes a scene server and / or a device server.
[0035] Here, the engineering application is an application that can initiate a request. The request can be a request to create an account, a request to activate a smart device, or a request to bind a scene.
[0036] Here, the administrator account is used to manage all smart devices and has the highest control authority. Here, the sub-account is used to manage some smart devices. Here, the number of some smart devices is greater than or equal to 1. Here, the sub-account creation request is used to create a sub-account under the administrator account to manage some smart devices under the sub-account. Here, the sub-account creation request needs to be initiated by an account with the highest control authority, and the management authority of the created sub-account over some smart devices is functionally equivalent to that of the administrator account. For example, the sub-account can also be used to perform operations such as activation binding, parameter control, device sharing, and device unbinding on the managed smart devices.
[0037] Here, the family identifier is an identifier that represents a family. For example, a residential building includes 6 families, A, B, C, D, E and F. The family identifier corresponding to Family A is H1, the family identifier corresponding to Family B is H2, the family identifier corresponding to Family C is H3, the family identifier corresponding to Family D is H4, the family identifier corresponding to Family E is H5, and the family identifier corresponding to Family F is H6.
[0038] In some embodiments, multiple clients may also be associated with the administrator account, and each of the clients may include at least two family identifiers to manage at least two smart devices in each family, wherein each of the clients corresponds to an application identifier, and the sub-account creation request may carry information for creating a virtual sub-account for the administrator account according to the application identifier and the family identifier.
[0039] Step S102, when it is determined that the administrator account enables the virtual sub-account, at least one virtual sub-account is allocated to each family under the administrator account;
[0040] Here, each of the virtual sub-accounts corresponds to each room identifier in each family identifier. Each family includes at least one room, and each room corresponds to a room identifier.
[0041] For example, Table 1 is a correspondence table of administrator accounts, family IDs, room IDs and virtual sub-accounts. As shown in Table 1, an administrator account Ping1 can correspond to a family A; family A includes four rooms, corresponding to four room IDs Zi, Chou, Yin and Mao; room ID Zi corresponds to virtual sub-account R1, room ID Chou corresponds to virtual sub-account R2, room ID Yin corresponds to virtual sub-account R3 and room ID Mao corresponds to virtual sub-account R4.
[0042] Table 1 Correspondence table between administrator account, family ID, room ID and virtual sub-account
[0043] Administrator account Family logo Room identification Virtual Sub-account Ping1 First son R1 Ping1 First ugly R2 Ping1 First Yin R3 Ping1 First Mao R4
[0044] In some embodiments, when it is determined that the administrator account has not enabled the virtual sub-account, the smart device is controlled through the administrator account.
[0045] Step S103, establishing a corresponding entry for each of the families, and obtaining a list including at least two corresponding entries, wherein the corresponding entry is used to represent the corresponding relationship between the administrator account, the family identifier, and the virtual sub-account;
[0046] For example, the content of each entry may be a row of information as shown in Table 1.
[0047] Step S104, returning the home identifier associated with the administrator account to the engineering application to achieve control over the smart device.
[0048] For example, the engineering application is an engineering application. After logging in to the engineering application with an administrator account, create a home, a room, add virtual devices, and determine whether the current administrator account has enabled a virtual sub-account. If the virtual sub-account is enabled, assign a virtual sub-account to each home under the administrator account, and return the home identifier associated with the administrator account to the engineering application.
[0049] The control method of the smart device provided in the embodiment of the present application, on the one hand, creates a virtual sub-account for the administrator account according to the family identifier, so that the management authority of the administrator account can be divided through the virtual sub-account. On the other hand, a corresponding entry is established for each of the families, and a list including at least two corresponding entries is obtained, and the corresponding entry is used to characterize the corresponding relationship between the administrator account, the family identifier and the virtual sub-account. In this way, all the corresponding entries of the families can be split to obtain a list of multiple corresponding entries. In this way, the entry query can be performed according to the list, the efficiency of the entry query is improved, and the time of the entry query is reduced, so that the speed of controlling the smart device can be improved and the user experience can be enhanced.
[0050] The present application provides a method for controlling a smart device. Figure 2 Schematic diagram of the implementation process of the control method of the smart device in the embodiment of the present application. Figure 2 As shown, the method includes:
[0051] Step S201, the server receives a sub-account creation request initiated by an administrator account of an engineering application; the administrator account is associated with family identifiers of at least two families to manage at least two smart devices in each of the families; the sub-account creation request carries information for creating a virtual sub-account for the administrator account according to the family identifier;
[0052] Here, the above step S201 corresponds to the above step S101, and the implementation method of the above step S101 can be referred to during implementation.
[0053] Step S202, when it is determined that the administrator account enables the virtual sub-account, at least one virtual sub-account is allocated to each family under the administrator account according to a specific account generation rule, wherein the specific account generation rule at least includes adding a family identifier and a random number;
[0054] Here, the specific account generation rule is a combination of a specific field, a separator, a format conversion of a family ID, and a random number. For example, the specific account generation rule is "jdiot"+"."+Long.toHexString(familyId).toUpperCase()+"."+6-digit random number.
[0055] Step S203, establishing a corresponding entry for each of the families, and obtaining a list including at least two corresponding entries, wherein the corresponding entry is used to represent the corresponding relationship between the administrator account, the family identifier, and the virtual sub-account;
[0056] Step S204, returning the home identifier associated with the administrator account to the engineering application to achieve control over the smart device.
[0057] Here, the above steps S203 and S204 correspond to the above steps S103 and S104 respectively, and the specific implementation methods of the above steps S103 and S104 may be referred to during implementation.
[0058] The control method of the smart device provided in the embodiment of the present application allocates at least one virtual sub-account to each family under the administrator account through a specific account generation rule, wherein the specific account generation rule at least includes adding a family identifier and a random number, so that the allocated virtual sub-account can be associated with the family identifier, so that the virtual sub-accounts with the same family identifier have the same prefix, which facilitates the management of the virtual sub-accounts of the same family.
[0059] The present application provides a method for controlling a smart device. Figure 3 Schematic diagram of the implementation process of the control method of the smart device in the embodiment of the present application. Figure 3 As shown, the method includes:
[0060] Step S301, the server receives a sub-account creation request initiated by an administrator account of an engineering application; the administrator account is associated with family identifiers of at least two families to manage at least two smart devices in each family; the sub-account creation request carries information for creating a virtual sub-account for the administrator account according to the family identifier;
[0061] Here, the above step S301 corresponds to the above step S101, and the implementation method of the above step S101 can be referred to during implementation.
[0062] Step S302, when it is determined that the administrator account enables the virtual sub-account, determining a corresponding family identifier for each family under the administrator account;
[0063] Here, the family identifier corresponds one-to-one to the family.
[0064] Step S303, assigning the same number of virtual sub-accounts to each family ID according to the number of rooms in each family;
[0065] Here, the virtual sub-accounts correspond to the number of the rooms one by one.
[0066] Step S304, establishing a corresponding entry for each of the families, and obtaining a list including at least two corresponding entries, wherein the corresponding entry is used to represent the corresponding relationship between the administrator account, the family identifier, and the virtual sub-account;
[0067] Step S305, returning the family identifier associated with the administrator account to the engineering application to achieve control of the smart device;
[0068] Here, the above steps S304 and S305 correspond to the above steps S103 and S104 respectively, and the specific implementation methods of the above steps S103 and S104 may be referred to during implementation.
[0069] In some embodiments, the server in the above steps S301 to S304 is an application server. After executing the above steps S301 to S304, the method further includes:
[0070] Step S306: The application server stores the list.
[0071] The control method of the smart device provided in the embodiment of the present application allocates the same number of virtual sub-accounts to each family ID according to the number of rooms in each family, so that a virtual sub-account can be allocated to each room, and the smart device in the corresponding room can be controlled by controlling each virtual sub-account. In this way, the control capability of the control area based on the room can be enhanced, the associated smart devices can be reduced, and the pertinence of the smart device control can be improved.
[0072] The present invention provides a method for controlling a smart device, the method comprising:
[0073] Step S310, the server receives a sub-account creation request initiated by an administrator account of the engineering application; the administrator account is associated with family identifiers of at least two families to manage at least two smart devices in each of the families; the sub-account creation request carries information for creating a virtual sub-account for the administrator account according to the family identifier;
[0074] Step S320, when it is determined that the administrator account enables the virtual sub-account, at least one virtual sub-account is allocated to each family under the administrator account;
[0075] Step S330, establishing a corresponding entry for each of the families, and obtaining a list including at least two corresponding entries, wherein the corresponding entry is used to represent the corresponding relationship between the administrator account, the family identifier, and the virtual sub-account;
[0076] Step S340, returning the family identifier associated with the administrator account to the engineering application to achieve control of the smart device;
[0077] Step S350, the server receives a smart device activation request initiated by the engineering application; the smart device activation request carries the administrator account and the family identifier; the smart device activation request is used to associate the smart device in the family with the virtual sub-account corresponding to the family identifier;
[0078] Here, after step S340, the administrator account is associated with the family identifier; after step S320, the family is associated with the virtual sub-account; and step S350 is used to associate the virtual sub-account with the smart device. In this way, the family identifier can be converted into a virtual sub-account, and the virtual sub-account can be associated with the smart device.
[0079] Step S360, determining at least one corresponding virtual sub-account from the list according to the family identifier;
[0080] Step S370, obtaining the identifiers of at least two smart devices in the family according to the family identifier;
[0081] Step S380: associate the identifier of each of the smart devices with at least one of the virtual sub-accounts.
[0082] In some embodiments, the identifier of the smart device is associated with the virtual sub-account in a one-to-one correspondence. For example, the smart curtain C1 is associated with the virtual sub-account R1, and the smart curtain C2 is associated with the virtual sub-account R2.
[0083] In other embodiments, the identifier of the smart device is associated with at least two virtual sub-accounts. For example, the central air conditioner T1 is associated with the virtual sub-account R1 and the virtual sub-account R2. In this way, the central air conditioner T1 can be controlled by controlling either the virtual sub-account R1 or the virtual sub-account R2.
[0084] The control method of the smart device provided in the embodiment of the present application associates the identification of each smart device with at least one virtual sub-account, so that the smart device can be managed through the virtual sub-account to improve the user experience.
[0085] The present application provides a method for controlling a smart device. Figure 4 Schematic diagram of the implementation process of the control method of the smart device in the embodiment of the present application. Figure 4 As shown, the method includes:
[0086] Step S401, the server receives a sub-account creation request initiated by an administrator account of an engineering application; the administrator account is associated with family identifiers of at least two families to manage at least two smart devices in each of the families; the sub-account creation request carries information for creating a virtual sub-account for the administrator account according to the family identifier;
[0087] Step S402, when it is determined that the administrator account enables the virtual sub-account, at least one virtual sub-account is allocated to each family under the administrator account;
[0088] Step S403, establishing a corresponding entry for each of the families, and obtaining a list including at least two corresponding entries, wherein the corresponding entries are used to represent the corresponding relationship between the administrator account, the family identifier, and the virtual sub-account;
[0089] Step S404, returning the family identifier associated with the administrator account to the engineering application to achieve control of the smart device;
[0090] Step S405, the server receives a smart device activation request initiated by the engineering application; the smart device activation request carries the administrator account and the family identifier; the smart device activation request is used to associate the smart device in the family with the virtual sub-account corresponding to the family identifier;
[0091] Step S406, determining at least one corresponding virtual sub-account from the list according to the family identifier;
[0092] Step S407, obtaining the identifiers of at least two smart devices in the family according to the family identifier;
[0093] Step S408, associating the identifier of each smart device with at least one of the virtual sub-accounts;
[0094] Step S409, receiving a parameter modification request sent by the smart device management application, wherein the parameter modification request carries an identifier of the smart device, a control parameter to be modified, and a corresponding target value;
[0095] Here, the smart device management application can control the switch of the smart device, and can also modify the control parameters when the smart device is turned on. For example, it can be a Xiaojingyu platform. Here, the control parameter can be the power of the smart device, or it can be the temperature of the smart device. For example, the corresponding target parameter can be to adjust the power of the smart induction cooker to 2000 watts, or to set the temperature of the smart air conditioner to 25 degrees Celsius.
[0096] Step S410, responding to the parameter modification request, modifying the value of the control parameter of the corresponding smart device to a target value according to the identifier of the smart device and the value of the control parameter to be modified;
[0097] Step S411: Return a parameter modification response to the smart device management application.
[0098] Here, the parameter modification response is used to indicate that the control parameter has been modified.
[0099] The control method of the smart device provided in the embodiment of the present application modifies the value of the control parameter of the corresponding smart device to a target value according to the identification of the smart device and the value of the control parameter to be modified. In this way, the value of the control parameter can be customized and the smart device corresponding to the specified identification can be adjusted to the control parameter, which is conducive to controlling the smart device and enhancing the user experience.
[0100] The present invention provides a method for controlling a smart device, the method comprising:
[0101] Step S501, the server receives a sub-account creation request initiated by an administrator account of an engineering application; the administrator account is associated with family identifiers of at least two families to manage at least two smart devices in each of the families; the sub-account creation request carries information for creating a virtual sub-account for the administrator account according to the family identifier;
[0102] Step S502, when it is determined that the administrator account enables the virtual sub-account, at least one virtual sub-account is allocated to each family under the administrator account;
[0103] Step S503, establishing a corresponding entry for each of the families, and obtaining a list including at least two corresponding entries, wherein the corresponding entry is used to represent the corresponding relationship between the administrator account, the family identifier, and the virtual sub-account;
[0104] Step S504, returning the family identifier associated with the administrator account to the engineering application;
[0105] Step S505, the server receives a smart device activation request initiated by the engineering application; the smart device activation request carries the administrator account and the family identifier; the smart device activation request is used to associate the smart device in the family with the virtual sub-account corresponding to the family identifier;
[0106] Step S506, determining at least one corresponding virtual sub-account from the list according to the family identifier;
[0107] Step S507, obtaining the identifiers of at least two smart devices in the family according to the family identifier;
[0108] Step S508, associating the identifier of each smart device with at least one of the virtual sub-accounts;
[0109] Step S509: the server receives a scene binding request initiated by the engineering application; the scene binding request carries the administrator account, family identifier and scene identifier;
[0110] Here, the scene binding request is used to set the control parameters of the smart device according to the scene identifier. Here, the scene identifier marks the scene to distinguish different scenes.
[0111] Step S510, determining at least one corresponding virtual sub-account from the list according to the family identifier;
[0112] Step S511, obtaining the identifiers of at least two smart devices managed under each of the virtual sub-accounts;
[0113] For example, as shown in Table 2, the virtual sub-account R1 manages smart devices A, B, C, and D.
[0114] Table 2 Correspondence between virtual sub-accounts and smart devices
[0115] Virtual Sub-account Smart devices R1 A R1 B R1 C R1 D
[0116] Step S512, setting control parameters of the smart device under each of the virtual sub-accounts according to the scenario identifier;
[0117] Here, each of the scene identifiers corresponds to a scene, and the scene includes control parameters of at least two smart devices. During implementation, the parameters of the smart devices can be set according to the control parameters.
[0118] For example, scene identifier S1 corresponds to scene 1, which includes the control parameters of three smart devices: smart air conditioner A, smart curtain B, and smart switch C. Among them, the control parameters of smart air conditioner A are 25 degrees Celsius, cooling, and air purification mode; the control parameters of smart curtain B are: opening at a uniform speed; the control parameters of smart switch C are: opening the porch switch.
[0119] Step S513, after the setting is completed, returning a scene binding response to the engineering application;
[0120] Here, the scene binding response is used to indicate that the scene binding is completed.
[0121] In some embodiments, the method further includes: step S514, receiving a scene management request sent by a smart device management application, wherein the scene management request carries a virtual sub-account and a scene triggering language;
[0122] Here, the scene management request is used to set the smart device to be managed in a virtual sub-account according to the scene trigger language. Here, the scene trigger language can be a voice or text including a scene keyword. For example, when the scene keyword is any one of the keywords "return" or "home" or a combination of the two keywords, the scene trigger language is: "I'm home" or "I'm home".
[0123] Step S515, determining a target scene identifier according to the scene triggering language;
[0124] For example, as shown in Table 3, when the scene identifier in the table is S1, it represents a homecoming scene, and the scene triggering languages "I'm home", "I'm home", "I'm ready to go home" and "I've set off and will be home soon" all indicate homecoming scenes, and all correspond to the scene identifier S1.
[0125] Table 3 Correspondence between scene triggering language and scene identifier
[0126] Scenario trigger language Scene Identification I'm home S1 I'm home now S1 I'm ready to go home S1 I've set out and will be home soon S1
[0127] Step S516, obtaining the identifier of the target smart device to be managed according to the virtual sub-account;
[0128] Here, the target smart device to be managed is a smart device whose parameters need to be controlled in the scene corresponding to the target scene identifier; and the identifier of the target smart device is an identifier corresponding to the target smart device.
[0129] Step S517, setting control parameters of the target smart device to be managed according to the target scene identifier and the identifier of the target smart device to be managed;
[0130] Step S518: Return a scene management response to the smart device management application.
[0131] Here, the scene management response may be used to indicate that the setting of the target scene corresponding to the target scene identifier has been completed, and may also be used to indicate the error reason why the setting of the target scene identifier has not been completed.
[0132] For example, the engineering application is an engineering application, and a scene binding request is initiated through the engineering application, and the request carries an administrator account, a family identifier F1 and a scene identifier S1; the server is a logical server, and the logical server includes physical servers such as scene servers and application servers; the scene server receives the scene binding request, calls the application server to convert the family identifier F1 in the administrator account into a virtual sub-account AC1, and returns the virtual sub-account AC1 to the scene server; the control parameters of each smart device under the virtual sub-account AC1 are set according to the scene identifier S1 carried in the request, and after the setting is completed, a response indicating that the scene binding is completed is returned to the engineering application.
[0133] For example, the smart device management application is the Xiaojingyu application, and the scene server receives a scene management request sent by the Xiaojingyu application. The scene management request includes the virtual sub-account AC1 to be managed and the scene trigger language "I have set off and will be home soon". The scene server determines the current operation on the target smart device to be managed in the virtual sub-account AC1 according to the virtual sub-account AC1 in the scene management request; detects the scene keyword "home" included in the scene trigger language, determines that the target scene identifier is BH1, and determines that the target scene is a homecoming scene; according to the scene identifier corresponding to the homecoming scene and the device identifier corresponding to the target smart device, sets the control parameters of the target smart device to be managed. After the setting is successful, a response indicating the completed setting is returned to the Xiaojingyu platform.
[0134] The control method of the smart device provided in the embodiment of the present application, on the one hand, sets the control parameters of the smart device under each of the virtual sub-accounts according to the scene identifier; in this way, the virtual sub-account can be bound to the application scene. On the other hand, the control parameters of the target smart device to be managed are set according to the target scene identifier and the identifier of the target smart device to be managed; in this way, the target smart device can be scene managed through the virtual sub-account. In this way, through scene binding and scene management, the application scene setting for the administrator account can be transformed into the application scene setting for the virtual sub-account, which improves the pertinence and efficiency of scene setting and enhances the user's experience of scene setting.
[0135] The smart device management application is the Xiaojingyu platform, in which the function of scene management is (joylinkcloud), the application identifier is appKey, the scene information is the scene identifier, the identifier of the smart device is the device information, and the server includes a scene server (estate_scene) and an application server (estate_app_server). For example, the present application embodiment provides a control method for a smart device. Figure 5 Schematic diagram of the implementation process of the control method of the smart device in the embodiment of the present application. Figure 5As shown, the method includes:
[0136] Step S51, log in to the engineering application (engineering APP) using an administrator account;
[0137] Step S52, create a home, a room, add smart devices, and allocate a virtual sub-account.
[0138] Here, before step S53, the method also includes determining whether the current administrator account has enabled the virtual sub-account. If the virtual sub-account is enabled, the server will add the virtual sub-account and other information under the family ID of the current family, and save the correspondence between the administrator account, family ID (familyId), and virtual sub-account to the server, and return the familyId to the engineering application.
[0139] The above steps S51 and S52 are a method for logging into an administrator account and creating a virtual sub-account for the administrator account.
[0140] Step S61, activating binding / control;
[0141] Step S62, virtual sub-account + activation binding, control, smart device management;
[0142] Step S63, adapting the virtual sub-account;
[0143] Step S64, activate binding, control, and smart device management.
[0144] The above steps S61 and S64 are a method for associating a virtual sub-account with a smart device.
[0145] For example, installation and maintenance personnel use the engineering APP to activate, bind, control, and manage smart devices. estate_app_server adapts the administrator account and familyId, converts it into the current family virtual sub-account, and calls the Xiaojingyu platform to activate, bind, control, and manage smart devices. Related interfaces complete related operations.
[0146] Step S71, setting the scene;
[0147] Step S72, subject account + appKey + family ID + scene information;
[0148] Step S73, virtual sub-account + appKey + family ID + scene information.
[0149] For example, the scene is set through the engineering APP, estate_scene calls estate_app_server to adapt the administrator account and family ID, converting them into the virtual sub-account of the current family, and estate_scene calls the joylinkcloud interface to complete the scene management.
[0150] The above steps S71 and S73 are a method for the virtual sub-account to set scenes for the associated smart devices.
[0151] The smart device management application is the Xiaojingyu platform, in which the function of scene management is (joylinkcloud), the application identifier is appKey, the scene information is the scene identifier, the identifier of the smart device is the device information, and the server includes a scene server (estate_scene) and an application server (estate_app_server). For example, the present application embodiment provides a control method for a smart device. Fig. 6A Schematic diagram of the implementation process of the control method of the smart device in the embodiment of the present application. Fig. 6A As shown, the method includes:
[0152] Step S601, smart device activation and binding;
[0153] Step S602, smart device activation binding authorization JD account + family ID + appKey + device information;
[0154] Step S603, the smart device is activated and bound to the JD account family ID + appKey + device information;
[0155] Step S604, adapting the virtual sub-account JD account + family ID;
[0156] Step S605, calling the Xiaojingyu platform to activate the binding interface virtual sub-account + appKey + device information;
[0157] Step S606: Return device binding information.
[0158] The smart device management application is the Xiaojingyu platform, in which the function of scene management is (joylinkcloud), the application identifier is appKey, the scene information is the scene identifier, the identifier of the smart device is the device information, and the server includes a scene server (estate_scene), a device server (estate_kernel), and an application server (estate_app_server). For example, the present application embodiment provides a control method for a smart device. Figure 6B Schematic diagram of the implementation process of the control method of the smart device in the embodiment of the present application. Figure 6B As shown, the method includes:
[0159] Step S610, setting the scene;
[0160] Step S620, administrator account + appKey + family ID + scene information;
[0161] Step S630, administrator account family identification;
[0162] Step S640, returning the virtual sub-account;
[0163] Step S650, calling the interface of the scene management function;
[0164] Here, the scene management function interface is called according to the virtual sub-account + appKey + scene information.
[0165] Step S660, return scene information.
[0166] Based on the foregoing embodiments, an embodiment of the present application provides a control device for an intelligent device, which includes the units included and the modules included in the units, and can be implemented by a processor in the control device of the intelligent device; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.
[0167] Figure 7 Schematic diagram of the structure of the control device of the smart device according to the embodiment of the present application. Figure 7 As shown, the apparatus 700 includes a first receiving module 701, an allocating module 702, a creating module 703 and a feedback module 704, wherein:
[0168] The first receiving module 701 is used to receive a sub-account creation request initiated by an administrator account of an engineering application; the administrator account is associated with family identifiers of at least two families to manage at least two smart devices in each of the families; the sub-account creation request carries information for creating a virtual sub-account for the administrator account according to the family identifier;
[0169] An allocation module 702, configured to allocate at least one virtual sub-account to each family under the administrator account when it is determined that the administrator account enables the virtual sub-account;
[0170] A creation module 703, configured to establish a corresponding entry for each of the families, and obtain a list including at least two corresponding entries, wherein the corresponding entries are used to represent the corresponding relationship between the administrator account, the family identifier, and the virtual sub-account;
[0171] The feedback module 704 is used to return the family identifier associated with the administrator account to the engineering application to achieve control over the smart device.
[0172] In some embodiments, the allocation module 702 is further used to allocate at least one virtual sub-account to each family under the administrator account according to a specific account generation rule, wherein the specific account generation rule at least includes adding a family identifier and a random number.
[0173] In some embodiments, the allocation module 702 also includes a determination unit and an allocation unit, wherein: the determination unit is used to determine a corresponding family identifier for each family under the administrator account when it is determined that the administrator account enables the virtual sub-account; the allocation unit is used to allocate the same number of virtual sub-accounts to each family identifier according to the number of rooms in each of the families.
[0174] In some embodiments, the server is an application server, and the device 700 is further used to store the list.
[0175] In some embodiments, the device 700 also includes a second receiving module, a first determination module, a first acquisition module and an association module, wherein: the second receiving module is used to receive a smart device activation request initiated by an engineering application; the smart device activation request carries the administrator account and the family identifier; the smart device activation request is used to associate the smart devices in the home with the virtual sub-account corresponding to the family identifier; the first determination module is used to determine at least one corresponding virtual sub-account from the list according to the family identifier; the first acquisition module is used to obtain the identifiers of at least two smart devices in the home according to the family identifier; the association module is used to associate the identifier of each of the smart devices to at least one of the virtual sub-accounts.
[0176] In some embodiments, the device 700 also includes a third receiving module, a response module and a first return module, wherein: the third receiving module is used to receive a parameter modification request sent by a smart device management application, the parameter modification request carries an identification of the smart device, a control parameter to be modified and a corresponding target value; the response module is used to respond to the parameter modification request, and modify the value of the control parameter of the corresponding smart device to the target value according to the identification of the smart device and the value of the control parameter to be modified; the first return module is used to return a parameter modification response to the smart device management application.
[0177] In some embodiments, the device 700 also includes a fourth receiving module, a second determination module, a second acquisition module and a first setting module, wherein: the fourth receiving module is used to receive a scene binding request initiated by an engineering application; the scene binding request carries the administrator account, family identifier and scene identifier; the second determination module is used to determine at least one corresponding virtual sub-account from the list according to the family identifier; the second acquisition module is used to obtain the identifiers of at least two smart devices managed under each of the virtual sub-accounts; the first setting module is used to set the control parameters of the smart device under each of the virtual sub-accounts according to the scene identifier; the second return module is used to return a scene binding response to the engineering application after the setting is completed.
[0178] In some embodiments, the device 700 also includes a fifth receiving module, a trigger module, a third acquisition module, a second setting module and a third return module, wherein: the fifth receiving module is used to receive a scene management request sent by a smart device management application, and the scene management request carries a virtual sub-account and a scene trigger language; the trigger module is used to determine the target scene identifier according to the scene trigger language; the third acquisition module is used to obtain the identifier of the target smart device to be managed according to the virtual sub-account; the second setting module is used to set the control parameters of the target smart device to be managed according to the target scene identifier and the identifier of the target smart device to be managed; the third return module is used to return a scene management response to the smart device management application.
[0179] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.
[0180] It should be noted that in the embodiment of the present application, if the control method of the above-mentioned intelligent device is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable a control device of an intelligent device (which can be a personal computer, server, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.
[0181] Correspondingly, an embodiment of the present application provides a control device for an intelligent device, including a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and the processor implements the steps in the above method when executing the program.
[0182] Correspondingly, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps in the above method are implemented.
[0183] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0184] It should be noted that Figure 8 A schematic diagram of a hardware entity of a control device of an intelligent device in an embodiment of the present application is shown in FIG. Figure 8 As shown, the hardware entity of the control device 800 of the smart device includes: a processor 801, a communication interface 802 and a memory 803, wherein
[0185] The processor 801 generally controls the overall operation of the control device 800 of the smart device.
[0186] The communication interface 802 enables the control device of the smart device to communicate with other terminals or servers through the network.
[0187] The memory 803 is configured to store instructions and applications executable by the processor 801, and can also cache data to be processed or processed by the processor 801 and each module in the control device 800 of the smart device (for example, image data, audio data, voice communication data, and video communication data), which can be implemented through flash memory (FLASH) or random access memory (Random Access Memory, RAM).
[0188] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.
[0189] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0190] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0191] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0192] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0193] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.
[0194] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can be essentially or partly reflected in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable a control device of an intelligent device (which can be a personal computer, server, or network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0195] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A control method for an intelligent device, characterized in that: The method comprises: The server receives a sub-account creation request initiated by an administrator account of an engineering application; the administrator account is associated with family identifiers of at least two families to manage at least two smart devices of each family; the sub-account creation request carries information for creating a virtual sub-account for the administrator account according to the family identifier; In the case where it is determined that the administrator account enables the virtual sub-account, at least one virtual sub-account is allocated to each family under the administrator account; and at least one virtual sub-account corresponding to each family is associated with at least two smart devices of the family; Establishing a corresponding entry for each of the families, and obtaining a list including at least two corresponding entries, wherein the corresponding entries are used to represent the corresponding relationship between the administrator account, the family identifier, and the virtual sub-account; Returning the family identifier associated with the administrator account to the engineering application to achieve control of the smart device; Among them, allocating at least one virtual sub-account to each family under the administrator account includes: allocating at least one virtual sub-account to each family under the administrator account according to specific account generation rules; the specific account generation rules at least include adding a family identifier and a random number.
2. The method according to claim 1, characterized in that The allocating at least one virtual sub-account to each family under the administrator account when it is determined that the administrator account enables the virtual sub-account comprises: In the case where it is determined that the administrator account enables the virtual sub-account, determining a corresponding family identifier for each family under the administrator account; According to the number of rooms in each of the families, the same number of virtual sub-accounts are allocated to each family ID.
3. The method according to claim 1, characterized in that The server is an application server, and the method further includes: The application server stores the list.
4. The method according to claim 1, characterized in that: The associating at least one virtual sub-account corresponding to each family with at least two smart devices of the family includes: The server receives a smart device activation request initiated by the engineering application; the smart device activation request carries the administrator account and the family identifier; the smart device activation request is used to associate the smart device in the family with the virtual sub-account corresponding to the family identifier; Determine at least one corresponding virtual sub-account from the list according to the family identifier; Acquire identifications of at least two smart devices in the family according to the family identification; The identification of each of the smart devices is associated with at least one of the virtual sub-accounts.
5. The method according to claim 4, characterized in that The method further comprises: Receive a parameter modification request sent by the smart device management application, wherein the parameter modification request carries an identifier of the smart device, a control parameter to be modified, and a corresponding target value; In response to the parameter modification request, according to the identifier of the smart device and the value of the control parameter to be modified, modify the value of the control parameter of the corresponding smart device to a target value; A parameter modification response is returned to the smart device management application.
6. The method according to claim 4, characterized in that The method further comprises: The server receives a scene binding request initiated by the engineering application; the scene binding request carries the administrator account, family identifier and scene identifier; Determine at least one corresponding virtual sub-account from the list according to the family identifier; Obtaining identifications of at least two smart devices managed under each of the virtual sub-accounts; Setting control parameters of the smart device under each of the virtual sub-accounts according to the scenario identifier; Return a scene binding response to the engineering application.
7. The method according to claim 6, characterized in that The method further comprises: Receiving a scene management request sent by a smart device management application, wherein the scene management request carries a virtual sub-account and a scene triggering language; Determine a target scene identifier according to the scene trigger language; Acquire the identifier of the target smart device to be managed according to the virtual sub-account; Setting control parameters of the target smart device to be managed according to the target scene identifier and the identifier of the target smart device to be managed; A scene management response is returned to the smart device management application.
8. A control device for an intelligent device, characterized in that: The device comprises: A first receiving module is used to receive a sub-account creation request initiated by an administrator account of an engineering application; the administrator account is associated with family identifiers of at least two families to manage at least two smart devices in each of the families; the sub-account creation request carries information for creating a virtual sub-account for the administrator account according to the family identifier; An allocation module, configured to allocate at least one virtual sub-account to each family under the administrator account when it is determined that the administrator account enables the virtual sub-account; An association module, used to associate at least one virtual sub-account corresponding to each family with at least two smart devices of the family; A creation module, used to establish a corresponding entry for each of the families, and obtain a list including at least two corresponding entries, wherein the corresponding entries are used to represent the corresponding relationship between the administrator account, the family identifier and the virtual sub-account; A feedback module, used to return the family identifier associated with the administrator account to the engineering application to achieve control of the smart device; Among them, the allocation module is used to allocate at least one virtual sub-account to each family under the administrator account according to specific account generation rules when it is determined that the administrator account enables the virtual sub-account; the specific account generation rules at least include adding a family identifier and a random number.
9. A control device for an intelligent device, comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor executes the program, the steps in the method according to any one of claims 1 to 7 are implemented.
10. 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 in the method according to any one of claims 1 to 7 are implemented.
