Network distribution method and device of intelligent equipment, storage medium and network distribution system

By obtaining and matching the rotational device identifiers and device information of smart devices, privacy leakage and security issues in the existing smart device distribution network methods are solved, and a more efficient and secure distribution process is achieved.

CN120151002APending Publication Date: 2025-06-13HANGZHOU TUYA INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510256270.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-05
Publication Date
2025-06-13

AI Technical Summary

Technical Problem

The existing smart devices' distribution network method can easily lead to the privacy of smart devices, and the security during the distribution network cannot be guaranteed, the probability of repeated equipment matching is high, and the matching efficiency is low.

Method used

By obtaining the first rotation device identifier and device information of the intelligent device to be distributed, a device list matching the device information is determined, the second rotation device identifier is calculated, and when the two match, the distribution network information is extracted from the device information and sent to the intelligent gateway device to complete the distribution network.

Benefits of technology

It improves the security and efficiency of the distribution network of smart devices to be distributed, reduces the risk of privacy leakage, reduces the probability of repeated equipment matching, and improves matching efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120151002A_ABST
    Figure CN120151002A_ABST
Patent Text Reader

Abstract

The invention provides a network distribution method and device of intelligent equipment, a storage medium and a network distribution system, and relates to the technical field of intelligent equipment. The network distribution method of the intelligent equipment provided by the invention is applied to a server. The method comprises the following steps: acquiring a first alternate equipment identifier of the intelligent equipment to be subjected to network distribution; based on the acquired equipment information of the intelligent equipment to be subjected to network distribution, acquiring an equipment list matched with the equipment information; determining a second alternate device identifier based on the device list; and under the condition that the first equipment rotation identifier and the second equipment rotation identifier are matched with each other, network distribution information is extracted from the equipment information, and the network distribution information is issued to the intelligent gateway equipment, so that the intelligent gateway equipment completes network distribution of the intelligent equipment to be subjected to network distribution. The network distribution efficiency can be improved on the premise of ensuring the network distribution safety of the intelligent equipment to be subjected to network distribution.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of intelligent devices, and in particular, to a network configuration method, device, storage medium, and network configuration system for intelligent devices. Background Art

[0002] With the development of Internet of Things technology, more and more intelligent devices are applied in homes, workplaces, and public places; intelligent devices usually need a specific network configuration method to access the network so that the intelligent devices have the ability to provide intelligent services. The existing network configuration methods for intelligent devices mainly rely on the unique identifier of the intelligent device to request the network configuration key through the unique identifier of the intelligent device.

[0003] However, the inventors of the present application have found that each intelligent device has its corresponding unique identifier, that is, the unique identifier is the identifier uniquely recognized by the intelligent device. Subsequently, using the existing network configuration method for intelligent devices to complete the network configuration of the intelligent device, it is easy to occur the situation of privacy leakage of the intelligent device due to using the unique identifier for network configuration, that is, the security during the network configuration process of the intelligent device cannot be guaranteed. At the same time, using the existing network configuration method for intelligent devices, the probability of device matching is high and the matching efficiency is low. Summary of the Invention

[0004] In order to improve the network configuration efficiency while ensuring the network configuration security of the intelligent device to be network-configured; the present application provides a network configuration method, device, storage medium, and network configuration system for intelligent devices.

[0005] The present application provides a network configuration method for intelligent devices, adopting the following technical solutions:

[0006] A network configuration method for intelligent devices includes:

[0007] Obtain the first rotation device identifier and device information of the intelligent device to be network-configured;

[0008] Based on the device information, determine a device list that matches the device information;

[0009] Based on the device list, determine the second rotation device identifier;

[0010] In the case where the first rotation device identifier and the second rotation device identifier match each other, extract the network configuration information from the device information and send the network configuration information to the intelligent gateway device so that the intelligent gateway device completes the network configuration of the intelligent device to be network-configured.

[0011] According to some embodiments, obtaining the first rotation device identifier of the intelligent device to be networked includes: when the intelligent gateway device extracts the rotation counter and the first rotation device identifier from the intelligent broadcast information of the intelligent device to be networked based on the polled intelligent broadcast information, and the intelligent gateway device generates a network configuration request information, obtaining the first rotation device identifier of the intelligent device to be networked based on the obtained network configuration request information.

