Device commissioning method and apparatus, and electronic device

By scanning NFC tags on devices and locations to obtain information, and using encryption algorithms and cloud server verification, the problem of insufficient security for device network access is solved, and secure binding of devices and locations is achieved, improving the security of device network access and positioning efficiency.

CN117527413BActive Publication Date: 2026-07-03GREE ELECTRIC APPLIANCE INC OF ZHUHAI

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GREE ELECTRIC APPLIANCE INC OF ZHUHAI
Filing Date
2023-12-04
Publication Date
2026-07-03

AI Technical Summary

Technical Problem

In existing technologies, the security of device access to the network is insufficient. QR codes are easily photographed and circulated, which makes it impossible to guarantee the security of device access. Furthermore, maintaining the correspondence between devices and locations is time-consuming, labor-intensive, and prone to errors.

Method used

By scanning NFC tags on devices and locations to obtain NFC information, using NFC technology and encryption algorithms to generate unique identifiers and public keys, and combining this with cloud server verification, the binding of devices and locations to the network can be achieved.

Benefits of technology

It improves the security of equipment access to the network, ensures the security and uniqueness of information, and improves the maintenance efficiency of equipment location correspondence and the accuracy of equipment positioning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117527413B_ABST
    Figure CN117527413B_ABST
Patent Text Reader

Abstract

The application relates to a device network access method and device and electronic equipment, wherein the device network access method comprises the following steps: scanning a first NFC tag of a to-be-network-accessed device to obtain device NFC information; scanning a second NFC tag corresponding to a position where the to-be-network-accessed device is located to obtain position NFC information; sending the device NFC information and the position NFC information to a cloud server, so that the cloud server performs network access verification based on the device NFC information, and when the to-be-network-accessed device passes the network access verification, the to-be-network-accessed device is connected to a network, and the device NFC information and the position NFC information are bound. According to the application, the safety of the device NFC information is guaranteed from the source by NFC technology, the to-be-network-accessed device is connected to the network only when the cloud server passes the network access verification, the to-be-network-accessed device is more safely connected to the network, the mapping between the device and the address is realized, the maintenance efficiency of the corresponding relationship between the device positions is improved, the accuracy of the corresponding relationship between the device and the address is improved, and the positioning efficiency of the device is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a method, apparatus and electronic device for network access. Background Technology

[0002] The current market size of the HVAC and building automation industry has reached 700 billion yuan, with an annual growth rate of over 30%. The control field includes multiple systems in the entire building, such as lighting, elevators, security, energy, and HVAC.

[0003] With the rapid increase in the number of access layer devices, the issues of concurrent cloud server traffic and secure device access have become increasingly prominent. Currently, most solutions involve scanning a device's QR code to bind it to a cloud-based application via a mobile app. However, QR codes are easily leaked through methods such as taking photos, and the security of device access cannot be guaranteed. Summary of the Invention

[0004] In order to solve the above-mentioned technical problems, or at least partially solve the above-mentioned technical problems, this application provides a method, apparatus and electronic device for network access.

[0005] In a first aspect, this application provides a method for device network access, applied to a handheld device, the method comprising:

[0006] Scan the first NFC tag of the device to be added to the network to obtain the device's NFC information;

[0007] Scan the second NFC tag corresponding to the location of the device to be connected to the network to obtain the location NFC information;

[0008] The device's NFC information and the location's NFC information are sent to the cloud server so that the cloud server can perform network access verification based on the device's NFC information. When the network access verification of the device to be accessed is successful, the device to be accessed is connected to the network, and the device's NFC information and the location's NFC information are bound together.

[0009] Optionally, the method further includes:

[0010] Scan the first original NFC tag corresponding to the end device whose NFC information is to be established to obtain the first NFC unique identifier;

[0011] Perform a one-way encryption operation on the first NFC unique identifier to obtain the first MD5 encrypted data;

[0012] Obtain the first scan moment when the first original NFC tag is scanned;

[0013] The first scan time and the first MD5 encrypted data are encrypted to obtain the second MD5 encrypted data.

[0014] The second MD5 encrypted data is determined as the unique device identifier of the end device;

[0015] Obtain the device access public key corresponding to the end device for which the NFC information of the device to be established is to be acquired;

