CN112654075A - Method and system for rapidly connecting AP (access point) by WLAN (wireless local area network) cold start - Google Patents

Method and system for rapidly connecting AP (access point) by WLAN (wireless local area network) cold start Download PDF

Info

Publication number
CN112654075A
CN112654075A CN202011527233.9A CN202011527233A CN112654075A CN 112654075 A CN112654075 A CN 112654075A CN 202011527233 A CN202011527233 A CN 202011527233A CN 112654075 A CN112654075 A CN 112654075A
Authority
CN
China
Prior art keywords
bss information
flash
information
cold start
wlan
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011527233.9A
Other languages
Chinese (zh)
Inventor
谢其海
梁毅宏
夏锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Xinzhilian Technology Co ltd
Original Assignee
Guangzhou Xinzhilian Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Xinzhilian Technology Co ltd filed Critical Guangzhou Xinzhilian Technology Co ltd
Priority to CN202011527233.9A priority Critical patent/CN112654075A/en
Publication of CN112654075A publication Critical patent/CN112654075A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The invention discloses a method and a system for rapidly connecting AP by WLAN cold start, wherein the method comprises the following steps: s100, when the WLAN is connected with a target AP for the first time, the IP address and BSS information of the target AP are obtained and stored to the designated position of a flash; and S200, the WLAN is cold started, BSS information is read from the designated position of the flash and is set to a network end, SSID and a corresponding password are configured according to the BSS information, connection of an IP layer is carried out through an IP address, and a target AP is connected. According to the invention, after the AP is connected for the first time, the IP and BSS information corresponding to the AP are stored in the flash, and can be read from the flash when waiting for the next start, so that the processes of scanning and acquiring the IP information are omitted; the time from the starting of the device to the connection to the AP can be shortened, so that the device can be quickly connected to the AP for communication under the condition of low power consumption.

Description

