CN106211281A - WLAN startup optimization method and device - Google Patents
WLAN startup optimization method and device Download PDFInfo
- Publication number
- CN106211281A CN106211281A CN201610743813.9A CN201610743813A CN106211281A CN 106211281 A CN106211281 A CN 106211281A CN 201610743813 A CN201610743813 A CN 201610743813A CN 106211281 A CN106211281 A CN 106211281A
- Authority
- CN
- China
- Prior art keywords
- wlan
- pmk
- access point
- wifi access
- stored
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/02—Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
- H04W84/10—Small scale networks; Flat hierarchical networks
- H04W84/12—WLAN [Wireless Local Area Networks]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
Description
技术领域technical field
本公开涉及WLAN技术领域,尤其涉及WLAN启动优化方法及装置。The present disclosure relates to the technical field of WLAN, and in particular to a method and device for WLAN start-up optimization.
背景技术Background technique
WiFi是无线宽带技术之一,近年来得到了快速的发展,随着WiFi的普及,人们的日常生活和工作中越来越离不开WiFi,同时WiFi的低价格和较高的传输速率,使其得到了快速的发展和应用。目前操作系统中进行WiFi连接的时候需要使用PMK(Pairwise MasterKey,成对主密钥)。当每次WLAN启动的时候,我们需要对之前连接过的所有WiFi接入点生成PMK并缓存起来,利用例如哈希加密算法生成PMK需要耗费比较多的时间,某些手机处理器全速计算一个WiFi接入点的PMK的时间会在80ms以上,如果有大量任务运行,可能会在120ms以上。对手机用户的统计表明,有些手机最多存储有300个以上的WiFi接入点信息。在此情况下,每次打开WiFi时生成PMK可能需要耗费36000ms以上的时间,也就是36S以上,浪费了大量用户的时间。WiFi is one of the wireless broadband technologies. It has developed rapidly in recent years. With the popularization of WiFi, people's daily life and work are increasingly inseparable from WiFi. At the same time, the low price and high transmission rate of WiFi make it obtain rapid development and application. At present, PMK (Pairwise MasterKey, Pairwise Master Key) is required for WiFi connection in the operating system. When each WLAN is started, we need to generate and cache PMKs for all previously connected WiFi access points. It takes a lot of time to generate PMKs using, for example, a hash encryption algorithm. Some mobile phone processors calculate a WiFi at full speed. The PMK time of the access point will be above 80ms, and if there are a large number of tasks running, it may be above 120ms. Statistics on mobile phone users show that some mobile phones store more than 300 WiFi access point information at most. In this case, it may take more than 36000ms to generate a PMK each time WiFi is turned on, that is, more than 36S, which wastes a lot of user time.
发明内容Contents of the invention
为克服相关技术中存在的问题,本公开实施例提供WLAN启动优化方法及装置。In order to overcome the problems existing in the related technologies, the embodiments of the present disclosure provide a WLAN startup optimization method and device.
根据本公开实施例的第一方面,提供一种WLAN启动优化方法,其特征在于,包括:According to the first aspect of the embodiments of the present disclosure, there is provided a WLAN startup optimization method, which is characterized in that it includes:
存储第一次连接WiFi接入点成功时生成的相应PMK;Store the corresponding PMK generated when the WiFi access point is successfully connected for the first time;
当WLAN启动时,加载所存储的相应PMK。When the WLAN starts up, the stored corresponding PMK is loaded.
可选地,所述存储第一次连接WiFi接入点成功时生成的相应PMK,包括:Optionally, the storing the corresponding PMK generated when the first connection to the WiFi access point is successful includes:
根据所述WiFi接入点的SSID和预设的PSK,利用SHA加密算法生成所述相应PMK。According to the SSID of the WiFi access point and the preset PSK, use the SHA encryption algorithm to generate the corresponding PMK.
可选地,不存储用于连接所述WiFi接入点的PSK。Optionally, the PSK used to connect to the WiFi access point is not stored.
可选地,所述方法还包括:Optionally, the method also includes:
利用所述相应PMK连接到所述WiFi接入点。Connect to the WiFi access point using the corresponding PMK.
根据本公开实施例的第二方面,提供一种WLAN启动优化装置,包括:According to a second aspect of an embodiment of the present disclosure, there is provided a WLAN startup optimization device, including:
存储模块,配置为存储第一次连接WiFi接入点成功时生成的相应PMK;The storage module is configured to store the corresponding PMK generated when the first connection to the WiFi access point is successful;
加载模块,被配置为当WLAN启动时,加载所存储的相应PMK。The loading module is configured to load the stored corresponding PMK when the WLAN is started.
可选地,所述存储存储模块还被配置为:Optionally, the storage storage module is also configured to:
根据所述WiFi接入点的SSID和预设的PSK,利用SHA加密算法生成所述相应PMK。According to the SSID of the WiFi access point and the preset PSK, use the SHA encryption algorithm to generate the corresponding PMK.
可选地,不存储用于连接所述WiFi接入点的PSK。Optionally, the PSK used to connect to the WiFi access point is not stored.
可选地,所述装置还包括:Optionally, the device also includes:
连接模块,被配置为利用所述相应PMK连接到所述WiFi接入点。A connection module configured to connect to the WiFi access point by using the corresponding PMK.
根据本公开实施例的第三方面,提供一种WLAN启动优化装置,其特征在于,包括:According to a third aspect of the embodiments of the present disclosure, there is provided a WLAN startup optimization device, which is characterized in that it includes:
处理器;processor;
用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;
其中,所述处理器被配置为:Wherein, the processor is configured as:
存储第一次连接WiFi接入点成功时生成的相应PMK;Store the corresponding PMK generated when the WiFi access point is successfully connected for the first time;
当WLAN启动时,加载所存储的相应PMK。When the WLAN starts up, the stored corresponding PMK is loaded.
本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
本公开实施例提供了WLAN启动优化方法及装置,通过存储第一次连接WiFi接入点成功时生成的相应PMK;当WLAN启动时,加载所存储的相应PMK,使得在在系统中WLAN启动时,不需要为已经记录过的WiFi接入点重新生成任何一个PMK,只需要读取已存储的PMK即可。因此,提高了用户打开WLAN的速度,节省了用户时间,提高了效率,改善了用户体验。Embodiments of the present disclosure provide a WLAN startup optimization method and device, by storing the corresponding PMK generated when the first connection to a WiFi access point succeeds; , there is no need to regenerate any PMK for the recorded WiFi access point, just read the stored PMK. Therefore, the speed for the user to open the WLAN is increased, the time of the user is saved, the efficiency is improved, and the user experience is improved.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.
图1是根据本公开一示例性实施例示出的WLAN启动优化方法的流程图;FIG. 1 is a flow chart of a WLAN startup optimization method shown according to an exemplary embodiment of the present disclosure;
图2是根据本公开另一示例性实施例示出的WLAN启动优化方法的流程图;FIG. 2 is a flow chart of a WLAN startup optimization method shown according to another exemplary embodiment of the present disclosure;
图3是根据本公开一示例性实施例示出的一种WLAN启动优化装置的框图;Fig. 3 is a block diagram showing a device for optimizing WLAN startup according to an exemplary embodiment of the present disclosure;
图4是根据本公开另一示例性实施例示出的一种WLAN启动优化装置的框图;Fig. 4 is a block diagram of a device for optimizing WLAN startup according to another exemplary embodiment of the present disclosure;
图5是根据本公开一示例性实施例示出的一种WLAN启动优化装置的框图;Fig. 5 is a block diagram of a WLAN startup optimization device shown according to an exemplary embodiment of the present disclosure;
图6是根据本公开另一示例性实施例示出的一种WLAN启动优化装置的框图。Fig. 6 is a block diagram showing a device for optimizing WLAN startup according to another exemplary embodiment of the present disclosure.
具体实施方式detailed description
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.
本公开实施例提供了WLAN启动优化技术,通过存储第一次连接WiFi接入点成功时生成的相应PMK;当WLAN启动时,加载所存储的相应PMK,使得在在系统中WLAN启动时,不需要为已经记录过的WiFi接入点重新生成任何一个PMK,只需要读取已存储的PMK即可。因此,提高了用户打开WLAN的速度,节省了用户时间,提高了效率,改善了用户体验。The embodiment of the present disclosure provides a WLAN startup optimization technology, by storing the corresponding PMK generated when the first connection to the WiFi access point is successful; when the WLAN is started, the stored corresponding PMK is loaded, so that when the WLAN starts in the system, no To regenerate any PMK for a recorded WiFi access point, just read the stored PMK. Therefore, the speed for the user to open the WLAN is increased, the time of the user is saved, the efficiency is improved, and the user experience is improved.
图1是根据本公开一示例性实施例示出的WLAN启动优化方法的流程图,该方法包括以下步骤S110和S120:FIG. 1 is a flowchart of a WLAN startup optimization method shown according to an exemplary embodiment of the present disclosure, the method includes the following steps S110 and S120:
在步骤S110中,存储第一次连接WiFi接入点成功时生成的相应PMK。In step S110, the corresponding PMK generated when the first connection to the WiFi access point is successful is stored.
在一个实施例中,不存储用于连接WiFi接入点的PSK(Pre-Shared Key,预共享密钥)。例如,当在移动终端中WLAN启动时,在用户第一次连接某个AP成功时生成PMK之后,直接将PMK存储起来,不再存储PSK。当前存储PSK的方式,都是以明文的方式存储,一旦配置文件或者数据库被盗取,用户的密码将会被泄漏。本公开的WLAN启动优化技术存储PMK,由于PMK是经过SHA(The Secure Hash Algorithm,安全散列算法)加密之后的内容,是不可逆的数据,因此,能够避免在系统中保存PSK的ASCII码明文密码,从而提高了WLAN密码存储的安全性。In one embodiment, the PSK (Pre-Shared Key, pre-shared key) used to connect to the WiFi access point is not stored. For example, when the WLAN is started in the mobile terminal, after the PMK is generated when the user successfully connects to an AP for the first time, the PMK is directly stored instead of the PSK. The current way of storing PSK is to store it in plain text. Once the configuration file or database is stolen, the user's password will be leaked. The WLAN startup optimization technology of the present disclosure stores PMK, because PMK is the content after SHA (The Secure Hash Algorithm, secure hash algorithm) encryption, is irreversible data, therefore, can avoid the ASCII code plaintext password of PSK being preserved in the system , thereby improving the security of WLAN password storage.
在一个实施例中,可以在何类型的易失性或非易失性存储设备或者它们的组合中存储PMK。例如,根据需要,可以在静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘中存储PMK。In one embodiment, what type of volatile or non-volatile storage device or combination thereof can store the PMK. For example, according to needs, it can be stored in Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), The PMK is stored in read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
在一个实施例中,步骤S110中包括:根据WiFi接入点的SSID(Service SetIdentifier,服务集标识符)和预设的PSK,利用SHA加密算法生成相应PMK。In one embodiment, step S110 includes: according to the SSID (Service SetIdentifier, Service Set Identifier) of the WiFi access point and the preset PSK, using the SHA encryption algorithm to generate a corresponding PMK.
在根据本公开实施例的WLAN启动优化方法中,通过根据WiFi接入点的SSID和预设的PSK,利用SHA加密算法生成相应PMK,并且存储PMK加密字符串,能够提高WLAN密码存储的安全性。In the WLAN startup optimization method according to the embodiment of the present disclosure, by using the SHA encryption algorithm to generate the corresponding PMK according to the SSID of the WiFi access point and the preset PSK, and storing the PMK encrypted string, the security of WLAN password storage can be improved .
在步骤S120中,当WLAN启动时,加载所存储的相应PMK。In step S120, when the WLAN is started, the stored corresponding PMK is loaded.
在一个实施例中,当在移动终端中WLAN启动时,加载所记录的各个WiFi接入点的相应PMK。例如,在已经存储第一次连接WiFi接入点成功时生成的相应PMK的情况下,每次WLAN启动的时候,不需要再为已经记录过的WiFi接入点重新生成任何一个PMK,只需要读取已存储的PMK即可。通过这种方式,加载每个PMK的时间可以缩短至0.1ms,在此情况下,加载300个热点,只需要36ms,极大的缩短了WLAN的启动时间。In one embodiment, when the WLAN is started in the mobile terminal, the recorded corresponding PMK of each WiFi access point is loaded. For example, if the corresponding PMK generated when the first connection to the WiFi access point is successfully stored, it is not necessary to regenerate any PMK for the recorded WiFi access point every time the WLAN is started. Just read the stored PMK. In this way, the time to load each PMK can be shortened to 0.1ms. In this case, it only takes 36ms to load 300 hotspots, which greatly shortens the startup time of WLAN.
可以理解,根据本公开实施例的WLAN启动优化技术可以应用于移动终端、可穿戴设备、台式计算机、笔记本计算机等各种可以连接WLAN的设备。It can be understood that the WLAN startup optimization technology according to the embodiments of the present disclosure can be applied to various devices that can be connected to WLAN, such as mobile terminals, wearable devices, desktop computers, and notebook computers.
根据本公开实施例的WLAN启动优化方法,通过存储第一次连接WiFi接入点成功时生成的相应PMK;当WLAN启动时,加载所存储的相应PMK,使得在在系统中WLAN启动时,不需要为已经记录过的WiFi接入点重新生成任何一个PMK,只需要读取已存储的PMK即可。因此,提高了用户打开WLAN的速度,节省了用户时间,提高了效率,改善了用户体验。According to the WLAN startup optimization method of the embodiment of the present disclosure, by storing the corresponding PMK generated when the WiFi access point is successfully connected for the first time; when the WLAN is started, the stored corresponding PMK is loaded, so that when the WLAN starts in the system, no To regenerate any PMK for a recorded WiFi access point, just read the stored PMK. Therefore, the speed for the user to open the WLAN is increased, the time of the user is saved, the efficiency is improved, and the user experience is improved.
图2是根据本公开另一示例性实施例示出的WLAN启动优化方法的流程图,除了包括图1中的步骤S110和S120之外,还包括步骤S230。Fig. 2 is a flow chart of a WLAN startup optimization method according to another exemplary embodiment of the present disclosure, which includes step S230 in addition to steps S110 and S120 in Fig. 1 .
在步骤S230中,利用相应PMK连接到WiFi接入点。In step S230, use the corresponding PMK to connect to the WiFi access point.
在一个实施例中,利用系统中存储的相应PMK,连接到WiFi接入点。In one embodiment, a connection to a WiFi access point is made using the corresponding PMK stored in the system.
根据本公开实施例的WLAN启动优化方法,通过利用系统中存储的相应PMK,连接到WiFi接入点,使得在系统连接已经存储的WiFi接入点时,不需要重新生成PMK来连接WiFi接入点,只需要利用已存储的PMK进行连接即可。因此,提高了用户连接WiFi接入点的速度,节省了用户时间,提高了效率,改善了用户体验。According to the WLAN startup optimization method of the embodiment of the present disclosure, by using the corresponding PMK stored in the system to connect to the WiFi access point, so that when the system connects to the stored WiFi access point, there is no need to regenerate the PMK to connect to the WiFi access point. Point, just use the stored PMK to connect. Therefore, the speed for the user to connect to the WiFi access point is increased, the time of the user is saved, the efficiency is improved, and the user experience is improved.
图3是根据本公开一示例性实施例示出的WLAN启动优化装置的框图,该装置包括以下存储模块310和加载模块320。Fig. 3 is a block diagram of a WLAN startup optimization device according to an exemplary embodiment of the present disclosure, and the device includes a storage module 310 and a loading module 320 as follows.
存储模块310被配置为存储第一次连接WiFi接入点成功时生成的相应PMK。The storage module 310 is configured to store the corresponding PMK generated when the WiFi access point is successfully connected for the first time.
在一个实施例中,不存储用于连接WiFi接入点的PSK(Pre-Shared Key,预共享密钥)。例如,当在移动终端中WLAN启动时,在用户第一次连接某个AP成功时生成PMK之后,直接将PMK存储起来,不再存储PSK。当前存储PSK的方式,都是以明文的方式存储,一旦配置文件或者数据库被盗取,用户的密码将会被泄漏。本公开的WLAN启动优化技术存储PMK,由于PMK是经过SHA(The Secure Hash Algorithm,安全散列算法)加密之后的内容,是不可逆的数据,因此,能够避免在系统中保存PSK的ASCII码明文密码,从而提高了WLAN密码存储的安全性。In one embodiment, the PSK (Pre-Shared Key, pre-shared key) used to connect to the WiFi access point is not stored. For example, when the WLAN is started in the mobile terminal, after the PMK is generated when the user successfully connects to an AP for the first time, the PMK is directly stored instead of the PSK. The current way of storing PSK is to store it in plain text. Once the configuration file or database is stolen, the user's password will be leaked. The WLAN startup optimization technology of the present disclosure stores PMK, because PMK is the content after SHA (The Secure Hash Algorithm, secure hash algorithm) encryption, is irreversible data, therefore, can avoid the ASCII code plaintext password of PSK being preserved in the system , thereby improving the security of WLAN password storage.
在一个实施例中,可以在何类型的易失性或非易失性存储设备或者它们的组合中存储PMK。例如,根据需要,可以在静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘中存储PMK。In one embodiment, what type of volatile or non-volatile storage device or combination thereof can store the PMK. For example, according to needs, it can be stored in Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), The PMK is stored in read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
在一个实施例中,存储模块310还被配置为:根据WiFi接入点的SSID(Service SetIdentifier,服务集标识符)和预设的PSK,利用SHA加密算法生成相应PMK。In one embodiment, the storage module 310 is further configured to: generate a corresponding PMK by using the SHA encryption algorithm according to the SSID (Service SetIdentifier, Service Set Identifier) of the WiFi access point and the preset PSK.
在根据本公开实施例的WLAN启动优化装置中,通过根据WiFi接入点的SSID和预设的PSK,利用SHA加密算法生成相应PMK,并且存储PMK加密字符串,能够提高WLAN密码存储的安全性。In the WLAN startup optimization device according to the embodiment of the present disclosure, by using the SHA encryption algorithm to generate the corresponding PMK according to the SSID of the WiFi access point and the preset PSK, and storing the PMK encrypted string, the security of WLAN password storage can be improved .
加载模块320被配置为当WLAN启动时,加载所存储的相应PMK。The loading module 320 is configured to load the corresponding stored PMK when the WLAN starts up.
在一个实施例中,当在移动终端中WLAN启动时,加载所记录的各个WiFi接入点的相应PMK。例如,在已经存储第一次连接WiFi接入点成功时生成的相应PMK的情况下,每次WLAN启动的时候,不需要再为已经记录过的WiFi接入点重新生成任何一个PMK,只需要读取已存储的PMK即可。通过这种方式,加载每个PMK的时间可以缩短至0.1ms,在此情况下,加载300个热点,只需要36ms,极大的缩短了WLAN的启动时间。In one embodiment, when the WLAN is started in the mobile terminal, the recorded corresponding PMK of each WiFi access point is loaded. For example, if the corresponding PMK generated when the first connection to the WiFi access point is successfully stored, it is not necessary to regenerate any PMK for the recorded WiFi access point every time the WLAN is started. Just read the stored PMK. In this way, the time to load each PMK can be shortened to 0.1ms. In this case, it only takes 36ms to load 300 hotspots, which greatly shortens the startup time of WLAN.
可以理解,根据本公开实施例的WLAN启动优化技术可以应用于移动终端、可穿戴设备、台式计算机、笔记本计算机等各种可以连接WLAN的设备。It can be understood that the WLAN startup optimization technology according to the embodiments of the present disclosure can be applied to various devices that can be connected to WLAN, such as mobile terminals, wearable devices, desktop computers, and notebook computers.
根据本公开实施例的WLAN启动优化装置,通过存储模块,被配置为存储第一次连接WiFi接入点成功时生成的相应PMK;加载模块,被配置为当WLAN启动时,加载所存储的相应PMK,使得在在系统中WLAN启动时,不需要为已经记录过的WiFi接入点重新生成任何一个PMK,只需要读取已存储的PMK即可。因此,提高了用户打开WLAN的速度,节省了用户时间,提高了效率,改善了用户体验。The WLAN startup optimization device according to the embodiment of the present disclosure is configured to store the corresponding PMK generated when the first connection to the WiFi access point is successful through the storage module; the loading module is configured to load the stored corresponding PMK when the WLAN starts. PMK, so that when the WLAN starts in the system, it is not necessary to regenerate any PMK for the recorded WiFi access point, and only need to read the stored PMK. Therefore, the speed for the user to open the WLAN is increased, the time of the user is saved, the efficiency is improved, and the user experience is improved.
图4是根据本公开另一示例性实施例示出的一种WLAN启动优化装置的框图,除了包括图3中的存储模块310和加载模块320之外,还包括连接模块430。Fig. 4 is a block diagram of a WLAN boot optimization device according to another exemplary embodiment of the present disclosure, which includes a connection module 430 in addition to the storage module 310 and the loading module 320 in Fig. 3 .
连接模块430被配置为利用相应PMK连接到WiFi接入点。The connection module 430 is configured to connect to a WiFi access point using a corresponding PMK.
在一个实施例中,利用系统中存储的相应PMK,连接到WiFi接入点。In one embodiment, a connection to a WiFi access point is made using the corresponding PMK stored in the system.
根据本公开实施例的WLAN启动优化装置,通过连接模块,被配置为利用系统中存储的相应PMK,连接到WiFi接入点,使得在系统连接已经存储的WiFi接入点时,不需要重新生成PMK来连接WiFi接入点,只需要利用已存储的PMK进行连接即可。因此,提高了用户连接WiFi接入点的速度,节省了用户时间,提高了效率,改善了用户体验。The WLAN startup optimization device according to the embodiment of the present disclosure is configured to use the corresponding PMK stored in the system to connect to the WiFi access point through the connection module, so that when the system connects to the stored WiFi access point, it does not need to regenerate PMK to connect to the WiFi access point, you only need to use the stored PMK to connect. Therefore, the speed for the user to connect to the WiFi access point is increased, the time of the user is saved, the efficiency is improved, and the user experience is improved.
根据本公开的一实施例,提供一种WLAN启动优化装置,其特征在于,包括:According to an embodiment of the present disclosure, a WLAN startup optimization device is provided, which is characterized in that it includes:
处理器;processor;
用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;
其中,处理器被配置为:where the processor is configured as:
存储第一次连接WiFi接入点成功时生成的相应PMK;Store the corresponding PMK generated when the WiFi access point is successfully connected for the first time;
当WLAN启动时,加载所存储的相应PMK。When the WLAN starts up, the stored corresponding PMK is loaded.
图5是根据本公开一示例性实施例示出的一种WLAN启动优化装置的框图。例如,WLAN启动优化装置1000可以是应用程序,也可以是移动设备,如移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 5 is a block diagram showing a device for optimizing WLAN startup according to an exemplary embodiment of the present disclosure. For example, the WLAN startup optimization apparatus 1000 may be an application program, or a mobile device, such as a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
参照图5,装置1000可以包括以下一个或多个组件:处理组件1002,存储器1004,电源组件1006,多媒体组件1008,音频组件1010,输入/输出(I/O)的接口1012,传感器组件1014,以及通信组件1016。5, device 1000 may include one or more of the following components: processing component 1002, memory 1004, power supply component 1006, multimedia component 1008, audio component 1010, input/output (I/O) interface 1012, sensor component 1014, and communication component 1016.
处理组件1002通常控制装置1000的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件1002可以包括一个或多个处理器1020来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件1002可以包括一个或多个模块,便于处理组件1002和其他组件之间的交互。例如,处理组件1002可以包括多媒体模块,以方便多媒体组件1008和处理组件1002之间的交互。The processing component 1002 generally controls the overall operations of the device 1000, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1002 may include one or more processors 1020 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 1002 may include one or more modules that facilitate interaction between processing component 1002 and other components. For example, processing component 1002 may include a multimedia module to facilitate interaction between multimedia component 1008 and processing component 1002 .
存储器1004被配置为存储各种类型的数据以支持在装置1000的操作。这些数据的示例包括用于在装置1000上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器1004可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 1004 is configured to store various types of data to support operations at the device 1000 . Examples of such data include instructions for any application or method operating on device 1000, contact data, phonebook data, messages, pictures, videos, and the like. The memory 1004 can be realized by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
电源组件1006为装置1000的各种组件提供电力。电源组件1006可以包括电源管理系统,一个或多个电源,及其他与为装置1000生成、管理和分配电力相关联的组件。The power supply component 1006 provides power to various components of the device 1000 . Power components 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 1000 .
多媒体组件1008包括在所述装置1000和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件1008包括一个前置摄像头和/或后置摄像头。当装置1000处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 1008 includes a screen that provides an output interface between the device 1000 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 1008 includes a front camera and/or a rear camera. When the device 1000 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.
音频组件1010被配置为输出和/或输入音频信号。例如,音频组件1010包括一个麦克风(MIC),当装置1000处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器1004或经由通信组件1016发送。在一些实施例中,音频组件1010还包括一个扬声器,用于输出音频信号。The audio component 1010 is configured to output and/or input audio signals. For example, the audio component 1010 includes a microphone (MIC), which is configured to receive external audio signals when the device 1000 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 1004 or sent via communication component 1016 . In some embodiments, the audio component 1010 also includes a speaker for outputting audio signals.
I/O接口1012为处理组件1002和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 1012 provides an interface between the processing component 1002 and a peripheral interface module, which may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.
传感器组件1014包括一个或多个传感器,用于为装置1000提供各个方面的状态评估。例如,传感器组件1014可以检测到装置1000的打开/关闭状态,组件的相对定位,例如所述组件为装置1000的显示器和小键盘,传感器组件1014还可以检测装置1000或装置1000一个组件的位置改变,用户与装置1000接触的存在或不存在,装置1000方位或加速/减速和装置1000的温度变化。传感器组件1014可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件1014还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件1014还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 1014 includes one or more sensors for providing status assessments of various aspects of device 1000 . For example, the sensor component 1014 can detect the open/closed state of the device 1000, the relative positioning of components, such as the display and keypad of the device 1000, and the sensor component 1014 can also detect a change in the position of the device 1000 or a component of the device 1000 , the presence or absence of user contact with the device 1000 , the device 1000 orientation or acceleration/deceleration and the temperature change of the device 1000 . The sensor assembly 1014 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 1014 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 1014 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
通信组件1016被配置为便于装置1000和其他设备之间有线或无线方式的通信。装置1000可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件1016经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件1016还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 1016 is configured to facilitate wired or wireless communication between the apparatus 1000 and other devices. The device 1000 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1016 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1016 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,装置1000可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 1000 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the methods described above.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器1004,上述指令可由装置1000的处理器1020执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 1004 including instructions, which can be executed by the processor 1020 of the device 1000 to implement the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得装置能够执行一种WLAN启动优化方法,该方法包括:A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the mobile terminal, the device can perform a WLAN startup optimization method, the method comprising:
存储第一次连接WiFi接入点成功时生成的相应PMK;Store the corresponding PMK generated when the WiFi access point is successfully connected for the first time;
当WLAN启动时,加载所存储的相应PMK。When the WLAN starts up, the stored corresponding PMK is loaded.
图6是根据本公开另一示例性实施例示出的一种WLAN启动优化装置的框图。例如,装置1100可以被提供为一服务器。参照图6,装置1100包括处理组件1122,其进一步包括一个或多个处理器,以及由存储器1132所代表的存储器资源,用于存储可由处理组件1122执行的指令,例如应用程序。存储器1132中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件1122被配置为执行指令,以执行上述方法。Fig. 6 is a block diagram showing a device for optimizing WLAN startup according to another exemplary embodiment of the present disclosure. For example, the apparatus 1100 may be provided as a server. Referring to FIG. 6 , apparatus 1100 includes processing component 1122 , which further includes one or more processors, and a memory resource represented by memory 1132 for storing instructions executable by processing component 1122 , such as application programs. The application program stored in memory 1132 may include one or more modules each corresponding to a set of instructions. In addition, the processing component 1122 is configured to execute instructions to perform the above method.
装置1100还可以包括一个电源组件1126被配置为执行装置1100的电源管理,一个有线或无线网络接口1150被配置为将装置1100连接到网络,和一个输入输出(I/O)接口1158。装置1100可以操作基于存储在存储器1132的操作系统,例如Windows ServerTM,MacOS XTM,UnixTM,LinuxTM,FreeBSDTM或类似。Device 1100 may also include a power component 1126 configured to perform power management of device 1100 , a wired or wireless network interface 1150 configured to connect device 1100 to a network, and an input-output (I/O) interface 1158 . The apparatus 1100 can operate based on an operating system stored in the memory 1132, such as Windows Server™, MacOS X™, Unix™, Linux™, FreeBSD™ or the like.
一种非临时性计算机可读存储介质,当所述存储介质中的指令由服务器的处理器执行时,使得服务器能够执行一种WLAN启动优化方法,该方法包括:A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of the server, the server can perform a WLAN startup optimization method, the method comprising:
存储第一次连接WiFi接入点成功时生成的相应PMK;Store the corresponding PMK generated when the WiFi access point is successfully connected for the first time;
当WLAN启动时,加载所存储的相应PMK。When the WLAN starts up, the stored corresponding PMK is loaded.
本领域技术人员在考虑说明书及实践这里公开的公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610743813.9A CN106211281A (en) | 2016-08-26 | 2016-08-26 | WLAN startup optimization method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610743813.9A CN106211281A (en) | 2016-08-26 | 2016-08-26 | WLAN startup optimization method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106211281A true CN106211281A (en) | 2016-12-07 |
Family
ID=57526187
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610743813.9A Pending CN106211281A (en) | 2016-08-26 | 2016-08-26 | WLAN startup optimization method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106211281A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107635228A (en) * | 2017-09-11 | 2018-01-26 | 深圳市瑞科慧联科技有限公司 | A kind of equipment networking method based on PMK |
CN108966214A (en) * | 2018-07-27 | 2018-12-07 | 全球能源互联网研究院有限公司 | Authentication method, the wireless network safety communication method and device of wireless network |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103391543A (en) * | 2012-05-07 | 2013-11-13 | 中兴通讯股份有限公司 | Method and device for achieving roaming switch |
CN103402201A (en) * | 2013-08-01 | 2013-11-20 | 广州大学 | Pre-authentication-based authentication method for WiFi-WiMAX (wireless fidelity-worldwide interoperability for microwave access) heterogeneous wireless network |
CN104041098A (en) * | 2012-01-11 | 2014-09-10 | 交互数字专利控股公司 | Method and apparatus for accelerated link setup between STA and access point of IEEE 802.11 network |
CN104113895A (en) * | 2014-07-21 | 2014-10-22 | 上海庆科信息技术有限公司 | Wi-Fi (wireless fidelity) network connecting method and device |
US20160183084A1 (en) * | 2014-12-22 | 2016-06-23 | Cisco Technology, Inc. | Predictive Pairwise Master Key Caching |
-
2016
- 2016-08-26 CN CN201610743813.9A patent/CN106211281A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104041098A (en) * | 2012-01-11 | 2014-09-10 | 交互数字专利控股公司 | Method and apparatus for accelerated link setup between STA and access point of IEEE 802.11 network |
CN103391543A (en) * | 2012-05-07 | 2013-11-13 | 中兴通讯股份有限公司 | Method and device for achieving roaming switch |
CN103402201A (en) * | 2013-08-01 | 2013-11-20 | 广州大学 | Pre-authentication-based authentication method for WiFi-WiMAX (wireless fidelity-worldwide interoperability for microwave access) heterogeneous wireless network |
CN104113895A (en) * | 2014-07-21 | 2014-10-22 | 上海庆科信息技术有限公司 | Wi-Fi (wireless fidelity) network connecting method and device |
US20160183084A1 (en) * | 2014-12-22 | 2016-06-23 | Cisco Technology, Inc. | Predictive Pairwise Master Key Caching |
Non-Patent Citations (1)
Title |
---|
王继林,苏万力: "《信息安全导论》", 31 August 2015, 西安电子科技大学出版社 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107635228A (en) * | 2017-09-11 | 2018-01-26 | 深圳市瑞科慧联科技有限公司 | A kind of equipment networking method based on PMK |
CN108966214A (en) * | 2018-07-27 | 2018-12-07 | 全球能源互联网研究院有限公司 | Authentication method, the wireless network safety communication method and device of wireless network |
CN108966214B (en) * | 2018-07-27 | 2021-09-28 | 北京智芯微电子科技有限公司 | Authentication method of wireless network, and secure communication method and system of wireless network |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109146470B (en) | Method and device for generating payment code | |
CN105656948A (en) | Account login method and device | |
CN106375096B (en) | short message verification method and device | |
US10313870B2 (en) | Identity verification method and apparatus, and storage medium | |
CN107094094B (en) | Application networking method and device and terminal | |
CN106535191A (en) | Network connection establishing method and device | |
CN108702607A (en) | A multi-device wireless connection method and device | |
CN106909827A (en) | Using account management method and device | |
CN107147815B (en) | Taxi-based call processing method and device | |
CN106446653A (en) | Application authority management method and device and electronic equipment | |
CN105677513A (en) | Method and device for restoring backup data | |
CN107748991A (en) | Account safety management method and device | |
CN107423146A (en) | The method, apparatus and system that control application program is mutually called | |
CN106778225A (en) | The method and apparatus for processing password | |
CN107168821A (en) | Data back up method and device | |
CN106789070A (en) | The decryption method of data, device and terminal | |
CN106600768A (en) | Intelligent door lock authentication method, device and terminal | |
CN105979062A (en) | Method and device for processing communication event | |
CN106385470A (en) | Information push method and device | |
CN106611112A (en) | Application program safe processing method, device and equipment | |
CN106453257A (en) | Security verification method, apparatus and system, terminal device and network server | |
CN115706966A (en) | Method and device for connecting network and readable storage medium | |
CN106211281A (en) | WLAN startup optimization method and device | |
CN106778198A (en) | Perform the safety certifying method and device of operation | |
CN106454126A (en) | Photographing method and apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161207 |
|
RJ01 | Rejection of invention patent application after publication |