Network quick connection method, device and system, electronic equipment and storage medium
By scanning and analyzing preset tagged packets in multiple channels, calculating packet weights and selecting the best channel, the problem of the existing technology being unable to automatically connect to the best wireless network is solved, and efficient and reliable network connection is achieved.
Patent Information
- Application Number
- CN202411817915.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-11
- Publication Date
- 2025-02-25
AI Technical Summary
Existing network fast connection methods cannot automatically scan and analyze preset tagged packets in multiple channels, calculate packet weights for each channel, and determine the best channel to connect to the wireless network based on these weights.
By scanning multiple channels to determine the candidate channel, calculating the preset tag packet weight in the candidate channel, selecting the target channel, and obtaining the network login information of the target channel to achieve the network connection.
It realizes automatic selection and connection to the wireless network with the strongest signal and the most stable signal without manual intervention, significantly improving the reliability and efficiency of the connection.
Smart Images

Figure CN119521346A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network connection, and in particular to a network fast connection method, device, system, electronic device and storage medium thereof. Background Art
[0002] In modern communication systems, IoT devices and smart home appliances in particular usually need to connect to wireless networks to implement their functions. However, these devices often face the challenge of automatically connecting to the correct wireless network in a dense network environment.
[0003] Since existing network fast connection methods are limited by the pre-configuration of devices and their sensitivity to the surrounding network environment, especially in an environment where multiple networks coexist, devices often need to select the best channel from multiple available channels for connection, which requires dynamic evaluation of the network quality of each channel. Therefore, existing network fast connection methods have the problem of being unable to automatically scan and analyze preset marked data packets in multiple channels, calculate the data packet weight of each channel, and determine the best channel to connect to the wireless network based on these weights. Summary of the invention
[0004] The embodiment of the present invention provides a network fast connection method to solve the problem that the existing network fast connection method cannot automatically scan and analyze preset marked data packets in multiple channels, calculate the data packet weight of each channel, and determine the best channel to connect to the wireless network based on these weights.
[0005] In a first aspect, an embodiment of the present invention provides a network fast connection method, the method comprising the following steps: Determine at least one candidate channel from a plurality of channels based on the number of scanned preset marked data packets; Calculating the preset marked data packet weights of the candidate channels, and determining a target channel from the at least one candidate channel; The network login information corresponding to the target channel is obtained, and the corresponding network is accessed according to the network login information.
[0006] Optionally, determining at least one candidate channel from a plurality of channels based on the number of scanned preset-marked data packets includes: Scanning data packets in multiple channels to determine the number of corresponding data packets and the number of data packet marks; Based on the number of data packets and the number of data packet marks, determining the number of preset marked data packets of the corresponding channel and the adjacent channel; At least one candidate channel is determined from the plurality of channels based on the number of preset marked data packets of the corresponding channel and the adjacent channels.
[0007] Optionally, calculating the preset marked data packet weights of the candidate channels and determining the target channel from the at least one candidate channel includes: Based on the preset marking time, determining the number of corresponding preset marked data packets in the candidate channel; Based on the number of the preset marked data packets, the preset marked data packet weights of the candidate channels are calculated to obtain data packet weight values corresponding to the candidate channels; A target channel is determined from the at least one candidate channel based on the packet weight value.
[0008] Optionally, the calculating, based on the number of the preset marked data packets, the preset marked data packet weights of the candidate channels to obtain the data packet weight values corresponding to the candidate channels includes: Determining the total number of data packets in the candidate channel; Based on the ratio of the number of the preset marked data packets to the total number of data packets in the candidate channel, a data packet weight value corresponding to the candidate channel is determined.
[0009] Optionally, before acquiring the network login information corresponding to the target channel and accessing the corresponding network according to the network login information, the method further includes: Matching and verifying the network login information corresponding to the target channel and the target network environment, and determining the network login information for interacting with the target network environment; The network login information interacting with the target network environment is extracted to obtain a corresponding network name and login password.
[0010] Optionally, the acquiring network login information corresponding to the target channel and accessing the corresponding network according to the network login information includes: Extracting the network login information on the target channel to obtain a corresponding network name and login password; Based on the network name and login password, configure network credentials for accessing the network; Based on the network credentials, access the corresponding network.
[0011] In a second aspect, an embodiment of the present invention further provides a network quick connection device, the network quick connection device comprising: A first determination module, configured to determine at least one candidate channel from a plurality of channels based on the number of scanned preset marked data packets; A second determination module, configured to calculate a preset marked data packet weight of the candidate channel, and determine a target channel from the at least one candidate channel; The first access module is used to obtain the network login information corresponding to the target channel and access the corresponding network according to the network login information.
[0012] In a third aspect, an embodiment of the present invention further provides a network quick connection system, which includes: a network quick connection device, a server, and an intelligent terminal.
[0013] In a fourth aspect, an embodiment of the present invention provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps in the network fast connection method provided in an embodiment of the present invention when executing the computer program.
[0014] In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the network fast connection method provided in the embodiment of the invention are implemented.
[0015] In the embodiment of the present invention, based on the number of scanned preset marked data packets, at least one candidate channel is determined from multiple channels; the weight of the preset marked data packets of the candidate channels is calculated, and a target channel is determined from at least one candidate channel; the network login information corresponding to the target channel is obtained, and the corresponding network is accessed according to the network login information. By automatically scanning and analyzing the preset marked data packets in multiple channels, calculating the data packet weight of each channel, and determining the best channel to connect to the wireless network based on the data packet weight, it is possible to automatically select and connect to the wireless network with the strongest and most stable signal without manual intervention, significantly improving the reliability and efficiency of the connection. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0017] Figure 1 It is an architecture diagram of a network quick connection system provided by an embodiment of the present invention; Figure 2 is a flow chart of a network fast connection method provided by an embodiment of the present invention; Figure 3 is a structural schematic diagram of a network quick connection device provided in an embodiment of the present invention; Figure 4 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0018] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0019] like Figure 1 As shown, Figure 1 1 is an architecture diagram of a network quick connection system 100 provided by an embodiment of the present invention, and the network quick connection system includes: a network quick connection device 300, a server 101, and an intelligent terminal 102. The network quick connection device 300 also includes a first determination module, which can be used to determine at least one candidate channel from multiple channels based on the number of preset marked data packets scanned; a second determination module, which can be used to calculate the weight of the preset marked data packets of the candidate channels and determine the target channel from at least one candidate channel; a first access module, which can be used to obtain the network login information corresponding to the target channel and access the corresponding network according to the network login information.
[0020] Specifically, the above scanning process can be performed by identifying available Wi-Fi channels, allocating corresponding identification scanning time according to channel data such as the number of channels and bandwidth size, and identifying and scanning data packets in the channel according to the identification scanning time.
[0021] The above-mentioned preset mark data packet may be a data packet carrying a pre-marked message or node data information. It is understandable that the above-mentioned preset mark may be a data packet header of a specific format, a specially encoded serial number or an encrypted identifier, or a header in a corresponding network environment defined according to specific needs, such as a specially defined SSD name and key when network access is required, and a specially defined target IP when transmission is required.
[0022] In a possible embodiment, when the network quick connection system scans and finds a data packet with a preset mark, it will continue to scan its channel until a sufficient number of preset mark data packets are scanned and identified, and then the channel is initially locked as a candidate channel. It can be understood that the sufficient number can be determined based on the recognition frequency of the preset identification data packets in the current channel. Generally speaking, the faster and higher the recognition frequency, the smaller the number can be set to reduce the probability of false recognition.
[0023] The above-mentioned preset marked data packet weight can calculate the proportion of the data packet in the current channel according to the number, strength or other characteristics of the received data packets with specific marks. It can be understood that, in principle of channel allocation, the better the channel communication state is, the higher the efficiency of data packet transmission is, and the more preset marked data packets are collected. The above-mentioned preset marked data packet weight is usually used for channel selection or priority allocation, especially in a multi-channel environment to help smart terminals make better connection decisions. More specifically, the above-mentioned preset marked data packet weight is a quantitative assessment of network quality or channel quality.
[0024] Specifically, the weight of the above-mentioned preset marked data packet can be calculated by the following formula:
[0025] Wherein, the above f is the above preset marked data packet weight, f a is the signal strength coefficient of the current channel, f b is the channel stability coefficient of the current channel, f tn A is the number of packets with preset marks received by the current channel within n time. tn is the number of all data packets received by the current channel within n time. It can be understood that the above signal strength coefficient can be used to quantify the reception quality of the wireless signal, generally in dBm units, and can be detected by the average signal strength on the channel. The above channel stability coefficient can be used to reflect the stability of the wireless channel during reception, and can be obtained by measuring the interference noise of the signal on the channel. The weight value of the preset marked data packet weight in the current channel can be calculated by the above formula.
[0026] The above-mentioned target channel can be a channel that can best configure and transmit the current network data and is used for network access, which is selected from the above-mentioned multiple candidate channels. That is, the device finally selects the channel for network connection after scanning multiple channels. Specifically, the candidate channel with the highest weight value of the preset marked data packet can be used as the above-mentioned target channel. Therefore, the above-mentioned target channel can be changed after the above-mentioned n time. The selection process of the above-mentioned target channel can be a dynamic process. When the current target channel is congested, the environment changes, etc., the number of corresponding preset marked data packets will also change, so the weight value of the current channel will also change, that is, after n time, the weight value of the data packet in the channel needs to be recalculated to complete the dynamic screening of the optimal channel for the current network environment as the above-mentioned target channel.
[0027] The above-mentioned network login information may include but is not limited to data such as the network name and login password used to access the network. Generally speaking, the network login information can be distinguished according to data packets with different labels, that is, after marking the messages with different functions in advance according to the needs, the data carried in the data packets with different labels are screened, and finally decoded to obtain the corresponding network login information. For example, when network access is required, the above-mentioned network login information can be a specially defined SSD name and key. When transmission is required, the above-mentioned network login information can be a specially defined target IP, etc.
[0028] In a possible embodiment, the network quick connection system automatically scans and analyzes preset marked data packets in multiple channels, calculates the data packet weight of each channel, and determines the best channel to connect to the wireless network based on the data packet weight for network connection. This can automatically select and connect to the wireless network with the strongest and most stable signal without human intervention, significantly improving the reliability and efficiency of the connection.
[0029] like Figure 2 As shown, Figure 2 : is a flow chart of a network quick connection method provided by an embodiment of the present invention, the network quick connection method comprising the steps of: 201. Determine at least one candidate channel from a plurality of channels based on the number of scanned preset-marked data packets.
[0030] In an embodiment of the present invention, the above-mentioned network quick connection method can be applied to the above-mentioned network quick connection system. The above-mentioned network quick connection system has functions such as data packet data processing, data packet data transmission and reception, and data packet data memory storage, and can be constructed based on a server or a server cluster. The above-mentioned server or server cluster can be an electronic device with data packet processing capabilities.
[0031] The above scanning process can be performed by identifying available Wi-Fi channels, allocating corresponding identification scanning time according to channel data such as the number of channels and bandwidth size, and identifying and scanning data packets in the channel according to the identification scanning time.
[0032] The above-mentioned preset mark data packet may be a data packet carrying a pre-marked message or node data information. It is understandable that the above-mentioned preset mark may be a data packet header of a specific format, a specially encoded serial number or an encrypted identifier, or a header in a corresponding network environment defined according to specific needs, such as a specially defined SSD name and key when network access is required, and a specially defined target IP when transmission is required.
[0033] The candidate channels may be a set of channels that may contain target network information and are screened out according to certain evaluation criteria (such as signal strength, interference level, number of preset marked data packets, etc.) after the intelligent terminal scans multiple channels.
[0034] 202. Calculate preset marked data packet weights of candidate channels, and determine a target channel from at least one candidate channel.
[0035] The above-mentioned preset marked data packet weight can calculate the proportion of the data packet in the current channel according to the number, strength or other characteristics of the received data packets with specific marks. It can be understood that, in principle of channel allocation, the better the channel communication state is, the higher the efficiency of data packet transmission is, and the more preset marked data packets are collected. The above-mentioned preset marked data packet weight is usually used for channel selection or priority allocation, especially in a multi-channel environment to help smart terminals make better connection decisions. More specifically, the above-mentioned preset marked data packet weight is a quantitative assessment of network quality or channel quality.
[0036] Specifically, the weight of the above-mentioned preset marked data packet can be calculated by the following formula:
[0037] Wherein, the above f is the above preset marked data packet weight, f a is the signal strength coefficient of the current channel, f b is the channel stability coefficient of the current channel, f tn A is the number of packets with preset marks received by the current channel within n time. tn is the number of all data packets received by the current channel within n time. It can be understood that the above signal strength coefficient can be used to quantify the reception quality of the wireless signal, generally in dBm units, and can be detected by the average signal strength on the channel. The above channel stability coefficient can be used to reflect the stability of the wireless channel during reception, and can be obtained by measuring the interference noise of the signal on the channel. The weight value of the preset marked data packet weight in the current channel can be calculated by the above formula.
[0038] The above-mentioned target channel can be a channel that can best configure and transmit the current network data and is used for network access, which is selected from the above-mentioned multiple candidate channels. That is, the device finally selects the channel for network connection after scanning multiple channels. Specifically, the candidate channel with the highest weight value of the preset marked data packet can be used as the above-mentioned target channel. Therefore, the above-mentioned target channel can be changed after the above-mentioned n time. The selection process of the above-mentioned target channel can be a dynamic process. When the current target channel is congested, the environment changes, etc., the number of corresponding preset marked data packets will also change, so the weight value of the current channel will also change, that is, after n time, the weight value of the data packet in the channel needs to be recalculated to complete the dynamic screening of the optimal channel for the current network environment as the above-mentioned target channel.
[0039] 203. Obtain network login information corresponding to the target channel, and access the corresponding network according to the network login information.
[0040] The above-mentioned network login information may include but is not limited to data such as the network name and login password used to access the network. Generally speaking, the network login information can be distinguished according to data packets with different labels, that is, after marking the messages with different functions in advance according to the needs, the data carried in the data packets with different labels are screened, and finally decoded to obtain the corresponding network login information. For example, when network access is required, the above-mentioned network login information can be a specially defined SSD name and key. When transmission is required, the above-mentioned network login information can be a specially defined target IP, etc.
[0041] In a possible embodiment, the network quick connection system automatically scans and analyzes preset marked data packets in multiple channels, calculates the data packet weight of each channel, and determines the best channel to connect to the wireless network based on the data packet weight for network connection. This can automatically select and connect to the wireless network with the strongest and most stable signal without human intervention, significantly improving the reliability and efficiency of the connection.
[0042] In the embodiment of the present invention, based on the number of scanned preset marked data packets, at least one candidate channel is determined from multiple channels; the weight of the preset marked data packets of the candidate channels is calculated, and a target channel is determined from at least one candidate channel; the network login information corresponding to the target channel is obtained, and the corresponding network is accessed according to the network login information. By automatically scanning and analyzing the preset marked data packets in multiple channels, calculating the data packet weight of each channel, and determining the best channel to connect to the wireless network based on the data packet weight, it is possible to automatically select and connect to the wireless network with the strongest and most stable signal without manual intervention, significantly improving the reliability and efficiency of the connection.
[0043] Optionally, the step of determining at least one candidate channel among multiple channels based on the number of scanned preset-marked data packets also includes scanning the data packets in the multiple channels to determine the number of corresponding data packets and the number of data packet marks; determining the number of preset-marked data packets of the corresponding channel and the adjacent channel based on the number of data packets and the number of data packet marks; and determining at least one candidate channel among the multiple channels based on the number of preset-marked data packets of the corresponding channel and the adjacent channel.
[0044] In an embodiment of the present invention, the above-mentioned network quick connection system can be used to identify and scan data packets in multiple channels according to the preset listening time, and scan and identify data packets in the channels according to the configured wireless network card and the scanning range, such as channels 1 to 13 corresponding to 2.4Ghz, or specific channels in the 5Ghz frequency band. Specifically, after the scanned data packets are stored, they are identified by analyzing the captured data packet content, such as the data packet tag, the corresponding number of data packets, the identifier or encryption feature in the header, etc., and finally, the pre-marked features are counted according to the needs, and the corresponding number is calculated to obtain the above-mentioned data packet tag number.
[0045] For example, as shown in Table 1: Table 1 Among them, 3 channels are scanned, channel 1 is scanned for 100 milliseconds, the total number of received data packets is recorded as 100, and the number of marked data packets is 20; channel 2 is scanned for 100 milliseconds, the total number of received data packets is recorded as 80, and the number of marked data packets is 15; channel 3 is scanned for 100 milliseconds, the total number of received data packets is recorded as 90, and the number of marked data packets is 25. Channel 1 and channel 3 can be adjacent channels of channel 2. Finally, according to the ratio of the total number of data packets to the number of marked data packets, the channel with a larger ratio is used as the above candidate channel.
[0046] Optionally, in the step of calculating the preset marked data packet weights of the candidate channels and determining the target channel in at least one candidate channel, it also includes determining the number of corresponding preset marked data packets in the candidate channel based on the preset marking time; calculating the preset marked data packet weights of the candidate channels based on the number of preset marked data packets to obtain the data packet weight value of the corresponding candidate channel; and determining the target channel in at least one candidate channel based on the data packet weight value.
[0047] In an embodiment of the present invention, the preset marking time can be based on the interval time period during which the network quick connection system scans data packets, and is used to process channel scanning, data packet identification, and extraction of markings within the time period. Generally speaking, the length of the preset marking time can be set according to the network environment and transmission status of the current channel. When the current channel is in a congested state or the network environment changes, it can be set relatively longer to ensure that a sufficient number of data packets can be scanned and captured.
[0048] The above-mentioned preset marked data packet weight can calculate the proportion of the data packet in the current channel according to the number, strength or other characteristics of the received data packets with specific marks. It can be understood that, in principle of channel allocation, the better the channel communication state is, the higher the efficiency of data packet transmission is, and the more preset marked data packets are collected. The above-mentioned preset marked data packet weight is usually used for channel selection or priority allocation, especially in a multi-channel environment to help smart terminals make better connection decisions. More specifically, the above-mentioned preset marked data packet weight is a quantitative assessment of network quality or channel quality.
[0049] Specifically, the weight of the above-mentioned preset marked data packet can be calculated by the following formula:
[0050] Wherein, the above f is the above preset marked data packet weight, f a is the signal strength coefficient of the current channel, f b is the channel stability coefficient of the current channel, f tn A is the number of packets with preset marks received by the current channel within n time. tn is the number of all data packets received by the current channel within n time. It can be understood that the above signal strength coefficient can be used to quantify the reception quality of the wireless signal, generally in dBm units, and can be detected by the average signal strength on the channel. The above channel stability coefficient can be used to reflect the stability of the wireless channel during reception, and can be obtained by measuring the interference noise of the signal on the channel. The weight value of the preset marked data packet weight in the current channel can be calculated by the above formula.
[0051] The above-mentioned target channel can be a channel that can best configure and transmit the current network data and is used for network access, which is selected from the above-mentioned multiple candidate channels. That is, the device finally selects the channel for network connection after scanning multiple channels. Specifically, the candidate channel with the highest weight value of the preset marked data packet can be used as the above-mentioned target channel. Therefore, the above-mentioned target channel can be changed after the above-mentioned n time. The selection process of the above-mentioned target channel can be a dynamic process. When the current target channel is congested, the environment changes, etc., the number of corresponding preset marked data packets will also change, so the weight value of the current channel will also change, that is, after n time, the weight value of the data packet in the channel needs to be recalculated to complete the dynamic screening of the optimal channel for the current network environment as the above-mentioned target channel.
[0052] Optionally, in the step of calculating the preset marked data packet weight of the candidate channel based on the number of preset marked data packets to obtain the data packet weight value corresponding to the candidate channel, it also includes determining the total number of data packets in the candidate channel; and determining the data packet weight value corresponding to the candidate channel based on the ratio of the number of preset marked data packets to the total number of data packets in the candidate channel.
[0053] In the embodiment of the present invention, a weighting factor is introduced to calculate the weight value of the data packet of the above-mentioned channel. Specifically, the weighting factor α may be a value dynamically adjusted according to the network environment of the channel, and is used to correct the preset marked data packet ratio of the channel. The weighting factor may be adjusted by the following three factors: Signal strength (S): The stronger the signal strength, the larger the weighting factor, indicating that the quality of the channel is higher; Interference level (I): The lower the interference, the larger the weighting factor, indicating that the channel has better stability; Network load (L): A channel with a lower network load can obtain a higher weighting factor, indicating that the connection quality of the channel is more stable.
[0054] Among them, the weighting factor α can be obtained by the following formula:
[0055] Where, S is the signal strength, ranging from [0, 1]; I is the interference level, ranging from [0, 1]; L is the network load, ranging from [0, 1].
[0056] By multiplying the above-mentioned data packet weight value with the weighting factor, the actual quality of each channel can be reflected in real time in a multi-channel network environment, thereby dynamically selecting the best channel to improve the connection quality and efficiency of the wireless network.
[0057] Optionally, the steps before obtaining the network login information corresponding to the target channel and accessing the corresponding network according to the network login information also include matching and verifying the network login information corresponding to the target channel with the target network environment to determine the network login information that interacts with the target network environment; extracting the network login information that interacts with the target network environment to obtain the corresponding network name and login password.
[0058] In an embodiment of the present invention, the network quick connection system controls the intelligent terminal to scan the target channel to extract network login information, including but not limited to SSID and password information, and then performs matching verification with the target network environment. Specifically, by verifying the encryption protocol corresponding to the network login information, it is ensured that the acquired SSID and password information matches the SSID and password information of the target network. When the network login information matching verification is passed, the intelligent terminal is driven to automatically connect to the target network through the network login information corresponding to the target channel.
[0059] The above-mentioned network quick connection system matches and verifies the network login information of the target channel with the target network environment, so that the smart terminal can ensure that the extracted network name and password are correct, and use this information to successfully access the target network, thereby improving the reliability of the network connection and enhancing the secure interaction between the device and the target network.
[0060] Optionally, in the step of obtaining the network login information corresponding to the target channel and accessing the corresponding network according to the network login information, it also includes extracting the network login information on the target channel to obtain the corresponding network name and login password; configuring network credentials for accessing the network based on the network name and login password; and accessing the corresponding network based on the network credentials.
[0061] In an embodiment of the present invention, the above-mentioned network quick connection system extracts data from the data packets on the target channel to obtain the corresponding network name and login password, and then configures the network protocol and network environment of the current channel according to the network name and login password to obtain the network credentials of the current channel for accessing the target network, and uses the network credentials to make a connection request. The network verifies the credentials, establishes a network connection after the verification is passed, and starts data transmission.
[0062] Through the above steps of configuring network credentials, the connection operation of the device automatically connecting to the network is simplified, and the correctness and security of the connection are ensured, thereby improving the user experience and the stability of network access.
[0063] like Figure 3 As shown, the embodiment of the present invention further provides a network quick connection device 300, which includes: A first determination module 301 is used to determine at least one candidate channel from a plurality of channels based on the number of scanned preset marked data packets; A second determination module 302 is used to calculate the preset marked data packet weight of the candidate channel and determine the target channel from the at least one candidate channel; The first access module 303 is used to obtain the network login information corresponding to the target channel and access the corresponding network according to the network login information.
[0064] Optionally, the first determining module 301 includes: A first determination submodule is used to scan data packets in multiple channels to determine the number of corresponding data packets and the number of data packet marks; A second determination submodule, configured to determine the number of preset marked data packets of the corresponding channel and the adjacent channel based on the number of data packets and the number of data packet marks; The third determining submodule is configured to determine at least one candidate channel from a plurality of channels based on the number of preset marked data packets of the corresponding channel and the adjacent channels.
[0065] Optionally, the second determining module 302 includes: A fourth determination submodule, configured to determine, in the candidate channel, the number of corresponding preset marked data packets based on the preset marking time; A fifth determination submodule, configured to calculate the weight of the preset marked data packets of the candidate channel based on the number of the preset marked data packets, to obtain a data packet weight value corresponding to the candidate channel; The sixth determination submodule is configured to determine a target channel from the at least one candidate channel based on the data packet weight value.
[0066] Optionally, the fifth determining submodule includes: A first determining unit, configured to determine the total number of data packets in the candidate channel; The second determining unit is used to determine the data packet weight value corresponding to the candidate channel based on the ratio of the number of the preset marked data packets to the total number of data packets in the candidate channel.
[0067] Optionally, the above device further includes: A third determination module is used to match and verify the network login information corresponding to the target channel with the target network environment, and determine the network login information that interacts with the target network environment; The fourth determination module is used to extract the network login information interacting with the target network environment to obtain the corresponding network name and login password.
[0068] Optionally, the first access module 303 includes: A first acquisition submodule is used to extract the network login information on the target channel to obtain a corresponding network name and login password; A configuration submodule, configured to configure network credentials for accessing the network based on the network name and login password; The access submodule is used to access the corresponding network based on the network credential.
[0069] like Figure 4 As shown, an embodiment of the present invention further provides an electronic device 400, including a processor, and the processor can execute any one of the above-mentioned network fast connection methods.
[0070] Specifically, it includes a processor 401 and a memory 402, and a computer program for executing a network fast connection method stored in the memory 402 and capable of running on the processor 401, wherein: The processor 401 runs the computer program of the network fast connection method stored in the memory 402 to perform the following steps: Determine at least one candidate channel from a plurality of channels based on the number of scanned preset marked data packets; Calculating the preset marked data packet weights of the candidate channels, and determining a target channel from the at least one candidate channel; The network login information corresponding to the target channel is obtained, and the corresponding network is accessed according to the network login information.
[0071] Optionally, the processor 401 performs the step of determining at least one candidate channel from a plurality of channels based on the number of scanned preset-marked data packets, including: Scanning data packets in multiple channels to determine the number of corresponding data packets and the number of data packet marks; Based on the number of data packets and the number of data packet marks, determining the number of preset marked data packets of the corresponding channel and the adjacent channel; At least one candidate channel is determined from the plurality of channels based on the number of preset marked data packets of the corresponding channel and the adjacent channels.
[0072] Optionally, the processor 401 performs the step of calculating the preset marked data packet weight of the candidate channel to determine the target channel from the at least one candidate channel, including: Based on the preset marking time, determining the number of corresponding preset marked data packets in the candidate channel; Based on the number of the preset marked data packets, the preset marked data packet weights of the candidate channels are calculated to obtain data packet weight values corresponding to the candidate channels; A target channel is determined from the at least one candidate channel based on the packet weight value.
[0073] Optionally, the processor 401 performs the step of calculating the weight of the preset marked data packets of the candidate channel based on the number of the preset marked data packets to obtain the data packet weight value corresponding to the candidate channel, including: Determining the total number of data packets in the candidate channel; Based on the ratio of the number of the preset marked data packets to the total number of data packets in the candidate channel, a data packet weight value corresponding to the candidate channel is determined.
[0074] Optionally, before the processor 401 executes the acquiring of the network login information corresponding to the target channel and accessing the corresponding network according to the network login information, the method further includes: Matching and verifying the network login information corresponding to the target channel and the target network environment, and determining the network login information for interacting with the target network environment; The network login information interacting with the target network environment is extracted to obtain a corresponding network name and login password.
[0075] Optionally, the processor 401 further executes the acquiring of network login information corresponding to the target channel, and accessing a corresponding network according to the network login information, including: Extracting the network login information on the target channel to obtain a corresponding network name and login password; Based on the network name and login password, configure network credentials for accessing the network; Based on the network credentials, access the corresponding network.
[0076] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the network fast connection method or the application-side network fast connection method provided in the embodiment of the present invention are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0077] Those skilled in the art can understand that the implementation of all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).
[0078] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.
Claims
1. A network fast connection method, characterized in that: include: Determine at least one candidate channel from a plurality of channels based on the number of scanned preset marked data packets; Calculating the preset marked data packet weights of the candidate channels, and determining a target channel from the at least one candidate channel; The network login information corresponding to the target channel is obtained, and the corresponding network is accessed according to the network login information.
2. The network fast connection method according to claim 1, characterized in that: The step of determining at least one candidate channel from a plurality of channels based on the number of scanned preset marked data packets comprises: Scanning data packets in multiple channels to determine the number of corresponding data packets and the number of data packet marks; Based on the number of data packets and the number of data packet marks, determining the number of preset marked data packets of the corresponding channel and the adjacent channel; At least one candidate channel is determined from the plurality of channels based on the number of preset marked data packets of the corresponding channel and the adjacent channels.
3. The network fast connection method according to claim 1, characterized in that: The step of calculating the preset marked data packet weights of the candidate channels and determining a target channel from the at least one candidate channel includes: Based on the preset marking time, determining the number of corresponding preset marked data packets in the candidate channel; Based on the number of the preset marked data packets, the preset marked data packet weights of the candidate channels are calculated to obtain data packet weight values corresponding to the candidate channels; A target channel is determined from the at least one candidate channel based on the packet weight value.
4. The network fast connection method according to claim 3, characterized in that: The step of calculating the weight of the preset marked data packets of the candidate channels based on the number of the preset marked data packets to obtain the data packet weight value corresponding to the candidate channels includes: Determining the total number of data packets in the candidate channel; Based on the ratio of the number of the preset marked data packets to the total number of data packets in the candidate channel, a data packet weight value corresponding to the candidate channel is determined.
5. The network fast connection method according to claim 1, characterized in that: Before acquiring the network login information corresponding to the target channel and accessing the corresponding network according to the network login information, the method further includes: Matching and verifying the network login information corresponding to the target channel and the target network environment, and determining the network login information for interacting with the target network environment; The network login information interacting with the target network environment is extracted to obtain a corresponding network name and login password.
6. The network fast connection method according to claim 1, characterized in that: The obtaining the network login information corresponding to the target channel and accessing the corresponding network according to the network login information includes: Extracting the network login information on the target channel to obtain a corresponding network name and login password; Based on the network name and login password, configure network credentials for accessing the network; Based on the network credentials, access the corresponding network.
7. A network quick connection device, characterized in that: include: A first determination module, configured to determine at least one candidate channel from a plurality of channels based on the number of scanned preset marked data packets; A second determination module, configured to calculate a preset marked data packet weight of the candidate channel, and determine a target channel from the at least one candidate channel; The first access module is used to obtain the network login information corresponding to the target channel and access the corresponding network according to the network login information.
8. A network quick connection system, characterized in that: The network quick connection system comprises: a network quick connection device; The network quick connection device is determined by a network quick connection method shown in claims 1-6.
9. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the network fast connection method as claimed in any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the network fast connection method according to any one of claims 1 to 6 are implemented.