CN114125800A - NFC-based equipment network distribution method, equipment, medium and product - Google Patents

NFC-based equipment network distribution method, equipment, medium and product Download PDF

Info

Publication number
CN114125800A
CN114125800A CN202111411737.9A CN202111411737A CN114125800A CN 114125800 A CN114125800 A CN 114125800A CN 202111411737 A CN202111411737 A CN 202111411737A CN 114125800 A CN114125800 A CN 114125800A
Authority
CN
China
Prior art keywords
equipment
information
distributed
nfc
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111411737.9A
Other languages
Chinese (zh)
Inventor
罗文涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Lango Electronic Science and Technology Co Ltd
Original Assignee
Guangzhou Lango Electronic Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Lango Electronic Science and Technology Co Ltd filed Critical Guangzhou Lango Electronic Science and Technology Co Ltd
Priority to CN202111411737.9A priority Critical patent/CN114125800A/en
Publication of CN114125800A publication Critical patent/CN114125800A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/50Secure pairing of devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Abstract

The invention provides an equipment distribution network method based on NFC, which comprises the steps of connecting a target router for distribution network, and storing distribution network information corresponding to the target router, wherein the distribution network information comprises a distribution network name and a distribution network password; and performing near field communication with equipment to be networked through an NFC communication module, writing the distribution network information into the equipment to be networked, and enabling the equipment to be networked to perform distribution with the target router according to the distribution network information. According to the NFC-based equipment network distribution method, the stability of the distribution network is enhanced by utilizing an NFC interaction mode and a data transmission mode, the distribution network of the equipment to be distributed and the target router can be realized only by approaching the mobile phone terminal and the equipment to be distributed in a close range, the distribution network flow is greatly simplified, and the distribution network efficiency is improved.

Description

