CN111867000A - Equipment network distribution method and device and computer readable storage medium - Google Patents

Equipment network distribution method and device and computer readable storage medium Download PDF

Info

Publication number
CN111867000A
CN111867000A CN202010733842.3A CN202010733842A CN111867000A CN 111867000 A CN111867000 A CN 111867000A CN 202010733842 A CN202010733842 A CN 202010733842A CN 111867000 A CN111867000 A CN 111867000A
Authority
CN
China
Prior art keywords
equipment
wifi
networked
information
terminal
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
CN202010733842.3A
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.)
Shenzhen Skyworth Digital Technology Co Ltd
Original Assignee
Shenzhen Skyworth Digital 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 Shenzhen Skyworth Digital Technology Co Ltd filed Critical Shenzhen Skyworth Digital Technology Co Ltd
Priority to CN202010733842.3A priority Critical patent/CN111867000A/en
Publication of CN111867000A publication Critical patent/CN111867000A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • 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
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/14Access restriction or access information delivery, e.g. discovery data delivery using user query or user detection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a method and a device for distributing network for equipment and a computer readable storage medium, wherein the method is applied to terminal equipment and comprises the following steps: if the temporary verification information stored by the NFC data module in the equipment to be networked is read, accessing a wireless access point of the equipment to be networked based on the temporary verification information so as to establish wireless network connection with the equipment to be networked; and transmitting WiFi distribution network information to the equipment to be distributed based on the wireless network connection, wherein the equipment to be distributed is networked based on the WiFi distribution network information when the WiFi distribution network information sent by the terminal equipment is received. The method and the device increase the safety of connection between the equipment to be distributed and the terminal equipment, so that the distribution network information in the terminal equipment is not easy to steal, and the safety of the terminal equipment in the distribution process of the equipment to be distributed is improved.

Description

Equipment network distribution method and device and computer readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for configuring a network for a device, and a computer-readable storage medium.
Background
At present, a lot of intelligent devices such as story machines and intelligent robots are not provided with external interface display devices and input devices, so that the network distribution of the devices is a relatively complicated matter.
In the existing network distribution process of equipment, a wireless access mode is started through one end of terminal equipment or equipment to be distributed, the other end of the terminal equipment is accessed through a fixed WiFi account and a WiFi password, connection between the terminal equipment and the equipment to be distributed is established, and then the terminal equipment is used for distributing a network for the equipment to be distributed. However, the fixed WiFi account and the WiFi password are used for establishing connection in the network distribution process of the equipment, and the fixed WiFi account and the WiFi password are easy to crack, so that the safety between the terminal equipment and the equipment to be distributed is low.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a method and a device for equipment network distribution and a computer readable storage medium, and aims to solve the technical problem of low security between terminal equipment and equipment to be network distributed.
In order to achieve the above object, the present invention provides a device network distribution method, which is applied to a terminal device, and comprises the following steps:
if the temporary verification information stored by the NFC data module in the equipment to be networked is read, accessing a wireless access point of the equipment to be networked based on the temporary verification information so as to establish wireless network connection with the equipment to be networked;
and transmitting WiFi distribution network information to the equipment to be distributed based on the wireless network connection, wherein the equipment to be distributed is networked based on the WiFi distribution network information when the WiFi distribution network information sent by the terminal equipment is received.
Optionally, the temporary verification information includes a WiFi name of the device to be configured and a WiFi password corresponding to the WiFi name;
the step of accessing the wireless access point of the device to be networked based on the temporary verification information to establish wireless network connection with the device to be networked comprises the following steps:
and accessing a wireless access point of the equipment to be networked based on the WiFi name and the WiFi password so as to establish wireless network connection with the equipment to be networked, wherein the equipment to be networked generates the temporary verification information based on equipment information of the equipment to be networked, writes the temporary verification information into the NFC data module, and creates the wireless access point based on the WiFi name and the WiFi password.
Optionally, the NFC data module includes an NFC data interaction module or an NFC tag.
Optionally, the WiFi distribution network information includes a target WiFi name and a target WiFi password;
the method comprises the following steps of transmitting WiFi distribution network information to the equipment to be distributed based on the wireless network connection, wherein when the WiFi distribution network information sent by the terminal equipment is received, the step of networking the equipment to be distributed based on the WiFi distribution network information comprises the following steps:
and transmitting WiFi distribution network information to the equipment to be distributed based on the wireless network connection, wherein when the WiFi distribution network information sent by the terminal equipment is received, the equipment to be distributed scans connectable equipment, determines target equipment in the connectable equipment based on the target WiFi name, and establishes wireless network connection with the target equipment based on the target WiFi password.
In order to achieve the above object, the present invention further provides a device network distribution method, where the device network distribution method is applied to a device to be distributed, and the device network distribution method includes:
if temporary verification information stored in an NFC data module in the terminal equipment is read, accessing a wireless access point of the terminal equipment based on the temporary verification information to establish wireless network connection with the terminal equipment so that the terminal equipment can transmit WiFi distribution network information to the equipment to be distributed based on the wireless network connection;
and when the WiFi distribution network information sent by the terminal equipment is received, networking based on the WiFi distribution network information.
Optionally, the temporary verification information includes a WiFi name of the terminal device and a WiFi password corresponding to the WiFi name;
the step of accessing the wireless access point of the terminal device based on the temporary authentication information to establish wireless network connection with the terminal device comprises:
and accessing a wireless access point of the terminal equipment based on the WiFi name and the WiFi password so as to establish wireless network connection with the terminal equipment, wherein the terminal equipment generates the temporary verification information based on equipment information of the terminal equipment, writes the temporary verification information into the NFC data module, and creates the wireless access point based on the WiFi name and the WiFi password.
Optionally, the NFC data module includes an NFC data interaction module or an NFC tag.
Optionally, the WiFi distribution network information includes a target WiFi name and a target WiFi password;
when the WiFi distribution network information sent by the terminal equipment is received, the step of networking based on the WiFi distribution network information comprises the following steps:
when the WiFi distribution network information sent by the terminal equipment is received, connectable equipment is scanned, and target equipment is determined in the connectable equipment based on the target WiFi name;
and establishing wireless network connection with the target equipment based on the target WiFi name and the target WiFi password.
In addition, to achieve the above object, the present invention further provides an apparatus network distribution device, including: the device distribution method comprises a memory, a processor and a device distribution program stored on the memory and capable of running on the processor, wherein the device distribution program realizes the steps of the device distribution method when being executed by the processor.
In addition, to achieve the above object, the present invention further provides a computer-readable storage medium, where a device distribution network program is stored, and when executed by a processor, the computer-readable storage medium implements the steps of the device distribution network method as described above.
According to the method, if the temporary verification information stored by the NFC data module in the equipment to be networked is read, the wireless access point of the equipment to be networked is accessed based on the temporary verification information so as to establish wireless network connection with the equipment to be networked; and transmitting WiFi distribution network information to the equipment to be distributed based on the wireless network connection, wherein the equipment to be distributed is networked based on the WiFi distribution network information when the WiFi distribution network information sent by the terminal equipment is received. In the embodiment, the terminal device reads temporary verification information stored by an NFC data module in the device to be networked by approaching the device to be networked, and establishes network connection with the device to be networked based on the temporary verification information, because the temporary verification information can be acquired only by approaching the device to be networked, and the network can be distributed to the device to be networked only after the terminal device is connected with the device to be networked based on the temporary verification information, the terminal device can be approached to the device to be networked only by a user manually, the network can be distributed to the device to be networked, so that other devices cannot indirectly acquire and crack the temporary verification information, and the connection safety between the device to be networked and the terminal device is improved; because the security of the connection between the network equipment to be distributed and the terminal equipment is ensured, the network distribution information in the terminal equipment is further difficult to steal, and the security of the terminal equipment to the network distribution process of the network equipment to be distributed is improved.
Drawings
Fig. 1 is a schematic structural diagram of an equipment distribution network device in a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a first embodiment of a network distribution method of the device of the present invention;
fig. 3 is a schematic structural diagram of a terminal device and a device to be networked in the device networking method of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a device distribution network apparatus in a hardware operating environment according to an embodiment of the present invention.
The equipment distribution network device of the embodiment of the invention can be a PC, and can also be a mobile terminal equipment with a display function, such as a smart phone, a tablet computer, an electronic book reader, an MP3(Moving Picture Experts Group Audio Layer III, dynamic video Experts compression standard Audio Layer 3) player, an MP4(Moving Picture Experts Group Audio Layer IV, dynamic video Experts compression standard Audio Layer 4) player, a portable computer and the like.
As shown in fig. 1, the device network distribution apparatus may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the device distribution network apparatus may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WiFi module, and the like. Such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display screen according to the brightness of ambient light, and a proximity sensor that may turn off the display screen and/or the backlight when the mobile terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the mobile terminal is stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer and tapping) and the like for recognizing the attitude of the mobile terminal; of course, the mobile terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.
Those skilled in the art will appreciate that the configuration of the equipment distribution network apparatus shown in fig. 1 does not constitute a limitation of the equipment distribution network apparatus and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include an operating system, a network communication module, a user interface module, and a device distribution network program therein.
In the device network distribution apparatus shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and processor 1001 may be used to invoke the device distribution network program stored in memory 1005.
In this embodiment, the device network distribution apparatus includes: the system comprises a memory 1005, a processor 1001 and a device distribution network program which is stored in the memory 1005 and can run on the processor 1001, wherein when the processor 1001 calls the device distribution network program stored in the memory 1005, the following operations are executed:
if the temporary verification information stored by the NFC data module in the equipment to be networked is read, accessing a wireless access point of the equipment to be networked based on the temporary verification information so as to establish wireless network connection with the equipment to be networked;
and transmitting WiFi distribution network information to the equipment to be distributed based on the wireless network connection, wherein the equipment to be distributed is networked based on the WiFi distribution network information when the WiFi distribution network information sent by the terminal equipment is received.
Further, the processor 1001 may call the device distribution network program stored in the memory 1005, and further perform the following operations:
and accessing a wireless access point of the equipment to be networked based on the WiFi name and the WiFi password so as to establish wireless network connection with the equipment to be networked, wherein the equipment to be networked generates the temporary verification information based on equipment information of the equipment to be networked, writes the temporary verification information into the NFC data module, and creates the wireless access point based on the WiFi name and the WiFi password.
Further, the processor 1001 may call the device distribution network program stored in the memory 1005, and further perform the following operations:
and transmitting WiFi distribution network information to the equipment to be distributed based on the wireless network connection, wherein when the WiFi distribution network information sent by the terminal equipment is received, the equipment to be distributed scans connectable equipment, determines target equipment in the connectable equipment based on the target WiFi name, and establishes wireless network connection with the target equipment based on the target WiFi password.
Further, the processor 1001 may call the device distribution network program stored in the memory 1005, and further perform the following operations:
if temporary verification information stored in an NFC data module in the terminal equipment is read, accessing a wireless access point of the terminal equipment based on the temporary verification information to establish wireless network connection with the terminal equipment so that the terminal equipment can transmit WiFi distribution network information to the equipment to be distributed based on the wireless network connection;
and when the WiFi distribution network information sent by the terminal equipment is received, networking based on the WiFi distribution network information.
Further, the processor 1001 may call the device distribution network program stored in the memory 1005, and further perform the following operations:
and accessing a wireless access point of the terminal equipment based on the WiFi name and the WiFi password so as to establish wireless network connection with the terminal equipment, wherein the terminal equipment generates the temporary verification information based on equipment information of the terminal equipment, writes the temporary verification information into the NFC data module, and creates the wireless access point based on the WiFi name and the WiFi password.
Further, the processor 1001 may call the device distribution network program stored in the memory 1005, and further perform the following operations:
when the WiFi distribution network information sent by the terminal equipment is received, connectable equipment is scanned, and target equipment is determined in the connectable equipment based on the target WiFi name;
and establishing wireless network connection with the target equipment based on the target WiFi name and the target WiFi password.
The invention also provides a device network distribution method, and referring to fig. 2, fig. 2 is a schematic flow diagram of a first embodiment of the device network distribution method of the invention.
In this embodiment, the device network distribution method includes the following steps:
step S10, if the temporary verification information stored by the NFC data module in the device to be networked is read, accessing a wireless access point of the device to be networked based on the temporary verification information so as to establish wireless network connection with the device to be networked;
in an embodiment, the equipment network distribution method provided by the invention is applied to equipment to be distributed and terminal equipment, wherein the equipment to be distributed is an intelligent terminal which is not networked, and the equipment to be distributed can comprise electronic equipment such as an intelligent sound box, an intelligent television, an air conditioner, a robot, an unmanned aerial vehicle and the like; the terminal equipment is used for distributing a network for the equipment to be distributed, and the terminal equipment can comprise electronic equipment such as a smart phone, a tablet, a notebook computer and a portable computer. As shown in fig. 3, the device to be networked includes a processor, a WiFi module, an NFC write-in module, and an NFC data module, where the WiFi module and the NFC write-in module of the device to be networked are respectively electrically connected to the processor, and the NFC write-in module of the device to be networked is electrically connected to the NFC data module, where the NFC data module of the device to be networked includes an NFC data interaction module and an NFC tag. The terminal equipment comprises a processor, an NFC reading module and a WiFi module, the NFC reading module and the WiFi module of the terminal equipment are respectively and electrically connected with the processor, and the NFC reading module in the terminal equipment is used for reading NFC data.
When the distance between the terminal device and the device with the NFC function is within the range of the NFC communication distance, the NFC detection module of the terminal device can detect that the NFC data exchange device currently exists, namely the distance between the terminal device and the device to be networked is within the range of the NFC communication distance, and when the terminal device detects that the device to be networked for data exchange exists, the temporary verification information in the NFC data module of the device to be networked is read through the NFC reading module of the terminal device. The temporary verification information is a temporary verification message provided by the network equipment to be configured to the terminal equipment, and a verification message which is generated by the network equipment to be configured and changes constantly, wherein the temporary verification message comprises a WiFi name and a WiFi password corresponding to the network equipment to be configured in a wireless access mode, and it can be understood that any equipment can access the network equipment to be configured based on the WiFi name and the WiFi password and establishes wireless network connection with the network equipment to be configured.
After the terminal device reads data content in an NFC data module in the device to be networked to obtain temporary verification information of the device to be networked, the device to be networked starts a wireless access mode, and sets a WiFi name and a WiFi password in the temporary verification information as an account and a password of the wireless access mode so that other devices can access a network established by the device to be networked based on the wireless access mode. After the terminal device reads data content in an NFC data module in the device to be distributed to obtain temporary verification information of the device to be distributed, a WiFi module of the terminal device accesses a wireless access point corresponding to a wireless access mode started by the device to be distributed based on the temporary verification information to establish wireless network connection with the device to be distributed, wherein the temporary verification information comprises a corresponding WiFi name and a corresponding WiFi password when the device to be distributed is in the wireless access mode.
Further, the device to be networked randomly selects preset text content, character strings, numbers, symbols and the like to obtain random information based on a preset time period, generates temporary verification information according to a preset combination mode or randomly combines the selected random information, and writes the temporary verification information into the NFC data module through the NFC write-in module to be identified and read by other devices. Therefore, the equipment to be networked periodically generates temporary verification information which changes constantly so that the terminal equipment can acquire the temporary verification information and is connected with the equipment to be networked based on the temporary verification information, and the temporary verification information generated by the equipment to be networked is constantly changed, so that the temporary verification information is difficult to crack, the connection safety between the equipment to be networked and the terminal equipment is improved, WiFi distribution network information in the terminal equipment is difficult to steal, and the safety of the terminal equipment to the distribution network process of the equipment to be networked is improved. Specifically, the temporary verification information includes a WiFi name of the device to be networked and a WiFi password corresponding to the WiFi name, the device to be networked randomly selects a text content with a first preset digit, a number with a second preset digit and a symbol with a third preset digit from preset text contents, numbers and symbols to obtain random information, randomly combines the random information to generate the WiFi name and the WiFi password, and then the device to be networked writes the WiFi name and the WiFi password into the NFC data module. The text content may include english, chinese, or other languages, etc.
It should be noted that, after the terminal device reads the NFC data of the terminal device to obtain the temporary verification information of the device to be networked, the device to be networked starts the wireless access mode, and sets the WiFi name and the WiFi password corresponding to the NFC data as the account and the password of the wireless access mode, so that other devices can access the network established by the device to be networked based on the wireless access mode.
Step S20, WiFi distribution network information is transmitted to the equipment to be distributed on the basis of the wireless network connection, wherein when the WiFi distribution network information sent by the terminal equipment is received, the equipment to be distributed is networked on the basis of the WiFi distribution network information.
In an embodiment, after the terminal device establishes wireless network connection with the device to be configured, the terminal device sends WiFi distribution network information to the device to be configured. The network distribution equipment to be distributed receives WiFi distribution network information sent by the terminal equipment, and after the WiFi distribution network information is received, wireless connection with the terminal equipment is disconnected, so that wireless network connection is established with target equipment based on the WiFi distribution network information, and data sharing or network flow using is carried out in a wireless network where the target equipment is located. The WiFi distribution network information includes a target WiFi name and a target WiFi password for connecting the target device, and the target device may be a network node device such as a router.
Further, in one embodiment, step S20 includes:
step S201, WiFi distribution network information is transmitted to the equipment to be distributed on the basis of the wireless network connection, wherein when the WiFi distribution network information sent by the terminal equipment is received, the equipment to be distributed scans connectable equipment, target equipment is determined in the connectable equipment on the basis of the target WiFi name, and the wireless network connection is established with the target equipment on the basis of the target WiFi password.
In an embodiment, a device to be configured receives WiFi distribution network information sent by a terminal device, disconnects wireless connection with the terminal device after receiving the distribution network information, and scans surrounding connectable devices, where the WiFi distribution network information includes a target WiFi name and a target WiFi password. Acquiring a connectable device set by scanning surrounding connectable devices; determining target equipment matched with the target WiFi name in the connectable equipment set based on the target WiFi name in the WiFi distribution network information; after the target equipment is determined, the equipment to be networked establishes wireless network connection with the target equipment through the target WiFi name and the target WiFi password, so that the equipment to be networked is accessed into a wireless network where the target equipment is located to share data or use network flow.
In the method for distributing the network to the device, if the temporary verification information stored in the NFC data module in the device to be distributed is read, the wireless access point of the device to be distributed is accessed based on the temporary verification information to establish wireless network connection with the device to be distributed; and transmitting WiFi distribution network information to the equipment to be distributed based on the wireless network connection, wherein the equipment to be distributed is networked based on the WiFi distribution network information when the WiFi distribution network information sent by the terminal equipment is received. In the embodiment, the terminal device reads temporary verification information stored by an NFC data module in the device to be networked by approaching the device to be networked, and establishes network connection with the device to be networked based on the temporary verification information, because the temporary verification information can be acquired only by approaching the device to be networked, and the network can be distributed to the device to be networked only after the terminal device is connected with the device to be networked based on the temporary verification information, the terminal device can be approached to the device to be networked only by a user manually, the network can be distributed to the device to be networked, so that other devices cannot indirectly acquire and crack the temporary verification information, and the connection safety between the device to be networked and the terminal device is improved; because the security of the connection between the network equipment to be distributed and the terminal equipment is ensured, the network distribution information in the terminal equipment is further difficult to steal, and the security of the terminal equipment to the network distribution process of the network equipment to be distributed is improved.
Based on the first embodiment, a second embodiment of the device network distribution method of the present invention is provided, in this embodiment, step S10 includes:
step S101, based on the WiFi name and the WiFi password, accessing a wireless access point of the equipment to be networked to establish wireless network connection with the equipment to be networked, wherein the equipment to be networked generates the temporary verification information based on equipment information of the equipment to be networked, writes the temporary verification information into the NFC data module, and creates the wireless access point based on the WiFi name and the WiFi password.
The method comprises the steps that before a wireless access mode of equipment to be distributed is started, equipment information of the equipment to be distributed is obtained in advance, and a WiFi name and a WiFi password are generated based on the equipment information of the equipment to be distributed; and then writing the temporary verification information into the NFC data module, and setting the WiFi name and the WiFi password as the account number and the password of the wireless access point when the wireless access point is established to enter a wireless access mode so as to enable other equipment to access the network established by the equipment to be networked based on the wireless access point.
The device information of the device to be networked includes a hardware address of the device to be networked, a manufacturer ID of the device to be networked, a device model of the device to be networked, a device name of the device to be networked, or an account ID of a preset application program in the device to be networked.
Specifically, the device to be networked selects one or more of a hardware address of the device to be networked, a manufacturer ID of the device to be networked, a device model of the device to be networked, a device name of the device to be networked, and an account ID of a preset application program in the device to be networked at random to obtain random information based on a first custom algorithm, and generates a WiFi name according to a preset combination mode or random combination of the selected random information. And the equipment to be distributed is based on a second self-defined algorithm, at least two of a hardware address of the equipment to be distributed, a manufacturer ID of the equipment to be distributed, an equipment model of the equipment to be distributed, an equipment name of the equipment to be distributed and an account ID of a preset application program in the equipment to be distributed are randomly selected to obtain random information, and the WiFi name is generated according to a preset combination mode or randomly combining the selected random information. Further, randomly selecting any equipment information (random information), acquiring a special character string, and adding the special character string to the random information to obtain a WiFi name; or randomly selecting any two pieces of equipment information (random information), and combining the two pieces of equipment information in the random information to obtain the WiFi password.
Further, the device to be networked generates temporary verification information for verification connection with the terminal device according to the hardware address of the device to be networked, the manufacturer ID of the device to be networked, the device model of the device to be networked, the device name of the device to be networked or the account ID of a preset application program in the device to be networked based on a preset time period, and writes the temporary verification information into the NFC data module. Specifically, the temporary verification information includes a WiFi name and a WiFi password, the device to be networked generates a WiFi name and a WiFi password from a hardware address of the device to be networked, a vendor ID of the device to be networked, a device model of the device to be networked, a device name of the device to be networked, or an account ID of a preset application program in the device to be networked, and then writes the WiFi name and the WiFi password into the NFC data module.
Therefore, the equipment to be networked periodically generates temporary verification information, namely a WiFi name and a WiFi password, which changes constantly, so that the terminal equipment can acquire the temporary verification information and is connected with the equipment to be networked based on the WiFi name and the WiFi password.
The present invention further provides an apparatus network distribution method, which in this embodiment (third embodiment) includes the following steps:
in this embodiment, the device to be networked may also serve as an NFC data reader, and the terminal device may also serve as a provider of temporary verification information, that is, the device to be networked has an NFC reading module, and the terminal device has an NFC data module, and when the terminal device approaches the device to be networked, the device to be networked reads the temporary verification information of the terminal device, so that the device to be networked performs wireless network communication with the terminal device based on the temporary verification information; after the terminal device establishes wireless network connection with the device to be networked, the terminal device sends WiFi distribution network information to the device to be networked to distribute a network to the device to be networked, so that, in fact, the device to be networked serves as an NFC data reader, and when the terminal device serves as a provider of the temporary verification information, the terminal device still distributes a network to the device to be networked, and the rest steps are similar to those in the first embodiment and the second embodiment, and are not described in detail herein.
Step S100, if temporary verification information stored in an NFC data module in terminal equipment is read, accessing a wireless access point of the terminal equipment based on the temporary verification information to establish wireless network connection with the terminal equipment so that the terminal equipment can transmit WiFi distribution network information to the equipment to be distributed based on the wireless network connection;
in an embodiment, the equipment network distribution method provided by the invention is applied to equipment to be distributed and terminal equipment, wherein the equipment to be distributed is an intelligent terminal which is not networked, and the equipment to be distributed can comprise electronic equipment such as an intelligent sound box, an intelligent television, an air conditioner, a robot, an unmanned aerial vehicle and the like; the terminal equipment is used for distributing a network for the equipment to be distributed, and the terminal equipment can comprise electronic equipment such as a smart phone, a tablet, a notebook computer and a portable computer. The terminal equipment comprises a processor, a WiFi module, an NFC writing module and an NFC data module, wherein the WiFi module and the NFC writing module of the terminal equipment are respectively electrically connected with the processor, the NFC writing module of the terminal equipment is electrically connected with the NFC data module, and the NFC data module of the terminal equipment comprises an NFC data interaction module and an NFC label. The device to be networked comprises a processor, an NFC reading module and a WiFi module, the NFC reading module and the WiFi module of the device to be networked are respectively and electrically connected with the processor, and the NFC reading module in the device to be networked is used for reading NFC data.
The distance between the terminal equipment and the equipment to be networked is within the range of the NFC communication distance, and when the equipment to be networked detects that the terminal equipment available for data exchange exists, the temporary verification information in the NFC data module of the terminal equipment is read through the NFC reading module of the equipment to be networked. The temporary verification information is a temporary verification message provided by the terminal device to the device to be networked, and a verification message which is generated by the terminal device and changes constantly, and the temporary verification message includes a corresponding WiFi name and a corresponding WiFi password when the terminal device is in a wireless access mode.
After the network distribution equipment reads data content in an NFC data module in the terminal equipment to obtain temporary verification information of the terminal equipment, the terminal equipment starts a wireless access mode, and sets a WiFi name and a WiFi password in the temporary verification information as an account and a password of the wireless access mode so that other equipment can access a network established by the terminal equipment based on the wireless access mode. After the network equipment to be distributed reads data content in an NFC data module in the terminal equipment to obtain temporary verification information of the terminal equipment, a WiFi module of the network equipment to be distributed accesses a wireless access point corresponding to a wireless access mode started by the terminal equipment based on the temporary verification information to establish wireless network connection with the terminal equipment, wherein the temporary verification information comprises a corresponding WiFi name and a corresponding WiFi password when the terminal equipment is in the wireless access mode.
Further, the terminal device randomly selects preset text content, or character strings, or numbers, or symbols to obtain random information based on a preset time period, generates temporary verification information according to a preset combination mode or randomly combines the selected random information, and writes the temporary verification information into the NFC data module through the NFC write-in module for other devices to recognize and read. Therefore, the terminal device periodically generates temporary verification information which changes constantly so as to be acquired by the equipment to be networked and connected with the terminal device based on the temporary verification information, and the temporary verification information generated by the terminal device is constantly changed, so that the temporary verification information is difficult to crack, the connection safety between the equipment to be networked and the terminal device is increased, the WiFi network distribution information in the terminal device is difficult to steal, and the safety of the terminal device to the network distribution process of the equipment to be networked is improved. Specifically, the temporary verification information includes a WiFi name of the terminal device and a WiFi password corresponding to the WiFi name, the terminal device randomly selects text content with a first preset digit, digits with a second preset digit, and symbols with a third preset digit from preset text content, digits, and symbols to obtain random information, randomly combines the random information to generate the WiFi name and the WiFi password, and then the terminal device writes the WiFi name and the WiFi password into the NFC data module. The text content may include english, chinese, or other languages, etc.
And S200, when the WiFi distribution network information sent by the terminal equipment is received, networking based on the WiFi distribution network information.
In an embodiment, after the terminal device establishes wireless network connection with the device to be configured, the terminal device sends WiFi distribution network information to the device to be configured. The network distribution equipment to be distributed receives WiFi distribution network information sent by the terminal equipment, and after the network distribution information is received, wireless network connection with the terminal equipment is disconnected, so that wireless network connection is established with target equipment based on the WiFi distribution network information, and data sharing or network flow using is carried out in a wireless network where the target equipment is located. The WiFi distribution network information includes a target WiFi name and a target WiFi password for connecting the target device, and the target device may be a network node device such as a router.
Further, in an embodiment, the step S200 includes:
step S2001, when receiving the WiFi distribution network information sent by the terminal device, scanning a connectable device, and determining a target device in the connectable device based on the target WiFi name;
step S2002, establishing a wireless network connection with the target device based on the target WiFi name and the target WiFi password.
In an embodiment, a device to be configured receives WiFi distribution network information sent by a terminal device, disconnects wireless connection with the terminal device after receiving the distribution network information, and scans surrounding connectable devices, where the WiFi distribution network information includes a target WiFi name and a target WiFi password. Acquiring a connectable device set by scanning surrounding connectable devices; determining target equipment matched with the target WiFi name in the connectable equipment set based on the target WiFi name in the WiFi distribution network information; after the target equipment is determined, the equipment to be networked establishes wireless network connection with the target equipment through the target WiFi name and the target WiFi password, so that the equipment to be networked is accessed into a wireless network where the target equipment is located to share data or use network flow.
In the method for distributing the network to the device, if the temporary verification information stored in the NFC data module in the terminal device is read, the terminal device accesses the wireless access point of the terminal device based on the temporary verification information to establish wireless network connection with the terminal device, so that the terminal device transmits WiFi network distribution information to the device to be distributed based on the wireless network connection; and when the WiFi distribution network information sent by the terminal equipment is received, networking based on the WiFi distribution network information. The terminal equipment is close to the equipment to be networked, the equipment to be networked reads temporary verification information stored in an NFC data module in the terminal equipment, network connection is established with the terminal equipment based on the temporary verification information, the temporary verification information can be obtained only through the fact that the equipment to be networked is close to the terminal equipment, and after the equipment to be networked is connected with the terminal equipment based on the temporary verification information, the terminal equipment can carry out network distribution on the equipment to be networked, so that the terminal equipment can be close to the equipment to be networked only through manual operation of a user, the equipment to be networked can be networked, other equipment cannot indirectly obtain and break the temporary verification information, and the connection safety between the equipment to be networked and the terminal equipment is improved; because the security of the connection between the network equipment to be distributed and the terminal equipment is ensured, the network distribution information in the terminal equipment is further difficult to steal, and the security of the terminal equipment to the network distribution process of the network equipment to be distributed is improved.
Based on the third embodiment, a fourth embodiment of the device network distribution method of the present invention is provided, in this embodiment, step S100 includes:
and S1001, accessing a wireless access point of the terminal equipment based on the WiFi name and the WiFi password to establish wireless network connection with the terminal equipment, wherein the terminal equipment generates the temporary verification information based on equipment information of the terminal equipment, writes the temporary verification information into the NFC data module, and creates the wireless access point based on the WiFi name and the WiFi password.
The method comprises the steps that before a terminal device starts a wireless access mode and creates a wireless access point, device information of the terminal device is obtained in advance, and a WiFi name and a WiFi password are generated based on the device information of the terminal device; and then writing the temporary verification information into the NFC data module, and setting the WiFi name and the WiFi password as the account number and the password of the wireless access point when the wireless access point is created so as to enable other equipment to access the network established by the terminal equipment based on the wireless access point.
The device information of the terminal device includes a hardware address of the terminal device, a manufacturer ID of the terminal device, a device model of the terminal device, a device name of the terminal device, or an account ID of a preset application program in the terminal device.
Specifically, the terminal device randomly selects one or more of a hardware address of the terminal device, a manufacturer ID of the terminal device, a device model of the terminal device, a device name of the terminal device, and an account ID of a preset application program in the terminal device based on a first custom algorithm to obtain random information, and generates a WiFi name according to a preset combination mode or randomly combining the selected random information. The terminal device randomly selects at least two of a hardware address of the terminal device, a manufacturer ID of the terminal device, a device model of the terminal device, a device name of the terminal device, and an account ID of a preset application program in the terminal device to obtain random information based on a second custom algorithm, and generates a WiFi name according to a preset combination mode or randomly combining the selected random information.
Further, the terminal device generates temporary verification information for verification connection with the device to be networked based on the hardware address of the terminal device, the manufacturer ID of the terminal device, the device model of the terminal device, the device name of the terminal device, or the account ID of a preset application program in the terminal device, and writes the temporary verification information into the NFC data module. Specifically, the temporary verification information includes a WiFi name and a WiFi password, and the terminal device generates a WiFi name and a WiFi password from a hardware address of the terminal device, a manufacturer ID of the terminal device, a device model of the terminal device, a device name of the terminal device, or an account ID of a preset application program in the terminal device, and then writes the WiFi name and the WiFi password into the NFC data module.
Therefore, the equipment to be networked periodically generates temporary verification information, namely a WiFi name and a WiFi password, which changes constantly, so that the terminal equipment can acquire the temporary verification information and is connected with the equipment to be networked based on the WiFi name and the WiFi password.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where an apparatus distribution network program is stored on the computer-readable storage medium, and when executed by a processor, the apparatus distribution network program implements the steps of the apparatus distribution network method according to any one of the above.
The specific embodiment of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the device distribution network method described above, and details are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method for distributing a network for equipment is applied to terminal equipment and comprises the following steps:
if the temporary verification information stored by the NFC data module in the equipment to be networked is read, accessing a wireless access point of the equipment to be networked based on the temporary verification information so as to establish wireless network connection with the equipment to be networked;
and transmitting WiFi distribution network information to the equipment to be distributed based on the wireless network connection, wherein the equipment to be distributed is networked based on the WiFi distribution network information when the WiFi distribution network information sent by the terminal equipment is received.
2. The device network distribution method according to claim 1, wherein the temporary verification information includes a WiFi name of the device to be distributed and a WiFi password corresponding to the WiFi name;
the step of accessing the wireless access point of the device to be networked based on the temporary verification information to establish wireless network connection with the device to be networked comprises the following steps:
and accessing a wireless access point of the equipment to be networked based on the WiFi name and the WiFi password so as to establish wireless network connection with the equipment to be networked, wherein the equipment to be networked generates the temporary verification information based on equipment information of the equipment to be networked, writes the temporary verification information into the NFC data module, and creates the wireless access point based on the WiFi name and the WiFi password.
3. The device network distribution method of claim 1, wherein the NFC data module comprises an NFC data interaction module or an NFC tag.
4. The device network distribution method of any one of claims 1 to 3, wherein the WiFi distribution network information comprises a target WiFi name and a target WiFi password;
the method comprises the following steps of transmitting WiFi distribution network information to the equipment to be distributed based on the wireless network connection, wherein when the WiFi distribution network information sent by the terminal equipment is received, the step of networking the equipment to be distributed based on the WiFi distribution network information comprises the following steps:
and transmitting WiFi distribution network information to the equipment to be distributed based on the wireless network connection, wherein when the WiFi distribution network information sent by the terminal equipment is received, the equipment to be distributed scans connectable equipment, determines target equipment in the connectable equipment based on the target WiFi name, and establishes wireless network connection with the target equipment based on the target WiFi password.
5. The equipment network distribution method is applied to equipment to be distributed, and comprises the following steps:
if temporary verification information stored in an NFC data module in the terminal equipment is read, accessing a wireless access point of the terminal equipment based on the temporary verification information to establish wireless network connection with the terminal equipment so that the terminal equipment can transmit WiFi distribution network information to the equipment to be distributed based on the wireless network connection;
and when the WiFi distribution network information sent by the terminal equipment is received, networking based on the WiFi distribution network information.
6. The device network distribution method according to claim 5, wherein the temporary authentication information includes a WiFi name of the terminal device and a WiFi password corresponding to the WiFi name;
the step of accessing the wireless access point of the terminal device based on the temporary authentication information to establish wireless network connection with the terminal device comprises:
and accessing a wireless access point of the terminal equipment based on the WiFi name and the WiFi password so as to establish wireless network connection with the terminal equipment, wherein the terminal equipment generates the temporary verification information based on equipment information of the terminal equipment, writes the temporary verification information into the NFC data module, and creates the wireless access point based on the WiFi name and the WiFi password.
7. The device network distribution method of claim 5, wherein the NFC data module comprises an NFC data interaction module or an NFC tag.
8. The device network distribution method of any one of claims 5 to 7, wherein the WiFi distribution network information comprises a target WiFi name and a target WiFi password;
when the WiFi distribution network information sent by the terminal equipment is received, the step of networking based on the WiFi distribution network information comprises the following steps:
when the WiFi distribution network information sent by the terminal equipment is received, connectable equipment is scanned, and target equipment is determined in the connectable equipment based on the target WiFi name;
and establishing wireless network connection with the target equipment based on the target WiFi name and the target WiFi password.
9. An equipment distribution network apparatus, the equipment distribution network apparatus comprising: memory, a processor and a device distribution program stored on the memory and executable on the processor, the device distribution program when executed by the processor implementing the steps of the device distribution method as claimed in claims 1 to 4 or 5 to 8.
10. A computer-readable storage medium, having stored thereon a device distribution network program which, when executed by a processor, implements the steps of the device distribution network method of any of claims 1-4 or 5-8.
CN202010733842.3A 2020-07-24 2020-07-24 Equipment network distribution method and device and computer readable storage medium Pending CN111867000A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010733842.3A CN111867000A (en) 2020-07-24 2020-07-24 Equipment network distribution method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010733842.3A CN111867000A (en) 2020-07-24 2020-07-24 Equipment network distribution method and device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN111867000A true CN111867000A (en) 2020-10-30

Family

ID=72947399

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010733842.3A Pending CN111867000A (en) 2020-07-24 2020-07-24 Equipment network distribution method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111867000A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112804671A (en) * 2021-01-05 2021-05-14 深圳创维-Rgb电子有限公司 Network connection method, device and readable storage medium
CN113395741A (en) * 2021-05-24 2021-09-14 珠海格力电器股份有限公司 Network distribution system, method and device of equipment, electronic equipment and storage medium
CN113765903A (en) * 2021-08-26 2021-12-07 科大讯飞股份有限公司 Screen projection method and related device, electronic equipment and storage medium
CN113852910A (en) * 2021-08-27 2021-12-28 青岛海尔科技有限公司 Distribution network instruction sending and device, storage medium and electronic device
CN114024843A (en) * 2021-11-08 2022-02-08 北京天融信网络安全技术有限公司 Device registration method, device and storage medium
CN115150800A (en) * 2022-06-30 2022-10-04 四川虹美智能科技有限公司 Intelligent household appliance distribution network system based on NFC technology

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103369707A (en) * 2012-03-27 2013-10-23 华为终端有限公司 Wireless network connection establishing method and terminal equipment
CN106211264A (en) * 2016-07-11 2016-12-07 九阳股份有限公司 A kind of household electrical appliances distribution method and device
WO2020020313A1 (en) * 2018-07-27 2020-01-30 杭州博联智能科技股份有限公司 Device network configuration apparatus, system and method
CN111148095A (en) * 2020-01-03 2020-05-12 华为技术有限公司 Method for establishing Wi-Fi connection between terminal and wireless access point
CN111194067A (en) * 2018-11-14 2020-05-22 中兴通讯股份有限公司 Network access method, device, related equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103369707A (en) * 2012-03-27 2013-10-23 华为终端有限公司 Wireless network connection establishing method and terminal equipment
CN106211264A (en) * 2016-07-11 2016-12-07 九阳股份有限公司 A kind of household electrical appliances distribution method and device
WO2020020313A1 (en) * 2018-07-27 2020-01-30 杭州博联智能科技股份有限公司 Device network configuration apparatus, system and method
CN111194067A (en) * 2018-11-14 2020-05-22 中兴通讯股份有限公司 Network access method, device, related equipment and storage medium
CN111148095A (en) * 2020-01-03 2020-05-12 华为技术有限公司 Method for establishing Wi-Fi connection between terminal and wireless access point

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112804671A (en) * 2021-01-05 2021-05-14 深圳创维-Rgb电子有限公司 Network connection method, device and readable storage medium
CN113395741A (en) * 2021-05-24 2021-09-14 珠海格力电器股份有限公司 Network distribution system, method and device of equipment, electronic equipment and storage medium
CN113395741B (en) * 2021-05-24 2023-03-10 珠海格力电器股份有限公司 Network distribution system, method and device of equipment, electronic equipment and storage medium
CN113765903A (en) * 2021-08-26 2021-12-07 科大讯飞股份有限公司 Screen projection method and related device, electronic equipment and storage medium
CN113765903B (en) * 2021-08-26 2023-07-28 科大讯飞股份有限公司 Screen projection method, related device, electronic equipment and storage medium
CN113852910A (en) * 2021-08-27 2021-12-28 青岛海尔科技有限公司 Distribution network instruction sending and device, storage medium and electronic device
CN113852910B (en) * 2021-08-27 2024-05-24 青岛海尔科技有限公司 Distribution network instruction sending device, storage medium and electronic device
CN114024843A (en) * 2021-11-08 2022-02-08 北京天融信网络安全技术有限公司 Device registration method, device and storage medium
CN115150800A (en) * 2022-06-30 2022-10-04 四川虹美智能科技有限公司 Intelligent household appliance distribution network system based on NFC technology

