Standard protocol configuration methods, apparatus, storage medium and device

WO2026129694A1PCT designated stage Publication Date: 2026-06-25GD MIDEA AIR CONDITIONING EQUIP CO LTD +2

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
GD MIDEA AIR CONDITIONING EQUIP CO LTD
Filing Date
2025-08-18
Publication Date
2026-06-25

AI Technical Summary

Technical Problem

Smart home devices face difficulties in interoperability across brands due to manufacturers' custom protocols, and the configuration process is complex and costly, requiring manual input or scanning of QR codes.

Method used

After establishing a preset protocol connection between the first terminal and the electrical equipment, the configuration information identifier of the electrical equipment is obtained from the server, and a standard protocol connection is established based on this information, which simplifies the configuration process and reduces costs.

Benefits of technology

Standard protocol configuration can be achieved without manually entering or scanning QR codes, simplifying operation steps, improving configuration efficiency, reducing costs, and enabling interoperability between devices from different brands.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025115387_25062026_PF_FP_ABST
    Figure CN2025115387_25062026_PF_FP_ABST
Patent Text Reader

Abstract

The present application provides standard protocol configuration methods, an apparatus, a storage medium and a device. The methods are applied to the technical field of computers. In a method, when a first terminal has established a first connection based on a preset protocol with an electrical device, the first terminal acquires a first configuration information identifier of the electrical device from a server on the basis of a device identifier of the electrical device, then acquires configuration information of the electrical device from the first configuration information identifier, and, on the basis of the configuration information, establishes a second connection based on a standard protocol with the electrical device.
Need to check novelty before this filing date? Find Prior Art

Description

A standard protocol configuration method, apparatus, storage medium, and device

[0001] This application claims priority to Chinese Patent Application No. 2024118547863, filed on December 16, 2024, entitled "A Standard Protocol Configuration Method, Apparatus, Storage Medium and Device", the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of computer technology, and in particular to a standard protocol configuration method, apparatus, storage medium and device. Background Technology

[0003] With the development of technology, smart homes have become integrated into the daily lives of some people, bringing great convenience. However, due to the different manufacturers of smart home devices, using manufacturer-defined protocols can meet their customized needs, but it cannot achieve cross-brand device interoperability. To achieve compatibility with both manufacturer-defined and standard protocols, it is necessary not only to configure standard protocol certificates for the smart home devices before they leave the factory, but also to affix QR codes to the devices. This results in a complex and cumbersome configuration process, increasing costs accordingly. Summary of the Invention

[0004] This application provides a standard protocol configuration method, apparatus, storage medium, and device. The method enables a first terminal to establish a first connection with an electrical device based on a preset protocol, and then obtains configuration information from a first configuration information identifier sent by a server. Based on this configuration information, a second connection based on a standard protocol is established with the electrical device. Standard protocol configuration can be achieved without manually entering a pairing code or scanning configuration information identifiers such as QR codes affixed to the electrical device, simplifying the operation steps and improving configuration efficiency.

[0005] Firstly, a standard protocol configuration method is provided, applied to a first terminal. The method includes: sending a configuration information query request carrying a device identifier of an electrical device to a server, wherein the device identifier is an identifier obtained when the first terminal establishes a first connection with the electrical device, and the first connection is a communication connection pre-established based on a preset protocol; the configuration information query request is configured such that the server obtains a first configuration information identifier of the electrical device under the standard protocol based on the device identifier; obtaining the first configuration information identifier of the electrical device returned by the server; obtaining configuration information of the electrical device based on the first configuration information identifier; and establishing a second connection with the electrical device based on the configuration information, wherein the second connection is a communication connection established based on the standard protocol.

[0006] The above technical solution enables the first terminal to obtain configuration information from the first configuration information identifier of the electrical device obtained from the server, after establishing a first connection with the electrical device based on a preset protocol. Based on the configuration information, the terminal establishes a second connection with the electrical device based on a standard protocol. The configuration information can be obtained without manually entering or scanning the QR code affixed to the electrical device, which simplifies the operation steps of standard protocol configuration and improves configuration efficiency.

[0007] Secondly, a standard protocol configuration method is provided, which is applied to electrical equipment. The method includes: establishing a second connection with a first terminal based on configuration information; wherein the configuration information is obtained by the first terminal from a first configuration information identifier, the first configuration information identifier is the configuration information identifier corresponding to the electrical equipment returned by the server when the first terminal sends a configuration information query request carrying the device identifier of the electrical equipment to the server, the device identifier is the identifier obtained by the first terminal when establishing a first connection with the electrical equipment, and the first connection is a communication connection established in advance based on a preset protocol.

[0008] The above technical solution allows for the establishment of a second connection with the first terminal based on the configuration information in the first configuration information identifier of the electrical device obtained from the server. This eliminates the need to affix configuration information identifiers such as QR codes to the electrical device, reducing configuration costs and improving configuration efficiency.

[0009] Thirdly, a standard protocol configuration method is provided, which is applied to a server. The method includes: receiving a configuration information query request sent by a first terminal carrying a device identifier of an electrical device, wherein the device identifier is an identifier obtained when the first terminal establishes a first connection with the electrical device, the first connection is a communication connection established in advance between the first terminal and the electrical device based on a preset protocol, and the configuration information query request is a query request sent to the server by the first terminal when establishing the first connection with the electrical device; sending a first configuration information identifier of the electrical device to the first terminal based on the configuration information query request, so that the first terminal obtains the configuration information of the electrical device from the first configuration information identifier, and establishes a second connection with the electrical device based on the configuration information, wherein the second connection is a communication connection established between the first terminal and the electrical device based on a standard protocol.

[0010] Through the above technical solution, when the server receives a configuration information query request from the first terminal, it sends the first configuration information identifier to the first terminal, so that the electrical equipment does not need to be labeled with configuration information identifiers such as QR codes. This eliminates the need for users to manually enter pairing codes or use the first terminal to scan QR codes, reducing configuration costs and improving configuration efficiency.

[0011] Fourthly, a first terminal is provided, the first terminal comprising:

[0012] The query request sending unit is configured to send a configuration information query request carrying the device identifier of the electrical device to the server. The device identifier is the identifier obtained when the first terminal establishes a first connection with the electrical device. The first connection is a communication connection established in advance based on a preset protocol. The configuration information query request is configured to allow the server to obtain the first configuration information identifier of the electrical device under the standard protocol based on the device identifier.

[0013] The configuration information acquisition unit is configured to acquire the first configuration information identifier of the electrical device returned by the server, and acquire the configuration information of the electrical device based on the first configuration information identifier;

[0014] The first connection establishment unit is configured to establish a second connection with the electrical equipment based on configuration information. The second connection is a communication connection established based on a standard protocol.

[0015] Fifthly, an electrical device is provided, the electrical device comprising:

[0016] The second connection establishment unit is configured to establish a second connection with the first terminal based on configuration information;

[0017] The configuration information is obtained by the first terminal from the first configuration information identifier. The first configuration information identifier is the configuration information identifier corresponding to the electrical device returned by the server when the first terminal sends a configuration information query request carrying the device identifier of the electrical device to the server. The device identifier is the identifier obtained by the first terminal when establishing a first connection with the electrical device. The first connection is a communication connection established in advance based on a preset protocol.

[0018] Sixthly, a server is provided, the server comprising:

[0019] The query request receiving unit is configured to receive a configuration information query request sent by the first terminal, which carries the device identifier of the electrical device. The device identifier is an identifier obtained when the first terminal establishes a first connection with the electrical device. The first connection is a communication connection established in advance between the first terminal and the electrical device based on a preset protocol. The configuration information query request is a query request sent to the server when the first terminal establishes a first connection with the electrical device.

[0020] The configuration information identifier sending unit is configured to send the first configuration information identifier of the electrical device to the first terminal based on the configuration information query request, so that the first terminal can obtain the configuration information of the electrical device from the first configuration information identifier and establish a second connection with the electrical device based on the configuration information. The second connection is a communication connection established between the first terminal and the electrical device based on a standard protocol.

[0021] In a seventh aspect, a computer device is provided, the computer device comprising: a memory configured to store executable program code;

[0022] The processor is configured to call and run executable program code from memory to perform the methods in the first aspect or any possible implementation of the first aspect described above.

[0023] Eighthly, a computer program product is provided, comprising: computer program code, which, when run on a computer, causes the computer to perform the methods described in the first aspect or any possible implementation thereof.

[0024] Ninthly, a computer-readable storage medium is provided that stores computer program code, which, when executed on a computer, causes the computer to perform the methods described in the first aspect or any possible implementation thereof. Attached Figure Description

[0025] Figure 1 is a system architecture diagram of a standard protocol configuration method provided in an embodiment of this application;

[0026] Figure 2 is a flowchart illustrating a standard protocol configuration method provided in an embodiment of this application;

[0027] Figure 3 is a flowchart illustrating a standard protocol configuration method provided in an embodiment of this application;

[0028] Figure 4 is a schematic diagram of a process for a first terminal to dynamically generate a second configuration information identifier according to an embodiment of this application;

[0029] Figure 5 is a schematic diagram of a standard protocol configuration process between a third terminal and an electrical device according to an embodiment of this application;

[0030] Figure 6 is a flowchart illustrating a standard protocol configuration method provided in an embodiment of this application;

[0031] Figure 7 is a schematic diagram of a process for making a preset protocol electrical device into a standard protocol electrical device according to an embodiment of this application;

[0032] Figure 8 is a flowchart illustrating a standard protocol configuration method provided in an embodiment of this application;

[0033] Figure 9 is a flowchart illustrating a standard protocol configuration method provided in an embodiment of this application;

[0034] Figure 10 is a flowchart illustrating a standard protocol configuration method provided in an embodiment of this application;

[0035] Figure 11 is a structural schematic diagram of a first terminal provided in an embodiment of this application;

[0036] Figure 12 is a schematic diagram of the structure of a computer device provided in an embodiment of this application;

[0037] Figure 13 is a schematic diagram of the structure of an electrical device provided in an embodiment of this application;

[0038] Figure 14 is a schematic diagram of the structure of a computer device provided in an embodiment of this application;

[0039] Figure 15 is a schematic diagram of the structure of a server provided in an embodiment of this application;

[0040] Figure 16 is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation

[0041] The technical solutions in this application will be clearly and thoroughly described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B. "And / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.

[0042] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.

[0043] Please refer to Figure 1, which is a system architecture diagram of a standard protocol configuration method provided in an embodiment of this application. As shown in Figure 1, the standard protocol configuration method provided in this embodiment can be applied to scenarios of configuring standard protocols for electrical appliances in IoT smart homes. The system may include at least one first terminal 10, electrical appliances 20, and a server 30. The first terminal 10 includes, but is not limited to, mobile phones, personal computers, laptops, wearable devices, and other first terminals with network connectivity. The electrical appliances 20 includes, but is not limited to, devices in IoT smart homes such as air conditioners, cameras, smoke detectors, and smart curtains. The server 30 can be a cloud server of the electrical appliance manufacturer or a third-party cloud server.