NFC-based equipment network distribution method, equipment, medium and product
Technical Field
The invention relates to the field of equipment distribution networks, in particular to an equipment distribution network method, equipment, a medium and a product based on NFC.
Background
With the development of intelligent internet of things, various household appliances in life start to be sequentially connected into an internet of things ecosystem, and to achieve the purpose that a device is connected into an internet of things platform, a Wifi device needs to be connected with a router to achieve data reporting and remote control, and the process that the Wifi device obtains names and passwords of Wifi hotspots is called as a distribution network. The existing distribution network modes with more functions comprise a device hot point distribution network, a Bluetooth distribution network, a mobile phone hot point distribution network and the like. In the process of the distribution network, when the number of devices to be distributed is large or under the conditions of bluetooth and severe hot spot environment, the distribution network speed is low, the packet loss rate is high due to data transmission, and the distribution network process is relatively complicated.
Disclosure of Invention
In order to overcome the defects of the prior art, one of the purposes of the invention is to provide an equipment network distribution method based on NFC, which can solve the problems that the network distribution speed is slow and the network distribution process is relatively complicated when the number of equipment to be distributed is large or under the conditions of Bluetooth and severe hot spot environment in the traditional network distribution process.
The second purpose of the present invention is to provide an electronic device, which can solve the problems that the distribution speed is slow and the distribution process is relatively complicated when the number of devices to be distributed is large or under the conditions of bluetooth and severe hot spot environment in the traditional distribution process.
The invention further aims to provide a computer readable storage medium, which can solve the problems that the distribution speed is low and the distribution process is relatively complicated when the number of devices to be distributed is large or under the conditions of Bluetooth and hot spot environment is severe in the traditional distribution process.
The fourth purpose of the present invention is to provide a computer program product, which can solve the problems that the distribution speed is slow and the distribution process is relatively complicated when the number of devices to be distributed is large or under the conditions of bluetooth and severe hot spot environment in the traditional distribution process.
One of the purposes of the invention is realized by adopting the following technical scheme:
the method for distributing the network to the equipment based on the NFC is applied between a mobile phone terminal and equipment to be distributed, NFC communication modules for data interaction are installed in the mobile phone terminal and the equipment to be distributed, and the method is executed by the mobile phone terminal and comprises the following steps:
the network distribution system comprises a connection target router, a network distribution server and a network distribution server, wherein the connection target router is connected with a target router for network distribution and stores network distribution information corresponding to the target router, and the network distribution information comprises a network distribution name and a network distribution password;
and writing distribution network information, performing near field communication with equipment to be distributed through an NFC communication module, writing the distribution network information into the equipment to be distributed, and enabling the equipment to be distributed with the target router according to the distribution network information.
The method further comprises the steps of judging cloud account information, reading whether target cloud account information exists in the equipment to be networked through the NFC communication module, splicing the target cloud account information stored in the equipment to be networked with the distribution network information in the equipment to be networked if the target cloud account information exists, writing the spliced information into a private data area of the equipment to be networked, and setting an original account information data packet header in the equipment to be networked if the target cloud account information does not exist.
Further, after the original account information data packet header in the device to be networked is emptied, near field communication is performed between the device to be networked and the NFC communication module, pre-stored target cloud account information and distribution network information in the device to be networked are spliced and written into a private data area of the device to be networked, and the device to be networked establishes network connection according to the target cloud account information and a target cloud corresponding to the target cloud account information and receives an operation instruction issued by the target cloud.
Further, writing the spliced target cloud account information and the spliced distribution network information into a private data area of the equipment to be distributed by using an NFCA format.
Further, the method includes the steps of writing in distribution network information and sending information of equipment to be distributed, performing near field communication with the equipment to be distributed through the NFC communication module, reading information of the equipment to be distributed corresponding to the equipment to be distributed, and sending the information of the equipment to be distributed to a target cloud end for issuing an operation instruction to the equipment to be distributed.
Further, the information of the network to be distributed includes MAC address information and device ID information.
And further, reading the information of the equipment to be distributed in the equipment to be distributed by using the DNEF format.
The second purpose of the invention is realized by adopting the following technical scheme:
an electronic device, comprising: a processor;
a memory; and a program, wherein the program is stored in the memory and configured to be executed by the processor, the program comprising instructions for performing the NFC-based device networking method described herein.
The third purpose of the invention is realized by adopting the following technical scheme:
a computer-readable storage medium having stored thereon a computer program for execution by a processor of the NFC-based device networking method described herein.
The fourth purpose of the invention is realized by adopting the following technical scheme:
a computer program product comprising a computer program which, when executed by a processor, implements the NFC-based device networking method described in the present application.
Compared with the prior art, the invention has the beneficial effects that: according to the NFC-based equipment distribution network method, the distribution network information corresponding to a target router is stored through the mobile phone terminal, the mobile phone terminal performs near field communication with equipment to be distributed through the NFC communication module in advance, the distribution network information is written into the equipment to be distributed, the equipment to be distributed is enabled to be distributed with the target router according to the distribution network information, the stability of a distribution network is enhanced by utilizing an interaction mode and a data transmission mode of NFC, the distribution network of the equipment to be distributed and the target router can be realized only by closely approaching the mobile phone terminal and the equipment to be distributed, the distribution network flow is greatly simplified, and the distribution network efficiency is improved.
The foregoing description is only an overview of the technical solutions of the present invention, and in order to make the technical solutions of the present invention more clearly understood and to implement them in accordance with the contents of the description, the following detailed description is given with reference to the preferred embodiments of the present invention and the accompanying drawings. The detailed description of the present invention is given in detail by the following examples and the accompanying drawings.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a schematic flow chart of a method for distributing a network to a device based on NFC according to the present invention;
fig. 2 is a schematic diagram of a data transmission flow in the NFC-based device network distribution method of the present invention.
Detailed Description
The present invention will be further described with reference to the accompanying drawings and the detailed description, and it should be noted that any combination of the embodiments or technical features described below can be used to form a new embodiment without conflict.
As shown in fig. 1-2, the method for distributing a network to a device based on NFC in the present application is applied between a mobile phone terminal and a device to be distributed, where the mobile phone terminal and the device to be distributed are both installed with NFC communication modules for data interaction, and the method includes the following steps:
and the mobile phone terminal is connected with the target router for the distribution network and stores distribution network information corresponding to the target router, wherein the distribution network information comprises a distribution network name and a distribution network password.
And writing distribution network information, performing near field communication on the mobile phone terminal and equipment to be distributed through an NFC communication module, writing the distribution network information into the equipment to be distributed, and enabling the equipment to be distributed with the target router according to the distribution network information.
In this embodiment, after the device to be configured and the target router are successfully configured, the device to be configured needs to receive an operation instruction issued by the target cloud, and the management background issues the operation instruction to the device to be configured through the target cloud, so that the device to be configured is remotely controlled. Therefore, the present embodiment further includes the following steps:
the method comprises the steps of judging cloud account information, reading whether target cloud account information exists in equipment to be configured through an NFC communication module by a mobile phone terminal, splicing the target cloud account information stored in the equipment to be configured with the distribution network information in the equipment to be configured and writing the spliced information into a private data area of the equipment to be configured if the target cloud account information exists, and emptying an original account information data packet header in the equipment to be configured if the target cloud account information does not exist, wherein the emptying of the distribution network information packet header is used for judging when the equipment to be configured reads data in a distribution network process and judging that the original account information data packet header does not need to be read.
Preferably, after the original account information data packet header in the device to be networked is emptied, near field communication is performed between the device to be networked and the NFC communication module, pre-stored target cloud account information is spliced with the distribution network information in the device to be networked and then written into a private data area of the device to be networked, and the device to be networked establishes network connection according to the target cloud account information and a target cloud corresponding to the target cloud account information and receives an operation instruction issued by the target cloud. In this embodiment, the target cloud account information and the distribution network information after splicing are written into the private data area of the to-be-distributed network device by using an NFCA format, where the NFCA format is one of NFC read-write formats. In this embodiment, the mobile phone terminal is connected with the target cloud in advance, and stores target cloud account information corresponding to the target cloud, where the target cloud account information includes target cloud account information, target cloud password information, and target cloud address information.
And sending the information of the equipment to be distributed, carrying out near field communication on the mobile phone terminal and the equipment to be distributed through the NFC communication module, reading the information of the equipment to be distributed corresponding to the equipment to be distributed, and sending the information of the equipment to be distributed to a target cloud end for issuing an operation instruction to the equipment to be distributed. And the target cloud accurately issues the operation instruction sent by the background to the corresponding to-be-configured network equipment according to the to-be-configured network equipment information. The information of the network to be distributed comprises MAC address information and equipment ID information. In this embodiment, the mobile phone terminal reads information of the device to be connected in the network by using the DNEF format. The mobile phone terminal reads and writes the equipment to be distributed through the mobile phone plug-ins arranged inside the mobile phone terminal, each mobile phone plug-in comprises a reading module and a writing module, the mobile phone plug-ins are developed based on a cross-platform frame and can be directly applied to uni-app application, the uni-app is a frame for developing all front-end applications by using Vue. According to the technical scheme, the flow of the equipment distribution network is simplified, a user can touch the equipment to be distributed infinitely only by connecting the mobile phone terminal with the WiFi input password, the distribution network time is shortened, data transmission is carried out in a near field interaction mode of touching through NFC, the equipment connection flow when the Bluetooth and the hot point are distributed is avoided, and the overtime problem of equipment connection under the complex environment is avoided while the distribution network time is shortened.
The present invention also provides an electronic device, comprising: a processor;
a memory; and a program, wherein the program is stored in the memory and configured to be executed by the processor, the program comprising instructions for performing the NFC-based device networking method described herein.
The invention also provides a computer readable storage medium, on which a computer program is stored, the computer program being executed by a processor to perform the NFC-based device network distribution method described in this application.
The invention also provides a computer program product comprising a computer program, which when executed by a processor implements the NFC-based device network distribution method described in the present application.
According to the NFC-based equipment network distribution method, the network distribution information corresponding to a target router is stored through the mobile phone terminal, the mobile phone terminal performs near-field communication with equipment to be distributed through the NFC communication module, and the network distribution information is written into the equipment to be distributed, so that the equipment to be distributed is distributed with the target router according to the network distribution information, the stability of a distribution network is enhanced by utilizing an NFC interaction mode and a data transmission mode, the network distribution of the equipment to be distributed and the target router can be realized only by closely approaching the mobile phone terminal and the equipment to be distributed, the network distribution flow is greatly simplified, and the network distribution efficiency is improved; and the communication connection between the target cloud end and the equipment to be distributed is realized, the background can conveniently issue an operation instruction to the equipment to be distributed through the cloud end, and the intelligent control of the equipment to be distributed is realized.
The foregoing is merely a preferred embodiment of the invention and is not intended to limit the invention in any manner; those skilled in the art can readily practice the invention as shown and described in the drawings and detailed description herein; however, those skilled in the art should appreciate that they can readily use the disclosed conception and specific embodiments as a basis for designing or modifying other structures for carrying out the same purposes of the present invention without departing from the scope of the invention as defined by the appended claims; meanwhile, any changes, modifications, and evolutions of the equivalent changes of the above embodiments according to the actual techniques of the present invention are still within the protection scope of the technical solution of the present invention.

