CN110650516B - Network distribution method and device, Internet of things equipment, terminal equipment and storage medium - Google Patents

Network distribution method and device, Internet of things equipment, terminal equipment and storage medium Download PDF

Info

Publication number
CN110650516B
CN110650516B CN201910898060.2A CN201910898060A CN110650516B CN 110650516 B CN110650516 B CN 110650516B CN 201910898060 A CN201910898060 A CN 201910898060A CN 110650516 B CN110650516 B CN 110650516B
Authority
CN
China
Prior art keywords
hotspot
information
target
name
target hotspot
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.)
Active
Application number
CN201910898060.2A
Other languages
Chinese (zh)
Other versions
CN110650516A (en
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.)
Chipsea Technologies Shenzhen Co Ltd
Original Assignee
Chipsea Technologies Shenzhen 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 Chipsea Technologies Shenzhen Co Ltd filed Critical Chipsea Technologies Shenzhen Co Ltd
Priority to CN201910898060.2A priority Critical patent/CN110650516B/en
Publication of CN110650516A publication Critical patent/CN110650516A/en
Application granted granted Critical
Publication of CN110650516B publication Critical patent/CN110650516B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Landscapes

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

Abstract

The application relates to a network distribution method, a network distribution device, Internet of things equipment, terminal equipment and a storage medium, wherein the Internet of things equipment receives network distribution information sent by the terminal equipment; the distribution network information comprises a password of a target hotspot to be accessed by the Internet of things equipment and part of bytes in identification information of the target hotspot; then, determining the name of the target hotspot according to a part of bytes in the identification information and at least one piece of hotspot information acquired in advance; and finally, accessing the target hotspot according to the name of the target hotspot and the password of the target hotspot. By adopting the method, the Internet of things equipment can be accessed to the target hotspot more quickly, and the success rate of the distribution network is improved.

Description

Network distribution method and device, Internet of things equipment, terminal equipment and storage medium
Technical Field
The application relates to the technical field of internet of things, in particular to a network distribution method and device, internet of things equipment, terminal equipment and a storage medium.
Background
Along with the development of the internet of things, more and more internet of things devices are connected with the router by adopting a WiFi technology, and then data interaction is carried out with the cloud end through terminal devices such as mobile phones. Because the internet of things equipment such as an intelligent socket, an intelligent air conditioner, an intelligent air purifier and the like does not have a human-computer interaction interface, the internet of things equipment cannot search and select a designated router and input a connection password like a computer, and connection with the router is realized. The WiFi distribution network is used for solving the networking requirement of the equipment of the Internet of things, and mainly informs a Service Set Identifier (SSID for short) and a password of a router to a WiFi module in the equipment of the Internet of things in a certain mode, and then the equipment of the Internet of things can be connected with the specified router according to the received SSID and password.
In the conventional technology, a network distribution between an internet of things device and a router or a wireless Access Point (Access Point, AP for short) is mainly realized by a network distribution mode with one key, and the specific process is as follows: the mobile phone sends the SSID and the password of the accessed router or AP to the Internet of things equipment; a WiFi module in the Internet of things equipment monitors a data packet sent by a mobile phone in a hybrid mode, an SSID and a password of a router or an AP are extracted from the data packet, and then the router or the AP is accessed through the SSID and the password.
However, by adopting the method, the time required by the distribution network is long, the distribution network is easily interfered, and the success rate is low.
Disclosure of Invention
Therefore, it is necessary to provide a network distribution method, a network distribution apparatus, an internet of things device, a terminal device and a storage medium for solving the above technical problems.
A network distribution method is applied to Internet of things equipment and comprises the following steps:
receiving distribution network information sent by terminal equipment; the distribution network information comprises a password of a target hotspot to be accessed by the Internet of things equipment and part of bytes in the identification information of the target hotspot;
determining the name of a target hotspot according to a part of bytes in the identification information and at least one piece of hotspot information acquired in advance;
and accessing the target hotspot according to the name of the target hotspot and the password of the target hotspot.
In one embodiment, the distribution network information further includes a check code; determining the name of the target hotspot according to part of bytes in the identification information and at least one piece of hotspot information acquired in advance, wherein the method comprises the following steps:
acquiring hotspot information sent by at least one hotspot, wherein the hotspot information comprises a hotspot name;
matching the partial bytes with the acquired hotspot information, and determining the hotspot information to be selected matched with the partial bytes;
according to the check code, checking the hot spot information to be selected matched with part of bytes;
and determining the name corresponding to the to-be-selected hotspot information meeting the preset verification condition as the name of the target hotspot.
In one embodiment, the verifying the hot spot information to be selected, which is matched with a part of bytes, according to the check code includes:
and when the hot spot information to be selected matched with the partial bytes is not unique, verifying the hot spot information to be selected matched with the partial bytes.
In one embodiment, the verifying the hot spot information to be selected, which is matched with a part of bytes, according to the check code includes:
coding each matched hot spot information to be selected according to a preset coding rule to obtain a plurality of alternative check codes;
and if the alternative check code is the same as the check code, determining that the hot spot information to be selected meets the preset check condition.
In one embodiment, the identification information is a physical address of the target hotspot, and the at least one piece of hotspot information includes the physical address and the hotspot name of the at least one hotspot;
matching the partial bytes with the acquired hotspot information, and determining the hotspot information to be selected matched with the partial bytes, wherein the hotspot information to be selected comprises:
matching partial bytes of the physical address of the target hotspot with the physical address of at least one hotspot, and determining the physical address of the hotspot to be selected, which is matched with the partial bytes.
In one embodiment, the identification information is a name of the target hotspot, and the at least one piece of hotspot information acquired in advance comprises the name of the at least one hotspot;
matching the partial bytes with the acquired hotspot information, and determining the hotspot information to be selected matched with the partial bytes, wherein the hotspot information to be selected comprises:
and matching partial bytes of the name of the target hotspot with the name of at least one hotspot, and determining the name of the hotspot to be selected, which is matched with the partial bytes.
A network distribution method is applied to terminal equipment and comprises the following steps:
acquiring distribution network information of a target hotspot; the distribution network information comprises a password of the target hotspot and part of bytes in the identification information of the target hotspot;
and sending distribution network information, wherein the distribution network information is used for indicating that the internet of things equipment acquires the name of the target hotspot according to the distribution network information after receiving the distribution network information, and the name of the target hotspot and the password of the target hotspot are used for indicating that the internet of things equipment is accessed to the target hotspot.
In one embodiment, the distribution network information further includes a check code; before the distribution network information is sent, the method further comprises the following steps:
coding the identification information of the target hotspot according to a preset coding rule to obtain a check code;
merging the check code into the distribution network information;
the check code is used for indicating the Internet of things equipment to check the pre-acquired hotspot information.
A network-distribution apparatus, the apparatus comprising:
the receiving module is used for receiving the distribution network information sent by the terminal equipment; the distribution network information comprises a password of a target hotspot to be accessed by the Internet of things equipment and part of bytes in the identification information of the target hotspot;
the determining module is used for determining the name of the target hotspot according to part of bytes in the identification information and at least one piece of hotspot information acquired in advance;
and the access module is used for accessing the target hotspot according to the name of the target hotspot and the password of the target hotspot.
A network-distribution apparatus, the apparatus comprising:
the acquisition module is used for acquiring the distribution network information of the target hotspot; the distribution network information comprises a password of the target hotspot and part of bytes in the identification information of the target hotspot;
the sending module is used for broadcasting the distribution network information, and the distribution network information is used for indicating the internet of things equipment to obtain the name of the target hotspot according to the distribution network information after receiving the distribution network information, and the name of the target hotspot and the password of the target hotspot are used for indicating the internet of things equipment to access the target hotspot.
An internet of things device comprises a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to realize the following steps:
receiving distribution network information sent by terminal equipment; the distribution network information comprises a password of a target hotspot to be accessed by the Internet of things equipment and part of bytes in the identification information of the target hotspot;
determining the name of a target hotspot according to a part of bytes in the identification information and at least one piece of hotspot information acquired in advance;
and accessing the target hotspot according to the name of the target hotspot and the password of the target hotspot.
A terminal device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring distribution network information of a target hotspot; the distribution network information comprises a password of the target hotspot and part of bytes in the identification information of the target hotspot;
and sending distribution network information, wherein the distribution network information is used for indicating that the internet of things equipment acquires the name of the target hotspot according to the distribution network information after receiving the distribution network information, and the name of the target hotspot and the password of the target hotspot are used for indicating that the internet of things equipment is accessed to the target hotspot.
A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the network distribution method.
According to the network distribution method, the network distribution device, the Internet of things equipment, the terminal equipment and the storage medium, the Internet of things equipment receives the network distribution information sent by the terminal equipment; the distribution network information comprises a password of a target hotspot to be accessed by the Internet of things equipment and part of bytes in identification information of the target hotspot; then, determining the name of the target hotspot according to a part of bytes in the identification information and at least one piece of hotspot information acquired in advance; and finally, accessing the target hotspot according to the name of the target hotspot and the password of the target hotspot. Because the internet of things equipment takes the password of the target hotspot and part of bytes in the identification information of the target hotspot as the distribution network information, the data length of the distribution network information is smaller than that formed by combining the password and the name of the target hotspot, so that when the internet of things equipment acquires the distribution network information, the number of data frames required to be intercepted is small, and the distribution network information can be acquired more quickly and can be accessed to the target hotspot more quickly; in addition, because the required frame number is less, the interference information in the intercepted data frame is less, and the success rate of the distribution network can be improved.
Drawings
FIG. 1 is a diagram of an exemplary network deployment method;
FIG. 2 is a schematic flow chart of a network distribution method in one embodiment;
FIG. 3 is a schematic flow chart of a network distribution method in another embodiment;
FIG. 4 is a schematic flow chart of a network distribution method in another embodiment;
FIG. 5 is a schematic flow chart of a network distribution method in another embodiment;
FIG. 6 is a schematic flow chart of a network distribution method in another embodiment;
FIG. 7 is a schematic flow chart of a network distribution method in another embodiment;
FIG. 8 is a block diagram of a distribution network device in one embodiment;
FIG. 9 is a block diagram showing the structure of a determination module in another embodiment;
FIG. 10 is a block diagram showing the structure of a determination module in another embodiment;
fig. 11 is a block diagram of a distribution network device according to another embodiment;
fig. 12 is a block diagram of a distribution network device according to another embodiment;
fig. 13 is an internal structural diagram of an internet of things device in one embodiment;
fig. 14 is an internal configuration diagram of a terminal device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The network distribution method provided by the application can be applied to the application environment shown in fig. 1. The internet of things device 100 accesses a target hotspot created by the target hotspot device 300 through the terminal device 200, and the internet of things device 100 may be, but is not limited to, various smart sockets, smart air conditioners, smart air purifiers, smart cameras, and other devices; the terminal device 200 may be, but is not limited to, a personal computer, a mobile phone, a tablet computer, and the like; the target hotspot device 300 may be a wireless router, a wireless access point AP, a plurality of cascaded routers, or the like.
In an embodiment, as shown in fig. 2, a network distribution method is provided, which is described by taking the method as an example of being applied to the internet of things device in fig. 1, and the method includes the following steps:
s201, receiving distribution network information sent by terminal equipment; the distribution network information comprises a password of a target hotspot to be accessed by the Internet of things equipment and part of bytes in the identification information of the target hotspot.
When the distribution network information sent by the terminal equipment is received, a WiFi module in the Internet of things equipment captures a WiFi data frame in the current monitoring range, and the distribution network information is extracted from the WiFi data frame. The internet of things equipment can capture all WiFi data frames in the current monitoring range, and can also extract the distribution network information after filtering and other processing on the WiFi data frames in the current monitoring range, and the receiving mode of the distribution network information is not limited. The WiFi module can work in a 2.4GHz frequency band, and also can work in a 5GHz frequency band and other WiFi available frequency bands, and the working frequency band of the WiFi module is not limited herein.
When the terminal equipment sends the distribution network information, the distribution network information is coded in a plurality of data frames, the Internet of things equipment receives the plurality of data frames continuously sent by the terminal equipment, bytes carried by the data frames are obtained through decoding, and then the bytes are spliced to obtain the distribution network information. The internet of things equipment can splice the decoded bytes according to the time sequence of the received data frames to obtain the distribution network information. Furthermore, before or after splicing, the internet of things equipment can also remove interference information to obtain distribution network information. Optionally, according to a WiFi transmission related protocol, the WiFi data frame may include distribution network information, and may further include information such as a packet length and a physical address of the terminal device.
Optionally, the terminal device may send the distribution network information in a broadcast manner, for example, the terminal device may encode a Length field of a broadcast packet to perform data transmission, and the internet of things device decodes the broadcast data after receiving the broadcast packet to obtain the distribution network information. Or, the terminal device may also send the distribution network information in a multicast manner, for example, the terminal device may set a group of multicast addresses, encode the distribution network information in a data bit after the multicast addresses, and then send the distribution network information through a multicast packet, so that the internet of things device may decode the multicast packet to obtain the distribution network information; the method and the device for sending and receiving the distribution network information are not limited.
The distribution network information is used for providing partial information required by the Internet of things equipment to access the target hotspot. Specifically, the distribution network information includes a password of a target hotspot to be accessed by the internet of things device, and a part of bytes in the identification information of the target hotspot. The identification information may be a Service Set Identifier (SSID) of the target hotspot, that is, a name of the target hotspot; or may be a physical address of the target hotspot, that is, a Basic Service Set Identifier (BSSID) of the target hotspot, which is not limited herein. The partial byte may be one byte in the identification information, or may be a plurality of bytes of the identification information; the bytes may be consecutive bytes in the identification information, or discrete bytes extracted according to a preset rule, for example, the partial byte may be the last byte in the SSID of the target hotspot, or 1-3 bytes, or a combination of 1 st, 3 rd, and 5 th bytes, and the implementation of the partial byte is not limited herein.
The distribution network information comprises partial bytes in the identification information of the target hotspot, and compared with a mode that a password and a complete SSID are used as the distribution network information in the prior art, the number of bytes which need to be decoded and extracted by the Internet of things equipment is small in the embodiment of the application, so that the distribution network information is obtained quickly and is not easily interfered.
The terminal device can be a mobile phone or a notebook computer, and can be configured with an operating system to perform human-computer interaction connection with a hot spot through a touch screen, a keyboard and the like. The internet of things equipment can be equipment comprising a WiFi module, for example, the internet of things equipment can be intelligent sockets, intelligent air conditioners, intelligent air purifiers and the like, and the internet of things equipment does not comprise an operating system and a human-computer interaction interface under the general condition, so that a target hotspot to be accessed cannot be searched and selected, but data connection can be performed with the outside by means of terminal equipment, for example, data are sent to a cloud.
The target hotspot device for creating the target hotspot may be a wireless router, or may also be an Access Point (AP for short), or may also be a mobile phone or the like for starting a hotspot function, and the type of the target hotspot is not limited herein; the target hotspot device may be a single router or AP, or may be multiple cascaded routers, and the like, which is not limited herein.
The target hotspot can be a hotspot currently accessed by the terminal equipment; the terminal device can also be a hotspot accessed by the terminal device in the environment of the current internet of things, and the name and the password of the terminal device can be stored after the terminal device is accessed to the hotspot; and are not limited herein.
S202, determining the name of the target hotspot according to a part of bytes in the identification information and at least one piece of hotspot information acquired in advance.
After the internet of things equipment acquires the distribution network information, extracting partial bytes in the identification information of the target hotspot in the distribution network information; and then determining the name of the target hotspot according to the partial byte and at least one piece of hotspot information acquired in advance.
The hotspot information may be information of each hotspot in the monitoring range of the internet of things device, and may include an SSID of each hotspot, or a BSSID of each hotspot, and may also include a code of each hotspot, a type of the hotspot, and the like, which are not limited herein. The at least one piece of hotspot information may be a hotspot information list, or may be a data packet stored in the internet of things device, and the form of the hotspot information is not limited herein.
The at least one hotspot information may be obtained by scanning within a current monitoring range; or the information can be stored and obtained in advance; and are not limited herein.
Because the distribution network information received by the internet of things device includes part of bytes in the identification information of the target hotspot, the internet of things device needs to determine the name of the target hotspot according to part of bytes in the identification information to access the target hotspot. Optionally, the internet of things device may obtain the SSID of the target hotspot according to a part of bytes of the SSID of the target hotspot, and may also obtain the SSID of the target hotspot according to a part of bytes of the BSSID of the target hotspot, which is not limited herein.
S203, accessing the target hotspot according to the name of the target hotspot and the password of the target hotspot.
On the basis of the above steps, after the internet of things device determines the name of the target hotspot, the internet of things device can access the target hotspot according to the determined name and the password of the target hotspot carried in the distribution network information.
According to the distribution network method, the password of the target hotspot and part of bytes in the identification information of the target hotspot are used as the distribution network information, so that the data length of the distribution network information is smaller than that formed by combining the password of the target hotspot and the SSID, and when the distribution network information is acquired by the equipment of the Internet of things, the number of data frames required to be intercepted is small, so that the distribution network information can be acquired more quickly and the target hotspot can be accessed more quickly; in addition, because the required frame number is less, the interference information in the intercepted data frame is less, and the success rate of the distribution network can be improved.
Fig. 3 is a schematic flow diagram of a distribution network method in another embodiment, which relates to a specific manner in which an internet of things device determines a name of a target hotspot, where distribution network information further includes a check code, and on the basis of the above embodiment, as shown in fig. 3, the S202 includes:
s301, hotspot information sent by at least one hotspot is obtained, wherein the hotspot information comprises a hotspot name.
The hot spots refer to hot spots in the monitoring range of the internet of things equipment. When the internet of things device acquires the hotspot information of the hotspot, the internet of things device may directly receive data sent by the hotspot device, or may call the hotspot information received and stored by the internet of things device, and the acquisition mode of the hotspot information is not limited herein.
The hotspot information includes a name of at least one hotspot, for example, after the internet of things device scans, hotspot information sent by 3 hotspots in the monitoring range is received, and hotspot information including SSIDs of the 3 hotspots can be obtained.
S302, matching the partial bytes with the acquired hotspot information, and determining the hotspot information to be selected matched with the partial bytes.
Further, the internet of things device can match part of bytes of the identification information of the target hotspot in the distribution network information with hotspot information of each hotspot in the hotspot information.
As an embodiment, the identification information may be a physical address of a target hotspot, and the at least one piece of hotspot information includes a physical address and a hotspot name of at least one hotspot. When the internet of things equipment determines the hot spot information to be selected, matching partial bytes of a physical address of a target hot spot with a physical address of at least one hot spot, and determining the physical address of the hot spot to be selected matched with the partial bytes; further, the internet of things device can also determine the name of the hot spot to be selected according to the physical address of the hot spot to be selected. For example, when a partial byte of the BSSID of the target hotspot is the first byte of the BSSID of the target hotspot, the internet-of-things device may extract the first byte of each BSSID in the hotspot information and compare the first byte with the first byte of the BSSID of the target hotspot to determine the BSSID matching the first byte.
As another embodiment, the identification information may also be a name of a target hotspot, and the at least one piece of hotspot information may include the name of at least one hotspot; when the internet of things device determines the information of the hot spot to be selected, partial bytes of the name of the target hot spot can be matched with the name of at least one hot spot, and the name of the hot spot to be selected matched with the partial bytes is determined.
Specifically, after the internet of things device matches the partial bytes with the acquired hotspot information, the acquired hotspot information to be selected may be hotspot information of one hotspot or hotspot information of a plurality of hotspots. Taking the partial byte as the first byte of the BSSID of the target hotspot as an example, if the first byte of the BSSIDs of two hotspots is the same as the first byte of the BSSID of the target hotspot in the BSSIDs of at least one hotspot, the internet-of-things device may determine the BSSIDs of the two hotspots as the BSSID of the candidate hotspot, and then further determine the BSSID of the candidate hotspot to determine the BSSID of the target hotspot.
And S303, verifying the hot spot information to be selected matched with the partial bytes according to the verification code.
The check code in the distribution network information is obtained by the terminal device by encoding the identification information of the target hotspot, and is used for the internet of things device to verify whether the hotspot corresponding to the hotspot information to be selected is the target hotspot. Correspondingly, after the internet of things equipment determines the hot spot information to be selected, the hot spot information to be selected is verified according to the verification code, whether the hot spot information to be selected meets the preset verification condition or not is determined, and the hot spot to be selected meeting the preset verification condition is the target hot spot. For example, the internet of things device may input the check code and the hot spot information to be selected into a check program, and output a result of whether the check condition is met through the check program. Or, the internet of things device may encode the hot spot information to be selected according to a preset encoding rule, and compare the encoding result with the check code, so as to determine whether the hot spot information to be selected meets a preset check condition.
The Check code may be a Cyclic Redundancy Check (CRC) code of the identification information of the target hotspot obtained according to a Check algorithm, may also be an exclusive-or Check code of the identification information, and may also be other types of Check codes.
When the identification information of the target hotspot is the BSSID of the target hotspot, the information of the hotspot to be selected, which is determined by the Internet of things device, can be the BSSID of the hotspot to be selected, and can also be the SSID of the hotspot to be selected; correspondingly, the check code may be a check code of BSSID of the target hotspot, or may be a check code of SSID of the target hotspot, which is not limited herein. If the information of the hot spot to be selected determined by the internet of things equipment is the BSSID of the hot spot to be selected, the internet of things equipment can verify the BSSID of the hot spot to be selected according to a verification code corresponding to the BSSID of the target hot spot, and then determine the SSID of the hot spot to be selected according to the BSSID of the hot spot to be selected meeting preset verification conditions; if the information of the hot spot to be selected determined by the internet of things device is the SSID of the hot spot to be selected, the internet of things device can check the SSID of the hot spot to be selected according to the check code corresponding to the SSID of the target hot spot, and the SSID of the hot spot to be selected meeting the preset check condition is directly determined as the SSID of the target hot spot.
When the identification information of the target hotspot is the SSID of the target hotspot, the information of the hotspot to be selected, which is determined by the Internet of things equipment, can be the SSID of the hotspot to be selected; correspondingly, the check code may be a check code of the SSID of the target hotspot. The internet of things equipment can check the SSID of the hot spot to be selected according to the check code of the SSID of the target hot spot, and then the SSID of the target hot spot is determined according to the SSID of the hot spot to be selected meeting preset check conditions.
Optionally, after determining the hot spot information to be selected, the internet of things device may perform a step of verifying the hot spot information to be selected; in addition, whether the hot spot information to be selected is unique or not can be judged, and then when the hot spot information to be selected is not unique, the hot spot information to be selected is verified.
S304, determining the name corresponding to the to-be-selected hotspot information meeting the preset verification condition as the name of the target hotspot.
On the basis of the steps, the internet of things equipment can determine the SSID of the target hotspot according to the information of the hotspot to be selected, which meets the preset verification condition.
According to the distribution network method, the Internet of things equipment is matched with the hotspot information of each hotspot according to the partial bytes of the identification information of the target hotspots, and then the hotspot information matched with the partial bytes is verified through the verification code, so that the obtained name of the target hotspot can be more accurate, and the distribution network success rate is improved.
Fig. 4 is a schematic flow diagram of a network distribution method in another embodiment, which relates to a specific manner for verifying hot spot information to be selected by an internet of things device in this embodiment, and on the basis of the embodiment, as shown in fig. 4, the S302 includes:
s401, coding the matched hot spot information to be selected according to a preset coding rule to obtain a plurality of alternative check codes.
The preset coding rule is the same as the coding rule of the check code obtained by the terminal equipment. The encoding rule may be specified by a communication protocol between the terminal device and the internet of things device. When the internet of things equipment verifies the matched hot spot information to be selected according to the verification code, the matched hot spot information to be selected can be coded according to the coding rule, and the alternative verification code corresponding to the matched hot spot information to be selected is obtained. That is to say, if the check code in the distribution network information is the CRC check code of the physical address of the target hotspot, the internet of things device may perform CRC check on each matched physical address to obtain a CRC check code corresponding to each matched physical address.
S402, if the alternative check code is the same as the check code, determining that the corresponding hot spot information to be selected meets a preset check condition.
Further, if the alternative check code is the same as the check code in the distribution network information, in view of the same coding rule, the internet of things device considers that the candidate hotspot information corresponding to the alternative check code is the same as the representation information of the target hotspot, so that it can be determined that the physical address corresponding to the alternative check code meets the preset check condition.
According to the distribution network information, the Internet of things equipment encodes the to-be-selected hot spot information matched with the partial bytes to determine whether the to-be-selected hot spot information meets the preset verification condition, and can quickly determine which to-be-selected hot spot information is the physical address of the target hot spot when the to-be-selected hot spot information matched with the partial bytes is not unique, so that the distribution network speed is improved.
In an embodiment, on the basis of the above embodiment, the network distribution process includes: thing networking device receives and joins in marriage net information, and above-mentioned net information of joining in marriage includes: the first byte of the SSID of the target hotspot, a check code corresponding to the SSID of the target hotspot and a password of the target hotspot; then, the Internet of things equipment acquires the SSIDs of all hotspots in the current monitoring range and stores the SSIDs as a hotspot information list; further, searching the first byte of the SSID of the target hotspot in the hotspot information list, determining the SSID of which the first byte is the same as the first byte of the SSID of the target hotspot, and if the searched SSID is not unique, further determining the SSID of the target hotspot according to the check code; on the basis of obtaining the SSID of the target hotspot, the target hotspot can be accessed according to the password of the target hotspot.
In another embodiment, on the basis of the above embodiment, the network distribution process includes: thing networking device receives and joins in marriage net information, and above-mentioned net information of joining in marriage includes: the first byte of the BSSID of the target hotspot, a check code corresponding to the BSSID of the target hotspot and a password of the target hotspot; then, the Internet of things equipment acquires SSIDs and BSSIDs of all hotspots in the current monitoring range and stores the SSIDs and BSSIDs as a hotspot information list; further, searching a first byte of the BSSID of the target hotspot in the hotspot information list, determining the BSSID with the first byte same as the first byte of the BSSID of the target hotspot, if the searched BSSID is not unique, further determining the BSSID of the target hotspot according to a check code, and then determining an SSID corresponding to the BSSID in the hotspot information list, namely the SSID of the target hotspot; on the basis of obtaining the SSID of the target hotspot, the target hotspot can be accessed according to the password of the target hotspot.
According to the distribution network method, part of bytes of the identification information in the distribution network information are the first byte of the SSID of the target hotspot or the first byte of the BSSID of the target hotspot, so that the byte number of the distribution network information can be further reduced, and the distribution network success rate is improved.
In an embodiment, as shown in fig. 5, a network distribution method is provided, which is described by taking an example that the method is applied to the terminal device in fig. 1, and includes:
s501, acquiring distribution network information of a target hotspot; the distribution network information comprises a password of the target hotspot and part of bytes in the identification information of the target hotspot.
The terminal device may obtain the distribution network information of the currently connected hotspot, and may also obtain the distribution network information of the connected hotspot, for example, after the terminal device is connected to the hotspot a, the distribution network information of the hotspot a may be stored, and then the stored distribution network information of the hotspot a is called in a state of being currently connected to the hotspot B; the method for acquiring the distribution network information is not limited herein.
The distribution network information includes a password of the target hotspot and a part of bytes in the identification information of the target hotspot, and the specific implementation manner of the target hotspot and the identification information is similar to that described in S201 and is not described again here.
Alternatively, the identification information may be the BSSID or SSID of the target hotspot. When the terminal device acquires the distribution network information of the target hotspot, the password and the complete identification information of the target hotspot can be acquired first, and then partial bytes are extracted from the complete identification information. Or, when the terminal device acquires the distribution network information of the target hotspot, the terminal device can directly acquire the password and part of bytes of the identification information of the target hotspot.
S502, sending distribution network information, wherein the distribution network information is used for indicating that the Internet of things equipment acquires the name of the target hotspot according to the distribution network information after receiving the distribution network information, and the name of the target hotspot and the password of the target hotspot are used for indicating that the Internet of things equipment is accessed to the target hotspot.
After the terminal device obtains the distribution network information of the target hotspot, the distribution network information may be sent in a User Datagram Protocol (UDP) broadcast manner, or in a multicast manner, which is not limited herein.
After the internet of things equipment receives the distribution network information, the identification information of the target hotspot can be obtained according to part of bytes in the identification information of the target hotspot in the distribution network information, and then the target hotspot is accessed through the password of the target hotspot.
According to the network distribution method, the terminal equipment acquires the network distribution information of the target hotspot, wherein the network distribution information comprises the password of the target hotspot and part of bytes in the identification information of the target hotspot; and then, the distribution network information is sent, so that the Internet of things equipment can acquire identification information of the target hotspot according to the distribution network information, and then the target hotspot is accessed through the password of the target hotspot. Because the distribution network information comprises the password of the target hotspot and part of bytes in the identification information of the target hotspot, the length of the distribution network information is smaller than the data length formed by combining the password of the target hotspot and the SSID, so that when the Internet of things equipment acquires the distribution network information, the quantity of data frames required to be intercepted is less, and the distribution network information is acquired more quickly and is accessed into the target hotspot more quickly; in addition, because the required frame number is less, the interference information in the intercepted data frame is less, and the success rate of the distribution network can be improved.
In an embodiment, on the basis of the above embodiment, the distribution network information may further include a check code; before the terminal equipment sends the distribution network information, the identification information of the target hotspot can be coded according to a preset coding rule to obtain a check code; the check code is then incorporated into the distribution network information.
Specifically, after acquiring the password of the target hotspot and the identification information of the target hotspot, the terminal device may encode the identification information of the target hotspot according to a preset encoding rule to obtain the check code. The check code is used for indicating the Internet of things equipment to check the pre-acquired hotspot information.
When the identification information is the SSID of the target hotspot, the terminal device can encode the SSID of the target hotspot; when the identification information is the BSSID of the target hotspot, the terminal device may encode the BSSID of the target hotspot, or may acquire the SSID of the target hotspot and then encode the SSID of the target hotspot, which is not limited in this embodiment.
According to the network distribution method, the terminal equipment obtains the check code by coding the identification information, so that the Internet of things equipment can check the pre-obtained hotspot information according to the check code, the accurate name of the target hotspot is obtained, and the success rate of network distribution is improved.
In an embodiment, on the basis of the above embodiment, as shown in fig. 6, there is provided a network distribution method, where the method includes:
s601, the terminal equipment acquires distribution network information of a target hotspot; the distribution network information comprises a password of the target hotspot, a first byte of BSSID of the target hotspot and a check code of BSSID of the target hotspot;
s602, the terminal equipment sends distribution network information;
s603, the Internet of things equipment receives distribution network information sent by the terminal equipment;
s604, the Internet of things equipment acquires hotspot information sent by at least one hotspot;
s605, in BSSIDs of at least one hotspot, the Internet of things equipment determines BSSIDs matched with first bytes of BSSIDs of target hotspots;
s606, the Internet of things equipment determines whether the matched BSSID is unique, and if not, S607 is executed; if yes, executing S609;
s607, the Internet of things equipment encodes the matched BSSIDs according to a preset encoding rule to obtain a plurality of alternative check codes, and then S608 is executed;
s608, determining whether the alternative check code is the same as the check code, if so, executing S609; if not, returning to execute S608;
s609, determining the matched BSSID as the BSSID of the target hotspot;
s610, acquiring SSID of the target hotspot according to BSSID of the target hotspot;
s611, accessing the target hotspot according to the name of the target hotspot and the password of the target hotspot.
The network distribution method provided by the embodiment of the application has the implementation principle and the technical effect similar to those of the embodiment, and is not repeated herein.
In one embodiment, as shown in fig. 7, a network distribution method is provided, where the method includes:
s701, terminal equipment acquires distribution network information of a target hotspot; the distribution network information comprises a password of the target hotspot, a first byte of the SSID of the target hotspot and a check code of the SSID of the target hotspot;
s702, the terminal equipment sends distribution network information;
s703, the Internet of things equipment receives distribution network information sent by the terminal equipment;
s704, the Internet of things equipment acquires hotspot information sent by at least one hotspot;
s705, in the SSIDs of at least one hotspot, the equipment of the Internet of things determines the SSID matched with the first byte of the SSID of the target hotspot;
s706, the Internet of things equipment determines whether the matched SSID is unique, and if not, S707 is executed; if yes, go to step S709;
s707, the Internet of things equipment encodes each matched SSID according to a preset encoding rule to obtain a plurality of alternative check codes, and then S708 is executed;
s708, determining whether the alternative check code is the same as the check code, if so, executing S709; if not, returning to execute S708;
s709, determining the matched SSID as the SSID of the target hotspot;
and S710, accessing the target hotspot according to the SSID of the target hotspot and the password of the target hotspot.
The network distribution method provided by the embodiment of the application has the implementation principle and the technical effect similar to those of the embodiment, and is not repeated herein.
It should be understood that although the various steps in the flow charts of fig. 2-7 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-7 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 8, there is provided a distribution network apparatus including: receiving module 10, determining module 20 and accessing module 30, wherein:
the receiving module 10 is configured to receive distribution network information sent by a terminal device; the distribution network information comprises a password of a target hotspot to be accessed by the Internet of things equipment and part of bytes in the identification information of the target hotspot;
a determining module 20, configured to determine a name of the target hotspot according to a part of bytes in the identification information and at least one piece of hotspot information acquired in advance;
and the access module 30 is configured to access the target hotspot according to the name of the target hotspot and the password of the target hotspot.
The distribution network device provided by the embodiment of the application can realize the method embodiment, the realization principle and the technical effect are similar, and the details are not repeated.
In an embodiment, the distribution network information further includes a check code, and on the basis of the above embodiment, as shown in fig. 9, the determining module 20 includes:
an obtaining unit 201, configured to obtain hotspot information sent by at least one hotspot, where the hotspot information includes a hotspot name;
the matching unit 202 is configured to match a part of bytes with the acquired hotspot information, and determine to-be-selected hotspot information matched with the part of bytes;
the verification unit 203 is configured to verify hot spot information to be selected, which is matched with a part of bytes, according to the verification code;
the determining unit 204 is configured to determine a name corresponding to the to-be-selected hotspot information meeting the preset verification condition as a name of the target hotspot.
In an embodiment, on the basis of the foregoing embodiment, the foregoing checking unit 203 is specifically configured to: and when the hot spot information to be selected matched with the partial bytes is not unique, verifying the hot spot information to be selected matched with the partial bytes.
In an embodiment, on the basis of the above embodiment, as shown in fig. 10, the verification unit 203 includes:
the encoding subunit 2031 is configured to encode, according to a preset encoding rule, each matched hot spot information to be selected, to obtain multiple candidate check codes;
the determining subunit 2032 is configured to determine that the corresponding hot spot information to be selected meets the preset verification condition when the candidate verification code is the same as the verification code.
In an embodiment, on the basis of the foregoing embodiment, the identification information is a physical address of a target hotspot, the at least one piece of hotspot information includes a physical address and a hotspot name of the at least one hotspot, and the matching unit 202 is specifically configured to: matching partial bytes of the physical address of the target hotspot with the physical address of at least one hotspot, and determining the physical address of the hotspot to be selected, which is matched with the partial bytes.
In an embodiment, on the basis of the foregoing embodiment, the identification information is a name of the target hotspot, the at least one piece of hotspot information includes the name of the at least one hotspot, and the matching unit 202 is specifically configured to: and matching partial bytes of the name of the target hotspot with the name of at least one hotspot, and determining the name of the hotspot to be selected, which is matched with the partial bytes.
In one embodiment, as shown in fig. 11, there is provided a distribution network apparatus including: an acquisition module 110 and a broadcast module 120, wherein:
the acquiring module 110 is configured to acquire distribution network information of a target hotspot; the distribution network information comprises a password of the target hotspot and part of bytes in the identification information of the target hotspot;
the sending module 120 is configured to send distribution network information, where the distribution network information is used to indicate that, after receiving the distribution network information, the internet of things device obtains a name of a target hotspot according to the distribution network information, and the name of the target hotspot and a password of the target hotspot are used to indicate that the internet of things device accesses the target hotspot.
In an embodiment, the distribution network information further includes a check code, and on the basis of the above embodiment, as shown in fig. 12, the distribution network apparatus further includes an encoding module 130, configured to: coding the identification information of the target hotspot according to a preset coding rule to obtain a check code; merging the check code into the distribution network information; the check code is used for indicating the Internet of things equipment to check the pre-acquired hotspot information.
The distribution network device provided by the embodiment of the application can realize the method embodiment, the realization principle and the technical effect are similar, and the details are not repeated.
For specific limitations of the distribution network device, reference may be made to the above limitations of the distribution network device method, which is not described herein again. The modules in the distribution network device can be implemented in whole or in part by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, an internet of things device is provided, and an internal structure diagram of the internet of things device can be shown in fig. 13. The internet of things equipment comprises a processor, a memory and a network interface which are connected through a system bus. Wherein, the processor of the internet of things equipment is used for providing calculation and control capability. The memory of the Internet of things equipment comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the Internet of things equipment is used for being connected and communicated with an external terminal through a network. The computer program is executed by a processor to implement a network distribution method.
Those skilled in the art will appreciate that the architecture shown in fig. 13 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, an internet of things device is provided, which includes a memory and a processor, wherein the memory stores a computer program, and the processor realizes the following steps when executing the computer program:
receiving distribution network information sent by terminal equipment; the distribution network information comprises a password of a target hotspot to be accessed by the Internet of things equipment and part of bytes in the identification information of the target hotspot;
determining the name of a target hotspot according to a part of bytes in the identification information and at least one piece of hotspot information acquired in advance;
and accessing the target hotspot according to the name of the target hotspot and the password of the target hotspot.
In one embodiment, the distribution network information further comprises a check code; the processor, when executing the computer program, further performs the steps of: acquiring hotspot information sent by at least one hotspot, wherein the hotspot information comprises a hotspot name; matching the partial bytes with the acquired hotspot information, and determining the hotspot information to be selected matched with the partial bytes; according to the check code, checking the hot spot information to be selected matched with part of bytes; and determining the name corresponding to the to-be-selected hotspot information meeting the preset verification condition as the name of the target hotspot.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and when the hot spot information to be selected matched with the partial bytes is not unique, verifying the hot spot information to be selected matched with the partial bytes.
In one embodiment, the processor, when executing the computer program, further performs the steps of: coding each matched hot spot information to be selected according to a preset coding rule to obtain a plurality of alternative check codes; and if the alternative check code is the same as the check code, determining that the hot spot information to be selected meets the preset check condition.
In one embodiment, the identification information is a physical address of the target hotspot, the at least one piece of hotspot information includes a physical address and a hotspot name of the at least one hotspot, and the processor, when executing the computer program, further implements the following steps: matching partial bytes of the physical address of the target hotspot with the physical address of at least one hotspot, and determining the physical address of the hotspot to be selected, which is matched with the partial bytes.
In one embodiment, the identification information is a name of the target hotspot, the at least one piece of hotspot information includes a name of the at least one hotspot, and the processor, when executing the computer program, further implements the following steps: and matching partial bytes of the name of the target hotspot with the name of at least one hotspot, and determining the name of the hotspot to be selected, which is matched with the partial bytes.
The implementation principle and technical effect of the internet of things device provided by this embodiment are similar to those of the method embodiments corresponding to fig. 2 to 5, and are not described herein again.
In one embodiment, a terminal device is provided, the internal structure of which may be as shown in fig. 14. The terminal equipment comprises a processor, a memory, a network interface, a display screen and an input device which are connected through a system bus. Wherein the processor of the terminal device is configured to provide computing and control capabilities. The memory of the terminal equipment comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the terminal device is used for connecting and communicating with an external terminal through a network. The computer program is executed by a processor to implement a network distribution method. The display screen of the terminal equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the terminal equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the terminal equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 14 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, there is provided a terminal device comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
acquiring distribution network information of a target hotspot; the distribution network information comprises a password of the target hotspot and part of bytes in the identification information of the target hotspot;
and sending distribution network information, wherein the distribution network information is used for indicating that the internet of things equipment acquires the name of the target hotspot according to the distribution network information after receiving the distribution network information, and the name of the target hotspot and the password of the target hotspot are used for indicating that the internet of things equipment is accessed to the target hotspot.
In one embodiment, the distribution network information further comprises a check code; the processor, when executing the computer program, further performs the steps of: coding the identification information of the target hotspot according to a preset coding rule to obtain a check code; merging the check code into the distribution network information; the check code is used for indicating the Internet of things equipment to check the pre-acquired hotspot information.
The implementation principle and technical effect of the terminal device provided in this embodiment are similar to those of the method embodiment corresponding to fig. 6, and are not described herein again.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
receiving distribution network information sent by terminal equipment; the distribution network information comprises a password of a target hotspot to be accessed by the Internet of things equipment and part of bytes in the identification information of the target hotspot;
determining the name of a target hotspot according to a part of bytes in the identification information and at least one piece of hotspot information acquired in advance;
and accessing the target hotspot according to the name of the target hotspot and the password of the target hotspot.
In one embodiment, the distribution network information further comprises a check code; the computer program when executed by the processor further realizes the steps of: acquiring hotspot information sent by at least one hotspot, wherein the hotspot information comprises a hotspot name; matching the partial bytes with the acquired hotspot information, and determining the hotspot information to be selected matched with the partial bytes; according to the check code, checking the hot spot information to be selected matched with part of bytes; and determining the name corresponding to the to-be-selected hotspot information meeting the preset verification condition as the name of the target hotspot.
In one embodiment, the computer program when executed by the processor further performs the steps of: and when the hot spot information to be selected matched with the partial bytes is not unique, verifying the hot spot information to be selected matched with the partial bytes.
In one embodiment, the computer program when executed by the processor further performs the steps of: coding each matched hot spot information to be selected according to a preset coding rule to obtain a plurality of alternative check codes; and if the alternative check code is the same as the check code, determining that the hot spot information to be selected meets the preset check condition.
In one embodiment, the identification information is a physical address of the target hotspot, the at least one piece of hotspot information includes a physical address and a hotspot name of the at least one hotspot, and the computer program when executed by the processor further implements the following steps: matching partial bytes of the physical address of the target hotspot with the physical address of at least one hotspot, and determining the physical address of the hotspot to be selected, which is matched with the partial bytes.
In one embodiment, the identification information is a name of the target hotspot, the at least one piece of hotspot information includes a name of the at least one hotspot, and the computer program when executed by the processor further implements the steps of: and matching partial bytes of the name of the target hotspot with the name of at least one hotspot, and determining the name of the hotspot to be selected, which is matched with the partial bytes.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring distribution network information of a target hotspot; the distribution network information comprises a password of the target hotspot and part of bytes in the identification information of the target hotspot;
and sending distribution network information, wherein the distribution network information is used for indicating that the internet of things equipment acquires the name of the target hotspot according to the distribution network information after receiving the distribution network information, and the name of the target hotspot and the password of the target hotspot are used for indicating that the internet of things equipment is accessed to the target hotspot.
In one embodiment, the distribution network information further comprises a check code; the computer program when executed by the processor further realizes the steps of: coding the identification information of the target hotspot according to a preset coding rule to obtain a check code; merging the check code into the distribution network information; the check code is used for indicating the Internet of things equipment to check the pre-acquired hotspot information.
The implementation principle and technical effect of the computer-readable storage medium provided by this embodiment are similar to those of the above-described method embodiment, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (13)

1. A network distribution method is applied to equipment of the Internet of things, and is characterized by comprising the following steps:
receiving distribution network information sent by terminal equipment; the distribution network information comprises a password of a target hotspot to be accessed by the Internet of things equipment and part of bytes in the identification information of the target hotspot; the identification information is the name of the target hotspot or the physical address of the target hotspot;
determining the name of the target hotspot according to a part of bytes in the identification information and at least one piece of hotspot information acquired in advance; when the identification information is the name of the target hotspot, the at least one piece of hotspot information comprises the name of the at least one hotspot; when the identification information is a physical address of a target hotspot, the at least one piece of hotspot information comprises the physical address and the name of the at least one hotspot;
and accessing the target hotspot according to the name of the target hotspot and the password of the target hotspot.
2. The method of claim 1, wherein the distribution network information further comprises a check code; determining the name of the target hotspot according to a part of bytes in the identification information and at least one piece of hotspot information acquired in advance, wherein the determining comprises:
acquiring hotspot information sent by at least one hotspot;
matching the partial bytes with the acquired hotspot information, and determining hotspot information to be selected matched with the partial bytes;
according to the check code, checking the hot spot information to be selected matched with the partial bytes;
and determining the name corresponding to the to-be-selected hotspot information meeting the preset verification condition as the name of the target hotspot.
3. The method according to claim 2, wherein the checking the hot spot information to be selected that matches the partial byte according to the check code comprises:
and when the hot spot information to be selected matched with the partial bytes is not unique, verifying the hot spot information to be selected matched with the partial bytes.
4. The method according to claim 3, wherein the checking the hot spot information to be selected that matches the partial byte according to the check code comprises:
coding the matched hot spot information to be selected according to a preset coding rule to obtain a plurality of alternative check codes;
and if the alternative check code is the same as the check code, determining that the hot spot information to be selected meets the preset check condition.
5. The method according to any one of claims 2 to 4, wherein the identification information is a physical address of the target hotspot, and the at least one hotspot information comprises a physical address and a hotspot name of at least one hotspot;
the matching the partial bytes with the acquired hotspot information and determining the hotspot information to be selected matched with the partial bytes comprises:
matching partial bytes of the physical address of the target hotspot with the physical address of the at least one hotspot, and determining the physical address of the hotspot to be selected, which is matched with the partial bytes.
6. The method according to any one of claims 2 to 4, wherein the identification information is a name of the target hotspot, and the at least one hotspot information comprises a name of at least one hotspot;
the matching the partial bytes with the acquired hotspot information and determining the hotspot information to be selected matched with the partial bytes comprises:
and matching partial bytes of the name of the target hotspot with the name of the at least one hotspot, and determining the name of the hotspot to be selected, which is matched with the partial bytes.
7. A network distribution method is applied to terminal equipment and is characterized by comprising the following steps:
acquiring distribution network information of a target hotspot; the distribution network information comprises a password of a target hotspot and part of bytes in the identification information of the target hotspot; the identification information is the name of the target hotspot or the physical address of the target hotspot;
sending the distribution network information, wherein the distribution network information is used for indicating that the internet of things equipment acquires the name of a target hotspot according to part of bytes in identification information in the distribution network information and at least one piece of hotspot information acquired in advance after receiving the distribution network information, and the name of the target hotspot and a password of the target hotspot are used for indicating that the internet of things equipment is accessed to the target hotspot; when the identification information is the name of the target hotspot, the at least one piece of hotspot information comprises the name of the at least one hotspot; and when the identification information is the physical address of the target hotspot, the at least one piece of hotspot information comprises the physical address and the name of the at least one hotspot.
8. The method of claim 7, wherein the distribution network information further comprises a check code; before the sending the distribution network information, the method further includes:
coding the identification information of the target hotspot according to a preset coding rule to obtain a check code;
incorporating the check code into the distribution network information;
the check code is used for indicating the Internet of things equipment to check the pre-acquired hotspot information.
9. A network-distribution apparatus, the apparatus comprising:
the receiving module is used for receiving the distribution network information sent by the terminal equipment; the distribution network information comprises a password of a target hotspot to be accessed by the Internet of things equipment and part of bytes in the identification information of the target hotspot; the identification information is the name of the target hotspot or the physical address of the target hotspot;
the determining module is used for determining the name of the target hotspot according to part of bytes in the identification information and at least one piece of hotspot information acquired in advance; when the identification information is the name of the target hotspot, the at least one piece of hotspot information comprises the name of the at least one hotspot; when the identification information is a physical address of a target hotspot, the at least one piece of hotspot information comprises the physical address and the name of the at least one hotspot;
and the access module is used for accessing the target hotspot according to the name of the target hotspot and the password of the target hotspot.
10. A network-distribution apparatus, the apparatus comprising:
the acquisition module is used for acquiring the distribution network information of the target hotspot; the distribution network information comprises a password of a target hotspot and part of bytes in the identification information of the target hotspot; the identification information is the name of the target hotspot or the physical address of the target hotspot;
the distribution network information is used for indicating that the internet of things equipment acquires the name of a target hotspot according to part of bytes in the identification information in the distribution network information and at least one piece of hotspot information acquired in advance after receiving the distribution network information, and the name of the target hotspot and the password of the target hotspot are used for indicating that the internet of things equipment is accessed to the target hotspot; when the identification information is the name of the target hotspot, the at least one piece of hotspot information comprises the name of the at least one hotspot; and when the identification information is the physical address of the target hotspot, the at least one piece of hotspot information comprises the physical address and the name of the at least one hotspot.
11. An internet of things device comprising a memory and a processor, the memory storing a computer program, wherein the processor when executing the computer program implements the steps of the method of any one of claims 1 to 6.
12. A terminal device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor realizes the steps of the method according to any of claims 7 to 8 when executing the computer program.
13. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 8.
CN201910898060.2A 2019-09-23 2019-09-23 Network distribution method and device, Internet of things equipment, terminal equipment and storage medium Active CN110650516B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910898060.2A CN110650516B (en) 2019-09-23 2019-09-23 Network distribution method and device, Internet of things equipment, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910898060.2A CN110650516B (en) 2019-09-23 2019-09-23 Network distribution method and device, Internet of things equipment, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110650516A CN110650516A (en) 2020-01-03
CN110650516B true CN110650516B (en) 2021-10-08

Family

ID=68992295

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910898060.2A Active CN110650516B (en) 2019-09-23 2019-09-23 Network distribution method and device, Internet of things equipment, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110650516B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111866999B (en) * 2020-07-24 2021-09-24 深圳创维数字技术有限公司 Intelligent device network distribution method, system and storage medium
CN112492611A (en) * 2020-11-30 2021-03-12 美的智慧家居科技有限公司 Network configuration method, network configuration device, electronic equipment and readable storage medium
CN113489630A (en) * 2021-06-09 2021-10-08 深圳Tcl新技术有限公司 Network distribution method, device, storage medium and electronic terminal
CN113472584A (en) * 2021-07-07 2021-10-01 青岛海尔科技有限公司 Equipment configuration method and device and Internet of things equipment
CN113518407A (en) * 2021-08-04 2021-10-19 广东好太太智能家居有限公司 WiFi network distribution method and system for intelligent equipment, electronic equipment and medium
CN113765903B (en) * 2021-08-26 2023-07-28 科大讯飞股份有限公司 Screen projection method, related device, electronic equipment and storage medium
CN113794598A (en) * 2021-09-15 2021-12-14 云茂互联智能科技(厦门)有限公司 Method and device for configuring information of Internet of things equipment, electronic equipment and storage medium

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104619040A (en) * 2015-02-10 2015-05-13 福州瑞芯微电子有限公司 Method and system for quickly connecting WIFI equipment
CN105451230A (en) * 2015-11-12 2016-03-30 深圳市江波龙科技有限公司 Internet-of-things device configuration method and Internet-of-things device configuration system
CN106375167A (en) * 2016-10-13 2017-02-01 杭州鸿雁智能科技有限公司 NFC-based intelligent home network distribution device and network distribution method
CN106375166A (en) * 2016-09-30 2017-02-01 无锡小天鹅股份有限公司 Network allocation method, device and system for household electrical appliance and intelligent router
CN106411621A (en) * 2016-12-09 2017-02-15 中国科学院深圳先进技术研究院 Internet of Things device, network configuring method, apparatus, system and terminal for the same
CN106658756A (en) * 2016-12-13 2017-05-10 浙江大华技术股份有限公司 Method and device for recognizing connection between terminal device and hotspot
CN106686593A (en) * 2016-12-28 2017-05-17 深圳Tcl智能家庭科技有限公司 WIFI-module-based network-access configuration method and apparatus for smart devices
CN107171903A (en) * 2017-05-02 2017-09-15 青岛海尔空调器有限总公司 A kind of household electrical appliances distribution method and device
CN107483275A (en) * 2017-09-25 2017-12-15 深圳市斑点猫信息技术有限公司 Configure the method, apparatus and system of wireless routing
CN107659472A (en) * 2017-09-19 2018-02-02 广东美的制冷设备有限公司 Anti-error distribution method and apparatus based on access focus distribution
CN107801229A (en) * 2017-08-31 2018-03-13 捷开通讯(深圳)有限公司 Smart home is with network method, terminal, equipment and the device with store function
CN109219045A (en) * 2018-09-17 2019-01-15 北京奇艺世纪科技有限公司 A kind of router connection method, device, electronic equipment and system
CN109257795A (en) * 2018-08-17 2019-01-22 珠海格力电器股份有限公司 A kind of method and apparatus carrying out distribution
CN109495979A (en) * 2018-11-20 2019-03-19 北京小米移动软件有限公司 Wireless network connecting method and device
CN109640375A (en) * 2019-01-23 2019-04-16 欧普照明股份有限公司 A kind of smart machine distribution method and system
CN110191498A (en) * 2019-06-17 2019-08-30 杭州涂鸦信息技术有限公司 A kind of distribution method, apparatus, equipment and the storage medium of smart machine

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10206115B2 (en) * 2016-05-31 2019-02-12 At&T Intellectual Property I, L.P. Wi-Fi virtualized network operator

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104619040A (en) * 2015-02-10 2015-05-13 福州瑞芯微电子有限公司 Method and system for quickly connecting WIFI equipment
CN105451230A (en) * 2015-11-12 2016-03-30 深圳市江波龙科技有限公司 Internet-of-things device configuration method and Internet-of-things device configuration system
CN106375166A (en) * 2016-09-30 2017-02-01 无锡小天鹅股份有限公司 Network allocation method, device and system for household electrical appliance and intelligent router
CN106375167A (en) * 2016-10-13 2017-02-01 杭州鸿雁智能科技有限公司 NFC-based intelligent home network distribution device and network distribution method
CN106411621A (en) * 2016-12-09 2017-02-15 中国科学院深圳先进技术研究院 Internet of Things device, network configuring method, apparatus, system and terminal for the same
CN106658756A (en) * 2016-12-13 2017-05-10 浙江大华技术股份有限公司 Method and device for recognizing connection between terminal device and hotspot
CN106686593A (en) * 2016-12-28 2017-05-17 深圳Tcl智能家庭科技有限公司 WIFI-module-based network-access configuration method and apparatus for smart devices
CN107171903A (en) * 2017-05-02 2017-09-15 青岛海尔空调器有限总公司 A kind of household electrical appliances distribution method and device
CN107801229A (en) * 2017-08-31 2018-03-13 捷开通讯(深圳)有限公司 Smart home is with network method, terminal, equipment and the device with store function
CN107659472A (en) * 2017-09-19 2018-02-02 广东美的制冷设备有限公司 Anti-error distribution method and apparatus based on access focus distribution
CN107483275A (en) * 2017-09-25 2017-12-15 深圳市斑点猫信息技术有限公司 Configure the method, apparatus and system of wireless routing
CN109257795A (en) * 2018-08-17 2019-01-22 珠海格力电器股份有限公司 A kind of method and apparatus carrying out distribution
CN109219045A (en) * 2018-09-17 2019-01-15 北京奇艺世纪科技有限公司 A kind of router connection method, device, electronic equipment and system
CN109495979A (en) * 2018-11-20 2019-03-19 北京小米移动软件有限公司 Wireless network connecting method and device
CN109640375A (en) * 2019-01-23 2019-04-16 欧普照明股份有限公司 A kind of smart machine distribution method and system
CN110191498A (en) * 2019-06-17 2019-08-30 杭州涂鸦信息技术有限公司 A kind of distribution method, apparatus, equipment and the storage medium of smart machine

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Wireless communication protocols for smart metering applications in power distribution networks;Mojtaba Rafiei,S. Mostafa Elmi,Akbar Zare;《IEEE》;20120503;全文 *

Also Published As

Publication number Publication date
CN110650516A (en) 2020-01-03

Similar Documents

Publication Publication Date Title
CN110650516B (en) Network distribution method and device, Internet of things equipment, terminal equipment and storage medium
CN114930945A (en) Information reporting method, device, equipment and storage medium
WO2020057400A1 (en) Multi-card roaming network registration method and apparatus, computer device and storage medium
CN110602691A (en) Mobile communication method and device based on block chain network
CN110475242B (en) LTE network registration method, device, storage medium and computer equipment
CN111510909B (en) Communication module configuration processing method and device, computer equipment and storage medium
CN104967997A (en) Wireless network accessing method, Wi-Fi equipment, terminal equipment and system
CN112822756B (en) Communication method, system, base station and terminal
CN112261717A (en) Network registration method, device, user terminal and storage medium
CN107820246B (en) User authentication method, device and system
EP3266259B1 (en) Enable access point availability prediction
CN112804651B (en) Binding method and device and computer equipment
CN109219045B (en) Router connection method, device, electronic equipment and system
CN110636590A (en) Hotspot list generation method and device, computer equipment and storage medium
CN113194521B (en) Network searching method and device for 5G communication module, computer equipment and storage medium
CN111510910A (en) Communication module frequency band setting method and device, computer equipment and storage medium
CN111510995B (en) Wireless communication method and apparatus
CN111478802B (en) Distribution network processing method, device, system, computer equipment and storage medium
CN112714009B (en) Network distribution method, network equipment to be distributed and network equipment
CN111385797B (en) WiFi network distribution method, device, apparatus and storage medium
CN110493185B (en) Channel dwell method, apparatus, computer device and storage medium
RU2674253C1 (en) Method of receiving and sending information via downlink, user device and network device
CN110557374B (en) Power data acquisition method and device, computer equipment and storage medium
CN111526514B (en) Method and device for multi-band communication
CN107548058B (en) Equipment access method and intelligent 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
GR01 Patent grant
GR01 Patent grant