Device network configuration method, device, medium and product based on NFC

By using NFC technology in equipment distribution networks, the problem of slow and cumbersome distribution network speed when there are many equipment or harsh environments is solved, and an efficient and stable equipment distribution process is achieved.

CN114125800BActive Publication Date: 2025-02-18GUANGZHOU LANGO ELECTRONICS TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111411737.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-25
Publication Date
2025-02-18
Estimated Expiration
2041-11-25

AI Technical Summary

Technical Problem

During the equipment distribution process, when the number of devices to be distributed is large or the Bluetooth and hot spot environment is harsh, the distribution speed is slow and the process is cumbersome.

Method used

The NFC-based device distribution method is adopted to perform near-field communication with the device to be distributed through the NFC communication module of the mobile terminal, and the distribution network information is written, so that the device to be distributed with the target router is distributed.

Benefits of technology

It improves the stability and efficiency of distribution networks and simplifies the distribution network process. You only need to close the mobile terminal with the device to be distributed to achieve distribution networks, avoiding the problem of device connection timeout in complex environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114125800B_ABST
    Figure CN114125800B_ABST
Patent Text Reader

Abstract

The present invention provides a device network configuration method based on NFC, including connecting to a target router for network configuration, storing network configuration information corresponding to the target router, wherein the network configuration information includes a network configuration name and a network configuration password; performing near field communication with a device to be configured through an NFC communication module, writing the network configuration information into the device to be configured, and enabling the device to be configured to configure with the target router according to the network configuration information. The device network configuration method based on NFC of the present invention utilizes the interaction mode and data transmission mode of NFC to enhance the stability of network configuration, and only requires the mobile phone terminal and the device to be configured to be configured to be configured in close proximity to achieve network configuration of the device to be configured and the target router, which greatly simplifies the network configuration process and improves the network configuration efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of device network configuration, and in particular to a method, device, medium and product for device network configuration based on NFC. Background Art

[0002] With the development of smart IoT, various household appliances in life have begun to be connected to the IoT ecosystem. To connect devices to the IoT platform, Wifi devices must be connected to routers to report data and remotely control them. We call the process of Wifi devices obtaining the name and password of the Wifi hotspot network configuration. Currently, the more commonly used network configuration methods include device hotspot network configuration, Bluetooth network configuration, and mobile phone hotspot network configuration. In the above network configuration process, when there are a large number of devices to be configured or the Bluetooth or hotspot environment is poor, the network configuration speed will be slow, the data transmission may cause a high packet loss rate, and the network configuration process is relatively cumbersome. Summary of the invention

[0003] In order to overcome the shortcomings of the prior art, one of the objects of the present invention is to provide an NFC-based device networking method, which can solve the problem that in the traditional networking process, when the number of devices to be networked is large or the Bluetooth or hotspot environment is harsh, the networking speed is slow and the networking process is relatively cumbersome.

[0004] The second object of the present invention is to provide an electronic device that can solve the problem that in the traditional network configuration process, when the number of devices to be configured is large or the Bluetooth or hotspot environment is poor, the network configuration speed is slow and the network configuration process is relatively cumbersome.

[0005] The third object of the present invention is to provide a computer-readable storage medium, which can solve the problem that in the traditional network configuration process, when the number of devices to be configured is large or the Bluetooth or hotspot environment is poor, the network configuration speed is slow and the network configuration process is relatively cumbersome.

[0006] The fourth object of the present invention is to provide a computer program product that can solve the problem that in the traditional network configuration process, when the number of devices to be configured is large or the Bluetooth or hotspot environment is poor, the network configuration speed is slow and the network configuration process is relatively cumbersome.

[0007] One of the purposes of the present invention is achieved by the following technical solution:

[0008] A device network configuration method based on NFC, the method is applied between a mobile phone terminal and a device to be configured, the mobile phone terminal and the device to be configured are both equipped with an NFC communication module for data interaction, the method is executed by the mobile phone terminal, and includes the following steps:

[0009] Connecting to a target router, connecting to a target router for network configuration, and storing network configuration information corresponding to the target router, wherein the network configuration information includes a network configuration name and a network configuration password;

[0010] Write the network configuration information, perform near field communication with the device to be configured through the NFC communication module, write the network configuration information into the device to be configured, and enable the device to be configured to configure the network with the target router according to the network configuration information.

[0011] Furthermore, it also includes judging the cloud account information, reading whether the target cloud account information exists in the device to be configured through the NFC communication module. If it exists, the target cloud account information stored in the device to be configured is spliced ​​with the configuration information in the device to be configured and written into the private data area of ​​the device to be configured. If it does not exist, the original account information data packet header in the device to be configured is cleared.

[0012] Furthermore, after clearing the original account information data packet header in the device to be configured, it also includes near-field communication with the device to be configured through the NFC communication module, splicing the pre-stored target cloud account information with the network configuration information in the device to be configured and writing them into the private data area of ​​the device to be configured, and the device to be configured establishes a network connection with the target cloud corresponding to the target cloud account information according to the target cloud account information, and receives operation instructions issued by the target cloud.

[0013] Furthermore, the spliced ​​target cloud account information and the network configuration information are written into a private data area of ​​the device to be configured using the NFCA format.

[0014] Furthermore, while writing the network configuration information, it also includes sending the information of the network device to be configured, performing near field communication with the network device to be configured through the NFC communication module and reading the network device information corresponding to the network device to be configured, and sending the network device information to the target cloud for issuing operation instructions to the network device to be configured.

[0015] Furthermore, the information of the device to be networked includes MAC address information and device ID information.

[0016] Furthermore, the information of the device to be configured in the device to be configured is read using the DNEF format.

[0017] The second object of the present invention is achieved by adopting the following technical solution:

[0018] An electronic device, comprising: a processor;

[0019] A memory; and a program, wherein the program is stored in the memory and is configured to be executed by a processor, and the program includes instructions for executing the NFC-based device networking method described in the present application.

[0020] The third object of the present invention is achieved by adopting the following technical solutions:

[0021] A computer-readable storage medium stores a computer program, wherein the computer program is executed by a processor to implement the NFC-based device network configuration method described in the present application.

[0022] The fourth object of the present invention is achieved by the following technical solutions:

[0023] A computer program product includes a computer program, and when the computer program is executed by a processor, the device network configuration method based on NFC described in the present application is implemented.

[0024] Compared with the prior art, the beneficial effect of the present invention is that: the NFC-based device network configuration method in the present application stores the network configuration information corresponding to the target router through the mobile phone terminal, and the mobile phone terminal performs near-field communication with the device to be configured through the NFC communication module, and writes the network configuration information into the device to be configured, so that the device to be configured can be configured with the target router according to the network configuration information, and utilizes the NFC interaction method and data transmission method to enhance the stability of network configuration, and only needs to bring the mobile phone terminal and the device to be configured into close proximity to achieve the network configuration of the device to be configured and the target router, which greatly simplifies the network configuration process and improves the network configuration efficiency.

[0025] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention and implement it according to the contents of the specification, the following is a detailed description of the preferred embodiments of the present invention in conjunction with the accompanying drawings. The specific implementation of the present invention is given in detail by the following embodiments and their accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0027] Figure 1 A schematic diagram of the process of the NFC-based device network configuration method of the present invention;

[0028] Figure 2 This is a schematic diagram of the data transmission flow in the NFC-based device network configuration method of the present invention. DETAILED DESCRIPTION

[0029] The present invention is further described below in conjunction with the accompanying drawings and specific implementation methods. It should be noted that, under the premise of no conflict, the various embodiments or technical features described below can be arbitrarily combined to form a new embodiment.

[0030] like Figure 1-2 As shown, the NFC-based device network configuration method in the present application is applied between a mobile phone terminal and a device to be configured. In this embodiment, both the mobile phone terminal and the device to be configured are equipped with an NFC communication module for data interaction. The method includes the following steps:

[0031] Connect to the target router. The mobile phone terminal connects to the target router for network configuration and stores network configuration information corresponding to the target router. The network configuration information includes a network configuration name and a network configuration password.

[0032] Write the network configuration information. The mobile phone terminal performs near field communication with the device to be configured through the NFC communication module, writes the network configuration information into the device to be configured, and enables the device to be configured to configure the network with the target router according to the network configuration information.

[0033] In this embodiment, when the network device to be configured is successfully configured with the target router, the network device to be configured needs to accept the operation instructions issued by the target cloud, and the management background sends the operation instructions to the network device to be configured through the target cloud, thereby realizing remote control of the network device to be configured. Therefore, this embodiment also includes the following steps:

[0034] To determine the cloud account information, the mobile phone terminal reads through the NFC communication module whether the target cloud account information exists in the device to be configured. If so, the target cloud account information stored in the device to be configured and the configuration information in the device to be configured are spliced ​​and written into the private data area of ​​the device to be configured. If not, the original account information data packet header in the device to be configured is cleared. In this embodiment, the configuration information packet header is cleared to enable the device to be configured to make a judgment when reading data during the configuration process, and it is judged that there is no need to read the original account information data packet header.

[0035] Preferably, after clearing the original account information data packet header in the network device to be configured, it also includes near field communication with the network device to be configured through the NFC communication module, splicing the pre-stored target cloud account information with the network configuration information in the network device to be configured and writing them into the private data area of ​​the network device to be configured, and the network device to be configured establishes a network connection with the target cloud corresponding to the target cloud account information according to the target cloud account information, and receives the operation instructions issued by the target cloud. In this embodiment, the spliced ​​target cloud account information and the network configuration information are written into the private data area of ​​the network device to be configured using the NFCA format, and the above-mentioned NFCA format is one of the NFC read-write formats. In this embodiment, the mobile terminal is connected to the target cloud in advance, and stores the target cloud account information corresponding to the target cloud. The target cloud account information includes the target cloud account information, the target cloud password information, and the target cloud address information.

[0036] Send the information of the network device to be configured. The mobile terminal performs near field communication with the network device to be configured through the NFC communication module and reads the network device information corresponding to the network device to be configured, and sends the network device information to the target cloud for issuing operation instructions to the network device to be configured. The target cloud accurately sends the operation instructions sent by the background to the corresponding network device to be configured according to the information of the network device to be configured. The above-mentioned network device information to be configured includes MAC address information and device ID information. In this embodiment, the mobile terminal uses the DNEF format to read the network device information to be configured in the network device to be configured. The reading and writing of the network device to be configured by the above-mentioned mobile terminal are completed through the internally set mobile phone plug-in. The mobile phone plug-in includes a reading module and a writing module. The above-mentioned mobile phone plug-in is developed based on a cross-platform framework and can be directly used in the uni-app application. Uni-app is a framework that uses Vue.js to develop all front-end applications. Developers write a set of codes that can be published to multiple platforms such as iOS, Android, H5 and various applets (WeChat / Alipay / Baidu / Toutiao / QQ / Dingding), and can also be transplanted to the native application in the mobile phone after modification. The technical solution in this application simplifies the process of device network configuration. Users only need to connect the mobile phone terminal to WiFi and enter the password to touch the device to be configured infinitely for network configuration, which shortens the network configuration time. Data is transmitted through NFC near-field interaction. There is no device connection process for Bluetooth and hotspot configuration. While shortening the network configuration time, it also avoids the problem of device connection timeout in complex environments.

[0037] The present invention also provides an electronic device, comprising: a processor;

[0038] A memory; and a program, wherein the program is stored in the memory and is configured to be executed by a processor, and the program includes instructions for executing the NFC-based device networking method described in the present application.

[0039] The present invention also provides a computer-readable storage medium on which a computer program is stored, and the computer program is executed by a processor to implement the NFC-based device network configuration method described in the present application.

