CN106658671B - Method and device for connecting wireless network - Google Patents

Method and device for connecting wireless network Download PDF

Info

Publication number
CN106658671B
CN106658671B CN201710019482.9A CN201710019482A CN106658671B CN 106658671 B CN106658671 B CN 106658671B CN 201710019482 A CN201710019482 A CN 201710019482A CN 106658671 B CN106658671 B CN 106658671B
Authority
CN
China
Prior art keywords
target channel
candidate target
wireless network
determining
data packet
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
CN201710019482.9A
Other languages
Chinese (zh)
Other versions
CN106658671A (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.)
GD Midea Air Conditioning Equipment Co Ltd
Original Assignee
GD Midea Air Conditioning Equipment 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 GD Midea Air Conditioning Equipment Co Ltd filed Critical GD Midea Air Conditioning Equipment Co Ltd
Priority to CN201710019482.9A priority Critical patent/CN106658671B/en
Publication of CN106658671A publication Critical patent/CN106658671A/en
Application granted granted Critical
Publication of CN106658671B publication Critical patent/CN106658671B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication

Landscapes

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

Abstract

The invention discloses a method and a device for connecting a wireless network, wherein the method comprises the following steps: determining more than one candidate target channel containing wireless network login information data packets according to the number of the scanned preset mark data packets; scanning each candidate target channel respectively, and calculating the weight of a preset marking data packet of each candidate target channel; determining a target channel containing the wireless network login information data packet according to the preset mark data packet weight of each candidate target channel; and scanning the data packet of the target channel, acquiring the wireless network login information, and accessing the wireless network.

Description