Method and system for rapidly connecting AP (access point) by WLAN (wireless local area network) cold start
Technical Field
The invention relates to the technical field of WLAN connection, in particular to a method and a system for rapidly connecting AP through WLAN cold start.
Background
The intelligent terminal and the wireless product are in a period of rapid development, and WiFi equipment is visible everywhere. An application scene often appears in common smart home equipment, and equipment is in a dormant state for a long time, but the equipment is required to be capable of responding quickly when in use, but power consumption and response time often cannot be obtained at the same time. Therefore, the requirements of the application scenarios can be met only by accelerating the process from the cold start of the device to the connection of the AP to receive and send the packet.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, the invention provides a method for rapidly connecting an AP (access point) by WLAN cold start, which can enable equipment to be rapidly connected with a router for communication in a low power consumption state.
The invention also provides a system of the WLAN cold start quick connection AP, which has the method of the WLAN cold start quick connection AP.
The invention also provides a computer readable storage medium with the WLAN cold start quick AP connection method.
The method for WLAN cold start fast connection AP according to the embodiment of the first aspect of the invention comprises the following steps: s100, when the WLAN is connected with a target AP for the first time, the IP address and BSS information of the target AP are obtained and stored to the designated position of a flash; and S200, performing WLAN cold start, reading the BSS information from the designated position of the flash, setting the BSS information to a network end, configuring an SSID (service set identifier) and a corresponding password according to the BSS information, performing IP layer connection through the IP address, and connecting the target AP.
The method for WLAN cold start quick connection AP according to the embodiment of the invention has at least the following beneficial effects: after the AP is connected for the first time, the IP and BSS information corresponding to the AP are stored in the flash, and can be read from the flash when waiting for the next start, so that the processes of scanning and acquiring the IP information are omitted; the time from the starting of the device to the connection to the AP can be shortened, so that the device can be quickly connected to the AP for communication under the condition of low power consumption.
According to some embodiments of the invention, said step S100 comprises: s110, the network side detects and obtains the IP address of the target AP and stores the IP address into a flash; and S120, acquiring the length and the data content of the BSS information of the target AP through a network terminal, and storing the BSS information in a designated position of a flash.
According to some embodiments of the invention, said step S120 further comprises: s121, analyzing the data content of the BSS information at a network end, acquiring the SSID and the corresponding password, and generating a corresponding hexadecimal Key value; and S122, storing the SSID, the hexadecimal Key value, the length of the BSS information and the data content of the BSS information in a flash by using a fixed structure body.
According to some embodiments of the invention, said step S200 further comprises: s210, carrying out WLAN cold start, and judging whether BSS information exists in a designated position in the flash; and S220, if the BSS information exists, reading the data content of the BSS information according to the length of the BSS information, and setting the BSS information to a network end.
According to some embodiments of the invention, said step S200 further comprises: if the BSS information is not obtained from the designated location of the flash, the method is normally started, and the step S100 is executed.
According to some embodiments of the invention, said step S200 further comprises: and extracting the channel, the signal strength and the encryption mode in the BSS information, and configuring a network terminal.
According to the second aspect of the invention, the system for WLAN cold start fast connection AP comprises: the information storage module is used for acquiring the IP address and BSS information of the target AP and storing the IP address and BSS information to the designated position of the flash; and the cold start connection module is used for reading the BSS information from the designated position in the flash, setting the BSS information to a network end, configuring an SSID and a corresponding password according to the BSS information, connecting an IP layer according to the IP address and connecting the target AP.
The system for WLAN cold start quick connection of the AP according to the embodiment of the invention at least has the following beneficial effects: after the AP is connected for the first time, the IP and BSS information corresponding to the AP are stored in the flash, and can be read from the flash when waiting for the next start, so that the processes of scanning and acquiring the IP information are omitted; the time from the starting of the device to the connection to the AP can be shortened, so that the device can be quickly connected to the AP for communication under the condition of low power consumption.
According to some embodiments of the invention, the information storage module further comprises: the Key value generation module is used for analyzing the data content of the BSS information at a network end, acquiring the SSID and the corresponding password and generating a corresponding hexadecimal Key value; and the storage processing module is used for storing the SSID, the hexadecimal Key value, the length of the BSS information and the data content of the BSS information in a flash by using a fixed structure body.
A computer-readable storage medium according to an embodiment of the third aspect of the invention has stored thereon a computer program which, when executed by a processor, implements a method according to an embodiment of the first aspect of the invention.
The computer-readable storage medium according to an embodiment of the present invention has at least the same advantageous effects as the method according to an embodiment of the first aspect of the present invention.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a schematic flow chart of a method according to an embodiment of the present invention;
FIG. 2 is a detailed schematic of a method according to an embodiment of the invention;
fig. 3 is a schematic view illustrating a processing and storing flow of BSS information in the method according to the embodiment of the present invention;
FIG. 4 is a block diagram of the modules of the system of an embodiment of the present invention.
Reference numerals:
the information storage module 100 and the cold start connection module 200; a key value generating module 110 and a storage processing module 120.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
In the description of the present invention, the meaning of a plurality of means is one or more, the meaning of a plurality of means is two or more, and more than, less than, more than, etc. are understood as excluding the present number, and more than, less than, etc. are understood as including the present number. If the first and second are described for the purpose of distinguishing technical features, they are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
Referring to fig. 1, the method of the embodiment of the present invention mainly includes: s100, when the WLAN is connected with a target AP for the first time, the IP address and BSS information of the target AP are obtained and stored to the designated position of a flash; and S200, the WLAN is cold started, BSS information is read from the designated position of the flash and is set to a network end, SSID and a corresponding password are configured according to the BSS information, connection of an IP layer is carried out through an IP address, and a target AP is connected.
Referring to fig. 2, an embodiment of the present invention includes the following steps:
1) the equipment is pressed down to a reset key, the system is cold started, and the system is initialized;
2) reading stored BSS information from a flash designated position;
3) if no BSS information exists, the BSS information is considered to be started for the first time, and step 4) is executed, otherwise, the BSS information is considered to be started quickly, and step 6) is executed;
4) carrying out normal connection, acquiring IP information and BSS information before connecting the AP, and storing the IP information and BSS information to a designated position of the flash;
5) waiting for the user to restart, and re-executing the step 1) after the user restarts;
6) and setting the read BSS information to a network terminal, configuring an SSID and a password, completing quick connection, and displaying the consumed time of the whole connection process.
Referring to fig. 3, in the embodiment of the present invention, a process of acquiring BSS information is as follows:
firstly, the BSS structure used by the currently connected AP is searched by the network side, and the length of the BSS structure is returned to the application side, so that the application side can allocate enough space for caching actual BSS information.
Then, the network side acquires the BSS structure used by the currently connected AP and copies the content of the BSS structure to the incoming buffer.
The BSS information obtained at the application end is only represented by a hexadecimal array, and can be resolved at the network end, which mainly includes: SSID, SSID length, AP channel, model intensity, beacon frame release period, DTIM period, signal intensity, low noise intensity, timestamp of a beacon frame on the TSF, snr, IE length, etc.
Then, calculating the SSID and the character string corresponding to the password to obtain a finally used hexadecimal key value;
finally, the corresponding information is saved to the designated position of the flash according to the structure shown below.
Figure BDA0002850977930000051
In the embodiment of the invention, the BSS information obtained for the first time is stored and then is set to a network end; the BSS information contains important information such as SSID, PSK, channels, signal strength and encryption modes of the AP, and after the information is set to the network end, the network end can save one-time scanning time and directly enter a connection process according to a last scanning result, so that the WLAN connection speed of the equipment and the AP is increased. After the first common connection is completed, the scanning result of the stored BSS information is directly obtained from the network end and stored as a fixed structure format to the flash so as to be used when the flash is started quickly. The BSS information formats of different APs are different, and the sequence and the length of the SSID, PSK, channel and other information are different. Therefore, when the information is stored, the information is stored in a hexadecimal array with the maximum length, and the actually used data length is recorded; the IP address during the first connection is stored, then the IP address is read during the cold start quick connection, and the connection of an IP layer is carried out by using a static IP mode; the number of frame interactions with the AP can be effectively reduced, thereby reducing the time of the entire process. The SSID and the character string corresponding to the password are calculated to obtain a Key value in hexadecimal system, and the password is stored in the hexadecimal system, so that the safety is improved; and the Key value can be used for directly configuring a network end when in cold start quick connection, so that the connection time of cold start can be further saved, and the connection is accelerated.
The system of the embodiment of the present invention, referring to fig. 4, includes: the information storage module 100 is configured to acquire an IP address and BSS information of the target AP and store the IP address and BSS information to a designated location of the flash; and the cold start connection module 200 is configured to read BSS information from the designated location in the flash, set the BSS information to the network, configure an SSID and a corresponding password according to the BSS information, perform IP layer connection through an IP address, and connect the target AP. Wherein, the information storage module 100 further includes: the Key value generation module 110 is configured to analyze data content of the BSS information at the network side, acquire an SSID and a corresponding password, and generate a corresponding hexadecimal Key value; and the storage processing module 120 is configured to store the SSID, the hexadecimal Key value, the length of the BSS information, and the data content of the BSS information in a flash by using a fixed structure.
Although specific embodiments have been described herein, those of ordinary skill in the art will recognize that many other modifications or alternative embodiments are equally within the scope of this disclosure. For example, any of the functions and/or processing capabilities described in connection with a particular device or component may be performed by any other device or component. In addition, while various illustrative implementations and architectures have been described in accordance with embodiments of the present disclosure, those of ordinary skill in the art will recognize that many other modifications of the illustrative implementations and architectures described herein are also within the scope of the present disclosure.
Certain aspects of the present disclosure are described above with reference to block diagrams and flowchart illustrations of systems, methods, systems, and/or computer program products according to example embodiments. It will be understood that one or more blocks of the block diagrams and flowchart illustrations, and combinations of blocks in the block diagrams and flowchart illustrations, respectively, can be implemented by executing computer-executable program instructions. Also, according to some embodiments, some blocks of the block diagrams and flow diagrams may not necessarily be performed in the order shown, or may not necessarily be performed in their entirety. In addition, additional components and/or operations beyond those shown in the block diagrams and flow diagrams may be present in certain embodiments.
Accordingly, blocks of the block diagrams and flowchart illustrations support combinations of means for performing the specified functions, combinations of elements or steps for performing the specified functions and program instruction means for performing the specified functions. It will also be understood that each block of the block diagrams and flowchart illustrations, and combinations of blocks in the block diagrams and flowchart illustrations, can be implemented by special purpose hardware-based computer systems that perform the specified functions, elements or steps, or combinations of special purpose hardware and computer instructions.
Program modules, applications, etc. described herein may include one or more software components, including, for example, software objects, methods, data structures, etc. Each such software component may include computer-executable instructions that, in response to execution, cause at least a portion of the functionality described herein (e.g., one or more operations of the illustrative methods described herein) to be performed.
The software components may be encoded in any of a variety of programming languages. An illustrative programming language may be a low-level programming language, such as assembly language associated with a particular hardware architecture and/or operating system platform. Software components that include assembly language instructions may need to be converted by an assembler program into executable machine code prior to execution by a hardware architecture and/or platform. Another exemplary programming language may be a higher level programming language, which may be portable across a variety of architectures. Software components that include higher level programming languages may need to be converted to an intermediate representation by an interpreter or compiler before execution. Other examples of programming languages include, but are not limited to, a macro language, a shell or command language, a job control language, a scripting language, a database query or search language, or a report writing language. In one or more exemplary embodiments, a software component containing instructions of one of the above programming language examples may be executed directly by an operating system or other software component without first being converted to another form.
The software components may be stored as files or other data storage constructs. Software components of similar types or related functionality may be stored together, such as in a particular directory, folder, or library. Software components may be static (e.g., preset or fixed) or dynamic (e.g., created or modified at execution time).
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present invention.