[0044] In this embodiment, after establishing a first connection with the electrical device 20 based on a preset protocol, the first terminal 10 obtains the device identifier of the electrical device 20 and sends a configuration information query request carrying the device identifier to the server 30. The server 30, based on the configuration information query request, sends the first configuration information identifier of the electrical device 20 to the first terminal 10. The first terminal 10 obtains the configuration information of the electrical device 20 from the first configuration information identifier and establishes a second connection with the electrical device 20 based on the configuration information. After establishing the first connection with the electrical device based on the preset protocol, the first terminal obtains the configuration information from the first configuration information identifier sent by the server and establishes a second connection with the electrical device based on the configuration information using a standard protocol. This eliminates the need to affix configuration information identifiers such as QR codes to the electrical device, achieving compatibility between the preset protocol and the standard protocol, reducing the operational complexity of standard protocol configuration, and simultaneously reducing configuration costs.

[0045] Based on the system architecture diagram shown in Figure 1, the standard protocol configuration method provided in the embodiments of this application will be described in detail below with reference to Figures 2-10.

[0046] Please refer to Figure 2, which is a flowchart illustrating a standard protocol configuration method provided in an embodiment of this application. As shown in Figure 2, this embodiment of the application describes the specific flow of the standard protocol configuration method from the first terminal side, and the method may include the following steps S101-S103.

[0047] S101, send a configuration information query request carrying the device identifier of the electrical equipment to the server;

[0048] Specifically, after establishing a first connection with the electrical appliance based on a preset protocol, the first terminal obtains the device identifier reported by the electrical appliance and then sends a configuration information query request to the server. This configuration information query request carries the device identifier of the electrical appliance. The first terminal can be the terminal device where the manufacturer's application (APP) resides, and the electrical appliance is a device within the IoT home system. The preset protocol can be a manufacturer-defined protocol (i.e., a proprietary protocol) used to enable the electrical appliance to perform manufacturer-customized functions, or it can be a public protocol other than a standard protocol that allows electrical appliances from different manufacturers to work together. Standard protocols are protocols that enable electrical appliances from different manufacturers to work together, including the Matter protocol. The first connection is a pre-established communication connection based on the preset protocol. The device identifier includes, but is not limited to, device serial number and Media Access Control Address (MAC) address, which uniquely identify the electrical appliance. The device serial number is a unique serial number assigned to each electrical appliance at the factory, used to track information such as the production batch, production date, and sales channel. The MAC address is used for identification and communication within the network and can be used to confirm the address of the electrical appliance. The configuration information query request includes the device identifier of the electrical equipment, which is set to allow the server to obtain the first configuration information identifier of the electrical equipment under the standard protocol based on the device identifier.

[0049] S102, obtain the first configuration information identifier of the electrical device returned by the server, and obtain the configuration information of the electrical device based on the first configuration information identifier;

[0050] Specifically, the first terminal obtains the first configuration information identifier of the electrical device returned by the server, and retrieves the configuration information of the electrical device from the first configuration information identifier. The first configuration information identifier is either a Manual Pairing Code or a Matter QR Code. Manual Pairing Code and Matter QR Code are two different forms of identification codes used in the standard protocol configuration process. Both types of identification codes include configuration information for the electrical device's standard protocol configuration, such as network parameters and device identification. The Manual Pairing Code requires manual or voice input by the user on the first terminal, while the Matter QR Code requires scanning by the user using the first terminal. Both types of identification codes increase the operational complexity of the standard protocol configuration process. In this embodiment, the first terminal can directly retrieve the configuration information from the first configuration information identifier returned by the server, reducing operational complexity.

[0051] S103, establish a second connection with electrical equipment based on configuration information.

[0052] Specifically, after obtaining the configuration information, the first terminal can establish a second connection with the electrical device based on the configuration information. This second connection is a communication connection based on a standard protocol. Before establishing the second connection, the first terminal can detect the functional status of the electrical device's first device discovery function based on a preset protocol. If the first device discovery function is disabled, the first terminal sends a first activation command to the electrical device to enable the first device discovery function, and then establishes a wireless communication connection with the electrical device based on the first device discovery function. When establishing the second connection, the first terminal first authenticates the electrical device based on the device identifier in the configuration information, then verifies the electrical device's standard protocol certificate based on the root certificate public key obtained from the server, and finally configures the node identifier and access permissions for the electrical device in the standard protocol network according to network parameters. This realizes the second connection between the configuration information and the electrical device, as well as the communication connection with other devices based on the standard protocol, within the shared preset network. At this time, the electrical device is compatible with both the preset protocol and the standard protocol.

[0053] In this embodiment, after establishing a first connection with the electrical device based on a preset protocol, the first terminal can directly obtain the first configuration information identifier of the electrical device from the server based on the device identifier of the electrical device, and then obtain the configuration information of the electrical device from the first configuration information identifier. Based on the configuration information, a second connection based on a standard protocol is established with the electrical device. This eliminates the need to manually enter a pairing code or scan a QR code affixed to the electrical device to obtain configuration information, simplifying the standard protocol configuration process and improving configuration efficiency. With the first terminal and the electrical device already configured according to the preset protocol, completing the standard protocol configuration ensures that the electrical device can implement the manufacturer's customized functions and also enables interoperability between devices from different manufacturers and brands, improving the operability of the device.

[0054] Please refer to Figure 3, which is a flowchart illustrating a standard protocol configuration method provided in an embodiment of this application. As shown in Figure 3, this embodiment of the application describes the specific flow of the standard protocol configuration method from the first terminal side, and the method may include the following steps S201-S207.

[0055] S201, Establish a first connection with the electrical equipment based on a preset protocol, and obtain the device identifier reported by the electrical equipment based on the first connection;

[0056] Specifically, the first terminal is the terminal device where the appliance manufacturer's app resides. The appliance is a device within the IoT home system. When the first terminal establishes a communication connection with the appliance for the first time, it establishes a first connection based on a preset protocol. Establishing this first connection involves the first terminal discovering the appliance, establishing a temporary communication connection, and adding the appliance to a preset protocol network based on network configuration parameters related to the preset protocol. Within this network, the first connection is established. The preset protocol can be a manufacturer-defined protocol (i.e., a proprietary protocol) configured to enable customized functions, or it can be a public protocol outside of standard protocols that allows appliances from different manufacturers to work together. Standard protocols are those that enable appliances from different manufacturers to work together, including the Matter protocol. After the first terminal establishes a first connection with the electrical equipment, the electrical equipment reports a device identifier to the first terminal. The device identifier includes, but is not limited to, device information that uniquely identifies the electrical equipment, such as the device serial number and MAC address. The device serial number is a unique serial number assigned to each electrical equipment when it leaves the factory. It is used to track information such as the production batch, production date, and sales channel of the electrical equipment. The MAC address is used for identification and communication in the network and can be used to confirm the address of the electrical equipment.

[0057] S202, Send a registration request to the server based on the device identifier. The registration request is set to enable the electrical device to establish a third connection with the server.

[0058] Specifically, the device sends a registration request to the server based on its device identifier, enabling the server to establish a third connection with the appliance based on the device identifier. This third connection is a communication connection based on Transport Layer Security (TLS). After establishing the third connection, the appliance reports its device information to the server, including version number, device identifier, manufacturer, etc. The server can use the uploaded device information to detect whether the appliance version supports the standard protocol and issue a standard protocol certificate for the appliance. Simultaneously, the server negotiates a first shared key with the appliance through the third connection. The standard protocol certificate indicates that the appliance conforms to the standard protocol, enabling seamless connection and interoperability across different smart home systems. The first shared key is a session key negotiated through a Password-Authenticated Key Exchange (PAKE) protocol, used to ensure the confidentiality and integrity of data in subsequent communications.

[0059] S203, receive the first prompt information sent by the server, and send a configuration information query request carrying the device identifier of the electrical equipment to the server;

[0060] Specifically, the first terminal receives a first prompt message from the server. This first prompt message is sent by the server when configuring the electrical device as a device with standard protocol connectivity. After the server issues a standard protocol certificate for the electrical device, the electrical device notifies the server that it has become a device to be configured by the user with standard protocol connectivity. Upon receiving this notification, the server sends the first prompt message to the first terminal. Based on this first prompt message, the first terminal can determine that the electrical device is a device with standard protocol connectivity. Therefore, the first terminal sends a configuration information query request carrying the device identifier of the electrical device to the server. This configuration information query request is set to allow the server to obtain the first configuration information identifier of the electrical device under the standard protocol based on the device identifier.

[0061] S204, Obtain the first configuration information identifier of the electrical device returned by the server, and obtain the configuration information of the electrical device based on the first configuration information identifier;

[0062] Specifically, the first terminal obtains the first configuration information identifier of the electrical device returned by the server, and retrieves the configuration information of the electrical device from the first configuration information identifier. The first configuration information identifier is either a Manual Pairing Code or a Matter QR Code. Manual Pairing Code and Matter QR Code are two different forms of identification codes used in the standard protocol configuration process. Both types of identification codes include configuration information for the electrical device's standard protocol configuration, such as network parameters and device identification. The Manual Pairing Code requires manual or voice input by the user on the first terminal, while the Matter QR Code requires scanning by the user using the first terminal. Both types of identification codes increase the operational complexity of the standard protocol configuration process. In this embodiment, the first terminal can directly retrieve the configuration information from the first configuration information identifier returned by the server, reducing operational complexity.

[0063] S205, in response to the connection command initiated in response to the first prompt information, detects the functional status of the first device discovery function of the electrical device based on a preset protocol;

[0064] Specifically, before starting the standard protocol configuration, the first terminal also needs to display a first prompt message to the user to notify the user that the electrical device can be configured with one click. In response to the connection command initiated by the user in response to the first prompt message, the first terminal detects the functional status of the first device discovery function of the electrical device based on a preset protocol. The first device discovery function is the Basic Commissioning Method (BCM) window of the electrical device. The BCM window is a configuration method in the standard protocol that enables the electrical device to be discovered and configured. If the function status is enabled, step S206 is skipped and step S207 is executed.

[0065] S206, if the function status is the function not enabled state, a first enable command is sent to the electrical device to enable the first device discovery function of the electrical device.

[0066] Specifically, if the first device discovery function is in an inactive state, a first activation command is sent to the electrical device to enable the first device discovery function. Once the first device discovery function is enabled, the electrical device can safely and effectively join the standard protocol network in the configuration information obtained by the first terminal and can be configured to be in an operable state, that is, the electrical device can communicate with the first terminal or other devices.

[0067] S207, establishes a second connection with electrical equipment based on configuration information.

[0068] Specifically, after the first device discovery function is enabled, the electrical device will broadcast signals such as Bluetooth or Wi-Fi to the outside world through the first device discovery function so that it can be discovered by the first terminal. The first terminal establishes a wireless communication connection with the electrical device based on the first device discovery function. The wireless communication connection can be Bluetooth pairing or Wi-Fi connection. After the wireless communication connection is established, the electrical device sends its own standard protocol certificate to the first terminal. The first terminal receives the standard protocol certificate sent by the electrical device through the wireless communication connection based on the first shared key in the configuration information and verifies the standard protocol certificate. If the verification is successful, the first terminal obtains the network parameters and the first shared key from the configuration information, encrypts the network parameters based on the first shared key, and sends the encrypted network parameters to the electrical device. Based on the network parameters, a second connection based on the standard protocol is established with the electrical device. The specific process of standard protocol certificate verification is as follows: first, the format or content of the standard protocol certificate is checked for correctness; then, the signature of the standard protocol certificate is verified using the root certificate public key obtained from the server; and finally, the validity period and issuing authority of the standard protocol certificate are checked. The first shared key is used to encrypt the standard protocol certificate sent by the receiving electrical device, and to encrypt data transmission between the first terminal and the electrical device after successful certificate authentication. Network parameters include the specified network structure (Fabric), node ID, and configured roles. The Fabric is a secure isolation domain within the standard protocol network, configured to ensure that the electrical device can only communicate securely with devices within that Fabric. The electrical device joins the Fabric according to the network parameters, and the first terminal assigns it a unique node ID and its configured role within the Fabric. After successfully joining the Fabric, the electrical device establishes a second connection based on the standard protocol, as well as communication connections with other devices based on the standard protocol. At this point, the electrical device can be compatible with both preset and standard protocols.