Claims (10)

1. An NFC-based equipment network distribution method is applied between a mobile phone terminal and equipment to be distributed, and is characterized in that: the method is implemented by the mobile phone terminal and comprises the following steps:
the network distribution system comprises a connection target router, a network distribution server and a network distribution server, wherein the connection target router is connected with a target router for network distribution and stores network distribution information corresponding to the target router, and the network distribution information comprises a network distribution name and a network distribution password;
and writing distribution network information, performing near field communication with equipment to be distributed through an NFC communication module pre-module, writing the distribution network information into the equipment to be distributed, and enabling the equipment to be distributed with the target router according to the distribution network information.
2. The NFC-based device networking method of claim 1, wherein: the method comprises the steps of judging cloud account information, reading whether target cloud account information exists in equipment to be networked through an NFC communication module, splicing the target cloud account information stored in the equipment to be networked with the distribution network information in the equipment to be networked if the target cloud account information exists, writing the spliced information into a private data area of the equipment to be networked, and emptying an original account information data packet header in the equipment to be networked if the target cloud account information does not exist.
3. The NFC-based device networking method of claim 2, wherein: after the original account information data packet header in the to-be-configured network equipment is emptied, near field communication is carried out between the to-be-configured network equipment and the NFC communication module, pre-stored target cloud account information and the distribution network information in the to-be-configured network equipment are spliced and written into a private data area of the to-be-configured network equipment, and the to-be-configured network equipment establishes network connection according to the target cloud account information and a target cloud corresponding to the target cloud account information and receives an operation instruction issued by the target cloud.
4. The NFC-based device networking method of claim 3, wherein: and writing the spliced target cloud account information and the spliced distribution network information into a private data area of the equipment to be distributed by using an NFCA format.
5. The NFC-based device networking method of claim 2, wherein: the method comprises the steps of writing in distribution network information, sending information of equipment to be distributed, carrying out near field communication with the equipment to be distributed through an NFC communication module, reading information of the equipment to be distributed corresponding to the equipment to be distributed, and sending the information of the equipment to be distributed to a target cloud end for issuing an operation instruction to the equipment to be distributed.
6. The NFC-based device networking method of claim 5, wherein: the information of the equipment to be distributed comprises MAC address information and equipment ID information.
7. The NFC-based device networking method of claim 5, wherein: and reading the information of the equipment to be distributed in the equipment to be distributed by using the DNEF format.
8. An electronic device, characterized by comprising: a processor;
a memory; and a program, wherein the program is stored in the memory and configured to be executed by the processor, the program comprising instructions for performing the NFC-based device networking method of any of claims 1-7.
9. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program is executed by a processor to perform the NFC-based device networking method of any of claims 1-7.
10. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the NFC-based device networking method according to any of claims 1-7.
CN202111411737.9A 2021-11-25 2021-11-25 NFC-based equipment network distribution method, equipment, medium and product Pending CN114125800A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111411737.9A CN114125800A (en) 2021-11-25 2021-11-25 NFC-based equipment network distribution method, equipment, medium and product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111411737.9A CN114125800A (en) 2021-11-25 2021-11-25 NFC-based equipment network distribution method, equipment, medium and product