Claims (9)

1. A method for WLAN cold start fast AP connection, comprising the following steps:
s100, when the WLAN is connected with a target AP for the first time, the IP address and BSS information of the target AP are obtained and stored to the designated position of a flash;
and S200, performing WLAN cold start, reading the BSS information from the designated position of the flash, setting the BSS information to a network end, configuring an SSID (service set identifier) and a corresponding password according to the BSS information, performing IP layer connection through the IP address, and connecting the target AP.
2. The method for WLAN cold start fast connection AP according to claim 1, wherein the step S100 comprises:
s110, the network side detects and obtains the IP address of the target AP and stores the IP address into a flash;
and S120, acquiring the length and the data content of the BSS information of the target AP through a network terminal, and storing the BSS information in a designated position of a flash.
3. The method for WLAN cold start fast connect AP according to claim 2, wherein the step S120 further comprises:
s121, analyzing the data content of the BSS information at a network end, acquiring the SSID and the corresponding password, and generating a corresponding hexadecimal Key value;
and S122, storing the SSID, the hexadecimal Key value, the length of the BSS information and the data content of the BSS information in a flash by using a fixed structure body.
4. The method for WLAN cold start fast connection AP according to claim 2, wherein the step S200 further comprises:
s210, carrying out WLAN cold start, and judging whether BSS information exists in a designated position in the flash;
and S220, if the BSS information exists, reading the data content of the BSS information according to the length of the BSS information, and setting the BSS information to a network end.
5. The method for WLAN cold start fast connection AP according to claim 1, wherein the step S200 further comprises: if the BSS information is not obtained from the designated location of the flash, the method is normally started, and the step S100 is executed.
6. The method for WLAN cold start fast connection AP according to claim 1, wherein the step S200 further comprises: and extracting the channel, the signal strength and the encryption mode in the BSS information, and configuring a network terminal.
7. A WLAN cold start fast AP connection system, comprising:
the information storage module is used for acquiring the IP address and BSS information of the target AP and storing the IP address and BSS information to the designated position of the flash;
and the cold start connection module is used for reading the BSS information from the designated position of the flash, setting the BSS information to a network end, configuring an SSID and a corresponding password according to the BSS information, connecting an IP layer according to the IP address and connecting the target AP.
8. The system of claim 7, wherein the information storage module further comprises:
the Key value generation module is used for analyzing the data content of the BSS information at a network end, acquiring the SSID and the corresponding password and generating a corresponding hexadecimal Key value;
and the storage processing module is used for storing the SSID, the hexadecimal Key value, the length of the BSS information and the data content of the BSS information in a flash by using a fixed structure body.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method of any one of claims 1 to 6.
CN202011527233.9A 2020-12-22 2020-12-22 Method and system for rapidly connecting AP (access point) by WLAN (wireless local area network) cold start Pending CN112654075A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011527233.9A CN112654075A (en) 2020-12-22 2020-12-22 Method and system for rapidly connecting AP (access point) by WLAN (wireless local area network) cold start

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011527233.9A CN112654075A (en) 2020-12-22 2020-12-22 Method and system for rapidly connecting AP (access point) by WLAN (wireless local area network) cold start