[0069] In one feasible implementation, after establishing a second connection with the electrical device, the first terminal sends a second activation command to the electrical device based on the second connection, causing the electrical device to activate the second device discovery function. The first terminal then periodically negotiates a second shared key with the electrical device based on a preset time interval, and generates a second configuration information identifier based on the second shared key and configuration information. Optionally, the first terminal can send the second configuration information identifier to the second terminal, enabling the second terminal to establish a fourth connection with the electrical device based on the second configuration information identifier and the second device discovery function. This fourth connection is a communication connection established based on a standard protocol. The first terminal can also establish a fifth connection with the electrical device based on the second configuration information identifier and the second device discovery function. This fifth connection is also a communication connection established based on a standard protocol. The second device discovery function is the Enhanced Commissioning Method (ECM) window of the electrical device. The ECM window is the same as the BCM window, both being configuration methods in standard protocols that enable the electrical device to be discovered and configured. However, the BCM window is adapted to perform standard protocol configuration based on a long-term fixed first configuration information identifier, while the ECM window is adapted to perform standard protocol configuration based on a periodically updated second configuration information identifier. The second terminal is the terminal device where a third-party APP resides. The third-party APP is an APP from a non-electrical device manufacturer that supports standard protocols. The second terminal can be the same as or different from the first terminal. If the second terminal is a different terminal device from the first terminal, the second configuration information identifier can be displayed on the first terminal, and the second terminal can scan the second configuration information identifier displayed on the first terminal. If the second terminal is the same terminal device as the first terminal, the second configuration information identifier can be sent to the third-party APP through the manufacturer's APP in the first terminal. By setting a preset time interval, the second configuration information identifier is updated periodically, which improves the security of data transmission in standard protocol configuration. Please refer to Figure 4, which is a schematic diagram of a process for the first terminal to dynamically generate a second configuration information identifier according to an embodiment of this application. As shown in Figure 4, after the first terminal completes the standard protocol configuration with the electrical device, it sends a command to enable the second device discovery function of the electrical device and renegotiates the shared key with the electrical device, so that the electrical device saves the new shared key.

[0070] In one feasible implementation, after the first terminal obtains the first configuration information identifier from the server, it can also send the first configuration information identifier to the third terminal, so that the third terminal can establish a sixth connection with the electrical device based on the first configuration information identifier and the first device discovery function. The sixth connection is a communication connection established based on a standard protocol. The third terminal is the terminal device where the third-party APP is located. The third terminal can be the same as or different from the first terminal. If the third terminal and the first terminal are different terminal devices, the first terminal can display the first configuration information identifier, and the third terminal can scan the first configuration information identifier displayed by the first terminal. If the third terminal and the first terminal are the same terminal device, the manufacturer's APP in the first terminal can send the second configuration information identifier to the third-party APP. Please refer to Figure 5. Figure 5 is a schematic diagram of a standard protocol configuration process between a third terminal and an electrical device provided by an embodiment of this application. As shown in Figure 5, after the user agrees to the first terminal displaying the first configuration information identifier, if the third terminal and the first terminal are in the same terminal device, the first configuration information identifier is shared with the third terminal through sharing within the terminal device; if the third terminal and the first terminal are not in the same terminal device, the third terminal is used to scan the first configuration information identifier. After the third terminal obtains the first configuration information identifier, it parses the first configuration information identifier and initiates a standard protocol configuration process with the electrical equipment until the standard protocol configuration is completed.

[0071] In this embodiment, the first terminal establishes a first connection with the electrical device based on a preset protocol, obtains the device identifier reported by the electrical device, and establishes a third connection between the electrical device and the server based on the device identifier. This allows the server to configure the electrical device as a device with standard protocol connectivity and send a first notification message to the first terminal indicating that the electrical device has been configured as such. Upon receiving this notification, the first terminal sends a configuration information query request to the server, obtains the first configuration information identifier returned by the server, retrieves the configuration information of the electrical device from the identifier, and establishes a second connection with the electrical device based on the standard protocol. This eliminates the need for manually entering a pairing code or scanning a QR code on the electrical device, simplifying the standard protocol configuration process and improving efficiency. With the preset protocol configuration already completed between the first terminal and the electrical device, standard protocol configuration ensures that the electrical device can implement manufacturer-customized functions and achieves interoperability between devices from different manufacturers, improving device operability.

[0072] Please refer to Figure 6, which is a flowchart illustrating a method for creating a new scene trigger condition according to an embodiment of this application. As shown in Figure 6, this embodiment of the application describes the specific process of a standard protocol configuration method from the perspective of electrical equipment. This method may include the following steps S301-S308.

[0073] S301, establish a first connection with the first terminal based on a preset protocol, and report the device identifier to the first terminal based on the first connection, so that the first terminal sends a registration request to the server based on the device identifier;

[0074] Specifically, the electrical appliances are devices within the IoT home system, and the first terminal is the terminal device containing the manufacturer's app for the electrical appliances. When the electrical appliances first establish a communication connection with the first terminal, a first connection is established based on a preset protocol. During the establishment of the first connection, a temporary communication connection is established between the electrical appliances and the first terminal. Based on the network configuration parameters related to the preset protocol sent by the first terminal, the electrical appliances are added to the preset protocol network. The first connection is then established with the first terminal within the preset protocol network. The preset protocol can be a manufacturer-defined protocol, i.e., a private protocol, configured to enable the electrical appliances to implement the manufacturer's customized functions. It can also be a public protocol other than the standard protocol that enables electrical appliances from different manufacturers to work together. The standard protocol is the protocol that enables electrical appliances from different manufacturers to work together, including the Matter protocol. After establishing the first connection with the first terminal, the electrical appliances report their device identifier to the first terminal based on the first connection. This allows the first terminal to send a registration request to the server based on the device identifier. Upon receiving the registration request, the server sends a connection request to the electrical appliances based on the device identifier in the registration request, establishing a third connection with the electrical appliances. The third connection is a TLS-based communication connection. Device identification includes, but is not limited to, device serial number and MAC address, which are unique identifiers of electrical appliances. The device serial number is a unique serial number assigned to each electrical appliance when it leaves the factory. It is used to track information such as the production batch, production date, and sales channel of the electrical appliance. The MAC address is used for identification and communication on the network and can be used to confirm the address of the electrical appliance.

[0075] S302, establish a third connection with the server based on the registration request, and report device information to the server through the third connection;

[0076] Specifically, the electrical device receives a connection request from the server, establishes a third connection with the server based on the connection request, and then reports device information to the server through the third connection. This allows the server to configure the electrical device as a device with standard protocol connectivity based on the device information. The device information includes a device identifier, as well as version number, manufacturer, and other information. After receiving the device information, the server determines whether the electrical device's firmware supports the standard protocol based on the version number in the device information. If the electrical device's firmware supports the standard protocol, step S303 is skipped, and step S304 is executed directly; otherwise, step S303 is executed.

[0077] S303: Receive the device update file sent by the server, and update the first version of the electrical equipment to the second version based on the device update file;

[0078] Specifically, if the firmware of the electrical device does not support the standard protocol, the server notifies the first terminal, causing the first terminal to prompt the user that the electrical device needs an update. If the first terminal detects a touch operation confirming the update by the user, it responds by returning an update confirmation notification to the server, causing the server to send a device update file to the electrical device. The electrical device receives and downloads the device update file sent by the server, updating the first version in the device information to the second version. The first version is the version that does not support the standard protocol, and the second version is the version that does support the standard protocol.

[0079] S304, Request a standard protocol certificate from the server;

[0080] Specifically, after an appliance is updated to support the standard protocol, it can enable the first device discovery function. If the appliance detects that it cannot enable the first device discovery function, it will request a standard protocol certificate from the server. The first device discovery function is the appliance's BCM window, which is a configuration method in the standard protocol that allows the appliance to be discovered and configured. The specific process of requesting a standard protocol certificate is as follows: the appliance generates a first key pair based on the Elliptic Curve Digital Signature Algorithm (ECDSA), creates a certificate signing request using the device identifier and the first public key in the first key pair, signs the certificate signing request using the first private key in the first key pair, and sends the signed certificate signing request to the server, requesting the server to issue a standard protocol certificate. The appliance receives and saves the standard protocol certificate returned by the server. The standard protocol certificate indicates that the appliance conforms to the standard protocol standard and can seamlessly connect and interoperate in different smart home systems.

[0081] S305, send a key negotiation request to the server, and negotiate the first shared key with the server through the key negotiation request;

[0082] Specifically, while applying for a standard protocol certificate, the electrical device can also send a key negotiation request to the server via a third connection. Through this request, it negotiates a first shared key with the server, enabling the server to generate a first configuration information identifier based on the device information and the first shared key. The first shared key is a session key negotiated via PAKE, configured to ensure the confidentiality and integrity of subsequent communication data. The first configuration information identifier is either the electrical device's Manual Pairing Code or Matter QR Code. These are two different forms of identification codes used in the standard protocol configuration process. Both codes include configuration information for the electrical device's standard protocol configuration, such as network parameters and device identification. The Manual Pairing Code requires manual or voice input from the user on the first terminal, while the Matter QR Code requires scanning with the first terminal. Both codes increase the operational complexity of the standard protocol configuration process. In this embodiment, the first terminal can directly obtain the configuration information from the first configuration information identifier returned by the server, reducing operational complexity.

[0083] S306, Send the second prompt message to the server;

[0084] Specifically, the electrical device stores both the standard protocol certificate and the first shared key in non-volatile memory (Flash) and sends a second notification message to the server. The data stored in the Flash memory will not be lost due to power outages, providing good data retention capabilities. The second notification message indicates that the electrical device has been configured to have standard protocol connectivity, and is set to cause the server to send the first notification message to the first terminal indicating that the electrical device has been configured to have standard protocol connectivity.

[0085] Please refer to Figure 7, which is a flowchart illustrating how a device with a preset protocol can be converted into a device with a standard protocol, according to an embodiment of this application. As shown in Figure 7, a user configures a device with a preset protocol via a first terminal. This device supports the preset protocol. During configuration, the device reports its device identifier to the first terminal. After the preset protocol configuration is completed, the device, server, and first terminal are connected in pairs. When the server detects that the device has firmware to be upgraded, it notifies the first terminal, allowing the first terminal to notify the user and provide an option to upgrade the firmware. When the user agrees to upgrade the firmware, the device upgrades to the latest firmware through interaction with the server. When the device detects that its first device discovery function is not enabled, it generates a key pair, creates a certificate signing request based on the key pair, and sends the certificate signing request to the server. The server issues a standard protocol certificate for the device based on the certificate signing request, negotiates a shared key with the device, packages the standard protocol certificate and shared key together, and sends them to the device. The device merges and stores the received standard protocol certificate and shared key in its memory and sends a second notification message to the server, indicating that the device has completed the standard protocol configuration and is ready for user configuration. After receiving the second prompt message, the server sends the first prompt message to the first terminal, indicating that the first terminal has found an available standard protocol electrical device.

[0086] S307, Receive the first enable command sent by the first terminal and enable the first device discovery function;

[0087] Specifically, after receiving the first prompt information, the first terminal will obtain the first configuration information identifier of the electrical device from the server and display the first prompt information to the user, notifying the user to configure the electrical device with one click. In response to the connection command initiated by the user in response to the first prompt information, the first terminal will detect the functional status of the first device discovery function of the electrical device based on a preset protocol. If the functional status is that the function is not enabled, the first terminal will send a first enable command to the electrical device. After receiving the first enable command, the electrical device will enable the first device discovery function.

[0088] S308 establishes a second connection with the first terminal based on configuration information.

[0089] Specifically, after the electrical appliance activates the first device discovery function, it broadcasts Bluetooth or Wi-Fi signals to the outside world, making it discoverable by the first terminal. Based on this function, it establishes a wireless communication connection with the first terminal, such as Bluetooth pairing or Wi-Fi connection. After the wireless communication connection is established, the electrical appliance encrypts the standard protocol certificate using a first shared key negotiated with the server. It then sends the encrypted standard protocol certificate to the first terminal via the wireless communication connection, allowing the first terminal to verify the certificate. If verification is successful, the electrical appliance receives the network parameters from the configuration information sent by the first terminal and establishes a second connection based on the standard protocol. The network parameters are those encrypted by the first terminal using the first shared key in the configuration information. These parameters include the specified network structure (Fabric), node ID, and configured role. The Fabric is a secure isolation domain within the standard protocol network, designed to ensure that the electrical appliance can only communicate securely with devices within that Fabric. The electrical appliance joins the Fabric based on the network parameters, and the first terminal assigns it a unique node ID and a configured role within the Fabric. Once an electrical device is successfully added to Fabric, a second connection based on a standard protocol is established, as well as a communication connection with other devices based on the standard protocol. At this point, the electrical device can be compatible with both preset and standard protocols.

[0090] In one feasible implementation, after the electrical device establishes a second connection with the first terminal, if it receives a second activation command from the first terminal based on the second connection, it responds to the second activation command by activating a second device discovery function and periodically negotiating a second shared key with the first terminal for a preset duration. This allows the first terminal to generate a second configuration information identifier based on the second shared key and configuration information. The first terminal can establish a communication connection with the electrical device based on a standard protocol based on the second configuration information identifier, or it can send the second configuration information identifier to the terminal where a third-party app is located, enabling the terminal where the third-party app is located to establish a communication connection with the electrical device based on a standard protocol based on the second configuration information identifier.

[0091] In this embodiment, after the electrical device establishes a first connection with the first terminal based on a preset protocol, it establishes a third connection with the server through a registration request sent by the first terminal. The device reports its information to the server. If it receives a device update file from the server based on the device information, it updates the first version of the electrical device to the second version and applies for a standard protocol certificate from the server, while simultaneously negotiating a first shared key with the server. After obtaining the standard protocol certificate and the first shared key, it sends a second prompt message to the server to enable the first terminal to discover the electrical device. If the first terminal cannot discover the electrical device, it receives a first activation command from the first terminal to activate the first device discovery function. Based on the configuration information obtained by the first terminal, it establishes a second connection with the first terminal based on a standard protocol. By directly establishing a second connection with the first terminal based on the configuration information in the first configuration information identifier of the electrical device obtained by the first terminal from the server, there is no need to affix QR codes or other configuration information identifiers to the electrical device, reducing configuration costs and improving configuration efficiency.

[0092] Please refer to Figure 8, which is a flowchart illustrating a method for updating scenario triggering conditions according to an embodiment of this application. As shown in Figure 8, this embodiment of the application describes the specific flow of a standard protocol configuration method from the server side, which may include the following steps S401-S402.

[0093] S401, Receive configuration information query request sent by the first terminal carrying the device identifier of the electrical equipment;

[0094] Specifically, when the server receives a configuration information query request from the first terminal carrying the device identifier of an electrical appliance, it searches for the first configuration information identifier of that electrical appliance in the database. The device identifier is the identifier obtained when the first terminal establishes its first connection with the electrical appliance. The device identifier includes, but is not limited to, device serial number and MAC address, which uniquely identify the electrical appliance. The device serial number is a unique serial number assigned to each electrical appliance at the factory, used to track information such as the production batch, production date, and sales channel. The MAC address is used for identification and communication within the network and can be used to confirm the address of the electrical appliance. The first connection is a communication connection established beforehand between the first terminal and the electrical appliance based on a preset protocol. The configuration information query request is a query request sent by the first terminal to the server when the first connection is established. The preset protocol can be a manufacturer-defined protocol, i.e., a proprietary protocol, used to enable the electrical appliance to implement manufacturer-customized functions, or it can be a public protocol other than a standard protocol that allows electrical appliances from different manufacturers to work together. Standard protocols are protocols that enable electrical appliances from different manufacturers to work together, including the Matter protocol.

[0095] S402, based on the configuration information query request, the first configuration information identifier of the electrical equipment is sent to the first terminal.

[0096] Specifically, if the server finds the first configuration information identifier of the electrical device based on the configuration information query request, it sends the first configuration information identifier to the first terminal so that the first terminal can obtain the configuration information of the electrical device from the first configuration information identifier and establish a second connection with the electrical device based on the configuration information. The second connection is a communication connection established between the first terminal and the electrical device based on a standard protocol.

[0097] In this embodiment of the application, when the server receives a configuration information query request sent by the first terminal, it sends the first configuration information identifier to the first terminal, so that the electrical equipment does not need to be labeled with configuration information identifiers such as QR codes, thereby eliminating the need for users to manually enter pairing codes or use the first terminal to scan QR codes, reducing configuration costs and improving configuration efficiency.

[0098] Please refer to Figure 9, which is a flowchart illustrating a standard protocol configuration method provided in an embodiment of this application. As shown in Figure 9, this embodiment of the application describes the specific flow of the standard protocol configuration method from the server side, and the method may include the following steps S501-S505.

[0099] S501, receive the registration request sent by the first terminal, establish a third connection with the electrical equipment based on the registration request, and receive the equipment information reported by the electrical equipment through the third connection;

[0100] Specifically, the server receives a registration request from the first terminal, obtains the device identifier of the electrical appliance from the registration request, establishes a third connection with the electrical appliance based on the device identifier, and receives device information reported by the electrical appliance through the third connection. Here, the electrical appliance is a device in the IoT home system, the first terminal is the terminal device where the manufacturer's APP for the electrical appliance resides, the third connection is a TLS-based communication connection, and the device identifier includes, but is not limited to, unique device information such as the device serial number and MAC address. The device serial number is a unique serial number assigned to each electrical appliance at the factory, used to track information such as the production batch, production date, and sales channel. The MAC address is used for identification and communication on the network and can be used to confirm the address of the electrical appliance. Device information includes version number, device identifier, manufacturer, etc. The server can detect whether the version of the electrical appliance supports the standard protocol based on the device information uploaded by the electrical appliance, and issue a standard protocol certificate for the electrical appliance. Simultaneously, it negotiates a first shared key with the electrical appliance through the third connection. The standard protocol is a protocol that enables electrical appliances from different manufacturers to work together, including the Matter protocol.

[0101] S502, configure the electrical device as a device with standard protocol connection function according to the device information, and receive the second prompt information sent by the electrical device;

[0102] Specifically, the server obtains the first version of the electrical device from the received device information. If the first version indicates that the electrical device does not support the standard protocol, the server sends a device update file to the electrical device to update the first version to the second version. The second version of the electrical device supports the standard protocol, which is a protocol that enables electrical devices from different manufacturers to work together. If a certificate signing request is received from the electrical device, a standard protocol certificate is generated based on the certificate signing request. The certificate signing request is generated when the first device discovery function of the electrical device is in an inactive state. The standard protocol certificate generation process is as follows: the server extracts the first public key from the first key pair generated by the electrical device from the certificate signing request, generates a standard protocol certificate based on the first public key and the device information, obtains a second key pair from the certificate authority, signs the standard protocol certificate using the second private key in the second key pair, adds the second public key in the second key pair to the signed standard protocol certificate, and sends the standard protocol certificate to the electrical device. The server then receives a second prompt message from the electrical device, confirming that the electrical device has been configured as a device with standard protocol connectivity. The second prompt message indicates that the electrical device has been configured as a device with standard protocol connectivity. While issuing the standard protocol certificate, the server also receives key negotiation requests from electrical devices and negotiates the first shared key with the electrical devices through the key negotiation requests.

[0103] S503, in response to the second prompt message, generates a first configuration information identifier based on the device information and sends the first prompt message to the first terminal;

[0104] Specifically, in response to the second prompt message, a first configuration information identifier is generated based on the first shared key and device information. Simultaneously, a first prompt message is sent to the first terminal to indicate that an electrical device capable of standard protocol configuration has been discovered, enabling the first terminal to establish a second connection with the electrical device. This second connection is a communication connection based on a standard protocol. The first shared key is a session key negotiated via PAKE. The first shared key is added to the first configuration information identifier and sent to the first terminal to ensure the confidentiality and integrity of data communication between the first terminal and the electrical device.

[0105] S504, Receive configuration information query request sent by the first terminal carrying the device identifier of the electrical equipment;

[0106] Specifically, the system receives a configuration information query request from the first terminal to search for the first configuration information identifier of the electrical device in the database. The configuration information query request carries the device identifier of the electrical device. The device identifier is the identifier obtained when the first terminal establishes a first connection with the electrical device. The first connection is a communication connection established in advance between the first terminal and the electrical device based on a preset protocol. The configuration information query request is a query request sent to the server by the first terminal when establishing the first connection with the electrical device. The preset protocol can be a manufacturer-defined protocol, i.e., a proprietary protocol, configured to enable the electrical device to implement manufacturer-customized functions, or it can be a public protocol other than a standard protocol that allows electrical devices from different manufacturers to work together.

[0107] S505, based on the configuration information query request, sends the first configuration information identifier of the electrical equipment to the first terminal.

[0108] Please refer to step S402 for the specific process, which will not be repeated here.

[0109] In this embodiment, after the server establishes a third connection with the electrical device, it configures the electrical device as a device with standard protocol connection capabilities based on the device information reported by the electrical device. The server receives a second prompt from the electrical device and generates a first configuration information identifier. Simultaneously, it converts the second prompt into a first prompt and sends it to the first terminal, causing the first terminal to send a configuration information query request to the server. Upon receiving the configuration information query request, the server sends the first configuration information identifier of the electrical device to the first terminal. This eliminates the need to affix QR codes or other configuration information identifiers to the electrical device, thus freeing users from manually entering pairing codes or scanning QR codes with the first terminal, reducing configuration costs and improving configuration efficiency.

[0110] Please refer to Figure 10, which is a flowchart illustrating a standard protocol configuration method provided in an embodiment of this application. As shown in Figure 10, this embodiment of the application describes the specific flow of the standard protocol configuration method from the perspectives of the first terminal side, the electrical equipment side, and the server side. The method may include the following steps S601-S606.

[0111] S601 sends a configuration information query request carrying the device identifier of the electrical equipment to the server;