[0012] According to some embodiments, the above device information includes a device serial number, a device supplier identifier, a device model identifier, and an identification discriminator; determining a device list that matches the device information based on the device information includes: screening at least one alternative intelligent device from multiple intelligent devices based on the obtained user account, device serial number, device supplier identifier, and device model identifier; screening the intelligent device to be networked from at least one alternative intelligent device based on the identification discriminator to obtain a device list.

[0013] According to some embodiments, determining the second rotation device identifier based on the device list includes: determining the unique identifier, rotation counter, and preset algorithm information of the intelligent device to be networked based on the device list; determining the second rotation device identifier based on the unique identifier, rotation counter, and preset algorithm information.

[0014] According to some embodiments, determining the second rotation device identifier based on the unique identifier, rotation counter, and preset algorithm information includes: splicing the values generated by the unique identifier and the rotation counter based on the preset algorithm information to obtain first numerical information; performing a hash calculation on the first numerical information to obtain a first hash value; extracting a second hash value from the first hash value based on the retrieved preset byte extraction rule; splicing the second hash value with the value generated by the rotation counter to obtain the second rotation device identifier.

[0015] According to some embodiments, obtaining the device information of the intelligent device to be networked includes: when the intelligent warehousing device scans the two-dimensional code of the intelligent device to be networked to obtain initial device information, and the intelligent warehousing device completes the encryption process for the device serial number, device supplier identifier, device model identifier, identification discriminator, password, first rotation device identifier, and preset algorithm information included in the initial device information, obtaining the encrypted initial device information from the intelligent warehousing device and decrypting the encrypted initial device information to obtain the device information.

[0016] This application provides a network configuration device for intelligent devices, adopting the following technical solutions;

[0017] A network configuration device for intelligent devices includes: a rotation device identifier acquisition unit, a device list acquisition unit, a rotation device identifier determination unit, and a network configuration information distribution unit, where

[0018] A rotation device identifier acquisition unit, configured to acquire a first rotation device identifier of an intelligent device to be networked.

[0019] A device list acquisition unit, configured to determine a device list that matches the device information based on the device information.

[0020] A rotation device identifier determination unit, configured to determine a second rotation device identifier based on the device list.

[0021] A network configuration information sending unit, configured to extract network configuration information from the device information and send the network configuration information to an intelligent gateway device when the first rotation device identifier and the second device rotation identifier match each other, so that the intelligent gateway device completes the network configuration of the intelligent device to be networked.

[0022] According to some embodiments, the above-mentioned rotation device identifier acquisition unit is specifically configured to: when the intelligent gateway device is based on the intelligent broadcast information of the intelligent device to be networked obtained by polling, extracts a rotation counter and a first rotation device identifier from the intelligent broadcast information, and the intelligent gateway device generates a network configuration request information, acquire the first rotation device identifier of the intelligent device to be networked based on the acquired network configuration request information.

[0023] According to some embodiments, the above-mentioned device information includes a device serial number, a device supplier identifier, a device model identifier, and an identifier discriminator; the above-mentioned device list acquisition unit is specifically configured to: based on the acquired user account, device serial number, device supplier identifier, and device model identifier, screen at least one alternative intelligent device from multiple intelligent devices; based on the identifier discriminator, screen the intelligent device to be networked from at least one alternative intelligent device to obtain a device list.

[0024] According to some embodiments, the above-mentioned rotation device identifier determination unit is specifically configured to: based on the device list, determine a unique identifier, a rotation counter, and preset algorithm information of the intelligent device to be networked; based on the unique identifier, the rotation counter, and the preset algorithm information, determine the second rotation device identifier.

[0025] According to some embodiments, the above-mentioned rotation device identifier determination unit is further specifically configured to: based on the preset algorithm information, splice the values generated by the unique identifier and the rotation counter to obtain first numerical information; perform a hash calculation on the first numerical information to obtain a first hash value; based on the retrieved preset byte extraction rule, extract a second hash value from the first hash value; splice the second hash value with the value generated by the rotation counter to obtain the second rotation device identifier.

[0026] According to some embodiments, the above-mentioned device list acquisition unit is further specifically configured to: when the intelligent warehousing device scans the two-dimensional code of the intelligent device to be networked to obtain initial device information, and the intelligent warehousing device encrypts the device serial number, device supplier identifier, device model identifier, identifier discriminator, password, first rotation device identifier, and preset algorithm information included in the initial device information, obtain the encrypted initial device information from the intelligent warehousing device, and decrypt the encrypted initial device information to obtain the device information.

[0027] This application provides an electronic device, adopting the following technical solution:

[0028] An electronic device, the electronic device includes:

[0029] A processor;