[0016] The device NFC information corresponding to the end device for which device NFC information is to be established is determined based on the first NFC unique identifier, the device unique identifier, and the device network access public key.

[0017] Optionally, obtaining the device access public key corresponding to the end device for which the NFC information to be established is obtained includes:

[0018] Send a public key acquisition request and the device's unique identifier to the cloud server, so that the cloud server returns public key data and stores the device's unique identifier locally on the cloud server;

[0019] If public key data is received from the cloud server, the public key data is encrypted using the device's unique identifier to obtain the device's network access public key.

[0020] Optionally, the method further includes:

[0021] Scan the second original NFC tag corresponding to the location of the location NFC information to be established to obtain the second NFC unique identifier;

[0022] Perform a one-way encryption operation on the second NFC unique identifier to obtain the third MD5 encrypted data;

[0023] Obtain the second scan moment when scanning the second original NFC tag;

[0024] The second scan time and the third MD5 encrypted data are encrypted to obtain the fourth MD5 encrypted data.

[0025] The fourth MD5 encrypted data is determined as the unique identifier of the location;

[0026] Obtain the physical location information of the location;

[0027] Based on the second NFC unique identifier, the location unique identifier, and the physical location information, determine the location NFC information corresponding to the location where the location NFC information to be established is to be determined.

[0028] Secondly, this application provides a method for device network access, applied to a cloud server, the method comprising:

[0029] Receive device NFC information and location NFC information from the device to be connected to the network from the handheld device;

[0030] The network access verification of the device to be connected is performed based on the NFC information of the device.

[0031] If the network access verification of the device to be connected to the network is successful, the device to be connected to the network will be connected.

[0032] The device NFC information and the location NFC information are bound together.

[0033] Optionally, network access verification is performed on the device to be connected to the network based on the device's NFC information, including:

[0034] Extract the device's unique identifier and network access public key from the device's NFC information;

[0035] If no unique identifier matching the device's unique identifier is found locally, the network access verification of the device to be accessed is deemed to have failed.

[0036] If a device unique identifier identical to the device's unique identifier is found locally, the device's network access public key is decrypted using the device unique identifier to obtain the connection public key;

[0037] If the connection public key verification is successful, the network access verification of the device to be connected to the network is confirmed to be successful.

[0038] If the connection public key verification fails, it is determined that the network access verification of the device to be connected to the network has failed.

[0039] Optionally, after connecting the device to the network, the method further includes:

[0040] If a location query request is received to query the physical location of any network-connected device, the location NFC information corresponding to the device NFC information of the network-connected device is searched in the binding relationship between the device NFC information and the location NFC information.

[0041] A location query response is generated based on the physical location information in the location NFC information and returned.

[0042] Thirdly, this application provides a device network access device for use in handheld devices, the device comprising:

[0043] The first scanning module is used to scan the first NFC tag of the device to be connected to the network to obtain the device's NFC information;

[0044] The second scanning module is used to scan the second NFC tag corresponding to the location of the device to be connected to the network, and obtain the location NFC information;

[0045] The first sending module is used to send the device NFC information and the location NFC information to the cloud server, so that the cloud server performs network access verification based on the device NFC information. When the network access verification of the device to be accessed passes, the device to be accessed is connected to the network, and the device NFC information and the location NFC information are bound together.

[0046] Fourthly, this application provides a device network access device applied to a cloud server, the device comprising:

[0047] The first receiving module is used to receive device NFC information and location NFC information of the device to be connected to the network from the handheld device.

[0048] The first verification module is used to perform network access verification on the device to be connected to the network based on the device's NFC information.

[0049] The network access module is used to connect the device to the network if the network access verification of the device to be accessed passes.

[0050] The binding module is used to bind the device NFC information and the location NFC information.

[0051] Fifthly, this application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;

[0052] Memory, used to store computer programs;

[0053] The processor, when executing a program stored in memory, implements the device network access method described in either the first aspect or the device network access method described in either the second aspect.

[0054] The technical solutions provided in this application have the following advantages compared with the prior art:

