Control authority distribution method and equipment for intelligent equipment and storage medium
Through the intelligent device, the control authority allocation request is sent to the first terminal of the distributed network and the entry request is sent to the second terminal in the local area network, which solves the problem of redistribution in the prior art, and realizes the convenient operation of multiple terminals to control the intelligent device at the same time.
Patent Information
- Application Number
- CN202411724557.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-28
- Publication Date
- 2025-03-28
AI Technical Summary
When the existing technology adds new terminal devices to control smart devices, it is necessary to redistribute the smart devices, resulting in cumbersome operations and the previous terminals losing control rights, reducing user experience.
The intelligent device sends a control authority allocation request to the first terminal of the distributed network. The first terminal displays the distribution network invitation information, obtains the second terminal in the local area network, and sends a grouping request to it. If agreed, the control authority is allocated to realize that multiple terminals control the intelligent device at the same time.
It realizes the simple and rapid addition of new terminals to control smart devices without reconfiguring the network, nor does it cause the previous terminal to lose control rights, improving operational convenience and user experience.
Smart Images

Figure CN119729486A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of smart devices, and in particular to a method, device and storage medium for allocating control authority of a smart device. Background Art
[0002] With the development of 5G technology, the data exchange and response speed between smart devices have been greatly improved, making the smart system more efficient and convenient. Smart devices generally use the distribution network to interact and exchange data with other devices, thereby achieving the purpose of intelligent management and control. Specifically, the purpose of the distribution network is to allow the terminal to access the network, so as to achieve data reporting and remote control.
[0003] For example, users are accustomed to using mobile phones and other terminals to control smart devices. At this time, the smart devices can be interconnected with the terminals in the network configuration state. However, when the smart device is in the network configuration state, if a new terminal needs to be added to control the smart device, the smart device needs to be re-networked so that multiple terminals can control the smart device. This method is more cumbersome in operation, and it will also cause the previous terminal to lose control of the smart device, so it also needs to re-interconnect with the smart device, which further adds trouble to the operating user and reduces the user experience of the operating user. Summary of the invention
[0004] The present application provides a method, device and storage medium for allocating control rights of smart devices. At least it can solve the problem in the prior art that when adding a new terminal device to control the smart device, the smart device needs to be reconfigured. The technical solution of the present application is as follows:
[0005] According to one aspect of the present application, a method for allocating control authority of a smart device is provided, the method comprising:
[0006] Receive a control authority allocation request sent by the smart device and display network configuration invitation information;
[0007] In response to an operation triggered by the network configuration invitation information, generating a first instruction;
[0008] According to the first instruction, a second terminal in the local area network is acquired, and a group joining request is sent to the acquired second terminal, wherein the group joining request is to request the second terminal to join the terminal control group;
[0009] receiving an admission result generated by the second terminal based on the admission request;
[0010] If the joining result indicates that the second terminal agrees to join the terminal control group, the control authority of the smart device is allocated to the second terminal.
[0011] Optionally, the number of the second terminals is multiple; the sending a grouping request to the acquired second terminals includes: sending a grouping request to the acquired multiple second terminals;
[0012] After receiving the admission result generated by the second terminal based on the admission request, the method further includes:
[0013] According to the received enrollment results generated by each second terminal, a second terminal with an enrollment result of approval is determined as a terminal to be enrolled, and a second terminal with an enrollment result of rejection is determined as a non-enrolled terminal;
[0014] The control authority of the smart device is allocated to the terminal to be included in the group, and the terminal to be included in the group is added to a preset terminal control group.
[0015] Optionally, the sending a group joining request to the acquired second terminal includes:
[0016] Display the confirmation invitation control;
[0017] In response to the operation triggered by the confirmation invitation control, a group joining request is sent to the second terminal.
[0018] Optionally, the receiving a grouping result generated by the second terminal based on the grouping request includes:
[0019] receiving a grouping result generated and sent by the second terminal in response to an operation triggered based on the network configuration invitation information;
[0020] The network configuration invitation information is information displayed on the second terminal by the second terminal based on the group joining request.
[0021] According to another aspect of the present application, a method for allocating control authority of a smart device is provided, the method comprising:
[0022] Sending a control authority allocation request to a first terminal that has been networked, so that the first terminal displays network configuration invitation information in response to the control authority allocation request, and the first terminal generates a first instruction in response to an operation triggered by the network configuration invitation information;
[0023] and acquiring, according to the first instruction, a second terminal in the local area network where the first terminal is located;
[0024] and sending a group joining request to the second terminal, wherein the group joining request is to request the second terminal to join the terminal control group where the first terminal is located;
[0025] and receiving the enrollment result generated and sent by the second terminal based on the enrollment request;
[0026] And if the joining result indicates that the second terminal agrees to join the terminal control group where the first terminal is located, the control authority of the smart device is allocated to the second terminal.
[0027] Optionally, the sending a control authority allocation request to the first terminal in the configured network includes:
[0028] Check whether there is a terminal that has been configured on the network;
[0029] If there is a terminal that has been networked, determine the terminal that has been networked as the first terminal;
[0030] Send a control authority allocation request to the first terminal.
[0031] Optionally, if there is no network-configured terminal, display the network configuration request information;
[0032] In response to an operation triggered based on the network configuration request information, generating a second instruction;
[0033] In response to the second instruction, a preset terminal in the local area network is determined.
[0034] Optionally, the method further includes:
[0035] Sending first network configuration request information to the preset terminal, wherein the first network configuration request information includes a network configuration request and a first terminal confirmation request;
[0036] Receiving a first network configuration result generated by the preset terminal based on the first network configuration request information;
[0037] If the first network configuration result indicates that the preset terminal agrees to perform network configuration, the control authority of the smart device is allocated to the preset terminal, and the preset terminal is determined as the first terminal.
[0038] Optionally, the method further includes:
[0039] Sending second network configuration request information to the preset terminal, wherein the second network configuration request information includes a network configuration request and a group joining request;
[0040] Receiving a second network configuration result generated by the preset terminal based on the second network configuration request information;
[0041] If the second network configuration result indicates that the preset terminal agrees to perform network configuration, the control authority of the smart device is allocated to the preset terminal, and the preset terminal is added to the corresponding terminal control group.
[0042] According to another aspect of the present application, a smart device control authority allocation device is provided, comprising:
[0043] processor;
[0044] a memory for storing processor-executable instructions;
[0045] The processor is used for the instructions to implement the control authority allocation method of the smart device as described above.
[0046] According to another aspect of the present application, a computer-readable storage medium is provided, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the control authority allocation method for a smart device as described above is implemented.
[0047] The present application provides a method, device and storage medium for allocating control authority of a smart device, which has the following technical effects:
[0048] The control authority allocation method of the smart device first uses the first terminal that has been connected to the smart device to receive the control authority allocation request sent by the smart device. After receiving the control authority allocation request sent by the smart device, the first terminal displays the network invitation information. The user can trigger the network invitation information in various ways to enable the first terminal to generate a first instruction, and obtain the second terminal in the local area network according to the first instruction. The first terminal then sends a grouping request to the obtained second terminal. The second terminal generates a grouping result based on the grouping request and sends the grouping result to the first terminal; finally, the first terminal receives the grouping result again. If the grouping result indicates that the second terminal agrees to join the terminal control group where the first terminal is located, the first terminal allocates the control authority of the smart device to the second terminal. Through this operation method, it is possible to simply and quickly add a new second terminal to control the smart device without re-networking the smart device, and it will not cause the previous first terminal to lose the control right of the smart device, thereby achieving the purpose of simple operation.
[0049] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0051] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the present application and, together with the description, serve to explain the principles of the present application.
[0052] Figure 1 It is a schematic diagram of an interactive process of a method for allocating control authority of a smart device provided in an embodiment of the present application;
[0053] Figure 2 This is a flow chart of a method for allocating control authority of a smart device provided in one embodiment of the present application (I);
[0054] Figure 3 This is a flow chart of a method for allocating control authority of a smart device provided in one embodiment of the present application (II);
[0055] Figure 4 A flowchart of a method for allocating control authority of a smart device provided in one embodiment of the present application (III);
[0056] Figure 5 A flowchart of a method for allocating control authority of a smart device provided in one embodiment of the present application (IV);
[0057] Figure 6 A schematic diagram of the operation flow of a first terminal in a method for allocating control authority of a smart device provided in one embodiment of the present application;
[0058] Figure 7 A schematic diagram of the operation flow of a smart device in a method for allocating control authority of a smart device provided in one embodiment of the present application;
[0059] Figure 8 A schematic diagram of authority allocation in a method for allocating control authority of a smart device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0060] In order to enable those skilled in the art to better understand the technical solutions disclosed in this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts are within the scope of protection of this application.
[0061] It should be noted that the terms "first", "second", etc. in the specification and claims disclosed in the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments disclosed in the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or fixed to these processes, methods, products, or devices.
[0062] This embodiment relates to a method for allocating control rights of smart devices, wherein there are many types of smart devices, such as smart TVs, smart air conditioners, smart vacuum cleaners, smart switches, smart cameras, etc. These smart devices can interact and exchange data with terminals such as mobile phones through network distribution, thereby achieving the purpose of intelligent management and control. The method for allocating control rights of smart devices can allocate the control rights of the smart device to multiple terminals, so that multiple terminals can control the smart device at the same time.
[0063] like Figure 1 and Figure 2 As shown, the control authority allocation method of the smart device includes:
[0064] S110, the smart device sends a control authority allocation request to a first terminal that has been networked with the smart device;
[0065] S120, the first terminal receives a control authority allocation request and displays network configuration invitation information; and the first terminal generates a first instruction in response to an operation triggered by the network configuration invitation information;
[0066] S130. The first terminal acquires, according to the first instruction, a second terminal in the local area network where the first terminal is located;
[0067] S140: The first terminal sends a group joining request to the second terminal, where the group joining request is to request the second terminal to join the terminal control group where the first terminal is located;
[0068] S150: The second terminal generates an enrollment result based on the enrollment request and sends the enrollment result to the first terminal;
[0069] S160: The first terminal receives a grouping result. If the grouping result indicates that the second terminal agrees to join the terminal control group where the first terminal is located, the first terminal allocates control authority of the smart device to the second terminal.
[0070] Specifically, when there is a first terminal that has been connected to the network for the smart device, for example, in a specific family, there is already a mobile terminal of a family member and the smart device for network connection, that is, when the family member can use his mobile terminal to control the smart device, the mobile terminal of the family member is the first terminal. At this time, the first terminal that has been connected to the network with the smart device is first used to receive the control authority allocation request of the smart device, wherein the sending of the control authority allocation request can be based on long pressing a function key on the smart device. After receiving the control authority allocation request sent by the smart device, the first terminal displays the network invitation information, for example, it can be displayed on the screen of the first terminal, and the user can click the screen to trigger the network invitation information. When the network invitation information is triggered, the first terminal generates a first instruction, and obtains the second terminal in the local area network according to the first instruction. The second terminal can be the mobile terminal of other members in the family. After obtaining the second terminal, the first terminal sends a grouping request to the obtained second terminal, and the second terminal generates a grouping result based on the grouping request and sends the grouping result to the first terminal. Finally, the first terminal receives the grouping result again. If the grouping result indicates that the second terminal agrees to join the terminal control group where the first terminal is located, the first terminal allocates the control authority of the smart device to the second terminal. It is expected that when the grouping result indicates that the second terminal refuses to join the terminal control group where the first terminal is located, the first terminal does not allocate the control authority of the smart device to the second terminal.
[0071] Through the above operation method, a new second terminal can be added simply and quickly to control the smart device without reconfiguring the smart device and without causing the previous first terminal to lose control of the smart device, thereby achieving the purpose of simple operation.
[0072] In another exemplary embodiment, the number of the second terminals is multiple, such as Figure 3 As shown, in step S140, the first terminal may send a grouping request to multiple second terminals. And, after step S150, the control authority allocation method of the smart device includes step S160, which is specifically: the first terminal receives the grouping result sent by each second terminal, determines the second terminal whose grouping result is approval to join the group as the terminal to be joined, and determines the second terminal whose grouping result is rejection to join the group as the non-terminal; the first terminal allocates the control authority of the smart device to the terminal to be joined, and adds the terminal to be joined to the preset terminal control group.
[0073] Specifically, in a specific family, in addition to the first terminal that has been connected to the smart device, if there are multiple second terminals corresponding to other family members that need to be connected to the smart device, the number of second terminals is multiple. When the first terminal is used to send a grouping request to the second terminal, the grouping request can be sent to these second terminals at the same time. After receiving the grouping request, these second terminals can generate their own grouping results based on the operations of different members. After receiving the grouping result sent by each second terminal, the first terminal determines the second terminal with the grouping result of agreeing to join the group as the terminal to be joined, and determines the second terminal with the grouping result of rejecting the grouping result as the non-grouping terminal, and finally allocates the control authority of the smart device to the terminal to be joined, and adds the terminal to be joined to the preset terminal control group. It should be noted that the preset terminal control group can be set on the first terminal. Among them, the preset terminal control group can be a family group, a company group, etc., and the second terminal can be set in different control groups according to the different objects operated by the second terminal.
[0074] Through this operation, the first terminal can be used to send grouping requests to multiple second terminals at the same time, which increases the automation of the first terminal operation. Compared with the method of sending one by one, this method is faster and more efficient, further increasing the convenience of overall operation.
[0075] In another exemplary embodiment, the control authority allocation method of the smart device, in step S140, the first terminal sends a grouping request to the second terminal, including: displaying a confirmation invitation control on the first terminal; the first terminal responds to an operation triggered by the confirmation invitation control and sends a grouping request to the second terminal. Through this setting, after the first terminal obtains the second terminal in the local area network, the confirmation invitation control can be displayed on the screen of the first terminal first, and when the operating user of the first terminal clicks the confirmation invitation control, the confirmation invitation control can be triggered, and the first terminal only then sends the grouping request to the obtained second terminal, so as to avoid sending the grouping request directly to other second terminals in the local area network due to misoperation, so as to increase the safety and reliability of the operation.
[0076] In another exemplary embodiment, Figure 4 As shown, in the control authority allocation method of the smart device, in step S150, the second terminal generates a grouping result based on the grouping request and sends the grouping result to the first terminal, including:
[0077] S151. The second terminal displays the network configuration invitation information on the second terminal based on the group joining request;
[0078] S152: The second terminal generates and sends a grouping result to the first terminal in response to an operation triggered by the network configuration invitation information.
[0079] Through this setting, after the first terminal sends a grouping request to the second terminal, the second terminal can first display the network configuration invitation information on the screen of the second terminal based on the grouping request. When the operating user of the second terminal clicks to confirm the network configuration invitation information, the network configuration invitation information can be triggered. At this time, the second terminal generates a grouping result and sends the grouping result to the first terminal, so that the second terminal can generate different grouping results based on the user's actual operation, thereby increasing the security and flexibility of the operation.
[0080] In another exemplary embodiment, Figure 5 As shown, in the control authority allocation method of the smart device, in step S110, the smart device sends a control authority allocation request to a first terminal that has been networked with the smart device, including:
[0081] S111, the smart device queries whether there is a terminal that has been networked with the smart device;
[0082] S112: If there is a terminal that has been networked with the smart device, determine the terminal that has been networked with the smart device as the first terminal;
[0083] S119: The smart device sends a control authority allocation request to the first terminal.
[0084] Specifically, in the control authority allocation method of the smart device, the smart device is first controlled to query whether there is a terminal that has been networked with the smart device. If so, the terminal that has been networked with the smart device is directly determined as the first terminal, and a control authority allocation request is sent to the first terminal. Thereafter, the first terminal is used to allocate the control authority of the smart device to the second terminal in the local area network to achieve the distinction between the first terminal and the second terminal, so that when a new second terminal needs to be added later, the first terminal can be directly used for allocation, which is more convenient in operation.
[0085] It should be noted that when there are multiple terminals that are already networked and connected to the smart device, the smart device can select one of these terminals as the first terminal, and then use the first terminal to assign control rights of the smart device to other terminals. The smart device can also confirm these terminals as first terminals at the same time, that is, there are multiple first terminals. When there is a new second terminal that needs to control the smart device, any first terminal can be used to assign control rights of the smart device to the second terminal.
[0086] Furthermore, in some specific cases, the smart device may not have a terminal that has been configured and connected to the network at the beginning. Figure 5As shown, in the control authority allocation method of the smart device, in step S110, the smart device sends a control authority allocation request to a first terminal that has been networked with the smart device, including:
[0087] S111, the smart device queries whether there is a terminal that has been networked with the smart device;
[0088] S113. If there is no terminal that has been networked with the smart device, display network configuration request information on the smart device;
[0089] S114, the smart device generates a second instruction in response to an operation triggered by the network configuration request information;
[0090] S115. The smart device responds to the second instruction and determines a preset terminal in the local area network where the smart device is located.
[0091] Through this setting, the smart device can first determine the preset terminals in the local area network based on the network configuration request information triggered by the operating user, so as to provide clear terminal matching information for the user. For example, if the smart device fails to search and determine the mobile terminal of a specific user, there may be other problems that need to be solved.
[0092] like Figure 5 As shown, after the smart device determines the preset terminal in the local area network, step S110 also includes:
[0093] S116. The smart device sends a first network configuration request message to a preset terminal, where the first network configuration request message includes a network configuration request and a first terminal confirmation request;
[0094] S117. The preset terminal generates a first network configuration result in response to an operation triggered by the first network configuration request information and sends the first network configuration result to the smart device;
[0095] S118: The smart device receives a first network configuration result. If the first network configuration result indicates that the preset terminal agrees to configure the network with the smart device, the smart device allocates control authority of the smart device to the preset terminal and determines the preset terminal as the first terminal.
[0096] Through this setting, the smart device is used to first send the first network configuration request information to the preset terminal obtained, so that after the preset terminal receives and feeds back the first network configuration result, the smart device decides whether to allocate the control authority of the smart device to the preset terminal and whether to determine the preset terminal as the first terminal according to the first network configuration result. If the first network configuration result is to agree to configure the network with the smart device, the smart device will allocate the control authority of the smart device to the preset terminal and determine the preset terminal as the first terminal; if the first network configuration result is to refuse to configure the network with the smart device, the smart device will not allocate the control authority of the smart device to the preset terminal and will not determine the preset terminal as the first terminal. After the first terminal is determined, if there is another second terminal that needs to control the smart device, the smart device can be used to send a control authority allocation request to the first terminal that has been networked with the smart device.
[0097] It should be noted that in another exemplary embodiment, after the smart device determines the preset terminal in the local area network, the smart device can also send a second network configuration request information to the preset terminal. The difference is that the second network configuration request information includes a network configuration request and a group entry request; the preset terminal generates a second network configuration result in response to the operation triggered by the second network configuration request information and sends the second network configuration result to the smart device; if the second network configuration result indicates that the preset terminal agrees to configure the network with the smart device, the smart device allocates the control authority of the smart device to the preset terminal, and directly adds the preset terminal to the terminal control group corresponding to the smart device. This method can directly use the smart device to allocate the control authority to the preset terminal without first confirming the first terminal and then allocating the control authority of the smart device by the second terminal. It is more direct and quick, so this method is more suitable for allocating control authority to multiple terminals at one time.
[0098] In another exemplary embodiment, Figure 6 As shown, when the first terminal is used as the execution subject, the control authority allocation method of the smart device includes:
[0099] S210, receiving a control authority allocation request sent by a smart device, and displaying network configuration invitation information;
[0100] S220, generating a first instruction in response to an operation triggered by the network configuration invitation information;
[0101] S230: acquiring a second terminal in the local area network according to the first instruction, and sending a group joining request to the acquired second terminal, where the group joining request is a request for the second terminal to join the terminal control group;
[0102] S240, receiving a grouping result generated by the second terminal based on the grouping request;
[0103] S250: When the joining result indicates that the second terminal agrees to join the terminal control group, the control authority of the smart device is allocated to the second terminal.
[0104] Furthermore, the number of the second terminals is multiple. The control authority allocation method of the smart device includes, in S230: sending a grouping request to the acquired multiple second terminals.
[0105] The control authority allocation method of the smart device, after S240, includes:
[0106] According to the received enrollment results generated by each second terminal, a second terminal with an enrollment result of agreeing to the enrollment result is determined as a terminal to be enrolled, and a second terminal with an enrollment result of rejecting the enrollment result is determined as a non-enrolled terminal;
[0107] Assign control rights of smart devices to the terminals to be included in the group, and add the terminals to the preset terminal control group.
[0108] Furthermore, the control authority allocation method of the smart device sends a group joining request to the acquired second terminal in S230, including:
[0109] Display the confirmation invitation control;
[0110] In response to the operation triggered by the confirmation invitation control, a group joining request is sent to the second terminal.
[0111] Furthermore, the control authority allocation method of the smart device includes, in S240:
[0112] Receiving a grouping result generated and sent by the second terminal in response to an operation triggered based on the network configuration invitation information;
[0113] The network configuration invitation information is information displayed on the second terminal based on the group joining request.
[0114] In another exemplary embodiment, Figure 7 As shown, when the smart device is used as the execution subject, the control authority allocation method of the smart device includes:
[0115] S310, query whether there is a terminal that has been configured on the network;
[0116] S320: If there is a terminal that has been networked, determine the terminal that has been networked as the first terminal;
[0117] S380: Send a control authority allocation request to the first terminal so that
[0118] The first terminal displays the network configuration invitation information in response to the control authority allocation request, and the first terminal generates a first instruction in response to the operation triggered by the network configuration invitation information; and according to the first instruction, obtains the second terminal in the local area network where the first terminal is located; and sends a grouping request to the second terminal, and the grouping request is to request the second terminal to join the terminal control group where the first terminal is located; and receives the grouping result generated and sent by the second terminal based on the grouping request; and if the grouping result indicates that the second terminal agrees to join the terminal control group where the first terminal is located, allocates the control authority of the smart device to the second terminal.
[0119] Furthermore, the control authority allocation method of the smart device may further include, between S310 and S380:
[0120] S330: If there is no network-configured terminal, display network configuration request information;
[0121] S340, generating a second instruction in response to an operation triggered based on the network configuration request information;
[0122] S350, in response to the second instruction, determining a preset terminal in the local area network;
[0123] S360: Send first network configuration request information to a preset terminal, where the first network configuration request information includes a network configuration request and a first terminal confirmation request;
[0124] S370, receiving a first network configuration result generated by a preset terminal based on the first network configuration request information; if the first network configuration result indicates that the preset terminal agrees to perform network configuration, allocating control authority of the smart device to the preset terminal, and determining the preset device as the first terminal.
[0125] The present application also provides a device for allocating control rights of a smart device, the device comprising:
[0126] A first receiving module, configured to receive a control authority allocation request sent by the smart device and display network configuration invitation information;
[0127] An instruction sending module, configured to generate a first instruction in response to an operation triggered based on the network configuration invitation information;
[0128] a request sending module, configured to obtain a second terminal in the local area network according to the first instruction, and send a group joining request to the obtained second terminal, wherein the group joining request is for the second terminal to join the terminal control group;
[0129] A second receiving module, configured to receive an admission result generated by the second terminal based on the admission request;
[0130] The allocation module allocates the control authority of the smart device to the second terminal if the group joining result indicates that the second terminal agrees to join the terminal control group.
[0131] Furthermore, the number of the second terminals is multiple, and the request sending module sends a grouping request to the multiple second terminals obtained. The second receiving module is used to receive the grouping results generated by the multiple second terminals based on the grouping request; the allocation module determines the second terminal whose grouping result is an approval result as a terminal to be included in the group, and determines the second terminal whose grouping result is a rejection result as a non-grouping terminal according to the grouping result generated by each received second terminal. The allocation module allocates the control authority of the smart device to the terminal to be included, and adds the terminal to be included to the preset terminal control group.
[0132] Furthermore, the request sending module includes an acquisition component, a first display component and a first sending component, the acquisition component is used to acquire the second terminal in the local area network according to the first instruction, the first display component is used to display a confirmation invitation control, and the first sending component is used to send a group joining request to the second terminal in response to an operation triggered based on the confirmation invitation control.
[0133] The present application also provides a device for allocating control rights of a smart device, the device comprising:
[0134] An allocation request sending module is used to send a control authority allocation request to a first terminal that has been configured in the network, so that the first terminal;
[0135] In response to the control authority allocation request, the network configuration invitation information is displayed, and the first terminal generates a first instruction in response to an operation triggered based on the network configuration invitation information;
[0136] and acquiring, according to the first instruction, a second terminal in the local area network where the first terminal is located;
[0137] and sending a group joining request to the second terminal, wherein the group joining request is to request the second terminal to join the terminal control group where the first terminal is located;
[0138] and receiving the enrollment result generated and sent by the second terminal based on the enrollment request;
[0139] And if the joining result indicates that the second terminal agrees to join the terminal control group where the first terminal is located, the control authority of the smart device is allocated to the second terminal.
[0140] Further, the allocation request sending module includes:
[0141] The query component is used to query whether there is a terminal that has been configured on the network;
[0142] A second sending component, if there is a terminal that has been configured on the network, the second sending component is used to determine the terminal that has been configured on the network as the first terminal, and send a control authority allocation request to the first terminal;
[0143] Furthermore, the allocation request sending module also includes:
[0144] A second display component, if there is no terminal that has been networked, the second display component is used to display network configuration request information;
[0145] A determination component is used to generate a second instruction in response to an operation triggered based on the network configuration request information, and to determine a preset terminal in the local area network in response to the second instruction.
[0146] Furthermore, the network configuration request sending module also includes:
[0147] A third sending component is used to send first network configuration request information to the preset terminal, where the first network configuration request information includes a network configuration request and a first terminal confirmation request;
[0148] A first receiving component, configured to receive a first network configuration result generated by the preset terminal based on the first network configuration request information;
[0149] The first allocation component allocates the control authority of the smart device to the preset terminal and determines the preset terminal as the first terminal if the first network configuration result indicates that the preset terminal agrees to perform network configuration.
[0150] Furthermore, the network configuration request sending module also includes:
[0151] A fourth sending component, configured to send second network configuration request information to the preset terminal, wherein the second network configuration request information includes a network configuration request and a group joining request;
[0152] A second receiving component, configured to receive a second network configuration result generated by the preset terminal based on the second network configuration request information;
[0153] The second allocation component allocates the control authority of the smart device to the preset terminal and adds the preset terminal to the corresponding terminal control group if the second network configuration result indicates that the preset terminal agrees to perform network configuration.
[0154] In order to fully understand the present application, the embodiment of the present application also provides a specific operation flow of a method for allocating control authority of a smart device. Figure 8 As shown, the smart device control authority allocation method mainly includes the following steps:
[0155] Step 1: When network configuration is required, press the network configuration button on the smart device, usually by long pressing a function button on the smart device;
[0156] Step 2: The smart device determines whether there is a terminal that has been networked. If not, jump to step 5; if there is a terminal that has been networked with the smart device (recorded as app1), proceed to the next step;
[0157] Step 3: A prompt pops up on app1, asking whether to send invitations to other terminals in the LAN (such as app2, app3, etc.) through the LAN. If you choose no, the process ends; if you choose yes, proceed to the next step;
[0158] Step 4: app1 searches for other terminals in the LAN. After the search is complete, it sends an invitation to other terminals found in the LAN. The terminals that receive the invitation in the LAN will pop up a prompt to ask whether they agree to join the home group (the group where app1 is located). If they do not agree, the process ends; if they agree, app1 assigns smart device control permissions to the terminal, and the terminal joins the home group and can control smart devices, and the process ends.
[0159] Step 5: If the smart device determines that there is no terminal that has been networked, it will be networked through softAP or Bluetooth. After the network is successfully networked, it will send data to app1 through the local area network, and app1 will ask (or the smart device will ask itself) whether to send an invitation to all other terminals in the local area network through the local area network. If no is selected, the process ends; if yes is selected, step 4 is executed. The embodiment of the present application also provides a smart device control authority allocation device, which includes a processor and a memory, and the memory is used to store processor executable instructions, wherein the processor is used for the instructions to implement the control authority allocation method of the smart device provided in the above method embodiment.
[0160] An embodiment of the present application further provides a computer-readable storage medium having computer program instructions stored thereon. When the computer program instructions are executed by a processor, the method for allocating control authority of a smart device as provided in the above method embodiment can be implemented.
[0161] The embodiment of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes to implement the control authority allocation method for the smart device provided in the above method embodiment.
[0162] Optionally, in the embodiment of the present application, the storage medium may be located in at least one of the multiple network servers of the computer network. Optionally, in the present embodiment, the storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.
[0163] The memory described in the embodiments of this specification can be used to store software programs and modules, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory. The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, application programs required for functions, etc.; the data storage area may store data created according to the use of the device, etc. In addition, the memory may include a high-speed random access memory, and may also include a memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory may also include a memory controller to provide the processor with access to the memory.
[0164] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A method for allocating control authority of a smart device, characterized in that: The method comprises: Receive a control authority allocation request sent by the smart device and display network configuration invitation information; In response to an operation triggered by the network configuration invitation information, generating a first instruction; According to the first instruction, a second terminal in the local area network is acquired, and a group joining request is sent to the acquired second terminal, wherein the group joining request is to request the second terminal to join the terminal control group; receiving an admission result generated by the second terminal based on the admission request; If the joining result indicates that the second terminal agrees to join the terminal control group, the control authority of the smart device is allocated to the second terminal.
2. The method for allocating control authority of a smart device according to claim 1, characterized in that: The number of the second terminals is multiple; the sending a grouping request to the acquired second terminals includes: sending a grouping request to the acquired multiple second terminals; After receiving the admission result generated by the second terminal based on the admission request, the method further includes: According to the received enrollment results generated by each second terminal, a second terminal with an enrollment result of approval is determined as a terminal to be enrolled, and a second terminal with an enrollment result of rejection is determined as a non-enrolled terminal; The control authority of the smart device is allocated to the terminal to be included in the group, and the terminal to be included in the group is added to a preset terminal control group.
3. The control authority allocation method of a smart device according to claim 1, characterized in that: The sending a group joining request to the acquired second terminal includes: Display the confirmation invitation control; In response to the operation triggered by the confirmation invitation control, sending a group joining request to the second terminal.
4. The method for allocating control authority of a smart device according to claim 1, characterized in that: The receiving the admission result generated by the second terminal based on the admission request includes: receiving a grouping result generated and sent by the second terminal in response to an operation triggered based on the network configuration invitation information; The network configuration invitation information is information displayed on the second terminal by the second terminal based on the group joining request.
5. A method for allocating control authority of a smart device, characterized in that: The method comprises: Sending a control authority allocation request to a first terminal that has been networked, so that the first terminal displays network configuration invitation information in response to the control authority allocation request, and the first terminal generates a first instruction in response to an operation triggered by the network configuration invitation information; and acquiring, according to the first instruction, a second terminal in the local area network where the first terminal is located; and sending a group joining request to the second terminal, wherein the group joining request is to request the second terminal to join the terminal control group where the first terminal is located; and receiving the grouping result generated and sent by the second terminal based on the grouping request; and if the grouping result indicates that the second terminal agrees to join the terminal control group where the first terminal is located, allocating control authority of the smart device to the second terminal.
6. The method for allocating control authority of a smart device according to claim 5, characterized in that: The sending of a control authority allocation request to the first terminal in the configured network includes: Check whether there is a terminal that has been configured on the network; If there is a terminal that has been networked, determine the terminal that has been networked as the first terminal; Send a control authority allocation request to the first terminal.
7. The method for allocating control authority of a smart device according to claim 6, characterized in that: The method further comprises: If there is no terminal with network configuration, display the network configuration request information; In response to an operation triggered based on the network configuration request information, generating a second instruction; In response to the second instruction, a preset terminal in the local area network is determined.
8. The method for allocating control authority of a smart device according to claim 7, characterized in that: The method further comprises: Sending first network configuration request information to the preset terminal, wherein the first network configuration request information includes a network configuration request and a first terminal confirmation request; Receiving a first network configuration result generated by the preset terminal based on the first network configuration request information; If the first network configuration result indicates that the preset terminal agrees to perform network configuration, the control authority of the smart device is allocated to the preset terminal, and the preset terminal is determined as the first terminal.
9. A device for allocating control rights of smart devices, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is used for the instructions to implement the control authority allocation method for a smart device as described in any one of claims 1 to 8.
10. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the control authority allocation method for a smart device as described in any one of claims 1 to 8 is implemented.