[0030] A memory storing a computer program, when the computer program is executed by the processor, the processor is caused to execute the above-mentioned network configuration method for intelligent devices.

[0031] This application provides a computer-readable storage medium, adopting the following technical solution:

[0032] A computer-readable storage medium, on which a computer program is stored, when the computer program is executed in a computer, the computer is caused to execute the network configuration method for intelligent devices.

[0033] This application provides a network configuration system for intelligent devices, adopting the following technical solution:

[0034] A network configuration system for intelligent devices, used to implement the above-mentioned network configuration method for intelligent devices, the network configuration system includes: an intelligent gateway device, connected to the intelligent device to be networked, for polling the intelligent broadcast information of the intelligent device to be networked, and when the intelligent broadcast information includes a rotation counter and a first rotation device identifier, generating a network configuration request information, and based on the received network configuration information, performing network configuration on the intelligent device to be networked;

[0035] A server, connected to the intelligent gateway device, for obtaining the first rotation device identifier and device information, and based on the network configuration request information, the unique identifier of the intelligent device to be networked, and the rotation counter, determining the second rotation device identifier, and when the first rotation device identifier and the second rotation device identifier match each other, sending the network configuration information extracted from the device information to the intelligent gateway device.

[0036] According to some embodiments, the above-mentioned network configuration system further includes: an intelligent warehousing device, connected to the server, for scanning the two-dimensional code of the intelligent device to be networked to obtain initial device information, and performing encryption processing on the initial device information, and sending the encrypted initial device information to the server.

[0037] The present application includes the following beneficial technical effects: By using device information, a list of devices that match the device information is filtered out from multiple smart devices bound to the user account. Based on the device list, a random second-round rotation device identifier is calculated. Subsequently, the second-round rotation device identifier is matched with the first-round rotation device identifier generated by the smart device to be networked. When the two match, the network configuration information is extracted from the device information and sent to the smart gateway device. Thus, a random rotation device identifier is generated through the device list and participates in device matching, improving the privacy protection of the smart device to be networked, reducing the risk of data leakage of the smart device to be networked caused by long-term tracking, and improving the network configuration security and efficiency of the smart device to be networked. Description of the Drawings

[0038] Figure 1 is a block diagram of the network configuration system of the smart device according to an embodiment of the present application;

[0039] Figure 2 is one of the flow block diagrams of the network configuration method of the smart device according to an embodiment of the present application;

[0040] Figure 3 is the second flow block diagram of the network configuration method of the smart device according to an embodiment of the present application

[0041] Figure 4 is a block diagram of the network configuration device of the smart device according to an embodiment of the present application;

[0042] Figure 5 is a schematic diagram of an electronic device according to an embodiment of the present application.

[0043] Description of the reference numerals: 40: Network configuration device of the smart device; 401: Rotation device identifier acquisition unit; 402: Device list acquisition unit; 403: Rotation device identifier determination unit; 404: Network configuration information sending unit; 50: Electronic device; 501: Processor; 502: Bus; 503: Memory; 504: Transceiver. Detailed Embodiments

[0044] The following is a further detailed description of the present application in conjunction with the attached Figures 1 - 5 drawings.

[0045] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the following will clearly and completely describe the technical solutions in the embodiments of this application with reference to the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are some, but not all, of the embodiments of this application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in this application without creative efforts shall fall within the scope of protection of this application.

[0046] An embodiment of this application provides a network configuration system for intelligent devices.

[0047] Referring to Figure 1 , a network configuration system for intelligent devices includes: an intelligent device to be network-configured, an intelligent warehousing device, an intelligent gateway device, and a server. Among them,

[0048] The intelligent warehousing device is connected to the server and is used to scan the QR code of the intelligent device to be network-configured to obtain initial device information, encrypt the initial device information, and send the encrypted initial device information to the server;

[0049] The intelligent gateway device is connected to the intelligent device to be network-configured and is used to poll the intelligent broadcast information of the intelligent device to be network-configured. When the intelligent broadcast information contains a rotation counter and a first rotation device identifier, it generates a network configuration request information, and based on the received network configuration information, network-configures the intelligent device to be network-configured. Among them, the intelligent gateway device is a device with intelligent network configuration capabilities;

[0050] The server is connected to the intelligent gateway device and is used to obtain the first rotation device identifier and device information, and based on the network configuration request information, the unique identifier of the intelligent device to be network-configured, and the rotation counter, determine the second rotation device identifier. When the first rotation device identifier and the second rotation device identifier match each other, it sends the network configuration information extracted from the device information to the intelligent gateway device. Among them, the server can be a cloud server providing cloud computing, an independent physical server, or a server cluster or distributed device composed of multiple physical servers.

