Device sharing method and apparatus, and storage medium and electronic device

Generating device sharing codes through the Matter protocol solves the cross-ecological restrictions and security issues of device sharing, enables convenient and efficient cross-ecological device sharing, and improves user experience.

WO2025217877A1PCT designated stage Publication Date: 2025-10-23SHENZHEN TCL NEW-TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/088600
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2024-04-18
Publication Date
2025-10-23

AI Technical Summary

Technical Problem

Device sharing has cross-ecosystem restrictions and is less convenient and secure, resulting in a poor user experience.

Method used

The device sharing code is generated through the Matter protocol, which contains the device configuration information for sharing across ecosystem devices, simplifying the pairing and authentication process and avoiding uploading information to the cloud.

Benefits of technology

It improves the convenience and security of cross-ecological device sharing and enhances user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024088600_23102025_PF_FP_ABST
    Figure CN2024088600_23102025_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of the Internet of Things. Disclosed are a device sharing method and apparatus, and a storage medium and an electronic device. A first main control end is capable of: on the basis of a sharing selection operation, obtaining a device to be shared, wherein the device to be shared is a device which has been subjected to network configuration by means of the first main control end; in response to a sharing trigger operation, acquiring device addition configuration information obtained by performing network configuration on the device to be shared, and by means of a Matter protocol, generating a device sharing code including the device addition configuration information; and outputting the device sharing code, such that a second main control end obtains the device addition configuration information on the basis of the device sharing code and by means of an application supporting the Matter protocol, and on the basis of the device addition configuration information, adding the device to be shared to the second main control end. On the basis of improving the convenience and security of device sharing, the present application can further realize cross-ecosystem device sharing, thereby improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Device sharing method and apparatus, storage medium, and electronic device TECHNICAL FIELD

[0001] The present application relates to the technical field of Internet of Things, in particular to a device sharing method and apparatus, a storage medium, and an electronic device. BACKGROUND

[0002] Taking a smart home scenario as an example, the sharing and control of smart home devices usually have many limitations and inconveniences, and a user can only share his / her own device with other users of the same platform or ecosystem, for example, can only share the device with other Apple users on the HomeKit of Apple.

[0003] At present, when sharing a device, on the one hand, the sharing and control of devices in each ecosystem are closed and limited, on the other hand, a lot of pairing or complex authentication processes are required when sharing a device, and on the other hand, the user needs to upload device information and authorization information of his / her own device to the cloud when sharing a device, which poses many security and privacy risks. TECHNICAL PROBLEM

[0004] The device sharing has cross-ecosystem limitations and poor convenience and security, resulting in poor user experience. TECHNICAL SOLUTION

[0005] The embodiments of the present application provide a device sharing scheme, which can further implement cross-ecosystem device sharing on the basis of improving the convenience and security of device sharing, and improve user experience.

[0006] The embodiments of the present application provide the following technical solutions:

[0007] According to an embodiment of the present application, a device sharing method is applied to a first master end, and the method comprises: obtaining a to-be-shared device according to a sharing selection operation, the to-be-shared device being a device that has been commissioned by the first master end; in response to a sharing trigger operation, obtaining device addition configuration information obtained by commissioning the to-be-shared device, and generating a device sharing code containing the device addition configuration information through a Matter protocol; and outputting the device sharing code, so that an application in a second master end that supports the Matter protocol obtains the device addition configuration information according to the device sharing code, and adds the to-be-shared device to the second master end according to the device addition configuration information.

[0008] In an embodiment, after the output of the device sharing code, the method further comprises: if the device to be shared is successfully added to the second master, obtaining device management information corresponding to the second master; and recording the device management information in an administrator list in the first master, the administrator list being used to record information of the master that has accepted the shared device of the first master.

[0009] In an embodiment, the method further comprises: according to a multi-administrator management page opening operation, displaying an administrator management page, the administrator management page showing information of the master included in the administrator list; and according to a management operation on a target master in the administrator management page, adjusting the device control authority of the target master.

[0010] In an embodiment, the management operation includes, but is not limited to, a device sharing revocation operation or an authorization information change operation; the device sharing revocation operation is used to revoke the control authority of the target master on the device shared by the first master; and the authorization information change operation is used to change the device addition configuration information shared by the first master to the target master.

[0011] In an embodiment, the obtaining of the device to be shared according to the sharing selection operation comprises: according to a sharing page starting operation, displaying a device sharing page; and according to a device selection operation in the device sharing page, obtaining the device to be shared.

[0012] In an embodiment, the output of the device sharing code comprises one of the following modes: displaying the device sharing code on a screen, the device sharing code including at least one of a scanning code and an input code; and transmitting the device sharing code to the second master through a network.

[0013] In an embodiment, before the obtaining of the device addition configuration information of the device to be shared obtained when the device to be shared is configured, the method further comprises: configuring the device to be shared; and recording the device addition configuration information of the device to be shared obtained when the device to be shared is configured.

[0014] In an embodiment, the generation of a device sharing code including the device addition configuration information through the Matter protocol comprises: obtaining master information of the second master; performing device addition assistance degree analysis according to the master information of the second master to obtain a device addition assistance degree; performing pre-addition of the device to be shared on behalf of the second master according to the device addition assistance degree to obtain auxiliary addition information matched with the device addition assistance degree; and generating a device sharing code including the device addition configuration information and the auxiliary addition information through the Matter protocol.

[0015] In an embodiment, the generating, by the Matter protocol, a device sharing code containing the device addition configuration information includes: generating, by the Matter protocol, the device sharing code containing the device addition configuration information using the device addition configuration information.

[0016] In an embodiment, the performing device addition assistance degree analysis according to the master information of the second master includes one of the following: querying, from a preset assistance analysis table, degree information matched with the master information of the second master to obtain the device addition assistance degree; sending, to a server corresponding to the device to be shared, a query analysis request carrying the master information and receiving the device addition assistance degree issued by the server in response to the query analysis request.

[0017] In an embodiment, the proxying, according to the device addition assistance degree, the second master to pre-add the device to be shared to obtain assistance addition information matched with the device addition assistance degree includes: determining whether the device addition assistance degree is higher than a predetermined threshold; if yes, pre-adding the device to be shared using the master information to obtain the assistance addition information matched with the device addition assistance degree.

[0018] According to an embodiment of the present application, a device sharing method is applied to a second master, and the method includes: obtaining, by an application supporting a Matter protocol, device addition configuration information corresponding to a device to be shared according to a device sharing code output by a first master, the device to be shared being obtained according to a sharing selection operation in the first master, the device to be shared being a device that has been configured in the first master, and the device sharing code being a device sharing code containing the device addition configuration information generated by the first master through the Matter protocol; and adding the device to be shared to the second master according to the device addition configuration information.