[0055] This application embodiment obtains device NFC information by scanning a first NFC tag of the device to be connected to the network, and obtains location NFC information by scanning a second NFC tag corresponding to the location of the device. Both are then sent to a cloud server. When the device passes network access verification, the cloud server connects the device to the network and binds the device NFC information and the location NFC information. On one hand, NFC technology ensures the security of the device NFC information from the source. Furthermore, the cloud server only connects the device to the network after successful network access verification of the device NFC information, achieving more secure network access. On the other hand, it enables the mapping between devices and addresses, improving the efficiency of maintaining the correspondence between device locations and ensuring the accuracy of the correspondence, thereby improving the efficiency of device positioning. Attached Figure Description

[0056] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0057] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0058] Figure 1 A system architecture diagram provided for an embodiment of this application;

[0059] Figure 2 A flowchart illustrating a device network access method provided in this application embodiment;

[0060] Figure 3 This is a schematic diagram illustrating the composition of NFC information in a device, provided in an embodiment of this application.

[0061] Figure 4 This is a schematic diagram illustrating the composition of location NFC information provided in an embodiment of this application;

[0062] Figure 5 A flowchart illustrating another method for device network access provided in this application embodiment;

[0063] Figure 6 A structural diagram of a device accessing the network provided in this application embodiment;

[0064] Figure 7 A structural diagram of another device accessing the network provided in this application embodiment;

[0065] Figure 8This is a structural diagram of an electronic device provided in an embodiment of this application. Detailed Implementation

[0066] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0067] With the rapid increase in the number of access layer devices, the issues of concurrent cloud server traffic and secure device access have become increasingly prominent. Currently, most methods on the market involve scanning a device's QR code to bind it to a cloud device via a mobile application. However, QR codes are easily leaked through methods such as taking photos, and the security of device access cannot be guaranteed. Therefore, this application provides a device access method, apparatus, and electronic device.

[0068] This application provides a method for device network access, which can be applied to handheld devices, such as... Figure 1 As shown, the handheld device can scan terminal devices located in different locations and upload the scanned NFC information to the server. The terminal devices can then connect to the cloud server, such as... Figure 2 As shown, the device network access method may include the following steps:

[0069] Step S101: Scan the first NFC tag of the device to be connected to the network to obtain the device's NFC information;

[0070] In this embodiment, the device to be connected to the network can refer to any end device to be connected to the network, such as: lamps, elevators, air conditioners, etc. The device to be connected to the network is equipped with a first NFC tag. The first NFC tag can be built into the device to be connected to the network. A handheld device can scan the designated area on the outside of the device to be connected to the network corresponding to the first NFC tag to obtain the device's NFC information; or, the first NFC tag can also be affixed to the outer surface of the device to be connected to the network. A handheld device can scan the designated area on the outer surface of the device to be connected to the network corresponding to the first NFC tag to obtain the device's NFC information.

[0071] like Figure 3 As shown, the device NFC information includes: a first NFC unique identifier, a device unique identifier, a device network access public key, and device attribute information.

[0072] Step S102: Scan the second NFC tag corresponding to the location of the device to be connected to the network to obtain the location NFC information;

[0073] In this embodiment of the application, the location of the device to be connected to the network can refer to the physical location of the device to be connected to the network. For example, it can refer to the location of a room, etc. Each location for placing the device to be connected to the network can be equipped with a second NFC tag. The second NFC tag can be affixed to the surface of the wall, door, etc., corresponding to the location for placing the device to be connected to the network. The handheld device can scan the designated area where the second NFC tag is located to obtain the location NFC information.

[0074] like Figure 4 As shown, the location NFC information includes: a second NFC unique identifier, a location unique identifier, and physical location information.

[0075] Step S103: Send the device NFC information and the location NFC information to the cloud server so that the cloud server can perform network access verification based on the device NFC information. When the network access verification of the device to be accessed is successful, the device to be accessed is connected to the network, and the device NFC information and the location NFC information are bound together.

[0076] As the number of connected devices increases, maintaining the correspondence between the devices and the geographical locations of rooms in the building during the debugging process becomes a time-consuming and labor-intensive task, and it is also prone to matching errors. Therefore, it is necessary to bind the device NFC information and location NFC information of devices that have passed network access verification to the cloud server.