[0040] The present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements the NFC-based device network configuration method described in the present application.

[0041] The NFC-based device network configuration method in the present application stores network configuration information corresponding to the target router through a mobile phone terminal, and the mobile phone terminal performs near field communication with the network device to be configured through an NFC communication module, writes the network configuration information into the network device to be configured, and enables the network device to be configured to configure with the target router according to the network configuration information. The NFC interaction method and data transmission method are used to enhance the stability of network configuration. The network configuration of the network device to be configured and the target router can be realized by only bringing the mobile phone terminal and the network device to be configured close to each other, which greatly simplifies the network configuration process and improves the network configuration efficiency. In addition, the communication connection between the target cloud and the network device to be configured is realized, which facilitates the background to issue operation instructions to the network device to be configured through the cloud, and realizes the intelligent control of the network device to be configured.

[0042] The above are only preferred embodiments of the present invention and are not intended to limit the present invention in any form. Any ordinary technician in the industry can smoothly implement the present invention as shown in the drawings and above. However, any equivalent changes, modifications and evolutions made by technicians familiar with the profession without departing from the scope of the technical solution of the present invention using the technical content disclosed above are all equivalent embodiments of the present invention. At the same time, any equivalent changes, modifications and evolutions made to the above embodiments based on the essential technology of the present invention are still within the protection scope of the technical solution of the present invention.

Claims

1. A device network configuration method based on NFC, which is applied between a mobile phone terminal and a device to be configured, and is characterized by: The mobile phone terminal and the device to be networked are both installed with an NFC communication module for data interaction. The method is executed by the mobile phone terminal, and includes the following steps: connecting to a target router, connecting to a target router for network configuration, storing network configuration information corresponding to the target router, wherein the network configuration information includes a network configuration name and a network configuration password; writing the network configuration information, performing near field communication with the device to be networked through the NFC communication module, and writing the network configuration information into the device to be networked, so that the device to be networked performs network configuration with the target router according to the network configuration information; Determine the cloud account information, read through the NFC communication module whether the target cloud account information exists in the network device to be configured, if so, concatenate the target cloud account information stored in the network device to be configured with the network configuration information in the network device to be configured and write them into the private data area of ​​the network device to be configured, if not, clear the original account information data packet header in the network device to be configured; and after clearing the original account information data packet header in the network device to be configured, it also includes near-field communication with the network device to be configured through the NFC communication module, concatenate the pre-stored target cloud account information with the network configuration information in the network device to be configured and write them into the private data area of ​​the network device to be configured, the network device to be configured establishes a network connection with the target cloud corresponding to the target cloud account information according to the target cloud account information, and receives operation instructions issued by the target cloud.

2. The NFC-based device network configuration method according to claim 1, characterized in that: The spliced ​​target cloud account information and the network configuration information are written into the private data area of ​​the device to be configured using the NFCA format.

3. The NFC-based device network configuration method according to claim 1, characterized in that: The writing of the network configuration information also includes sending the information of the network device to be configured, performing near field communication with the network device to be configured through the NFC communication module and reading the network device information corresponding to the network device to be configured, and sending the network device information to the target cloud for issuing operation instructions to the network device to be configured.

4. The NFC-based device network configuration method according to claim 3, characterized in that: The information of the device to be networked includes MAC address information and device ID information.

5. The NFC-based device network configuration method according to claim 3, characterized in that: Use DNEF format to read the device information in the device to be configured.

6. An electronic device, characterized in that include: processor; Memory; And a program, wherein the program is stored in the memory and is configured to be executed by a processor, and the program includes instructions for executing the NFC-based device networking method according to any one of claims 1 to 5.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: The computer program is executed by a processor to implement the NFC-based device networking method according to any one of claims 1 to 5.

8. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the NFC-based device network configuration method described in any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Household electric appliance, network distribution method thereof and mobile terminal

    CN105979571A

  • Internet of things household appliance rapid binding method and system and relevant device

    CN108632798A