Similar Documents

Publication Publication Date Title
CN111867000A (en) Equipment network distribution method and device and computer readable storage medium
CN111935802A (en) Equipment network distribution method and device and computer readable storage medium
US20150319173A1 (en) Co-verification method, two dimensional code generation method, and device and system therefor
CN108924037B (en) Display method of rich media communication RCS message and mobile terminal
CN108288154B (en) Starting method and device of payment application program and mobile terminal
CN110166439B (en) Equipment sharing method, terminal, router and server
US11395132B2 (en) Method for transferring subscription and electronic device for supporting the same
CN110457888B (en) Verification code input method and device, electronic equipment and storage medium
CN108551521B (en) Login information prompting method and mobile terminal
CN107423099B (en) Key code programming method, server, terminal, key code programming system and storage medium
CN111277807A (en) Projection implementation method, wearable device, display device and storage medium
CN113037838B (en) Operation response method and device, computer equipment and storage medium
CN111867003A (en) Equipment network distribution method, device, equipment and computer readable storage medium
KR102161443B1 (en) Discovering and controlling method and apparatus of controllee in a smart home system
CN108012270B (en) Information processing method, equipment and computer readable storage medium
CN106779648B (en) Network data sending method and mobile terminal
KR20150104697A (en) Method and apparatus for grouping of personal electronic device using qr code and system therefor
KR20090063459A (en) Authentication method using short-range communication and terminal and system using the same
CN111931155A (en) Verification code input method, verification code input equipment and storage medium
CN108848240B (en) Information security protection method, terminal and computer readable storage medium
CN111954164B (en) Equipment network distribution method and device and computer readable storage medium
CN111565388B (en) Network registration method and electronic equipment
CN113590248A (en) Screen projection method and device of vehicle-mounted terminal and readable storage medium
CN108052416B (en) Method and terminal for acquiring historical installation record information of application program
CN109246290B (en) Authority management method and mobile 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201030