Publications (1)

Publication Number Publication Date
CN112654075A true CN112654075A (en) 2021-04-13

Family

ID=75358914

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011527233.9A Pending CN112654075A (en) 2020-12-22 2020-12-22 Method and system for rapidly connecting AP (access point) by WLAN (wireless local area network) cold start

Country Status (1)

Country Link
CN (1) CN112654075A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113727316A (en) * 2021-07-15 2021-11-30 广州芯之联科技有限公司 Radio frequency scheduling method and device for coexistence of Wi-Fi and Bluetooth
CN114339970A (en) * 2021-12-28 2022-04-12 杭州涂鸦信息技术有限公司 Low-power-consumption WiFi networking transmission method and device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662714A (en) * 2012-04-17 2012-09-12 中标软件有限公司 Linux operation system and startup method thereof
CN107835360A (en) * 2017-10-27 2018-03-23 深圳市共进电子股份有限公司 A kind of quick start method and system of dormancy low power consumption network camera
CN109121183A (en) * 2017-06-22 2019-01-01 德州仪器公司 It is reconnected using the acceleration network of previous Connecting quantity

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662714A (en) * 2012-04-17 2012-09-12 中标软件有限公司 Linux operation system and startup method thereof
CN109121183A (en) * 2017-06-22 2019-01-01 德州仪器公司 It is reconnected using the acceleration network of previous Connecting quantity
CN107835360A (en) * 2017-10-27 2018-03-23 深圳市共进电子股份有限公司 A kind of quick start method and system of dormancy low power consumption network camera

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113727316A (en) * 2021-07-15 2021-11-30 广州芯之联科技有限公司 Radio frequency scheduling method and device for coexistence of Wi-Fi and Bluetooth
CN114339970A (en) * 2021-12-28 2022-04-12 杭州涂鸦信息技术有限公司 Low-power-consumption WiFi networking transmission method and device and storage medium