[0077] This application embodiment obtains device NFC information by scanning a first NFC tag of the device to be connected to the network, and obtains location NFC information by scanning a second NFC tag corresponding to the location of the device. Both are then sent to a cloud server. When the device passes network access verification, the cloud server connects the device to the network and binds the device NFC information and the location NFC information. On one hand, NFC technology ensures the security of the device NFC information from the source. Furthermore, the cloud server only connects the device to the network after successful network access verification of the device NFC information, achieving more secure network access. On the other hand, it enables the mapping between devices and addresses, improving the efficiency of maintaining the correspondence between device locations and ensuring the accuracy of the correspondence, thereby improving the efficiency of device positioning.

[0078] In another embodiment of this application, the method further includes:

[0079] Step S201: Scan the first original NFC tag corresponding to the end device whose NFC information is to be established to obtain the first NFC unique identifier;

[0080] In this embodiment of the application, the first original NFC tag may refer to an NFC tag that has not been written with the device's unique identifier, device network access public key, device attribute information, etc., while it refers to an NFC tag containing the first NFC unique identifier.

[0081] Step S202: Perform a one-way encryption operation on the first NFC unique identifier to obtain the first MD5 encrypted data;

[0082] One-way encryption operation is to use a one-way encryption algorithm to perform encryption calculation on the first NFC unique identifier.

[0083] Step S203: Obtain the first scanning moment when scanning the first original NFC tag;

[0084] Step S204: Perform encryption operation on the first scan time and the first MD5 encrypted data to obtain the second MD5 encrypted data;

[0085] In this step, a second one-way encryption operation can be performed on the first scan time and the first MD5 encrypted data to obtain the second MD5 encrypted data.

[0086] Step S205: Determine the second MD5 encrypted data as the device unique identifier of the terminal device;

[0087] Step S206: Obtain the device access public key corresponding to the terminal device for which the NFC information of the device to be established is to be established;

[0088] In one embodiment of this application, step S206, obtaining the device access public key corresponding to the end device for which NFC information to be established is to be acquired, includes:

[0089] 1. Send a public key acquisition request and the device's unique identifier to the cloud server, so that the cloud server returns public key data and stores the device's unique identifier locally on the cloud server;

[0090] 2. If public key data is received from the cloud server, the public key data is encrypted using the device's unique identifier to obtain the device's network access public key.

[0091] In this step, the handheld device uses AES+RSA encryption to encrypt the public key data as the content to be encrypted, and uses the device's unique identifier as the encryption key to encrypt the public key data. The resulting data, which can be decrypted in reverse, is written into the first original NFC tag of the terminal device as the device's network access public key.

[0092] Step S207: Determine the device NFC information corresponding to the end device for which device NFC information is to be established based on the first NFC unique identifier, the device unique identifier, and the device network access public key.

[0093] In this step, the first NFC unique identifier, the device unique identifier, and the device network access public key (such as device attribute information) can be used as the device NFC information corresponding to the end device.

[0094] The embodiments of this application can obtain the device's NFC information in advance through NFC technology and encryption technology, thereby improving the security of the device's NFC information.

[0095] In another embodiment of this application, the method further includes:

[0096] Step S301: Scan the second original NFC tag corresponding to the location of the location NFC information to be established to obtain the second NFC unique identifier;

[0097] In this embodiment of the application, the second original NFC tag may refer to an NFC tag that has not written with a unique location identifier and the physical location information, and the second original NFC tag only contains a second NFC unique identifier.

[0098] Step S302: Perform a one-way encryption operation on the second NFC unique identifier to obtain the third MD5 encrypted data;

[0099] One-way encryption operation is to use a one-way encryption algorithm to perform encryption calculation on the second NFC unique identifier.

[0100] Step S303: Obtain the second scanning moment when scanning the second original NFC tag;

[0101] Step S304: Perform encryption operation on the second scan time and the third MD5 encrypted data to obtain the fourth MD5 encrypted data;

[0102] In this step, a second one-way encryption operation can be performed on the second scan time and the third MD5 encrypted data to obtain the fourth MD5 encrypted data.

[0103] Step S305: Determine the fourth MD5 encrypted data as the unique identifier of the location;

[0104] Step S306: Obtain the physical location information of the location;

[0105] Step S307: Determine the location NFC information corresponding to the location of the location NFC information to be established based on the second NFC unique identifier, the location unique identifier, and the physical location information.

[0106] In this step, the second NFC unique identifier, the location unique identifier, and the physical location information can be used as the device NFC information corresponding to the end device.

[0107] The embodiments of this application can obtain location NFC information in advance through NFC technology and encryption technology, thereby improving the security of location NFC information.

[0108] In another embodiment of this application, a device network access method is also provided, applied to a cloud server, such as... Figure 5 As shown, the method includes:

[0109] Step S401: Receive device NFC information and location NFC information of the device to be connected to the network from the handheld device;

[0110] Step S402: Perform network access verification on the device to be connected to the network based on the device's NFC information;

[0111] In one embodiment of this application, step S402 performs network access verification on the device to be connected to the network based on the device's NFC information, including:

[0112] Step S501: Extract the device's unique identifier and network access public key from the device's NFC information;

[0113] Step S502: If no device unique identifier matching the device unique identifier is found locally, it is determined that the network access verification of the device to be accessed has failed.

[0114] If no device unique identifier matching the device unique identifier is found on the local cloud server, it indicates that the device unique identifier was not previously entered and uploaded by the handheld device, and it can be determined that the network access verification of the device corresponding to the device unique identifier has failed.

[0115] Step S503: If a device unique identifier that is the same as the device unique identifier is found locally, the device unique identifier is used to decrypt the device network access public key to obtain the connection public key.

[0116] If a device unique identifier identical to the device's unique identifier is found locally on the cloud server, it indicates that the device unique identifier was previously entered and uploaded by the handheld device. The next step of verification can then be performed, which involves verifying the connection public key. This involves comparing the decrypted connection public key with the original connection public key pre-stored on the cloud server. If the two are the same, the connection public key verification is confirmed to be successful.

[0117] Step S504: If the connection public key verification is successful, it is determined that the network access verification of the device to be connected to the network has been successful;

[0118] If further verification of the connection public key still passes, it can be determined that the network access verification of the device corresponding to the device's unique identifier has been successful.

[0119] Step S505: If the connection public key verification fails, it is determined that the network access verification of the device to be connected to the network has failed.

[0120] If further verification of the connection public key fails, it can be determined that the network access verification of the device corresponding to the device's unique identifier has failed.

[0121] Step S403: If the network access verification of the device to be connected to the network is successful, the device to be connected to the network is connected.

[0122] Step S404: Bind the device NFC information and the location NFC information.

[0123] This application embodiment verifies the network access of the device to be connected to the network based on the device's NFC information. When the network access verification is successful, the device is connected to the network, and the device's NFC information and the location NFC information are bound together. On the one hand, NFC technology can ensure the security of the device's NFC information from the source. Moreover, the cloud server only allows the device to connect to the network when the network access verification of the device's NFC information is successful, thus achieving more secure network access for the device. On the other hand, it can realize the mapping between devices and addresses, improve the efficiency of maintaining the correspondence between device locations, ensure the accuracy of the correspondence, and thus improve the efficiency of device positioning.

[0124] In another embodiment of this application, after the device to be connected to the network is connected to the network, the method further includes:

[0125] Step S601: If a location query request for querying the physical location of any network-connected device is received, the location NFC information corresponding to the device NFC information of the network-connected device is searched in the binding relationship between the device NFC information and the location NFC information.

[0126] Step S602: Generate a location query response based on the physical location information in the location NFC information and return it.

[0127] In this embodiment, the binding relationship between device NFC information and location NFC information can be fully utilized. When a location query request for the physical location of any network-connected device is received, the physical location information of the network-connected device can be automatically found and returned, thereby improving the efficiency of device positioning.

[0128] In another embodiment of this application, a device network access device is also provided, applied to a handheld device, such as... Figure 6 As shown, the device includes:

[0129] The first scanning module 11 is used to scan the first NFC tag of the device to be connected to the network to obtain the device's NFC information;

[0130] The second scanning module 12 is used to scan the second NFC tag corresponding to the location of the device to be connected to the network, and obtain the location NFC information;

[0131] The first sending module 13 is used to send the device NFC information and the location NFC information to the cloud server, so that the cloud server performs network access verification based on the device NFC information. When the network access verification of the device to be accessed passes, the device to be accessed is connected to the network, and the device NFC information and the location NFC information are bound together.

[0132] In another embodiment of this application, a device network access device is also provided, applied to a cloud server, such as... Figure 7 As shown, the device includes:

[0133] The first receiving module 21 is used to receive device NFC information and location NFC information of the device to be connected to the network from the handheld device;

[0134] The first verification module 22 is used to perform network access verification on the device to be connected to the network based on the device's NFC information;

[0135] The network access module 23 is used to connect the device to the network if the network access verification of the device to be accessed passes.

[0136] Binding module 24 is used to bind the device NFC information and the location NFC information.

[0137] In another embodiment of this application, an electronic device is also provided. For example, the electronic device may be a handheld device or a cloud server. The electronic device includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus.

[0138] Memory, used to store computer programs;

[0139] When the processor executes a program stored in the memory, it implements either the aforementioned device network access method applied to a handheld terminal or the aforementioned device network access method applied to a cloud server.

[0140] The electronic device provided in this invention involves a processor executing a program stored in its memory to obtain device NFC information by scanning a first NFC tag of the device to be connected to the network, and to obtain location NFC information by scanning a second NFC tag corresponding to the location of the device. Both information are then sent to a cloud server. When the network access verification of the device is successful, the cloud server connects the device to the network and binds the device NFC information and the location NFC information. On one hand, NFC technology ensures the security of the device NFC information from the source. Furthermore, the cloud server only connects the device to the network after successful network access verification of the device NFC information, thus achieving more secure network access. On the other hand, it enables the mapping between devices and addresses, improving the efficiency of maintaining the correspondence between device locations and ensuring the accuracy of this correspondence, thereby improving the efficiency of device positioning.

[0141] The communication bus 1140 mentioned in the above-mentioned electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus 1140 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0142] The communication interface 1120 is used for communication between the above-mentioned electronic device and other devices.

[0143] The memory 1130 may include random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.

[0144] The processor 1110 mentioned above can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0145] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0146] The above description is merely a specific embodiment of the present invention, enabling those skilled in the art to understand or implement the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A device commissioning method, the method comprising: Applied to handheld devices, the method includes: The method further includes scanning a first NFC tag of a device to be connected to the network to obtain device NFC information, and scanning a first original NFC tag corresponding to the end device for which NFC information is to be established to obtain a first NFC unique identifier; performing a one-way encryption operation on the first NFC unique identifier to obtain first MD5 encrypted data; obtaining a first scanning time of scanning the first original NFC tag; performing an encryption operation on the first scanning time and the first MD5 encrypted data to obtain second MD5 encrypted data; determining the second MD5 encrypted data as the device unique identifier of the end device; obtaining the device network access public key corresponding to the end device for which NFC information is to be established; and determining the device NFC information corresponding to the end device for which NFC information is to be established based on the first NFC unique identifier, the device unique identifier, and the device network access public key. Scan the second NFC tag corresponding to the location of the device to be connected to the network to obtain the location NFC information; The device's NFC information and the location's NFC information are sent to the cloud server so that the cloud server can perform network access verification based on the device's NFC information. When the network access verification of the device to be accessed is successful, the device to be accessed is connected to the network, and the device's NFC information and the location's NFC information are bound together.

2. The device network access method according to claim 1, characterized in that, Obtaining the device access public key corresponding to the end device for the device NFC information to be established includes: Send a public key acquisition request and the device's unique identifier to the cloud server, so that the cloud server returns public key data and stores the device's unique identifier locally on the cloud server; If public key data is received from the cloud server, the public key data is encrypted using the device's unique identifier to obtain the device's network access public key.

3. The device network access method according to claim 1, characterized in that, The method further includes: Scan the second original NFC tag corresponding to the location of the location NFC information to be established to obtain the second NFC unique identifier; Perform a one-way encryption operation on the second NFC unique identifier to obtain the third MD5 encrypted data; Obtain the second scan moment when scanning the second original NFC tag; The second scan time and the third MD5 encrypted data are encrypted to obtain the fourth MD5 encrypted data. The fourth MD5 encrypted data is determined as the unique identifier of the location; Obtain the physical location information of the location; Based on the second NFC unique identifier, the location unique identifier, and the physical location information, determine the location NFC information corresponding to the location where the location NFC information to be established is to be determined.

4. A method for connecting a device to a network, characterized in that, Applied to a cloud server, the method includes: The method further includes receiving device NFC information and location NFC information from a handheld device, and receiving device NFC information and location NFC information of a device to be connected to the network. The method also includes: scanning a first original NFC tag corresponding to the end device for which NFC information is to be established, to obtain a first NFC unique identifier; performing a one-way encryption operation on the first NFC unique identifier to obtain first MD5 encrypted data; obtaining a first scanning time for scanning the first original NFC tag; performing an encryption operation on the first scanning time and the first MD5 encrypted data to obtain second MD5 encrypted data; determining the second MD5 encrypted data as the device unique identifier of the end device; obtaining the device network access public key corresponding to the end device for which NFC information is to be established; and determining the device NFC information corresponding to the end device for which NFC information is to be established based on the first NFC unique identifier, the device unique identifier, and the device network access public key. The network access verification of the device to be connected is performed based on the NFC information of the device. If the network access verification of the device to be connected to the network is successful, the device to be connected to the network will be connected. The device NFC information and the location NFC information are bound together.

5. The device network access method according to claim 4, characterized in that, Based on the device's NFC information, network access verification is performed on the device to be added to the network, including: Extract the device's unique identifier and network access public key from the device's NFC information; If no unique identifier matching the device's unique identifier is found locally, the network access verification of the device to be accessed is deemed to have failed. If a device unique identifier identical to the device's unique identifier is found locally, the device's network access public key is decrypted using the device unique identifier to obtain the connection public key; If the connection public key verification is successful, the network access verification of the device to be connected to the network is confirmed to be successful. If the connection public key verification fails, it is determined that the network access verification of the device to be connected to the network has failed.

6. The device network access method according to claim 4, characterized in that, After connecting the device to the network, the method further includes: If a location query request is received to query the physical location of any network-connected device, the location NFC information corresponding to the device NFC information of the network-connected device is searched in the binding relationship between the device NFC information and the location NFC information. A location query response is generated based on the physical location information in the location NFC information and returned.

7. A device for network access, characterized in that, Applied to handheld devices, the device includes: A first scanning module is used to scan a first NFC tag of a device to be connected to the network to obtain device NFC information. The device further includes: scanning a first original NFC tag corresponding to the end device for which NFC information is to be established, to obtain a first NFC unique identifier; performing a one-way encryption operation on the first NFC unique identifier to obtain first MD5 encrypted data; obtaining a first scanning time for scanning the first original NFC tag; performing an encryption operation on the first scanning time and the first MD5 encrypted data to obtain second MD5 encrypted data; determining the second MD5 encrypted data as the device unique identifier of the end device; obtaining the device network access public key corresponding to the end device for which NFC information is to be established; and determining the device NFC information corresponding to the end device for which NFC information is to be established based on the first NFC unique identifier, the device unique identifier, and the device network access public key. The second scanning module is used to scan the second NFC tag corresponding to the location of the device to be connected to the network, and obtain the location NFC information; The first sending module is used to send the device NFC information and the location NFC information to the cloud server, so that the cloud server performs network access verification based on the device NFC information. When the network access verification of the device to be accessed passes, the device to be accessed is connected to the network, and the device NFC information and the location NFC information are bound together.

8. A device for network access, characterized in that, The device, used in a cloud server, includes: A first receiving module is used to receive device NFC information and location NFC information of a device to be connected to the network from a handheld device. The device further includes: scanning a first original NFC tag corresponding to the end device for which NFC information is to be established, to obtain a first NFC unique identifier; performing a one-way encryption operation on the first NFC unique identifier to obtain first MD5 encrypted data; obtaining a first scanning time for scanning the first original NFC tag; performing an encryption operation on the first scanning time and the first MD5 encrypted data to obtain second MD5 encrypted data; determining the second MD5 encrypted data as the device unique identifier of the end device; obtaining the device network access public key corresponding to the end device for which NFC information is to be established; and determining the device NFC information corresponding to the end device for which NFC information is to be established based on the first NFC unique identifier, the device unique identifier, and the device network access public key. The first verification module is used to perform network access verification on the device to be connected to the network based on the device's NFC information. The network access module is used to connect the device to the network if the network access verification of the device to be accessed passes. The binding module is used to bind the device NFC information and the location NFC information.

9. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; The processor, when executing a program stored in the memory, implements the device network access method according to any one of claims 1 to 3 or the device network access method according to any one of claims 4 to 6.