Method and device for connecting wireless network
Technical Field
The invention relates to the technology of Internet of things, in particular to a method and a device for connecting a wireless network.
Background
The internet of things enables various intelligent home appliances to be wirelessly connected to a home local area network, such as a Wireless Fidelity (WIFI) network of a home. However, for example, head-less (head-less) devices without a keyboard or a touch screen, such as a garage gate switch, a home appliance, a lamp, a thermostat, and a treadmill, are complicated in connection with a WIFI network because a WIFI password cannot be input through the keyboard or the touch screen. Therefore, a technology for simplifying operations, called a fast connection distribution network, appears in the prior art, and most typically, a one-key configuration (SmartConfig) technology proposed by Texas Instruments (TI) is provided, and only a simple step is required to connect the intelligent household electrical appliances including headless devices to the WIFI network through the intelligent mobile terminal or the tablet computer.
Specifically, as shown in fig. 1, an intelligent mobile terminal, such as a mobile phone, connects to a router of a network to be connected, then sends a data packet through an Application (APP) matched with an intelligent household appliance device that needs to be connected, where the data packet may be a broadcast packet (broadcast packet) or a Multicast packet (Multicast packet), packs an account number and a password of the router into the data packet, and then the intelligent household appliance device to be connected captures a packet in the air through a wireless network card or a WIFI chip to lock a channel, that is, the intelligent household appliance device scans sequentially from 1 to 13 channels, and after obtaining the data packet sent by the mobile phone, the channel can be locked, and obtains the account number and the password of the router on the channel, and after success, the intelligent mobile terminal can be connected to the router.
However, this method has a disadvantage that the working channel of the router deviates due to hardware reasons, or when the working band bandwidth of the router is 40MHz, the band bandwidth of the working channel of the router is twice that of a common router (the working band bandwidth of the common router is 20MHz), which leads to the locking of the wrong channel by the intelligent household electrical appliance; for example, in a router operating on 6 channels, due to the above reasons, the intelligent household electrical appliance locks a channel in advance when scanning 5 channels, and does not continue to scan the next channel, but continuously catches a packet on the 5 channels, and cannot acquire a router account password for a long time, so that the time for acquiring the router account password is too long, which greatly affects the user experience of the user, and this situation is called as a fast-connection channel mislocking.
Obviously, the account number and the password of the router cannot be timely and accurately acquired, and the router can be quickly connected to the home local area network, so that the problem that intelligent household appliances need to be solved urgently is solved.
Disclosure of Invention
In order to solve the existing technical problem, embodiments of the present invention are expected to provide a method and an apparatus for connecting to a wireless network, which can timely and accurately obtain a router account password and quickly connect to the wireless network.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
the embodiment of the invention provides a method for connecting a wireless network, which comprises the following steps:
determining more than one candidate target channel containing wireless network login information data packets according to the number of the scanned preset mark data packets;
scanning each candidate target channel respectively, and calculating the weight of a preset marking data packet of each candidate target channel;
determining a target channel containing the wireless network login information data packet according to the preset mark data packet weight of each candidate target channel; and scanning the data packet of the target channel, acquiring the wireless network login information, and accessing the wireless network.
Preferably, the determining more than one candidate target channels containing wireless network login information data packets includes:
according to the number of the scanned preset mark data packets, determining a primary selection target channel containing the wireless network login information data packets;
and determining more than one candidate target channel according to the initially selected target channel and the adjacent channels thereof.
Preferably, determining more than one candidate target channel according to the initially selected target channel and the adjacent channels thereof includes:
and determining two or three candidate target channels according to the initially selected target channel and the adjacent channels thereof.
Preferably, the determining a primary target channel containing wireless network login information data packets according to the number of scanned preset tag data packets includes:
scanning all wireless communication channels containing the wireless network login information data packet;
and determining the primary selection target channel containing the wireless network login information data packet according to the number of the preset mark data packets scanned by each wireless communication channel.
Preferably, the calculating the preset labeled packet weight of each candidate target channel includes:
and calculating the weight of the preset marked data packet of each candidate target channel according to the number of the preset marked data packets received by the single candidate target channel, the total number of the data packets and the number of the preset marked data packets received by all the candidate target channels.
Preferably, the determining the target channel including the wireless network login information packet according to the preset tag packet weight of each candidate target channel includes:
determining the candidate target channel with the maximum weight of the preset marking data packet as the target channel;
when the preset marked data packet weights of two or more than two candidate target channels are the same, continuing to scan each candidate target channel, and calculating the preset marked data packet weight of each candidate target channel until the target channel is determined.
The embodiment of the invention also provides a device for connecting the wireless network, which comprises a determining module, a calculating module and a connecting module; wherein the content of the first and second substances,
the determining module is used for determining more than one candidate target channel containing the wireless network login information data packets according to the number of the scanned preset mark data packets;
the calculation module is used for respectively scanning each candidate target channel and calculating the weight of the preset marking data packet of each candidate target channel;
the connection module is used for determining a target channel containing the wireless network login information data packet according to the preset marked data packet weight of each candidate target channel; and scanning the data packet of the target channel, acquiring the wireless network login information, and accessing the wireless network.
Preferably, the determining means is specifically configured to;
according to the number of the scanned preset mark data packets, determining a primary selection target channel containing the wireless network login information data packets;
and determining more than one candidate target channel according to the initially selected target channel and the adjacent channels thereof.
Preferably, the determining module is further configured to:
according to the number of the scanned preset mark data packets, determining a primary selection target channel containing the wireless network login information data packets;
and determining two or three candidate target channels according to the initially selected target channel and the adjacent channels thereof.
Preferably, the determining module is further configured to:
scanning all wireless communication channels containing the wireless network login information data packet;
and determining the primary selection target channel containing the wireless network login information data packet according to the number of the preset mark data packets scanned by each wireless communication channel.
Preferably, the calculation module is specifically configured to:
and calculating the weight of the preset marked data packet of each candidate target channel according to the number of the preset marked data packets received by the single candidate target channel, the total number of the data packets and the number of the preset marked data packets received by all the candidate target channels.
Preferably, the connection module is specifically configured to:
determining the candidate target channel with the maximum weight of the preset marking data packet as the target channel;
when the preset marked data packet weights of two or more than two candidate target channels are the same, continuing to scan each candidate target channel, and calculating the preset marked data packet weight of each candidate target channel until the target channel is determined.
The method and the device for connecting the wireless network provided by the embodiment of the invention determine more than one candidate target channel containing the wireless network login information data packets according to the number of the scanned preset marking data packets; scanning each candidate target channel respectively, and calculating the weight of a preset marking data packet of each candidate target channel; determining a target channel containing the wireless network login information data packet according to the preset mark data packet weight of each candidate target channel; scanning the data packet of the target channel, acquiring the wireless network login information, and accessing the wireless network; therefore, when the preset marking data packet is scanned, the target channel cannot be locked immediately, more than one candidate target channel is determined, the preset marking data packet weight of the candidate target channel is calculated, the target channel is accurately locked according to the preset marking data packet weight, the account number and the password of the router can be timely and accurately acquired, and the router can be quickly connected to a wireless network.
Drawings
FIG. 1 is a schematic diagram of a fast-connect distribution network in the prior art;
fig. 2 is a schematic flow chart illustrating an implementation of a method for connecting a wireless network according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a process of target channel locking according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a device connected to a wireless network according to an embodiment of the present invention.
Detailed Description
So that the manner in which the features and aspects of the present invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings.
Fig. 2 is a schematic flow chart of an implementation of a method for connecting a wireless network according to an embodiment of the present invention, in which a main body to be connected to the wireless network is an intelligent device and is connected to the wireless network in a fast connection distribution network manner; the method can be realized by a main control chip of the intelligent equipment; as shown in fig. 2, the method includes:
step 101: determining more than one candidate target channel containing wireless network login information data packets according to the number of the scanned preset mark data packets;
the intelligent device can be an intelligent terminal provided with a wireless network card or a WIFI chip, and mainly aims at intelligent devices which cannot input network account passwords, and comprises household appliances, toys, school supplies, office supplies and the like; of course, the device can also be a device which can input the network account password but is inconvenient in the input process, such as an intelligent television and the like;
the wireless network may be a local area network through a router architecture, and more particularly may be a common WIFI network.
In a fast-connection distribution network, an intelligent device application matched with the intelligent device is installed through a terminal capable of being connected to the wireless network, a data packet is sent through the intelligent device application, wireless network login information is packaged into the data packet, a preset mark is set on the data packet, and the specific packaging method is not repeated;
the data packet may be a broadcast packet or a multicast packet, or may include both a broadcast packet and a multicast packet, and the wireless network login information may be an account password of the router.
In the embodiment of the invention, in order to avoid the false locking of the fast-connection channel, the intelligent equipment firstly determines a primary selection target channel containing the wireless network login information data packet according to the number of the scanned preset mark data packets;
specifically, in the process of scanning the data packets by the smart device, when finding a data packet with a preset tag, the channel is not locked immediately, but is continuously scanned, and when a sufficient number of preset tag data packets are scanned by the same channel, for example, more than two preset tag data packets are scanned, the channel is locked primarily, that is: determining a primary selection target channel containing the wireless network login information data packet;
further, in order to save the power of the smart device, the following method may be adopted:
if the intelligent equipment scans a data packet with a preset mark on a certain channel N, the channel is not locked immediately, but the channel is continuously scanned, but the scanning of other channels can be stopped;
if the intelligent device is at T1If other data packets with preset marks are not scanned within the time, the scanning of other channels is continued, so that the false locking of the channels can be prevented; according to the general case, the T1May be set to 100 ms;
if the intelligent device is at T1Scanning other data packets with preset marks in time, and determining the channel as a primary selection target channel;
generally, in actual use, as long as the smart device is at T1Scanning two preset mark data packets within time to determine a primary selection target channel;
further, in order to determine a target channel more accurately, the intelligent device determines more than one candidate target channel according to the initially selected target channel and the adjacent channels thereof;
specifically, the intelligent device may select one channel on each of two sides of the primary target channel, add the existing primary target channel, and take three channels in total as candidate target channels, and then enter step 102; if the initially selected target channel is 1 or 13, a total of two channels are taken as candidate target channels, and the process proceeds to step 102.
Step 102: scanning each candidate target channel respectively, and calculating the weight of a preset marking data packet of each candidate target channel;
specifically, the intelligent device scans each candidate target channel separately, and generally sets a time, such as T2,T2Can be set to 200ms in general and is based on T2Calculating data packets received by each candidate target channel within time;
more specifically, the smart device may calculate the preset tag packet weight of each candidate target channel according to the preset tag packet number received by a single candidate target channel, the total packet number, and the preset tag packet numbers received by all candidate target channels.
In the following, three candidate target channels are used as an example, if the candidate target channel last determined by the smart device is Nt-1、Nt、Nt+1Then is recorded in T2The number of the preset marked data packets and the total number of the data packets received by the three candidate target channels in time are specifically shown in table 1:
channel with a plurality of channels Nt-1 Nt Nt+1
General broadcast packet Nb(t-1) Nbt Nb(t+1)
Preset tag broadcast packet Nbm(t-1) Nbmt Nbm(t+1)
Total multicast packet Ng(t-1) Ngt Ng(t+1)
Preset mark multicast packet Ngm(t-1) Ngmt Ngm(t+1)
TABLE 1
The wireless network login information is packaged into a broadcast packet or a multicast packet, which is set by a manufacturer for producing intelligent equipment, and the setting is realized by special intelligent equipment application; the intelligent device application can only send broadcast packets, can only send multicast packets, and can also send both the broadcast packets and the multicast packets; therefore, a packet classification coefficient K can be introducedbAnd KgWherein k isb+Kg1, if the smart device application sends only broadcast packets, then Kb=1,Kg0, if the smart device application sends only multicast packets, then Kb=0,KgIf both broadcast and multicast packets are transmitted, K is 1b,KgRequiring the manufacturer to be specific to the case, e.g. Kb=0.4,Kg=0.6;
The formula for calculating the weight of the preset marked data packet can be obtained as follows:
Figure BDA0001207191120000071
Figure BDA0001207191120000072
Figure BDA0001207191120000073
wherein f ist-1、ft、ft+1Are respectively a channel Nt-1、Nt、Nt+1The preset marker packet weight; practice proves that the preset marking data packet weight of each channel is calculated through the calculation formula, a target channel containing the wireless network login information data packet can be accurately determined, and the intelligent equipment can be rapidly accessed to the wireless network; the whole process of determining the target channel can be seen in fig. 3.
Step 103: determining a target channel containing the wireless network login information data packet according to the preset mark data packet weight of each candidate target channel; and scanning the data packet of the target channel, acquiring the wireless network login information, and accessing the wireless network.
Determining the candidate target channel with the maximum weight of the preset mark data packet calculated in the step 102 as the target channel;
when the preset marked data packet weights of two or more than two candidate target channels are the same, continuing to scan each candidate target channel, and calculating the preset marked data packet weight of each candidate target channel until the target channel is determined.
After a target channel containing the wireless network login information data packet is determined, the intelligent equipment directly and independently scans the data packet of the target channel, acquires the wireless network login information and accesses the wireless network;
practice proves that the target channel containing the wireless network login information data packet can be accurately determined according to the preset marking data packet weight calculated in the step.
To better understand the process of determining the target channel, the following example is further illustrated:
the intelligent air conditioner needs to be connected with a home local area network, and a mobile phone or a tablet computer connected with the home local area network sends out an account number password of the home local area network in a data packet mode through an intelligent air conditioner control APP; when the intelligent air conditioner scans the data packets, the preset marked data packets are captured twice within 100ms on the channel 5, then the channel 5 is considered as a primary selection target channel, and the range is reduced to the channel N4、N5、N6I.e. N4、N5、N6As candidate target channels, scanning is continued for 200ms on the three channels, and data shown in table 2 is obtained:
Figure BDA0001207191120000081
Figure BDA0001207191120000091
TABLE 2
Wherein, Kb=0.2,KgWhen 0.8, then:
f4=0;
f5=0.0026;
f6=0.3669;
f6>f5>f4
thus, the smart air conditioner determines the channel 6 as a target channel.
And after the target channel is determined, the intelligent air conditioner acquires the account number and the password of the router in the home local area network and accesses the home local area network.
Fig. 4 is a schematic structural diagram of a device for connecting to a wireless network according to an embodiment of the present invention, and as shown in fig. 4, the device includes a determining module 41, a calculating module 42, and a connecting module 43; wherein the content of the first and second substances,
the determining module 41 is configured to determine, according to the number of the scanned preset tag data packets, more than one candidate target channels including the wireless network login information data packets;
the calculating module 42 is configured to scan each candidate target channel, and calculate a preset labeled packet weight of each candidate target channel;
the connection module 43 is configured to determine a target channel including the wireless network login information packet according to a preset tag packet weight of each candidate target channel; and scanning the data packet of the target channel, acquiring the wireless network login information, and accessing the wireless network.
For clarity of description, the following will respectively describe each module in detail:
the determining module 41 is configured to determine, according to the number of the scanned preset tag data packets, more than one candidate target channels including the wireless network login information data packets;
specifically, in the process of scanning the data packets by the intelligent device, when finding a data packet with a preset flag, the determining module 41 does not lock the channel immediately, but continues to scan, and when the same channel scans a sufficient number of preset flag data packets, for example, scans more than two preset flag data packets, the channel is locked primarily, that is: determining a primary selection target channel containing the wireless network login information data packet;
further, in order to save the power of the smart device, the following method may be adopted:
if the determining module 41 scans a data packet with a preset mark on a certain channel N, the channel is not locked immediately, but the channel is continuously scanned, but the scanning of other channels can be stopped;
if the determination module 41 is at T1If other data packets with preset marks are not scanned within the time, other channels are continuously scanned, so that the false locking of the channels can be prevented; according to the general case, the T1May be set to 100 ms;
if the determination module 41 is at T1Scanning other channels with preset marks in time, and determining the channel as a primary selection targetA channel;
in general, in actual use, as long as the determination module 41 is at T1Scanning two preset mark data packets within time to determine a primary selection target channel;
further, in order to determine the target channel more accurately, the determining module 41 determines more than one candidate target channel according to the initially selected target channel and the adjacent channels thereof;
specifically, the determining module 41 may select one channel on each of two sides of the primary selection target channel, add the original primary selection target channel, and take three channels in total as candidate target channels; if the initially selected target channel is 1 or 13, a total of two channels are candidate target channels.
The calculating module 42 is configured to scan each candidate target channel, and calculate a preset labeled packet weight of each candidate target channel;
specifically, the calculation module 42 scans each candidate target channel, and generally sets a time, such as T2,T2Can be set to 200ms in general and is based on T2Calculating data packets received by each candidate target channel within time;
more specifically, the calculating module 42 may calculate the default labeled packet weight of each candidate target channel according to the default labeled packet number received by a single candidate target channel, the total packet number, and the default labeled packet number received by all candidate target channels.
In the following, three candidate target channels are used as an example, if the candidate target channel last determined by the smart device is Nt-1、Nt、Nt+1Then is recorded in T2The number of the preset marked data packets and the total number of the data packets received by the three candidate target channels in time are shown in table 1 specifically;
the wireless network login information is packaged into a broadcast packet or a multicast packet, which is set by a manufacturer for producing intelligent equipment, and the setting is realized by special intelligent equipment application; the intelligent device application can only send broadcast packets or can send broadcast packetsOnly the multicast packet is sent, or both the multicast packet and the multicast packet can be sent; therefore, a packet classification coefficient K can be introducedbAnd KgWherein k isb+Kg1, if the smart device application sends only broadcast packets, then Kb=1,Kg0, if the smart device application sends only multicast packets, then Kb=0,KgIf both broadcast and multicast packets are transmitted, K is 1b,KgRequiring the manufacturer to be specific to the case, e.g. Kb=0.4,Kg=0.6;
Therefore, a calculation formula for calculating the weight of the preset marking data packet can be obtained, and the calculation formula (1), (2) and (3) are detailed;
wherein f ist-1、ft、ft+1Are respectively a channel Nt-1、Nt、Nt+1The preset marker packet weight; practice proves that the preset marked data packet weight of each channel is calculated through the above calculation formula, a target channel containing the wireless network login information data packet can be very accurately determined, and the connection module 43 can be quickly accessed to the wireless network.
The connection module 43 is configured to determine a target channel including the wireless network login information packet according to a preset tag packet weight of each candidate target channel; and scanning the data packet of the target channel, acquiring the wireless network login information, and accessing the wireless network.
Determining the candidate target channel with the maximum weight of the preset marking data packet calculated by the calculating module 42 as the target channel;
when the preset marked data packet weights of two or more than two candidate target channels are the same, continuing to scan each candidate target channel, and calculating the preset marked data packet weight of each candidate target channel until the target channel is determined.
After determining the target channel containing the wireless network login information data packet, the connection module 43 directly and individually scans the data packet of the target channel to obtain the wireless network login information, and accesses the wireless network;
practice proves that the target channel containing the wireless network login information data packet can be accurately determined according to the preset marking data packet weight calculated in the step.
To better understand the process of determining the target channel, the following example is further illustrated:
the intelligent air conditioner needs to be connected with a home local area network, and a mobile phone connected with the home local area network or a tablet personal computer sends out an account number password of the home local area network in a data packet mode through an intelligent air conditioner control APP; when the intelligent air conditioner scans the data packets, the preset marked data packets are captured twice within 100ms on the channel 5, then the channel 5 is considered as a primary selection target channel, and the range is reduced to the channel N4、N5、N6I.e. N4、N5、N6As candidate target channels, scanning is continued for 200ms on the three channels, and data shown in table 2 is obtained;
wherein, Kb=0.2,KgWhen 0.8, then:
f4=0;
f5=0.0026;
f6=0.3669;
f6>f5>f4
thus, the smart air conditioner determines the channel 6 as a target channel.
After the target channel is determined, the connection module 43 obtains the account password of the router in the home lan, and accesses the home lan.
In practical applications, the determining module 41, the calculating module 42 and the connecting module 43 can be implemented by a Central Processing Unit (CPU), a microprocessor unit (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like located in an intelligent device.
The above description is only exemplary of the present invention and should not be taken as limiting the scope of the present invention, and any modifications, equivalents, improvements, etc. that are within the spirit and principle of the present invention should be included in the present invention.

Claims (10)

1. A method for connecting to a wireless network, the method comprising:
determining more than one candidate target channel containing wireless network login information data packets according to the number of the scanned preset mark data packets;
scanning each candidate target channel respectively, and calculating the weight of a preset marking data packet of each candidate target channel;
determining a target channel containing the wireless network login information data packet according to the preset mark data packet weight of each candidate target channel; scanning all data packets of the target channel, acquiring the wireless network login information, and accessing the wireless network; wherein the content of the first and second substances,
the determining more than one candidate target channel containing wireless network login information data packets comprises:
according to the number of the scanned preset mark data packets, determining a primary selection target channel containing the wireless network login information data packets;
and determining more than one candidate target channel according to the initially selected target channel and the adjacent channels thereof.
2. The method of claim 1, wherein determining more than one candidate target channel based on the initially selected target channel and its neighboring channels comprises:
and determining two or three candidate target channels according to the initially selected target channel and the adjacent channels thereof.
3. The method of claim 1, wherein determining a primary target channel containing wireless network registration information packets based on the number of scanned prearranged label packets comprises:
scanning all wireless communication channels containing the wireless network login information data packet;
and determining the primary selection target channel containing the wireless network login information data packet according to the number of the preset mark data packets scanned by each wireless communication channel.
4. The method according to any one of claims 1 to 3, wherein the calculating the default labeled packet weight for each candidate target channel comprises:
and calculating the weight of the preset marked data packet of each candidate target channel according to the number of the preset marked data packets received by the single candidate target channel, the total number of the data packets and the number of the preset marked data packets received by all the candidate target channels.
5. The method according to any one of claims 1 to 3, wherein the determining the target channel including the wireless network registration information packet according to the predetermined label packet weight of each candidate target channel comprises:
determining the candidate target channel with the maximum weight of the preset marking data packet as the target channel;
when the preset marked data packet weights of two or more than two candidate target channels are the same, continuing to scan each candidate target channel, and calculating the preset marked data packet weight of each candidate target channel until the target channel is determined.
6. An apparatus for connecting to a wireless network, the apparatus comprising a determining module, a calculating module, and a connecting module; wherein the content of the first and second substances,
the determining module is used for determining a primary selection target channel containing the wireless network login information data packet according to the number of the scanned preset mark data packets; determining more than one candidate target channel according to the primarily selected target channel and the adjacent channels thereof;
the calculation module is used for respectively scanning each candidate target channel and calculating the weight of the preset marking data packet of each candidate target channel;
the connection module is used for determining a target channel containing the wireless network login information data packet according to the preset marked data packet weight of each candidate target channel; and scanning all data packets of the target channel, acquiring the wireless network login information, and accessing the wireless network.
7. The apparatus of claim 6, wherein the determining module is further configured to:
according to the number of the scanned preset mark data packets, determining a primary selection target channel containing the wireless network login information data packets;
and determining two or three candidate target channels according to the initially selected target channel and the adjacent channels thereof.
8. The apparatus of claim 6, wherein the determining module is further configured to:
scanning all wireless communication channels containing the wireless network login information data packet;
and determining the primary selection target channel containing the wireless network login information data packet according to the number of the preset mark data packets scanned by each wireless communication channel.
9. The apparatus according to any one of claims 6 to 8, wherein the computing module is specifically configured to:
and calculating the weight of the preset marked data packet of each candidate target channel according to the number of the preset marked data packets received by the single candidate target channel, the total number of the data packets and the number of the preset marked data packets received by all the candidate target channels.
10. The device according to any one of claims 6 to 8, wherein the connection module is specifically configured to:
determining the candidate target channel with the maximum weight of the preset marking data packet as the target channel;
when the preset marked data packet weights of two or more than two candidate target channels are the same, continuing to scan each candidate target channel, and calculating the preset marked data packet weight of each candidate target channel until the target channel is determined.
CN201710019482.9A 2017-01-11 2017-01-11 Method and device for connecting wireless network Active CN106658671B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710019482.9A CN106658671B (en) 2017-01-11 2017-01-11 Method and device for connecting wireless network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710019482.9A CN106658671B (en) 2017-01-11 2017-01-11 Method and device for connecting wireless network

Publications (2)

Publication Number Publication Date
CN106658671A CN106658671A (en) 2017-05-10
CN106658671B true CN106658671B (en) 2020-09-04

Family

ID=58842843

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710019482.9A Active CN106658671B (en) 2017-01-11 2017-01-11 Method and device for connecting wireless network

Country Status (1)

Country Link
CN (1) CN106658671B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107071793B (en) * 2017-06-21 2020-04-03 广东美的制冷设备有限公司 Network distribution method of WiFi (Wireless Fidelity) equipment and related equipment
CN107330310A (en) * 2017-06-23 2017-11-07 北京小鸟看看科技有限公司 Wear method, client terminal device, equipment and the system of display device login
CN109640375A (en) * 2019-01-23 2019-04-16 欧普照明股份有限公司 A kind of smart machine distribution method and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103596228B (en) * 2013-11-19 2016-12-07 福建星网锐捷网络有限公司 A kind of wireless channel switching method and device
CN104581887B (en) * 2015-01-23 2018-04-10 北京邮电大学 WIFI automatic correlation methods and intelligent terminal
WO2016169047A1 (en) * 2015-04-24 2016-10-27 Telefonaktiebolaget Lm Ericsson (Publ) Method and network node for pdcch resource allocation
CN106211279B (en) * 2016-07-12 2019-10-18 美的智慧家居科技有限公司 Wireless network method of network entry and wireless device
CN106304047A (en) * 2016-07-28 2017-01-04 深圳Tcl智能家庭科技有限公司 A kind of smart machine method of network entry and configuration system

Also Published As

Publication number Publication date
CN106658671A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN104618991B (en) Wifi (wireless fidelity) connecting method and wifi connecting system for mobile terminal
KR101859923B1 (en) Data communication via data packet headers
US10728128B2 (en) Apparatus and method for detecting counterfeit advertiser in wireless communication system
CN106658671B (en) Method and device for connecting wireless network
WO2017148082A1 (en) Device access controlling method, and related device and system
US9723261B2 (en) Information processing device, conference system and storage medium
US20190373654A1 (en) Method and apparatus for connecting to access point in portable terminal
US20140362735A1 (en) Pre-Association Discovery
US20130178163A1 (en) Systems for Facilitating Wireless Communication and Related Methods
US20150327069A1 (en) Method of establishing wireless connection and wireless access point device
US9923939B2 (en) Electronic share server, screen sharing method, and program for electronic share server
US11277744B2 (en) Wi-Fi hotspot connection method and terminal
CN104010355B (en) The device and method of wireless communication are provided in portable terminal
KR102221021B1 (en) Electronic device and method for processing packet in internet protocol based network
CN104636654B (en) A kind of apparatus bound method and electronic equipment
CN108040355A (en) Method for network access and system
CN107209728B (en) Display device and display method
CN106658426A (en) Wireless WiFi based remote control communication establishing method and terminal
CN108737053A (en) Communication means, device, site apparatus and the access point apparatus of WLAN
CN109743744B (en) Wireless performance test method, device, equipment and readable storage medium
KR102025363B1 (en) Portable Terminal
CN104952224A (en) Method for transmitting network configuration information, terminal and household appliances
US20210022029A1 (en) Wi-Fi MEASUREMENT REPORT ENHANCEMENT TECHNIQUES
KR20140115644A (en) Method For setting network of IP Camera Using Smart Phone
CN103095406A (en) Targeted interference equipment and interference method of wireless local area network

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