[0112] Please refer to step S203 for the specific process, which will not be repeated here.

[0113] S602, receive a configuration information query request sent by the first terminal, which carries the device identifier of the electrical equipment;

[0114] Please refer to step S504 for the specific process, which will not be repeated here.

[0115] S603, based on the configuration information query request, sends the first configuration information identifier of the electrical equipment to the first terminal;

[0116] Please refer to step S505 for the specific process, which will not be repeated here.

[0117] S604, Obtain the first configuration information identifier of the electrical device returned by the server, and obtain the configuration information of the electrical device based on the first configuration information identifier;

[0118] Please refer to step S204 for the specific process, which will not be repeated here.

[0119] S605 establishes a second connection with electrical equipment based on configuration information;

[0120] Please refer to step S207 for the specific process, which will not be repeated here.

[0121] S606 establishes a second connection with the first terminal based on configuration information.

[0122] Please refer to step S308 for the specific process, which will not be repeated here.

[0123] In this embodiment, the first terminal can send a configuration information query request to the server to obtain the first configuration information identifier of the electrical device from the server, thereby obtaining the configuration information of the electrical device, and establishing a second connection with the electrical device based on the configuration information and a standard protocol. This eliminates the need to affix configuration information identifiers such as QR codes to the electrical device, reducing configuration costs. Furthermore, it eliminates the need for users to manually enter pairing codes or scan QR codes affixed to the electrical device on the first terminal, simplifying the standard protocol configuration process and improving configuration efficiency. With the first terminal and the electrical device already configured according to a preset protocol, completing the standard protocol configuration ensures that the electrical device can implement the manufacturer's customized functions and also enables interoperability between devices from different manufacturers and brands, improving the operability of the device.

[0124] Based on the system architecture of Figure 1, the first terminal provided in the embodiments of this application will be described in detail below with reference to Figure 11. It should be noted that the first terminal in Figure 11 is configured to execute the method of the embodiments shown in Figures 2-5 of this application. For ease of explanation, only the parts related to the embodiments of this application are shown. For specific technical details not disclosed, please refer to the embodiments shown in Figures 2-5 of this application.

[0125] Please refer to Figure 11, which is a schematic diagram of the structure of a first terminal provided in an embodiment of this application. As shown in Figure 11, the first terminal 1000 in this embodiment of the application may include: a query request sending unit 1001, a configuration information acquisition unit 1002, and a configuration information acquisition unit 1003.

[0126] The query request sending unit 1001 is configured to send a configuration information query request carrying the device identifier of the electrical device to the server. The device identifier is the identifier obtained when the first terminal establishes a first connection with the electrical device. The first connection is a communication connection established in advance based on a preset protocol. The configuration information query request is configured to allow the server to obtain the first configuration information identifier of the electrical device under the standard protocol based on the device identifier.

[0127] The configuration information acquisition unit 1002 is configured to acquire the first configuration information identifier of the electrical device returned by the server, and acquire the configuration information of the electrical device based on the first configuration information identifier;

[0128] The first connection establishment unit 1003 is configured to establish a second connection with the electrical equipment based on configuration information. The second connection is a communication connection established based on a standard protocol.

[0129] Optionally, the first terminal 1000 is specifically configured to establish a first connection with the electrical equipment based on a preset protocol;

[0130] Based on the first connection, obtain the device identifier reported by the electrical equipment;

[0131] The device sends a registration request to the server based on its device identifier. The registration request is configured to establish a third connection between the electrical device and the server, so that the electrical device can report device information to the server based on the third connection. The device information includes the device identifier.

[0132] Optionally, the first terminal 1000 is specifically configured to receive a first prompt message sent by the server. The first prompt message is a prompt message sent by the server when configuring the electrical device as a device with standard protocol connection function.

[0133] Optionally, the first terminal 1000 is specifically configured to detect the functional status of the first device discovery function of the electrical device based on a preset protocol in response to a connection command initiated in response to the first prompt information.

[0134] If the function status is "function not enabled", a first enable command is sent to the electrical device to enable the first device discovery function.

[0135] Optionally, the first connection establishment unit 1003 is specifically configured to establish a wireless communication connection with the electrical device based on the first device discovery function;

[0136] Based on the first shared key in the configuration information, the standard protocol certificate sent by the electrical device is encrypted and received through a wireless communication connection, and the standard protocol certificate is verified.

[0137] If the verification passes, the network parameters and the first shared key are obtained from the configuration information;

[0138] The network parameters are encrypted using the first shared key, and the encrypted network parameters are sent to the electrical equipment.

[0139] Establish a second connection with electrical equipment based on standard protocols, using network parameters.

[0140] Optionally, the first connection establishment unit 1003 is specifically configured to send a second start command to the electrical device based on the second connection, so that the electrical device can enable the second device discovery function;

[0141] The second shared key is negotiated with the electrical equipment periodically based on a preset time interval;

[0142] A second configuration information identifier is generated based on the second shared key and configuration information;

[0143] Send a second configuration information identifier to the second terminal so that the second terminal can establish a fourth connection with the electrical equipment based on the second configuration information identifier and the second device discovery function. The fourth connection is a communication connection established based on a standard protocol.

[0144] Optionally, the first connection establishment unit 1003 is specifically configured as follows:

[0145] Optionally, the first terminal 1000 is specifically configured to send a first configuration information identifier to the third terminal, so that the third terminal establishes a sixth connection with the electrical equipment based on the first configuration information identifier and the first device discovery function. The sixth connection is a communication connection established based on a standard protocol.

[0146] In this embodiment, the first terminal establishes a first connection with the electrical device based on a preset protocol, obtains the device identifier reported by the electrical device, and establishes a third connection between the electrical device and the server based on the device identifier. This allows the server to configure the electrical device as a device with standard protocol connectivity and send a first notification message to the first terminal indicating that the electrical device has been configured as such. Upon receiving this notification, the first terminal sends a configuration information query request to the server, obtains the first configuration information identifier returned by the server, retrieves the configuration information of the electrical device from the identifier, and establishes a second connection with the electrical device based on the standard protocol. This eliminates the need for manually entering a pairing code or scanning a QR code on the electrical device, simplifying the standard protocol configuration process and improving efficiency. With the preset protocol configuration already completed between the first terminal and the electrical device, standard protocol configuration ensures that the electrical device can implement manufacturer-customized functions and achieves interoperability between devices from different manufacturers, improving device operability.

[0147] Please refer to Figure 12, which is a schematic diagram of the structure of a computer device provided in an embodiment of this application.

[0148] As exemplarily shown in FIG12, the computer device 1200 includes a processor 1201 and a memory 1202, wherein the processor 1201 is electrically connected to the memory 1202.

[0149] Processor 1201 is the control center of computer device 1200 and may include one or more processing cores. Processor 1201 connects to various parts of the computer device using various interfaces and lines. By running or calling computer programs stored in memory 1202 and calling data stored in memory 1202, it executes various functions of the computer device and processes data, thereby providing overall control of computer device 1200. Optionally, processor 1201 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). Processor 1201 may integrate one or more of the following: CPU, Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user page, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem is used for wireless communication. It is understood that the modem may also not be integrated into processor 1201 and may be implemented separately using a communication chip.

[0150] The memory 1202 can be configured to store software programs and modules. The processor 1201 executes various functional applications and data processing by running the computer programs and modules stored in the memory 1202. The memory 1202 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, computer programs required for at least one function, etc.; the data storage area may store data created based on the use of the computer device 1200, etc.

[0151] Furthermore, memory 1202 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, memory 1202 may also include a memory controller to provide processor 1201 with access to memory 1202.

[0152] In this embodiment, the processor 1201 in the computer device 1200 loads the instructions corresponding to the processes of one or more computer programs into the memory 1202 according to the following steps, and the processor 1201 runs the computer programs stored in the memory 1202 to realize various functions, as follows:

[0153] Send a configuration information query request carrying the device identifier of the electrical device to the server. The device identifier is the identifier obtained when the first terminal establishes a first connection with the electrical device. The first connection is a communication connection established in advance based on a preset protocol. The configuration information query request is set to the server obtain the first configuration information identifier of the electrical device under the standard protocol based on the device identifier.

[0154] Obtain the first configuration information identifier of the electrical device returned by the server, and obtain the configuration information of the electrical device based on the first configuration information identifier;

[0155] A second connection is established with the electrical equipment based on the configuration information. This second connection is a communication connection established based on a standard protocol.

[0156] Optionally, before executing the configuration information query request carrying the device identifier of the electrical device to the server, the processor 1201 also executes:

[0157] Establish a first connection with electrical equipment based on a preset protocol;

[0158] Based on the first connection, obtain the device identifier reported by the electrical equipment;

[0159] The device sends a registration request to the server based on its device identifier. The registration request is configured to establish a third connection between the electrical device and the server, so that the electrical device can report device information to the server based on the third connection. The device information includes the device identifier.

[0160] Optionally, before executing the configuration information query request carrying the device identifier of the electrical device to the server, the processor 1201 also executes:

[0161] Receive the first prompt message sent by the server. The first prompt message is the prompt message sent by the server when configuring the electrical device as a device with standard protocol connection function.

[0162] Optionally, after executing the process of obtaining the first configuration information identifier of the electrical device returned by the server, the processor 1201 also executes:

[0163] In response to a connection command initiated in response to the first prompt information, the functional status of the first device discovery function of the electrical device is detected based on a preset protocol;

[0164] If the function status is "function not enabled", a first enable command is sent to the electrical device to enable the first device discovery function.

[0165] Optionally, when the processor 1201 establishes a second connection with the electrical device based on configuration information, it specifically performs the following:

[0166] Based on the first device discovery function, a wireless communication connection is established with the electrical equipment;

[0167] Based on the first shared key in the configuration information, the standard protocol certificate sent by the electrical device is encrypted and received through a wireless communication connection, and the standard protocol certificate is verified.

[0168] If the verification passes, the network parameters are retrieved from the configuration information;

[0169] The network parameters are encrypted using the first shared key, and the encrypted network parameters are sent to the electrical equipment.

[0170] Establish a second connection with electrical equipment based on standard protocols, using network parameters.

[0171] Optionally, after establishing a second connection with the electrical device based on standard protocols using network parameters, the processor 1201 also performs:

[0172] A second power-on command is sent to the electrical device based on the second connection, so that the electrical device can enable the second device discovery function.

[0173] The second shared key is negotiated with the electrical equipment periodically based on a preset time interval;

[0174] A second configuration information identifier is generated based on the second shared key and configuration information;

[0175] Send a second configuration information identifier to the second terminal so that the second terminal can establish a fourth connection with the electrical equipment based on the second configuration information identifier and the second device discovery function. The fourth connection is a communication connection established based on a standard protocol.

[0176] Optionally, after generating the second configuration information identifier based on the second shared key and the device identifier, the processor 1201 also executes:

[0177] Based on the second configuration information identifier and the second device discovery function, a fifth connection is established with the electrical equipment. The fifth connection is a communication connection established based on a standard protocol.

[0178] Optionally, after executing the process of obtaining the first configuration information identifier of the electrical device returned by the server, the processor 1201 also executes:

[0179] Send a first configuration information identifier to a third terminal so that the third terminal can establish a sixth connection with the electrical equipment based on the first configuration information identifier and the first device discovery function. The sixth connection is a communication connection established based on a standard protocol.