[0051] In some embodiments, a merchant scans the QR code on the intelligent device to be network-configured through the intelligent warehousing device to obtain initial device information, encrypts the initial device information using an asymmetric algorithm, uploads the encrypted initial device information to the connected server, and binds the intelligent device to be network-configured with the user account ID. Among them, the binding method between the user account ID and the intelligent device to be network-configured is diverse. For example, after uploading the encrypted initial device information to the server, the server directly inserts the corresponding device code into the user information data table corresponding to the user account ID for binding association.

[0052] When a smart device to be networked needs to be networked, the smart device to be networked generates smart broadcast information, and the smart gateway device connected to the smart device to be networked polls and detects the smart broadcast information of the smart device to be networked in the network; when the smart gateway device detects the smart broadcast information, the smart gateway device extracts the rotation counter and the first rotation device identifier included in the smart broadcast information, generates a network configuration request information, and sends the network configuration request information to the server connected to the smart gateway device.

[0053] Based on the network configuration request information, the server obtains the first rotation device identifier in the smart broadcast information of the smart device to be networked. At the same time, the server decrypts the obtained initial device information of the smart device to be networked to obtain the device information of the smart device to be networked. Subsequently, the server obtains the unique identifier and the rotation counter of the smart device to be networked based on the device information, and determines the second rotation device identifier; the server matches the first rotation device identifier and the second rotation device identifier, and when the first rotation device identifier and the second rotation device identifier match each other, the server extracts the network configuration information from the device information and sends the network configuration information to the smart gateway device connected thereto, so that the smart gateway device automatically completes the network configuration of the smart device to be networked.

[0054] An embodiment of the present application provides a method for networking a smart device, which can be executed by an electronic device. Among them, the electronic device can be a server or a central computing policy server. Among them, the server can be an independent physical server, a server cluster or a distributed device composed of multiple physical servers, or a cloud server providing cloud computing services. An embodiment of the present application takes the cloud server as the electronic device for example.

[0055] Refer to Figure 2 A method for networking a smart device includes: step S201, step S202, step S203, and step S204, where

[0056] S201, obtain the first rotation device identifier and the device information of the smart device to be networked.

[0057] In some embodiments, the first rotating device identifier is an identifier generated by the smart device to be networked based on an internally set rotating counter and preset algorithm information. The device information is the basic information of the smart device to be networked. Among them, the device information includes the device serial number, Vendor ID (device supplier identifier), Product ID (device model identifier), Discriminator (identifier discriminator), Passcode (password), Rotating Device ID (the first rotating device identifier), and Rotating ID KDF algorithm version (preset algorithm information).

[0058] The smart gateway device polls and detects the smart broadcast information of the smart device to be networked in the network. When the smart gateway device detects the smart broadcast information, it indicates that the smart device to be networked needs to be networked. Immediately, the smart gateway device generates a network configuration request message and sends the network configuration request message to the cloud server. The cloud server obtains the first rotating device identifier generated by the smart device to be networked from the smart device to be networked, that is, obtains the first rotating device identifier of the smart device to be networked, including: when the smart gateway device is based on the smart broadcast information of the smart device to be networked polled and extracts the rotating counter and the first rotating device identifier from the smart broadcast information, and the smart gateway device generates a network configuration request message, based on the obtained network configuration request message, obtains the first rotating device identifier of the smart device to be networked.

[0059] In addition, the merchant scans the QR code on the smart device to be networked through the smart warehousing device to obtain the initial device information, encrypts the initial device information using an asymmetric algorithm, uploads the encrypted initial device information to the connected cloud server, and binds and associates the device information with the user account ID; the cloud server decrypts the encrypted initial device information to obtain the device information of the smart device to be networked.

[0060] In some embodiments, when the smart device to be networked is a Bluetooth network configuration device, the smart gateway device regularly detects the smart broadcast information containing the smart Bluetooth broadcast packet in the network. After the smart gateway device detects the extended capability field, it connects to the smart device to be networked through Bluetooth and obtains the first rotating device identifier from the smart device to be networked. When the smart device to be networked is a local area network network configuration device, the smart gateway device defines and detects the smart broadcast information containing the MDNS broadcast packet in the local area network and obtains the first rotating device identifier of the smart device to be networked.

[0061] S202, based on the device information, determine a device list that matches the device information;

