一种无线接入方法及应用该方法的电子设备技术领域[0001] 本发明涉及通信技术领域,特别是涉及一种无线接入方法及应用该方法的电子设备。 A wireless access method of an electronic device and application of this method Technical Field [0001] The present invention relates to communication technologies, and particularly relates to a wireless access method of an electronic device and the method of application. 背景技术[0002] W1-Fi是一种可以将个人电脑、手持设备(如PDA、手机)等终端以无线方式与网络相连接的技术,使得终端可以摆脱网线的限制,大大方便了终端上网。 BACKGROUND [0002] W1-Fi is a possible technical personal computers, handheld devices (e.g., PDA, cell phone) and other terminals wirelessly connected to the network, so that the terminal can get rid of the limitation of cable, which greatly facilitates Internet terminal. [0003] 但目前终端设备上的W1-Fi开启后的接入策略为:终端被唤醒后就尝试搜索接入点,并且如果当前未搜索到可接入点,则每隔一定时间,如20秒,再次进行搜索,直到搜索到可接入点或设备休眠为止。 [0003] But currently W1-Fi on the terminal device access policy is open: after the terminal is woken up try to search for an access point, and if the current access point may not searched, then at regular intervals, such as 20 second, the search is performed again, until the search until the device may be an access point, or dormant. 这样在搜索接入点时,不仅搜索成功率较低,而且每次进行搜索还会给终端设备带来额外的电量损耗,以手机为例,这种搜索接入点的方式会给手机带来IOmA的电量消耗。 So that when searching for an access point, not only search success rate is low, and each search will also bring additional equipment to the terminal power consumption, mobile phone, for example, the search access points will bring mobile phones IOmA power consumption. 发明内容[0004] 有鉴于此,本发明实施例提供一种无线接入方法及应用该方法的电子设备,在无线接入时,不仅搜索成功率高,而且还可以降低终端设备的电量损耗。 [0004] In view of this, embodiments provide a wireless access method and an electronic apparatus applying the method of the present invention, when the radio access, not only the search success rate, but also reduce the power loss of the terminal device. [0005] 为了实现上述目的,本发明实施例提供的技术方案如下:[0006] 一种无线接入方法,应用于一电子设备,包括:[0007]当所述终端的无线传输模块开启时,获取所述终端的当前位置信息;[0008] 依据所述当前位置信息,在预先建立的位置信息和无线接入点的对应关系集合中,查找与所述当前位置信息对应的无线接入点,获得查找结果,所述对应关系集合包括至少一条位置信息和无线接入点的对应关系;[0009] 当所述查找结果表明存在与所述当前位置信息对应的无线接入点时,发起建立所述终端与该无线接入点之间的无线连接。 [0005] To achieve the above object, the technical solution provided by the embodiment of the present invention is as follows: [0006] A wireless access method applied to an electronic device, comprising: [0007] When the radio transmission module of the terminal opening, acquiring current location information of the terminal; [0008] according to the current position information, the corresponding set of pre-established relationship between the location information and wireless access points, and to find the current location information corresponding to a wireless access point, obtaining search results, the corresponding relationship comprises the corresponding relationship at least one set of location information and wireless access point; [0009] when indicates the presence of the search result information corresponding to the current position of the wireless access point, initiates the establishment of the said terminal connected to the wireless connection between the wireless access point. [0010] 优选地,当所述终端的无线传输模块开启时,获取所述终端的当前位置信息,具体包括:[0011] 当所述终端的无线传输模块开启时,判断所述终端是否处于无线接入点搜索/显示界面;[0012] 当所述终端未处于无线接入点搜索/显示界面时,对所述终端进行定位,获取所述终端的当前位置信息。 [0010] Preferably, the wireless transmission module when the terminal is turned on, acquiring current location information of the terminal comprises: [0011] When the radio transmission module of the terminal is turned on, determining whether the wireless terminal is in an access point search / display interface; [0012] when the terminal is not in the wireless access point search / display interface, the positioning terminal acquires the current position information of the terminal. [0013] 优选地,利用基站定位方式对所述终端进行定位。 [0013] Preferably, the positioning terminal using the base station positioning. [0014] 优选地,预先建立的位置信息和无线接入点的对应关系集合,具体包括:[0015] 当所述终端的无线传输模块开启后且处于无线接入点搜索/显示界面时,搜索所述终端的所在位置的全部接入点;[0016] 当存在无线接入点时,并建立所述终端的所在位置与该无线接入点之间的对应关系O[0017] 优选地,当存在无线接入点后,还包括:[0018] 建立所述终端与该无线接入点之间的无线连接;[0019] 按照预设时间间隔多次获取所述终端的位置信息,并判断所述终端的位置是否改变;[0020] 当所述终端的位置未发生改变时,判断所述终端与所选择的接入点之间的无线连接是否断开连接;[0021] 当所述终端与所选择的接入点之间的无线连接未断开连接,建立所述终端的位置信息与该无线接入点的对应关系。 [0014] Preferably, the position information of the wireless access point and a correspondence relationship of a set of pre-established, comprises: [0015] When the radio transmission module of the terminal is turned on and a wireless access point search / display interface, the search all of the access point location of the terminal; [0016] when there is a wireless access point, and establishing a correspondence between a location of the terminal with the wireless access point O [0017] preferably, when after the presence of the wireless access point, further comprising: [0018] establishing a wireless connection between the terminal and the wireless access point; [0019] acquiring location information of the terminal a plurality of times according to a preset time interval, and determines whether the whether to change the position of said terminal; [0020] when the position of the terminal is not changed, the wireless connection between the terminal and determining the selected access point connection is disconnected; [0021] when the terminal and between the selected wireless access point is connected is not disconnected, the terminal establishing the correspondence between the position information of the wireless access point. [0022] 优选地,该方法还包括:[0023] 当所述查找结果表明不存在与所述当前位置信息对应的无线接入点时,搜索所述当前位置的全部无线接入点,并且发起建立所述终端与搜索结果中的无线接入点之间的无线连接。 [0022] Preferably, the method further comprises: [0023] When the search result indicates that the current location information corresponding to the wireless access point does not exist, the search of all the current position of the wireless access point, and initiates establishing a wireless connection between the terminal and the search results of the wireless access point. [0024] 一种电子设备,包括:[0025] 位置信息获取单元,用于获取所述终端的位置信息;[0026] 无线接入点查找单元,依据所述当前位置信息,在预先建立的位置信息和无线接入点的对应关系集合中,查找与所述当前位置信息对应的无线接入点,获得查找结果;[0027] 无线连接发起单元,用于当所述查找结果表明存在与所述当前位置信息对应的无线接入点时,发起建立所述终端与该无线接入点之间的无线连接。 [0024] An electronic device, comprising: [0025] the position information obtaining unit configured to obtain position information of the terminal; [0026] wireless access point search unit, according to the current position information, pre-established position in set corresponding relationship between information and the wireless access point, a wireless access point to find the information corresponding to the current location, obtain search results; [0027] initiating a wireless connection means for, when the search result indicates the presence of the when the current location information corresponding to the wireless access point, initiates the establishment of a wireless connection between the terminal and the wireless access point. [0028] 优选地,所述位置信息获取单元:[0029] 无线接入点搜索/显示界面判断单元,用于当所述终端的无线传输模块开启时,判断所述终端是否处于无线接入点搜索/显示界面;[0030] 基站定位模块,用于当所述终端未处于无线接入点搜索/显示界面时,对所述终端进行定位,获取所述终端的当前位置信息。 [0028] Preferably, the position information acquisition unit: [0029] wireless access point search / display interface determination unit, a wireless transmission module for, when the terminal is turned on, determining whether the terminal is a wireless access point search / display interface; [0030] base station positioning module for when the terminal is not in the wireless access point search / display interface, the positioning terminal acquires the current position information of the terminal. [0031] 优选地,该电子设备进一步包括:无线接入点搜索单元和对应关系建立单元,其中:[0032] 所述无线接入点搜索单元用于当所述终端的无线传输模块开启后且处于无线接入点搜索/显示界面时,搜索所述终端的所在位置的全部接入点;[0033] 所述对应关系建立单元,用于当存在无线接入点时,建立所述终端的所在位置与该无线接入点之间的对应关系。 [0031] Preferably, the electronic device further comprising: a searching unit and a wireless access point associating unit, wherein: [0032] The wireless access point searching unit configured to, when the terminal is turned on after a radio transmission module, and when in the access point search / display interface, all access points of the search location of the terminal; [0033] where the correspondence relationship establishing means for, when the presence of the wireless access point, establishing the terminal a correspondence relationship between the position of the wireless access point. [0034] 优选地,该电子设备进一步包括:[0035] 无线连接建立单元和验证单元,其中:[0036] 所述无线连接单元用于当所述无线接入点搜索单元搜索存在无线接入点时,建立所述终端与该无线接入点之间的无线连接;[0037] 所述用于当建立所述终端与该无线接入点之间的无线连接后,按照预设时间间隔多次获取所述终端的位置信息,并判断所述终端的位置是否改变;当所述终端的位置未发生改变时,判断所述终端与所选择的接入点之间的无线连接是否断开连接;[0038] 并且当所述终端与所选择的接入点之间的无线连接未断开连接,所述对应关系建立单元建立所述终端的位置信息与该无线接入点的对应关系。 [0034] Preferably, the electronic device further comprising: [0035] The wireless connection establishment unit and a verification unit, wherein: [0036] when the wireless connection unit for the wireless access point searching unit searches the presence of the wireless access point when the wireless connection is established between the terminal and the wireless access point; [0037] for the terminal when establishing the connection between the wireless and the wireless access point, according to preset time interval a plurality of times acquiring location information of the terminal, and determines whether to change the location of the terminal; and when the position of the terminal is not changed, is determined between wireless terminal and the access point to the selected connection is disconnected; [0038] and when a wireless connection between the terminal and the access point to the selected connection is not disconnected, the corresponding position information of the relation establishing unit establishes a correspondence between the terminal of the wireless access point. [0039] 由以上技术方案可见,本发明实施例提供的该无线接入方法,预先建立终端的位置信息与无线接入点之间的对应关系集合,当终端的无线传输模块开启时,获取终端的当前位置信息,并且在预先建立的对应关系集合中查找与当前位置信息独赢的无线接入点,当查找到与当前位置信息对应的无线接入点时,直接发起建立终端与该无线接入点之间的无线连接。 [0039] seen from the above technical scheme, the radio access method according to an embodiment of the present invention, the pre-established correspondence between the position information of the terminal set with the wireless access point, wireless transmission module when the terminal is turned on, acquiring the terminal current location information, and to find the set of pre-established correspondence relation with the current position information of a win wireless access point, when the current location information to find the corresponding wireless access point, initiates the establishment of direct contact with the wireless terminal a wireless connection between the points. [0040] 与现有技术相比,本发明提供的该无线接入方法,在终端进行无线接入前,无需搜索终端所在位置的全部无线接入点,减少了无线接入的等待时间;并且搜索无线接入点时,仅从预先建立的位置信息和无线接入点的对应关系集合中查找与终端所在位置信息对应的无线接入点,缩小了无线接入点搜索范围,使得终端设备在进行无线接入时消耗的电量降低,并且还可以提高无线接入点的搜索成功率。 [0040] Compared with the prior art, the present invention provides a wireless access method, the front wireless access terminal, the wireless access point without the position of all the search terminal is located, reducing the waiting time of the wireless access; and when searching for a wireless access point, only the correspondence relationship set of pre-established location information and wireless access points to find the position of the terminal location information of the corresponding wireless access point, wireless access point narrowed search range, so that the terminal device when consumed reduced wireless access charge, and may also improve the success rate of search for the wireless access point. 附图说明[0041] 为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。 BRIEF DESCRIPTION [0041] In order to more clearly illustrate the technical solutions in the embodiments or the prior art embodiment of the present invention, the accompanying drawings for describing the embodiments or the prior art described in the introduction required simply Apparently, the following the drawings described are only some embodiments of the invention described, those of ordinary skill in the art is concerned, without creative efforts, we can derive from these drawings other drawings. [0042] 图1为本发明实施例提供的一种无线接入方法的流程示意图;[0043] 图2为本发明实施例提供的另一种无线接入方法的流程示意图;[0044]图3为本发明实施例提供的一种预先建立位置信息和无线接入点的对应关系集合的流程示意图;[0045]图4本发明实施例提供的另一种预先建立位置信息和无线接入点的对应关系集合的流程示意图;[0046] 图5为本发明实施例提供的第三种无线接入方法的流程示意图;[0047] 图6为本发明实施例提供的一种电子设备的结构示意图;[0048] 图7为本发明实施例提供的位置信息获取单元的结构示意图;[0049] 图8为本发明实施例提供的另一种电子设备的结构示意图;[0050] 图9为本发明实施例提供的第三种电子设备的结构示意图。 Schematic flow chart of [0043] FIG. 2 is another radio access method according to an embodiment of the invention;; schematic flow diagram [0042] Figure 1 a radio access method provided in embodiments of the present invention [0044] FIG 3 flow schematic diagram showing the relationship of the pre-established location information and wireless access point according to an embodiment of the invention set; embodiments [0045] Figure 4 embodiment of the present invention to provide another pre-established location information and wireless access points corresponding to the schematic flow diagram set relationship; [0046] FIG. 5 is a schematic flow provided by the third embodiment of the radio access method of the present invention; [0047] FIG. 6 is a schematic structure of an electronic device according to an embodiment of the present invention; [0048] FIG. 7 position information according to a schematic structural unit acquires embodiment of the present invention; [0049] FIG. 8 a schematic structural diagram of another electronic apparatus according to an embodiment of the present invention; [0050] embodiment of the present invention, FIG. 9 schematic structural diagram of a third embodiment of an electronic device provided. 具体实施方式[0051 ] 为了使本技术领域的人员更好地理解本发明中的技术方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。 DETAILED DESCRIPTION [0051] In order to make those skilled in the art better understand the technical solutions of the present invention, the present invention in conjunction with the following drawings in the embodiments, the technical solutions in the embodiments of the present invention will be clearly and completely described in obviously, the described embodiments are merely part of embodiments of the present invention rather than all embodiments. 基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。 Based on the embodiments of the present invention, all other embodiments of ordinary skill in the art without creative efforts shall be made available, should fall within the scope of the present invention. [0052] 下面以wifi接入为例对本发明提供该无线接入方法进行详细说明书。 [0052] In the following Example provides wifi access the wireless access method of the present invention will be detailed description. [0053] 实施例一:[0054] 图1为本发明实施例提供的一种无线接入方法的流程示意图。 [0053] Example I: [0054] FIG 1 a schematic flow diagram of a wireless access provided by the invention a method of the present embodiment. [0055] 如图1所示,该方法可以包括以下步骤:[0056] SlOl:获取终端的当前位置信息。 [0055] As shown in FIG 1, the method may comprise the steps of: [0056] SlOl: acquiring current location information of the terminal. [0057] 在本发明实施例中,该步骤的触发条件是无线传输模块的开启,即在无线传输模块开启时,获取终端的当前位置信息。 [0057] In an embodiment of the present invention, the triggering condition of the step is to turn on the radio transmission module, i.e., when the wireless transmission module is turned on, acquiring current location information of the terminal. 在获取终端的当前位置信息时,可以利用无线传输模块自身具备的定位方式对终端进行定位,例如基站定位,也可以利用具有其它定位方式对终端进行定位,例如GPS定位。 When the current position information acquisition terminal, the terminal can be positioned by the positioning module itself includes a wireless transmission, e.g. base station location, may also have other targeting methods using the terminal positioning, for example GPS positioning. [0058] S102:在预先建立的位置信息和无线接入点的对应关系集合中,查找与当前位置信息对应的无线接入点,获得查找结果。 [0058] S102: corresponding relationship set in a pre-established location information and wireless access points, to find the current location information of the corresponding wireless access point, to obtain search results. [0059] 在终端内可以预先建立位置信息与无线接入点的对应关系集合,并且在该对应关系集合中,包含有至少一条位置信息和无线接入点的对应关系。 [0059] In the terminal may be pre-established relationship between the position information of the corresponding wireless access point of the set, and the correspondence relationship set, comprising at least one correspondence between the location information and wireless access points. 另外,当终端位于某一位置时,可能存在多个无线接入点,所以一个位置可以对应多个无线接入点。 Further, when the terminal is located in a position, there may be a plurality of wireless access points, the position may correspond to a plurality of wireless access points. [0060] 建立的位置信息和无线接入点的对应关系集合的目的是为了将终端在某一位置时曾经接入过的历史无线接入点全部记录下来,这样在终端再次在该位置进行接入时,就无需再次搜索无线接入点,而可依据获取的当前位置信息,直接在预先建立的位置信息和无线接入点的对应关系集合中查找该位置的历史无线接入点,并且发起与历史无线接入点的无线连接即可。 [0060] The object of the correspondence relationship information and to establish the location of the wireless access point is set in order to have a terminal at a certain position over the access history record all the wireless access point, so that the terminal be connected in this position again Pops, you do not need to search again, a wireless access point, and can look for the historical position of the wireless access point based on the current location information obtained directly from a pre-established correspondence between the location information and wireless access point in the set, and initiate history wireless access point and a wireless connection. [0061] 当查找结果表明存在与当前位置信息对应的无线接入点时,进行S103。 [0061] When the search results indicate the presence of location information corresponding to the current wireless access point, for S103. [0062] S103:发起建立终端与该无线接入点之间的无线连接。 [0062] S103: establishing a wireless connection between the initiating terminal and the wireless access point. [0063] 由于在上述步骤中,已经查找到了终端位于当前位置时的历史无线接入点,所以可以直接发起建立终端与该无线接入点之间的无线连接。 [0063] Since in the above step, a history has been found in the current wireless access point terminal position, it can be initiated directly establish a wireless connection between the terminal and the wireless access point. [0064] 与现有技术相比,本发明提供的该无线接入方法,在终端进行无线接入前,无需搜索终端所在位置的全部无线接入点,减少了无线接入的等待时间;并且搜索无线接入点时,仅从预先建立的位置信息和无线接入点的对应关系集合中,查找与终端所在位置信息对应的无线接入点,缩小了无线接入点搜索范围,使得终端设备在进行无线接入时消耗的电量降低,并且还可以提高无线接入点的搜索成功率。 [0064] Compared with the prior art, the present invention provides a wireless access method, the front wireless access terminal, the wireless access point without the position of all the search terminal is located, reducing the waiting time of the wireless access; and when searching for a wireless access point, only the correspondence relationship set of pre-established location information and wireless access points, to find the position of the terminal location information of the corresponding wireless access point, wireless access point narrowed search range, so that the terminal device consumption during reduced wireless access charge, and may also improve the success rate of search for the wireless access point. [0065] 实施例二:[0066] 图2为本发明实施例提供的另一种无线接入方法的流程示意图。 [0065] Example II: [0066] FIG. 2 is a schematic flow diagram of another radio access method according to an embodiment of the invention. [0067] 如图2所示,该方法可以包括以下步骤:[0068] S201:判断终端是否处于无线接入点搜索/显示界面;[0069] 在终端的无线传输模块开启时,需要确认无线传输模块的控制模式,如果终端处于无线接入点搜索/显示界面,即处于用户操作状态,此时需要根据用户操作来进行搜索以及无线接入,而当终端未处于无线接入点搜索/显示界面,可以进行S202。 [0067] As shown in FIG. 2, the method may comprise the steps of: [0068] S201: judging whether the terminal is a wireless access point search / display interface; [0069] wireless transmission module when the terminal is turned on, the wireless transmission requires acknowledgment mode control module, if the terminal is a wireless access point search / display interface, i.e. in the state of a user operation, then the need to search and a radio access user operation, and when the terminal is not in the wireless access point search / display interface It can be performed S202. [0070] S202:对终端进行定位,获取终端的当前位置信息。 [0070] S202: positioning the terminal, the terminal acquires current position information. [0071] 在获取终端的当前位置信息时,可以利用基站定位或GPS定位等定位方式。 [0071] When the current position information acquisition terminal, a base station may utilize GPS positioning or the like positioned targeting methods. 由于GPS定位方式需要开启的GPS模块,这会给终端带来额外的功耗,在本发明实施例中,以wifi接入为例,优选地,可以利用基站定位的方式来获取终端的当前位置信息。 Since the GPS positioning mode the GPS module to be opened, this will bring additional power terminal, in the embodiment of the present invention, an example access to wifi, preferably, of a base station may be utilized to acquire positioning a current position of the terminal information. [0072] S203:在预先建立的位置信息和无线接入点的对应关系集合中,查找与当前位置信息对应的无线接入点,获得查找结果。 [0072] S203: corresponding relationship set in a pre-established location information and wireless access points, to find the current location information of the corresponding wireless access point, to obtain search results. [0073] 如图3所示,预先建立位置信息和无线接入点的对应关系集合,可以包括以下步骤:[0074] S301:搜索终端的所在位置的全部接入点。 [0073] As shown in FIG 3, pre-established correspondence between the position information of the set of wireless access points may include the steps of: [0074] S301: all access points to the location of the search terminal. [0075] 当终端的无线传输模块开启后且处于无线接入点搜索/显示界面时,即处于用户操作状态,根据用户输入的操作可以搜索终端的所在位置的全部接入点。 When the [0075] wireless transmission module when the terminal is turned on and a wireless access point search / display interface, i.e. in the user operation state, according to an operation input by the user can search for all access points location of the terminal is located. [0076] 当存在无线接入点时,进行S302。 [0076] When there is a wireless access point, for S302. [0077] S302:建立终端的所在位置与搜索到的无线接入点之间的对应关系。 [0077] S302: establishing a correspondence between the terminal and the location of the searched wireless access point. [0078] 在上一步骤中已经搜索到终端所在位置的全部接入点,这里虽然终端未与全部接入点之间建立无线接入,但表示终端均可以接入到这些搜索到的无线接入点上,所以可以直接建立终端的所在位置与该无线接入点之间的对应关系。 [0078] In the previous step has been searched for all access point locations terminal is located, here, although the terminal has not been established between wireless access points and all access, but said access terminal can be searched for these radio access on the point, it is possible to establish a correspondence between the location of the terminal with the wireless access point directly. [0079] 并且当终端在不同位置进行搜索时,均建立终端所在位置与搜索到的无线接入点之间的对应关系,这样就可以形成终端的位置信息与无线接入点之间的对应关系集合。 [0079] and when the terminal performs a search in a different location, each correspondence relationship between a position where the terminal with the searched wireless access point, may be formed so that a correspondence relationship between the position information of the terminal with the wireless access point set. [0080] 在图3中,由于终端未与全部接入点之间建立无线接入,所以最终建立对应关系中终端的位置信息与该位置信息所有可能接入的无线接入点的对应关系。 [0080] In FIG. 3, since the terminal is not established between the radio access all access points and, in the end to establish correspondence between the position information of the terminal to the position corresponding relationship information of all possible wireless access point. [0081]为了提高终端利用查找得到的查找结果在进行无线接入时的成功率,在本发明其它实施例中,如图4所示,预先建立位置信息和无线接入点的对应关系集合,可以包括以下步骤:[0082] S401:搜索终端的所在位置的全部接入点。 [0081] In order to increase the success rate of the terminal to find search results obtained using a wireless access is performed, in other embodiments of the present invention, shown in Figure 4, pre-established correspondence relationship between the position information and a set of wireless access points, may comprise the steps of: [0082] S401: all access points located in the terminal position search. [0083] 当存在无线接入点时,进行S402。 [0083] When there is a wireless access point, for S402. [0084] S402:建立终端与搜索得到的无线接入点之间的无线连接。 [0084] S402: establishing a wireless connection between the terminal and the wireless access point search obtained. [0085]当搜索存在无线接入点时,建立终端与搜索得到的无线接入点中的一个无线接入点之间的无线连接。 [0085] When there is a wireless access point search, establishing a wireless connection between the terminal and the wireless access point to obtain the search in a wireless access point. 并且当终端与无线接入点之间的连接建立成功后,进行S403。 And when the connection between the terminal and the wireless access point is established successfully, for S403. [0086] S403:按照预设时间间隔多次获取终端的位置信息,并判断终端的位置是否改变。 [0086] S403: multiple preset time interval acquiring location information of the terminal, and determines whether to change the location of the terminal. [0087] 当终端与无线接入点之间的连接建立成功后,以预设的时间间隔多次获取终端的位置信息,并将获取的终端的位置信息与步骤S201中的当前位置信息进行比较,判断终端的位置是否改变,这里获取的次数可以预先设置。 Compares current location information with location information in step S201 [0087] When the connection between the terminal and the wireless access point is successfully established, the position information of a preset time interval repeatedly access terminal, and the terminal of the acquired , the terminal determines whether to change the position, the number of acquired herein can be preset. 当终端的位置未发生改变时,进行S404。 When the position of the terminal is not changed, for S404. [0088] S404:判断终端与所选择的接入点之间的无线连接是否断开连接。 [0088] S404: wireless connection between the terminal and determines the selected access point connection is disconnected. [0089] 在判断得到终端的位置未发生改变后,判断在步骤S402中建立的终端与搜索得到的无线接入点之间的无线连接是否断开,如果此时之前建立的无线连接未断开连接,进行S405。 [0089] After the determination of the location of the terminal has not been changed, it determines whether the wireless between the terminal and the search in step S402 is obtained to establish the wireless access point connection is disconnected, if a previously established radio connection is not disconnected at this time connection, perform S405. [0090] S405:建立终端的位置信息与该无线接入点的对应关系。 [0090] S405: establish a correspondence between the position information of the terminal with the wireless access point. [0091] 经过上述的对终端的位置进行判断以及对之前建立的无线连接的连接情况进行判断,可以判断出之前终端接入的无线接入点为该终端的稳定无线接入点。 [0091] After the position of the terminal to judge the wireless connection and the connection establishment is performed before the determination, the access terminal can be judged before the wireless access point wireless access point for the terminal stabilization. 这样当终端利用查找得到的查找结果在进行无线接入时,可以提高终端的接入成功率,降低终端的功耗。 So that when the terminal search results obtained using the lookup is performed wireless access, access can improve the success rate of the terminal, to reduce power consumption of terminals. [0092] S204:发起建立终端与该无线接入点之间的无线连接。 [0092] S204: establishing a wireless connection between the initiating terminal and the wireless access point. [0093] 由于在上述步骤中,已经查找到了终端位于当前位置时的历史无线接入点,所以可以直接发起建立终端与该无线接入点之间的无线连接。 [0093] Since in the above step, a history has been found in the current wireless access point terminal position, it can be initiated directly establish a wireless connection between the terminal and the wireless access point. [0094] 实施例三:[0095] 在本发明其它实施例中,当终端在当前位置之前没有进行无线接入,那么就不存在预先建立的位置信息与无线接入点之间的对应关系的集合。 [0094] Third Embodiment: [0095] In other embodiments of the present invention, when the wireless access terminal is not performed prior to the current position, then there is no pre-established correspondence between the position information of the wireless access point set. 所以在上述两个实施例的基础上,本发明还提供了第三种无线接入方法,如图5所示,为本发明提供的第三种无线接入方法流程示意图。 Therefore, on the basis of the above two embodiments, the present invention also provides a third radio access method, as shown in Figure 5, the third radio access flowchart of a method provided by the present invention. [0096] 如图5所示,该方法还可以包括以下步骤:[0097] S501:搜索当前位置的全部无线接入点,并且发起建立终端与搜索结果中的无线接入点之间的无线连接。 [0096] As shown in FIG. 5, the method may further comprise the steps of: [0097] S501: All current wireless access point search position, and initiates the establishment of a wireless connection between the terminal and the search results wireless access point . [0098] 在步骤S102之后,当查找结果表明不存在与当前位置信息对应的无线接入点时,此时,表明终端在本次无线接入之前未在该位置进行过无线接入,所以可以直接搜索当前位置的全部无线接入点,并且当存在无线接入点时,发起建立终端与搜索结果中的无线接入点之间的无线连接。 [0098] After the step S102, when the search result indicates the absence of the information corresponding to the current position of the wireless access point, at this time, indicating that the wireless access terminal is not carried out in this position prior to the current wireless access, can be direct search all radio access point of the current position, and when there is a wireless access point, initiates the establishment of a wireless connection between the terminal and the search results of the wireless access point. [0099] 另外,在步骤S203之后,当查找结果表明不存在与当前位置信息对应的无线接入点时,也可以进行该步骤。 [0099] Further, after step S203, the search results show that when the absence of the information corresponding to the current position of the wireless access point, this step may be performed. [0100] 实施例四:[0101] 本发明还提供了一种电子设备,该电子设备可以利用上述方法实施例提供的无线接入方法。 [0100] Example IV: [0101] The present invention further provides an electronic device, the electronic device may be a wireless access method provided in an embodiment by the above method. [0102] 图6为本发明实施例提供的一种电子设备的结构示意图。 [0102] FIG. 6 is a schematic structure of an electronic device according to an embodiment of the present invention. [0103] 如图6所示,该电子设备可以包括:位置信息获取单元1、无线接入点查找单元2和无线连接发起单元3,其中:[0104] 位置信息获取单元I用于获取终端的位置信息。 [0103] As shown in FIG. 6, the electronic device may include: a position information obtaining unit 1, the wireless access point search unit 2 and unit 3 to initiate the wireless connection, wherein: [0104] the position information acquisition unit for acquiring a terminal I location information. 在本发明实施例中,如图7所示,位置信息获取单元I可以包括:无线接入点搜索/显示界面判断单元11和基站定位模块12。 In an embodiment of the present invention, shown in FIG. 7, the position information acquisition unit I may include: a wireless access point search / display interface unit 11 and the base station location determination module 12. [0105] 无线接入点搜索/显示界面判断单元11用于当终端的无线传输模块开启时,判断终端是否处于无线接入点搜索/显示界面,这里在终端的无线传输模块开启时,需要确认无线传输模块的控制模式,如果终端处于无线接入点搜索/显示界面,即处于用户操作状态,此时需要根据用户操作来进行搜索以及无线接入。 [0105] wireless access point search / display interface determination unit 11 for wireless transmission module when the terminal is turned on, determining whether the terminal is a wireless access point search / display interface, where wireless transmission module when the terminal is turned on, need to confirm the control mode of the wireless transmission module, if the terminal is a wireless access point search / display interface, i.e. in the state of a user operation, then the need to search and a radio access according to a user operation. 基站定位模块用12于当终端未处于无线接入点搜索/显示界面时,对终端进行定位,获取终端的当前位置信息。 When the positioning module 12 to the base station when the terminal is not in the wireless access point search / display interface, the terminal positioning, acquiring current location information of the terminal. [0106] 无线接入点查找单元2用于依据当前位置信息,在预先建立的位置信息和无线接入点的对应关系集合中,查找与当前位置信息对应的无线接入点,获得查找结果,查找结果有两种:一是存在与当前位置对应的无线接入点,此时可以直接与查找到的无线接入点发起建立无线连接;二是不存在与挡墙位置对应的无线接入点,此时,需要采用现有的无线接入模式对终端进行无线接入。 [0106] The wireless access point search unit 2 according to the current position information, the corresponding set of pre-established relationship between the location information and wireless access points, to find the current location information of the corresponding wireless access point, to obtain search results, Search result there are two: First, the current position corresponding to the presence of wireless access point, this case can be found directly initiate wireless access point establishes a wireless connection; second position corresponding to the wall with the wireless access point does not exist in this case, the conventional need to use a radio access mode wireless access terminals. [0107] 无线连接发起单元3,用于当查找结果表明存在与当前位置信息对应的无线接入点时,发起建立终端与该无线接入点之间的无线连接。 [0107] initiating a wireless connection means 3, when the search results to show the presence and location information corresponding to the current wireless access point, initiates the establishment of the wireless connection between the terminal and the wireless access point. [0108] 与现有技术相比,本发明提供的该无线接入方法,在终端进行无线接入前,无需搜索终端所在位置的全部无线接入点,减少了无线接入的等待时间;并且搜索无线接入点时,仅从预先建立的位置信息和无线接入点的对应关系集合中,查找与终端所在位置信息对应的无线接入点,缩小了无线接入点搜索范围,使得终端设备在进行无线接入时消耗的电量降低,并且还可以提高无线接入点的搜索成功率。 [0108] Compared with the prior art, the present invention provides a wireless access method, the front wireless access terminal, the wireless access point without the position of all the search terminal is located, reducing the waiting time of the wireless access; and when searching for a wireless access point, only the correspondence relationship set of pre-established location information and wireless access points, to find the position of the terminal location information of the corresponding wireless access point, wireless access point narrowed search range, so that the terminal device consumption during reduced wireless access charge, and may also improve the success rate of search for the wireless access point. [0109] 实施例五:[0110] 在上述实施例中在无线接入前进行无线接入点查找时,是从预先建立的位置信息和无线接入点的对应关系集合中进行查找,为了实现在终端内预先建立位置信息和无线接入点的对应关系集合,在本本申请实施例中,提供了另外一种电子设备。 [0109] Example V: when [0110] a wireless access point wireless access prior to find the above-described embodiments, is to find the correspondence relationship between pre-established set of location information and wireless access points, in order to achieve and establishing corresponding relationship between the position information of the wireless access point set in advance in the terminal, in the embodiment, the application books, provides another electronic device. [0111] 图8为本发明实施例提供的另一种电子设备的结构示意图。 [0111] FIG. 8 a schematic structural diagram of another electronic apparatus according to an embodiment of the present invention. [0112] 在上一实施例的基础上,该电子设备还可以包括:线接入点搜索单元4和对应关系建立单元5,其中:无线接入点搜索单元4用于当终端的无线传输模块开启后且处于无线接入点搜索/显示界面时,搜索终端的所在位置的全部接入点;对应关系建立单元5用于当存在无线接入点时,建立终端的所在位置与该无线接入点之间的对应关系。 [0112] In an embodiment based on the embodiment, the electronic device may further comprises: wireless access point search unit 4 to establish a correspondence relationship, and 5, wherein: the wireless access point searching unit 4 when a terminal for wireless transmission module after the wireless access point is turned on and in the search / display interface, all access points of the location of the search terminal; correspondence relationship establishing unit 5 for the location of the wireless access point, when present, to establish the wireless access terminal correspondence between the points. [0113] 由于上述对应关系建立单元5在建立对应关系之前,终端未与全部接入点之间建立无线接入,所以最终建立对应关系中终端的位置信息与该位置信息所有可能接入的无线接入点的对应关系。 [0113] Since the correspondence establishing unit 5 before establishing a corresponding relationship, the terminal is not established between the radio access all access points and, in the end position information establishing correspondence between the wireless terminal to the location information of all possible access the correspondence relationship of the access point. [0114]为了提高终端利用查找得到的查找结果在进行无线接入时的成功率,在本发明其它实施例中,如图9所示,该电子设备还可以包括:[0115] 无线连接建立单元6和验证单元7,其中:无线连接单元6用于当无线接入点搜索单元搜索存在无线接入点时,建立终端与该无线接入点之间的无线连接;[0116] 验证单元7用于当建立终端与该无线接入点之间的无线连接后,按照预设时间间隔多次获取终端的位置信息,并判断终端的位置信息是否改变;当终端的位置信息未发生改变时,判断终端与所选择的接入点之间的无线连接是否断开连接;[0117] 并且当终端与所选择的接入点之间的无线连接未断开连接,对应关系建立单元5再建立终端的位置信息与该无线接入点的对应关系。 [0114] In order to improve the search result obtained using the lookup terminal success rate when performing radio access, in other embodiments of the present invention, shown in Figure 9, the electronic device may further comprise: [0115] a wireless connection establishment unit verification unit 6 and 7, wherein: the wireless unit 6 is connected to the wireless access point when there is a wireless access point searching unit to search, a terminal establishes a wireless connection with the wireless access point; [0116] verification unit 7 with Once established in the wireless terminals between the wireless access point, according to preset time interval repeatedly access the location information of the terminal, and determines whether to change the location information of the terminal; and when the position information of the terminal is not changed, it is determined the wireless terminal is connected between the selected access point is disconnected; [0117] and when a wireless connection between the terminal and the access point selected is not disconnected, the corresponding re-establishment unit to establish the relationship between the terminal 5 correspondence between the position information of the wireless access point. [0118] 以上所述仅是本发明的优选实施方式,使本领域技术人员能够理解或实现本发明。 [0118] The above are only preferred embodiments of the present invention, enable those skilled in the art to understand or practice the present invention. 对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。 Various modifications to these embodiments to those skilled in the art will be apparent, and the generic principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. 因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。 Accordingly, the present invention will not be limited to the embodiments shown herein but is to be accorded herein consistent with the principles and novel features disclosed widest scope.