Method and system for carrying out wireless network distribution on equipment

By utilizing the automatic detection and identity verification mechanism of the private chain network in the distribution network of intelligent monitoring equipment, the problem of repeated operations and complexity in the existing network distribution process is solved, automated network distribution is realized, and the efficiency and security of the distribution network are improved.

CN119364368APending Publication Date: 2025-01-24E SURFING VISION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411514432.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-29
Publication Date
2025-01-24

AI Technical Summary

Technical Problem

The existing intelligent monitoring equipment needs to be repetitively distributed during the distribution process. The user's operations are complex and the probability of errors is high. The existing distribution method is single, making it difficult to realize automated distribution.

Method used

By determining whether there is a private chain network around the device, if it exists, identity verification is performed. If it is legal, the device is allowed to access the private chain network; if it does not exist, a private chain network is created. After the device is connected, the gateway node is updated and the encrypted information is synchronized.

Benefits of technology

The private chain network is realized to automatically verify new access equipment, simplifying the network distribution process, improving network distribution efficiency, and reducing operation difficulty.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119364368A_ABST
    Figure CN119364368A_ABST
Patent Text Reader

Abstract

The invention relates to a method and system for carrying out wireless network distribution on equipment, and belongs to the technical field of blockchains, and the method comprises the steps: judging whether a private chain network exists around first equipment or not under the condition of determining that a triggering condition for judging whether the private chain network exists around the first equipment or not is met; under the condition of determining that the private chain network exists around the first equipment, performing identity verification on the first equipment according to the attribute information of the first equipment and a digital signature generated by the attribute information; allowing the first device to access the private chain network and start the node under the condition that the identity verification of the first device is successful, and determining that the first device successfully accesses the private chain network under the condition that the first device is legal and the first device successfully verifies the target information based on the private key; and when it is determined that the private chain network does not exist around the first device, creating the private chain network, and determining that the first device successfully accesses the private chain network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of blockchain, and in particular relates to a method and system for wireless network configuration of equipment. Background Art

[0002] In the related technology, the use of smart monitoring equipment is inseparable from the Internet. Usually, the access method of smart monitoring equipment is to inform the device of the account, password and other information of the gateway device through QR code, soft AP, device hotspot, SmartConfig, etc., so that the device can access the Internet wirelessly through the gateway device. At present, the common network configuration methods are relatively simple. Usually, the user needs to manually inform the smart monitoring device of the account and password of the gateway device in some way. The operation is cumbersome and the probability of error is high. For example, network configuration failure often occurs due to user input errors or device code scanning failure. In addition, users usually have more than one smart device, but each new device needs to be connected, and the user needs to repeat the network configuration operation. Therefore, how to better realize wireless network configuration of devices has become an urgent problem to be solved. Summary of the invention

[0003] In view of the above shortcomings of the prior art, the purpose of the invention is to provide a method and system for wireless network configuration of devices. The method solves the problems that the network configuration of existing intelligent monitoring equipment needs to be repeated for newly connected devices, and the user operation and configuration are complicated.

[0004] According to a first aspect of the present invention, a method for wireless network configuration of devices is proposed, comprising: S1, when it is determined that a trigger condition for determining whether a private chain network exists around a first device is met, determining whether the private chain network exists around the first device; S2, when it is determined that the private chain network exists around the first device, performing identity verification on the first device according to attribute information of the first device and a digital signature generated by the attribute information; S3, when the identity verification of the first device is successful, allowing the first device to access the private chain network and start the node, and when it is confirmed that the first device is legal and the first device successfully verifies the target information based on a private key, determining that the first device successfully accesses the private chain network; S4, when it is determined that the private chain network does not exist around the first device, creating the private chain network, and determining that the first device successfully accesses the private chain network.

[0005] Further, determining whether a trigger condition for determining whether a private chain network exists around the first device comprises: when the first device is powered on, scanning whether a second device exists around the first device based on communication technology, the first device being a device to be connected to the private chain network, and the second device being a device that has been connected to the private chain network; when the second device exists around the first device, the trigger condition for determining whether a private chain network exists around the first device is met; or when the second device does not exist around the first device, the trigger condition for determining whether a private chain network exists around the first device is met; wherein, when the second device exists around the first device, the first device establishes a connection with the second device.