[0062] S203, based on the device list, determine the second rotating device identifier.

[0063] In some embodiments, there are multiple intelligent devices associated with a user account ID. Therefore, during the process of network configuration for an intelligent device to be network-configured, it is necessary to screen out the intelligent device to be network-configured from multiple intelligent devices. Among them, the cloud server can use the obtained device information as the screening information, that is, match the device information of the intelligent device to be network-configured with the device information of multiple intelligent devices associated with the user account ID. When the cloud server finishes the matching, it obtains a device list that matches the device information of the intelligent device to be network-configured, and calculates a second rotation device identifier based on the relevant information included in the device list.

[0064] S204. In the case where the first rotation device identifier and the second device rotation identifier match each other, extract the network configuration information from the device information, and send the network configuration information to the intelligent gateway device, so that the intelligent gateway device completes the network configuration of the intelligent device to be network-configured.

[0065] In some embodiments, the cloud server compares the calculated second rotation device identifier with the first rotation device identifier of the intelligent device to be network-configured. In the case where the first rotation device identifier and the second rotation device identifier match, it indicates that the intelligent device to be network-configured matches the device list determined by the cloud server, and the intelligent device to be network-configured meets the requirements for network configuration. Immediately, the cloud server extracts the network configuration information from the device information and sends the network configuration information to the intelligent gateway device. When the intelligent gateway device obtains the network configuration information, it starts to automatically network-configure the intelligent device to be network-configured; that is, by using the rotation device identifier in the intelligent specification instead of the traditional unique identifier to complete the network configuration of the intelligent device to be network-configured, thereby improving the privacy protection of the intelligent device to be network-configured, reducing the risk of data leakage of the intelligent device to be network-configured caused by long-term tracking, improving the network configuration security of the intelligent device to be network-configured, and quickly filtering out the devices valid for the current user account ID by binding the user account ID, reducing the probability of duplicate device matching, and improving the matching efficiency.

[0066] In some embodiments, in step S202, obtaining the device information of the intelligent device to be network-configured includes: when the intelligent warehousing device scans the two-dimensional code of the intelligent device to be network-configured to obtain the initial device information, and the intelligent warehousing device completes the encryption process of the device serial number, device supplier identifier, device model identifier, identification discriminator, password, first rotation device identifier, and preset algorithm information included in the initial device information, obtain the encrypted initial device information from the intelligent warehousing device, and decrypt the encrypted initial device information to obtain the device information.

[0067] In some embodiments, the user purchases the intelligent device to be networked through a store or an e-commerce platform. The merchant uses the intelligent warehousing device to scan the QR code on the intelligent device to be networked, and obtains the initial device information including the device serial number, the device supplier identifier, the device model identifier, the identifier discriminator, the password, the first rotation device identifier, and the preset algorithm information. Subsequently, the intelligent warehousing device encrypts the initial device information using an asymmetric algorithm and uploads the encrypted initial device information to the cloud server. Subsequently, the cloud server decrypts the encrypted initial device information to obtain the device information corresponding to the intelligent device to be networked. The cloud server transmits the device information to the storage device for storage.

[0068] In some embodiments, the device information includes the device serial number, the device supplier identifier, the device model identifier, and the identifier discriminator. Then, in step S302, based on the device information, a device list that matches the device information is determined, including: based on the obtained user account, device serial number, device supplier identifier, and device model identifier, one or more alternative intelligent devices are screened out from multiple intelligent devices; based on the identifier discriminator, the intelligent device to be networked is screened out from the alternative intelligent devices to obtain the device list.

[0069] In some embodiments, the cloud server determines multiple intelligent devices associated and bound with the user account and the corresponding device information based on the user account, and uses these multiple intelligent devices as the screened devices. Using the device serial number, supplier identifier, and device model identifier as the screening information, at least one alternative intelligent device is screened out from multiple intelligent devices. Subsequently, the intelligent device to be networked is screened out from at least one alternative intelligent device using the identifier discriminator. Subsequently, the cloud server retrieves the device list that matches the device information of the intelligent device to be networked.

[0070] In step S203, based on the device list, the second rotation device identifier is determined, including: based on the device list, the unique identifier, rotation counter, and preset algorithm information of the intelligent device to be networked are determined; based on the unique identifier, rotation counter, and preset algorithm information, the second rotation device identifier is determined.

[0071] In some embodiments, when the matching is completed, the cloud server obtains the device list that matches the device information. The device list includes the unique identifier, rotation counter, and preset algorithm information of the intelligent device to be networked. The preset algorithm information is a calculation method for calculating the second rotation device identifier that matches the first rotation device identifier through the unique identifier and rotation counter. The rotation counter is a 2-byte integer in little-endian encoding, and the first rotation device identifier and the second rotation device identifier are 16-byte strings.

[0072] The cloud server extracts the unique identifier, rotation counter, and preset algorithm information corresponding to the smart device to be network-configured from the device list. Among them, the preset algorithm information can be the KDF (Key Derivation Function) algorithm. Subsequently, the cloud server calculates the second-round device identifier by calculating the value generated by the rotation counter and the unique identifier based on the preset algorithm information. Each time the smart gateway device detects the smart broadcast information of a smart device to be network-configured, the rotation counter increments by one, and the value of the incremented rotation counter participates in the calculation of the next second-round device identifier.

[0073] In some embodiments, determining the second-round device identifier based on the unique identifier, rotation counter, and preset algorithm information includes: splicing the unique identifier and the value generated by the rotation counter based on the preset algorithm information to obtain the first numerical information; performing a hash calculation on the first numerical information to obtain the first hash value; extracting the second hash value from the first hash value based on the retrieved preset byte extraction rule; and splicing the second hash value and the value generated by the rotation counter to obtain the second-round device identifier.

[0074] In some embodiments, the cloud server splices the unique identifier and the value generated by the rotation counter based on the preset algorithm information to obtain the first numerical information. Subsequently, the cloud server performs a hash calculation on the first numerical information using the SHA-256 algorithm to obtain the first hash value representing 256 bits. Subsequently, the cloud server retrieves the preset byte extraction rule and extracts the data located in the last 16 bytes from the first hash value, and uses this data as the second hash value. Immediately afterwards, the cloud server splices the second hash value and the value generated by the rotation counter to obtain the second-round device identifier. For example, it can be implemented using pseudocode as follows: RDI = Lifetime_Counter + SuffixBytes(SHA256(Unique_Id + Lifetime_Counter), 16), where RDI is the second-round device identifier, Lifetime_Counter is the rotation counter, SHA256 is the SHA-256 algorithm, Unique_Id is the unique identifier, 16 represents the number of bytes, and SuffixBytes represents extracting the suffix part of a specific length from binary data.

[0075] In some embodiments, referring to Figure 3, Device information entry and binding, that is, the intelligent warehousing device enters the device information of the intelligent device to be networked into the cloud server and binds the device information with the user account ID; detection and request, that is, the intelligent gateway device polls and detects the intelligent broadcast information of the intelligent device to be networked in the network and generates a network configuration request information; matching and extraction, that is, based on the network configuration request information, the cloud server screens out the intelligent device to be networked and its corresponding device list from multiple intelligent devices bound to the user account ID, generates a second rotation device identifier based on the unique identifier, preset calculation information, and rotation counter included in the device list, and matches the second rotation device identifier with the first rotation device identifier corresponding to the intelligent device to be networked, and in the case of their matching, obtains the network configuration information corresponding to the intelligent device to be networked; information distribution and network configuration, that is, the cloud server distributes the network configuration information to the intelligent gateway device, and the intelligent gateway device completes the automatic network configuration of the intelligent device to be networked based on the network configuration information.

[0076] This application provides a network configuration device for intelligent devices, adopting the following technical solutions;

[0077] Refer to Figure 4 , A network configuration device 40 for intelligent devices includes: a rotation device identifier acquisition unit 401, a device list acquisition unit 402, a rotation device identifier determination unit 403, and a network configuration information distribution unit 404, where,

[0078] The rotation device identifier acquisition unit 401 is used to acquire the first rotation device identifier of the intelligent device to be networked;

[0079] The device list acquisition unit 402 is used to determine a device list that matches the device information based on the device information;

[0080] The rotation device identifier determination unit 403 is used to determine a second rotation device identifier based on the device list;

[0081] The network configuration information distribution unit 404 is used to extract the network configuration information from the device information and distribute the network configuration information to the intelligent gateway device in the case where the first rotation device identifier and the second rotation device identifier match each other, so that the intelligent gateway device completes the network configuration of the intelligent device to be networked.

[0082] According to some embodiments, the above rotation device identifier acquisition unit 401 is specifically used for: in the case where the intelligent gateway device extracts the rotation counter and the first rotation device identifier from the intelligent broadcast information of the intelligent device to be networked based on the polled intelligent broadcast information and the intelligent gateway device generates a network configuration request information, acquiring the first rotation device identifier of the intelligent device to be networked based on the acquired network configuration request information.