[0019] In an embodiment, before the obtaining, by the application supporting the Matter protocol, the device addition configuration information corresponding to the device to be shared according to the device sharing code output by the first master, the method further includes: downloading a Matter resource; and installing the Matter resource in the application to obtain the application supporting the Matter protocol.

[0020] In an embodiment, the device sharing code comprises at least one of a scanning code and an input code, and the device sharing code output by the first master is used to obtain device addition configuration information corresponding to a device to be shared, which comprises: scanning the scanning code to obtain the device addition configuration information corresponding to the device to be shared; or receiving the input code and obtaining the device addition configuration information corresponding to the device to be shared according to the input code.

[0021] According to an embodiment of the present application, a device sharing apparatus is applied to a first master, and the apparatus comprises: a device determination module configured to obtain a device to be shared according to a sharing selection operation, the device to be shared being a device that has been configured by the first master; a sharing code generation module configured to, in response to a sharing trigger operation, obtain device addition configuration information obtained by configuring the device to be shared, and generate a device sharing code containing the device addition configuration information through a Matter protocol; and an output module configured to output the device sharing code, so that a second master supports an application of the Matter protocol to obtain the device addition configuration information according to the device sharing code, and adds the device to be shared to the second master according to the device addition configuration information.

[0022] In an embodiment, the apparatus further comprises a recording module configured to: if the device to be shared is successfully added to the second master, obtain device management information corresponding to the second master; and record the device management information in an administrator list in the first master, the administrator list being configured to record information of masters that have accepted sharing devices of the first master.

[0023] In an embodiment, the apparatus further comprises a management module configured to: display a multi-administrator management page according to a multi-administrator management page opening operation, the multi-administrator management page being configured to display information of masters included in the administrator list; and adjust a device control right of a target master according to a management operation of the multi-administrator management page acting on the target master.

[0024] In an embodiment, the management operation comprises, but is not limited to, a device sharing revocation operation or an authorization information change operation; the device sharing revocation operation is configured to revoke a control right of the target master to a device shared by the first master; and the authorization information change operation is configured to change device addition configuration information shared by the first master to the target master.

[0025] In an embodiment, the device determination module is configured to: display a device sharing page according to a device sharing page starting operation; and obtain the device to be shared according to a device selection operation in the device sharing page.

[0026] In an embodiment, the output module is configured to implement one of the following modes: displaying the device sharing code on a screen, the device sharing code including at least one of a scanning code and an input code; and transmitting the device sharing code to the second host through a network.

[0027] In an embodiment, before the device sharing code is obtained in response to the sharing trigger operation, the device sharing code is obtained by performing commissioning on the device to be shared, and the device further includes a commissioning module configured to perform commissioning on the device to be shared and record the device addition configuration information of the device to be shared obtained during the commissioning.

[0028] In an embodiment, the sharing code generation module is configured to: obtain host information of the second host; perform device addition assistance degree analysis according to the host information of the second host to obtain a device addition assistance degree; perform pre-addition on the device to be shared on behalf of the second host according to the device addition assistance degree to obtain auxiliary addition information matched with the device addition assistance degree; and generate a device sharing code including the device addition configuration information and the auxiliary addition information through a Matter protocol.

[0029] In an embodiment, the sharing code generation module is configured to generate a device sharing code including the device addition configuration information through a Matter protocol.

[0030] In an embodiment, the sharing code generation module is configured to implement one of the following modes: querying degree information matched with the host information of the second host from a preset auxiliary analysis table to obtain the device addition assistance degree; and sending a query analysis request carrying the host information to a server corresponding to the device to be shared and receiving the device addition assistance degree issued by the server in response to the query analysis request.

[0031] In an embodiment, the sharing code generation module is configured to: determine whether the device addition assistance degree is higher than a predetermined threshold; and if so, perform pre-addition on the device to be shared using the host information to obtain auxiliary addition information matched with the device addition assistance degree.

[0032] According to an embodiment of the present application, a device sharing apparatus applied to a second master device, the apparatus comprising: an information obtaining module configured to obtain, by an application supporting a Matter protocol, device addition configuration information corresponding to a device to be shared from a device sharing code output by a first master device, the device to be shared being obtained from a sharing selection operation in the first master device, the device to be shared being a device that has been configured to network through the first master device, the device sharing code being a device sharing code generated by the first master device through the Matter protocol and containing the device addition configuration information; and a device adding module configured to add the device to be shared to the second master device according to the device addition configuration information.

[0033] In an embodiment, before the information obtaining module obtains, by an application supporting a Matter protocol, device addition configuration information corresponding to a device to be shared from a device sharing code output by a first master device, the apparatus further comprises an installing module configured to: download a Matter resource; and install the Matter resource in the application to obtain the application supporting the Matter protocol.

[0034] In an embodiment, the device sharing code comprises at least one of a scanning code and an input code, and the information obtaining module is configured to: scan the scanning code to obtain the device addition configuration information corresponding to the device to be shared; or receive the input code inputted to obtain the device addition configuration information corresponding to the device to be shared according to the input code.

[0035] According to another embodiment of the present application, a storage medium has a computer program stored thereon, and when the computer program is executed by a processor of a device, the device performs the method according to the embodiments of the present application.

[0036] According to another embodiment of the present application, an electronic device can include a memory storing a computer program, and a processor reading the computer program stored in the memory to perform the method according to the embodiments of the present application.

[0037] According to another embodiment of the present application, a computer program product or a computer program comprises computer instructions stored in a computer readable storage medium. A processor of a computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to make the computer device perform the method provided in various optional implementation manners according to the embodiments of the present application. Advantages

[0038] In the embodiment of the present application, the first master end can: obtain a to-be-shared device according to a sharing selection operation, the to-be-shared device being a device that has been commissioned through the first master end; in response to a sharing trigger operation, obtain device addition configuration information obtained by commissioning the to-be-shared device, and generate a device sharing code containing the device addition configuration information through a Matter protocol; and output the device sharing code, so that an application supporting the Matter protocol in the second master end obtains the device addition configuration information according to the device sharing code, and adds the to-be-shared device to the second master end according to the device addition configuration information.

[0039] In this way, the first master end can generate a device sharing code containing the device addition configuration information of the to-be-shared device through the Matter protocol in response to the sharing trigger operation, and the other second master end can obtain the device addition configuration information according to the device sharing code through the application supporting the Matter protocol and add the to-be-shared device. No matter which platform or ecology the second master end belongs to, the to-be-shared device can be added; and the second master end does not need to perform a pairing or a complex authentication process, and the device sharing is convenient; and no information needs to be uploaded to the cloud in the sharing process, and the security is high. Further, the present application can further implement cross-ecology device sharing on the basis of improving the convenience and security of device sharing, and improve the user experience. BRIEF DESCRIPTION OF DRAWINGS

[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0041] FIG. 1 shows a flowchart of a device sharing method according to one embodiment of the present application.

[0042] FIG. 2 shows a flowchart of a device sharing method according to another embodiment of the present application.

[0043] FIG. 3 shows a flowchart of a device sharing apparatus according to one embodiment of the present application.

[0044] FIG. 4 shows a flowchart of a device sharing apparatus according to another embodiment of the present application.

[0045] FIG. 5 shows a block diagram of an electronic device according to one embodiment of the present application.

[0046] Embodiments of the present application

[0047] The present disclosure will be further described in details in conjunction with the accompanying drawings and embodiments. It should be understood that the embodiments provided herein are only used to explain the present disclosure and not intended to limit the present disclosure. In addition, the embodiments provided below are used to implement part of the present disclosure, and the technical solutions described in the embodiments of the present disclosure can be combined in any manner without conflict.

[0048] It should be noted that in the embodiments of the present disclosure, the terms "comprising", "containing" or any other variants thereof are intended to cover the non-exclusive inclusion, so that the method or device comprising a series of elements not only includes the elements explicitly described, but also includes other elements not explicitly listed, or includes the elements inherent in the implementation of the method or device. Without more limitations, the element defined by the sentence "comprising a" does not exclude the presence of other related elements (such as steps in the method or units in the device, for example, the unit can be part of the circuit, part of the processor, part of the program or software, etc.) in the method or device comprising the element.

[0049] For example, the device sharing method provided by the embodiments of the present disclosure includes a series of steps, but the device sharing method provided by the embodiments of the present disclosure is not limited to the steps described, and similarly, the device sharing device provided by the embodiments of the present disclosure includes a series of units, but the device provided by the embodiments of the present disclosure is not limited to including the units explicitly described, and can also include units required to be set when obtaining related information or processing based on information.

[0050] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the present disclosure belongs. The terms used herein are only for the purpose of describing specific embodiments and are not intended to limit the present disclosure.

[0051] It can be understood that in the specific embodiments of the present application, data related to program package information, test information, etc. When the embodiments in the present application are applied to specific products or technologies, the user's permission or consent is required, and the collection, use and processing of related data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0052] FIG. 1 schematically shows a flowchart of a device sharing method according to an embodiment of the present application. The execution subject of the device sharing method can be any first master with processing capability, such as a mobile phone, a computer, a smart watch, etc. The device to be shared can be, for example, an air conditioner, a refrigerator, a vehicle, etc.

[0053] The first master can execute the device sharing method as shown in FIG. 1, which can include steps S110 to S130.

[0054] In step S110, a device to be shared is obtained according to a sharing selection operation, the device to be shared being a device that has been commissioned by the first master;

[0055] In step S120, in response to a sharing trigger operation, device addition configuration information obtained by commissioning the device to be shared is acquired, and a device sharing code containing the device addition configuration information is generated through a Matter protocol;

[0056] In step S130, the device sharing code is output to enable an application supporting the Matter protocol in a second master to obtain the device addition configuration information according to the device sharing code and add the device to be shared to the second master according to the device addition configuration information.

[0057] According to the sharing selection operation in the first master, one or more devices commissioned by the first master can be selected as the device to be shared. The sharing selection operation is an operation of selecting the device to be shared, and can be a voice control operation or a screen touch operation, etc.

[0058] For example, the first master has commissioned devices A and B, and at least one of devices A and B can be selected as the device to be shared according to the sharing selection operation in the first master. The manner in which the first master commissions each device (e.g., devices A, B, etc.) can be set according to actual conditions.

[0059] In response to the sharing trigger operation in the first master, the device addition configuration information obtained by commissioning the device to be shared can be acquired. The sharing trigger operation is an operation of sharing the device to be shared, and can be a voice control operation or a screen touch operation, etc.

[0060] The device addition configuration information is information that can be used to add the device to be shared to a master (e.g., a second master). In an example, the device addition configuration information can include device information (e.g., a device identifier (device id)) and authorization information (e.g., a security credential (token) used to verify the control authority of the user for the device to be shared) issued by the cloud after the device to be shared is registered to the cloud in the commissioning process. Further, in some examples, the device addition configuration information can further include a passcode, a product ID, a manufacturer ID, custom flow information, etc. corresponding to the device to be shared obtained in the commissioning process.

[0061] The first master end can further generate a device sharing code (Matter code) containing the device addition configuration information through the Matter protocol. The device sharing code can include a two-dimensional code, an input code, etc. The first master end can further output the device sharing code. The outputting manner of the device sharing code can be to display the device sharing code on a screen, or to transmit the device sharing code to the second master end through communication. The second master end can be a mobile phone, a computer, a smart watch, etc.

[0062] The second master end can scan or parse the device sharing code through an application supporting the Matter protocol to obtain the device addition configuration information. The second master end can directly and efficiently add the device to be shared to the second master end according to the device addition configuration information, without a complex pairing or authentication process, thereby improving user experience and device security.

[0063] After the second master end adds the device to be shared to the second master end according to the device addition configuration information, the second master end can display related information of the device to be shared in a device control list. The second master end can control the device to be shared based on the device addition configuration information. For example, the device addition configuration information can include device information and authorization information. The second master end can carry the authorization information in a control command sent to the device to be shared. The device to be shared can verify that the second master end has control authority according to the authorization information, so that the device to be shared can execute the control command of the second master end.

[0064] In this way, the first master end can generate a device sharing code containing device addition configuration information of the device to be shared through the Matter protocol in response to a sharing trigger operation. Other second master ends can obtain the device addition configuration information and add the device to be shared through an application supporting the Matter protocol according to the device sharing code. No matter which platform or ecosystem the second master end belongs to, the device to be shared can be added. The second master end does not need to perform a complex pairing or authentication process, and the device sharing is convenient. No information needs to be uploaded to the cloud during the sharing process, and the security is high. Furthermore, the present application can further implement cross-ecosystem device sharing on the basis of improving the convenience and security of device sharing, thereby improving user experience.

[0065] The following describes further optional specific embodiments of each step when performing device sharing in the embodiment of FIG. 1.

[0066] In an embodiment, the obtaining of the device to be shared according to the sharing selection operation can include: displaying a device sharing page according to a sharing page start operation; and obtaining the device to be shared according to a device selection operation in the device sharing page.

[0067] The first master end displays a device sharing page according to a sharing page starting operation. The sharing page starting operation can be a voice control operation or a screen touch operation. The device sharing page can display information about devices that have been commissioned by the first master end. The user can select one or more devices as sharing devices by sliding, clicking, or other device selection operations in the device sharing page.

[0068] Optionally, in other embodiments, the obtaining of the sharing device according to the sharing selection operation can include: receiving a device selection voice input by the user, and obtaining the sharing device according to a device indicated in the device selection voice.