Similar Documents

Publication Publication Date Title
US7818022B2 (en) Communication apparatus and electric power control method
US20220286970A1 (en) Data sending method and apparatus, data receiving method and apparatus, first node, and second node
CN111866998A (en) Bluetooth network distribution method, equipment and storage medium
CN111200837B (en) Wi-Fi software testing system and method
CN112654075A (en) Method and system for rapidly connecting AP (access point) by WLAN (wireless local area network) cold start
CN112286667A (en) Application program control method and device, electronic equipment and medium
US20070002884A1 (en) Usage of multiple SSIDs for doing fast WLAN network discovery
JP2015523797A (en) Method and apparatus for implementing high-speed network connections
US10568156B2 (en) Communication device, non-transitory computer-readable recording medium storing computer-readable instructions for communication device, and method executed by communication device
CN101115259B (en) Communication system, transmission device and method thereof, and reception device and method thereof
US11445550B2 (en) Method of transmitting random access response message, method of receiving random access response message and devices thereof
CN103379446B (en) Multi-terminal control method and device based on wifi
CN110381603B (en) Random access method and terminal
CN105940720A (en) Method for triggering registration machine protocol interaction, access point and station point
CN110392412B (en) Network distribution method, device, equipment and medium for Internet of things equipment
CN111722938A (en) AT instruction processing method, AT instruction processing device, computer equipment and storage medium
CN110059514B (en) Data writing method, NFC tag, NFC device and storage medium
CN115835334A (en) Wi-Fi network access method and device, communication equipment and readable storage medium
CN111711954A (en) Intelligent device Wifi network distribution method, computer readable storage medium and electronic device
CN111757317B (en) Request processing method, related device and system
JP2006005630A (en) Wireless terminal, network connecting device, and method and program for searching for candidate to be switched
US20230126360A1 (en) Wifi network access method, communication method, peripheral apparatus, and storage medium
CN113727298A (en) Layer two identifier determining method and device and terminal
EP3691346B1 (en) Modem and communication method
EP3562255A1 (en) Communication device and communication control method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210413