[0083] According to some embodiments, the above-mentioned device information includes a device serial number, a device supplier identifier, a device model identifier, and an identifier discriminator; the above-mentioned device list acquisition unit 402 is specifically configured to: based on the acquired user account, device serial number, device supplier identifier, and device model identifier, screen out at least one alternative intelligent device from multiple intelligent devices; based on the identifier discriminator, screen out the intelligent device to be networked from at least one alternative intelligent device to obtain a device list.

[0084] According to some embodiments, the above-mentioned rotation device identifier determination unit 403 is specifically configured to: based on the device list, determine the unique identifier, rotation counter, and preset algorithm information of the intelligent device to be networked; based on the unique identifier, rotation counter, and preset algorithm information, determine the second rotation device identifier.

[0085] According to some embodiments, the above-mentioned rotation device identifier determination unit 403 is specifically further configured to: based on the preset algorithm information, splice the values generated by the unique identifier and the rotation counter to obtain first numerical information; perform a hash calculation on the first numerical information to obtain a first hash value; based on the retrieved preset byte extraction rule, extract a second hash value from the first hash value; splice the second hash value with the value generated by the rotation counter to obtain the second rotation device identifier.

[0086] According to some embodiments, the above-mentioned device list acquisition unit 402 is specifically further configured to: when the intelligent warehousing device scans the two-dimensional code of the intelligent device to be networked to obtain initial device information, and the intelligent warehousing device completes the encryption process on the device serial number, device supplier identifier, device model identifier, identifier discriminator, password, first rotation device identifier, and preset algorithm information included in the initial device information, obtain the encrypted initial device information from the intelligent warehousing device and decrypt the encrypted initial device information to obtain the device information.

[0087] In some embodiments, the rotation device identifier acquisition unit 401 may include a logic circuit, or may be implemented by a central processing unit, a digital signal processor, or a field programmable gate array included in an electronic device, etc.; the device list acquisition unit 402 may include a logic circuit, or may be implemented by a central processing unit, a digital signal processor, or a field programmable gate array included in an electronic device, etc.; the rotation device identifier determination unit 403 may include a logic circuit, or may be implemented by a central processing unit, a digital signal processor, or a field programmable gate array included in an electronic device, etc.; the network configuration information sending unit 404 may include a logic circuit, or may be implemented by a central processing unit, a digital signal processor, or a field programmable gate array included in an electronic device, etc.

[0088] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, modules, and units described above can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.

[0089] An embodiment of the present invention discloses an electronic device, including: a processor; a memory storing a computer program, which when executed by the processor, causes the processor to execute the network configuration method of the above-mentioned intelligent device; for example, as Figure 5 shown Figure 5 As shown, the electronic device 50 includes: a processor 501 and a memory 503. Among them, the processor 501 and the memory 503 are connected, such as connected through a bus 502. Optionally, the electronic device 50 may further include a transceiver 504. It should be noted that in practical applications, the transceiver 504 is not limited to one, and the structure of the electronic device 50 does not constitute a limitation to the embodiments of the present invention.

[0090] The processor 501 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute various exemplary logic blocks, modules, and circuits described in the disclosure of the present invention. The processor 501 may also be a combination for implementing computing functions, such as a combination including one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0091] The bus 502 may include a path for transmitting information between the above components. The bus 502 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus 502 may be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience of representation, Figure 5 only a thick line is used to represent it in the figure, but it does not mean that there is only one bus or one type of bus.

[0092] The memory 503 can be a ROM (Read Only Memory), or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory), or other types of dynamic storage devices that can store information and instructions. It can also be an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory), or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk media, or other magnetic storage devices, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.

[0093] The memory 503 is used to store the application program code for executing the solution of the present invention and is controlled by the processor 501 for execution. The processor 501 is used to execute the application program code stored in the memory 503 to implement the content shown in the foregoing method embodiments.

[0094] Figure 5 The illustrated electronic device is only an example and should not impose any limitations on the functions and usage scope of the embodiments of the present invention.

[0095] The embodiments of the present application disclose a computer-readable storage medium, on which a computer program is stored. When the computer program is executed on a computer, it causes the computer to execute the network configuration method of an intelligent device.

[0096] It should be understood that although the steps in the flowchart of the accompanying drawings are shown sequentially in the direction of the arrows, these steps are not necessarily executed sequentially in the direction of the arrows. Unless there is a clear indication in this article, there is no strict order restriction for the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps.