[0180] In this embodiment, the first terminal establishes a first connection with the electrical device based on a preset protocol, obtains the device identifier reported by the electrical device, and establishes a third connection between the electrical device and the server based on the device identifier. This allows the server to configure the electrical device as a device with standard protocol connectivity and send a first notification message to the first terminal indicating that the electrical device has been configured as such. Upon receiving this notification, the first terminal sends a configuration information query request to the server, obtains the first configuration information identifier returned by the server, retrieves the configuration information of the electrical device from the identifier, and establishes a second connection with the electrical device based on the standard protocol. This eliminates the need for manually entering a pairing code or scanning a QR code on the electrical device, simplifying the standard protocol configuration process and improving efficiency. With the preset protocol configuration already completed between the first terminal and the electrical device, standard protocol configuration ensures that the electrical device can implement manufacturer-customized functions and achieves interoperability between devices from different manufacturers, improving device operability.

[0181] Based on the system architecture of Figure 1, the electrical equipment provided in the embodiments of this application will be described in detail below with reference to Figure 13. It should be noted that the electrical equipment in Figure 13 is configured to perform the method of the embodiments shown in Figures 6-7 of this application. For ease of explanation, only the parts related to the embodiments of this application are shown. For specific technical details not disclosed, please refer to the embodiments shown in Figures 6-7 of this application.

[0182] Please refer to Figure 13, which is a schematic diagram of the structure of an electrical device provided in an embodiment of this application. As shown in Figure 13, the electrical device 2000 in this embodiment may include: a second connection establishment unit 2001.

[0183] The second connection establishment unit 2001 is configured to establish a second connection with the first terminal based on configuration information;

[0184] The configuration information is obtained by the first terminal from the first configuration information identifier. The first configuration information identifier is the configuration information identifier corresponding to the electrical device returned by the server when the first terminal sends a configuration information query request carrying the device identifier of the electrical device to the server. The device identifier is the identifier obtained by the first terminal when establishing a first connection with the electrical device. The first connection is a communication connection established in advance based on a preset protocol.

[0185] Optionally, the electrical device 2000 is specifically configured to establish a first connection with the first terminal based on a preset protocol;

[0186] Based on the first connection, the device identifier is reported to the first terminal so that the first terminal can send a registration request to the server based on the device identifier;

[0187] A third connection is established with the server based on the registration request. Device information is reported to the server through the third connection so that the server can configure the electrical device as a device with standard protocol connection function based on the device information. The device information includes the device identifier.

[0188] Send a second prompt message to the server. The second prompt message is set to cause the server to send a first prompt message to the first terminal that the electrical device has been configured to have the connection function of the standard protocol.

[0189] The system receives a first activation command sent by the first terminal to activate the first device discovery function. The first activation command is sent by the first terminal when it detects that the first device discovery function of the electrical device is in an unactivated state based on a preset protocol.

[0190] Optionally, the electrical equipment 2000 is specifically configured to receive device update files sent by the server;

[0191] The first version of the electrical appliance is updated to the second version based on the device update file. The second version of the electrical appliance supports standard protocols.

[0192] Request a standard protocol certificate from the server.

[0193] Optionally, the electrical device 2000 is specifically configured to generate the first key pair;

[0194] Create a certificate signing request using the device identifier and the first public key from the first key pair;

[0195] The certificate signing request is signed using the first private key in the first key pair, and the signed certificate signing request is sent to the server.

[0196] Receive and save the standard protocol certificate returned by the server.

[0197] Optionally, the electrical device 2000 is specifically configured to send a key negotiation request to the server, and negotiate a first shared key with the server through the key negotiation request, so that the server can generate a first configuration information identifier based on the device information and the first shared key.

[0198] Optionally, the second connection establishment unit 2001 is specifically configured to establish a wireless communication connection with the first terminal based on the first device discovery function;

[0199] The standard protocol certificate is encrypted using the first shared key;

[0200] Based on the wireless communication connection, an encrypted standard protocol certificate is sent to the first terminal so that the first terminal can verify the standard protocol certificate;

[0201] If the verification is successful, the network parameters in the configuration information sent by the first terminal are received. The network parameters are the parameters encrypted by the first terminal using the first shared key in the configuration information.

[0202] A second connection based on standard protocols is established with the first terminal based on network parameters.

[0203] Optionally, the second connection establishment unit 2001 is specifically configured to enable the second device discovery function in response to the second opening instruction if a second opening instruction is received from the first terminal based on the second connection;

[0204] The system negotiates a second shared key with the first terminal periodically based on a preset time interval, so that the first terminal generates a second configuration information identifier based on the second shared key and configuration information.

[0205] In this embodiment, after the electrical device establishes a first connection with the first terminal based on a preset protocol, it establishes a third connection with the server through a registration request sent by the first terminal. The device reports its information to the server. If it receives a device update file from the server based on the device information, it updates the first version of the electrical device to the second version and applies for a standard protocol certificate from the server, while simultaneously negotiating a first shared key with the server. After obtaining the standard protocol certificate and the first shared key, it sends a second prompt message to the server to enable the first terminal to discover the electrical device. If the first terminal cannot discover the electrical device, it receives a first activation command from the first terminal to activate the first device discovery function. Based on the configuration information obtained by the first terminal, it establishes a second connection with the first terminal based on a standard protocol. By directly establishing a second connection with the first terminal based on the configuration information in the first configuration information identifier of the electrical device obtained by the first terminal from the server, there is no need to affix QR codes or other configuration information identifiers to the electrical device, reducing configuration costs and improving configuration efficiency.

[0206] Please refer to Figure 14, which is a schematic diagram of the structure of a computer device provided in an embodiment of this application.

[0207] As exemplarily shown in FIG14, the computer device 1400 includes a processor 1401 and a memory 1402, wherein the processor 1401 is electrically connected to the memory 1402.

[0208] Processor 1401 is the control center of computer device 1400 and may include one or more processing cores. Processor 1401 connects to various parts of the computer device using various interfaces and lines. By running or calling computer programs stored in memory 1402 and calling data stored in memory 1402, it executes various functions of the computer device and processes data, thereby providing overall control of computer device 1400. Optionally, processor 1401 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). Processor 1401 may integrate one or more of the following: CPU, Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user page, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem is used for wireless communication. It is understood that the modem may also not be integrated into processor 1401 and may be implemented separately through a communication chip.

[0209] The memory 1402 can be configured to store software programs and modules. The processor 1401 executes various functional applications and data processing by running the computer programs and modules stored in the memory 1402. The memory 1402 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, computer programs required for at least one function, etc.; the data storage area may store data created based on the use of the computer device 1400, etc.

[0210] Furthermore, memory 1402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, memory 1402 may also include a memory controller to provide processor 1401 with access to memory 1402.

[0211] In this embodiment, the processor 1401 in the computer device 1400 loads the instructions corresponding to the processes of one or more computer programs into the memory 1402 according to the following steps, and the processor 1401 runs the computer programs stored in the memory 1402 to realize various functions, as follows:

[0212] A second connection is established with the first terminal based on the configuration information;

[0213] The configuration information is obtained by the first terminal from the first configuration information identifier. The first configuration information identifier is the configuration information identifier corresponding to the electrical device returned by the server when the first terminal sends a configuration information query request carrying the device identifier of the electrical device to the server. The device identifier is the identifier obtained by the first terminal when establishing a first connection with the electrical device. The first connection is a communication connection established in advance based on a preset protocol.

[0214] Optionally, before establishing a second connection with the first terminal based on configuration information, the processor 1401 also executes:

[0215] Establish a first connection with the first terminal based on a preset protocol;

[0216] Based on the first connection, the device identifier is reported to the first terminal so that the first terminal can send a registration request to the server based on the device identifier;

[0217] A third connection is established with the server based on the registration request. Device information is reported to the server through the third connection so that the server can configure the electrical device as a device with standard protocol connection function based on the device information. The device information includes the device identifier.

[0218] Send a second prompt message to the server. The second prompt message is set to cause the server to send a first prompt message to the first terminal that the electrical device has been configured to have the connection function of the standard protocol.

[0219] The system receives a first activation command sent by the first terminal to activate the first device discovery function. The first activation command is sent by the first terminal when it detects that the first device discovery function of the electrical device is in an unactivated state based on a preset protocol.

[0220] Optionally, after establishing a third connection with the server based on the registration request and reporting device information to the server through the third connection, the processor 1401 also executes:

[0221] Receive device update files sent by the server;

[0222] The first version of the electrical appliance is updated to the second version based on the device update file. The second version of the electrical appliance supports standard protocols.

[0223] Request a standard protocol certificate from the server.

[0224] Optionally, when processor 1401 requests a standard protocol certificate from the server, it specifically performs the following:

[0225] Generate the first key pair;

[0226] Create a certificate signing request using the device identifier and the first public key from the first key pair;

[0227] The certificate signing request is signed using the first private key in the first key pair, and the signed certificate signing request is sent to the server.

[0228] Receive and save the standard protocol certificate returned by the server.

[0229] Optionally, after updating the electrical device from version one to version two based on the device update file, processor 1401 also performs:

[0230] Send a key negotiation request to the server to negotiate a first shared key with the server, so that the server can generate a first configuration information identifier based on the device information and the first shared key.

[0231] Optionally, when the processor 1401 establishes a second connection with the first terminal based on configuration information, it specifically performs the following:

[0232] A wireless communication connection is established with the first terminal based on the first device discovery function;

[0233] The standard protocol certificate is encrypted using the first shared key;

[0234] Based on the wireless communication connection, an encrypted standard protocol certificate is sent to the first terminal so that the first terminal can verify the standard protocol certificate;

[0235] If the verification is successful, the network parameters in the configuration information sent by the first terminal are received. The network parameters are the parameters encrypted by the first terminal using the first shared key in the configuration information.

[0236] A second connection based on standard protocols is established with the first terminal based on network parameters.

[0237] Optionally, after establishing a second connection with the first terminal based on standard protocols using network parameters, the processor 1401 also executes:

[0238] If a second enable command sent by the first terminal is received based on the second connection, then in response to the second enable command, the second device discovery function is enabled;

[0239] The system negotiates a second shared key with the first terminal periodically based on a preset time interval, so that the first terminal generates a second configuration information identifier based on the second shared key and configuration information.

[0240] In this embodiment, after the electrical device establishes a first connection with the first terminal based on a preset protocol, it establishes a third connection with the server through a registration request sent by the first terminal. The device reports its information to the server. If it receives a device update file from the server based on the device information, it updates the first version of the electrical device to the second version and applies for a standard protocol certificate from the server, while simultaneously negotiating a first shared key with the server. After obtaining the standard protocol certificate and the first shared key, it sends a second prompt message to the server to enable the first terminal to discover the electrical device. If the first terminal cannot discover the electrical device, it receives a first activation command from the first terminal to activate the first device discovery function. Based on the configuration information obtained by the first terminal, it establishes a second connection with the first terminal based on a standard protocol. By directly establishing a second connection with the first terminal based on the configuration information in the first configuration information identifier of the electrical device obtained by the first terminal from the server, there is no need to affix QR codes or other configuration information identifiers to the electrical device, reducing configuration costs and improving configuration efficiency.