[0006] Furthermore, when it is determined that the private chain network exists around the first device, the first device determines a gateway node based on the private chain network, and reports the attribute information of the first device to the private chain network based on the gateway node, wherein the identity of the first device is verified according to the attribute information of the first device and the digital signature generated by the attribute information, including: the private chain network verifies the digital signature based on the public key; when the verification is successful, the attribute information of the first device is compared with the attribute information received by the private chain network; when the comparison is successful, it is determined that the identity verification of the first device is successful.

[0007] Furthermore, confirming that the first device is legal includes: the private chain network reports attribute information of the first device to a server; the server queries whether the attribute information exists in a database; if the attribute information exists in the database, confirming that the first device is legal.

[0008] Furthermore, determining that the first device has successfully verified the target information based on the private key includes: judging whether the target information has been tampered with during the process of the first device receiving the target information; and determining that the first device has successfully verified the target information based on the private key if the target information has not been tampered with.

[0009] Furthermore, determining that the first device has successfully accessed the private chain network includes: when it is determined that the first device has successfully verified the target information based on the private key, the first device decrypts the gateway information based on the private key to obtain plaintext information, wherein the plaintext information includes an account number and a password; and determining that the first device has successfully accessed the private chain network based on the plaintext information.

[0010] Further, determining that the first device has successfully accessed the private chain network includes: confirming that the first device is legitimate; and determining that the first device has successfully accessed the private chain network when the first device is confirmed to be legitimate and the first device successfully verifies the target information based on the private key.

[0011] According to a second aspect of the present invention, a system for wireless network configuration of devices is proposed, comprising: a judgment module, for judging whether a private chain network exists around the first device when a trigger condition for judging whether a private chain network exists around the first device is determined to be met; a verification module, for verifying the identity of the first device according to the attribute information of the first device and the digital signature generated by the attribute information when it is determined that the private chain network exists around the first device; a first determination module, for allowing the first device to access the private chain network and start the node when the identity verification of the first device is successful, and for determining that the first device has successfully accessed the private chain network when the first device is confirmed to be legal and the first device has successfully verified the target information based on the private key; a second determination module, for creating the private chain network when it is determined that the private chain network does not exist around the first device, and for determining that the first device has successfully accessed the private chain network.

[0012] According to a third aspect of the present invention, an electronic device is proposed, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any of the methods described in the first aspect of the present invention.

[0013] According to a fourth aspect of the present invention, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute any one of the methods according to the first aspect of the present invention.

[0014] The beneficial effects of the present invention are as follows:

[0015] The method and system for wireless network configuration of devices described in the present invention, when it is determined that the triggering conditions for determining whether there is a private chain network around the first device are met, determine whether there is a private chain network around the first device; when it is determined that there is a private chain network around the first device, perform identity verification on the first device according to the attribute information of the first device and the digital signature generated by the attribute information; when the identity verification of the first device is successful, allow the first device to access the private chain network and start the node, and when it is confirmed that the first device is legal and the first device successfully verifies the target information based on the private key, determine that the first device successfully accesses the private chain network; when it is determined that there is no private chain network around the first device, create a private chain network, and determine that the first device successfully accesses the private chain network. This method solves the problems of the existing intelligent monitoring equipment network configuration process, such as the need to repeatedly configure the newly connected device, the complex user operation, and the complex configuration, and realizes the automatic verification of the newly connected device by the private chain network, thereby achieving the purpose of simplifying the network configuration, improving the network configuration efficiency, and reducing the difficulty of operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The accompanying drawings are only used to illustrate specific embodiments and are not considered to limit the present invention. In the entire drawings, the same reference symbols represent the same components. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings.

[0017] Figure 1 is a flow chart of a method for wireless network configuration of a device according to an embodiment of the present invention;

[0018] Figure 2 is a flow chart of a method for wireless network configuration of a device according to a specific embodiment of the present invention;

[0019] Figure 3 is a schematic diagram of a system for wireless network configuration of devices according to an embodiment of the present invention;

[0020] Figure 4 It is a structural block diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0021] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in the field without making creative work should fall within the scope of protection of the present invention.