[0069] In an embodiment, before the device addition configuration information obtained when the sharing device is commissioned is obtained in response to the sharing trigger operation, the method can further include: commissioning the sharing device; and recording the device addition configuration information corresponding to the sharing device obtained when the sharing device is commissioned.

[0070] The first master end records the device addition configuration information corresponding to the sharing device obtained when the sharing device is commissioned in the record information in the first master end during the commissioning of the sharing device. Then, in response to the sharing trigger operation, the first master end can obtain the device addition configuration information obtained when the sharing device is commissioned from the record information.

[0071] In an example, the commissioning of the sharing device by the first master end can include:

[0072] (1) The first master end scans a two-dimensional code on the sharing device, and after successful scanning, jumps to a user guidance page. Then, the matter application in the first master end obtains a binding code (bindcode) from the cloud, where the matter application can obtain the binding code (bindcode) from the cloud through a user ID (userid). After the sharing device is registered online, the sharing device and the user ID (userid) are bound together.

[0073] (2) The matter application and the sharing device perform a series of standard commissioning processes, which can include: establishing a PASE channel, device authentication, issuing a certificate, configuring an ACL, and configuring network information. Then, the matter application and the sharing device establish a CASE channel in the local area network.

[0074] (3) After the matter application completes the commissioning (i.e., the CASE channel is established), the matter application issues the binding code (bindcode) and the host domain name to the sharing device in the local area network through the CASE channel.

[0075] (4) After receiving the bind code and the host domain name, the device to be shared performs a regular registration and an MQTT cloud connection operation on the cloud, wherein the pk in the registration can be obtained from the slave control end of the device, and after the device to be shared is successfully registered on the cloud, the cloud sends the device identifier (deviceid) and the security credential (token) and other information to the device to be shared.

[0076] (5) After the device to be shared is successfully connected to the cloud through the MQTT cloud connection operation, the cloud can push the related information of the device to be shared to the first master control end, and the related information of the device to be shared pushed by the cloud can include the device identifier (deviceid) and the security credential (token) and other information.

[0077] In an embodiment, the generating a device sharing code containing the device addition configuration information through the Matter protocol can include: generating the device sharing code containing the device addition configuration information through the Matter protocol using the device addition configuration information.

[0078] The CHIP (Connected Home over IP) tool in the first master control end can generate the device sharing code by taking the device addition configuration information as a parameter, and the CHIP (Connected Home over IP) tool generates the device sharing code through the Matter protocol using the device addition configuration information.

[0079] In this embodiment, the first master control end directly generates the device sharing code using the device addition configuration information, without performing device addition assistance degree analysis.

[0080] Optionally, in an embodiment, the generating a device sharing code containing the device addition configuration information through the Matter protocol can include: obtaining the master control end information of the second master control end; performing device addition assistance degree analysis according to the master control end information of the second master control end to obtain a device addition assistance degree; performing pre-addition on the device to be shared on behalf of the second master control end according to the device addition assistance degree to obtain auxiliary addition information matched with the device addition assistance degree; and generating a device sharing code containing the device addition configuration information and the auxiliary addition information through the Matter protocol.

[0081] In this embodiment, when the first master end generates the device sharing code, the device addition auxiliary degree analysis of the second master end is performed, the second master end is assisted to pre-add the device to be shared according to the analysis result, and the auxiliary addition information is obtained to be carried in the device sharing code. Further, the second master end can further obtain the auxiliary addition information according to the device sharing code, and the second master end can further ensure the successful addition of the device to be shared under the assistance of the auxiliary addition information, so as to further improve the device sharing reliability.

[0082] The first master end can obtain the master end information of the second master end by interacting with the second master end. The master end information can include the master end type, the master end model, the position of the master end and the like. The first master end can perform the device addition auxiliary degree analysis according to the master end information of the second master end, and obtain the device addition auxiliary degree. The device addition auxiliary degree can reflect the degree of assistance required by the second master end to add the device by the matter protocol sharing device.

[0083] The first master end pre-adds the device to be shared according to the device addition auxiliary degree of the second master end, and obtains the auxiliary addition information matched with the device addition auxiliary degree. The auxiliary addition information can be the information required by the second master end in addition to the foregoing device addition configuration information when adding the device to be shared. Further, the second master end can successfully add the device to be shared by using the device addition configuration information and the auxiliary addition information, and ensure that the second master end can effectively control the device to be shared after adding the device to be shared.

[0084] In an embodiment, the device addition auxiliary degree analysis according to the master end information of the second master end can include one of the following manners:

[0085] The first kind is to query the degree information matched with the master end information of the second master end from the preset auxiliary analysis table, and obtain the device addition auxiliary degree.

[0086] The second kind is to send a query analysis request carrying the master end information to the server corresponding to the device to be shared, and receive the device addition auxiliary degree issued by the server in response to the query analysis request.

[0087] In the first manner, the first master end can save the preset auxiliary analysis table, and the preset auxiliary analysis table can preset the degree information matched with different master end information. The first master end can query the degree information matched with the master end information of the second master end from the preset auxiliary analysis table, as the obtained device addition auxiliary degree.

[0088] In the second mode, the first master terminal can send a query analysis request carrying master terminal information to the server corresponding to the device to be shared, and the server corresponding to the device to be shared can determine the assistance degree required by the second master terminal when adding the device to be shared under the current system version according to the master terminal information and send it to the first master terminal, and the first master terminal can receive the device addition assistance degree sent by the server in response to the query analysis request. The device addition configuration information in the query analysis request does not need to be carried, which can ensure security. The server corresponding to the device to be shared can be the server of the platform or manufacturer where the device to be shared is located.

[0089] In an embodiment, the device addition assistance degree proxying the second master terminal to pre-add the device to be shared to obtain the auxiliary addition information matched with the device addition assistance degree can include: determining whether the device addition assistance degree is higher than a predetermined threshold; if yes, using the master terminal information to pre-add the device to be shared to obtain the auxiliary addition information matched with the device addition assistance degree.

[0090] When the device addition assistance degree in the first master terminal is higher than the predetermined threshold, the master terminal information is used to pre-add the device to be shared to obtain the auxiliary addition information matched with the device addition assistance degree. That is, when the device addition assistance degree is lower than the predetermined threshold, the first master terminal does not need to proxy pre-add, and the second master terminal does not need auxiliary addition information.

[0091] The way of using the master terminal information to pre-add the device to be shared can be: in the first master terminal, the master terminal information of the second master terminal is configured as a parameter to the simulation program to form a simulation program simulating the second master terminal. The simulation program can simulate the second master terminal adding the device to be shared, and during the simulation addition, the additional auxiliary addition information can be recorded.

[0092] In an embodiment, in step S130, the output of the device sharing code can include one of the following modes:

[0093] The first way is to display the device sharing code on the screen, and the device sharing code includes at least one of a scanning code and an input code.

[0094] The second way is to transmit the device sharing code to the second master terminal through the network.

[0095] In the first mode, the first master terminal displays the device sharing code on the screen, and the device sharing code includes at least one of a scanning code (such as a two-dimensional code or a bar code) and an input code (such as a digital code). The second master terminal can directly scan the scanning code in the first master terminal or input the input code by the user.

[0096] In the second mode, the first master terminal can transmit the device sharing code to the second master terminal through a network, which can be a local area network or a mobile network.

[0097] In one embodiment, after outputting the device sharing code, the method can further include: if the device to be shared is successfully added to the second master terminal, obtaining device management information corresponding to the second master terminal; and recording the device management information in an administrator list in the first master terminal, the administrator list being used to record information of master terminals that have accepted sharing devices from the first master terminal.

[0098] The device management information corresponding to the second master terminal can include a name of the second master terminal and authorization information shared with the second master terminal. The first master terminal records the device management information of the second master terminal in the administrator list in the first master terminal, so that the first master terminal can effectively manage other master terminals to which the first master terminal has shared devices.

[0099] In one embodiment, the method can further include: displaying an administrator management page according to a start operation of the administrator management page, the administrator management page displaying information of master terminals included in the administrator list; and adjusting device control authority of a target master terminal according to a management operation in the administrator management page and acting on the target master terminal.

[0100] The first master terminal displays an administrator management page according to a start operation of the administrator management page (which can be a voice control operation or a screen touch operation, etc.), and the administrator management page displays information of master terminals included in the administrator list. Then, a user can perform a management operation through the administrator management page, so as to adjust device control authority of a target master terminal to a device shared by the first master terminal with the target master terminal. The target master terminal belongs to the master terminals included in the administrator list.

[0101] In one embodiment, the management operation includes but is not limited to a device sharing revocation operation or an authorization information change operation; the device sharing revocation operation is used to revoke control authority of the target master terminal to a shared device shared by the first master terminal; and the authorization information change operation is used to change device addition configuration information shared by the first master terminal with the target master terminal.

[0102] For example, the device sharing revocation operation can be a left swipe operation on a screen for a target master terminal, and then a delete button on a displayed delete button is clicked to delete the target master terminal from the list, so as to revoke control authority of the target master terminal to a device shared by the first master terminal. It can be understood that the device sharing revocation operation can also use other optional operation modes.

[0103] After the device sharing revocation operation is executed, the device sharing code can be regenerated in the first master terminal using the device addition configuration information, and the target master terminal can add the shared device according to the device addition configuration information obtained from the device sharing code, so as to control the shared device again.

[0104] For example, the authorization information change operation can be a click on the screen for the target master terminal. In the displayed information, the user can modify the device addition configuration information shared by the first master terminal to the target master terminal, for example, modify the authorization information, so that the target master terminal cannot control the device shared by the first master terminal.

[0105] After the authorization information change operation is executed, the device sharing code can be regenerated in the first master terminal using the modified device addition configuration information, and the target master terminal can add the shared device according to the modified device addition configuration information obtained from the device sharing code, so as to control the shared device again.

[0106] Further, FIG. 2 schematically shows a flowchart of a device sharing method according to another embodiment of the present application. The execution subject of the device sharing method can be any second master terminal with processing capability, such as a computer, a mobile phone, a tablet computer, and other devices.

[0107] The second master terminal can execute the device sharing method as shown in FIG. 2, which can include steps S210 to S220.

[0108] In step S210, the device addition configuration information corresponding to the to-be-shared device is obtained according to the device sharing code output by the first master terminal through an application supporting the Matter protocol, the to-be-shared device being obtained according to a sharing selection operation in the first master terminal, the to-be-shared device being a device that has been commissioned in the first master terminal, and the device sharing code being a device sharing code generated by the first master terminal through the Matter protocol and containing the device addition configuration information.

[0109] In step S220, the to-be-shared device is added to the second master terminal according to the device addition configuration information.

[0110] According to the sharing selection operation in the first master terminal, one or more devices commissioned in the first master terminal can be selected as to-be-shared devices. The sharing selection operation is an operation of selecting to-be-shared devices, and can be a voice control operation or a screen touch operation.

[0111] For example, the first master has already commissioned the device A and the device B, and in the first master, at least one of the device A and the device B can be selected as a to-be-shared device according to a sharing selection operation. The manner in which the first master commissions each device (for example, the device A, the device B, etc.) can be set according to actual conditions.

[0112] In the first master, in response to a sharing trigger operation, device addition configuration information obtained by commissioning the to-be-shared device can be acquired. The sharing trigger operation is an operation of sharing the to-be-shared device, and the sharing trigger operation can be a voice control operation or a screen touch operation, etc.

[0113] The device addition configuration information is information that can be used to add the to-be-shared device to the master (for example, the second master). In an example, the device addition configuration information can include: device information (for example, a device identifier (device id)) and authorization information (for example, a security credential (token) used to verify the control authority of the user for the to-be-shared device) issued by the cloud after the to-be-shared device is registered to the cloud in the commissioning process. Further, in some examples, the device addition configuration information can further include: a passcode, a product ID, a manufacturer ID, custom flow information, etc. corresponding to the to-be-shared device obtained in the commissioning process.

[0114] In the first master, a device sharing code (Matter code) containing the device addition configuration information can be further generated through the Matter protocol. The device sharing code can include a two-dimensional code, an input code, etc. In the first master, the device sharing code can be further output. The manner in which the device sharing code is output can be that the device sharing code is displayed on the screen, or the device sharing code is transmitted to the second master (for example, a mobile phone, a computer, a smart watch, etc.) through communication.

[0115] In the second master, through an application supporting the Matter protocol, the device sharing code can be scanned or parsed to obtain the device addition configuration information. According to the device addition configuration information, the to-be-shared device can be directly and efficiently added to the second master, without the need for a complex pairing or authentication process, thereby improving user experience and device security.

[0116] After the second master end adds the to-be-shared device to the second master end according to the device addition configuration information, the device control list of the second master end can display the related information of the to-be-shared device, and the second master end can control the to-be-shared device based on the device addition configuration information. For example, the device addition configuration information can include device information and authorization information, the second master end can carry the authorization information in the control command sent to the to-be-shared device, and the to-be-shared device can verify that the second master end has control authority according to the authorization information, so that the to-be-shared device can execute the control command of the second master end.

[0117] In this way, the first master end can generate a device sharing code containing the device addition configuration information of the to-be-shared device through the Matter protocol in response to the sharing trigger operation, and other second master ends can obtain the device addition configuration information through the application supporting the Matter protocol according to the device sharing code and add the to-be-shared device. No matter which platform or ecology the second master end belongs to, the to-be-shared device can be added; and the second master end does not need to perform a lot of pairing or complex authentication process, and the device sharing is convenient; and no information needs to be uploaded to the cloud in the sharing process, and the security is high. Further, the present application can further realize cross-ecology device sharing on the basis of improving the convenience and security of device sharing, and improve the user experience.

[0118] The following describes further optional specific embodiments of each step performed when device sharing is performed in the embodiment of FIG. 2.

[0119] In an embodiment, before the application supporting the Matter protocol obtains the device addition configuration information corresponding to the to-be-shared device according to the device sharing code output by the first master end, the method further includes: downloading a Matter resource; and installing the Matter resource in the application to obtain the application supporting the Matter protocol.

[0120] The second master end downloads the Matter resource and installs the Matter resource in the application to obtain the application supporting the Matter protocol, and then the second master end can obtain the device addition configuration information corresponding to the to-be-shared device through the application supporting the Matter protocol according to the device sharing code output by the first master end.

[0121] In an embodiment, the device sharing code includes at least one of a scanning code and an input code, and the obtaining of the device addition configuration information corresponding to the to-be-shared device according to the device sharing code output by the first master end includes: scanning the scanning code to obtain the device addition configuration information corresponding to the to-be-shared device; or receiving the input input code to obtain the device addition configuration information corresponding to the to-be-shared device according to the input code.

[0122] To facilitate better implementation of the device sharing method provided by the embodiments of the present application, the embodiments of the present application further provide a device sharing apparatus based on the above device sharing method. The meanings of the terms are the same as those in the above device sharing method, and specific implementation details can be referred to the description in the method embodiments.

[0123] FIG. 3 shows a block diagram of a device sharing apparatus according to an embodiment of the present application. The device sharing apparatus 300 shown in FIG. 3 can be applied to a first master terminal, and the device sharing apparatus 300 can include:

[0124] The device determination module 310 can be configured to obtain a to-be-shared device according to a sharing selection operation, the to-be-shared device being a device that has been commissioned through the first master terminal; the sharing code generation module 320 can be configured to, in response to a sharing trigger operation, obtain device addition configuration information obtained through commissioning of the to-be-shared device, and generate a device sharing code containing the device addition configuration information through a Matter protocol; and the output module 330 can be configured to output the device sharing code, so that a second master terminal adds the to-be-shared device to the second master terminal according to the device addition configuration information obtained from the device sharing code by an application supporting the Matter protocol in the second master terminal.

[0125] In an embodiment, the apparatus further includes a recording module configured to: if the to-be-shared device is successfully added to the second master terminal, obtain device management information corresponding to the second master terminal; and record the device management information in an administrator list in the first master terminal, the administrator list being configured to record information of master terminals that have accepted sharing of devices by the first master terminal.

[0126] In an embodiment, the apparatus further includes a management module configured to: display a multi-administrator management page according to a multi-administrator management page opening operation, the multi-administrator management page being configured to display information of master terminals included in the administrator list; and adjust a device control authority of a target master terminal according to a management operation on the target master terminal in the multi-administrator management page.

[0127] In an embodiment, the management operation includes, but is not limited to, a device sharing revocation operation or an authorization information change operation; the device sharing revocation operation is configured to revoke a control authority of the target master terminal on a device shared by the first master terminal; and the authorization information change operation is configured to change device addition configuration information shared by the first master terminal to the target master terminal.

[0128] In an embodiment, the device determining module is configured to: display a device sharing page according to a sharing page starting operation; and obtain the device to be shared according to a device selection operation in the device sharing page.

[0129] In an embodiment, the output module is configured to implement one of the following modes: display the device sharing code on a screen, the device sharing code including at least one of a scanning code and an input code; and transmit the device sharing code to the second master terminal through a network.

[0130] In an embodiment, before the device adding configuration information of the device to be shared obtained when the device to be shared is commissioned is obtained in response to the sharing trigger operation, the apparatus further includes a commissioning module configured to: commission the device to be shared; and record the device adding configuration information of the device to be shared obtained when the device to be shared is commissioned.

[0131] In an embodiment, the sharing code generation module is configured to: obtain master terminal information of the second master terminal; perform device adding assistance degree analysis according to the master terminal information of the second master terminal to obtain a device adding assistance degree; perform pre-adding of the device to be shared on behalf of the second master terminal according to the device adding assistance degree to obtain auxiliary adding information matched with the device adding assistance degree; and generate a device sharing code including the device adding configuration information and the auxiliary adding information through a Matter protocol.

[0132] In an embodiment, the sharing code generation module is configured to: generate a device sharing code including the device adding configuration information through a Matter protocol using the device adding configuration information.

[0133] In an embodiment, the sharing code generation module is configured to implement one of the following modes: query degree information matched with the master terminal information of the second master terminal from a preset auxiliary analysis table to obtain the device adding assistance degree; and send a query analysis request carrying the master terminal information to a server corresponding to the device to be shared, and receive the device adding assistance degree issued by the server in response to the query analysis request.

[0134] In an embodiment, the sharing code generation module is configured to: determine whether the device adding assistance degree is higher than a predetermined threshold; and if yes, perform pre-adding of the device to be shared using the master terminal information to obtain auxiliary adding information matched with the device adding assistance degree.

[0135] FIG. 4 shows a block diagram of a device sharing apparatus according to another embodiment of the present application. As shown in the device sharing apparatus 400 in FIG. 4, the device sharing apparatus 400 can be applied to a second master terminal, and the device sharing apparatus 400 can include:

[0136] The information obtaining module 410 can be configured to obtain, by the application supporting the Matter protocol, device addition configuration information corresponding to a to-be-shared device according to a device sharing code output by a first master terminal, the to-be-shared device being obtained according to a sharing selection operation in the first master terminal, the to-be-shared device being a device that has been configured to network through the first master terminal, and the device sharing code being a device sharing code generated by the first master terminal through the Matter protocol and containing the device addition configuration information; and the device adding module 420 can be configured to add the to-be-shared device to the second master terminal according to the device addition configuration information.

[0137] In an embodiment, before the device addition configuration information corresponding to the to-be-shared device is obtained by the application supporting the Matter protocol according to the device sharing code output by the first master terminal, the apparatus further includes an installation module configured to: download a Matter resource; and install the Matter resource in the application to obtain the application supporting the Matter protocol.

[0138] In an embodiment, the device sharing code includes at least one of a scanning code and an input code, and the information obtaining module is configured to: scan the scanning code to obtain the device addition configuration information corresponding to the to-be-shared device; or receive the input code inputted to obtain the device addition configuration information corresponding to the to-be-shared device according to the input code.