[0241] Based on the system architecture in Figure 1, the server provided in the embodiments of this application will be described in detail below with reference to Figure 15. It should be noted that the server in Figure 15 is configured to execute the method of the embodiments shown in Figures 8-9 of this application. For ease of explanation, only the parts related to the embodiments of this application are shown. For specific technical details not disclosed, please refer to the embodiments shown in Figures 8-9 of this application.

[0242] Please refer to Figure 15, which is a schematic diagram of the structure of a server provided in an embodiment of this application. As shown in Figure 15, the server 3000 in this embodiment of the application may include: a query request receiving unit 3001 and a configuration information identifier sending unit 3002.

[0243] The query request receiving unit 3001 is configured to receive a configuration information query request sent by the first terminal, which carries the device identifier of the electrical device. The device identifier is an identifier obtained when the first terminal establishes a first connection with the electrical device. The first connection is a communication connection established in advance between the first terminal and the electrical device based on a preset protocol. The configuration information query request is a query request sent to the server when the first terminal establishes a first connection with the electrical device.

[0244] The configuration information identifier sending unit 3002 is configured to send the first configuration information identifier of the electrical device to the first terminal based on the configuration information query request, so that the first terminal can obtain the configuration information of the electrical device from the first configuration information identifier and establish a second connection with the electrical device based on the configuration information. The second connection is a communication connection established between the first terminal and the electrical device based on a standard protocol.

[0245] Optionally, the server 3000 is specifically configured to receive the registration request sent by the first terminal, establish a third connection with the electrical device based on the registration request, and receive the device information reported by the electrical device through the third connection. The device information includes the device identifier.

[0246] Configure electrical equipment as devices with standard protocol connectivity based on the equipment information;

[0247] Receive a second prompt message sent by the electrical device, the second prompt message being a prompt message indicating that the electrical device has been configured as a device with standard protocol connection function;

[0248] In response to the second prompt message, a first configuration information identifier is generated based on the device information;

[0249] A first prompt message is sent to the first terminal to prompt the first terminal to establish a second connection with the electrical equipment. The second connection is a communication connection based on a standard protocol.

[0250] Optionally, server 3000 is specifically configured to obtain the first version of the electrical device from the device information;

[0251] If the first version indicates that the electrical device does not support the standard protocol, then send an equipment update file to the electrical device to update the first version of the electrical device to the second version, and the second version of the electrical device supports the standard protocol;

[0252] Receive a certificate signing request sent by an electrical device, and generate a standard protocol certificate based on the certificate signing request. The certificate signing request is generated when the first device discovery function of the electrical device is in the function-disabled state.

[0253] Send the standard protocol certificate to the electrical device to receive a second prompt message from the electrical device. The second prompt message indicates that the electrical device has been configured as a device with standard protocol connectivity.

[0254] Optionally, the server 3000 is specifically configured to receive a certificate signing request sent by the electrical device and extract the first public key of the first key pair generated by the electrical device from the certificate signing request;

[0255] Generate a standard protocol certificate based on the first public key and device information;

[0256] Obtain the second key pair and use the second private key in the second key pair to sign the standard protocol certificate.

[0257] Optionally, the server 3000 is specifically configured to receive key negotiation requests sent by electrical devices and negotiate a first shared key with the electrical devices through the key negotiation requests.

[0258] Optionally, the server 3000 is specifically configured to generate a first configuration information identifier based on the first shared key and device information in response to the second prompt information.

[0259] In this embodiment, after the server establishes a third connection with the electrical device, it configures the electrical device as a device with standard protocol connection capabilities based on the device information reported by the electrical device. The server receives a second prompt from the electrical device and generates a first configuration information identifier. Simultaneously, it converts the second prompt into a first prompt and sends it to the first terminal, causing the first terminal to send a configuration information query request to the server. Upon receiving the configuration information query request, the server sends the first configuration information identifier of the electrical device to the first terminal. This eliminates the need to affix QR codes or other configuration information identifiers to the electrical device, thus freeing users from manually entering pairing codes or scanning QR codes with the first terminal, reducing configuration costs and improving configuration efficiency.

[0260] Please refer to Figure 16, which is a schematic diagram of the structure of a computer device provided in an embodiment of this application.

[0261] As exemplarily shown in FIG16, the computer device 1600 includes a processor 1601 and a memory 1602, wherein the processor 1601 is electrically connected to the memory 1602.

[0262] Processor 1601 is the control center of computer device 1600 and may include one or more processing cores. Processor 1601 connects to various parts of the computer device using various interfaces and lines. By running or calling computer programs stored in memory 1602 and calling data stored in memory 1602, it executes various functions of the computer device and processes data, thereby providing overall control of computer device 1600. Optionally, processor 1601 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). Processor 1601 may integrate one or more of the following: CPU, Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user page, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the modem may also not be integrated into processor 1601 and may be implemented separately through a communication chip.

[0263] The memory 1602 can be configured to store software programs and modules. The processor 1601 executes various functional applications and data processing by running the computer programs and modules stored in the memory 1602. The memory 1602 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, computer programs required for at least one function, etc.; the data storage area may store data created based on the use of the computer device 1600, etc.

[0264] Furthermore, memory 1602 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, memory 1602 may also include a memory controller to provide processor 1601 with access to memory 1602.

[0265] In this embodiment, the processor 1601 in the computer device 1600 loads the instructions corresponding to the processes of one or more computer programs into the memory 1602 according to the following steps, and the processor 1601 runs the computer programs stored in the memory 1602 to realize various functions, as follows:

[0266] The system receives a configuration information query request sent by the first terminal, which carries the device identifier of the electrical device. The device identifier is the identifier obtained when the first terminal establishes a first connection with the electrical device. The first connection is a communication connection established in advance between the first terminal and the electrical device based on a preset protocol. The configuration information query request is a query request sent by the first terminal to the server when it establishes a first connection with the electrical device.

[0267] Based on the configuration information query request, the first configuration information identifier of the electrical device is sent to the first terminal, so that the first terminal can obtain the configuration information of the electrical device from the first configuration information identifier, and establish a second connection with the electrical device based on the configuration information. The second connection is a communication connection established between the first terminal and the electrical device based on a standard protocol.

[0268] Optionally, before executing the configuration information query request carrying the device identifier of the electrical device sent by the first terminal, the processor 1601 also executes:

[0269] The system receives a registration request from the first terminal, establishes a third connection with the electrical device based on the registration request, and receives device information reported by the electrical device through the third connection. The device information includes the device identifier.

[0270] Configure electrical equipment as devices with standard protocol connectivity based on the equipment information;

[0271] Receive a second prompt message sent by the electrical device, the second prompt message being a prompt message indicating that the electrical device has been configured as a device with standard protocol connection function;

[0272] In response to the second prompt message, a first configuration information identifier is generated based on the device information;

[0273] A first prompt message is sent to the first terminal to prompt the first terminal to establish a second connection with the electrical equipment. The second connection is a communication connection based on a standard protocol.

[0274] Optionally, when the processor 1601 configures the electrical device as a device with standard protocol connectivity based on the device information, it specifically performs the following:

[0275] Obtain the first version of the electrical equipment from the equipment information;

[0276] If the first version indicates that the electrical device does not support the standard protocol, then send an equipment update file to the electrical device to update the first version of the electrical device to the second version, and the second version of the electrical device supports the standard protocol;

[0277] Receive a certificate signing request sent by an electrical device, and generate a standard protocol certificate based on the certificate signing request. The certificate signing request is generated when the first device discovery function of the electrical device is in the function-disabled state.

[0278] Send the standard protocol certificate to the electrical device to receive a second prompt message from the electrical device. The second prompt message indicates that the electrical device has been configured as a device with standard protocol connectivity.

[0279] Optionally, when the processor 1601 executes the certificate signing request sent by the receiving electrical device and generates a standard protocol certificate based on the certificate signing request, it specifically performs the following:

[0280] Receive a certificate signing request sent by an electrical appliance, and extract the first public key of the first key pair generated by the electrical appliance from the certificate signing request;

[0281] Generate a standard protocol certificate based on the first public key and device information;

[0282] Obtain the second key pair and use the second private key in the second key pair to sign the standard protocol certificate.

[0283] Optionally, before executing the action of sending a standard protocol certificate to the electrical device to receive a second prompt message returned by the electrical device, the processor 1601 also executes:

[0284] Receive a key negotiation request sent by an electrical appliance, and negotiate a first shared key with the electrical appliance through the key negotiation request.

[0285] Optionally, when the processor 1601 generates a first configuration information identifier based on the device information in response to the second prompt information, it specifically performs the following:

[0286] In response to the second prompt message, a first configuration information identifier is generated based on the first shared key and device information.

[0287] In this embodiment, after the server establishes a third connection with the electrical device, it configures the electrical device as a device with standard protocol connection capabilities based on the device information reported by the electrical device. The server receives a second prompt from the electrical device and generates a first configuration information identifier. Simultaneously, it converts the second prompt into a first prompt and sends it to the first terminal, causing the first terminal to send a configuration information query request to the server. Upon receiving the configuration information query request, the server sends the first configuration information identifier of the electrical device to the first terminal. This eliminates the need to affix QR codes or other configuration information identifiers to the electrical device, thus freeing users from manually entering pairing codes or scanning QR codes with the first terminal, reducing configuration costs and improving configuration efficiency.

[0288] It should be understood that the apparatus provided in this application embodiment is configured to execute the above-described standard protocol configuration method, and therefore can achieve the same effect as the above-described implementation method.

[0289] When using integrated units, the device may include a processing module and a storage module. Specifically, when the device is to be configured as a computer device, the processing module may be configured to control and manage the operations of the computer device. The storage module may be configured to support the computer device in executing relevant program code, etc.

[0290] The processing module may be a processor or a controller, which can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor may also be a combination of functions that implement computing capabilities, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc., and the storage module may be a memory.

[0291] In addition, the device provided in this application embodiment may specifically be a chip, component or module. The chip may include a connected processor and a memory. The memory is configured to store instructions. When the processor calls and executes the instructions, the chip can execute a standard protocol configuration method provided in the above embodiment.

[0292] This application also provides a computer-readable storage medium storing computer program code. When the computer program code is run on a computer, it causes the computer to execute the above-described related method steps to implement a standard protocol configuration method provided in the above embodiments.

[0293] This embodiment also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned related steps to implement a standard protocol configuration method provided in the above embodiment.

[0294] In this embodiment, the device, computer-readable storage medium, computer program product, or chip is configured to execute the corresponding method provided above. Therefore, the technical effects it can achieve can be referred to the technical effects in the corresponding method provided above, and will not be repeated here.

[0295] Through the above description of the embodiments, those skilled in the art will understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0296] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0297] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A standard protocol configuration method, wherein, The method is applied to a first terminal, and the method includes: Send a configuration information query request carrying the device identifier of the electrical device to the server. The device identifier is the identifier obtained when the first terminal establishes a first connection with the electrical device. The first connection is a communication connection established in advance based on a preset protocol. The configuration information query request is set to the server obtain the first configuration information identifier of the electrical device under the standard protocol based on the device identifier. Obtain the first configuration information identifier of the electrical device returned by the server, and obtain the configuration information of the electrical device based on the first configuration information identifier; A second connection is established with the electrical device based on the configuration information. The second connection is a communication connection established based on the standard protocol.