[0022] Furthermore, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessarily obscuring the concepts disclosed in the present invention.

[0023] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the orientation or position relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside", etc. is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. In addition, the terms "first", "second", and "third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. The terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be a connection between the two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0024] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of methods and systems consistent with some aspects of the present invention as detailed in the appended claims.

[0025] The present invention proposes a method, system and related equipment for wireless network configuration of devices. Specifically, the method, system and related equipment for wireless network configuration of devices according to embodiments of the present invention are described below with reference to the accompanying drawings.

[0026] Figure 1 1 is a flow chart of a method for wireless network configuration of a device according to an embodiment of the present invention. It should be noted that the method for wireless network configuration of a device according to an embodiment of the present invention can be applied to a system for wireless network configuration of a device according to an embodiment of the present invention. The system for wireless network configuration of a device can be configured on an electronic device or in a server. This embodiment of the present application does not limit this.

[0027] like Figure 1 As shown, the method for wireless network configuration of a device includes:

[0028] S110: When it is determined that a trigger condition for determining whether a private chain network exists around the first device is met, determine whether a private chain network exists around the first device.

[0029] In an embodiment of the present invention, an implementation method for determining whether a trigger condition for determining whether a private chain network exists around the first device includes: when the first device is powered on, scanning whether a second device exists around the first device based on communication technology, the first device is a device to be connected to a private chain network, and the second device is a device that has been connected to a private chain network; when there is a second device around the first device, the trigger condition for determining whether a private chain network exists around the first device is met; or when there is no second device around the first device, the trigger condition for determining whether a private chain network exists around the first device is met; wherein, when there is a second device around the first device, the first device establishes a connection with the second device.

[0030] That is, when the first device is powered on, based on the communication technology, it scans whether there is a second device around the first device. Regardless of whether there is a second device around the first device, the trigger condition for determining whether there is a private chain network around the first device is met. Then, it is determined whether there is a private chain network around the first device.

[0031] The surroundings of the first device may be understood as being within a preset range of the first device.

[0032] S120: When it is determined that a private chain network exists around the first device, the identity of the first device is verified according to the attribute information of the first device and the digital signature generated by the attribute information.

[0033] In an embodiment of the present invention, when it is determined that there is a private chain network around the first device, the first device determines a gateway node based on the private chain network, and reports the attribute information of the first device to the private chain network based on the gateway node. Then, based on the attribute information of the first device and the digital signature generated by the attribute information, the identity of the first device is verified. For specific implementation methods, please refer to the subsequent embodiments.

[0034] S130, when the identity verification of the first device is successful, allowing the first device to access the private chain network and start the node, and when the first device is confirmed to be legitimate and the first device successfully verifies the target information based on the private key, determining that the first device successfully accesses the private chain network.

[0035] That is, if the identity verification of the first device is successful, the first device is allowed to access the private chain network and start the node, and then it is determined whether the first device is legal. If the first device is determined to be legal, the first device verifies the target information based on the private key. If the verification is successful, it is determined that the first device has successfully accessed the private chain network. For specific implementation methods, please refer to the subsequent embodiments.

[0036] S140: When it is determined that no private chain network exists around the first device, create a private chain network, and determine that the first device successfully accesses the private chain network.

[0037] In an embodiment of the present invention, when it is determined that there is no private chain network around the first device, a private chain network is created to confirm the legitimacy of the first device; when the legitimacy of the first device is confirmed and the first device successfully verifies the target information based on the private key, it is determined that the first device has successfully accessed the private chain network.

[0038] According to the method for wireless network configuration of devices in an embodiment of the present invention, when it is determined that the trigger condition for determining whether there is a private chain network around the first device is met, it is determined whether there is a private chain network around the first device; when it is determined that there is a private chain network around the first device, the identity of the first device is verified according to the attribute information of the first device and the digital signature generated by the attribute information; when the identity verification of the first device is successful, the first device is allowed to access the private chain network and start the node, and when it is confirmed that the first device is legal and the first device successfully verifies the target information based on the private key, it is determined that the first device successfully accesses the private chain network; when it is determined that there is no private chain network around the first device, a private chain network is created, and it is determined that the first device successfully accesses the private chain network. This method solves the problems of the existing intelligent monitoring equipment network configuration process, such as the need to repeatedly configure the newly connected device, the complex user operation, and the complex configuration, and realizes the automatic verification of the newly connected device by the private chain network, thereby achieving the purpose of simplifying the network configuration, improving the network configuration efficiency, and reducing the difficulty of operation.