[0139] It should be noted that, although several modules or units of devices for action execution are mentioned in the foregoing detailed description, such division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into several modules or units embodied.

[0140] In addition, the embodiments of the present application also provide an electronic device, as shown in FIG. 5, which is a block diagram of an electronic device according to an embodiment of the present application. Specifically:

[0141] The electronic device can include a processor 501 with one or more processing cores, a memory 502 with one or more computer readable storage media, a power supply 503, and an input unit 504, and the like. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 5 does not constitute a limitation on the electronic device, and can include more or fewer components than shown, or combine certain components, or different component arrangements. Among them:

[0142] The processor 501 is the control center of the electronic device, connects all parts of the computer device through various interfaces and lines, executes various functions and processes data of the computer device by running or executing software programs and / or modules stored in the memory 502 and calling data stored in the memory 502, and thus monitors the whole electronic device. Optionally, the processor 501 can include one or more processing cores; preferably, the processor 501 can integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user pages and application programs, and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 501.

[0143] The memory 502 can be used to store software programs and modules, and the processor 501 executes various functions and data processing by running the software programs and modules stored in the memory 502. The memory 502 can mainly include a program storage area and a data storage area, wherein the program storage area can store operating systems, application programs required by at least one function (such as sound playing function, image playing function, etc.), etc.; the data storage area can store data created according to the use of the computer device, etc. In addition, the memory 502 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state memory device. Accordingly, the memory 502 can also include a memory controller to provide access of the processor 501 to the memory 502.

[0144] The electronic device also includes a power supply 503 for supplying power to various components, and preferably, the power supply 503 can be logically connected to the processor 501 through a power management system, so as to realize functions such as management of charging, discharging and power consumption management through the power management system. The power supply 503 can also include one or more than one direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power state indicator and any other components.

[0145] The electronic device can also include an input unit 504, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.

[0146] Although not shown, the electronic device can also include a display unit and the like, which will not be described here. Specifically, in the present embodiment, the processor 501 in the electronic device will load executable files corresponding to the processes of one or more computer programs into the memory 502 according to the following instructions, and run the computer programs stored in the memory 502 by the processor 501, so as to realize various functions in the above-mentioned embodiments of the present application.

[0147] For example, when the electronic device is implemented as the first master, the processor 501 can perform: obtaining, according to a sharing selection operation, a device to be shared, the device to be shared being a device that has been commissioned by the first master; in response to a sharing trigger operation, obtaining device addition configuration information obtained by commissioning the device to be shared, and generating a device sharing code containing the device addition configuration information through a Matter protocol; and outputting the device sharing code, so that a second master adds the device to be shared to the second master according to the device addition configuration information through an application supporting the Matter protocol according to the device sharing code.

[0148] In an embodiment, after the outputting the device sharing code, the method further includes: if the device to be shared is successfully added to the second master, obtaining device management information corresponding to the second master; and recording the device management information in an administrator list in the first master, the administrator list recording information of a master that has accepted sharing of a device by the first master.

[0149] In an embodiment, the method further includes: displaying an administrator management page according to a page opening operation of the administrator management page, the administrator management page displaying information of a master included in the administrator list; and adjusting a device control authority of a target master according to a management operation of the administrator management page acting on the target master.

[0150] In an embodiment, the management operation includes, but is not limited to, a device sharing revocation operation or an authorization information change operation; the device sharing revocation operation is used to revoke a control authority of the target master for a device shared by the first master; and the authorization information change operation is used to change device addition configuration information shared by the first master to the target master.

[0151] In an embodiment, the obtaining, according to a sharing selection operation, of a device to be shared includes: displaying a device sharing page according to a page starting operation of the device sharing page; and obtaining the device to be shared according to a device selection operation in the device sharing page.

[0152] In an embodiment, the outputting the device sharing code includes one of the following: displaying the device sharing code on a screen, the device sharing code including at least one of a scanning code and an input code; and transmitting the device sharing code to the second master through a network.

[0153] In an embodiment, before the device addition configuration information obtained when the to-be-shared device is commissioned is acquired in response to the sharing trigger operation, the method further comprises: commissioning the to-be-shared device; and recording the device addition configuration information corresponding to the to-be-shared device obtained when the to-be-shared device is commissioned.

[0154] In an embodiment, the generating, by the Matter protocol, of a device sharing code containing the device addition configuration information comprises: acquiring master information of the second master; performing device addition assistance degree analysis according to the master information of the second master to obtain a device addition assistance degree; performing pre-addition of the to-be-shared device on behalf of the second master according to the device addition assistance degree to obtain auxiliary addition information matched with the device addition assistance degree; and generating, by the Matter protocol, a device sharing code containing the device addition configuration information and the auxiliary addition information.

[0155] In an embodiment, the generating, by the Matter protocol, of a device sharing code containing the device addition configuration information comprises: generating, by the Matter protocol, a sharing code using the device addition configuration information to obtain a device sharing code containing the device addition configuration information.

[0156] In an embodiment, the performing of device addition assistance degree analysis according to the master information of the second master to obtain a device addition assistance degree comprises one of the following: querying, from a preset assistance analysis table, degree information matched with the master information of the second master to obtain the device addition assistance degree; and sending, to a server corresponding to the to-be-shared device, a query analysis request carrying the master information and receiving the device addition assistance degree issued by the server in response to the query analysis request.

[0157] In an embodiment, the performing of pre-addition of the to-be-shared device on behalf of the second master according to the device addition assistance degree to obtain auxiliary addition information matched with the device addition assistance degree comprises: determining whether the device addition assistance degree is higher than a predetermined threshold; and if yes, performing pre-addition of the to-be-shared device using the master information to obtain the auxiliary addition information matched with the device addition assistance degree.

[0158] For example, when the electronic device is implemented as the second master, the processor 501 can execute: obtaining, by an application supporting the Matter protocol, device addition configuration information corresponding to a device to be shared from a device sharing code output by a first master, the device to be shared being obtained from the first master according to a sharing selection operation, the device to be shared being a device that has been commissioned by the first master, the device sharing code being a device sharing code generated by the first master through the Matter protocol and containing the device addition configuration information; and adding the device to be shared to the second master according to the device addition configuration information.

[0159] In an embodiment, before the obtaining, by the application supporting the Matter protocol, the device addition configuration information corresponding to the device to be shared from the device sharing code output by the first master, the method further includes: downloading a Matter resource; and installing the Matter resource in the application to obtain the application supporting the Matter protocol.

[0160] In an embodiment, the device sharing code includes at least one of a scanning code and an input code, and the obtaining, from the device sharing code output by the first master, the device addition configuration information corresponding to the device to be shared includes: scanning the scanning code to obtain the device addition configuration information corresponding to the device to be shared; or receiving the input input code to obtain the device addition configuration information corresponding to the device to be shared according to the input code.