2. The method according to claim 1, wherein, Before sending the configuration information query request carrying the device identifier of the electrical device to the server, the method further includes: Establish a first connection with electrical equipment based on a preset protocol; Based on the first connection, obtain the device identifier reported by the electrical equipment; Based on the device identifier, a registration request is sent to the server. The registration request is configured to establish a third connection between the electrical appliance and the server, so that the electrical appliance can report device information to the server based on the third connection. The device information includes the device identifier.

3. The method according to claim 1 or 2, wherein, Before sending the configuration information query request carrying the device identifier of the electrical device to the server, the method further includes: The system receives a first prompt message sent by the server, which is a prompt message sent by the server when configuring the electrical device as a device with standard protocol connection function.

4. The method according to claim 3, wherein, After obtaining the first configuration information identifier of the electrical device returned by the server, the method further includes: In response to a connection command initiated in response to the first prompt information, the functional status of the first device discovery function of the electrical device is detected based on the preset protocol; If the function status is "function not enabled", a first enable command is sent to the electrical device to enable the first device discovery function.

5. The method according to claim 4, wherein, The establishment of a second connection with the electrical device based on the configuration information includes: A wireless communication connection is established with the electrical device based on the first device discovery function; Based on the first shared key in the configuration information, the standard protocol certificate sent by the electrical device is received encrypted through the wireless communication connection, and the standard protocol certificate is verified. If the verification passes, the network parameters are obtained from the configuration information; The network parameters are encrypted using the first shared key, and the encrypted network parameters are sent to the electrical device. A second connection based on a standard protocol is established with the electrical device based on the network parameters.

6. The method according to claim 5, wherein, After establishing a second connection based on a standard protocol with the electrical device based on the network parameters, the method further includes: Based on the second connection, a second power-on command is sent to the electrical device to enable the second device discovery function of the electrical device. The second shared key is negotiated with the electrical device periodically based on a preset time interval; A second configuration information identifier is generated based on the second shared key and the configuration information; The second configuration information identifier is sent to the second terminal so that the second terminal establishes a fourth connection with the electrical device based on the second configuration information identifier and the second device discovery function. The fourth connection is a communication connection established based on the standard protocol.

7. The method according to claim 6, wherein, After generating the second configuration information identifier based on the second shared key and the device identifier, the method further includes: Based on the second configuration information identifier and the second device discovery function, a fifth connection is established with the electrical device, which is a communication connection established based on the standard protocol.

8. The method according to claim 4, wherein, After obtaining the first configuration information identifier of the electrical device returned by the server, the method further includes: The first configuration information identifier is sent to the third terminal so that the third terminal establishes a sixth connection with the electrical device based on the first configuration information identifier and the first device discovery function. The sixth connection is a communication connection established based on the standard protocol.

9. A standard protocol configuration method, wherein, The method is applied to electrical equipment, and the method includes: A second connection is established with the first terminal based on the configuration information; Wherein, the configuration information is obtained by the first terminal from the first configuration information identifier, the first configuration information identifier is the configuration information identifier corresponding to the electrical device returned by the server when the first terminal sends a configuration information query request carrying the device identifier of the electrical device to the server, the device identifier is the identifier obtained by the first terminal when establishing a first connection with the electrical device, and the first connection is a communication connection established in advance based on a preset protocol.

10. The method according to claim 9, wherein, Before establishing a second connection with the first terminal based on configuration information, the process also includes: Establish a first connection with the first terminal based on a preset protocol; Based on the first connection, the device identifier is reported to the first terminal so that the first terminal can send a registration request to the server based on the device identifier; Based on the registration request, a third connection is established with the server, and device information is reported to the server through the third connection, so that the server can configure the electrical device as a device with standard protocol connection function based on the device information. The device information includes the device identifier. Send a second prompt message to the server, the second prompt message being configured to cause the server to send a first prompt message to the first terminal that the electrical device has been configured as a device with standard protocol connection function; The device receives a first activation command sent by the first terminal to activate the first device discovery function. The first activation command is sent by the first terminal when it detects that the first device discovery function of the electrical device is in an unactivated state based on the preset protocol.

11. The method according to claim 10, wherein, After establishing a third connection with the server based on the registration request and reporting device information to the server through the third connection, the process further includes: Receive device update files sent by the server; Based on the device update file, the first version of the electrical device is updated to the second version, and the second version of the electrical device supports the standard protocol; Apply for a standard protocol certificate from the server.

12. The method according to claim 11, wherein, The step of requesting a standard protocol certificate from the server includes: Generate the first key pair; A certificate signing request is created using the device identifier and the first public key from the first key pair; The certificate signing request is signed using the first private key in the first key pair, and the signed certificate signing request is sent to the server. Receive and save the standard protocol certificate returned by the server.

13. The method according to claim 11 or 12, wherein, After updating the electrical device from version one to version two based on the device update file, the process further includes: A key negotiation request is sent to the server to negotiate a first shared key with the server, so that the server can generate a first configuration information identifier based on the device information and the first shared key.

14. The method according to claim 13, wherein, The establishment of a second connection with the first terminal based on configuration information includes: A wireless communication connection is established with the first terminal based on the first device discovery function; The standard protocol certificate is encrypted using the first shared key; Based on the wireless communication connection, an encrypted standard protocol certificate is sent to the first terminal so that the first terminal can verify the standard protocol certificate; If the verification is successful, the network parameters in the configuration information sent by the first terminal are received. The network parameters are parameters encrypted by the first terminal using the first shared key in the configuration information. Based on the network parameters, a second connection is established with the first terminal based on the standard protocol.

15. The method according to claim 14, wherein, After establishing a second connection based on the standard protocol with the first terminal based on the network parameters, the method further includes: If a second enable command sent by the first terminal is received based on the second connection, then in response to the second enable command, the second device discovery function is enabled; The system periodically negotiates a second shared key with the first terminal based on a preset time interval, so that the first terminal generates a second configuration information identifier based on the second shared key and the configuration information.

16. A standard protocol configuration method, wherein, The method is applied to a server, and the method includes: The system receives a configuration information query request sent by a first terminal, which carries a device identifier of an electrical device. The device identifier is an identifier obtained when the first terminal establishes a first connection with the electrical device. The first connection is a communication connection established in advance between the first terminal and the electrical device based on a preset protocol. The configuration information query request is a query request sent by the first terminal to the server when it establishes a first connection with the electrical device. Based on the configuration information query request, the first configuration information identifier of the electrical device is sent to the first terminal, so that the first terminal can obtain the configuration information of the electrical device from the first configuration information identifier, and establish a second connection with the electrical device based on the configuration information. The second connection is a communication connection established between the first terminal and the electrical device based on the standard protocol.

17. The method according to claim 16, wherein, Before receiving the configuration information query request carrying the device identifier of the electrical equipment sent by the first terminal, the method further includes: The system receives a registration request from a first terminal, establishes a third connection with the electrical device based on the registration request, and receives device information reported by the electrical device through the third connection. The device information includes a device identifier. Configure the electrical device as a device with standard protocol connectivity based on the device information; Receive a second prompt message sent by the electrical device, wherein the second prompt message is a prompt message indicating that the electrical device has been configured as a device with standard protocol connection function; In response to the second prompt message, a first configuration information identifier is generated based on the device information; A first prompt message is sent to the first terminal to prompt the first terminal to establish a second connection with the electrical device, the second connection being a communication connection based on the standard protocol.

18. The method according to claim 17, wherein, The step of configuring the electrical device as a device with standard protocol connection function based on the device information includes: Obtain the first version of the electrical device from the device information; If the first version indicates that the electrical device does not support the standard protocol, then a device update file is sent to the electrical device to update the first version of the electrical device to the second version, and the second version of the electrical device supports the standard protocol; Receive a certificate signing request sent by the electrical device, and generate a standard protocol certificate based on the certificate signing request. The certificate signing request is a request generated when the first device discovery function of the electrical device is in the function-disabled state. The standard protocol certificate is sent to the electrical device to receive a second prompt message returned by the electrical device. The second prompt message indicates that the electrical device has been configured as a device with the connection function of the standard protocol.

19. The method according to claim 18, wherein, The step of receiving the certificate signing request sent by the electrical device and generating a standard protocol certificate based on the certificate signing request includes: Receive a certificate signing request sent by the electrical device, and extract the first public key of the first key pair generated by the electrical device from the certificate signing request; A standard protocol certificate is generated based on the first public key and the device information; Obtain a second key pair and use the second private key in the second key pair to sign the standard protocol certificate.

20. The method according to claim 18 or 19, wherein, Before sending the standard protocol certificate to the electrical device to receive the second prompt information returned by the electrical device, the method further includes: Receive a key negotiation request sent by the electrical device, and negotiate a first shared key with the electrical device through the key negotiation request.

21. The method according to claim 20, wherein, In response to the second prompt information, generating a first configuration information identifier based on the device information includes: In response to the second prompt message, a first configuration information identifier is generated based on the first shared key and the device information.

22. A first terminal, wherein, The first terminal includes: The query request sending unit is configured to send a configuration information query request carrying a device identifier of an electrical device to the server. The device identifier is an identifier obtained when the first terminal establishes a first connection with the electrical device. The first connection is a communication connection established in advance based on a preset protocol. The configuration information query request is configured to allow the server to obtain the first configuration information identifier of the electrical device under a standard protocol based on the device identifier. The configuration information acquisition unit is configured to acquire the first configuration information identifier of the electrical device returned by the server, and acquire the configuration information of the electrical device based on the first configuration information identifier; The first connection establishment unit is configured to establish a second connection with the electrical device based on the configuration information, wherein the second connection is a communication connection established based on the standard protocol.

23. An electrical appliance, wherein, The electrical equipment includes: The second connection establishment unit is configured to establish a second connection with the first terminal based on configuration information; Wherein, the configuration information is obtained by the first terminal from the first configuration information identifier, the first configuration information identifier is the configuration information identifier corresponding to the electrical device returned by the server when the first terminal sends a configuration information query request carrying the device identifier of the electrical device to the server, the device identifier is the identifier obtained by the first terminal when establishing a first connection with the electrical device, and the first connection is a communication connection established in advance based on a preset protocol.

24. A server, wherein, The server includes: The query request receiving unit is configured to receive a configuration information query request sent by a first terminal, which carries a device identifier of an electrical device. The device identifier is an identifier obtained when the first terminal establishes a first connection with the electrical device. The first connection is a communication connection established in advance between the first terminal and the electrical device based on a preset protocol. The configuration information query request is a query request sent by the first terminal to the server when establishing the first connection with the electrical device. The configuration information identifier sending unit is configured to send the first configuration information identifier of the electrical device to the first terminal based on the configuration information query request, so that the first terminal can obtain the configuration information of the electrical device from the first configuration information identifier and establish a second connection with the electrical device based on the configuration information. The second connection is a communication connection established between the first terminal and the electrical device based on the standard protocol.

25. A standard protocol configuration system, wherein, The system includes a first terminal as claimed in any one of claims 1 to 8, an electrical device as claimed in any one of claims 9 to 15, and a server as claimed in any one of claims 16 to 21.

26. A computer device, wherein, The computer device includes: The memory is configured to store executable program code; A processor configured to call and run the executable program code from the memory, such that the computer device performs the method as described in any one of claims 1 to 21.

27. A computer program product, wherein, The computing program product includes: Computer program code, when executed, implements the method as described in any one of claims 1 to 21.

28. A computer-readable storage medium, wherein, The computer-readable storage medium stores computer program code that, when executed, implements the method as described in any one of claims 1 to 21.