CN111385797B - WiFi network distribution method, device, apparatus and storage medium - Google Patents

WiFi network distribution method, device, apparatus and storage medium Download PDF

Info

Publication number
CN111385797B
CN111385797B CN202010186819.7A CN202010186819A CN111385797B CN 111385797 B CN111385797 B CN 111385797B CN 202010186819 A CN202010186819 A CN 202010186819A CN 111385797 B CN111385797 B CN 111385797B
Authority
CN
China
Prior art keywords
distribution network
information
data packet
packet
network data
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
CN202010186819.7A
Other languages
Chinese (zh)
Other versions
CN111385797A (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.)
Spreadtrum Communications Shanghai Co Ltd
Original Assignee
Spreadtrum Communications Shanghai 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 Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN202010186819.7A priority Critical patent/CN111385797B/en
Publication of CN111385797A publication Critical patent/CN111385797A/en
Application granted granted Critical
Publication of CN111385797B publication Critical patent/CN111385797B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • H04W12/068Authentication using credential vaults, e.g. password manager applications or one time password [OTP] applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
    • H04W28/24Negotiating SLA [Service Level Agreement]; Negotiating QoS [Quality of Service]
    • 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)
  • Quality & Reliability (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application discloses a WiFi network distribution method, which is applied to first equipment and comprises the following steps: acquiring distribution network information of an Access Point (AP); encoding the distribution network information of the access point AP into length information and QoS (quality of service) information; generating a first distribution network data packet; the WiFi packet length information of the first distribution network data packet is length information obtained by coding, and the QoS information of the first distribution network data packet is QoS information obtained by coding; sending a distribution network data packet to the second device; the distribution network data packet comprises: the first distribution network data packet. By adopting the method and the device, the success rate and the robustness of the WiFi distribution network can be improved.

Description

WiFi network distribution method, device, apparatus and storage medium
Technical Field
The invention relates to the field of communication, in particular to a WiFi network distribution method, wiFi network distribution equipment, wiFi network distribution device and a storage medium.
Background
With the development of WiFi (Wireless-Fidelity) network communication, the demand for various devices to connect to a WiFi network is gradually increasing. Most of equipment with the distribution network requirement is not provided with input equipment such as a touch screen and a keyboard, and the equipment needing auxiliary distribution network sends distribution network information to the equipment with the distribution network requirement in a wireless electromagnetic wave mode. At present, the effective distribution network information carried by the method is less, so that the distribution network success rate is lower. How to improve the success rate of the distribution network for the equipment with the distribution network requirement becomes a research hotspot.
Disclosure of Invention
The embodiment of the application provides a WiFi network distribution method, device and apparatus and a storage medium, which can improve the success rate and robustness of a network distribution.
In order to solve the foregoing technical problem, in a first aspect, an embodiment of the present application provides a WiFi network distribution method, which is applied to a first device, and the method includes:
acquiring distribution network information of an Access Point (AP);
coding the distribution network information of the access point AP into length information and QoS (quality of service) information;
generating a first distribution network data packet; the WiFi packet length information of the first distribution network data packet is length information obtained by coding, and the QoS information of the first distribution network data packet is QoS information obtained by coding;
sending a distribution network data packet to the second device; the distribution network data packet comprises: the first distribution network data packet.
In a second aspect, an embodiment of the present application further provides a WiFi network distribution method, which is applied to a second device, and the method includes:
receiving a distribution network data packet; the distribution network data packet comprises: the system comprises a first distribution network data packet, a first distribution network data packet and a first distribution network management module, wherein the WiFi packet length information and the QoS information of the first distribution network data packet carry distribution network information of an Access Point (AP);
and decoding the distribution network data packet to acquire the distribution network information of the access point AP.
In a third aspect, an embodiment of the present application further provides a WiFi network distribution device, where the WiFi network distribution device includes: a storage device and a processor, wherein the processor is capable of processing data,
the storage device is used for storing program instructions;
the processor is configured to execute the WiFi network distribution method of the first aspect when the storage instruction is invoked.
In a fourth aspect, an embodiment of the present application further provides a WiFi network distribution device, where the WiFi network distribution device includes: a storage device and a processor, wherein the processor is capable of,
the storage device is used for storing program instructions;
and the processor is used for executing the WiFi network distribution method of the second aspect when the storage instruction is called.
In a fifth aspect, an embodiment of the present application further provides a WiFi network distribution device, where the WiFi network distribution device includes:
the acquisition module is used for acquiring distribution network information of the access point AP;
the generation module is used for coding the distribution network information of the access point AP into length information and QoS information; generating a first distribution network data packet; the WiFi packet length information of the first distribution network data packet is length information obtained by coding, and the QoS information of the first distribution network data packet is QoS information obtained by coding;
the sending module is used for sending the distribution network data packet to the second equipment; the distribution network data packet comprises: and the first distribution network data packet.
In a sixth aspect, an embodiment of the present application further provides a WiFi network distribution device, where the WiFi network distribution device includes:
the receiving module is used for receiving the distribution network data packet; the distribution network data packet comprises: the WiFi packet length information and the QoS information of the first distribution network data packet carry distribution network information of an Access Point (AP);
and the acquisition module is used for decoding the distribution network data packet and acquiring the distribution network information of the access point AP.
In a seventh aspect, an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium is used to store a computer program, and the computer program enables a computer to execute the WiFi network distribution method in the first aspect.
In an eighth aspect, an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium is configured to store a computer program, and the computer program enables a computer to execute the WiFi network distribution method according to the second aspect.
The embodiment of the application has the following beneficial effects:
the method can encode the distribution network information into the WiFi packet length information and the QoS information, so that the distribution network data packet sent to the second equipment carries more effective distribution network information, and the success rate and the robustness of the distribution network are improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a view of a WiFi distribution network scenario provided in an embodiment of the present application;
fig. 2 is a schematic flowchart of a WiFi network distribution method provided in an embodiment of the present application;
fig. 3 is a schematic flowchart of another WiFi network distribution method provided in the embodiment of the present application;
fig. 4 is an interaction flow diagram of a WiFi network distribution method provided in the embodiment of the present application;
FIG. 5 is a mapping table of TID field and AC information in QoS Control field;
fig. 6 is a schematic diagram of a second distribution network packet generated in an identification phase according to an embodiment of the present application;
fig. 7 is a schematic diagram of a first distribution network data packet carrying a password of the AP and generated in a data phase according to an embodiment of the present application;
fig. 8 is a schematic diagram of a first distribution network data packet that is generated in a data phase and carries verification information of an SSID of the access point AP according to the embodiment of the present application;
fig. 9 is a schematic diagram of a first distribution network data packet carrying an SSID of the access point AP generated in a data phase according to an embodiment of the present application;
FIG. 10 is a diagram illustrating an SSID end character packet generated during a data phase according to an embodiment of the present application;
fig. 11 is a schematic diagram of an SSID length packet generated in a data phase according to an embodiment of the present application;
fig. 12 is a schematic diagram of a third distribution network data packet configured to a first distribution network data packet carrying verification information of a password of the access point AP or an SSID of the access point AP according to an embodiment of the present application;
fig. 13 is a schematic diagram of a third distribution network data packet and a first distribution network data packet corresponding to a data segment obtained by dividing the password of the access point AP or the verification information of the SSID of the access point AP according to the embodiment of the present application;
fig. 14 is a schematic diagram of a third distribution network packet configured to an SSID length packet according to an embodiment of the present application;
fig. 15 is a schematic diagram of a third distribution network data packet and an SSID length data packet corresponding to a data segment obtained by dividing the length of the SSID of the access point AP according to an embodiment of the present application;
fig. 16 is a schematic diagram of a third distribution network data packet configured to the first distribution network data packet carrying the SSID of the access point AP according to an embodiment of the present application;
fig. 17 is a schematic diagram of a third distribution network data packet and a first distribution network data packet corresponding to a data segment obtained by SSID partition of the access point AP according to an embodiment of the present application;
fig. 18 is a schematic diagram of a distribution network data packet generated by a first device in an identification phase and a data phase according to an embodiment of the present disclosure;
fig. 19 is a schematic structural diagram of a WiFi distribution network device according to an embodiment of the present application;
fig. 20 is a WiFi network distribution device provided in this embodiment of the present application;
fig. 21 is another WiFi network distribution device provided in this embodiment.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," "third," and the like in the description and claims of the present application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in other sequences than described or illustrated herein. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or server that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Referring to fig. 1, fig. 1 is a view of a WiFi distribution network scenario provided in an embodiment of the present application. As shown in fig. 1, in the distribution network scenario, a first device 101 acquires distribution network information of an Access Point AP (Access Point) 102, generates a distribution network data packet carrying the distribution network information of the Access Point AP 102, and sends the distribution network data packet to a second device 103; the second device 103 receives the distribution network data packet, acquires the distribution network information of the access point AP 102 from the distribution network data packet, and connects to the access point AP according to the distribution network information. The AP 102 is an AP in a WiFi (Wireless-Fidelity) network, and the distribution network information is WiFi network distribution network information of the AP 102. It should be noted that the distribution network packet may also carry other information, such as: whether the access point AP 102 hides information of SSID (Service Set Identifier), a version number of a distribution network protocol between the first device 101 and the second device 103, identification information for assisting in identifying distribution network information, and the like may Set information carried by the distribution network packet according to actual conditions.
In the embodiment of the present application, the first device 101 includes, but is not limited to, a device with wireless signal transceiving capabilities, such as a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), and a Mobile Internet Device (MID). The second device 103 includes, but is not limited to, a smart socket, a smart audio device, a smart home appliance, and other devices with wireless signal transceiving capabilities.
Referring to fig. 2, fig. 2 is a schematic flow chart of a WiFi network distribution method provided in the embodiments of the present application, and the present specification provides the method operation steps as described in the embodiments or the flow chart, but more or less operation steps may be included based on conventional or non-inventive labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of sequences, and does not represent a unique order of performance. In the actual execution of the terminal or the storage medium product, the methods according to the embodiments or shown in the drawings can be executed sequentially or in parallel. As shown in fig. 2 in detail, the method is applied to a first device, and the method includes:
s201: and acquiring the distribution network information of the access point AP.
Specifically, an interface for inputting the distribution network information may be generated on the first device, the user may manually input the distribution network information of the access point AP on the interface, the distribution network information of the access point AP may be automatically input on the interface after the first device connects to the access point AP, the distribution network information of the access point AP may be directly obtained from the local storage by the first device, the distribution network information of the access point AP may be obtained from other devices by the first device through the network, and the distribution network information of the access point AP may be obtained by the first device in other manners; the method for acquiring the distribution network information of the access point AP can be realized through an application program installed on the first device, and the method for acquiring the distribution network information of the access point AP is not limited.
S202: encoding the distribution network information of the AP to length information and QoS (Quality of Service) information;
s203: and generating a first distribution network data packet.
The WiFi packet length information of the first distribution network data packet is length information obtained through coding, and the QoS information of the first distribution network data packet is QoS information obtained through coding.
S204: sending a distribution network data packet to the second equipment; the distribution network data packet comprises: the first distribution network data packet.
In this embodiment of the present application, the distribution network data packet may further include a distribution network data packet that carries other information according to an actual distribution network requirement of the second device, for example: a second distribution network data packet carrying the first identification information and a third distribution network data packet carrying the second identification information; wherein the first identification information includes: the second identification information is used for assisting in identifying the distribution network information carried by the first distribution network data packet, and does not limit other information carried by the distribution network data packet.
In the embodiment of the application, the distribution network information can be coded into the WiFi packet length information and the QoS information, so that the distribution network data packet sent to the second device carries more effective distribution network information, and the distribution network success rate and robustness are improved.
Referring to fig. 3, fig. 3 is a flow chart of another WiFi network distribution method provided in the embodiments of the present application, and the present specification provides the method operation steps as described in the embodiments or the flow chart, but more or less operation steps may be included based on conventional or non-inventive labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. In the actual execution of the terminal or the storage medium product, the methods according to the embodiments or shown in the drawings can be executed sequentially or in parallel. As shown in fig. 3 in detail, the method is applied to a second device, and the method includes:
s301: and receiving the distribution network data packet.
The distribution network data packet comprises: and the WiFi packet length information and the QoS information of the first distribution network data packet carry the distribution network information of the access point AP.
S302: and decoding the distribution network data packet to acquire the distribution network information of the access point AP.
In the embodiment of the application, the distribution network data packet sent to the second device carries more effective distribution network information, so that the success rate and robustness of a distribution network can be improved.
It should be noted that the specific implementation of the method described in fig. 2 and fig. 3 may refer to the description of the subsequent embodiments.
Referring to fig. 4, fig. 4 is an interactive flowchart of a WiFi network distribution method provided in the embodiments of the present application, and the present specification provides the method operation steps as described in the embodiments or flowcharts, but may include more or less operation steps based on conventional or non-creative labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. In the actual execution of the terminal or the storage medium product, the methods according to the embodiments or shown in the drawings can be executed sequentially or in parallel. As shown in fig. 4 in detail, the method includes:
s41: the method comprises the steps that first equipment obtains distribution network information of an Access Point (AP);
the implementation method of step S41 is referred to step S201, and is not described herein again.
S42: the first equipment generates a distribution network data packet;
in this embodiment of the present application, the step of generating a distribution network data packet by a first device (the first device is in a distribution network process), includes: an identification phase and a data phase; the first device circularly switches work in the identification phase and the data phase. A network distribution packet comprising: the second distribution network data packet generated in the identification phase, the first distribution network data packet generated in the data phase and the third distribution network data packet generated in the data phase. The first distribution network data packet carries distribution network information of the access point AP, the second distribution network data packet carries first identification information, and the third distribution network data packet carries second identification information.
In the identification phase, the first device generates a second distribution network data packet, including:
s4201: in the identification phase, the first device encodes first identification information into the length information.
The first identification information includes: and the access point AP hides the information of the service set identifier SSID and the version number of the distribution network protocol between the first device and the second device.
Specifically, the first device may encode the first identification information into a designated position of the length information, where the designated position of the length information is different for different first identification information.
If the information of whether the SSID is hidden by the access point AP indicates that the SSID is hidden by the access point AP, the distribution network data packet needs to carry the SSID of the access point AP; and if the SSID hiding information of the access point AP indicates that the SSID is not hidden by the access point AP, the SSID of the access point AP is not carried in a distribution network data packet.
In the identification phase, the BSSID (Basic Service Set Identifier) of the AP may be encoded in a BSSID field of a WiFi MAC (Medium Access Control Sub Layer) header of a second distribution network packet.
The WiFi packet length of the second distribution network data packet generated in the identification stage is a first preset value; and the access code AC information of the second distribution network data packet generated in the identification stage is a second preset value.
The QoS information of the distribution network data packet comprises: access code AC information; the AC (Access Code) information is obtained by mapping according to a TID (Traffic Identifier) field in a QoS Control field of a WiFi MAC header, where the length of the AC information of the Access Code is fixed to 2 bits, which is the prior art and is not described herein again.
Please refer to fig. 5, fig. 5 is a mapping table of TID field and AC information in QoS Control field, where the length of TID field in fig. 5 is 3bit and the length of AC information is 2bit. The length of the length information may be determined according to information carried by the generated distribution network data packet, such as: and determining according to the distribution network information carried by the first distribution network data packet so as to reduce the length of the length information on the basis of carrying complete distribution network information.
Q second distribution network data packets can be generated in the identification stage, wherein Q is a positive integer; the second preset value may be set to different values for different second distribution network packets, such as: q =4, the second preset values of the consecutive 4 second distribution network packets may be 2b '00 (00), 2b'01 (01), 2b '10 (10), 2b'11 (11) in sequence.
Referring to fig. 6, fig. 6 is a schematic diagram of a second distribution network data packet generated at an identification stage according to an embodiment of the present application, where Q =4 in fig. 6, fig. 6 shows AC information and length information of the second distribution network data packet, AC [1] and AC [0] represent access code AC information of the second distribution network data packet with 2 bits, LEN [8] to LEN [0] represent length information of the second distribution network data packet, that is, the length information of the second distribution network data packet is 9 bits.
Specifically, LEN [6] (specified position) in fig. 6 is used to record information whether the SSID is hidden by the access point AP, such as: a LEN [6] of 1 indicates that the SSID is hidden by the AP, a LEN [6] of 0 indicates that the SSID is not hidden by the AP, or a LEN [6] of 0 indicates that the SSID is hidden by the AP, a LEN [6] of 1 indicates that the SSID is not hidden by the AP, and a LEN [6] of 1 in fig. 6 indicates that the SSID is hidden by the AP.
LEN [7] (location specified) in fig. 6 is used to record the version number of the distribution network protocol between the first device and the second device, and LEN [7] of fig. 6 is 0, which means that the version number of the distribution network protocol between the first device and the second device is 0 (1b' 0). In FIG. 6, LEN [8] is 1 (1b' 1) at the identification stage. In fig. 6, the 4 second distribution network data packets correspond to different second preset values, and the length information of the 4 second distribution network data packets is the same.
It should be noted that, the WiFi packet length and the WiFi packet length information are different concepts, the WiFi packet length refers to the length of the WiFi packet, that is, the length of the network configuration data packet, and the WiFi packet length information refers to the length information carried by the WiFi packet, that is, the length information of the network configuration data packet, for example: as shown in fig. 6, the WiFi packet length of the second distribution network packet is OFFSET +256[ +64], and the WiFi packet length information of the second distribution network packet is information recorded from LEN [8] to LEN [0 ]. Wherein [ +64] in the OFFSET +256[ +64] refers to the length of the length information of the second distribution network packet occupied by the information of whether the access point AP hides the service set identifier SSID.
Specifically, the information of whether the SSID is hidden by the access point AP is encoded into LEN [6] in fig. 6, if LEN [6] is 1, that is, the SSID is hidden by the access point AP, at this time, the WiFi packet length of one second distribution network data packet in fig. 6 is OFFSET +256+64, that is, OFFSET +320; if LEN [6] is 0, that is, the SSID is not hidden by the access point AP, at this time, the WiFi packet length of a second distribution network packet in fig. 6 is OFFSET +256.
Wherein, the OFFSET represents the data OFFSET of the distribution network data packet; the OFFSET is fixed in size, and the size of the OFFSET is related to the encryption mode of the distribution network data packet and whether QoS is available. The second device may calculate the OFFSET according to the encryption mode and the QoS information of the distribution network data packet after receiving the distribution network data packet, which is the prior art and is not described herein again. And the second equipment calculates the OFFSET of the second distribution network data packet, and the OFFSET is subtracted from all the subsequent distribution network data packets to obtain the WiFi packet length information of the distribution network data packets.
S4202: in the identification phase, the first device generates a second distribution network data packet.
The WiFi packet length information of the second distribution network data packet is the length information obtained by encoding in step S4201. The second distribution network data packet is generated according to a WiFi transmission protocol.
In the data phase, the first device generates a first distribution network data packet, including:
s4211: in the data phase, the first equipment encodes the distribution network information of the access point AP into length information and QoS information;
the quality of service QoS information includes: access code AC information; and the access code AC information is obtained by mapping a data form identification code TID field in a QoS Control field of the WiFi MAC packet header. The description of the QoS information refers to step S4201, which is not described herein.
In this embodiment of the application, encoding the distribution network information of the AP to length information and QoS information includes:
and in the data phase, encoding the distribution network information of the access point AP into length information and access code AC information.
Specifically, the distribution network information of the access point AP may be encoded into a first preset position of the length information and the access code AC information, where the first preset position may occupy all information positions of the length information and the access code AC information, or may occupy part information positions of the length information and the access code AC information. The first preset position may be set according to an actual length of the distribution network information or a coding mode, which is not limited herein.
In this embodiment, the distribution network information includes: the password of the access point AP and the verification information of the service set identification SSID of the access point AP are obtained, and the verification information of the service set identification SSID of the access point AP comprises CRC5 (cyclic redundancy check code) of the SSID. If the access point AP hides the service set identifier SSID, the distribution network information further includes: and the service set identification SSID of the access point AP.
Specifically, the distribution network information of the access point AP may be sequentially divided to obtain M data segments, where M is a positive integer; each data segment contains N characters, N being a positive integer, such as N =4; and respectively and sequentially generating N first distribution network data packets according to the N characters contained in the data section.
Specifically, each character is encoded into length information and access code AC information, the WiFi packet header length information is generated to be the length information obtained through encoding, and the access code AC information is a first distribution network data packet of the AC information obtained through encoding. If the last data Segment has no N characters, the verification information (CRC 5) of the SSID of the access point AP may be copied to fill up the N characters.
The character value range of the password which is coded into the first distribution network data packet and used for representing the access point AP is different from the character value range of the verification information which is coded into the first distribution network data packet and used for representing the SSID of the access point AP, so that the first distribution network data packet carrying the password of the access point AP and the first distribution network data packet carrying the verification information of the SSID of the access point AP can be effectively distinguished.
Corresponding distinguishing information can also be encoded into the length information and/or the AC information to distinguish various distribution network data packets, such as: and distinguishing the first distribution network data packet carrying the password of the access point AP, the first distribution network data packet carrying the verification information of the SSID of the access point AP and the first distribution network data packet carrying the SSID of the access point AP, and the like, wherein the limitation from the corresponding difference information of the codes to the length information and/or the AC information is not made. Other methods may also be used to encode the distribution network information and the related information (for example, the distinguishing information) of the access point AP into the length information and the AC information, and the method of encoding the distribution network information of the access point AP into the length information and the AC information is not limited herein.
S4212: the first equipment generates a first distribution network data packet; the WiFi packet length information of the first distribution network data packet is length information obtained by encoding in step S4211, and the QoS information of the first distribution network data packet is QoS information obtained by encoding in step S4211. The first distribution network data packet is generated according to a WiFi transmission protocol.
Referring to fig. 7, fig. 7 is a schematic diagram of a first distribution network data packet carrying a password of the AP generated in a data phase according to an embodiment of the present disclosure. Fig. 7 shows AC information and length information of the first distribution network packet, where AC [1] and AC [0] represent access code AC information of the first distribution network packet with 2 bits, and LEN [8] to LEN [0] represent length information of the first distribution network packet, that is, the length information of the first distribution network packet is 9 bits.
In fig. 7, each ASCII code corresponding to a character obtained by the cryptographic division of the access point AP is sequentially encoded into 7 bits of the corresponding first distribution network packet AC [1], AC [0], and LEN [4] to LEN [0], and the value range of the 7 bits is 32 to 126. In FIG. 7, the 7-bit bits of AC [1], AC [0], and LEN [4] to LEN [0] are the first predetermined positions.
LEN [8] in fig. 7 is 1 (1b' 1), then LEN [8] in the third distribution network packet is 0, which can effectively distinguish the first distribution network packet from the third distribution network packet, LEN [8] in the first distribution network packet can be further encoded as 0, LEN [8] in the third distribution network packet can be encoded as 1, and this is not limited herein.
In fig. 7, LEN [7] and LEN [6] are 01 (2b' 01), and are distinguishable from the first distribution network packet carrying the SSID.
Referring to fig. 8, fig. 8 is a schematic diagram of a first distribution network data packet that is generated in a data phase and carries verification information of an SSID of the access point AP according to an embodiment of the present application. Fig. 8 shows AC information and length information of the first distribution network packet, where AC [1] and AC [0] represent access code AC information of the first distribution network packet with 2 bits, and LEN [8] to LEN [0] represent length information of the first distribution network packet, that is, the length information of the first distribution network packet is 9 bits.
In fig. 8, each CRC5 corresponding to a character obtained by the verification information of the SSID of the access point AP is sequentially encoded into 5 bits of the LEN [4] to LEN [0], and the value range of the 5 bits is 0 to 31, so as to be distinguished from the first distribution network packet carrying the password of the access point AP in fig. 7. In FIG. 8, the 5 bits of LEN [4] to LEN [0] are the first predetermined positions.
LEN [8] in fig. 8 is 1 (1b' 1), then LEN [8] in the third distribution network packet is 0, which can effectively distinguish the first distribution network packet from the third distribution network packet, LEN [8] in the first distribution network packet can be further encoded as 0, LEN [8] in the third distribution network packet can be encoded as 1, and the disclosure is not limited thereto.
In FIG. 8, LEN [7] and LEN [6] are 01 (2b' 01), and are distinguishable from the first distribution network packet carrying the SSID.
Referring to fig. 9, fig. 9 is a schematic diagram of a first distribution network data packet carrying an SSID of the access point AP generated in a data phase according to an embodiment of the present disclosure. Fig. 9 shows AC information and length information of the first distribution network packet, where AC [1] and AC [0] indicate access code AC information of the first distribution network packet with 2 bits, LEN [8] to LEN [0] indicate length information of the first distribution network packet, that is, the length information of the first distribution network packet is 9 bits.
In fig. 9, UTF-8 (Universal charcter Set/Universal conversion Format,8 bits) of the SSID corresponding to each Character obtained by the SSID of the access point AP is sequentially encoded into 8 bits of LEN [7] to LEN [0 ]. In FIG. 9, the 8-bit bits of LEN [7] to LEN [0] are the first predetermined positions.
LEN [8] in fig. 9 is 1 (1b' 1), then LEN [8] in the third distribution network packet is 0, which can effectively distinguish the first distribution network packet from the third distribution network packet, LEN [8] in the first distribution network packet can be further encoded as 0, LEN [8] in the third distribution network packet can be encoded as 1, and this is not limited herein.
If the first distribution network data packet carries the SSID of the AP, the distribution network data packet may further include: and the SSID ending character data packet and the SSID length data packet are generated in the data phase.
And the SSID ending character data packet is positioned behind the last first distribution network data packet carrying the SSID of the access point AP and is used for indicating the ending position of the first distribution network data packet carrying the SSID. Since the length information in the first distribution network data packet carrying the SSID of the access point AP and the data recorded in the AC information may be the same as the length information in the SSID end character data packet and the data recorded in the AC information, the SSID length data packet is located before the first distribution network data packet carrying the access point AP and is used for indicating the length of the SSID of the access point AP so as to be combined with the SSID end character data packet to determine the first distribution network data packet carrying the access point AP.
In the data phase, the first device generates an SSID end character data packet comprising:
s4231: and the first equipment encodes the end information of the SSID of the access point AP into length information and access code AC information.
The end information of the SSID of the access point AP may be an end character of the SSID.
Specifically, the first device may encode end information of the SSID of the access point AP into a specified position in the length information and the access code AC information.
S4232: the first device generates an SSID end character data packet.
The WiFi packet length information of the SSID ending character data packet is the length information obtained by encoding in step S4231, and the access code AC information of the SSID ending character data packet is the access code AC information obtained by encoding in step S4231. The SSID end character data packet is generated according to a WiFi transmission protocol.
Referring to fig. 10, fig. 10 is a schematic diagram illustrating an SSID ending character data packet generated in a data phase according to an embodiment of the present application. FIG. 10 shows the AC information and length information of the SSID end character packet, AC [1] and AC [0] indicate the access code AC information of the SSID end character packet of 2 bits, LEN [8] to LEN [0] indicate the length information of the SSID end character packet, that is, the length information of the SSID end character packet is 9 bits.
In FIG. 10, the end characters of the SSID of the access point AP are encoded into the 10bit bits (designated positions) of AC [1], AC [2], LEN [7] to LEN [0] in that order. The end character of the SSID of the access point AP is 10b'0000000000.
LEN [8] in fig. 10 is 1 (1b' 1), then LEN [8] in the third distribution network packet is 0, which can effectively distinguish SSID ending character packet from the third distribution network packet, LEN [8] in SSID ending character packet can be encoded as 0, LEN [8] in the third distribution network packet can be encoded as 1, and this is not limited herein.
In the data phase, the first device generates an SSID length packet comprising:
s4241: the first device encodes the length of the SSID of the access point AP to length information and access code AC information.
The SSID length data packet may be the same as the first distribution network data packet, the length of the SSID of the access point AP is divided into M data segments, where M is a positive integer, each data segment includes N characters, and N is a positive integer, N SSID length data packets are respectively generated in sequence according to the N characters included in the data segment, and specifically, each character is encoded into length information and access code AC information.
The length of the SSID of the access point AP may also be encoded into the WiFi packet length information and the access code AC information of the SSID length data packet in other manners, where the manner of encoding the length of the SSID of the access point AP into the WiFi packet length information and the access code AC information of the SSID length data packet is not limited herein.
Specifically, the first device may encode the length of the SSID of the access point AP into a specified position in the length information and the access code AC information.
S4242: the first device generates an SSID length packet.
The WiFi packet length information of the SSID length data packet is the length information obtained by encoding in step S4241, and the access code AC information of the SSID length data packet is the access code AC information obtained by encoding in step S4241. The SSID length data packet is generated according to a WiFi transmission protocol.
Referring to fig. 11, fig. 11 is a schematic diagram of an SSID length data packet generated in a data phase according to an embodiment of the present application. FIG. 11 shows the AC information and length information of SSID length packet, where AC [1] and AC [0] represent the access code AC information of the SSID length packet of 2bit, LEN [8] to LEN [0] represent the length information of the SSID length distribution network packet, that is, the length information of the SSID length packet is 9bit.
In fig. 11, characters in a data segment obtained by dividing the length of the SSID of the access point AP are encoded into 5 bits (designated positions) of LEN [4] to LEN [0 ].
LEN [8] in fig. 11 is 1 (1b' 1), then LEN [8] in the third distribution network packet is 0, which can effectively distinguish SSID length packet from the third distribution network packet, LEN [8] in SSID length packet can be encoded as 0, LEN [8] in the third distribution network packet can be encoded as 1, and this is not limited herein.
LEN [7] to LEN [5] in FIG. 11 are 000 (3b '000), and AC [1] to AC [0] are 00 (2b' 00), for distinguishing from other distribution network packets generated by the first device in the data phase.
In the data phase, the first device generates a third distribution network data packet, including:
s4251: the first device encodes the second identification information into the length information and the access code AC information.
The second identification information is used for assisting in identifying the distribution network information carried by the first distribution network data packet; the second identification information includes: CRC4 (cyclic redundancy check code) and Segment Index (Index of data Segment) of the data Segment, where the Segment Index indicates a Segment position of a character in the data Segment and a type of a third distribution network data packet, and the type of the third distribution network data packet refers to a type of information used for assisting identification of the third distribution network data packet, such as: the auxiliary identification information is the password of the access point AP, the auxiliary identification information is the verification information of the SSID of the access point AP, and the auxiliary identification information is the SSID of the access point AP. The data segment is obtained by dividing the length of the distribution network information or the SSID.
The CRC4 may use CRC4/ITU, x4+ x +1 to verify the distribution network information carried by the first distribution network data packet, or may use other verification algorithms to verify the distribution network information carried by the first distribution network data packet, where a manner of the CRC4 of the data segment to verify the distribution network information carried by the first distribution network data packet is not limited.
Specifically, the second identification information may be encoded into a second preset position of the length information and the access code AC information, and the second preset position may occupy all information positions of the length information and the access code AC information or occupy partial information positions of the length information and the access code AC information. The second preset position may be set according to an actual length or a coding manner of the second identification information, which is not limited herein.
S4252: and the first equipment generates a third distribution network data packet.
The WiFi packet length information of the third distribution network data packet is the length information obtained by encoding in step S4251, and the access code AC information of the third distribution network data packet is the access code AC information obtained by encoding in step S4251. The third distribution network data packet is generated according to a WiFi transmission protocol.
The first device may configure a third distribution network data packet for each first distribution network data packet corresponding to the data segment obtained by dividing the distribution network information of the access point AP. The first device may also configure a third distribution network data packet for each SSID length data packet corresponding to the data segment obtained by dividing the length of the SSID of the access point AP, where the second identification information is used to assist in identifying the length of the SSID of the access point AP carried by the SSID length data packet. The third distribution network data packet is located before a first distribution network data packet corresponding to each data segment obtained by dividing the distribution network information of the access point AP, or the third distribution network data packet is located before a first SSID length data packet corresponding to each data segment obtained by dividing the length of the SSID of the access point AP.
Referring to fig. 12, fig. 12 is a schematic diagram of a third distribution network data packet configured to the first distribution network data packet carrying the password of the access point AP or the verification information of the SSID of the access point AP according to the embodiment of the present application. Fig. 12 shows AC information and length information of the third distribution network packet, where AC [1] and AC [0] indicate access code AC information of the third distribution network packet with 2 bits, LEN [8] to LEN [0] indicate length information of the third distribution network packet, that is, the length information of the third distribution network packet is 9 bits.
In FIG. 12, segment Index is encoded into 5 bits of LEN [7], AC [1], AC [0], LEN [1] and LEN [0] in this order, the effective values of these 5 bits are 0 to 16, CRC4 is encoded into 4 bits of LEN [6], LEN [4] to LEN [2] in this order, and LEN [5] bit is set to 0. In FIG. 12, the 5-bit positions of LEN [7], AC [1], AC [0], LEN [1] and LEN [0] and the 4-bit positions of LEN [6], LEN [4] to LEN [2] are the second predetermined positions.
LEN [8] in fig. 12 is 0, then LEN [8] in the first distribution network packet, SSID ending character packet and SSID length packet is 1, which can effectively distinguish the third distribution network packet from other distribution network packets generated in the data phase, and LEN [8] in the first distribution network packet, SSID ending character packet and SSID length packet can be further encoded as 0, LEN [8] in the third distribution network packet is encoded as 1, which is not limited herein.
CRC4 encoded into LEN [6], LEN [4] through LEN [2] in FIG. 12 is used to check the 28bit number of the encoded 4 consecutive first distribution network packets described in FIG. 7 consisting of AC [1], AC [0], LEN [4] through LEN [0] or the 28bit number of the encoded 4 consecutive first distribution network packets described in FIG. 8 consisting of AC [1], AC [0], LEN [4] through LEN [0 ].
Referring to fig. 13, fig. 13 is a schematic diagram of a third distribution network data packet and a first distribution network data packet corresponding to a data segment obtained by dividing the password of the access point AP or the verification information of the SSID of the access point AP according to an embodiment of the present application. Each data segment in fig. 13 contains 4 characters (N = 4), and the second identification information carried by each third distribution network data packet is used to assist in identifying the 4 first distribution network data packets following the third distribution network data packet.
Referring to fig. 14, fig. 14 is a schematic diagram of a third distribution network packet configured to an SSID length packet according to an embodiment of the present disclosure. Fig. 14 shows AC information and length information of the third distribution network packet, where AC [1] and AC [0] represent access code AC information of the third distribution network packet with 2 bits, LEN [8] to LEN [0] represent length information of the third distribution network packet, that is, the length information of the third distribution network packet is 9 bits.
In FIG. 14, segment indexes are encoded into 5bit bits of LEN [7], AC [1], AC [0], LEN [1] and LEN [0] in sequence, and since there may be only 1 character obtained by dividing the length of SSID of the access point AP, 3 characters following the 1 st character are the same as the 1 st character, that is, the 1 st character is copied to complement 4 characters, so that the 5bit bits are fixed to 31,5b'11111, that is, there is only one Segment Index; CRC4 is encoded into the 4bit of LEN [6], LEN [4] to LEN [2] in sequence, and LEN [5] bit is set to 0. In FIG. 14, the 5-bit bits of LEN [7], AC [1], AC [0], LEN [1], and LEN [0] and the 4-bit bits of LEN [6], LEN [4], to LEN [2] are the second predetermined positions.
In fig. 14, LEN [8] is 0, then LEN [8] in the first distribution network packet, SSID end character packet and SSID length packet is 1, which can effectively distinguish the third distribution network packet from other distribution network packets generated in the data phase, and LEN [8] in the first distribution network packet, SSID end character packet and SSID length packet can be encoded as 0, LEN [8] in the third distribution network packet can be encoded as 1, which is not limited herein.
CRC4 encoded to LEN [6], LEN [4] to LEN [2] in FIG. 14 is used to check the 28-bit number composed of AC [1], AC [0], LEN [4] to LEN [0] encoding the consecutive 4 SSID length packets described in FIG. 11.
Referring to fig. 15, fig. 15 is a schematic diagram of a third distribution network data packet and an SSID length data packet corresponding to a data segment obtained by dividing the length of the SSID of the access point AP according to an embodiment of the present application. Each data segment in fig. 15 includes 4 characters (N = 4), and the second identification information carried by each third distribution network data packet is used to assist in identifying 4 SSID-length data packets following the third distribution network data packet. Since the length of the SSID of the access point AP may be divided into only 1 character, 3 characters after the 1 st character are the same as the 1 st character, that is, the 1 st character is copied to complete 4 characters.
Referring to fig. 16, fig. 16 is a schematic diagram of a third distribution network packet configured to the first distribution network packet carrying the SSID of the access point AP according to an embodiment of the present disclosure. Fig. 16 shows AC information and length information of the third distribution network packet, where AC [1] and AC [0] indicate access code AC information of the third distribution network packet with 2 bits, LEN [8] to LEN [0] indicate length information of the third distribution network packet, that is, the length information of the third distribution network packet is 9 bits.
In FIG. 16, the Segment Index is encoded into 5 bits of LEN [4] to LEN [0] in this order, CRC4 is encoded into 4 bits of AC [1], AC [0], LEN [7] and LEN [6] in this order, and LEN [5] bit is set to 0. LEN [4] to LEN [0], AC [1], AC [0], LEN [7] and LEN [6] are shown in FIG. 16 as the second predetermined positions.
In fig. 16, LEN [8] is 0, then LEN [8] in the first distribution network packet, SSID end character packet and SSID length packet is 1, which can effectively distinguish the third distribution network packet from other distribution network packets generated in the data phase, and LEN [8] in the first distribution network packet, SSID end character packet and SSID length packet can be further encoded as 0, LEN [8] in the third distribution network packet is encoded as 1, which is not limited herein.
CRC4 encoded into AC [1], AC [0], LEN [7] and LEN [6] in FIG. 16 is used to check the 28-bit number of AC [1], AC [0], LEN [4] to LEN [0] encoding the consecutive 4 first distribution network packets described in FIG. 9.
Referring to fig. 17, fig. 17 is a schematic diagram of a third distribution network data packet and a first distribution network data packet corresponding to a data segment obtained by dividing the SSID of the access point AP according to an embodiment of the present application. Each data field in fig. 17 contains 4 characters (N = 4), and the second identification information carried by each third distribution network data packet is used to assist in identifying the 4 first distribution network data packets following the third distribution network data packet.
Referring to fig. 18, fig. 18 is a schematic diagram of a distribution network packet generated by a first device in an identification phase and a data phase according to an embodiment of the present disclosure. The first equipment circularly switches to work in the identification stage and the data stage so as to generate distribution network data packets corresponding to the identification stage and the data stage.
It should be noted that the designated position in the length information related in step S42 may be set as a different position in the length information according to the information to be encoded; the designated positions in the length information and the access code AC information referred to in step S42 may be set to different positions in the length information and the access code AC information according to the information to be encoded.
S43: and the first equipment sends the distribution network data packet to the second equipment.
Specifically, the first device sends the distribution network data packet generated in the identification stage and the data stage to the first device. The first device may send a transmission packet to the second device in a broadcast manner. The transmission of the data packet comprises: and (5) distributing network data packets. When the distribution network data packet is sent to the second device, the first device may also send other transmission data packets to the second device, where the transmission data packets do not carry the distribution network information, the first identification information, the second identification information, and the like of the access point AP. In addition, when the first device sends the distribution network data packet to the second device, the other devices may also send the transmission data packet to the second device.
S44: and the second equipment receives the distribution network data packet.
The distribution network data packet comprises: and the WiFi packet length information and the QoS information of the first distribution network data packet carry the distribution network information of the access point AP.
The quality of service QoS information includes: access code AC information; and the access code AC information is obtained by mapping a data form identification code TID field in a QoS Control field of the WiFi MAC packet header. The description of the QoS information is described in step S4201, and is not described herein again.
Specifically, the receiving, by the second device, the distribution network packet includes:
s4401: the second device receives the transmission data packet.
The transmission data packet can be sent to the second device by the first device and can also be sent to the second device by other devices; when receiving the transmission data packet sent by the first device, the second device may also receive the transmission data packet sent by the other device.
Specifically, the second device may continuously receive Q transmission packets, Q being a positive integer.
S4402: the second device decodes the WiFi packet length information and the access code AC information of the transmission data packet.
And the second equipment can obtain the WiFi packet length of the transmission data packet according to the WiFi packet length information of the transmission data packet obtained by decoding.
Specifically, the second device decodes WiFi packet length information and access code AC information of consecutive Q transmission data packets.
S4403: and the second equipment determines whether the transmission data packet is the second distribution network data packet or not according to the WiFi packet length information and the access code AC information of the transmission data packet obtained by decoding.
Specifically, the second device may obtain the WiFi packet length of the transmission data packet according to the decoded WiFi packet length information of the transmission data packet, and determine that the transmission data packet is the second distribution network data packet if the WiFi packet length of the transmission data packet is a first preset value and the access code AC information of the transmission data packet is a second preset value.
Specifically, the second device determines whether the transmission data packet is the second distribution network data packet according to the WiFi packet length information and the access code AC information of the Q consecutive transmission data packets obtained through decoding.
Such as: the first preset value is OFFSET +256[ +64], the number Q =4 of the second distribution network data packets is set to 2b '00 (00), 2b'01 (01), 2b '10 (10) and 2b'11 (11) in sequence in 4 consecutive second distribution network data packets; if the WiFi packet lengths of the 4 transmission packets consecutively received by the second device are all OFFSET +256[ +64], and the access code AC information (2 bit) of the 4 transmission packets is 2b '00 (00), 2b'01 (01), 2b '10 (10), 2b'11 (11) in sequence, it is determined that the 4 transmission packets are the second distribution network packet.
Wherein [ +64] in OFFSET +256[ +64] indicates the length of the length information of the second distribution network packet occupied by the information about whether the access point AP hides the service set identifier SSID, specifically, the information about whether the access point AP hides the SSID is encoded into LEN [6] in fig. 6, and if LEN [6] is 1, it indicates that the access point AP hides the SSID. Description of [ +64] is detailed in step S4201, and is not described here.
In this embodiment of the application, it may be further determined whether the access code AC information in the distribution network data packet is available according to whether the access code AC information of the transmission data packet obtained by decoding is a second preset value, that is, the access code AC information of the transmission data packet obtained by decoding is the second preset value, and it is determined that the access code AC information in the distribution network data packet is available, and then, decoding of the distribution network data packet can be continuously performed to obtain the distribution network information, the first identification information, and the second identification information of the access point AP.
If the transmission data packet is the second distribution network data packet, determining that the first device is in a distribution network process, and executing step S4404 by the second device.
S4404: and the second equipment receives the distribution network data packet.
Specifically, in step S4404, the second device receives another distribution network packet except the received second distribution network packet, for example: a first distribution network data packet and a third distribution network data packet.
S45: and the second equipment decodes the distribution network data packet to acquire the distribution network information of the access point AP.
Specifically, the decoding, by the second device, the distribution network data packet to obtain the distribution network information of the access point AP includes:
s4501: and the second equipment decodes the WiFi packet length information of the second distribution network data packet to acquire the information whether the access point AP hides the service set identifier SSID.
In this embodiment of the application, the distribution network information includes: the password of the access point AP and the verification information of the service set identification SSID of the access point AP.
If the SSID is hidden by the access point AP, that is, the acquired information of whether the SSID is hidden by the access point AP indicates that the SSID is hidden by the access point AP, the distribution network information further includes: the service set identifier SSID of the access point AP is identified, that is, if the SSID is hidden by the access point AP, the first device may send the SSID of the access point AP in a subsequent data phase.
If the distribution network information is the password of the access point AP or the verification information of the service set identifier SSID of the access point AP, executing step S4503; if the distribution network information is the SSID of the AP and the distribution network data packet does not include an SSID end character data packet and an SSID length data packet, then performing step S4503; if the distribution network information is the SSID of the AP, and the distribution network data packet further includes an SSID end character data packet and an SSID length data packet, then step S4502 is executed.
S4502: and determining a first distribution network data packet carrying the SSID of the access point AP according to the SSID length data packet and the SSID ending character data packet.
In the embodiment of the present application, step S4502: determining a first distribution network data packet carrying the SSID of the access point AP according to the SSID length data packet and the SSID ending character data packet, and the method comprises the following steps:
A. the second equipment decodes the WiFi packet length information and the access code AC information of the third distribution network data packet to acquire second identification information;
B. the second equipment decodes the WiFi packet length information and the access code AC information of the SSID length data packet to obtain the length of the SSID to be identified;
C. and B, the second equipment assists in identifying the length of the SSID to be identified according to the second identification information obtained in the step A so as to obtain the length of the SSID of the access point AP.
D. And the second equipment decodes the WiFi packet length information and the access code AC information of the SSID ending character data packet to acquire the ending information of the SSID of the access point AP, so that the ending position of the SSID of the access point AP is determined.
E. And determining a first distribution network data packet carrying the SSID of the access point AP according to the length of the SSID of the access point AP and the end information of the SSID of the access point AP.
The second identification information in steps a to C is used for assisting in identifying the length of the access point AP carried by the SSID length data packet; the second identification information includes: CRC4 (cyclic redundancy check code) and Segment Index (Index of data Segment) of the data Segment, where the Segment Index indicates a Segment position of a character in the data Segment and a type of a third distribution network data packet, where the type of the third distribution network data packet refers to a type of information used for assisting identification of the third distribution network data packet, such as: the auxiliary identification information is the length of the SSID. The data segments involved in steps a to E are obtained by dividing the length of the SSID of the access point AP.
The CRC4 involved in steps a to E may use CRC4/ITU, x4+ x +1 to check the length of the SSID of the access point AP carried by the SSID length data packet, or may use another check algorithm to check the length of the SSID of the access point AP carried by the SSID length data packet, where a mode of checking the length of the access point AP carried by the SSID length data packet by the CRC4 of the data segment is not limited. According to the Segment Index, whether the length of the SSID of the access point AP carried by the complete SSID length data packet is obtained or not can be determined, that is, whether the length of the SSID of the access point AP is obtained or not can be determined according to the judgment whether all the Segment indexes of all the data segments are received or not.
Specifically, if the length of the SSID to be identified is checked to be correct by using the CRC4 of the data Segment, the length information of the SSID indicated by the current Segment Index is obtained, and if all the length information of the SSIDs indicated by the Segment Index are obtained, the second device obtains the complete length of the SSID of the access point AP. The third distribution network data packet in the steps a to C is a third distribution network data packet that carries second identification information for assisting in identifying the length of the SSID in the SSID length data packet group.
It should be noted that, steps a and B may be performed simultaneously, or step B may be performed first, and then step a is performed, where the execution sequence of steps a and B is not limited; step D may be performed prior to steps a to C, or may be performed simultaneously with steps a to C, and the order of performing step D and steps a to C is not limited herein.
S4503: and the second equipment decodes the WiFi packet length information and the access code AC information of the third distribution network data packet to acquire second identification information.
S4504: and the second equipment decodes the WiFi packet length information and the access code AC information of the first distribution network data packet to acquire the distribution network information to be identified.
S4505: and the second device assists in identifying the distribution network information to be identified according to the second identification information obtained in the step S4503, so as to obtain the distribution network information.
The second identification information in steps S4503 to S4505 is used to assist in identifying distribution network information carried by the first distribution network data packet; the second identification information includes: CRC4 (cyclic redundancy check code) and Segment Index (Index of data Segment) of the data Segment, where the Segment Index indicates a Segment position of a character in the data Segment and a type of a third distribution network data packet, where the type of the third distribution network data packet refers to a type of information used for assisting identification of the third distribution network data packet, such as: the type of the auxiliary identification information comprises a password of the access point AP, verification information of the SSID of the access point AP and the SSID of the access point AP. The data segments involved in steps S4503 to S4505 are obtained by partitioning the distribution network information of the access point AP.
The CRC4 related to steps S4503 to S4505 may use CRC4/ITU, x4+ x +1 to check the distribution network information carried by the first distribution network data packet, or may use other checking algorithms to check the distribution network information carried by the first distribution network data packet, where a manner of checking the distribution network information carried by the first distribution network data packet by the CRC4 of the data segment is not limited. According to the Segment Index, whether complete distribution network information is acquired can be determined, that is, whether complete distribution network information is acquired can be determined according to whether all Segment indexes of the data Segment are received or not. Specifically, if the distribution network information to be identified is checked to be correct by using the CRC4 of the data Segment, the distribution network information indicated by the Segment Index at present is obtained, and if all the Segment indexes indicate that the distribution network information is completely obtained, the second device obtains complete distribution network information. The third distribution network data packet described in steps S4503 to S4505 is a third distribution network data packet that carries second identification information for assisting in identifying the distribution network information in the first distribution network data packet.
Steps S4503 and S4504 may be performed simultaneously, or step S4504 may be performed first and then step S4503 is performed, and the order of performing steps S4503 and S4504 is not limited herein.
In this embodiment of the application, after determining that the transmission data packet is the second distribution network data packet, the method further includes:
and the second equipment acquires the version number of the distribution network protocol between the first equipment and the second equipment according to the decoded WiFi packet length information of the transmission data packet, namely acquires the version number of the distribution network protocol between the first equipment and the second equipment from the decoded WiFi packet length information of the transmission data packet.
In this embodiment of the application, after it is determined that the transmission data packet is the second distribution network data packet, the method further includes:
if the second device can analyze the Mac Header content of the second distribution network packet, the second device analyzes the Mac Header content of the second distribution network packet to obtain the BSSID of the access point AP.
In the embodiment of the application, if the second device cannot acquire complete distribution network information of the access point AP according to a received distribution network data packet at an ith data phase, before acquiring unreceived distribution network information of the access point AP by a distribution network data packet at another (for example, an (i + 1) th data phase) data phase after the ith data phase, determining whether a distribution network protocol version number between the first device and the second device and a BSSID of the access point AP, which are carried by the distribution network data packet generated at an identification phase corresponding to the ith data phase, are the same as a distribution network protocol version number between the first device and the second device and a BSSID of the access point AP, which are carried by the distribution network data packet generated at the identification phase corresponding to the ith data phase; and if the distribution network information is the same as the distribution network information, continuously acquiring the distribution network information of the access point AP in the distribution network data packet at the data stage.
S46: and the second equipment is connected with the access point AP according to the obtained distribution network information of the access point AP.
If the distribution network information of the access point AP, which is acquired by the second device from the distribution network data packet, does not include the SSID of the access point AP, the second device scans the current channel;
and if the verification information (CRC 5) corresponding to the SSID of the AP scanned by the second equipment is the same as the verification information (CRC 5) of the SSID of the AP, which is acquired from the distribution network data packet by the second equipment, the second equipment tries to connect the AP by using the distribution network information acquired from the distribution network data packet.
The checking information (CRC 5) of SSIDs of a plurality of APs which may exist on the current channel is the same, and attempting to connect to the AP using the distribution network information obtained from the distribution network packet may include:
if the second equipment can analyze the BSSID of the AP from the Mac Header content of the second distribution network data packet, the second equipment is firstly connected with the AP with the BSSID;
and if the second equipment cannot analyze the BSSID of the AP from the Mac Header content of the second distribution network data packet, the second equipment needs to try to connect the plurality of APs.
If the second device acquires the distribution network information of the access point AP from the distribution network data packet, the method includes: and the SSID of the access point AP is connected with the corresponding AP according to the obtained distribution network information of the access point AP.
S47: and after the second equipment is successfully connected with the access point AP, sending a feedback data packet to the first equipment, wherein the feedback data packet carries information for indicating that the second equipment is successfully connected with the access point AP.
Specifically, the second device may generate a feedback data packet, where the feedback data packet may be a UDP (User Datagram Protocol) broadcast packet, and an assigned port number is set in the UDP broadcast packet to indicate that the second device is successfully connected to the AP.
The UDP broadcast packet carries the password of the access point AP, the MacAddress (address of the media access control layer) of the second device, and the MacAddress CRC8 (cyclic redundancy check code of the address of the media access control layer) of the second device. Wherein the MacAddress of the second device can be used as an ID (identification) of the second device.
S48: and the first equipment receives the feedback data packet and confirms that the second equipment is successfully connected with the AP.
Specifically, when the first device receives the feedback data packet, it may display, on an interface of the first device, that the ID of the second device is successful in the distribution network.
In the embodiment of the application, the distribution network information can be coded into the WiFi packet length information and the QoS information, so that the distribution network data packet sent to the second device carries more effective distribution network information, and the success rate and robustness of distribution network are improved.
Referring to fig. 19, fig. 19 is a schematic structural diagram of a WiFi network distribution device provided in an embodiment of the present application, and specifically, as shown in fig. 19, the WiFi network distribution device includes: a storage device 1901 and a processor 1902; and the user device may further comprise a data interface 1903, a user interface 1904. Connections may also be made between the various pieces of hardware via various types of buses.
Through the data interface 1903, the wifi distribution network device can interact data with other devices such as terminals and servers; the user interface 1904 is used for realizing human-computer interaction between a user and WiFi distribution network equipment; when the WiFi network distribution device is a first device, the user interface 1904 may provide a touch display screen, a physical button, and the like, to implement human-computer interaction between the user and the WiFi network distribution device.
The storage 1901 may include a Volatile Memory (Volatile Memory), such as a Random-Access Memory (RAM); the storage device 1901 may also include a Non-Volatile Memory (Non-Volatile Memory), such as a Flash Memory (Flash Memory), a Solid-State Drive (SSD), etc.; the storage 1901 may also comprise a combination of memories of the kind described above.
The processor 1902 may be a Central Processing Unit (CPU). The processor 1902 may further include a hardware chip. The hardware chip may be an Application-Specific Integrated Circuit (ASIC), a Programmable Logic Device (PLD), or the like. The PLD may be a Field-Programmable Gate Array (FPGA), a General Array Logic (GAL), or the like.
For the case that the WiFi distribution network equipment is first equipment:
the storage 1901 is used for storing program instructions;
the processor 1902, when invoking the storage instruction, is configured to obtain distribution network information of the access point AP;
coding the distribution network information of the access point AP into length information and QoS (quality of service) information;
generating a first distribution network data packet; the WiFi packet length information of the first distribution network data packet is length information obtained by coding, and the QoS information of the first distribution network data packet is QoS information obtained by coding;
sending a distribution network data packet to the second device; the distribution network data packet comprises: the first distribution network data packet.
In one embodiment, the quality of service QoS information includes: access code AC information; and the access code AC information is obtained by mapping a data form identification code TID field in a QoS Control field of the WiFi MAC packet header.
In one embodiment, the distribution network packet further includes: a second distribution network data packet generated in the identification stage;
the processor 1902 is further configured to, before the distribution network packet is sent to the second device, encode, in an identification phase, the first identification information into length information;
generating a second distribution network data packet; and the WiFi packet length information of the second distribution network data packet is length information obtained by coding.
In one embodiment, the first identification information includes: and the access point AP hides the information of the service set identifier SSID and the version number of the distribution network protocol between the first device and the second device.
In one embodiment, the WiFi packet length of the second distribution network data packet generated in the identification stage is a first preset value;
and the access code AC information of the second distribution network data packet generated in the identification stage is a second preset value.
In one embodiment, the first distribution network packet is generated during a data phase;
the processor 1902 is specifically configured to encode, in a data phase, the distribution network information of the access point AP into length information and access code AC information.
In one embodiment, the distribution network information includes: and the password of the access point AP and the verification information of the service set identifier SSID of the access point AP.
In an embodiment, if the access point AP hides the service set identifier SSID, the distribution network information further includes: and the service set identifier SSID of the access point AP is identified.
In one embodiment, the distribution network packet further includes: a third distribution network data packet generated in the data phase;
the processor 1902 is further configured to encode, in the data phase, the second identification information into the length information and the access code AC information; the second identification information is used for assisting in identifying the distribution network information carried by the first distribution network data packet;
generating a third distribution network data packet; the WiFi packet length information of the third distribution network data packet is length information obtained through coding, and the access code AC information of the third distribution network data packet is access code AC information obtained through coding.
For the case that the WiFi distribution network equipment is second equipment:
the storage 1901 is used for storing program instructions;
the processor 1902, when invoking the storage instruction, is configured to receive a distribution network packet; the distribution network data packet comprises: the system comprises a first distribution network data packet, a first distribution network data packet and a first distribution network management module, wherein the WiFi packet length information and the QoS information of the first distribution network data packet carry distribution network information of an Access Point (AP);
and decoding the distribution network data packet to acquire the distribution network information of the access point AP.
In one embodiment, the quality of service QoS information includes: access code AC information; and the access code AC information is obtained by mapping a data form identification code TID field in a QoS Control field of the WiFi MAC packet header.
In one embodiment, the distribution network packet further includes: a third distribution network data packet;
the processor 1902 is specifically configured to decode WiFi packet length information and access code AC information of the third distribution network data packet, and obtain second identification information;
decoding the WiFi packet length information and the access code AC information of the first distribution network data packet to obtain distribution network information to be identified;
and identifying distribution network information to be identified in an auxiliary manner according to the second identification information so as to obtain the distribution network information.
In one embodiment, the distribution network information includes: the password of the access point AP and the verification information of the service set identification SSID of the access point AP.
In one embodiment, the distribution network packet further includes: a second distribution network data packet;
the processor 1902 is further configured to obtain second identification information when the WiFi packet length information and the access code AC information of the third distribution network data packet are decoded; and decoding the WiFi packet length information and the access code AC information of the first distribution network data packet, before the distribution network information to be identified is obtained, decoding the WiFi packet length information of the second distribution network data packet, and obtaining the information whether the service set identifier SSID is hidden by the access point AP.
In an embodiment, if the access point AP hides a service set identifier SSID, the distribution network information further includes: and the service set identifier SSID of the access point AP is identified.
In one embodiment, the distribution network packet further includes: a second distribution network data packet;
the processor 1902 is specifically configured to receive a transmission data packet; the transmission data packet is sent to the second device by the first device;
decoding WiFi packet length information and access code AC information of a transmission data packet;
determining whether the transmission data packet is the second distribution network data packet or not according to the WiFi packet length information and the access code AC information of the transmission data packet obtained by decoding;
and if the transmission data packet is the second distribution network data packet, determining that the first equipment is in a distribution network process, and executing distribution network data packet receiving by the second equipment.
In an embodiment, the processor 1902 is specifically configured to determine that the transmission data packet is the second distribution network data packet if the WiFi packet length of the transmission data packet is a first preset value and the access code AC information of the transmission data packet is a second preset value.
In an embodiment, the processor 1902 is further configured to, after it is determined that the transmission data packet is the second distribution network data packet, obtain, according to WiFi packet length information of the transmission data packet obtained through decoding, a distribution network protocol version number between the first device and the second device.
Referring to fig. 20, fig. 20 is a WiFi network distribution device provided in an embodiment of the present application, where the WiFi network distribution device may be applied to a first device, specifically as shown in fig. 20, the WiFi network distribution device includes:
an obtaining module 2001, configured to obtain distribution network information of the access point AP;
a generating module 2002, configured to encode the distribution network information of the access point AP into length information and QoS information; generating a first distribution network data packet; the WiFi packet length information of the first distribution network data packet is length information obtained by coding, and the QoS information of the first distribution network data packet is QoS information obtained by coding;
a sending module 2003, configured to send a distribution network data packet to the second device; the distribution network data packet comprises: the first distribution network data packet.
In one embodiment, the quality of service QoS information includes: access code AC information; and the access code AC information is obtained by mapping a data form identification code TID field in a QoS Control field of the WiFi MAC packet header.
In one embodiment, the distribution network packet further includes: a second distribution network data packet generated in the identification stage;
the generating module 2002 is further configured to, in an identification stage, encode the first identification information into length information before the distribution network packet is sent to the second device;
generating a second distribution network data packet; and the WiFi packet length information of the second distribution network data packet is length information obtained by coding.
In one embodiment, the first identification information includes: and the access point AP hides the information of the service set identifier SSID and the version number of the distribution network protocol between the first device and the second device.
In one embodiment, the WiFi packet length information of the second distribution network data packet generated in the identification stage is a first preset value;
and the access code AC information of the second distribution network data packet generated in the identification stage is a second preset value.
In one embodiment, the first distribution network packet is generated during a data phase;
the generating module 2002 is specifically configured to encode, in a data phase, the distribution network information of the access point AP into length information and access code AC information.
In one embodiment, the distribution network information includes: and the password of the access point AP and the verification information of the service set identifier SSID of the access point AP.
In an embodiment, if the access point AP hides a service set identifier SSID, the distribution network information further includes: and the service set identification SSID of the access point AP.
In one embodiment, the distribution network packet further includes: a third distribution network data packet generated in the data phase;
the generating module 2002 is further configured to, in a data phase, encode second identification information into length information and access code AC information before the distribution network packet is sent to the second device; the second identification information is used for assisting in identifying the distribution network information carried by the first distribution network data packet;
generating a third distribution network data packet; the WiFi packet length information of the third distribution network data packet is length information obtained through coding, and the access code AC information of the third distribution network data packet is access code AC information obtained through coding.
Referring to fig. 21, fig. 21 is another WiFi network distribution device provided in this embodiment of the application, where the WiFi network distribution device may be applied to a second device, specifically as shown in fig. 21, the WiFi network distribution device includes:
a receiving module 2101 configured to receive a distribution network data packet; the distribution network data packet comprises: the system comprises a first distribution network data packet, a first distribution network data packet and a first distribution network management module, wherein the WiFi packet length information and the QoS information of the first distribution network data packet carry distribution network information of an Access Point (AP);
an obtaining module 2102, configured to decode the distribution network data packet, and obtain distribution network information of the access point AP.
In one embodiment, the quality of service QoS information includes: access code AC information; and the access code AC information is obtained by mapping a data form identification code TID field in a QoS Control field of the WiFi MAC packet header.
In one embodiment, the distribution network packet further includes: a third distribution network data packet;
the obtaining module 2102 is specifically configured to decode WiFi packet length information and access code AC information of the third distribution network data packet, and obtain second identification information;
decoding the WiFi packet length information and the access code AC information of the first distribution network data packet to obtain distribution network information to be identified;
and identifying distribution network information to be identified in an auxiliary manner according to the second identification information so as to obtain the distribution network information.
In one embodiment, the distribution network information includes: the password of the access point AP and the verification information of the service set identification SSID of the access point AP.
In one embodiment, the distribution network packet further includes: a second distribution network data packet;
the obtaining module 2102 is further configured to obtain second identification information after the WiFi packet length information and the access code AC information of the third distribution network data packet are decoded; and decoding the WiFi packet length information and the access code AC information of the first distribution network data packet, before the distribution network information to be identified is acquired, decoding the WiFi packet length information of the second distribution network data packet, and acquiring the information whether the access point AP hides the service set identifier SSID.
In an embodiment, if the access point AP hides the service set identifier SSID, the distribution network information further includes: and the service set identifier SSID of the access point AP is identified.
In one embodiment, the distribution network packet further includes: a second distribution network data packet;
the receiving module 2101 is specifically configured to receive a transmission data packet; the transmission data packet is sent to the second device by the first device;
the obtaining module 2102 is specifically configured to decode WiFi packet length information and access code AC information of a transmission data packet;
determining whether the transmission data packet is the second distribution network data packet or not according to the WiFi packet length information and the access code AC information of the transmission data packet obtained by decoding;
if the transmission data packet is the second distribution network data packet, determining that the first equipment is in a distribution network process;
the receiving module 2101 is further configured to execute receiving the distribution network data packet.
In an embodiment, the obtaining module 2102 is specifically configured to determine that the transmission data packet is the second distribution network data packet if the WiFi packet length of the transmission data packet is a first preset value and the access code AC information of the transmission data packet is a second preset value.
In an embodiment, the obtaining module 2102 is further configured to obtain, after determining that the transmission packet is the second distribution network packet, a distribution network protocol version number between the first device and the second device according to the WiFi packet length information of the transmission packet obtained through decoding.
Accordingly, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium is configured to store a computer program, and the computer program enables a computer to execute the method described in any embodiment of fig. 2 (steps S201 to S204), steps S41 to S43, and S48 of the present application. It is understood that the computer storage medium herein may include a built-in storage medium in the intelligent terminal, and may also include an extended storage medium supported by the intelligent terminal. The computer storage medium provides a storage space storing an operating system of the intelligent terminal. Also, one or more instructions, which may be one or more computer programs (including program code), are stored in the memory space and are adapted to be loaded and executed by the processor. It should be noted that the computer storage medium herein may be a high-speed RAM Memory, or a Non-Volatile Memory (Non-Volatile Memory), such as at least one disk Memory; and optionally at least one computer storage medium located remotely from the processor.
Accordingly, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium is configured to store a computer program, where the computer program enables a computer to execute the method described in any of fig. 3 (steps S301 to S302) and steps S44 to S47 of the present application. It is understood that the computer storage medium herein may include a built-in storage medium in the intelligent terminal, and may also include an extended storage medium supported by the intelligent terminal. The computer storage medium provides a storage space storing an operating system of the intelligent terminal. Also, one or more instructions, which may be one or more computer programs (including program code), are stored in the memory space and are adapted to be loaded and executed by the processor. It should be noted that the computer storage medium may be a high-speed RAM Memory, or may be a Non-Volatile Memory (Non-Volatile Memory), such as at least one disk Memory; and optionally at least one computer storage medium located remotely from the processor.
While the invention has been described with reference to a number of embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (22)

1. A WiFi network distribution method is applied to a first device and comprises the following steps:
acquiring distribution network information of an Access Point (AP);
encoding the distribution network information of the access point AP into length information and QoS (quality of service) information;
generating a first distribution network data packet; the WiFi packet length information of the first distribution network data packet is length information obtained by coding distribution network information of the access point AP, and the service quality QoS information of the first distribution network data packet is service quality QoS information obtained by coding distribution network information of the access point AP;
sending a distribution network data packet to the second device; the distribution network data packet comprises: the first distribution network data packet and a second distribution network data packet generated in the identification stage;
before the distribution network data packet is sent to the second device, the method further includes: in the identification phase, encoding first identification information into length information, the first identification information comprising: whether the access point AP hides the information of a Service Set Identifier (SSID) and a distribution network protocol version number between the first device and the second device or not; generating a second distribution network data packet; and the WiFi packet length information of the second distribution network data packet is length information obtained by coding the first identification information.
2. The method of claim 1, wherein the quality of service (QoS) information comprises: access code AC information; and the access code AC information is obtained by mapping a data form identification code TID field in a QoS Control field of the WiFi MAC packet header.
3. The method of claim 1 or 2, wherein the WiFi packet length of the second distribution network data packet generated in the identification phase is a first preset value;
and the access code AC information of the second distribution network data packet generated in the identification stage is a second preset value.
4. The method of claim 2 wherein said first distribution network packet is generated during a data phase;
the encoding the distribution network information of the access point AP to length information and QoS information comprises:
and in the data phase, encoding the distribution network information of the access point AP into length information and access code AC information.
5. The method of claim 4, wherein the distribution network information comprises: and the password of the access point AP and the verification information of the service set identifier SSID of the access point AP.
6. The method of claim 5, wherein if the access point AP hides a Service Set Identification (SSID), the distribution network information further comprises: and the service set identification SSID of the access point AP.
7. The method of claim 2, wherein the distribution network packet further comprises: a third distribution network data packet generated in the data phase;
before the distribution network data packet is sent to the second device, the method further includes:
in the data phase, encoding the second identification information into length information and access code AC information; the second identification information is used for assisting in identifying the distribution network information carried by the first distribution network data packet, the second identification information includes a cyclic redundancy check code of a data Segment and an Index Segment Index of the data Segment, the Index Segment Index of the data Segment represents a Segment position of a character in the data Segment and a type of the third distribution network data packet, and the type of the third distribution network data packet refers to a type of information used for assisting in identification of the third distribution network data packet; the data segment is obtained by dividing the distribution network information, or the data segment is obtained by dividing the length of a service set identifier SSID of the access point AP;
generating a third distribution network data packet; the WiFi packet length information of the third distribution network data packet is length information obtained by encoding the second identification information, and the access code AC information of the third distribution network data packet is access code AC information obtained by encoding the second identification information.
8. A WiFi network distribution method is applied to second equipment and comprises the following steps:
receiving a distribution network data packet; the distribution network data packet comprises: the system comprises a first distribution network data packet and a second distribution network data packet, wherein the WiFi packet length information and the QoS information of the first distribution network data packet carry distribution network information of an Access Point (AP);
decoding the distribution network data packet to acquire distribution network information of the access point AP, wherein the decoding comprises the following steps: decoding the WiFi packet length information of the second distribution network data packet to obtain first identification information, wherein the first identification information is encoded to the WiFi packet length information of the second distribution network data packet by first equipment in an identification stage, and the first identification information comprises: whether the access point AP hides the information of the service set identifier SSID and the version number of the distribution network protocol between the first device and the second device or not; and decoding the WiFi packet length information and the access code AC information of the first distribution network data packet to acquire distribution network information to be identified.
9. The method of claim 8, wherein the quality of service (QoS) information comprises: access code AC information; and the access code AC information is obtained by mapping a data form identification code TID field in a QoS Control field of the WiFi MAC packet header.
10. The method of claim 9, wherein the distribution network packet further comprises: a third distribution network data packet;
the decoding the distribution network data packet to obtain the distribution network information of the access point AP further includes:
decoding the WiFi packet length information and the access code AC information of the third distribution network data packet to acquire second identification information;
according to the second identification information, auxiliary identification is carried out on distribution network information to be identified so as to obtain the distribution network information;
and decoding the WiFi packet length information and the access code AC information of the first distribution network data packet to acquire distribution network information to be identified, and executing after decoding the WiFi packet length information and the access code AC information of the third distribution network data packet to acquire second identification information.
11. The method of claim 10, wherein the distribution network information comprises: and the password of the access point AP and the verification information of the service set identifier SSID of the access point AP.
12. The method of claim 10 or 11, wherein the decoding the WiFi packet length information of the second distribution network packet to obtain the first identification information is performed before the decoding the WiFi packet length information and the access code AC information of the third distribution network packet to obtain the second identification information; the decoding the WiFi packet length information of the second distribution network data packet to obtain first identification information includes:
and decoding the WiFi packet length information of the second distribution network data packet to acquire the information whether the access point AP hides the service set identifier SSID.
13. The method of claim 12, wherein if the access point AP hides a service set identification SSID, the distribution network information further comprises: and the service set identifier SSID of the access point AP is identified.
14. The method of claim 9,
the receiving distribution network data packet includes:
receiving a transmission data packet; the transmission data packet is sent to the second device by the first device;
decoding WiFi packet length information and access code AC information of a transmission data packet;
determining whether the transmission data packet is the second distribution network data packet or not according to the WiFi packet length information and the access code AC information of the transmission data packet obtained by decoding;
and if the transmission data packet is the second distribution network data packet, determining that the first equipment is in a distribution network process, and executing the distribution network data packet receiving by the second equipment.
15. The method of claim 14, wherein the determining whether the transmission packet is the second distribution network packet according to the WiFi packet length information and the access code AC information of the transmission packet obtained by decoding comprises:
and if the WiFi packet length of the transmission data packet is a first preset value and the access code AC information of the transmission data packet is a second preset value, determining that the transmission data packet is the second distribution network data packet.
16. The method of claim 14 or 15, wherein after determining that the transmission packet is the second distribution network packet, the method further comprises:
and acquiring a distribution network protocol version number between the first equipment and the second equipment according to the decoded WiFi packet length information of the transmission data packet.
17. A WiFi distribution network device, comprising: a storage device and a processor, wherein the processor is capable of processing data,
the storage device is used for storing program instructions;
the processor, when invoking the program instructions, is configured to perform the WiFi distribution network method of any of claims 1-7.
18. A WiFi distribution network device, comprising: a storage device and a processor, wherein the processor is capable of,
the storage device is used for storing program instructions;
the processor, when invoking the program instructions, is configured to perform the WiFi distribution network method of any of claims 8-16.
19. A WiFi distribution network device, comprising:
the acquisition module is used for acquiring the distribution network information of the access point AP;
the generation module is used for coding the distribution network information of the access point AP into length information and QoS information; generating a first distribution network data packet; the WiFi packet length information of the first distribution network data packet is length information obtained by coding distribution network information of the access point AP, and the service quality QoS information of the first distribution network data packet is service quality QoS information obtained by coding the distribution network information of the access point AP;
the sending module is used for sending the distribution network data packet to the second equipment; the distribution network data packet comprises: the first distribution network data packet and a second distribution network data packet generated in the identification stage;
the generating module is further configured to, before the distribution network packet is sent to the second device, encode first identification information into length information in an identification stage, where the first identification information includes: whether the access point AP hides the information of the service set identifier SSID and the version number of a distribution network protocol between the first device and the second device or not; generating a second distribution network data packet; and the WiFi packet length information of the second distribution network data packet is length information obtained by encoding the first identification information.
20. A WiFi network distribution device, wherein the WiFi network distribution device comprises:
the receiving module is used for receiving the distribution network data packet; the distribution network data packet comprises: the system comprises a first distribution network data packet and a second distribution network data packet, wherein the WiFi packet length information and the service quality QoS information of the first distribution network data packet carry distribution network information of an Access Point (AP);
an obtaining module, configured to decode the distribution network data packet and obtain distribution network information of the access point AP, where the obtaining module includes: decoding the WiFi packet length information of the second distribution network data packet to obtain first identification information, wherein the first identification information is coded to the WiFi packet length information of the second distribution network data packet by a first device in an identification stage, and the first identification information comprises: whether the access point AP hides the information of the service set identifier SSID and the version number of a distribution network protocol between the first device and the second device or not; and decoding the WiFi packet length information and the access code AC information of the first distribution network data packet to acquire distribution network information to be identified.
21. A computer-readable storage medium storing a computer program, the computer program causing a computer to perform the WiFi network distribution method of any of claims 1-7.
22. A computer-readable storage medium storing a computer program, the computer program causing a computer to perform the WiFi network distribution method of any of claims 8-16.
CN202010186819.7A 2020-03-17 2020-03-17 WiFi network distribution method, device, apparatus and storage medium Active CN111385797B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010186819.7A CN111385797B (en) 2020-03-17 2020-03-17 WiFi network distribution method, device, apparatus and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010186819.7A CN111385797B (en) 2020-03-17 2020-03-17 WiFi network distribution method, device, apparatus and storage medium

Publications (2)

Publication Number Publication Date
CN111385797A CN111385797A (en) 2020-07-07
CN111385797B true CN111385797B (en) 2023-02-28

Family

ID=71218747

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010186819.7A Active CN111385797B (en) 2020-03-17 2020-03-17 WiFi network distribution method, device, apparatus and storage medium

Country Status (1)

Country Link
CN (1) CN111385797B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113852484B (en) * 2020-10-19 2024-03-22 广东朝歌智慧互联科技有限公司 Terminal equipment network distribution method, device, electronic equipment and computer readable medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618900A (en) * 2015-02-02 2015-05-13 青岛海尔智能家电科技有限公司 Network access method for intelligent device, intelligent device and mobile terminal
CN106851640A (en) * 2015-12-04 2017-06-13 腾讯科技(深圳)有限公司 Cryptosync method and apparatus
WO2018121086A1 (en) * 2016-12-27 2018-07-05 广东欧珀移动通信有限公司 Method for connecting to hidden ap, and terminal device
CN108718460A (en) * 2018-06-19 2018-10-30 广东美的制冷设备有限公司 Communication means, communication device and the intelligent electronic device of WLAN
CN109451502A (en) * 2018-12-27 2019-03-08 广东美的厨房电器制造有限公司 Household appliance matches network method, network distribution device and computer readable storage medium
CN110072267A (en) * 2018-01-22 2019-07-30 阿拉的(深圳)人工智能有限公司 Method, apparatus, storage medium and the intelligent sound box of intelligent sound box networking

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618900A (en) * 2015-02-02 2015-05-13 青岛海尔智能家电科技有限公司 Network access method for intelligent device, intelligent device and mobile terminal
CN106851640A (en) * 2015-12-04 2017-06-13 腾讯科技(深圳)有限公司 Cryptosync method and apparatus
WO2018121086A1 (en) * 2016-12-27 2018-07-05 广东欧珀移动通信有限公司 Method for connecting to hidden ap, and terminal device
CN110072267A (en) * 2018-01-22 2019-07-30 阿拉的(深圳)人工智能有限公司 Method, apparatus, storage medium and the intelligent sound box of intelligent sound box networking
CN108718460A (en) * 2018-06-19 2018-10-30 广东美的制冷设备有限公司 Communication means, communication device and the intelligent electronic device of WLAN
CN109451502A (en) * 2018-12-27 2019-03-08 广东美的厨房电器制造有限公司 Household appliance matches network method, network distribution device and computer readable storage medium

Also Published As

Publication number Publication date
CN111385797A (en) 2020-07-07

Similar Documents

Publication Publication Date Title
CN105050083B (en) A kind of network collocating method and system of smart machine
CN100425034C (en) Block transmit-receiving device and block transmission method
JP2019537379A (en) Coding method determination method and apparatus
CN108430092A (en) Obtain, provide method, equipment and the medium of wireless access point access information
CN111385797B (en) WiFi network distribution method, device, apparatus and storage medium
US10785814B2 (en) Method, device and system for sending participating service provider identity
CN105141627B (en) Data sending and receiving method, device and equipment
CN1516936A (en) Packet transmitter, packet receiver and packet transmission method
CN108886745A (en) A kind of method, apparatus and terminal handling service set
CN102884834A (en) System and method of encoding and decoding control information in a medium access control protocol data unit
CN111225077B (en) Network distribution method, device and system for Internet of things equipment
CN111372297B (en) Odd-even packet-based WiFi network distribution method, equipment, device and storage medium
CN111866864B (en) Method, device and storage medium for realizing encrypted storage and safe use management of cloud platform certificate based on wireless AP
WO2023236984A1 (en) Wireless network access method, apparatus and device, and storage medium
WO2021088071A1 (en) Method and apparatus for determining position occupied by resource, terminal device, and storage medium
CN107548058A (en) Equipment cut-in method and intelligent terminal
CN106471785B (en) Virtual carrier sensing method and device
US8249242B2 (en) Secure call DTMF signaling
US10623140B2 (en) Method for processing signaling sub-segment, processing apparatus, access point, and station
CN113314128B (en) Delayed access method, device and system for voice service and related products
CN106604305B (en) Wireless network configuration method and device and terminal
CN107078992A (en) A kind of information transferring method, equipment and system
EP2852082A1 (en) Information sending method and device
US8588853B2 (en) Femtocell configuration
CN112019357B (en) Network configuration method, device, equipment and system

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