Publications (1)

Publication Number Publication Date
CN114125800A true CN114125800A (en) 2022-03-01

Family

ID=80373081

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111411737.9A Pending CN114125800A (en) 2021-11-25 2021-11-25 NFC-based equipment network distribution method, equipment, medium and product

Country Status (1)

Country Link
CN (1) CN114125800A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174672A (en) * 2022-06-28 2022-10-11 海信集团控股股份有限公司 Terminal, display device and data transmission method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174672A (en) * 2022-06-28 2022-10-11 海信集团控股股份有限公司 Terminal, display device and data transmission method
CN115174672B (en) * 2022-06-28 2024-03-08 海信集团控股股份有限公司 Terminal, display device and data transmission method

Similar Documents

Publication Publication Date Title
CN105763619B (en) The method and device that client and server-side are communicated
JP2018166323A (en) Network service configuration method and network management device
CN111752480A (en) Data writing method, data reading method, related equipment and system
CN103108294A (en) Data forwarding processing method and gateway equipment and communication system
CN104753989A (en) Screen image transmission and playing method and device based on Web-based OS runtime environment
CN114125800A (en) NFC-based equipment network distribution method, equipment, medium and product
CN107018189A (en) Migrate application data and receive the method and device of application data
CN111107119B (en) Data access method, device and system based on cloud storage system and storage medium
CN111988776B (en) Network switching method, device, equipment and storage medium
CN107135108A (en) The update method and system of network connection list
CN104753804A (en) Data stream transmission control method, device and system
CN112422485B (en) Communication method and device of transmission control protocol
CN102651777B (en) Link establishing method and equipment
CN105141696A (en) File uploading method and device
WO2021102694A1 (en) Ble mesh device access method and apparatus, device and storage medium
CN111367761A (en) Information management method, system and related components of universal server
US20160100021A1 (en) Information processing device, destination information updating method, and record medium
CN102761780A (en) Method for obtaining media metadata by intelligent remote controller to
CN113342456A (en) Connection method, device, equipment and storage medium
CN111740881B (en) Network card link detection method, system, equipment and computer storage medium
CN110661869B (en) Node online method, system, device, equipment and computer storage medium
WO2020221033A1 (en) Method for managing remote storage device by means of management device
CN113794751A (en) Data interaction method, system, equipment and storage medium of Internet of things system
CN102891888B (en) A kind of data access method and relevant device, system
KR20130056539A (en) Apparatas and method for performing communication with media transfer protocol supported device in a portable terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination