WO2025217877A1 - 设备分享方法、装置、存储介质及电子设备 - Google Patents

设备分享方法、装置、存储介质及电子设备

Info

Publication number
WO2025217877A1
WO2025217877A1 PCT/CN2024/088600 CN2024088600W WO2025217877A1 WO 2025217877 A1 WO2025217877 A1 WO 2025217877A1 CN 2024088600 W CN2024088600 W CN 2024088600W WO 2025217877 A1 WO2025217877 A1 WO 2025217877A1
Authority
WO
WIPO (PCT)
Prior art keywords
shared
sharing
configuration information
code
master terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
PCT/CN2024/088600
Other languages
English (en)
French (fr)
Inventor
李付乐
周良俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to PCT/CN2024/088600 priority Critical patent/WO2025217877A1/zh
Priority to CN202480001101.2A priority patent/CN118541955A/zh
Publication of WO2025217877A1 publication Critical patent/WO2025217877A1/zh
Pending legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Definitions

  • the present application relates to the technical field of Internet of Things, and specifically to a device sharing method, apparatus, storage medium and electronic device.
  • the sharing and control of smart home devices usually have many restrictions and inconveniences. Users can only share their devices with other users on the same platform or ecosystem. For example, they can only share devices with other Apple users on Apple's HomeKit.
  • Device sharing has cross-ecosystem restrictions and is less convenient and secure, resulting in a poor user experience.
  • the embodiments of the present application provide a device sharing solution that can further realize cross-ecological device sharing and enhance user experience on the basis of improving the convenience and security of device sharing.
  • a device sharing method is applied to a first master control end, the method comprising: obtaining a device to be shared according to a sharing selection operation, the device to be shared being a device that has been networked through the first master control end; in response to a sharing trigger operation, obtaining device addition configuration information obtained by network configuration for the device to be shared, and generating a device sharing code including the device addition configuration information through the Matter protocol; outputting the device sharing code so that an application supporting the Matter protocol in a second master control end obtains the device addition configuration information according to the device sharing code, and adds the device to be shared to the second master control end according to the device addition configuration information.
  • the method further includes: if the device to be shared is successfully added to the second master control end, obtaining the device management information corresponding to the second master control end; recording the device management information in the administrator list in the first master control end, and the administrator list is used to record relevant information of the master control end that has accepted the device sharing of the first master control end.
  • the method further includes: displaying the administrator management page according to the opening operation of multiple administrator management pages, wherein the administrator management page displays relevant information of the master control terminal included in the administrator list; and adjusting the device control authority of the target master control terminal according to the management operation acting on the target master control terminal in the administrator management page.
  • 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 target master control end's control authority over the device shared by the first master control end; the authorization information change operation is used to change the device added configuration information shared by the first master control end to the target master control end.
  • obtaining the device to be shared according to the sharing selection operation includes: 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.
  • the outputting of the device sharing code includes one of the following methods: displaying the device sharing code on a screen, wherein the device sharing code includes at least one of a scan code and an input code; The code is transmitted to the second main control end.
  • the method before obtaining the device addition configuration information obtained when configuring the network for the device to be shared in response to the sharing trigger operation, the method also includes: configuring the network for the device to be shared; and recording the device addition configuration information corresponding to the device to be shared obtained during the network configuration.
  • the Matter protocol is used to generate a device sharing code containing the device adding configuration information, including: obtaining the master terminal information of the second master terminal; performing a device adding assistance degree analysis based on the master terminal information of the second master terminal to obtain the device adding assistance degree; according to the device adding assistance degree, the second master terminal is used to pre-add the device to be shared to obtain the auxiliary adding information that matches the device adding assistance degree; and the Matter protocol is used to generate a device sharing code containing the device adding configuration information and the auxiliary adding information.
  • generating a device sharing code including the device added configuration information through the Matter protocol includes: generating a sharing code using the device added configuration information through the Matter protocol to obtain a device sharing code including the device added configuration information.
  • the device adding assistance degree analysis is performed based on the master control terminal information of the second master control terminal to obtain the device adding assistance degree, including one of the following methods: querying the degree information of the master control terminal information matching of the second master control terminal from a preset assistance analysis table to obtain the device adding assistance degree; sending a query analysis request carrying the master control terminal information to the server corresponding to the device to be shared, and receiving the device adding assistance degree sent by the server in response to the query analysis request.
  • the second master terminal is used as an agent to pre-add the device to be shared based on the device adding assistance degree to obtain auxiliary adding information that matches the device adding assistance degree, including: judging whether the device adding assistance degree is higher than a predetermined threshold; if so, using the master terminal information to pre-add the device to be shared to obtain auxiliary adding information that matches the device adding assistance degree.
  • a device sharing method is applied to a second master control end, the method comprising: obtaining device addition configuration information corresponding to a device to be shared according to a device sharing code output by a first master control end through an application supporting the Matter protocol, the device to be shared is obtained in the first master control end according to a sharing selection operation, the device to be shared is a device that has been networked through the first master control end, the device sharing code is a device sharing code generated by the first master control end through the Matter protocol and contains the device addition configuration information; and adding the device to be shared to the second master control end according to the device addition configuration information.
  • the method before obtaining the device adding configuration information corresponding to the device to be shared according to the device sharing code output by the first main control end through the application supporting the Matter protocol, the method also includes: downloading Matter resources; installing the Matter resources in the application to obtain the application supporting the Matter protocol.
  • the device sharing code includes at least one of a scan code and an input code
  • obtaining the device adding configuration information corresponding to the device to be shared based on the device sharing code output by the first main control end includes: scanning the scan code to obtain the device adding configuration information corresponding to the device to be shared; or receiving the input code input, and obtaining the device adding configuration information corresponding to the device to be shared according to the input code.
  • a device sharing device is applied to a first main control end, and the device includes: a device determination module, which is used to obtain a device to be shared according to a sharing selection operation, and the device to be shared is a device that has been networked through the first main control end; a sharing code generation module, which is used to obtain device addition configuration information obtained by network configuration for the device to be shared in response to a sharing trigger operation, and generate a device sharing code containing the device addition configuration information through the Matter protocol; an output module, which is used to output the device sharing code, so that the second main control end can obtain the device addition configuration information according to the device sharing code through an application supporting the Matter protocol, and add the device to be shared to the second main control end according to the device addition configuration information.
  • the apparatus further comprises a recording module for: if the device to be shared is successfully added to the second master terminal, obtaining the device management information corresponding to the second master terminal; recording the device management information to the master terminal;
  • the administrator list in the first master terminal is used to record relevant information of the master terminals that have accepted the sharing device from the first master terminal.
  • the device also includes a management module, which is used to: display the administrator management page according to the opening operation of multiple administrator management pages, and display the relevant information of the master terminal included in the administrator list on the administrator management page; adjust the device control authority of the target master terminal according to the management operation acting on the target master terminal in the administrator management page.
  • a management module which is used to: display the administrator management page according to the opening operation of multiple administrator management pages, and display the relevant information of the master terminal included in the administrator list on the administrator management page; adjust the device control authority of the target master terminal according to the management operation acting on the target master terminal in the administrator management page.
  • 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 target master control end's control authority over the device shared by the first master control end; the authorization information change operation is used to change the device added configuration information shared by the first master control end to the target master control end.
  • the device determination module is configured to: display a device sharing page according to a sharing page startup operation; and obtain the device to be shared according to a device selection operation in the device sharing page.
  • the output module is used to implement one of the following methods: displaying the device sharing code on a screen, the device sharing code including at least one of a scan code and an input code; transmitting the device sharing code to the second main control end via a network.
  • the device before obtaining the device addition configuration information obtained when configuring the network for the device to be shared in response to the sharing trigger operation, the device also includes a network configuration module, which is used to: configure the network for the device to be shared; and record the device addition configuration information corresponding to the device to be shared obtained during network configuration.
  • a network configuration module which is used to: configure the network for the device to be shared; and record the device addition configuration information corresponding to the device to be shared obtained during network configuration.
  • the sharing code generation module is used to: obtain the master terminal information of the second master terminal; perform device addition assistance analysis based on the master terminal information of the second master terminal to obtain the device addition assistance level; pre-add the device to be shared on behalf of the second master terminal based on the device addition assistance level to obtain auxiliary addition information that matches the device addition assistance level; and generate a device sharing code including the device addition configuration information and the auxiliary addition information through the Matter protocol.
  • the sharing code generation module is used to: generate a sharing code using the device added configuration information through the Matter protocol to obtain a device sharing code including the device added configuration information.
  • the sharing code generation module is used to implement one of the following methods: querying the degree of matching information of the master terminal information of the second master terminal from a preset auxiliary analysis table to obtain the degree of assistance in adding the device; sending a query analysis request carrying the master terminal information to the server corresponding to the device to be shared, and receiving the degree of assistance in adding the device sent by the server in response to the query analysis request.
  • the sharing code generation module is used to: determine whether the device adding assistance level is higher than a predetermined threshold; if so, use the master terminal information to pre-add the device to be shared to obtain auxiliary adding information that matches the device adding assistance level.
  • a device sharing device is applied to a second master control end, and the device includes: an information acquisition module, which is used to obtain device addition configuration information corresponding to a device to be shared according to a device sharing code output by a first master control end through an application that supports the Matter protocol, wherein the device to be shared is obtained in the first master control end according to a sharing selection operation, the device to be shared is a device that has been networked through the first master control end, and the device sharing code is a device sharing code generated by the first master control end through the Matter protocol and contains the device addition configuration information; a device adding module, which is used to add the device to be shared to the second master control end according to the device addition configuration information.
  • the device before obtaining the device addition configuration information corresponding to the device to be shared according to the device sharing code output by the first main control end through the application supporting the Matter protocol, the device also includes an installation module for: downloading Matter resources; installing the Matter resources in the application to obtain the application supporting the Matter protocol.
  • the device sharing code includes at least one of a scan code and an input code
  • the information acquisition module is used to: scan the scan code to obtain the device adding configuration information corresponding to the device to be shared; or receive the input
  • the input code is used to obtain the device adding configuration information corresponding to the device to be shared according to the input code.
  • a storage medium stores a computer program thereon.
  • the computer program is executed by a processor of a device, the device executes the method described in the embodiment of the present application.
  • an electronic device may include: a memory storing a computer program; and a processor reading the computer program stored in the memory to execute the method described in the embodiment of the present application.
  • a computer program product or computer program includes 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 executes the computer instructions, causing the computer device to perform the methods provided in various optional implementations described in the embodiments of the present application.
  • the first master control end can: obtain the device to be shared according to the sharing selection operation, and the device to be shared is a device that has been networked through the first master control end; in response to the sharing trigger operation, obtain the device addition configuration information obtained by network configuration for the device to be shared, and generate a device sharing code containing the device addition configuration information through the Matter protocol; output the device sharing code so that the second master control end obtains the device addition configuration information according to the device sharing code through an application that supports the Matter protocol, and adds the device to be shared to the second master control end according to the device addition configuration information.
  • the first master terminal can respond to the sharing trigger operation by generating a device sharing code containing the device adding configuration information of the device to be shared through the Matter protocol for the device to be shared that has been networked by itself.
  • the other second master terminals can obtain the device adding configuration information according to the device sharing code through the application that supports the Matter protocol and add the device to be shared.
  • the device to be shared can be added; and there is no need to perform more pairing or complex authentication processes in the second master terminal, and the device sharing is highly convenient; there is no need to upload information to the cloud during the sharing process, and the security is high.
  • this application as a whole can further realize cross-ecological device sharing and enhance user experience on the basis of improving the convenience and security of device sharing.
  • FIG1 shows a flow chart of a device sharing method according to an embodiment of the present application.
  • FIG2 shows a flowchart of a device sharing method according to another embodiment of the present application.
  • FIG3 shows a flow chart of a device sharing apparatus according to an embodiment of the present application.
  • FIG4 shows a flow chart of a device sharing apparatus according to another embodiment of the present application.
  • FIG5 shows a block diagram of an electronic device according to an embodiment of the present application.
  • the terms "include”, “comprise” or any other variations thereof are intended to cover non-exclusive inclusion, so that a method or apparatus comprising a series of elements includes not only the elements explicitly stated, but also other elements not explicitly listed, or also includes elements inherent to the implementation of the method or apparatus. Elements. In the absence of further limitations, an element defined by the phrase “comprising a " does not preclude the presence of other related elements (such as steps in a method or units in a device, where a unit may be a portion of a circuit, a portion of a processor, a portion of a program or software, etc.) in the method or device comprising the element.
  • the device sharing method provided in the embodiment of the present disclosure includes a series of steps, but the device sharing method provided in the embodiment of the present disclosure is not limited to the recorded steps.
  • the device sharing device provided in the embodiment of the present disclosure includes a series of units, but the device provided in the embodiment of the present disclosure is not limited to including the units explicitly recorded, and may also include units that need to be set up to obtain relevant information or perform processing based on information.
  • Figure 1 schematically illustrates a flow chart of a device sharing method according to one embodiment of the present application.
  • the device sharing method can be executed by any first host with processing capabilities, such as a mobile phone, computer, or smartwatch.
  • Devices to be shared include air conditioners, refrigerators, and vehicles.
  • the first host can execute the device sharing method shown in FIG1 , which may include steps S110 to S130 .
  • Step S110 obtaining a device to be shared according to the sharing selection operation, wherein the device to be shared is a device that has been network-connected by the first master terminal;
  • Step S120 in response to the sharing trigger operation, obtaining device addition configuration information obtained by configuring the network for the device to be shared, and generating a device sharing code including the device addition configuration information through the Matter protocol;
  • Step S130 outputting the device sharing code so that the second host terminal obtains the device adding 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 terminal according to the device adding configuration information.
  • the first control terminal can select one or more devices from the first control terminal's network configuration as devices to be shared based on the sharing selection operation.
  • the sharing selection operation is an operation to select a device to be shared, and the sharing selection operation can be a voice control operation or a screen touch operation.
  • the first master control terminal has already configured device A and device B for network configuration.
  • the first master control terminal can select at least one of device A and device B as a device to be shared based on a sharing selection operation.
  • the method by which the first master control terminal configures each device (e.g., device A, device B, etc.) for network configuration can be set based on actual conditions.
  • the first master terminal can obtain the device configuration information obtained by configuring the network for the device to be shared.
  • the sharing trigger operation is an operation to share the device to be shared, and the sharing trigger operation can be a voice control operation or a screen touch operation.
  • Device addition configuration information is information that can be used to add the device to be shared to the master terminal (e.g., the second master terminal).
  • the device addition configuration information may include: during the network configuration process, the device information (e.g., device identifier (deviceid)) and authorization information (e.g., security credentials (token), which are used to verify the user's control authority over the device to be shared) issued by the cloud after the device to be shared is registered with the cloud.
  • the device addition configuration information may also include: during the network configuration process, the passcode (passcode), product ID, manufacturer ID, custom flow information (custom flow), and other information corresponding to the device to be shared.
  • the first host can further generate a device sharing code (Matter code) containing the device added configuration information through the Matter protocol.
  • the device sharing code can include a QR code, an input code, etc.
  • the first host can further generate a device sharing code (Matter code) containing the device added configuration information through the Matter protocol.
  • the device sharing code can be output by displaying the device sharing code on the screen or transmitting the device sharing code to the second main control end through communication.
  • the second main control end can be a mobile phone, computer, smart watch, etc.
  • the second host can scan or parse the device sharing code on an application that supports the Matter protocol to obtain the device addition configuration information. Based on the device addition configuration information, the second host can directly and efficiently add the device to the second host, eliminating the need for complex pairing or authentication processes, thereby improving user experience and device security.
  • the second master terminal's device control list may display relevant information about the device to be shared, and the second master terminal may control the device to be shared based on the device addition configuration information.
  • the device addition configuration information may include device information and authorization information.
  • the control command sent by the second master terminal to the device to be shared may include the authorization information.
  • the device to be shared can verify that the second master terminal has control authority based on the authorization information, and thus the device to be shared can execute the control command of the second master terminal.
  • the first master terminal can respond to the sharing trigger operation by generating a device sharing code containing the device adding configuration information of the device to be shared through the Matter protocol for the device to be shared that has been networked by itself.
  • the other second master terminals can obtain the device adding configuration information according to the device sharing code through the application that supports the Matter protocol and add the device to be shared.
  • the device to be shared can be added; and there is no need to perform more pairing or complex authentication processes in the second master terminal, and the device sharing is highly convenient; there is no need to upload information to the cloud during the sharing process, and the security is high.
  • this application as a whole can further realize cross-ecological device sharing and enhance user experience on the basis of improving the convenience and security of device sharing.
  • obtaining the device to be shared according to the sharing selection operation may 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.
  • the first control terminal displays the device sharing page based on a share page initiation operation.
  • the share page initiation operation can be voice control or screen touch operation.
  • the device sharing page can display information about devices configured by the first control terminal. The user can select one or more devices to share on the device sharing page by sliding, clicking, or other device selection operations.
  • obtaining the device to be shared according to the sharing selection operation may include: receiving a device selection voice input by the user, and using the device indicated in the device selection voice as the device to be shared.
  • the method may also include: configuring the network for the device to be shared; and recording the device addition configuration information corresponding to the device to be shared obtained during the network configuration.
  • the first master control end records the device addition configuration information corresponding to the device to be shared obtained during the network configuration into the record information in the first master control end. Then, in response to the sharing trigger operation, the first master control end can obtain the device addition configuration information obtained by configuring the device to be shared from the record information.
  • the process of the first host configuring the network for the shared device may include:
  • the first host scans the QR code on the device to be shared. After the scan is successful, it jumps to the user guidance page. After that, the matter application in the first host goes to the cloud to obtain the binding code (bindcode). Among them, the matter application can obtain the binding code (bindcode) from the cloud through the user ID (userid). After the shared device is registered and online, the device to be shared is bound to the user ID (userid).
  • the matter application and the device to be shared go through a series of standard network configuration processes, which may include: establishing a PASE channel, device authentication, issuing certificates, configuring ACLs, configuring network information, etc. Then, the matter application and the device to be shared establish a CASE channel within the local area network.
  • the matter application After the matter application completes network configuration (i.e., the CASE channel is established), the matter application sends the binding code and host domain name to the device to be shared through the CASE channel within the local area network.
  • the device to be shared After receiving the binding code and host domain name, the device to be shared performs regular registration and MQTT cloud connection operations on the cloud.
  • the pk in the registration can be obtained from the electronic control end of the device.
  • the cloud After the device to be shared successfully registers with the cloud, the cloud sends the device identifier (deviceid) and security credentials (token) and other information to the device to be shared.
  • the cloud can push relevant information of the device to be shared to the first master terminal.
  • the relevant information of the device to be shared pushed by the cloud may include information such as the device identifier (deviceid) and security credentials (token).
  • generating a device sharing code including the device added configuration information through the Matter protocol may include: generating a sharing code using the device added configuration information through the Matter protocol to obtain a device sharing code including the device added configuration information.
  • the first master control end uses the CHIP (Connected Home over IP) tool to use the device added configuration information as a parameter to generate a device sharing code.
  • the CHIP (Connected Home over IP) tool uses the device added configuration information through the Matter protocol to generate a sharing code.
  • the first main control end directly uses the device addition configuration information to generate a device sharing code without performing device addition assistance level analysis.
  • generating a device sharing code including the device adding configuration information through the Matter protocol may include: obtaining the master control terminal information of the second master control terminal; performing a device adding assistance degree analysis based on the master control terminal information of the second master control terminal to obtain the device adding assistance degree; performing pre-addition of the device to be shared on behalf of the second master control terminal based on the device adding assistance degree to obtain auxiliary adding information that matches the device adding assistance degree; generating a device sharing code including the device adding configuration information and the auxiliary adding information through the Matter protocol.
  • the first master when the first master generates a device sharing code, it analyzes the device addition assistance level on the second master. Based on the analysis results, it pre-adds the device to be shared on behalf of the second master, obtaining assistance information to be included in the device sharing code. Furthermore, the second master further obtains assistance information based on the device sharing code. With this assistance, the second master can further ensure the successful addition of the device to be shared, thereby further improving the reliability of device sharing.
  • the first master terminal can interact with the second master terminal to obtain the second master terminal's master terminal information, which may include information such as the master terminal type, model, and location.
  • the first master terminal can analyze the device addition assistance level based on the second master terminal's master terminal information to determine the device addition assistance level.
  • the device addition assistance level can reflect the degree of assistance required by the second master terminal to add a device through device sharing via the Matter protocol.
  • the first master terminal pre-adds the device to be shared on behalf of the second master terminal, obtaining auxiliary addition information that matches the device addition assistance level.
  • This auxiliary addition information can be additional information required by the second master terminal, beyond the previously mentioned device addition configuration information, when adding the device to be shared.
  • the second master terminal can use the device addition configuration information and auxiliary addition information to successfully add the device to be shared, ensuring that the second master terminal can effectively control the device after adding it.
  • the analyzing the device adding assistance degree based on the master terminal information of the second master terminal to obtain the device adding assistance degree may include one of the following methods:
  • the first method is to query the matching degree information of the second master terminal from the preset auxiliary analysis table to obtain the auxiliary degree of the device addition;
  • the second method is to send a query analysis request carrying the master terminal information to the server corresponding to the device to be shared, and receive the device adding assistance level issued by the server in response to the query analysis request.
  • the first main control terminal can save the preset auxiliary analysis table, which can be preset
  • the first master terminal can query the matching degree information of the master terminal information of the second master terminal from the preset auxiliary analysis table as the obtained device adding assistance degree.
  • the first master can send a query and analysis request containing the master information to the server corresponding to the device to be shared.
  • the server corresponding to the device to be shared can then determine the level of assistance required by the second master to add the device to be shared under the current system version based on the master information and send it to the first master.
  • the first master then receives the device addition assistance level sent by the server in response to the query and analysis request.
  • the query and analysis request does not need to contain the aforementioned device addition configuration information, ensuring security.
  • the server corresponding to the device to be shared can be a server of the platform or manufacturer of the device to be shared.
  • the first master determines that the device addition assistance level is above a predetermined threshold, it uses the master information to pre-add the shared device, obtaining assistance information that matches the device addition assistance level. In other words, if the device addition assistance level is below the predetermined threshold, the first master does not need to pre-add the device, and the second master does not need to provide assistance information.
  • the method of using the master terminal information to pre-add the device to be shared can be: the master terminal information of the second master terminal is configured as a parameter in the simulation program in the first master terminal to form a simulation program that simulates the second master terminal.
  • the simulation program can simulate the second master terminal adding the device to be shared. During the simulated addition process, additional auxiliary addition information required can be recorded.
  • step S130 outputting the device sharing code may include one of the following methods:
  • the first method is to display the device sharing code on the screen, where the device sharing code includes at least one of a scan code and an input code;
  • the second method is to transmit the device sharing code to the second main control end through the network.
  • the first host displays a device sharing code on its screen.
  • the device sharing code includes at least one of a scan code (such as a QR code or barcode) and an input code (such as a digital code).
  • the second host can directly scan the scan code on the first host or the user can enter the input code.
  • the first host can transmit the device sharing code to the second host via a network, which can be a local area network or a mobile network.
  • the method may further include: if the device to be shared is successfully added to the second master control end, obtaining the device management information corresponding to the second master control end; recording the device management information in the administrator list in the first master control end, and the administrator list is used to record relevant information of the master control end that has accepted the device sharing from the first master control end.
  • the device management information corresponding to the second host may include the name of the second host and the authorization information shared with the second host.
  • the first host records the device management information of the second host in the administrator list of the first host, and can effectively manage other hosts that have shared devices with the first host through the administrator list.
  • the method may further include: displaying the administrator management page according to the opening operation of multiple administrator management pages, wherein the administrator management page displays relevant information of the master control terminal included in the administrator list; and adjusting the device control authority of the target master control terminal according to the management operation acting on the target master control terminal in the administrator management page.
  • the first control terminal opens the administrator management page according to the multi-administrator management page opening operation (which can be a voice control operation or a screen touch operation, etc.), and the administrator management page displays the relevant information of the control terminals included in the administrator list. Then, the user can perform management operations through the administrator management page, thereby adjusting the device control authority of the target control terminal for the device shared to the target control terminal by the first control terminal. Among them, the target control terminal belongs to the administrator list.
  • 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 target master control end's control authority over the device shared by the first master control end; the authorization information change operation is used to change the device added configuration information shared by the first master control end to the target master control end.
  • the device sharing cancellation operation can be performed by swiping left on the target host on the screen and then clicking the delete button on the displayed delete button, thereby deleting the target host from the list, thereby revoking the target host's control authority over the device shared by the first host. It is understood that the device sharing cancellation operation can also adopt other optional operation methods.
  • the first host can use the device adding configuration information to regenerate the device sharing code.
  • the target host can obtain the device adding configuration information based on the device sharing code to add the shared device and regain control of the shared device.
  • the authorization information change operation can be to click on the target master terminal on the screen.
  • the user can modify the device added configuration information shared by the first master terminal to the target master terminal, for example, modify the authorization information therein, so that the target master terminal will not be able to control the device shared by the first master terminal.
  • the first master control end can use the modified device addition configuration information to regenerate the device sharing code.
  • the target master control end can then obtain the modified device addition configuration information based on the device sharing code to add the shared device and regain control of the shared device.
  • Figure 2 schematically shows a flow chart 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 host with processing capabilities, such as a computer, mobile phone, tablet computer, and other devices.
  • the second host can execute the device sharing method shown in FIG. 2 , which may include steps S210 to S220 .
  • Step S210 Obtaining, through an application supporting the Matter protocol, device addition configuration information corresponding to a device to be shared based on a device sharing code output by the first master terminal, wherein the device to be shared is obtained by the first master terminal according to a sharing selection operation, and the device to be shared is a device that has been network-configured by the first master terminal.
  • the device sharing code is a device sharing code generated by the first master terminal using the Matter protocol and includes the device addition configuration information;
  • Step S220 adding the device to be shared to the second main control end according to the device adding configuration information.
  • the first control terminal can select one or more devices from the first control terminal's network configuration as devices to be shared based on the sharing selection operation.
  • the sharing selection operation is an operation to select a device to be shared, and the sharing selection operation can be a voice control operation or a screen touch operation.
  • the first master control terminal has already configured device A and device B for network configuration.
  • the first master control terminal can select at least one of device A and device B as a device to be shared based on a sharing selection operation.
  • the method by which the first master control terminal configures each device (e.g., device A, device B, etc.) for network configuration can be set based on actual conditions.
  • the first master terminal can obtain the device configuration information obtained by configuring the network for the device to be shared.
  • the sharing trigger operation is an operation to share the device to be shared, and the sharing trigger operation can be a voice control operation or a screen touch operation.
  • Device addition configuration information is information that can be used to add the device to be shared to the master terminal (e.g., the second master terminal).
  • the device addition configuration information may include: during the network configuration process, the device information (e.g., device identifier (deviceid)) and authorization information (e.g., security credentials (token), which are used to verify the user's control authority over the device to be shared) issued by the cloud after the device to be shared is registered with the cloud.
  • the device addition configuration information may also include: information such as the passcode, product ID, manufacturer ID, custom flow information, etc. corresponding to the device to be shared, obtained during the network configuration process.
  • the first host can further generate a device sharing code (Matter code) containing the device's added configuration information through the Matter protocol.
  • the device sharing code can include a QR code, an input code, etc.
  • the first host can further output the device sharing code.
  • the output method of the device sharing code can be to display the device sharing code on the screen or transmit the device sharing code to the second host through communication.
  • the second host can be, for example, a mobile phone, computer, smart watch, etc.
  • the second host can scan or parse the device sharing code on an application that supports the Matter protocol to obtain the device addition configuration information. Based on the device addition configuration information, the second host can directly and efficiently add the device to the second host, eliminating the need for complex pairing or authentication processes, thereby improving user experience and device security.
  • the second master terminal's device control list may display relevant information about the device to be shared, and the second master terminal may control the device to be shared based on the device addition configuration information.
  • the device addition configuration information may include device information and authorization information.
  • the control command sent by the second master terminal to the device to be shared may include the authorization information.
  • the device to be shared can verify that the second master terminal has control authority based on the authorization information, and thus the device to be shared can execute the control command of the second master terminal.
  • the first master terminal can respond to the sharing trigger operation by generating a device sharing code containing the device adding configuration information of the device to be shared through the Matter protocol for the device to be shared that has been networked by itself.
  • the other second master terminals can obtain the device adding configuration information according to the device sharing code through the application that supports the Matter protocol and add the device to be shared.
  • the device to be shared can be added; and there is no need to perform more pairing or complex authentication processes in the second master terminal, and the device sharing is highly convenient; there is no need to upload information to the cloud during the sharing process, and the security is high.
  • this application as a whole can further realize cross-ecological device sharing and enhance user experience on the basis of improving the convenience and security of device sharing.
  • the method before obtaining the device adding configuration information corresponding to the device to be shared according to the device sharing code output by the first main control end through the application supporting the Matter protocol, the method also includes: downloading Matter resources; installing the Matter resources in the application to obtain the application supporting the Matter protocol.
  • the second master terminal downloads the Matter resource and installs the Matter resource in the application to obtain an application that supports the Matter protocol. Then, the second master terminal can obtain the device addition configuration information corresponding to the device to be shared based on the device sharing code output by the first master terminal through the application that supports the Matter protocol.
  • the device sharing code includes at least one of a scan code and an input code
  • obtaining the device adding configuration information corresponding to the device to be shared based on the device sharing code output by the first main control end includes: scanning the scan code to obtain the device adding configuration information corresponding to the device to be shared; or receiving the input code input, and obtaining the device adding configuration information corresponding to the device to be shared according to the input code.
  • the embodiment of the present application also provides a device sharing apparatus based on the above device sharing method.
  • the meanings of the terms herein are the same as those in the above device sharing method, and the specific implementation details can be referred to the description in the method embodiment.
  • FIG3 shows a block diagram of a device sharing apparatus according to an embodiment of the present application.
  • the device sharing apparatus 300 shown in FIG3 can be applied to a first host, and the device sharing apparatus 300 may include:
  • the device determination module 310 can be used to obtain the device to be shared according to the sharing selection operation, and the device to be shared is a device that has been networked through the first main control end;
  • the sharing code generation module 320 can be used to obtain the device addition configuration information obtained by network configuration of the device to be shared in response to the sharing trigger operation, and generate a device sharing code containing the device addition configuration information through the Matter protocol;
  • the output module 330 can be used to output the device sharing code, so that the second main control end can obtain the device addition configuration information according to the device sharing code through an application that supports the Matter protocol, and add the device to be shared to the second main control end according to the device addition configuration information.
  • the apparatus further includes a recording module for: if the device to be shared is successfully added to the In the second master control terminal, the device management information corresponding to the second master control terminal is obtained; the device management information is recorded in the administrator list in the first master control terminal, and the administrator list is used to record the relevant information of the master control terminals that have accepted the sharing of devices by the first master control terminal.
  • the device also includes a management module, which is used to: display the administrator management page according to the opening operation of multiple administrator management pages, and display the relevant information of the master terminal included in the administrator list on the administrator management page; adjust the device control authority of the target master terminal according to the management operation acting on the target master terminal in the administrator management page.
  • a management module which is used to: display the administrator management page according to the opening operation of multiple administrator management pages, and display the relevant information of the master terminal included in the administrator list on the administrator management page; adjust the device control authority of the target master terminal according to the management operation acting on the target master terminal in the administrator management page.
  • 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 target master control end's control authority over the device shared by the first master control end; the authorization information change operation is used to change the device added configuration information shared by the first master control end to the target master control end.
  • the device determination module is configured to: display a device sharing page according to a sharing page startup operation; and obtain the device to be shared according to a device selection operation in the device sharing page.
  • the output module is used to implement one of the following methods: displaying the device sharing code on a screen, the device sharing code including at least one of a scan code and an input code; transmitting the device sharing code to the second main control end via a network.
  • the device before obtaining the device addition configuration information obtained when configuring the network for the device to be shared in response to the sharing trigger operation, the device also includes a network configuration module, which is used to: configure the network for the device to be shared; and record the device addition configuration information corresponding to the device to be shared obtained during network configuration.
  • a network configuration module which is used to: configure the network for the device to be shared; and record the device addition configuration information corresponding to the device to be shared obtained during network configuration.
  • the sharing code generation module is used to: obtain the master terminal information of the second master terminal; perform device addition assistance analysis based on the master terminal information of the second master terminal to obtain the device addition assistance level; pre-add the device to be shared on behalf of the second master terminal based on the device addition assistance level to obtain auxiliary addition information that matches the device addition assistance level; and generate a device sharing code including the device addition configuration information and the auxiliary addition information through the Matter protocol.
  • the sharing code generation module is used to: generate a sharing code using the device added configuration information through the Matter protocol to obtain a device sharing code including the device added configuration information.
  • the sharing code generation module is used to implement one of the following methods: querying the degree of matching information of the master terminal information of the second master terminal from a preset auxiliary analysis table to obtain the degree of assistance in adding the device; sending a query analysis request carrying the master terminal information to the server corresponding to the device to be shared, and receiving the degree of assistance in adding the device sent by the server in response to the query analysis request.
  • the sharing code generation module is used to: determine whether the device adding assistance level is higher than a predetermined threshold; if so, use the master terminal information to pre-add the device to be shared to obtain auxiliary adding information that matches the device adding assistance level.
  • FIG4 shows a block diagram of a device sharing apparatus according to another embodiment of the present application.
  • the device sharing apparatus 400 can be applied to a second master terminal, and the device sharing apparatus 400 may include:
  • the information acquisition module 410 can be used to obtain the device addition configuration information corresponding to the device to be shared according to the device sharing code output by the first master terminal through an application that supports the Matter protocol.
  • the device to be shared is obtained in the first master terminal according to the sharing selection operation, and the device to be shared is a device that has been networked through the first master terminal.
  • the device sharing code is the device sharing code generated by the first master terminal through the Matter protocol and contains the device addition configuration information; the device adding module 420 can be used to add the device to be shared to the second master terminal according to the device addition configuration information.
  • the apparatus before obtaining the device adding configuration information corresponding to the device to be shared according to the device sharing code output by the first master terminal through the application supporting the Matter protocol, the apparatus further includes an installation module for: Download the Matter resource; install the Matter resource in the application to obtain the application that supports the Matter protocol.
  • the device sharing code includes at least one of a scan code and an input code
  • the information acquisition module is used to: scan the scan code to obtain the device adding configuration information corresponding to the device to be shared; or receive the input code and obtain the device adding configuration information corresponding to the device to be shared according to the input code.
  • FIG5 shows a block diagram of an electronic device according to an embodiment of the present application. Specifically:
  • the electronic device may include components such as 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.
  • a processor 501 with one or more processing cores
  • a memory 502 with one or more computer-readable storage media
  • a power supply 503 with one or more computer-readable storage media
  • FIG5 does not limit the electronic device and may include more or fewer components than shown, or combine certain components, or arrange the components differently.
  • Processor 501 is the control center of the electronic device. It utilizes various interfaces and circuits to connect the various components of the entire computer device. By running or executing software programs and/or modules stored in memory 502 and accessing data stored in memory 502, it performs various computer device functions and processes data, thereby providing overall monitoring of the electronic device.
  • processor 501 may include one or more processing cores; preferably, processor 501 may integrate an application processor and a modem processor, wherein the application processor primarily processes the operating system, user interfaces, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into processor 501.
  • the memory 502 can be used to store software programs and modules.
  • the processor 501 executes various functional applications and data processing by running the software programs and modules stored in the memory 502.
  • the memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, at least one application required for a function (such as a sound playback function, an image playback function, etc.); the data storage area may store data created according to the use of the computer device, etc.
  • the memory 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.
  • the electronic device also includes a power supply 503 for supplying power to various components.
  • the power supply 503 can be logically connected to the processor 501 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption.
  • the power supply 503 can also include one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and other arbitrary components.
  • the electronic device may further include an input unit 504, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
  • an input unit 504 which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
  • the electronic device may further include a display unit, etc., which will not be described in detail herein.
  • the processor 501 in the electronic device will load the executable files corresponding to one or more computer program processes into the memory 502 according to the following instructions, and the processor 501 will run the computer programs stored in the memory 502, thereby realizing the various functions in the aforementioned embodiments of the present application.
  • the processor 501 can execute: according to the sharing selection operation, obtain the device to be shared, the device to be shared is the device that has been networked through the first master terminal; in response to the sharing trigger operation, obtain the device adding configuration information obtained by configuring the device to be shared, and generate a device sharing code containing the device adding configuration information through the Matter protocol; output the device sharing code so that the second The master terminal obtains the device adding 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 master terminal according to the device adding configuration information.
  • the method further includes: if the device to be shared is successfully added to the second master control end, obtaining the device management information corresponding to the second master control end; recording the device management information in the administrator list in the first master control end, and the administrator list is used to record relevant information of the master control end that has accepted the device sharing of the first master control end.
  • the method further includes: displaying the administrator management page according to the opening operation of multiple administrator management pages, wherein the administrator management page displays relevant information of the master control terminal included in the administrator list; and adjusting the device control authority of the target master control terminal according to the management operation acting on the target master control terminal in the administrator management page.
  • 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 target master control end's control authority over the device shared by the first master control end; the authorization information change operation is used to change the device added configuration information shared by the first master control end to the target master control end.
  • obtaining the device to be shared according to the sharing selection operation includes: 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.
  • outputting the device sharing code includes one of the following methods: displaying the device sharing code on a screen, the device sharing code including at least one of a scan code and an input code; transmitting the device sharing code to the second main control end via a network.
  • the method before obtaining the device addition configuration information obtained when configuring the network for the device to be shared in response to the sharing trigger operation, the method also includes: configuring the network for the device to be shared; and recording the device addition configuration information corresponding to the device to be shared obtained during the network configuration.
  • the Matter protocol is used to generate a device sharing code containing the device adding configuration information, including: obtaining the master terminal information of the second master terminal; performing a device adding assistance degree analysis based on the master terminal information of the second master terminal to obtain the device adding assistance degree; according to the device adding assistance degree, the second master terminal is used to pre-add the device to be shared to obtain the auxiliary adding information that matches the device adding assistance degree; and the Matter protocol is used to generate a device sharing code containing the device adding configuration information and the auxiliary adding information.
  • generating a device sharing code including the device added configuration information through the Matter protocol includes: generating a sharing code using the device added configuration information through the Matter protocol to obtain a device sharing code including the device added configuration information.
  • the device adding assistance degree analysis is performed based on the master control terminal information of the second master control terminal to obtain the device adding assistance degree, including one of the following methods: querying the degree information of the master control terminal information matching of the second master control terminal from a preset assistance analysis table to obtain the device adding assistance degree; sending a query analysis request carrying the master control terminal information to the server corresponding to the device to be shared, and receiving the device adding assistance degree sent by the server in response to the query analysis request.
  • the second master terminal is used as an agent to pre-add the device to be shared based on the device adding assistance degree to obtain auxiliary adding information that matches the device adding assistance degree, including: judging whether the device adding assistance degree is higher than a predetermined threshold; if so, using the master terminal information to pre-add the device to be shared to obtain auxiliary adding information that matches the device adding assistance degree.
  • the processor 501 may execute: through an application supporting the Matter protocol, according to the device sharing code output by the first master terminal, obtain the device adding configuration information corresponding to the device to be shared, wherein the device to be shared is obtained in the first master terminal according to the sharing selection operation, and the device to be shared is obtained through the first master terminal.
  • the device sharing code is a device sharing code generated by the first master terminal through the Matter protocol and contains the device adding configuration information; the device to be shared is added to the second master terminal according to the device adding configuration information.
  • the method before obtaining the device adding configuration information corresponding to the device to be shared according to the device sharing code output by the first main control end through the application supporting the Matter protocol, the method also includes: downloading Matter resources; installing the Matter resources in the application to obtain the application supporting the Matter protocol.
  • the device sharing code includes at least one of a scan code and an input code
  • obtaining the device adding configuration information corresponding to the device to be shared based on the device sharing code output by the first main control end includes: scanning the scan code to obtain the device adding configuration information corresponding to the device to be shared; or receiving the input code input, and obtaining the device adding configuration information corresponding to the device to be shared according to the input code.
  • an embodiment of the present application further provides a storage medium storing a computer program, which can be loaded by a processor to execute the steps of any method provided in the embodiment of the present application.
  • the storage medium can be a computer-readable storage medium, and the storage medium can include: read-only memory (ROM), random access memory (RAM), disk or CD, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本申请公开了一种设备分享方法、装置、存储介质及电子设备,涉及物联网技术领域,第一主控端可以:根据分享选择操作,得到待分享设备,所述待分享设备为通过所述第一主控端已进行配网的设备;响应于分享触发操作,获取对所述待分享设备进行配网所得到的设备添加配置信息,以及,通过Matter协议生成一个包含所述设备添加配置信息的设备分享码;输出所述设备分享码,以使第二主控端中通过支持所述Matter协议的应用根据所述设备分享码获得所述设备添加配置信息,并根据所述设备添加配置信息添加所述待分享设备至所述第二主控端中。本申请可以在提升设备分享的便捷性及安全性的基础上,进一步实现跨生态设备分享,提升用户体验。

Description

设备分享方法、装置、存储介质及电子设备 技术领域
本申请涉及物联网技术领域,具体涉及一种设备分享方法、装置、存储介质及电子设备。
背景技术
以智能家居场景为例,智能家居设备的分享和控制通常存在着很多限制和不便,用户只能将自己的设备分享给同一个平台或生态的其他用户,例如,只能在苹果的HomeKit上分享设备给其他苹果用户。
目前,设备分享时,一方面,各生态存中设备的分享和控制存在封闭限制,另一方面,设备分享时需要进行较多的配对或复杂认证过程,另一方面,设备分享时用户需要将自己设备的设备信息和授权信息等上传到云端,存在很多安全和隐私的风险。
技术问题
设备分享存在跨生态限制,且便捷性及安全性较差的问题,导致用户体验较差。
技术解决方案
本申请实施例提供一种设备分享方案,可以在提升设备分享的便捷性及安全性的基础上,进一步实现跨生态设备分享,提升用户体验。
本申请实施例提供以下技术方案:
根据本申请的一个实施例,一种设备分享方法,应用于第一主控端,所述方法包括:根据分享选择操作,得到待分享设备,所述待分享设备为通过所述第一主控端已进行配网的设备;响应于分享触发操作,获取对所述待分享设备进行配网所得到的设备添加配置信息,以及,通过Matter协议生成一个包含所述设备添加配置信息的设备分享码;输出所述设备分享码,以使第二主控端中通过支持所述Matter协议的应用根据所述设备分享码获得所述设备添加配置信息,并根据所述设备添加配置信息添加所述待分享设备至所述第二主控端中。
一种实施例中,在所述输出所述设备分享码之后,所述方法还包括:若所述待分享设备成功添加至所述第二主控端中,获取所述第二主控端对应的设备管理信息;将所述设备管理信息记录至所述第一主控端中的管理员列表中,所述管理员列表中用于记录接受过所述第一主控端分享设备的主控端的相关信息。
一种实施例中,所述方法还包括:根据多管理员管理页面开启操作,显示所述管理员管理页面,所述管理员管理页面中展示所述管理员列表中包括的主控端的相关信息;根据所述管理员管理页面中作用于目标主控端的管理操作,调整所述目标主控端的设备控制权限。
一种实施例中,所述管理操作包括但不限于设备分享撤销操作或授权信息更改操作;所述设备分享撤销操作用于撤销所述目标主控端对于所述第一主控端分享的设备的管控权限;所述授权信息更改操作用于更改所述第一主控端分享给所述目标主控端的设备添加配置信息。
一种实施例中,所述根据分享选择操作,得到待分享设备,包括:根据分享页面启动操作,显示设备分享页面;根据所述设备分享页面中的设备选择操作,得到所述待分享设备。
一种实施例中,所述输出所述设备分享码,包括以下方式中一种:通过屏幕显示所述设备分享码,所述设备分享码包括扫描码及输入码中至少一种;通过网络将所述设备分享 码传输至所述第二主控端。
一种实施例中,在所述响应于分享触发操作,获取对所述待分享设备进行配网时得到的设备添加配置信息之前,所述方法还包括:对所述待分享设备进行配网;记录配网时所获得的所述待分享设备对应的所述设备添加配置信息。
一种实施例中,所述通过Matter协议生成一个包含所述设备添加配置信息的设备分享码,包括:获取所述第二主控端的主控端信息;根据所述第二主控端的主控端信息进行设备添加辅助程度分析,得到设备添加辅助程度;根据所述设备添加辅助程度代理所述第二主控端对所述待分享设备进行预添加,得到所述设备添加辅助程度匹配的辅助添加信息;通过Matter协议生成一个包含所述设备添加配置信息及所述辅助添加信息的设备分享码。
一种实施例中,所述通过Matter协议生成一个包含所述设备添加配置信息的设备分享码,包括:通过Matter协议使用所述设备添加配置信息进行分享码生成,得到包含所述设备添加配置信息的设备分享码。
一种实施例中,所述根据所述第二主控端的主控端信息进行设备添加辅助程度分析,得到设备添加辅助程度,包括以下方式中一种:从预设辅助分析表中查询所述第二主控端的主控端信息匹配的程度信息,得到所述设备添加辅助程度;向所述待分享设备对应的服务器发送携带所述主控端信息的查询分析请求,并接收所述服务器响应所述查询分析请求下发的所述设备添加辅助程度。
一种实施例中,所述根据所述设备添加辅助程度代理所述第二主控端对所述待分享设备进行预添加,得到所述设备添加辅助程度匹配的辅助添加信息,包括:判断所述设备添加辅助程度是否高于预定阈值;若是,则使用所述主控端信息对所述待分享设备进行预添加,得到所述设备添加辅助程度匹配的辅助添加信息。
根据本申请的一个实施例,一种设备分享方法,应用于第二主控端,所述方法包括:通过支持Matter协议的应用,根据第一主控端输出的设备分享码获得待分享设备对应的设备添加配置信息,所述待分享设备为所述第一主控端中根据分享选择操作得到的,所述待分享设备为通过所述第一主控端已进行配网的设备,所述设备分享码为所述第一主控端通过Matter协议生成的包含所述设备添加配置信息的设备分享码;根据所述设备添加配置信息添加所述待分享设备至所述第二主控端中。
一种实施例中,在所述通过支持所述Matter协议的应用,根据第一主控端输出的设备分享码获得待分享设备对应的设备添加配置信息之前,所述方法还包括:下载Matter资源;在应用中安装所述Matter资源,得到所述支持Matter协议的应用。
一种实施例中,所述设备分享码包括扫描码及输入码中至少一种,所述根据第一主控端输出的设备分享码获得待分享设备对应的设备添加配置信息,包括:扫描所述扫描码,得到所述待分享设备对应的设备添加配置信息;或,接收输入的所述输入码,根据所述输入码得到所述待分享设备对应的设备添加配置信息。
根据本申请的一个实施例,一种设备分享装置,应用于第一主控端,所述装置包括:设备确定模块,用于根据分享选择操作,得到待分享设备,所述待分享设备为通过所述第一主控端已进行配网的设备;分享码生成模块,用于响应于分享触发操作,获取对所述待分享设备进行配网所得到的设备添加配置信息,以及,通过Matter协议生成一个包含所述设备添加配置信息的设备分享码;输出模块,用于输出所述设备分享码,以使第二主控端中通过支持所述Matter协议的应用根据所述设备分享码获得所述设备添加配置信息,并根据所述设备添加配置信息添加所述待分享设备至所述第二主控端中。
一种实施例中,所述装置还包括记录模块,用于:若所述待分享设备成功添加至所述第二主控端中,获取所述第二主控端对应的设备管理信息;将所述设备管理信息记录至所 述第一主控端中的管理员列表中,所述管理员列表中用于记录接受过所述第一主控端分享设备的主控端的相关信息。
一种实施例中,所述装置还包括管理模块,用于:根据多管理员管理页面开启操作,显示所述管理员管理页面,所述管理员管理页面中展示所述管理员列表中包括的主控端的相关信息;根据所述管理员管理页面中作用于目标主控端的管理操作,调整所述目标主控端的设备控制权限。
一种实施例中,所述管理操作包括但不限于设备分享撤销操作或授权信息更改操作;所述设备分享撤销操作用于撤销所述目标主控端对于所述第一主控端分享的设备的管控权限;所述授权信息更改操作用于更改所述第一主控端分享给所述目标主控端的设备添加配置信息。
一种实施例中,所述设备确定模块,用于:根据分享页面启动操作,显示设备分享页面;根据所述设备分享页面中的设备选择操作,得到所述待分享设备。
一种实施例中,所述输出模块,用于下实现以下方式中一种:通过屏幕显示所述设备分享码,所述设备分享码包括扫描码及输入码中至少一种;通过网络将所述设备分享码传输至所述第二主控端。
一种实施例中,在所述响应于分享触发操作,获取对所述待分享设备进行配网时得到的设备添加配置信息之前,所述装置还包括配网模块,用于:对所述待分享设备进行配网;记录配网时所获得的所述待分享设备对应的所述设备添加配置信息。
一种实施例中,所述分享码生成模块,用于:获取所述第二主控端的主控端信息;根据所述第二主控端的主控端信息进行设备添加辅助程度分析,得到设备添加辅助程度;根据所述设备添加辅助程度代理所述第二主控端对所述待分享设备进行预添加,得到所述设备添加辅助程度匹配的辅助添加信息;通过Matter协议生成一个包含所述设备添加配置信息及所述辅助添加信息的设备分享码。
一种实施例中,所述分享码生成模块,用于:通过Matter协议使用所述设备添加配置信息进行分享码生成,得到包含所述设备添加配置信息的设备分享码。
一种实施例中,所述分享码生成模块,用于实现以下方式中一种:从预设辅助分析表中查询所述第二主控端的主控端信息匹配的程度信息,得到所述设备添加辅助程度;向所述待分享设备对应的服务器发送携带所述主控端信息的查询分析请求,并接收所述服务器响应所述查询分析请求下发的所述设备添加辅助程度。
一种实施例中,所述分享码生成模块,用于:判断所述设备添加辅助程度是否高于预定阈值;若是,则使用所述主控端信息对所述待分享设备进行预添加,得到所述设备添加辅助程度匹配的辅助添加信息。
根据本申请的一个实施例,一种设备分享装置,应用于第二主控端,所述装置包括:信息获取模块,用于通过支持Matter协议的应用,根据第一主控端输出的设备分享码获得待分享设备对应的设备添加配置信息,所述待分享设备为所述第一主控端中根据分享选择操作得到的,所述待分享设备为通过所述第一主控端已进行配网的设备,所述设备分享码为所述第一主控端通过Matter协议生成的包含所述设备添加配置信息的设备分享码;设备添加模块,用于根据所述设备添加配置信息添加所述待分享设备至所述第二主控端中。
一种实施例中,在所述通过支持所述Matter协议的应用,根据第一主控端输出的设备分享码获得待分享设备对应的设备添加配置信息之前,所述装置还包括安装模块,用于:下载Matter资源;在应用中安装所述Matter资源,得到所述支持Matter协议的应用。
一种实施例中,所述设备分享码包括扫描码及输入码中至少一种,所述信息获取模块,用于:扫描所述扫描码,得到所述待分享设备对应的设备添加配置信息;或,接收输入的 所述输入码,根据所述输入码得到所述待分享设备对应的设备添加配置信息。
根据本申请的另一实施例,一种存储介质,其上存储有计算机程序,当所述计算机程序被设备的处理器执行时,使设备执行本申请实施例所述的方法。
根据本申请的另一实施例,一种电子设备可以包括:存储器,存储有计算机程序;处理器,读取存储器存储的计算机程序,以执行本申请实施例所述的方法。
根据本申请的另一实施例,一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行本申请实施例所述的各种可选实现方式中提供的方法。
有益效果
本申请实施例中,第一主控端可以:根据分享选择操作,得到待分享设备,所述待分享设备为通过所述第一主控端已进行配网的设备;响应于分享触发操作,获取对所述待分享设备进行配网所得到的设备添加配置信息,以及,通过Matter协议生成一个包含所述设备添加配置信息的设备分享码;输出所述设备分享码,以使第二主控端中通过支持所述Matter协议的应用根据所述设备分享码获得所述设备添加配置信息,并根据所述设备添加配置信息添加所述待分享设备至所述第二主控端中。
以这种方式,第一主控端将自己配网过的待分享设备,可以响应于分享触发操作,通过Matter协议生成一个包含待分享设备对于的设备添加配置信息的设备分享码,其它的第二主控端中可以通过支持Matter协议的应用根据设备分享码获得设备添加配置信息并添加该待分享设备。无论第二主控端属于哪个平台或生态均可以添加上该待分享设备;且第二主控端中无需进行较多的配对或复杂认证过程,设备分享便捷性高;分享过程中也无需上传信息至云端,安全性高。进而,本申请整体上可以在提升设备分享的便捷性及安全性的基础上,进一步实现跨生态设备分享,提升用户体验。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1示出了根据本申请的一个实施例的设备分享方法的流程图。
图2示出了根据本申请的另一个实施例的设备分享方法的流程图。
图3示出了根据本申请的一个实施例的设备分享装置的流程图。
图4示出了根据本申请的另一个实施例的设备分享装置的流程图。
图5示出了根据本申请的一个实施例的电子设备的框图。
本申请的实施方式
以下结合附图及实施例,对本公开进行进一步详细说明。应当理解,此处所提供的实施例仅仅用以解释本公开,并不用于限定本公开。另外,以下所提供的实施例是用于实施本公开的部分实施例,而非提供实施本公开的全部实施例,在不冲突的情况下,本公开实施例记载的技术方案可以任意组合的方式实施。
需要说明的是,在本公开实施例中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的方法或者装置不仅包括所明确记载的要素,而且还包括没有明确列出的其他要素,或者是还包括为实施方法或者装置所固有的 要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的方法或者装置中还存在另外的相关要素(例如方法中的步骤或者装置中的单元,例如的单元可以是部分电路、部分处理器、部分程序或软件等等)。
例如,本公开实施例提供的设备分享方法包含了一系列的步骤,但是本公开实施例提供的设备分享方法不限于所记载的步骤,同样地,本公开实施例提供的设备分享装置包括了一系列单元,但是本公开实施例提供的装置不限于包括所明确记载的单元,还可以包括为获取相关信息、或基于信息进行处理时所需要设置的单元。
除非另有定义,本文所使用的所有的技术和科学术语与属于本公开的技术领域的技术人员通常理解的含义相同。本文中所使用的术语只是为了描述具体的实施例的目的,不是旨在限制本公开。
可以理解的是,在本申请的具体实施方式中,涉及到程序包信息、测试信息等相关的数据,当本申请中实施例运用到具体产品或技术中时,需要获得用户许可或者同意,且相关数据的收集、使用和处理需要遵守相关国家和地区的相关法律法规和标准。
图1示意性示出了根据本申请的一个实施例的设备分享方法的流程图。该设备分享方法的执行主体可以是任意具有处理能力的第一主控端,第一主控端例如手机、电脑、智能手表等。待分享设备例如空调、冰箱、车辆等等。
第一主控端可以执行如图1所示的设备分享方法,该设备分享方法可以包括步骤S110至步骤S130。
步骤S110,根据分享选择操作,得到待分享设备,所述待分享设备为通过所述第一主控端已进行配网的设备;
步骤S120,响应于分享触发操作,获取对所述待分享设备进行配网所得到的设备添加配置信息,以及,通过Matter协议生成一个包含所述设备添加配置信息的设备分享码;
步骤S130,输出所述设备分享码,以使第二主控端中通过支持所述Matter协议的应用根据所述设备分享码获得所述设备添加配置信息,并根据所述设备添加配置信息添加所述待分享设备至所述第二主控端中。
第一主控端中根据分享选择操作,可以从第一主控端进行配网的设备中选择一个或多个作为待分享设备。分享选择操作为选择待分享设备的操作,分享选择操作可以是语音控制操作或者屏幕触控操作等。
例如,第一主控端已经对设备A和设备B进行了配网,第一主控端中可以根据分享选择操作,选择设备A和设备B中至少一个作为待分享设备。其中,第一主控端对各设备(例如设备A、设备B等)进行配网的方式,可以根据实际情况设定。
第一主控端中响应于分享触发操作,可以获取对待分享设备进行配网所得到的设备添加配置信息。分享触发操作为分享待分享设备的操作,分享触发操作可以是语音控制操作或者屏幕触控操作等。
设备添加配置信息为可以用于将待分享设备添加至主控端(例如第二主控端)的信息。一种示例中,设备添加配置信息可以包括:配网过程中,待分享设备注册至云端后云端下发的设备信息(例如,设备标识符(deviceid))及授权信息(例如,安全凭证(token),该安全凭证用于验证用户对于待分享设备的控制权限)。进一步的,一些示例中,设备添加配置信息中还可以包括:配网过程中,获得的待分享设备对应的通行码(passcode)、产品ID、厂商ID、自定义流程信息(custom flow)等等信息。
第一主控端中进一步可以通过Matter协议生成一个包含所述设备添加配置信息的设备分享码(Matter码),设备分享码可以包括二维码、输入码等。第一主控端中进一步可以 输出设备分享码,输出该设备分享码的方式可以是屏幕显示设备分享码、通过通信将设备分享码传输给第二主控端,第二主控端例如手机、电脑、智能手表等。
第二主控端中通过支持Matter协议的应用,可以扫描或解析设备分享码从而获得设备添加配置信息。第二主控端根据设备添加配置信息即可直接高效地添加待分享设备至所述第二主控端中,无需进行复杂的配对或认证过程,从而提高用户体验和设备安全性。
第二主控端根据设备添加配置信息添加待分享设备至第二主控端后,第二主控端的设备控制列表中可以展示该待分享设备的相关信息,第二主控端可以基于设备添加配置信息控制待分享设备。例如,设备添加配置信息可以包括设备信息及授权信息,第二主控端向待分享设备发送的控制命令中可以携带该授权信息,待分享设备即可根据该授权信息验证得知第二主控端具有控制权限,从而待分享设备可以执行第二主控端的控制命令。
以这种方式,第一主控端将自己配网过的待分享设备,可以响应于分享触发操作,通过Matter协议生成一个包含待分享设备对于的设备添加配置信息的设备分享码,其它的第二主控端中可以通过支持Matter协议的应用根据设备分享码获得设备添加配置信息并添加该待分享设备。无论第二主控端属于哪个平台或生态均可以添加上该待分享设备;且第二主控端中无需进行较多的配对或复杂认证过程,设备分享便捷性高;分享过程中也无需上传信息至云端,安全性高。进而,本申请整体上可以在提升设备分享的便捷性及安全性的基础上,进一步实现跨生态设备分享,提升用户体验。
下面描述图1实施例下进行设备分享时,所进行的各步骤下进一步可选的具体实施例。
一种实施例中,所述根据分享选择操作,得到待分享设备,可以包括:根据分享页面启动操作,显示设备分享页面;根据所述设备分享页面中的设备选择操作,得到所述待分享设备。
第一主控端中根据分享页面启动操作显示设备分享页面,分享页面启动操作可以是语音控制操作或屏幕触控操作。设备分享页面中可以展示第一主控端配网过的设备的相关信息。用户可以在设备分享页面中通过滑动、点击等等设备选择操作选择一个或多个设备作为待分享设备。
可选地,其它实施例中,所述根据分享选择操作,得到待分享设备,可以包括:接收用户输入的设备选择语音,根据该设备选择语音中指示的设备作为所述待分享设备。
一种实施例中,在所述响应于分享触发操作,获取对所述待分享设备进行配网时得到的设备添加配置信息之前,所述方法还可以包括:对所述待分享设备进行配网;记录配网时所获得的所述待分享设备对应的所述设备添加配置信息。
第一主控端在对待分享设备进行配网的过程中,记录配网时所获得的待分享设备对应的设备添加配置信息至第一主控端中的记录信息中,进而,第一主控端中响应于分享触发操作,可以从记录信息中获取到对待分享设备进行配网所得到的设备添加配置信息。
其中,一种示例中,第一主控端在对待分享设备进行配网的过程可以包括:
(1)第一主控端扫描待分享设备上二维码,扫描成功后跳转到用户指导页面,之后,第一主控端中matter应用去云端获取绑定码(bindcode),其中,matter应用可以通过用户id(userid)云端获取绑定码(bindcode),待分享设备注册上线后,把待分享设备与用户id(userid)绑定在一起。
(2)matter应用与待分享设备进行一系列标准的配网流程,可以包括:建立PASE通道、设备鉴权、下发证书、配置ACL、配置网络信息等,然后,matter应用与待分享设备在局域网内实现CASE通道建立。
(3)matter应用配网完成后(即CASE通道建立好),matter应用在局域网内通过CASE通道下发绑定码(bindcode)和host域名至待分享设备。
(4)待分享设备在收到绑定码(bindcode)和host域名后,待分享设备向云端进行常规的注册、MQTT连云操作,其中注册内的pk可以设备的从电控端获取,其中,待分享设备向云端注册成功后,云端向待分享设备下发设备标识符(deviceid)及安全凭证(token)等信息。
(5)待分享设备向云端进行MQTT连云操作连接成功后,云端可以推送待分享设备的相关信息到第一主控端,云端推送的待分享设备的相关信息可以包括设备标识符(deviceid)及安全凭证(token)等信息。
一种实施例中,所述通过Matter协议生成一个包含所述设备添加配置信息的设备分享码,可以包括:通过Matter协议使用所述设备添加配置信息进行分享码生成,得到包含所述设备添加配置信息的设备分享码。
第一主控端中采用CHIP(Connected Home over IP)工具可以将设备添加配置信息作为参数生成设备分享码,CHIP(Connected Home over IP)工具通过Matter协议使用设备添加配置信息进行分享码生成。
该实施例下,第一主控端中直接使用设备添加配置信息生成设备分享码,而不进行设备添加辅助程度分析。
可选地,一种实施例中,所述通过Matter协议生成一个包含所述设备添加配置信息的设备分享码,可以包括:获取所述第二主控端的主控端信息;根据所述第二主控端的主控端信息进行设备添加辅助程度分析,得到设备添加辅助程度;根据所述设备添加辅助程度代理所述第二主控端对所述待分享设备进行预添加,得到所述设备添加辅助程度匹配的辅助添加信息;通过Matter协议生成一个包含所述设备添加配置信息及所述辅助添加信息的设备分享码。
该实施例下,第一主控端中生成设备分享码时,会对第二主控端进行设备添加辅助程度分析,根据分析结果代理第二主控端对待分享设备进行预添加,得到辅助添加信息用来携带在设备分享码。进而,第二主控端根据设备分享码还会进一步得到辅助添加信息,第二主控端在辅助添加信息的辅助下可以进一步保证成功添加待分享设备,从而,进一步提升设备分享可靠性。
第一主控端可以通过与第二主控端进行交互,获取第二主控端的主控端信息,主控端信息可以包括主控端类型、主控端型号、主控端所处位置等信息。第一主控端可以根据第二主控端的主控端信息进行设备添加辅助程度分析,得到设备添加辅助程度,设备添加辅助程度可以反映第二主控端中通过matter协议分享设备的方式来添加设备所需要辅助的程度。
第一主控端根据设备添加辅助程度代理第二主控端对待分享设备进行预添加,得到设备添加辅助程度匹配的辅助添加信息。辅助添加信息可以是第二主控端中添加待分享设备时,在前述的设备添加配置信息之外额外需要的信息。进而,第二主控端可以使用设备添加配置信息和辅助添加信息成功添加待分享设备,保证第二主控端添加该待分享设备后可以有效控制该待分享设备。
一种实施例中,所述根据所述第二主控端的主控端信息进行设备添加辅助程度分析,得到设备添加辅助程度,可以包括以下方式中一种:
第一种,从预设辅助分析表中查询所述第二主控端的主控端信息匹配的程度信息,得到所述设备添加辅助程度;
第二种,向所述待分享设备对应的服务器发送携带所述主控端信息的查询分析请求,并接收所述服务器响应所述查询分析请求下发的所述设备添加辅助程度。
第一种方式下,第一主控端中可以保存预设辅助分析表,预设辅助分析表中可以预设 不同主控端信息所匹配的程度信息。第一主控端中可以从预设辅助分析表中查询到第二主控端的主控端信息匹配的程度信息,作为得到的设备添加辅助程度。
第二种方式下,第一主控端可以向待分享设备对应的服务器发送携带主控端信息的查询分析请求,待分享设备对应的服务器可以根据主控端信息确定该第二主控端在当前的系统版本下添加待分享设备时需要的辅助程度并下发给第一主控端,第一主控端即可接收服务器响应查询分析请求下发的设备添加辅助程度。其中,查询分析请求中不必携带前述的设备添加配置信息,可以保证安全性。待分享设备对应的服务器可以是待分享设备所在平台或厂商等主体的服务器。
一种实施例中,所述根据所述设备添加辅助程度代理所述第二主控端对所述待分享设备进行预添加,得到所述设备添加辅助程度匹配的辅助添加信息,可以包括:判断所述设备添加辅助程度是否高于预定阈值;若是,则使用所述主控端信息对所述待分享设备进行预添加,得到所述设备添加辅助程度匹配的辅助添加信息。
第一主控端中判断设备添加辅助程度高于预定阈值时,使用主控端信息对待分享设备进行预添加,得到设备添加辅助程度匹配的辅助添加信息。也即,在设备添加辅助程度低于预定阈值时,第一主控端不必代理进行预添加,第二主控端中不需要辅助添加信息。
其中,使用主控端信息对待分享设备进行预添加的方式可以是:第一主控端中将第二主控端的主控端信息作为参数配置到模拟程序,形成模拟第二主控端的模拟程序,该模拟程序可以模拟第二主控端添加待分享设备,模拟添加的过程中,可以记录额外需要的辅助添加信息。
一种实施例中,步骤S130中,所述输出所述设备分享码,可以包括以下方式中一种:
第一种,通过屏幕显示所述设备分享码,所述设备分享码包括扫描码及输入码中至少一种;
第二种,通过网络将所述设备分享码传输至所述第二主控端。
第一种方式下,第一主控端中通过屏幕显示设备分享码,所述设备分享码包括扫描码(例如二维码或条形码等)及输入码(例如数字码)中至少一种。第二主控端中可以直接扫描第一主控端中的扫描码或者由用户输入输入码。
第二种方式下,第一主控端可以通过网络将设备分享码传输至第二主控端,该网络可以是局域网或移动网络等。
一种实施例中,在所述输出所述设备分享码之后,所述方法还可以包括:若所述待分享设备成功添加至所述第二主控端中,获取所述第二主控端对应的设备管理信息;将所述设备管理信息记录至所述第一主控端中的管理员列表中,所述管理员列表中用于记录接受过所述第一主控端分享设备的主控端的相关信息。
第二主控端对应的设备管理信息可以包括第二主控端的名称以及分享给第二主控端的授权信息等。第一主控端将第二主控端的设备管理信息记录至第一主控端中的管理员列表中,即可通过该管理员列表有效管理第一主控端分享过设备的其它主控端。
一种实施例中,所述方法还可以包括:根据多管理员管理页面开启操作,显示所述管理员管理页面,所述管理员管理页面中展示所述管理员列表中包括的主控端的相关信息;根据所述管理员管理页面中作用于目标主控端的管理操作,调整所述目标主控端的设备控制权限。
第一主控端中根据多管理员管理页面开启操作(可以是语音控制操作或屏幕触控操作等)打开显示管理员管理页面,管理员管理页面中展示管理员列表中包括的主控端的相关信息。进而,用户可以通过管理员管理页面进行管理操作,从而,调整目标主控端的对于第一主控端分享给目标主控端的设备的设备控制权限。其中,目标主控端属于管理员列表 中包括的主控端。
一种实施例中,所述管理操作包括但不限于设备分享撤销操作或授权信息更改操作;所述设备分享撤销操作用于撤销所述目标主控端对于所述第一主控端分享给所分享设备的管控权限;所述授权信息更改操作用于更改所述第一主控端分享给所述目标主控端的设备添加配置信息。
例如,设备分享撤销操作可以是在屏幕上针对目标主控端进行左滑操作,然后,在显示的删除按钮上点击删除按钮,从而,从列表中删除该目标主控端,从而,撤销了目标主控端对于第一主控端分享的设备的管控权限。可以理解,设备分享撤销操作还可以采用其它可选的操作方式。
执行设备分享撤销操作后,在第一主控端中可以使用设备添加配置信息重新生成设备分享码,目标主控端重新根据设备分享码获得设备添加配置信息来添加分享的设备,即可重新控制分享的设备。
例如,授权信息更改操作可以是在屏幕上针对目标主控端进行点击,在显示的信息中用户可以修改第一主控端分享给目标主控端的设备添加配置信息,例如,修改其中的授权信息,从而,目标主控端对于第一主控端分享的设备会无法进行控制。
执行授权信息更改操作后,在第一主控端中可以使用修改后的设备添加配置信息重新生成设备分享码,目标主控端重新根据设备分享码获得修改后的设备添加配置信息来添加分享的设备,即可重新控制分享的设备。
进一步的,图2示意性示出了根据本申请的另一个实施例的设备分享方法的流程图。该设备分享方法的执行主体可以是任意具有处理能力的第二主控端,第二主控端例如电脑、手机、平板电脑以及其它设备等。
第二主控端可以执行如图2所示的设备分享方法,该设备分享方法可以包括步骤S210至步骤S220。
步骤S210,通过支持Matter协议的应用,根据第一主控端输出的设备分享码获得待分享设备对应的设备添加配置信息,所述待分享设备为所述第一主控端中根据分享选择操作得到的,所述待分享设备为通过所述第一主控端已进行配网的设备,所述设备分享码为所述第一主控端通过Matter协议生成的包含所述设备添加配置信息的设备分享码;
步骤S220,根据所述设备添加配置信息添加所述待分享设备至所述第二主控端中。
第一主控端中根据分享选择操作,可以从第一主控端进行配网的设备中选择一个或多个作为待分享设备。分享选择操作为选择待分享设备的操作,分享选择操作可以是语音控制操作或者屏幕触控操作等。
例如,第一主控端已经对设备A和设备B进行了配网,第一主控端中可以根据分享选择操作,选择设备A和设备B中至少一个作为待分享设备。其中,第一主控端对各设备(例如设备A、设备B等)进行配网的方式,可以根据实际情况设定。
第一主控端中响应于分享触发操作,可以获取对待分享设备进行配网所得到的设备添加配置信息。分享触发操作为分享待分享设备的操作,分享触发操作可以是语音控制操作或者屏幕触控操作等。
设备添加配置信息为可以用于将待分享设备添加至主控端(例如第二主控端)的信息。一种示例中,设备添加配置信息可以包括:配网过程中,待分享设备注册至云端后云端下发的设备信息(例如,设备标识符(deviceid))及授权信息(例如,安全凭证(token),该安全凭证用于验证用户对于待分享设备的控制权限)。进一步的,一些示例中,设备添加配置信息中还可以包括:配网过程中,获得的待分享设备对应的通行码(passcode)、产品ID、厂商ID、自定义流程信息(custom flow)等等信息。
第一主控端中进一步可以通过Matter协议生成一个包含所述设备添加配置信息的设备分享码(Matter码),设备分享码可以包括二维码、输入码等。第一主控端中进一步可以输出设备分享码,输出该设备分享码的方式可以是屏幕显示设备分享码、通过通信将设备分享码传输给第二主控端,第二主控端例如手机、电脑、智能手表等。
第二主控端中通过支持Matter协议的应用,可以扫描或解析设备分享码从而获得设备添加配置信息。第二主控端根据设备添加配置信息即可直接高效地添加待分享设备至所述第二主控端中,无需进行复杂的配对或认证过程,从而提高用户体验和设备安全性。
第二主控端根据设备添加配置信息添加待分享设备至第二主控端后,第二主控端的设备控制列表中可以展示该待分享设备的相关信息,第二主控端可以基于设备添加配置信息控制待分享设备。例如,设备添加配置信息可以包括设备信息及授权信息,第二主控端向待分享设备发送的控制命令中可以携带该授权信息,待分享设备即可根据该授权信息验证得知第二主控端具有控制权限,从而待分享设备可以执行第二主控端的控制命令。
以这种方式,第一主控端将自己配网过的待分享设备,可以响应于分享触发操作,通过Matter协议生成一个包含待分享设备对于的设备添加配置信息的设备分享码,其它的第二主控端中可以通过支持Matter协议的应用根据设备分享码获得设备添加配置信息并添加该待分享设备。无论第二主控端属于哪个平台或生态均可以添加上该待分享设备;且第二主控端中无需进行较多的配对或复杂认证过程,设备分享便捷性高;分享过程中也无需上传信息至云端,安全性高。进而,本申请整体上可以在提升设备分享的便捷性及安全性的基础上,进一步实现跨生态设备分享,提升用户体验。
下面描述图2实施例下进行设备分享时,所进行的各步骤下进一步可选的具体实施例。
一种实施例中,在所述通过支持所述Matter协议的应用,根据第一主控端输出的设备分享码获得待分享设备对应的设备添加配置信息之前,所述方法还包括:下载Matter资源;在应用中安装所述Matter资源,得到所述支持Matter协议的应用。
第二主控端中下载Matter资源,在应用中安装所述Matter资源,可以得到支持Matter协议的应用,继而,第二主控端中通过支持Matter协议的应用,可以根据第一主控端输出的设备分享码获得待分享设备对应的设备添加配置信息。
一种实施例中,所述设备分享码包括扫描码及输入码中至少一种,所述根据第一主控端输出的设备分享码获得待分享设备对应的设备添加配置信息,包括:扫描所述扫描码,得到所述待分享设备对应的设备添加配置信息;或,接收输入的所述输入码,根据所述输入码得到所述待分享设备对应的设备添加配置信息。
为便于更好的实施本申请实施例提供的设备分享方法,本申请实施例还提供一种基于上述设备分享方法的设备分享装置。其中名词的含义与上述设备分享方法中相同,具体实现细节可以参考方法实施例中的说明。
图3示出了根据本申请的一个实施例的设备分享装置的框图。如图3所示的设备分享装置300中可以应用于第一主控端,设备分享装置300中可以包括:
设备确定模块310,可以用于根据分享选择操作,得到待分享设备,所述待分享设备为通过所述第一主控端已进行配网的设备;分享码生成模块320,可以用于响应于分享触发操作,获取对所述待分享设备进行配网所得到的设备添加配置信息,以及,通过Matter协议生成一个包含所述设备添加配置信息的设备分享码;输出模块330,可以用于输出所述设备分享码,以使第二主控端中通过支持所述Matter协议的应用根据所述设备分享码获得所述设备添加配置信息,并根据所述设备添加配置信息添加所述待分享设备至所述第二主控端中。
一种实施例中,所述装置还包括记录模块,用于:若所述待分享设备成功添加至所述 第二主控端中,获取所述第二主控端对应的设备管理信息;将所述设备管理信息记录至所述第一主控端中的管理员列表中,所述管理员列表中用于记录接受过所述第一主控端分享设备的主控端的相关信息。
一种实施例中,所述装置还包括管理模块,用于:根据多管理员管理页面开启操作,显示所述管理员管理页面,所述管理员管理页面中展示所述管理员列表中包括的主控端的相关信息;根据所述管理员管理页面中作用于目标主控端的管理操作,调整所述目标主控端的设备控制权限。
一种实施例中,所述管理操作包括但不限于设备分享撤销操作或授权信息更改操作;所述设备分享撤销操作用于撤销所述目标主控端对于所述第一主控端分享的设备的管控权限;所述授权信息更改操作用于更改所述第一主控端分享给所述目标主控端的设备添加配置信息。
一种实施例中,所述设备确定模块,用于:根据分享页面启动操作,显示设备分享页面;根据所述设备分享页面中的设备选择操作,得到所述待分享设备。
一种实施例中,所述输出模块,用于下实现以下方式中一种:通过屏幕显示所述设备分享码,所述设备分享码包括扫描码及输入码中至少一种;通过网络将所述设备分享码传输至所述第二主控端。
一种实施例中,在所述响应于分享触发操作,获取对所述待分享设备进行配网时得到的设备添加配置信息之前,所述装置还包括配网模块,用于:对所述待分享设备进行配网;记录配网时所获得的所述待分享设备对应的所述设备添加配置信息。
一种实施例中,所述分享码生成模块,用于:获取所述第二主控端的主控端信息;根据所述第二主控端的主控端信息进行设备添加辅助程度分析,得到设备添加辅助程度;根据所述设备添加辅助程度代理所述第二主控端对所述待分享设备进行预添加,得到所述设备添加辅助程度匹配的辅助添加信息;通过Matter协议生成一个包含所述设备添加配置信息及所述辅助添加信息的设备分享码。
一种实施例中,所述分享码生成模块,用于:通过Matter协议使用所述设备添加配置信息进行分享码生成,得到包含所述设备添加配置信息的设备分享码。
一种实施例中,所述分享码生成模块,用于实现以下方式中一种:从预设辅助分析表中查询所述第二主控端的主控端信息匹配的程度信息,得到所述设备添加辅助程度;向所述待分享设备对应的服务器发送携带所述主控端信息的查询分析请求,并接收所述服务器响应所述查询分析请求下发的所述设备添加辅助程度。
一种实施例中,所述分享码生成模块,用于:判断所述设备添加辅助程度是否高于预定阈值;若是,则使用所述主控端信息对所述待分享设备进行预添加,得到所述设备添加辅助程度匹配的辅助添加信息。
图4示出了根据本申请的另一个实施例的设备分享装置的框图。如图4所示设备分享装置400中可以应用于第二主控端,设备分享装置400中可以包括:
信息获取模块410,可以用于通过支持Matter协议的应用,根据第一主控端输出的设备分享码获得待分享设备对应的设备添加配置信息,所述待分享设备为所述第一主控端中根据分享选择操作得到的,所述待分享设备为通过所述第一主控端已进行配网的设备,所述设备分享码为所述第一主控端通过Matter协议生成的包含所述设备添加配置信息的设备分享码;设备添加模块420,可以用于根据所述设备添加配置信息添加所述待分享设备至所述第二主控端中。
一种实施例中,在所述通过支持所述Matter协议的应用,根据第一主控端输出的设备分享码获得待分享设备对应的设备添加配置信息之前,所述装置还包括安装模块,用于: 下载Matter资源;在应用中安装所述Matter资源,得到所述支持Matter协议的应用。
一种实施例中,所述设备分享码包括扫描码及输入码中至少一种,所述信息获取模块,用于:扫描所述扫描码,得到所述待分享设备对应的设备添加配置信息;或,接收输入的所述输入码,根据所述输入码得到所述待分享设备对应的设备添加配置信息。
应当注意,尽管在上文详细描述中提及了用于动作执行的设备的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本申请的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。
此外,本申请实施例还提供一种电子设备,如图5所示,图5示出了根据本申请的一个实施例的电子设备的框图,具体来讲:
该电子设备可以包括一个或者一个以上处理核心的处理器501、一个或一个以上计算机可读存储介质的存储器502、电源503和输入单元504等部件。本领域技术人员可以理解,图5中示出的电子设备结构并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:
处理器501是该电子设备的控制中心,利用各种接口和线路连接整个计算机设备的各个部分,通过运行或执行存储在存储器502内的软件程序和/或模块,以及调用存储在存储器502内的数据,执行计算机设备的各种功能和处理数据,从而对电子设备进行整体监控。可选的,处理器501可包括一个或多个处理核心;优选的,处理器501可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户页面和应用程序等,调制解调处理器主要处理无线通讯。可以理解的是,上述调制解调处理器也可以不集成到处理器501中。
存储器502可用于存储软件程序以及模块,处理器501通过运行存储在存储器502的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器502可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据计算机设备的使用所创建的数据等。此外,存储器502可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器502还可以包括存储器控制器,以提供处理器501对存储器502的访问。
电子设备还包括给各个部件供电的电源503,优选的,电源503可以通过电源管理系统与处理器501逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源503还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。
该电子设备还可包括输入单元504,该输入单元504可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。
尽管未示出,电子设备还可以包括显示单元等,在此不再赘述。具体在本实施例中,电子设备中的处理器501会按照如下的指令,将一个或一个以上的计算机程序的进程对应的可执行文件加载到存储器502中,并由处理器501来运行存储在存储器502中的计算机程序,从而实现本申请前述各实施例中各种功能。
例如,如电子设备实现为第一主控端,处理器501可以执行:根据分享选择操作,得到待分享设备,所述待分享设备为通过所述第一主控端已进行配网的设备;响应于分享触发操作,获取对所述待分享设备进行配网所得到的设备添加配置信息,以及,通过Matter协议生成一个包含所述设备添加配置信息的设备分享码;输出所述设备分享码,以使第二 主控端中通过支持所述Matter协议的应用根据所述设备分享码获得所述设备添加配置信息,并根据所述设备添加配置信息添加所述待分享设备至所述第二主控端中。
一种实施例中,在所述输出所述设备分享码之后,所述方法还包括:若所述待分享设备成功添加至所述第二主控端中,获取所述第二主控端对应的设备管理信息;将所述设备管理信息记录至所述第一主控端中的管理员列表中,所述管理员列表中用于记录接受过所述第一主控端分享设备的主控端的相关信息。
一种实施例中,所述方法还包括:根据多管理员管理页面开启操作,显示所述管理员管理页面,所述管理员管理页面中展示所述管理员列表中包括的主控端的相关信息;根据所述管理员管理页面中作用于目标主控端的管理操作,调整所述目标主控端的设备控制权限。
一种实施例中,所述管理操作包括但不限于设备分享撤销操作或授权信息更改操作;所述设备分享撤销操作用于撤销所述目标主控端对于所述第一主控端分享的设备的管控权限;所述授权信息更改操作用于更改所述第一主控端分享给所述目标主控端的设备添加配置信息。
一种实施例中,所述根据分享选择操作,得到待分享设备,包括:根据分享页面启动操作,显示设备分享页面;根据所述设备分享页面中的设备选择操作,得到所述待分享设备。
一种实施例中,所述输出所述设备分享码,包括以下方式中一种:通过屏幕显示所述设备分享码,所述设备分享码包括扫描码及输入码中至少一种;通过网络将所述设备分享码传输至所述第二主控端。
一种实施例中,在所述响应于分享触发操作,获取对所述待分享设备进行配网时得到的设备添加配置信息之前,所述方法还包括:对所述待分享设备进行配网;记录配网时所获得的所述待分享设备对应的所述设备添加配置信息。
一种实施例中,所述通过Matter协议生成一个包含所述设备添加配置信息的设备分享码,包括:获取所述第二主控端的主控端信息;根据所述第二主控端的主控端信息进行设备添加辅助程度分析,得到设备添加辅助程度;根据所述设备添加辅助程度代理所述第二主控端对所述待分享设备进行预添加,得到所述设备添加辅助程度匹配的辅助添加信息;通过Matter协议生成一个包含所述设备添加配置信息及所述辅助添加信息的设备分享码。
一种实施例中,所述通过Matter协议生成一个包含所述设备添加配置信息的设备分享码,包括:通过Matter协议使用所述设备添加配置信息进行分享码生成,得到包含所述设备添加配置信息的设备分享码。
一种实施例中,所述根据所述第二主控端的主控端信息进行设备添加辅助程度分析,得到设备添加辅助程度,包括以下方式中一种:从预设辅助分析表中查询所述第二主控端的主控端信息匹配的程度信息,得到所述设备添加辅助程度;向所述待分享设备对应的服务器发送携带所述主控端信息的查询分析请求,并接收所述服务器响应所述查询分析请求下发的所述设备添加辅助程度。
一种实施例中,所述根据所述设备添加辅助程度代理所述第二主控端对所述待分享设备进行预添加,得到所述设备添加辅助程度匹配的辅助添加信息,包括:判断所述设备添加辅助程度是否高于预定阈值;若是,则使用所述主控端信息对所述待分享设备进行预添加,得到所述设备添加辅助程度匹配的辅助添加信息。
例如,如电子设备实现为第二主控端,处理器501可以执行:通过支持Matter协议的应用,根据第一主控端输出的设备分享码获得待分享设备对应的设备添加配置信息,所述待分享设备为所述第一主控端中根据分享选择操作得到的,所述待分享设备为通过所述第 一主控端已进行配网的设备,所述设备分享码为所述第一主控端通过Matter协议生成的包含所述设备添加配置信息的设备分享码;根据所述设备添加配置信息添加所述待分享设备至所述第二主控端中。
一种实施例中,在所述通过支持所述Matter协议的应用,根据第一主控端输出的设备分享码获得待分享设备对应的设备添加配置信息之前,所述方法还包括:下载Matter资源;在应用中安装所述Matter资源,得到所述支持Matter协议的应用。
一种实施例中,所述设备分享码包括扫描码及输入码中至少一种,所述根据第一主控端输出的设备分享码获得待分享设备对应的设备添加配置信息,包括:扫描所述扫描码,得到所述待分享设备对应的设备添加配置信息;或,接收输入的所述输入码,根据所述输入码得到所述待分享设备对应的设备添加配置信息。
本领域普通技术人员可以理解,上述实施例的各种方法中的全部或部分步骤可以通过计算机程序来完成,或通过计算机程序控制相关的硬件来完成,该计算机程序可以存储于一计算机可读存储介质中,并由处理器进行加载和执行。
为此,本申请实施例还提供一种存储介质,其中存储有计算机程序,该计算机程序能够被处理器进行加载,以执行本申请实施例所提供的任一种方法中的步骤。
其中,该存储介质可以是计算机可读存储介质,该存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。
由于该存储介质中所存储的计算机程序,可以执行本申请实施例所提供的任一种方法中的步骤,因此,可以实现本申请实施例所提供的方法所能实现的有益效果,详见前面的实施例,在此不再赘述。
本领域技术人员在考虑说明书及实践这里公开的实施方式后,将容易想到本申请的其它实施方案。本申请旨在涵盖本申请的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请的一般性原理并包括本申请未公开的本技术领域中的公知常识或惯用技术手段。
应当理解的是,本申请并不局限于上面已经描述并在附图中示出的实施例,而可以在不脱离其范围的情况下进行各种修改和改变。

Claims (20)

  1. 一种设备分享方法,其特征在于,应用于第一主控端,所述方法包括:
    根据分享选择操作,得到待分享设备,所述待分享设备为通过所述第一主控端已进行配网的设备;
    响应于分享触发操作,获取对所述待分享设备进行配网所得到的设备添加配置信息,以及,通过Matter协议生成一个包含所述设备添加配置信息的设备分享码;
    输出所述设备分享码,以使第二主控端中通过支持所述Matter协议的应用根据所述设备分享码获得所述设备添加配置信息,并根据所述设备添加配置信息添加所述待分享设备至所述第二主控端中。
  2. 根据权利要求1所述的方法,其特征在于,在所述输出所述设备分享码之后,所述方法还包括:
    若所述待分享设备成功添加至所述第二主控端中,获取所述第二主控端对应的设备管理信息;
    将所述设备管理信息记录至所述第一主控端中的管理员列表中,所述管理员列表中用于记录接受过所述第一主控端分享设备的主控端的相关信息。
  3. 根据权利要求2所述的方法,其特征在于,所述方法还包括:
    根据多管理员管理页面开启操作,显示所述管理员管理页面,所述管理员管理页面中展示所述管理员列表中包括的主控端的相关信息;
    根据所述管理员管理页面中作用于目标主控端的管理操作,调整所述目标主控端的设备控制权限。
  4. 根据权利要求3所述的方法,其特征在于,所述管理操作包括但不限于设备分享撤销操作或授权信息更改操作;
    所述设备分享撤销操作用于撤销所述目标主控端对于所述第一主控端分享的设备的管控权限;所述授权信息更改操作用于更改所述第一主控端分享给所述目标主控端的设备添加配置信息。
  5. 根据权利要求1所述的方法,其特征在于,所述根据分享选择操作,得到待分享设备,包括:
    根据分享页面启动操作,显示设备分享页面;
    根据所述设备分享页面中的设备选择操作,得到所述待分享设备。
  6. 根据权利要求1所述的方法,其特征在于,所述输出所述设备分享码,包括以下方式中一种:
    通过屏幕显示所述设备分享码,所述设备分享码包括扫描码及输入码中至少一种;
    通过网络将所述设备分享码传输至所述第二主控端。
  7. 根据权利要求1所述的方法,其特征在于,在所述响应于分享触发操作,获取对所述待分享设备进行配网时得到的设备添加配置信息之前,所述方法还包括:
    对所述待分享设备进行配网;
    记录配网时所获得的所述待分享设备对应的所述设备添加配置信息。
  8. 根据权利要求1所述的方法,其特征在于,所述通过Matter协议生成一个包含所述设备添加配置信息的设备分享码,包括:
    获取所述第二主控端的主控端信息;
    根据所述第二主控端的主控端信息进行设备添加辅助程度分析,得到设备添加辅助程度;
    根据所述设备添加辅助程度代理所述第二主控端对所述待分享设备进行预添加,得到所述设备添加辅助程度匹配的辅助添加信息;
    通过Matter协议生成一个包含所述设备添加配置信息及所述辅助添加信息的设备分享码。
  9. 根据权利要求1所述的方法,其特征在于,所述通过Matter协议生成一个包含所述设备添加配置信息的设备分享码,包括:
    通过Matter协议使用所述设备添加配置信息进行分享码生成,得到包含所述设备添加配置信息的设备分享码。
  10. 根据权利要求8所述的方法,其特征在于,所述根据所述第二主控端的主控端信息进行设备添加辅助程度分析,得到设备添加辅助程度,包括以下方式中一种:
    从预设辅助分析表中查询所述第二主控端的主控端信息匹配的程度信息,得到所述设备添加辅助程度;
    向所述待分享设备对应的服务器发送携带所述主控端信息的查询分析请求,并接收所述服务器响应所述查询分析请求下发的所述设备添加辅助程度。
  11. 根据权利要求8所述的方法,其特征在于,所述根据所述设备添加辅助程度代理所述第二主控端对所述待分享设备进行预添加,得到所述设备添加辅助程度匹配的辅助添加信息,包括:
    判断所述设备添加辅助程度是否高于预定阈值;
    若是,则使用所述主控端信息对所述待分享设备进行预添加,得到所述设备添加辅助程度匹配的辅助添加信息。
  12. 一种设备分享方法,其特征在于,应用于第二主控端,所述方法包括:
    通过支持Matter协议的应用,根据第一主控端输出的设备分享码获得待分享设备对应的设备添加配置信息,所述待分享设备为所述第一主控端中根据分享选择操作得到的,所述待分享设备为通过所述第一主控端已进行配网的设备,所述设备分享码为所述第一主控端通过Matter协议生成的包含所述设备添加配置信息的设备分享码;
    根据所述设备添加配置信息添加所述待分享设备至所述第二主控端中。
  13. 根据权利要求12所述的方法,其特征在于,在所述通过支持所述Matter协议的应用,根据第一主控端输出的设备分享码获得待分享设备对应的设备添加配置信息之前,所述方法还包括:
    下载Matter资源;
    在应用中安装所述Matter资源,得到所述支持Matter协议的应用。
  14. 根据权利要求12所述的方法,其特征在于,所述设备分享码包括扫描码及输入码中至少一种,所述根据第一主控端输出的设备分享码获得待分享设备对应的设备添加配置信息,包括:
    扫描所述扫描码,得到所述待分享设备对应的设备添加配置信息;或,
    接收输入的所述输入码,根据所述输入码得到所述待分享设备对应的设备添加配置信息。
  15. 一种设备分享装置,其特征在于,应用于第一主控端,所述装置包括:
    设备确定模块,用于根据分享选择操作,得到待分享设备,所述待分享设备为通过所述第一主控端已进行配网的设备;
    分享码生成模块,用于响应于分享触发操作,获取对所述待分享设备进行配网所得到的设备添加配置信息,以及,通过Matter协议生成一个包含所述设备添加配置信息的设备分享码;
    输出模块,用于输出所述设备分享码,以使第二主控端中通过支持所述Matter协议的应用根据所述设备分享码获得所述设备添加配置信息,并根据所述设备添加配置信息添加所述待分享设备至所述第二主控端中。
  16. 根据权利要求15所述的装置,其特征在于,所述装置还包括记录模块,用于:若所述待分享设备成功添加至所述第二主控端中,获取所述第二主控端对应的设备管理信息;将所述设备管理信息记录至所述第一主控端中的管理员列表中,所述管理员列表中用于记录接受过所述第一主控端分享设备的主控端的相关信息。
  17. 根据权利要求16所述的装置,其特征在于,所述装置还包括管理模块,用于:根据多管理员管理页面开启操作,显示所述管理员管理页面,所述管理员管理页面中展示所述管理员列表中包括的主控端的相关信息;根据所述管理员管理页面中作用于目标主控端的管理操作,调整所述目标主控端的设备控制权限。
  18. 一种设备分享装置,其特征在于,应用于第二主控端,所述装置包括:
    信息获取模块,用于通过支持Matter协议的应用,根据第一主控端输出的设备分享码获得待分享设备对应的设备添加配置信息,所述待分享设备为所述第一主控端中根据分享选择操作得到的,所述待分享设备为通过所述第一主控端已进行配网的设备,所述设备分享码为所述第一主控端通过Matter协议生成的包含所述设备添加配置信息的设备分享码;
    设备添加模块,用于根据所述设备添加配置信息添加所述待分享设备至所述第二主控端中。
  19. 一种存储介质,其特征在于,其上存储有计算机程序,当所述计算机程序被设备的处理器执行时,使设备执行权利要求1至11或12至14任一项所述的方法。
  20. 一种电子设备,其特征在于,包括:存储器,存储有计算机程序;处理器,读取存储器存储的计算机程序,以执行权利要求1至11或12至14任一项所述的方法。
PCT/CN2024/088600 2024-04-18 2024-04-18 设备分享方法、装置、存储介质及电子设备 Pending WO2025217877A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2024/088600 WO2025217877A1 (zh) 2024-04-18 2024-04-18 设备分享方法、装置、存储介质及电子设备
CN202480001101.2A CN118541955A (zh) 2024-04-18 2024-04-18 设备分享方法、装置、存储介质及电子设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2024/088600 WO2025217877A1 (zh) 2024-04-18 2024-04-18 设备分享方法、装置、存储介质及电子设备

Publications (1)

Publication Number Publication Date
WO2025217877A1 true WO2025217877A1 (zh) 2025-10-23

Family

ID=92387087

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2024/088600 Pending WO2025217877A1 (zh) 2024-04-18 2024-04-18 设备分享方法、装置、存储介质及电子设备

Country Status (2)

Country Link
CN (1) CN118541955A (zh)
WO (1) WO2025217877A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107567009A (zh) * 2017-09-28 2018-01-09 北京地平线机器人技术研发有限公司 蓝牙设备分享请求和控制方法及电子设备
CN116346842A (zh) * 2021-12-23 2023-06-27 深圳Tcl新技术有限公司 跨生态设备管控方法、装置、存储介质及电子设备
US20230239294A1 (en) * 2021-04-30 2023-07-27 Tencent Cloud Computing (Beijing) Co., Ltd. Access processing method and device for remotely controlling terminal and storage medium
WO2023184560A1 (zh) * 2022-04-02 2023-10-05 Oppo广东移动通信有限公司 设备分享方法、装置、设备、存储介质及程序产品

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107567009A (zh) * 2017-09-28 2018-01-09 北京地平线机器人技术研发有限公司 蓝牙设备分享请求和控制方法及电子设备
US20230239294A1 (en) * 2021-04-30 2023-07-27 Tencent Cloud Computing (Beijing) Co., Ltd. Access processing method and device for remotely controlling terminal and storage medium
CN116346842A (zh) * 2021-12-23 2023-06-27 深圳Tcl新技术有限公司 跨生态设备管控方法、装置、存储介质及电子设备
WO2023184560A1 (zh) * 2022-04-02 2023-10-05 Oppo广东移动通信有限公司 设备分享方法、装置、设备、存储介质及程序产品

Also Published As

Publication number Publication date
CN118541955A (zh) 2024-08-23

Similar Documents

Publication Publication Date Title
CN110869907B (zh) 一种浏览应用页面的方法及终端
US10187474B2 (en) Method and device for resource sharing between devices
US10284494B2 (en) Device controlling method, client, server and intermediate device
US8365250B2 (en) Apparatus, methods, and computer program products for providing portable communication identity services
EP3386167B1 (en) Cloud operation interface sharing method, related device and system
CN103634109A (zh) 操作权限验证方法和装置
CN109474595B (zh) 一种电子设备绑定方法、电子设备、移动终端和服务器
CN113572862A (zh) 一种集群部署方法、装置、电子设备及存储介质
WO2020228013A1 (zh) 账号关联方法、装置、系统、服务器以及存储介质
CN116887382A (zh) 智能设备的配网方法、装置、设备、介质和程序产品
CN113596030B (zh) 设备配网方法、装置、存储介质及电子设备
CN110278092A (zh) 基于mqtt协议的路由器远程控制方法和系统
CN111142900A (zh) 程序更新方法、装置及终端设备
US12426111B2 (en) Communication system, terminal, communication device and connection method
WO2026066908A1 (zh) 网络连接方法、装置、存储介质、电子设备及路由器
CN115473670A (zh) 响应信息的发送方法和装置、存储介质及电子装置
CN112817248B (zh) 一种共享设备管理方法、装置、存储介质及电子装置
WO2025217877A1 (zh) 设备分享方法、装置、存储介质及电子设备
CN113596835A (zh) 网络连接方法、装置、存储介质及电子装置
CN113395345A (zh) 物联网设备的配网方法、装置及存储介质
CN113905263B (zh) 机顶盒控制方法、设备及存储介质
CN113593558B (zh) 远场语音适配方法、装置、设备及存储介质
KR20140121571A (ko) 통합 인증 시스템, 그의 통합 인증 방법 및 이를 위한 장치
CN116456339A (zh) 基于sim卡的认证管理方法、装置、及相关设备
CN115460060A (zh) 智能设备的设备升级方法及装置、存储介质及电子装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 24935427

Country of ref document: EP

Kind code of ref document: A1