[0039] In order to make it easier for those skilled in the art to understand the present invention, Figure 2 A method for wirelessly configuring a device according to a specific embodiment of the present invention is as follows: Figure 2 As shown, the method for wireless network configuration of devices includes:

[0040] S210: Determine whether a trigger condition for determining whether a private chain network exists around the first device is met.

[0041] In an embodiment of the present invention, when the first device is powered on, a communication technology is used to scan whether there is a second device around the first device, the first device is a device to be connected to a private chain network, and the second device is a device that has been connected to the private chain network; when the second device exists around the first device, a trigger condition for determining whether there is a private chain network around the first device is met; or when the second device does not exist around the first device, a trigger condition for determining whether there is a private chain network around the first device is met; wherein, when the second device exists around the first device, the first device establishes a connection with the second device.

[0042] S220: When it is determined that a trigger condition for determining whether a private chain network exists around the first device is met, determine whether a private chain network exists around the first device.

[0043] In the embodiment of the present invention, when there is a second device around the first device, there is a private chain network around the first device. When there is no second device around the first device, there is no private chain network around the first device.

[0044] In an embodiment of the present invention, when there is a second device around the first device, the first device establishes a connection with the second device. When the first device establishes a connection with the second device, the first device uses blockchain technology to detect whether there is an existing private chain network. The following means are available: A. Use the consensus mechanism in the blockchain, such as PoA (Proof-of-authority), to check the logs or status related to the consensus mechanism to determine whether a private chain exists; B. Check the node connection status, and confirm whether there is a network by trying to connect to other nodes; C. Try to synchronize the data status, check the data length of the node, or check the number of transactions. If the data length or the number of transactions of the node is not 0, it means that a private chain network is running.

[0045] S230: When it is determined that there is a private chain network around the first device, the identity of the first device is verified according to the attribute information of the first device and the digital signature generated by the attribute information.

[0046] In an embodiment of the present invention, when it is determined that there is a private chain network around the first device, the first device determines the gateway node based on the private chain network, and reports the attribute information of the first device to the private chain network based on the gateway node, and the private chain network verifies the digital signature based on the public key; if the verification is successful, the attribute information of the first device is compared with the attribute information received by the private chain network. That is, the private chain network can verify the identity of the first device to ensure that only authorized devices can access. Network security is enhanced, unauthorized access is prevented, and the integrity and privacy of network data are protected.

[0047] If the comparison is successful, it is determined that the identity verification of the first device is successful.

[0048] The attribute information includes the serial number SN, MAC address and the current time displayed.

[0049] S240: When the identity verification of the first device is successful, the first device is allowed to access the private chain network and start the node.

[0050] In an embodiment of the present invention, when the identity verification of the first device is successful, the first device is allowed to access the private chain network, and after the first device accesses the private chain network, the node is started.

[0051] S250, confirming that the first device is legitimate.

[0052] In an embodiment of the present invention, the private chain network reports the attribute information of the first device to the server; the server queries whether the attribute information exists in the database; if it exists in the database, the first device is confirmed to be legitimate.

[0053] If the first device does not exist in the database, it is confirmed that the first device is illegal.

[0054] S260: When the first device is confirmed to be legitimate, the first device verifies the target information based on the private key.

[0055] In an embodiment of the present invention, when the first device is confirmed to be legitimate, it is determined whether the target information has been tampered with during the process of the first device receiving the target information; if the target information has not been tampered with, it is determined that the first device has successfully verified the target information based on the private key.

[0056] In which, when the target information is tampered with, the first device is denied connection to the private chain network and a prompt is given to the user.

[0057] In an embodiment of the present invention, when the first device is confirmed to be legitimate, the blockchain data is synchronized and network consensus is participated in.

[0058] In an embodiment of the present invention, when it is confirmed that the first device is illegal, the private chain network removes the first device and prompts the user that the first device is illegal.