[0097] The above are only some embodiments of the present application. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present application, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of the present application.

Claims

1. A network configuration method for smart devices, characterized in that: include: Obtain the first rotation device identifier and device information of the smart device to be configured; Based on the device information, determining a list of devices matching the device information; Based on the device list, determining a second rotation device identifier; When the first rotating device identifier and the second rotating device identifier match each other, the network configuration information is extracted from the device information, and the network configuration information is sent to the intelligent gateway device so that the intelligent gateway device completes the network configuration of the intelligent device to be configured.

2. The method according to claim 1, characterized in that Get the first rotation device identifier of the smart device to be configured, including: When the intelligent gateway device polls the intelligent broadcast information of the intelligent device to be networked, extracts the rotation counter and the first rotating device identifier from the intelligent broadcast information, and the intelligent gateway device generates network configuration request information, the first rotating device identifier of the intelligent device to be networked is obtained based on the obtained network configuration request information.

3. The method according to claim 1, characterized in that: The device information includes a device serial number, a device vendor identifier, a device model identifier, and an identifier identifier; Based on the device information, determining a device list matching the device information includes: Based on the acquired user account, the device serial number, the device vendor identifier, and the device model identifier, selecting at least one candidate smart device from the plurality of smart devices; Based on the identification identifier, the to-be-networked smart device is screened out from the at least one candidate smart device to obtain the device list.

4. The method according to claim 1, characterized in that: The determining of a second rotation device identifier based on the device list includes: Based on the device list, determine the unique identifier, rotation counter and preset algorithm information of the intelligent device to be networked; The second rotating device identifier is determined based on the unique identifier, the rotation counter, and preset algorithm information.

5. The method according to claim 4, characterized in that The determining the second rotating device identifier based on the unique identifier, the rotation counter and preset algorithm information includes: Based on the preset algorithm information, the unique identifier and the value generated by the rotation counter are concatenated to obtain first value information; Performing a hash calculation on the first numerical information to obtain a first hash value; Extracting a second hash value from the first hash value based on the retrieved preset byte extraction rule; The second hash value is concatenated with the value generated by the rotation counter to obtain the second rotation device identifier.

6. The method according to claim 1, characterized in that Get the device information of the smart device to be configured, including: When the smart warehousing device scans the QR code of the smart device to be configured to obtain the initial device information, and the smart warehousing device completes encryption processing of the device serial number, device supplier identification, device model identification, identification identifier, password, first rotating device identifier and preset algorithm information contained in the initial device information, the encrypted initial device information is obtained from the smart warehousing device, and the encrypted initial device information is decrypted to obtain the device information.

7. A network distribution device for smart devices, characterized in that: include: A rotating device identifier obtaining unit, used to obtain a first rotating device identifier of a to-be-configured intelligent device; A device list acquisition unit, configured to acquire a device list matching the device information based on the acquired device information of the to-be-networked intelligent device; A rotation device identifier determination unit, configured to determine a second rotation device identifier based on the device list; A network configuration information sending unit is used to extract the network configuration information from the device information when the first rotation device identifier and the second device rotation identifier match each other, and send the network configuration information to the intelligent gateway device so that the intelligent gateway device can complete the network configuration of the intelligent device to be configured.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed in a computer, the computer is caused to execute the robot software algorithm testing method according to any one of claims 1 to 6.

9. A network distribution system for smart devices, characterized in that: Used to implement the network configuration method of the smart device according to any one of claims 1 to 6, the network configuration system comprises: An intelligent gateway device is connected to the intelligent device to be networked, and is used to poll the intelligent broadcast information of the intelligent device to be networked, and when the intelligent broadcast information is extracted to include a rotation counter and a first rotating device identifier, generate network configuration request information, and perform network configuration on the intelligent device to be networked based on the received network configuration information; The server is connected to the intelligent gateway device, and is used to obtain the first rotating device identifier and the device information, and determine the second rotating device identifier based on the network configuration request information, the unique identifier of the intelligent device to be configured, and the rotation counter, and when the first rotating device identifier and the second rotating device identifier match each other, the network configuration information extracted from the device information is sent to the intelligent gateway device.

10. The distribution network system according to claim 9, characterized in that: Also includes: The intelligent warehousing device is connected to the server and is used to scan the QR code of the intelligent device to be networked, obtain initial device information, encrypt the initial device information, and send the encrypted initial device information to the server.