[0161] It can be understood by those skilled in the art that all or part of the steps in the various methods of the above embodiments can be completed by a computer program, or by a computer program controlling related hardware, which can be stored in a computer readable storage medium and loaded and executed by a processor.

[0162] To this end, an embodiment of the present application further provides a storage medium having a computer program stored therein, which can be loaded by a processor to execute the steps in any method provided by an embodiment of the present application.

[0163] The storage medium can be a computer readable storage medium, which can include a read only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0164] Since the computer program stored in the storage medium can execute the steps in any method provided by an embodiment of the present application, the beneficial effects of the method provided by an embodiment of the present application can be achieved, which are described in detail in the foregoing embodiments and will not be described here again.

[0165] Other embodiments of this application will be apparent to those skilled in the art from consideration of the specification and practice of the features disclosed herein. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.

[0166] It will be understood that the application is not limited to the embodiments above described and illustrated in the drawings; modifications and improvements can be effected therein without departing from the scope of the application.

Claims

1. A device sharing method, characterized by, The method applied to the first master terminal comprises: According to the sharing selection operation, the method comprises: According to the sharing selection operation, the method comprises: In response to the sharing trigger operation, the device addition configuration information obtained by the network configuration of the to-be-shared device is acquired, and a device sharing code containing the device addition configuration information is generated through the Matter protocol; 2. The method of claim 1, wherein, Output the device sharing code, so that the second master terminal supports the application of the Matter protocol according to the device sharing code to obtain the device addition configuration information, and add the to-be-shared device to the second master terminal according to the device addition configuration information. After outputting the device sharing code, the method further comprises: If the to-be-shared device is successfully added to the second master terminal, the device management information corresponding to the second master terminal is acquired; 3. The method of claim 2, wherein, The device management information is recorded in the administrator list in the first master terminal, and the administrator list is used to record the related information of the master terminal that has accepted the shared device of the first master terminal. The method further comprises: According to the multi-administrator management page opening operation, the administrator management page is displayed, and the administrator management page displays the related information of the master terminal included in the administrator list; 4. The method of claim 3, wherein, According to the management operation of the target master terminal in the administrator management page, the device control authority of the target master terminal is adjusted. The management operation includes but is not limited to device sharing revocation operation or authorization information change operation; The device sharing revocation operation is used to revoke the control authority of the target master terminal for the device shared by the first master terminal; 5. The method of claim 1, wherein, The authorization information change operation is used to change the device addition configuration information shared by the first master terminal to the target master terminal. The method according to the sharing selection operation comprises: According to the sharing page starting operation, the device sharing page is displayed; 6. The method of claim 1, wherein, According to the device selection operation in the device sharing page, the to-be-shared device is obtained. The output of the device sharing code comprises one of the following modes: The device sharing code is displayed on the screen, and the device sharing code includes at least one of a scanning code and an input code; 7. The method of claim 1, wherein, The device sharing code is transmitted to the second master terminal through the network. Before the device addition configuration information obtained by the network configuration of the to-be-shared device is acquired in response to the sharing trigger operation, the method further comprises: The to-be-shared device is configured; 8. The method of claim 1, wherein, The device addition configuration information corresponding to the to-be-shared device obtained during the network configuration is recorded. The method of generating a device sharing code containing the device addition configuration information through the Matter protocol comprises: The master terminal information of the second master terminal is acquired; According to the master terminal information of the second master terminal, the device addition assistance degree analysis is performed to obtain the device addition assistance degree; According to the device addition assistance degree, the second master terminal is pre-added to the to-be-shared device to obtain the auxiliary addition information matched with the device addition assistance degree; generating, by a Matter protocol, a device sharing code containing the device addition configuration information and the auxiliary addition information.

9. The method of claim 1, wherein, The generating, by a Matter protocol, a device sharing code containing the device addition configuration information comprises: The device sharing code is generated by a Matter protocol using the device addition configuration information, and the device sharing code containing the device addition configuration information is obtained.

10. The method of claim 8, wherein, The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The degree information matched with the master information of the second master is obtained from a preset auxiliary analysis table, and the device addition auxiliary degree is obtained. A query analysis request carrying the master information is sent to a server corresponding to the device to be shared, and the device addition auxiliary degree is received in response to the query analysis request.

11. The method of claim 8, wherein, The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master.

12. A device sharing method, comprising: The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master.

13. The method of claim 12, wherein, The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master.

14. The method of claim 12, wherein, The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master.

15. An apparatus sharing device, comprising: The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the device addition auxiliary degree according to the master information of the second master. The device addition auxiliary degree is obtained by analyzing the The sharing code generation module is configured to, in response to a sharing trigger operation, acquire device addition configuration information obtained by commissioning the device to be shared, and generate a device sharing code containing the device addition configuration information through a Matter protocol. The output module is configured to output the device sharing code, so that a second host end obtains the device addition configuration information according to the device sharing code through an application supporting the Matter protocol, and adds the device to be shared to the second host end according to the device addition configuration information.

16. The apparatus of claim 15, wherein, The device further includes a recording module configured to, if the device to be shared is successfully added to the second host end, acquire device management information corresponding to the second host end, and record the device management information to an administrator list in the first host end, the administrator list being configured to record information of a host end that has accepted sharing of a device of the first host end.

17. The apparatus of claim 16, wherein, The device further includes a management module configured to, according to a multi-administrator management page opening operation, display the administrator management page, and display information of a host end included in the administrator list in the administrator management page, and according to a management operation on a target host end in the administrator management page, adjust a device control permission of the target host end.

18. An apparatus sharing device, comprising: The device is applied to a second host end, and includes: An information acquisition module is configured to, through an application supporting a Matter protocol, acquire device addition configuration information corresponding to a device to be shared according to a device sharing code output by a first host end, the device to be shared being obtained according to a sharing selection operation in the first host end, the device to be shared being a device that has been commissioned through the first host end, and the device sharing code being a device sharing code containing the device addition configuration information generated by the first host end through the Matter protocol. A device addition module is configured to add the device to be shared to the second host end according to the device addition configuration information.

19. A storage medium, characterized by A computer program is stored on the device, and when the computer program is executed by a processor of the device, the device executes the method in any one of claims 1 to 11 or 12 to 14.

20. An electronic device, comprising: The device includes: A memory storing a computer program; A processor reading the computer program stored in the memory to execute the method in any one of claims 1 to 11 or 12 to 14.

Citation Information

Patent Citations

  • Bluetooth device sharing requesting method, control method and electronic device

    CN107567009A

  • Cross-ecological equipment management and control method and device, storage medium and electronic equipment

    CN116346842A

  • Access processing method and device for remotely controlling terminal and storage medium

    US20230239294A1

  • Device sharing method and apparatus, device, storage medium, and program product

    WO2023184560A1