[0059] S270: When the first device successfully verifies the target information based on the private key, it is determined that the first device successfully accesses the private chain network.

[0060] In an embodiment of the present invention, when it is determined that the first device successfully verifies the target information based on the private key, the first device decrypts the gateway information based on the private key to obtain plain text information, which includes an account number and a password; based on the plain text information, it is determined that the first device successfully accesses the private chain network. In other words, the first device accesses the private chain network based on the account number and password.

[0061] In an embodiment of the present invention, when the first device successfully verifies the target information based on the private key, it can be determined that the first device can access the private chain network, and then the gateway node can be updated to use the first device as the gateway node of the private chain network.

[0062] In an embodiment of the present invention, when the first device is used as a gateway node of the private chain network, the existing nodes of the private chain network synchronize the encrypted information required for network configuration to the first device. That is, the network configuration encrypted information is synchronized to the first device, and the user does not need to repeat the network configuration operation multiple times, which improves the network configuration efficiency and reduces the difficulty of operation.

[0063] In the embodiment of the present invention, sensitive information such as account passwords is stored in the private chain network in an encrypted manner, which also reduces the network security risks caused by key leakage.

[0064] In an embodiment of the present invention, when it is determined that the first device successfully accesses the private chain network, the first device feeds back the successful access information to the server based on the gateway node, so that the server feeds back to the client.

[0065] S280: When it is determined that no private chain network exists around the first device, create a private chain network.

[0066] In an embodiment of the present invention, the first device creates or joins a network according to whether a private chain network exists, thereby improving the flexibility and automation level of network deployment and reducing the complexity of user operations.

[0067] In the embodiment of the present invention, when a private chain network is created, the first device is confirmed to be legitimate; when the first device is confirmed to be legitimate and the first device successfully verifies the target information based on the private key, it is determined that the first device successfully accesses the private chain network. That is, when a private chain network is created, steps S250 to S270 are executed.

[0068] According to the method for wireless network configuration of devices in an embodiment of the present invention, the first device autonomously scans whether there are devices (second devices) that have been connected to the private chain network in the surrounding area, and automatically determines whether it is necessary to create or join the private chain network according to the scanning result, thereby simplifying the network deployment process and reducing the manual operation of the user; before the first device accesses the private chain network, it is necessary to perform identity verification, including reporting and comparison of attribute information, and verification of digital signatures, to ensure that only authorized devices can access, effectively prevent unauthorized access, and protect the integrity and privacy of network data; after the first device accesses the private chain network, the target information is verified by the private key to ensure that the information is not tampered with during the transmission process, further enhancing the reliability of device access; after the first device successfully accesses the private chain network, the gateway node can be updated, the first device can be used as the gateway node of the private chain network, and the encrypted information required for network configuration can be synchronized to the first device, thereby avoiding the user from repeatedly performing network configuration operations, improving network configuration efficiency, and reducing the difficulty of operation; after the first device successfully accesses the private chain network, the successful access information can be fed back to the server, and the server then feeds back the information to the client, thereby realizing real-time monitoring and management of the device status. At the same time, for illegal devices, the private chain network will remove them and prompt the user, ensuring the purity and security of the network; whether the first device joins an existing private chain network, or the first device creates a new private chain network when there is no private chain network around it, the solution provides a complete process and mechanism to support the dynamic expansion and flexible deployment of the private chain network.

[0069] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.

[0070] According to one aspect of an embodiment of the present invention, a system for wirelessly configuring a device is also provided. Figure 3 is a schematic diagram of a system for wireless network configuration of a device according to an embodiment of the present invention; Figure 3 As shown, including:

[0071] A determination module 310, configured to determine whether there is a private chain network around the first device when it is determined that a trigger condition for determining whether there is a private chain network around the first device is met;

[0072] A verification module 320, configured to verify the identity of the first device according to the attribute information of the first device and the digital signature generated by the attribute information, when it is determined that the private chain network exists around the first device;

[0073] A first determination module 330 is used to allow the first device to access the private chain network and start the node if the identity verification of the first device is successful, and to determine that the first device has successfully accessed the private chain network if the first device is confirmed to be legitimate and the first device has successfully verified the target information based on the private key;

[0074] The second determination module 340 is configured to create the private chain network when it is determined that the private chain network does not exist around the first device, and to determine that the first device successfully accesses the private chain network.

[0075] According to the system for wireless network configuration of devices in an embodiment of the present invention, when it is determined that the triggering condition for determining whether there is a private chain network around the first device is met, it is determined whether there is a private chain network around the first device; when it is determined that there is a private chain network around the first device, the identity of the first device is verified according to the attribute information of the first device and the digital signature generated by the attribute information; when the identity verification of the first device is successful, the first device is allowed to access the private chain network and start the node, and when it is confirmed that the first device is legal and the first device successfully verifies the target information based on the private key, it is determined that the first device successfully accesses the private chain network; when it is determined that there is no private chain network around the first device, a private chain network is created, and it is determined that the first device successfully accesses the private chain network. This solves the problems of the need to repeatedly configure the network for the newly connected device in the existing intelligent monitoring device configuration process, and the complex user operation and configuration, and realizes the automatic verification of the newly connected device by the private chain network, thereby achieving the purpose of simplifying the network configuration, improving the network configuration efficiency, and reducing the difficulty of operation.

[0076] Optionally, the judgment module 310 is specifically used to scan whether there is a second device around the first device based on communication technology when the first device is powered on, the first device is a device to be connected to the private chain network, and the second device is a device that has been connected to the private chain network; when the second device exists around the first device, a trigger condition for judging whether there is a private chain network around the first device is met; or when the second device does not exist around the first device, a trigger condition for judging whether there is a private chain network around the first device is met; wherein, when the second device exists around the first device, the first device establishes a connection with the second device.

[0077] Optionally, when it is determined that the private chain network exists around the first device, the first device determines a gateway node based on the private chain network, and reports the attribute information of the first device to the private chain network based on the gateway node, wherein the verification module 320 is specifically used for the private chain network to verify the digital signature based on the public key; when the verification is successful, the attribute information of the first device is compared with the attribute information received by the private chain network; wherein, when the comparison is successful, it is determined that the identity verification of the first device is successful.

[0078] Optionally, the first determination module 330 is specifically used for the private chain network to report the attribute information of the first device to the server; the server queries whether the attribute information exists in the database; if it exists in the database, confirming that the first device is legal.

[0079] Optionally, the first determination module 330 is specifically used to determine whether the target information has been tampered with during the process of the first device receiving the target information; if the target information has not been tampered with, determine that the first device has successfully verified the target information based on the private key.

[0080] Optionally, the first determination module 330 is specifically used to, when it is determined that the first device has successfully verified the target information based on the private key, decrypt the gateway information based on the private key of the first device to obtain plaintext information, wherein the plaintext information includes an account number and a password; and determine based on the plaintext information that the first device has successfully accessed the private chain network.

[0081] Optionally, the second determination module 340 is used to confirm that the first device is legitimate; when the first device is confirmed to be legitimate and the first device successfully verifies the target information based on the private key, it is determined that the first device successfully accesses the private chain network.

[0082] According to one aspect of an embodiment of the present invention, an electronic device is provided.

[0083] Figure 4 Schematic diagram of the structure of an electronic device according to an embodiment of the present invention. Figure 4 As shown, the electronic device may include one or more ( Figure 4Only one is shown in the figure) processor 102 (processor 102 may include but is not limited to a microprocessor (Microprocessor Unit, referred to as MPU) or a programmable logic device (Programmable logic device, referred to as PLD)) and a memory 104 for storing data. In an exemplary embodiment, the electronic device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 4 The structure shown is for illustration only and does not limit the structure of the above terminal device. Figure 4 More or fewer components as shown, or with Figure 4 Equivalent functions or comparisons shown Figure 4 A different configuration with more features is shown.

[0084] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for wireless network configuration of the device in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the terminal device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0085] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the switching device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0086] The present invention provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable the computer to execute a method for wireless network configuration of a device.

[0087] The applicant of the present invention has made a detailed explanation and description of the implementation examples of the present invention in conjunction with the drawings in the specification. However, those skilled in the art should understand that the above implementation examples are only preferred implementation schemes of the present invention, and the detailed description is only to help readers better understand the spirit of the present invention, but not to limit the scope of protection of the present invention. On the contrary, any improvements or modifications based on the inventive spirit of the present invention should fall within the scope of protection of the present invention.

[0088] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0089] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.

[0090] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the embodiments of the present invention, rather than to limit them. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the above embodiments, or replace some of the technical features therein by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention. Any changes or replacements that can be easily thought of by those skilled in the art within the technical scope disclosed in the present invention should be covered within the protection scope of the present invention.

Claims

1. A method for wireless network configuration of a device, characterized in that: include: S1, when it is determined that a trigger condition for determining whether a private chain network exists around a first device is met, determining whether the private chain network exists around the first device; S2, when it is determined that the private chain network exists around the first device, verify the identity of the first device according to the attribute information of the first device and the digital signature generated by the attribute information; S3, if the identity verification of the first device is successful, allowing the first device to access the private chain network and start the node, and if the first device is confirmed to be legitimate and the first device successfully verifies the target information based on the private key, determining that the first device successfully accesses the private chain network; S4: when it is determined that the private chain network does not exist around the first device, create the private chain network, and determine that the first device successfully accesses the private chain network.

2. The method for wireless network configuration of a device according to claim 1, characterized in that: Determining whether a trigger condition for determining whether a private chain network exists around the first device is met includes: When the first device is powered on, scanning whether there is a second device around the first device based on communication technology, the first device is a device to be connected to the private chain network, and the second device is a device that has been connected to the private chain network; When the second device exists around the first device, a trigger condition for determining whether a private chain network exists around the first device is met; or In the case where the second device does not exist around the first device, a trigger condition for determining whether a private chain network exists around the first device is met; In which, when the second device exists around the first device, the first device establishes a connection with the second device.

3. The method for wireless network configuration of a device according to claim 1, characterized in that: In the case where it is determined that the private chain network exists around the first device, the first device determines a gateway node based on the private chain network, and reports attribute information of the first device to the private chain network based on the gateway node, wherein the identity of the first device is verified according to the attribute information of the first device and a digital signature generated by the attribute information, including: The private chain network verifies the digital signature based on the public key; If the verification is successful, comparing the attribute information of the first device with the attribute information received by the private chain network; Wherein, when the comparison is successful, it is determined that the identity verification of the first device is successful.

4. The method for wireless network configuration of a device according to claim 1, characterized in that: Confirming that the first device is legitimate includes: The private chain network reports the attribute information of the first device to the server; The server queries whether the attribute information exists in a database; If the first device exists in the database, it is confirmed that the first device is legitimate.

5. The method for wireless network configuration of a device according to claim 1, characterized in that: Determining that the first device successfully verifies the target information based on the private key includes: Determining whether the target information is tampered with during the process of receiving the target information by the first device; In a case where the target information has not been tampered with, it is determined that the first device successfully verifies the target information based on the private key.

6. The method for wireless network configuration of a device according to claim 5, characterized in that: Determining that the first device successfully accesses the private chain network includes: When it is determined that the first device successfully verifies the target information based on the private key, the first device decrypts the gateway information based on the private key to obtain plain text information, where the plain text information includes an account number and a password; Based on the plaintext information, it is determined that the first device successfully accesses the private chain network.

7. The method for wireless network configuration of a device according to claim 1, characterized in that: Determining that the first device successfully accesses the private chain network includes: confirming that the first device is legitimate; When it is confirmed that the first device is legitimate and the first device successfully verifies the target information based on the private key, it is determined that the first device successfully accesses the private chain network.

8. A system for wireless network configuration of equipment, characterized in that: include: A determination module, configured to determine whether there is a private chain network around the first device when a trigger condition for determining whether there is a private chain network around the first device is met; A verification module, configured to verify the identity of the first device according to the attribute information of the first device and the digital signature generated by the attribute information, when it is determined that the private chain network exists around the first device; A first determination module, configured to allow the first device to access the private chain network and start the node if the identity verification of the first device is successful, and to determine that the first device has successfully accessed the private chain network if the first device is confirmed to be legitimate and the first device has successfully verified the target information based on the private key; The second determination module is used to create the private chain network when it is determined that the private chain network does not exist around the first device, and to determine that the first device successfully accesses the private chain network.

9. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 7.