Summary of the invention
The embodiment of the present application proposes the method and apparatus for connecting wireless access point.
In a first aspect, the embodiment of the present application provides a kind of method for connecting wireless access point, applied to having connectedFirst equipment of wireless access point, the first equipment include touch screen, this method comprises: in response to detecting that is had connected wirelessly connectsThe access point identity of access point is selected, generates access information, wherein access information includes the access of selected wireless access pointPoint identification and access pin;In response to detecting the second equipment by access information to wireless access point to be connected on the touchscreenThe slide of the direction sliding at place, generates the first slip information;If receiving the transmission of the second equipment within a preset period of timeThe second slip information, it is determined that whether the first slip information matches with the second slip information;If the first slip information and secondSlip information matching, then send access information to the second equipment, so that the wireless access point that the connection of the second equipment is selected.
In some embodiments, the second slip information is the second coordinate information in preset coordinate system;And generating theAfter one slip information, this method further include: the first slip information is converted to the first coordinate information in preset coordinate system;WithAnd determine whether the first slip information matches with the second slip information, comprising: determine the first coordinate information and the second coordinate informationWhether match;And if the first slip information is matched with the second slip information, sends access information to the second equipment, comprising:If the first coordinate information is matched with the second coordinate information, access information is sent to the second equipment.
In some embodiments, the first slip information includes the first sliding trace, and preset coordinate system includes device coordinate system,Wherein, the abscissa line of device coordinate system is parallel with the adjacent two edges of touch screen respectively with the coordinate longitudinal axis;And by firstSlip information is converted to the first coordinate information in preset coordinate system, comprising: determines the first sliding trace and device coordinate systemFirst angle is determined as the first coordinate information by the first angle between abscissa line or the coordinate longitudinal axis.
In some embodiments, the second coordinate information includes the second angle;And determine that the first coordinate information and second is satWhether mark information matches, comprising: determines whether the angle of the first angle and the difference of the angle of the second angle are less than preset anglePoor threshold value;If the difference of the angle of the first angle and the angle of the second angle is less than differential seat angle threshold value, it is determined that the first coordinate informationIt is matched with the second coordinate information.
In some embodiments, the first slip information includes the first sliding trace, and preset coordinate system includes device coordinate system,Wherein, the abscissa line of device coordinate system is parallel with the adjacent two edges of touch screen respectively with the coordinate longitudinal axis;And by firstSlip information is converted to the first coordinate information in preset coordinate system, comprising: determines the first sliding trace and device coordinate systemThe first angle between abscissa line or the coordinate longitudinal axis;First sliding trace and the first angle are determined as the first coordinate information.
In some embodiments, the second coordinate information includes the second sliding trace and the second angle;And determine that first sitsWhether mark information matches with the second coordinate information, comprising: determines the length of the first sliding trace and the length of the second sliding traceDifference whether be less than preset length difference threshold value, and determine whether the difference of the angle of the first angle and the angle of the second angle smallIn preset differential seat angle threshold value;If the difference of the length of the first sliding trace and the length of the second sliding trace is less than length difference threshold valueAnd first angle angle and the second angle angle difference be less than differential seat angle threshold value, it is determined that the first coordinate information and secondCoordinate information matching.
In some embodiments, the first slip information includes the first sliding starting point and the first sliding terminal, preset coordinate systemIncluding world coordinate system;And the first slip information is converted to the first coordinate information in preset coordinate system, comprising: by firstSliding starting point is converted to the first coordinate starting point in world coordinate system, and the first sliding terminal is converted in world coordinate systemThe first coordinate terminal;First coordinate starting point and the first coordinate terminal are determined as the first coordinate information.
In some embodiments, the second coordinate information includes the second coordinate starting point in world coordinate system and the second coordinate endPoint;And determine whether the first coordinate information matches with the second coordinate information, comprising: determine the first coordinate starting point and the second coordinateWhether the distance between starting point is less than preset first distance difference threshold value, and determines the first coordinate terminal and the second coordinate terminalThe distance between whether be less than preset second range difference threshold value;If the distance between the first coordinate starting point and the second coordinate starting pointIt is less than second range difference threshold value less than the poor threshold value of first distance and the distance between the first coordinate terminal and the second coordinate terminal,Then determine that the first coordinate information is matched with the second coordinate information.
In some embodiments, after generating access information, this method further include: present for characterizing access informationIcon;And in response to detecting the second equipment direction by access information to wireless access point to be connected on the touchscreenThe slide of sliding generates the first slip information, comprising: to the while pressing icon on the touchscreen in response to detectingThe slide of direction sliding where two equipment, generates the first slip information.
Second aspect, the embodiment of the present application provides a kind of method for connecting wireless access point, applied to wait connectSecond equipment of wireless access point, the second equipment include touch screen, this method comprises: on the touchscreen will be in response to detectingThe slide that the access point identity of the wireless access point of connection is slided to target direction generates the second slip information;If fromFirst equipment of connection wireless access point gets the first slip information and determines that the second slip information is in the first sliding letterIt is generated in preset time period after breath generation, it is determined that whether the first slip information matches with the second slip information;IfFirst slip information is matched with the second slip information, then obtains access information from the first equipment, wherein access information includes wirelessThe access pin of access point;The access pin of wireless access point is obtained from access information to connect wireless access point.
In some embodiments, the first slip information is the first coordinate information in preset coordinate system;And generating theAfter two slip informations, this method further include: the second slip information is converted to the second coordinate information in preset coordinate system;WithAnd determine whether the first slip information matches with the second slip information, comprising: determine the first coordinate information and the second coordinate informationWhether match;And if the first slip information is matched with the second slip information, obtains access information from the first equipment, comprising:If the first coordinate information is matched with the second coordinate information, access information is obtained from the first equipment.
In some embodiments, the second slip information includes the second sliding trace, and preset coordinate system includes device coordinate system,Wherein, the abscissa line of device coordinate system is parallel with the adjacent two edges of touch screen respectively with the coordinate longitudinal axis;And by secondSlip information is converted to the second coordinate information in preset coordinate system, comprising: determines the second sliding trace and device coordinate systemSecond angle is determined as the second coordinate information by the second angle between abscissa line or the coordinate longitudinal axis.
In some embodiments, the first coordinate information includes the first angle;And determine that the first coordinate information and second is satWhether mark information matches, comprising: determines whether the angle of the first angle and the difference of the angle of the second angle are less than preset anglePoor threshold value;If the difference of the angle of the first angle and the angle of the second angle is less than differential seat angle threshold value, it is determined that the first coordinate informationIt is matched with the second coordinate information.
In some embodiments, the second slip information includes the second sliding trace, and preset coordinate system includes device coordinate system,Wherein, the abscissa line of device coordinate system is parallel with the adjacent two edges of touch screen respectively with the coordinate longitudinal axis;And by secondSlip information is converted to the second coordinate information in preset coordinate system, comprising: determines the second sliding trace and device coordinate systemThe second angle between abscissa line or the coordinate longitudinal axis;Second sliding trace and the second angle are determined as the second coordinate information.
In some embodiments, the first coordinate information includes the first sliding trace and the first angle;And determine that first sitsWhether mark information matches with the second coordinate information, comprising: determines the length of the first sliding trace and the length of the second sliding traceDifference whether be less than preset length difference threshold value, and determine whether the difference of the angle of the first angle and the angle of the second angle smallIn preset differential seat angle threshold value;If the difference of the length of the first sliding trace and the length of the second sliding trace is less than length difference threshold valueAnd first angle angle and the second angle angle difference be less than differential seat angle threshold value, it is determined that the first coordinate information and secondCoordinate information matching.
In some embodiments, the first slip information includes the first sliding starting point and the first sliding terminal, preset coordinate systemIncluding world coordinate system;And the second slip information is converted to the second coordinate information in preset coordinate system, comprising: by secondSliding starting point is converted to the second coordinate starting point in world coordinate system, and the second sliding terminal is converted in world coordinate systemThe second coordinate terminal;Second coordinate starting point and the second coordinate terminal are determined as the second coordinate information.
In some embodiments, the first coordinate information includes the first coordinate starting point in world coordinate system and the first coordinate endPoint;And determine whether the first coordinate information matches with the second coordinate information, comprising: determine the first coordinate starting point and the second coordinateWhether the distance between starting point is less than preset first distance difference threshold value, and determines the first coordinate terminal and the second coordinate terminalThe distance between whether be less than preset second range difference threshold value;If the distance between the first coordinate starting point and the second coordinate starting pointIt is less than second range difference threshold value less than the poor threshold value of first distance and the distance between the first coordinate terminal and the second coordinate terminal,Then determine that the first coordinate information is matched with the second coordinate information.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, which includes: one or more processingDevice;Storage device is stored thereon with one or more programs, when said one or multiple programs are by said one or multiple processingWhen device executes, so that said one or multiple processors realize the method as described in implementation any in first aspect.
Fourth aspect, the embodiment of the present application provide a kind of electronic equipment, which includes: one or more processingDevice;Storage device is stored thereon with one or more programs, when said one or multiple programs are by said one or multiple processingWhen device executes, so that said one or multiple processors realize the method as described in implementation any in second aspect.
5th aspect, the embodiment of the present application provide a kind of system, which includes: the electronics as described in the third aspectEquipment and the electronic equipment as described in fourth aspect.
6th aspect, the embodiment of the present application provide a kind of computer-readable medium, are stored thereon with computer program,In, the method as described in implementation any in first aspect is realized when which is executed by processor.
7th aspect, the embodiment of the present application provide a kind of computer-readable medium, are stored thereon with computer program,In, the method as described in implementation any in second aspect is realized when which is executed by processor.
The method and apparatus provided by the above embodiment for connecting wireless access point of the application, by response to having connectedThe first equipment for connecing wireless access point detects that the access point identity for the wireless access point having connected is selected, generates access letterBreath;Later, in response to detecting the side where access information to the second equipment of wireless access point to be connected on the touchscreenTo the slide of sliding, the first slip information is generated;Then, it is sent if receiving above-mentioned second equipment within a preset period of timeThe second slip information, it is determined that whether above-mentioned first slip information matches with above-mentioned second slip information;Finally, if above-mentionedOne slip information is matched with above-mentioned second slip information, then sends above-mentioned access information to above-mentioned second equipment, so that above-mentioned theTwo equipment connect above-mentioned selected wireless access point.This network connecting mode can be slided on networking gear by determiningWhether dynamic slip gesture matches with the slip gesture slided on to networking gear, if matching, has networked and has setIt is standby to send access pin to networking gear to above-mentioned, so as to reduce the networking step of user, so that equipment is rapidlyIt is connected to wireless access point.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouchedThe specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order toConvenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phaseMutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is shown can be using the exemplary system of the embodiment of the method for connecting wireless access point of the applicationFramework 100.
As shown in Figure 1, system architecture 100 may include the first equipment 1011 for having connected wireless access point, 1012,1013, the second equipment 1031,1032,1033 of network 102 and wireless access point to be connected.Wherein, network 102 is to firstThe medium of communication link is provided between equipment 1011,1012,1013 and the second equipment 1031,1032,1033.Network 102 can be withIncluding various connection types, such as wired, wireless communication link or fiber optic cables etc..
It should be noted that it is hereafter used uniformly the first equipment that networking gear characterization has connected wireless access point, withAnd using the second equipment for characterizing wireless access point to be connected to networking gear.
User can be used networking gear 1011,1012,1013 by network 102 with to networking gear 1031,1032,1033 interactions, to send or receive message etc..Networking gear 1011,1012,1013 and to networking gear 1031,1032,Various telecommunication customer end applications can be installed, such as the application of networking class, wireless access point are shared class application, wirelessly connect on 1033Access point management-type application, web browser applications, shopping class application, searching class application, social platform software etc..
Networking gear 1011,1012,1013 can be the electronic equipment for supporting wireless access point connection, such as to evenThe electronic equipment of the transmission access information of net equipment 1031,1032,1033.Networking gear 1011,1012,1013 can detectTo the wireless access point having connected access point identity it is selected when, generate access information;Later, it is being touched in response to detectingThe cunning for sliding access information to the direction where networking gear 1031,1032,1033 to wireless access point to be connected on screenDynamic operation, generates the first slip information;Then, it is sent out if receiving within a preset period of time to networking gear 1031,1032,1033The second slip information sent, it is determined that whether the first slip information matches with the second slip information;Finally, if the first slip informationIt is matched with the second slip information, then access information is sent to networking gear 1031,1032,1033, so as to networking gear1031, the selected wireless access point of 1032,1033 connections.
Networking gear 1011,1012,1013 can be hardware, be also possible to software.When networking gear 1011,1012,1013 be hardware when, can be with display screen and support wireless access point connect various electronic equipments, including butIt is not limited to smart phone, smartwatch, E-book reader, MP3 player (Moving Picture Experts GroupAudio Layer III, dynamic image expert's compression standard audio level 3), MP4 (Moving Picture ExpertsGroup Audio Layer IV, dynamic image expert's compression standard audio level 4) player, pocket computer on knee etc.Deng.When networking gear 1011,1012,1013 is software, may be mounted in above-mentioned cited electronic equipment.It can be withIt is implemented as multiple softwares or software module (such as providing Distributed Services), single software or software mould also may be implemented intoBlock.It is not specifically limited herein.
It can be the electronic equipment for supporting wireless access point connection to networking gear 1031,1032,1033, such as from having connectedThe electronic equipment of the acquisition access information of net equipment 1011,1012,1013.It can be in response to networking gear 1031,1032,1033It detects the slide on the touchscreen sliding the access point identity of wireless access point to be connected to target direction, generatesSecond slip information;Later, sliding if getting first from the networking gear 1011,1012,1013 for having connected wireless access pointDynamic information and determine the second slip information be it is generated in the preset time period after the generation of the first slip information, then reallyWhether fixed first slip information matches with the second slip information;Then, if the first slip information is matched with the second slip information,The access information of the access pin including wireless access point is obtained from networking gear 1011,1012,1013;Finally, from accessThe access pin of wireless access point is obtained in information to connect wireless access point.
It should be noted that can be by having networked for connecting the method for wireless access point provided by the embodiment of the present applicationEquipment 1011,1012,1013 executes, can also be by executing to networking gear 1031,1032,1033.
It should be noted that can be hardware to networking gear 1031,1032,1033, it is also possible to software.When wait networkWhen equipment 1031,1032,1033 is hardware, it can be with display screen and the various electronics of wireless access point connection supported to setIt is standby, including but not limited to smart phone, smartwatch, E-book reader, MP3 player (Moving PictureExperts Group Audio Layer III, dynamic image expert's compression standard audio level 3), MP4 (MovingPicture Experts Group Audio Layer IV, dynamic image expert's compression standard audio level 4) player, kneeMo(u)ld top half portable computer etc..When networking gear 1031,1032,1033 is software, it may be mounted at above-mentioned citedIn electronic equipment.Multiple softwares or software module (such as providing Distributed Services) may be implemented into it, also may be implementedAt single software or software module.It is not specifically limited herein.
It should be understood that the networking gear, network in Fig. 1 and the number to networking gear are only schematical.According toIt realizes and needs, can have any number of networking gear, network and to networking gear.
With continued reference to Fig. 2, one embodiment of the method for connecting wireless access point according to the application is shownProcess 200.The method for being used to connect wireless access point is usually applied to have connected the first equipment of wireless access point (wait networkEquipment), networking gear generally includes touch screen for this.The method for being used to connect wireless access point, comprising the following steps:
Step 201, whether the access point identity for detecting the wireless access point having connected is selected.
In the present embodiment, (such as shown in FIG. 1 networked sets the executing subject for connecting the method for wireless access pointIt is standby) whether the access point identity that can detecte the wireless access point having connected be selected.Wireless access point typically refers to a nothingThe access point of gauze network is commonly called as " hot spot ".Access point identity typically refers to access point name.Above-mentioned executing subject can pass through inspectionSurvey whether user executes predetermined registration operation (for example, clicking operation or dragging to the access point identity for the wireless access point having connectedOperation etc.) so that it is determined that whether access point identity is selected.It, can be true if user performs predetermined registration operation to access point identityIt is selected to determine access point identity.
Step 202, in response to detecting that the access point identity for the wireless access point having connected is selected, access letter is generatedBreath.
In the present embodiment, if detecting in step 201, the access point identity for the wireless access point having connected is selected,Access information can be generated in above-mentioned executing subject.Above-mentioned access information may include the access point mark of selected wireless access pointKnowledge and access pin.Electronic equipment may be coupled to selected wireless access point using access pin.Above-mentioned executing subject canWith to selected wireless access point access point identity and access pin be packaged binding to generating access information.It is packagedBinding typically refers to that access point identity and access pin are stored and are packaged with preset data format.Herein, connectedNet equipment and carry out data transmission to networking gear usually using identical Data Transport Protocol.Above-mentioned preset data format is logicalIt is often data format defined in used Data Transport Protocol.Networking gear can use above-mentioned preset data latticeCoding mode corresponding to formula encodes data, and is sent in binary form to networking gear, can to networking gearTo be decoded using decoding process corresponding to above-mentioned preset data format to data, to get access information.
Step 203, detecting whether on the touchscreen will be where access information to the second equipment of wireless access point to be connectedDirection sliding slide.
In the present embodiment, above-mentioned executing subject can detecte user whether on above-mentioned touch screen by above-mentioned access informationTo the slide of wireless access point to be connected slided to the direction where networking gear.Above-mentioned slide can beTo the drag operation of the access point identity of wireless access point.It is above-mentioned to can be preassigned to be received wirelessly connect to networking gearThe electronic equipment of the access information of access point.
Step 204, in response to detecting the second equipment by access information to wireless access point to be connected on the touchscreenThe slide of the direction sliding at place, generates the first slip information.
In the present embodiment, if being detected above-mentioned access information on above-mentioned touch screen in step 203 to wait connectThe slide of wireless access point slided to the direction where networking gear, for example, detecting user by above-mentioned accessFor information to the drag operation to the direction where networking gear of wireless access point to be connected, above-mentioned executing subject can be generatedOne slip information.Slip information can be information relevant to slide, and herein, slip information may include sliding sideTo.Therefore, the first slip information may include the first glide direction.First glide direction can refer to the touching in networking gearIt touches and the direction for characterizing the location point to networking gear is directed toward by the location point for characterizing networking gear on screen.
In some optional implementations of the present embodiment, after generating access information, above-mentioned executing subject can be withThe icon for characterizing above-mentioned access information is presented.For example, above-mentioned executing subject can be in above-mentioned selected wireless access pointAccess point identity behind present " networking " icon.Later, whether above-mentioned executing subject can detecte user in above-mentioned touchTo the sliding of wireless access point to be connected slided to the direction where networking gear while pressing above-mentioned icon on screenOperation.If detecting user's setting wait network to wireless access point to be connected while pressing above-mentioned icon on above-mentioned touch screenThe first slip information can be generated in the slide that the direction at standby place is slided, above-mentioned executing subject.To provide oneKind generates the first slip information by the operation to icon in the method for icon characterization access information.
Step 205, the second slip information for whether receiving the transmission of the second equipment within a preset period of time determined.
In the present embodiment, whether above-mentioned executing subject can determine to receive within a preset period of time and above-mentioned set wait networkThe second slip information that preparation is sent.It is customized that above-mentioned preset time period can be user, for example, 10 seconds, 30 seconds.It is above-mentioned to evenNet equipment can generate the second slip information, then slide above-mentioned second in response to detecting slide on the touchscreenDynamic information is sent to above-mentioned executing subject.
Step 206, if receiving the second slip information of the second equipment transmission within a preset period of time, it is determined that first is slidingWhether dynamic information matches with the second slip information.
In the present embodiment, if determining to be received within a preset period of time to networking gear transmission in step 205Second slip information, then above-mentioned executing subject can determine above-mentioned first slip information and above-mentioned second slip information whetherMatch.Specifically, above-mentioned second slip information may include the second glide direction, and the second glide direction can refer to be set wait networkThe direction for characterizing the location point to networking gear is directed toward by the location point for characterizing networking gear on standby touch screen.Usually, glide direction may include direction and angle, for example, 30 degree of north by east, 68 degree of south by west.Above-mentioned executing subject canTo determine whether the direction in the first glide direction and the direction in the second glide direction are identical, and determine the first glide directionIn angle and the second glide direction in angle between angle difference whether be less than preset angle difference threshold value.If firstDirection in glide direction is identical as the direction in the second glide direction and angle and the second sliding side in the first glide directionThe angle difference between angle in is less than preset angle difference threshold value, then above-mentioned executing subject can determine the first slidingInformation is matched with the second slip information.As an example, the second glide direction is north if the first glide direction is 37.5 degree of north by east35.3 degree by east, preset angle difference threshold value is 3 degree, then above-mentioned executing subject can determine that the first slip information is sliding with secondDynamic information matches.
Step 207, if the first slip information is matched with the second slip information, access information is sent to the second equipment, withThe wireless access point for keeping the connection of the second equipment selected.
In the present embodiment, if determining above-mentioned first slip information and above-mentioned second slip information in step 206Match, then above-mentioned executing subject can send above-mentioned access information to networking gear to above-mentioned.It is above-mentioned to be received to networking gearAfter above-mentioned access information, above-mentioned access information can be parsed to obtain the access point identity of selected wireless access pointAnd access pin.The process parsed to above-mentioned access information, which can be, utilizes solution corresponding to above-mentioned preset data formatThe process that code mode is decoded data.Later, above-mentioned can use to networking gear parses obtained wireless access pointAccess point identity connects above-mentioned selected wireless access point with access pin.
It is the one of the application scenarios of the method according to the present embodiment for connecting wireless access point with continued reference to Fig. 3, Fig. 3A schematic diagram.In the application scenarios of Fig. 3, networking gear 301 can detect the access for the wireless access point having connected firstWhether point identification " TP-LINK_0056 " 302 is selected.As shown in icon 303, networking gear 301 detects user to having connectedThe access point identity " TP-LINK_0056 " 302 of the wireless access point connect has carried out clicking operation, and access information can be generated304.Herein, access information 304 may include selected wireless access point access point identity " TP-LINK_0056 " andAccess pin " 1350ahns ".Later, networking gear 301 can detecte user whether on the touchscreen by access information toConnect the slide to the direction sliding where networking gear of wireless access point.As shown in icon 305, if networking gear301 detect that user to the drag operation of the access point identity " TP-LINK_0056 " 302 of selected wireless access point, has networkedThe first slip information 306 can be generated in equipment 301.Herein, the first slip information 306 may include the first glide direction, theOne glide direction is 28 degree of north by east.Then, networking gear 301 is determined to receive in preset time period 20 seconds wait networkThe second slip information 307 that equipment 308 generates, herein, the second slip information 307 include the second glide direction, the second slidingDirection is 30 degree of north by east.Later, networking gear 301 can determine that the first slip information 306 is with the second slip information 307No matching, since the direction " north by east " in the first glide direction is identical as direction " north by east " in the second glide direction and2 degree of angle difference between 30 degree of angle in 28 degree of angle in first glide direction and the second glide direction are less than preset3 degree of angle difference threshold value, then networking gear 301 can determine the first slip information 306 and 307 phase of the second slip informationMatch.Finally, networking gear 301 can send access information 304 to networking gear 308, received to networking gear 308After access information 304, it can use access point identity " TP-LINK_0056 " and access pin " 1350ahns " connection be selectedIn wireless access point.
The method provided by the above embodiment of the application in response to the first equipment for having connected wireless access point by detectingAccess point identity to the wireless access point having connected is selected, generates access information;Later, in response to detecting in touch screenOn by where direction from access information to the second equipment of wireless access point to be connected sliding slide, generate first slidingInformation;Then, if receiving the second slip information that above-mentioned second equipment is sent within a preset period of time, it is determined that above-mentioned firstWhether slip information matches with above-mentioned second slip information;Finally, if above-mentioned first slip information and above-mentioned second slip informationMatching then sends above-mentioned access information to above-mentioned second equipment, so that above-mentioned second equipment is connected and above-mentioned selected wirelessly connectAccess point.This network connecting mode can be by determining the slip gesture slided on networking gear and on to networking gearWhether the slip gesture slided matches, if matching, networking gear can be connect to above-mentioned to networking gear transmissionEnter password, so as to reduce the networking step of user, so that equipment is quickly attached to wireless access point.
With continued reference to Fig. 4, it illustrates the processes 400 of another embodiment of the method for connecting wireless access point.The method for being used to connect wireless access point is usually applied to have connected the first equipment of wireless access point.This is used to connect wirelesslyThe process 400 of the method for access point, comprising the following steps:
Step 401, whether the access point identity for detecting the wireless access point having connected is selected.
Step 402, in response to detecting that the access point identity for the wireless access point having connected is selected, access letter is generatedBreath.
Step 403, detecting whether on the touchscreen will be where access information to the second equipment of wireless access point to be connectedDirection sliding slide.
Step 404, in response to detecting the second equipment by access information to wireless access point to be connected on the touchscreenThe slide of the direction sliding at place, generates the first slip information.
In the present embodiment, the operation of step 401-404 and the operation of step 201-204 are essentially identical, no longer superfluous hereinIt states.
Step 405, the first slip information is converted to the first coordinate information in preset coordinate system.
In the present embodiment, above-mentioned executing subject can be converted to the first slip information generated in step 404 defaultThe first coordinate information in coordinate system.
In some optional implementations of the present embodiment, above-mentioned first slip information may include the first sliding railMark.Sliding trace is considered slide of the user on above-mentioned touch screen and is formed by figure.Above-mentioned preset coordinateSystem may include device coordinate system, and device coordinate system is referred to as user coordinate system.Herein, the seat of above equipment coordinate systemIt marks horizontal axis and the coordinate longitudinal axis can be parallel with the adjacent two edges of above-mentioned touch screen respectively.As an example, device coordinate systemAbscissa line can be parallel with side (short side) in the width direction of above-mentioned touch screen, at this point, the coordinate of device coordinate system is verticalAxis can be parallel with side (long side) on the length direction of above-mentioned touch screen.The abscissa line of device coordinate system can also with it is upperThe side stated on the length direction of touch screen is parallel, at this point, the coordinate longitudinal axis of device coordinate system can also be with above-mentioned touch screenSide in width direction is parallel.First slip information can be converted to preset coordinate in the following way by above-mentioned executing subjectThe first coordinate information in system: above-mentioned executing subject can determine the coordinate of above-mentioned first sliding trace and above equipment coordinate systemThe first angle between horizontal axis or the coordinate longitudinal axis, angle typically refer to two straight line (or vector) intersections and are being formed by minimum justAngle.Later, above-mentioned first angle can be determined as the first coordinate information.It in this way, can be by user in touch screenOn sliding trace and device coordinate system abscissa line or the coordinate longitudinal axis between angle be determined as the first coordinate information, thusProvide a kind of characterizing method of coordinate information.
In some optional implementations of the present embodiment, above-mentioned executing subject can determine above-mentioned first sliding traceThe first angle between the abscissa line or the coordinate longitudinal axis of above equipment coordinate system, angle typically refer to two straight lines (or toAmount) intersection be formed by minimum positive angle.Later, above-mentioned executing subject can be by above-mentioned first sliding trace and above-mentioned first angleIt is determined as above-mentioned first coordinate information.It in this way, can be by the sliding trace of user on the touchscreen and device coordinateThe sliding trace of angle and user on the touchscreen between the abscissa line or the coordinate longitudinal axis of system is determined as the first coordinate letterBreath, to provide the characterizing method of another coordinate information.
In some optional implementations of the present embodiment, above-mentioned first slip information may include the first sliding starting pointWith the first sliding terminal.Sliding starting point is usually a slide in the process to the pressing starting point of touch screen, slides starting pointCommonly used in characterizing the position of networking gear.Sliding terminal is usually a slide in the process to the pressing knot of touch screenBeam spot, position of the sliding terminal commonly used in characterization to networking gear.Above-mentioned preset coordinate system may include world coordinate system.GenerationBoundary's coordinate system is the absolute coordinate system of system, and the coordinate of all the points is all with this on picture before not establishing user coordinate systemThe origin of coordinate system determines respective positions.Above-mentioned executing subject can be in the following way by above-mentioned first slip informationBe converted to the first coordinate information in above-mentioned preset coordinate system: above-mentioned executing subject can be converted to above-mentioned first sliding starting pointThe first coordinate starting point in above-mentioned world coordinate system and above-mentioned first sliding terminal is converted in above-mentioned world coordinate systemFirst coordinate terminal.The process that starting point is converted in above-mentioned world coordinate system, which will be slided, can be regarded as sitting in the above-mentioned worldThe process of coordinate points corresponding to the position for the networking gear that sliding starting point is characterized is determined in mark system;Terminal will be slided upperStating the process converted in world coordinate system can be regarded as determining what sliding terminal was characterized in above-mentioned world coordinate systemThe process of coordinate points corresponding to position to networking gear.Later, above-mentioned executing subject can be by above-mentioned first coordinate starting pointIt is determined as above-mentioned first coordinate information with above-mentioned first coordinate terminal.It in this way, can be whole by sliding starting point and slidingThe coordinate starting point and coordinate terminal that point is transformed into world coordinate system are determined as the first coordinate information, to provide another seatMark the characterizing method of information.
Step 406, the second coordinate information for whether receiving the transmission of the second equipment within a preset period of time determined.
In the present embodiment, whether above-mentioned executing subject can determine to receive within a preset period of time and above-mentioned set wait networkThe second coordinate information that preparation is sent.It is customized that above-mentioned preset time period can be user, for example, 10 seconds, 30 seconds.It is above-mentioned to evenNet equipment can generate the second slip information in response to detecting slide on the touchscreen;It later, can be by above-mentionedTwo slip informations are converted to the second coordinate information in above-mentioned preset coordinate system, can then send above-mentioned second coordinate informationTo above-mentioned executing subject.
In some optional implementations of the present embodiment, the second received coordinate information may include the second folderAngle.Above-mentioned second slip information may include the second sliding trace.It can be in the following way by above-mentioned second to networking gearSlip information is converted to the second coordinate information in above-mentioned preset coordinate system: can be by above-mentioned second sliding trace and above equipmentThe second angle between the abscissa line or the coordinate longitudinal axis of coordinate system is determined as the second coordinate information.It should be noted that if theOne angle is the angle of the abscissa line of the first sliding trace and above equipment coordinate system, then the second angle is the second sliding traceWith the angle of the abscissa line of above equipment coordinate system;If the first angle is the seat of the first sliding trace Yu above equipment coordinate systemThe angle of the longitudinal axis is marked, then the second angle is the angle of the coordinate longitudinal axis of the second sliding trace and above equipment coordinate system.
In some optional implementations of the present embodiment, the second received coordinate information may include the second folderAngle and the second sliding trace.Above-mentioned second slip information may include the second sliding trace.It can be by as follows to networking gearAbove-mentioned second slip information is converted to the second coordinate information in above-mentioned preset coordinate system by mode: can determine that above-mentioned second is slidingThe second angle between dynamic rail mark and the abscissa line or the coordinate longitudinal axis of above equipment coordinate system, later by the second angle and secondSliding trace is determined as the second coordinate information.It should be noted that if the first angle is that the first sliding trace and above equipment are satThe angle of the abscissa line of system is marked, then the second angle is the folder of the abscissa line of the second sliding trace and above equipment coordinate systemAngle;If the first angle is the angle of the coordinate longitudinal axis of the first sliding trace and above equipment coordinate system, the second angle is secondThe angle of the coordinate longitudinal axis of sliding trace and above equipment coordinate system.
In some optional implementations of the present embodiment, the second received coordinate information may include that the world is satThe second coordinate starting point and the second coordinate terminal in mark system.Second slip information may include the second sliding starting point and the second slidingTerminal.Above-mentioned second slip information can be converted to second in above-mentioned preset coordinate system in the following way to networking gearCoordinate information: can be converted to the second coordinate starting point in above-mentioned world coordinate system for the second sliding starting point to networking gear, withAnd the second sliding terminal is converted into the second coordinate terminal in above-mentioned world coordinate system.It later, can be by above-mentioned second coordinateStarting point and above-mentioned second coordinate terminal are determined as the second coordinate information.
Step 407, if receiving the second coordinate information of the second equipment transmission within a preset period of time, it is determined that first sitsWhether mark information matches with the second coordinate information.
In the present embodiment, if determining to be received within a preset period of time to networking gear transmission in a step 406Second coordinate information, then above-mentioned executing subject can determine above-mentioned first coordinate information and above-mentioned second coordinate information whetherMatch.Above-mentioned executing subject determines that above-mentioned first coordinate information can be regarded as with the whether matched process of above-mentioned second coordinate informationDetermine whether the difference between above-mentioned first coordinate information and above-mentioned second coordinate information is less than the process of preset discrepancy threshold.
It is above-mentioned if above-mentioned second coordinate information includes the second angle in some optional implementations of the present embodimentFirst coordinate information include the first angle, then above-mentioned executing subject can be determined as follows above-mentioned first coordinate information withWhether above-mentioned second coordinate information matches: above-mentioned executing subject can determine above-mentioned first angle angle and above-mentioned second angleThe difference of angle whether be less than preset differential seat angle threshold value (for example, 1 degree, 3 degree etc.).If the angle of above-mentioned first angle with it is above-mentionedThe difference of the angle of second angle be less than above-mentioned differential seat angle threshold value, then above-mentioned executing subject can determine above-mentioned first coordinate information withAbove-mentioned second coordinate information matching.As an example, the angle of the second angle is 40 degree, in advance if the angle of the first angle is 38 degreeIf differential seat angle threshold value be 3 degree, then above-mentioned executing subject can determine 38 degree of the angle of the first angle and the angle of the second angle2 degree of difference of 40 degree of degree are less than 3 degree of preset differential seat angle threshold value, may thereby determine that the first coordinate information and the second coordinate informationMatch.In this way, the first angle and recipient that can be slided on networking gear by determining sender existWhether the differential seat angle between second angle to be slided on networking gear is less than preset differential seat angle threshold value, to provideA kind of whether matched mode of determining coordinate information.
In some optional implementations of the present embodiment, if above-mentioned second coordinate information include the second sliding trace andSecond angle, above-mentioned first coordinate information include the first sliding trace and the first angle, then above-mentioned executing subject can be by such asUnder type determines whether above-mentioned first coordinate information matches with above-mentioned second coordinate information: above-mentioned executing subject can determine above-mentionedWhether the difference of the length of the first sliding trace and the length of above-mentioned second sliding trace is less than preset length difference threshold value (for example, 1Centimetre, 2 centimetres etc.), and to determine whether the difference of the angle of above-mentioned first angle and the angle of above-mentioned second angle is less than defaultDifferential seat angle threshold value (for example, 1 degree, 3 degree etc.).If the length of the length of above-mentioned first sliding trace and above-mentioned second sliding traceDifference be less than above-mentioned length difference threshold value and above-mentioned first angle angle and above-mentioned second angle angle difference less than above-mentionedDifferential seat angle threshold value, then above-mentioned executing subject can determine that above-mentioned first coordinate information is matched with above-mentioned second coordinate information.AsExample, if the length of the first sliding trace is 5.1 centimetres, the length of the second sliding trace is 6.3 centimetres, the angle of the first angleIt is 28.6 degree, the angle of the second angle is 30.1 degree, and preset length difference threshold value is 2 centimetres, and preset differential seat angle threshold value is 3Degree, then above-mentioned executing subject can determine that the difference of the length of the first sliding trace and the length of the second sliding trace is less than length differenceThe difference of the angle of the angle and the second angle of threshold value and the first angle is less than differential seat angle threshold value, may thereby determine that the first coordinateInformation is matched with the second coordinate information.In this way, the differential seat angle between first angle and second angle can be being determinedWhether be less than preset differential seat angle threshold value on the basis of further determine that sender is slided on networking gear firstLength between the length for the second sliding trace that the length of sliding trace and recipient are slided on to networking gear itWhether difference is less than preset length difference threshold value, to provide another determining whether matched mode of coordinate information.Compared toOnly determine whether the differential seat angle between first angle and second angle is less than the mode of preset differential seat angle threshold value, which can be withMore accurately determine whether coordinate information matches.
In some optional implementations of the present embodiment, if above-mentioned second coordinate information includes above-mentioned world coordinate systemIn the second coordinate starting point and the second coordinate terminal, above-mentioned first coordinate information include the first coordinate in above-mentioned world coordinate systemStarting point and the first coordinate terminal, then above-mentioned executing subject can be determined as follows above-mentioned first coordinate information and above-mentioned theWhether two coordinate informations match: above-mentioned executing subject can determine between above-mentioned first coordinate starting point and above-mentioned second coordinate starting pointDistance whether be less than preset first distance difference threshold value, and determine above-mentioned first coordinate terminal and above-mentioned second coordinate terminalThe distance between whether be less than preset second range difference threshold value.If above-mentioned first coordinate starting point and above-mentioned second coordinate starting point itBetween distance be less than between above-mentioned first distance difference threshold value and above-mentioned first coordinate terminal and above-mentioned second coordinate terminal away fromFrom above-mentioned second range difference threshold value is less than, then above-mentioned executing subject can determine above-mentioned first coordinate information and above-mentioned second coordinateInformation matches.In this way, it can compare between the first coordinate starting point and the second coordinate starting point in world coordinate systemDistance, and comparison at a distance from the first coordinate terminal in world coordinate system is between the second coordinate terminal, so that it is determined thatWhether coordinate information matches, and provides another and determines the whether matched mode of coordinate information.
Step 408, if the first coordinate information is matched with the second coordinate information, access information is sent to the second equipment, withThe wireless access point for keeping the connection of the second equipment selected.
In the present embodiment, if determining above-mentioned first coordinate information and above-mentioned second coordinate information in step 407Match, then above-mentioned executing subject can send above-mentioned access information to networking gear to above-mentioned.It is above-mentioned to be received to networking gearAfter above-mentioned access information, above-mentioned access information can be parsed to obtain the access point identity of selected wireless access pointAnd access pin.The process parsed to above-mentioned access information, which can be, utilizes solution corresponding to above-mentioned preset data formatThe process that code mode is decoded data.Later, above-mentioned can use to networking gear parses obtained wireless access pointAccess point identity connects above-mentioned selected wireless access point with access pin.
Figure 4, it is seen that being used to connect wireless access point in the present embodiment compared with the corresponding embodiment of Fig. 2Method process 400 embody the first slip information is converted to the first coordinate information in preset coordinate system step 405,It determines the step 406 for whether receiving the second coordinate information of the second equipment transmission within a preset period of time and determines that first sitsThe step 407 whether mark information matches with the second coordinate information.The scheme of the present embodiment description is converted to slip information as a result,Coordinate information is compared using the coordinate information being transformed into preset coordinate system, can be accurately determined in networking gearOn slip gesture whether match with to the slip gesture on networking gear.
With further reference to Fig. 5, it illustrates the processes of another embodiment of the method for connecting wireless access point500.The method for being used to connect wireless access point is usually applied to the second equipment of wireless access point to be connected.This is used to connectThe process 500 of the method for wireless access point, comprising the following steps:
Step 501, it detects whether on the touchscreen by the access point identity of wireless access point to be connected to target directionThe slide of sliding.
In the present embodiment, it (such as shown in FIG. 1 is set wait network for connecting the executing subject of the method for wireless access pointIt is standby) it can detecte whether user is slided the access point identity of wireless access point to be connected to target direction on above-mentioned touch screenDynamic slide.Target direction can be from the networking gear for being already connected to above-mentioned wireless access point and be directed toward above-mentioned execution masterThe direction of body (to networking gear).Above-mentioned slide can be to the access point identity of above-mentioned wireless access point to be connectedDrag operation.
Step 502, in response to detecting on the touchscreen by the access point identity of wireless access point to be connected to targetThe slide of direction sliding, generates the second slip information.
In the present embodiment, if being detected wireless access point to be connected on above-mentioned touch screen in step 501The slide that access point identity is slided to above-mentioned target direction, for example, detect user by above-mentioned access point identity fromNetworking gear is directed toward the drag operation in the direction of above-mentioned executing subject (to networking gear), and above-mentioned executing subject can be generated theTwo slip informations.Slip information can be information relevant to slide, and herein, slip information may include sliding sideTo.Therefore, the second slip information may include the second glide direction.Second glide direction can refer in the touching to networking gearIt touches and the direction for characterizing the location point to networking gear is directed toward by the location point for characterizing networking gear on screen.
Step 503, it is determined whether get the first slip information from the first equipment for having connected wireless access point.
In the present embodiment, above-mentioned executing subject may determine whether to set from the networking for having connected above-mentioned wireless access pointIt is standby to get the first slip information.Above-mentioned networking gear can be in response to detecting that slide on the touchscreen generates theOne slip information, for example, above-mentioned networking gear can be in response on the touchscreen by the access of wireless access point to be connectedThe drag operation that direction where from information to above-mentioned executing subject is pulled generates the first slip information.First slip information canTo include the first glide direction.First glide direction can refer on the touch screen of networking gear by having networked for characterizingThe location point of equipment is directed toward the direction for characterizing the location point to networking gear.
Step 504, in response to determining to get the first slip information from the first equipment for having connected wireless access point, reallyWhether fixed second slip information is generated in the preset time period after the generation of the first slip information.
In the present embodiment, if determining to obtain from the networking gear for having connected above-mentioned wireless access point in step 503Above-mentioned first slip information is got, above-mentioned executing subject can determine whether above-mentioned second slip information is in above-mentioned first slidingIt is generated in preset time period after information generation.I.e. above-mentioned executing subject can determine the life of above-mentioned second slip informationWhether the time difference at time and the generation time of above-mentioned first slip information is less than above-mentioned preset time period.Above-mentioned preset timeIt is customized that section can be user, for example, 10 seconds, 30 seconds.
Step 505, in response to getting the first slip information from the first equipment for having connected wireless access point and determiningSecond slip information be the first slip information generation after preset time period in it is generated, determine the first slip information withWhether the second slip information matches.
In the present embodiment, if determining to obtain from the networking gear for having connected above-mentioned wireless access point in step 503It gets above-mentioned first slip information and determines that above-mentioned second slip information is raw in above-mentioned first slip information in step 504At generated in preset time period later, above-mentioned executing subject can determine above-mentioned first slip information and above-mentioned second slidingWhether dynamic information matches.Specifically, above-mentioned first slip information may include the first glide direction.First glide direction can beRefer to and is directed toward by the location point for characterizing networking gear for characterizing to networking gear on the touch screen of networking gearThe direction of location point.Usually, glide direction may include direction and angle, for example, 30 degree of north by east, 68 degree of south by west.Above-mentioned executing subject can determine whether the direction in the first glide direction and the direction in the second glide direction are identical, and reallyWhether the angle difference between the angle in angle and the second glide direction in fixed first glide direction is less than preset angleDifference threshold.If the direction in the first glide direction is identical as the direction in the second glide direction and the first glide direction in angleThe angle difference between angle in degree and the second glide direction is less than preset angle difference threshold value, then above-mentioned executing subject canTo determine that the first slip information is matched with the second slip information.As an example, if the first glide direction is 37.5 degree of north by east, theTwo glide directions are 35.3 degree of north by east, and preset angle difference threshold value is 3 degree, then above-mentioned executing subject can determine that first is slidingDynamic information is matched with the second slip information.
Step 506, it in response to determining that the first slip information is matched with the second slip information, obtains and accesses from the first equipmentInformation.
In the present embodiment, if determining above-mentioned first slip information and above-mentioned second slip information in step 505Match, above-mentioned executing subject can obtain access information from above-mentioned networking gear.Above-mentioned access information can be above-mentioned networkedIt is generated that equipment detects that the access point identity for the wireless access point having connected is selected.Above-mentioned access information may include nothingThe access point identity and access pin of line access point.Above-mentioned executing subject, which can use access pin, may be coupled to wireless accessPoint.Above-mentioned networking gear can access point identity to above-mentioned wireless access point and access pin be packaged binding to rawAt access information.Binding is packaged to typically refer to that access point identity and access pin are stored and sealed with preset data formatDress.Herein, networking gear and carried out data transmission to networking gear usually using identical Data Transport Protocol.It is above-mentioned pre-If data format be usually used in data format defined in Data Transport Protocol.Networking gear can useIt states coding mode corresponding to preset data format to encode data, and is sent to is set wait network in binary formIt is standby, it can use decoding process corresponding to above-mentioned preset data format to networking gear and data be decoded, to obtainGet access information.
Step 507, the access pin of wireless access point is obtained from access information to connect wireless access point.
In the present embodiment, above-mentioned executing subject can parse above-mentioned access information to obtain above-mentioned wireless access pointAccess point identity and access pin.The process that above-mentioned executing subject parses above-mentioned access information can be using above-mentionedThe process that decoding process corresponding to preset data format is decoded data.Later, above-mentioned executing subject can useThe access point identity for parsing obtained wireless access point connects above-mentioned wireless access point with access pin.
With further reference to Fig. 6, it illustrates the processes of the further embodiment of the method for connecting wireless access point600.The method for being used to connect wireless access point is usually applied to the second equipment of wireless access point to be connected.This is used to connectThe process 600 of the method for wireless access point, comprising the following steps:
Step 601, it detects whether on the touchscreen by the access point identity of wireless access point to be connected to target directionThe slide of sliding.
Step 602, in response to detecting on the touchscreen by the access point identity of wireless access point to be connected to targetThe slide of direction sliding, generates the second slip information.
In the present embodiment, the operation of step 601-602 and the operation of step 501-502 are essentially identical, no longer superfluous hereinIt states.
Step 603, the second slip information is converted to the second coordinate information in preset coordinate system.
In the present embodiment, above-mentioned executing subject can be converted to the second slip information generated in step 602 defaultThe second coordinate information in coordinate system.
In some optional implementations of the present embodiment, above-mentioned second slip information may include the second sliding railMark.Sliding trace is considered slide of the user on above-mentioned touch screen and is formed by figure.Above-mentioned preset coordinateSystem includes device coordinate system, and device coordinate system is referred to as user coordinate system.Herein, the coordinate of above equipment coordinate system is horizontalAxis and the coordinate longitudinal axis can be parallel with the adjacent two edges of above-mentioned touch screen respectively.As an example, the coordinate of device coordinate systemHorizontal axis can be parallel with side (short side) in the width direction of above-mentioned touch screen, at this point, the coordinate longitudinal axis of device coordinate system canWith parallel with side (long side) on the length direction of above-mentioned touch screen.The abscissa line of device coordinate system can also be with above-mentioned touchingThe side touched on the length direction of screen is parallel, at this point, the coordinate longitudinal axis of device coordinate system can also be with the width of above-mentioned touch screenSide on direction is parallel.Above-mentioned executing subject can in the following way be converted to the second slip information in preset coordinate systemThe second coordinate information: above-mentioned executing subject can determine the abscissa line of above-mentioned second sliding trace and above equipment coordinate systemOr the second angle between the coordinate longitudinal axis, angle typically refer to two straight line (or vector) intersections and are formed by minimum positive angle.ItAfterwards, above-mentioned second angle can be determined as the second coordinate information.It in this way, can be by the cunning of user on the touchscreenAngle between dynamic rail mark and the abscissa line or the coordinate longitudinal axis of device coordinate system is determined as the second coordinate information, to provideA kind of characterizing method of coordinate information.
In some optional implementations of the present embodiment, above-mentioned executing subject can determine above-mentioned second sliding traceThe second angle between the abscissa line or the coordinate longitudinal axis of above equipment coordinate system, angle typically refer to two straight lines (or toAmount) intersection be formed by minimum positive angle.Later, above-mentioned executing subject can be by above-mentioned second sliding trace and above-mentioned second angleIt is determined as above-mentioned second coordinate information.It in this way, can be by the sliding trace of user on the touchscreen and device coordinateThe sliding trace of angle and user on the touchscreen between the abscissa line or the coordinate longitudinal axis of system is determined as the second coordinate letterBreath, to provide the characterizing method of another coordinate information.
In some optional implementations of the present embodiment, above-mentioned second slip information may include the second sliding starting pointWith the second sliding terminal.Sliding starting point is usually a slide in the process to the pressing starting point of touch screen, slides starting pointCommonly used in characterizing the position of networking gear.Sliding terminal is usually a slide in the process to the pressing knot of touch screenBeam spot, position of the sliding terminal commonly used in characterization to networking gear.Above-mentioned preset coordinate system may include world coordinate system.GenerationBoundary's coordinate system is the absolute coordinate system of system, and the coordinate of all the points is all with this on picture before not establishing user coordinate systemThe origin of coordinate system determines respective positions.Above-mentioned executing subject can be in the following way by above-mentioned second slip informationBe converted to the second coordinate information in above-mentioned preset coordinate system: above-mentioned executing subject can be converted to above-mentioned second sliding starting pointThe second coordinate starting point in above-mentioned world coordinate system and above-mentioned second sliding terminal is converted in above-mentioned world coordinate systemSecond coordinate terminal.The process that starting point is converted in above-mentioned world coordinate system, which will be slided, can be regarded as sitting in the above-mentioned worldThe process of coordinate points corresponding to the position for the networking gear that sliding starting point is characterized is determined in mark system;Terminal will be slided upperStating the process converted in world coordinate system can be regarded as determining what sliding terminal was characterized in above-mentioned world coordinate systemThe process of coordinate points corresponding to position to networking gear.Later, above-mentioned executing subject can be by above-mentioned second coordinate starting pointIt is determined as above-mentioned second coordinate information with above-mentioned second coordinate terminal.It in this way, can be whole by sliding starting point and slidingThe coordinate starting point and coordinate terminal that point is transformed into world coordinate system are determined as the second coordinate information, to provide another seatMark the characterizing method of information.
Step 604, it is determined whether get the first coordinate information from the first equipment for having connected wireless access point.
In the present embodiment, above-mentioned executing subject may determine whether to set from the networking for having connected above-mentioned wireless access pointIt is standby to get the first coordinate information.Above-mentioned networking gear can be in response to detecting that slide on the touchscreen generates theOne slip information, for example, above-mentioned networking gear can be in response on the touchscreen by the access of wireless access point to be connectedThe drag operation that direction where from information to above-mentioned executing subject is pulled generates the first slip information;Later, above-mentioned to have connectedFirst slip information can be converted to the first coordinate information in preset coordinate system by net equipment.
Step 605, in response to determining to get the first coordinate information from the first equipment for having connected wireless access point, reallyWhether fixed second coordinate information is generated in the preset time period after the generation of the first coordinate information.
In the present embodiment, if determining to obtain from the networking gear for having connected above-mentioned wireless access point in step 604Above-mentioned first coordinate information is got, above-mentioned executing subject can determine whether above-mentioned second coordinate information is in above-mentioned first coordinateIt is generated in preset time period after information generation.I.e. above-mentioned executing subject can determine the life of above-mentioned second coordinate informationWhether the time difference at time and the generation time of above-mentioned first coordinate information is less than above-mentioned preset time period.Above-mentioned preset timeIt is customized that section can be user, for example, 10 seconds, 30 seconds.
Step 606, in response to getting the first coordinate information from the first equipment for having connected wireless access point and determiningSecond coordinate information be the first coordinate information generation after preset time period in it is generated, determine the first coordinate information withWhether the second coordinate information matches.
In the present embodiment, if determining to obtain from the networking gear for having connected above-mentioned wireless access point in step 604It gets above-mentioned second coordinate information and determines that above-mentioned second coordinate information is raw in above-mentioned first coordinate information in step 605At generated in preset time period later, above-mentioned executing subject can determine that above-mentioned first coordinate information and above-mentioned second is satWhether mark information matches.Above-mentioned executing subject determines above-mentioned first coordinate information and the whether matched mistake of above-mentioned second coordinate informationJourney can be regarded as determining whether the difference between above-mentioned first coordinate information and above-mentioned second coordinate information is less than preset differenceThe process of different threshold value.
It is above-mentioned if above-mentioned first coordinate information includes the first angle in some optional implementations of the present embodimentSecond coordinate information include the second angle, then above-mentioned executing subject can be determined as follows above-mentioned first coordinate information withWhether above-mentioned second coordinate information matches: above-mentioned executing subject can determine above-mentioned first angle angle and above-mentioned second angleThe difference of angle whether be less than preset differential seat angle threshold value (for example, 1 degree, 3 degree etc.).If the angle of above-mentioned first angle with it is above-mentionedThe difference of the angle of second angle be less than above-mentioned differential seat angle threshold value, then above-mentioned executing subject can determine above-mentioned first coordinate information withAbove-mentioned second coordinate information matching.As an example, the angle of the second angle is 40 degree, in advance if the angle of the first angle is 38 degreeIf differential seat angle threshold value be 3 degree, then above-mentioned executing subject can determine 38 degree of the angle of the first angle and the angle of the second angle2 degree of difference of 40 degree of degree are less than 3 degree of preset differential seat angle threshold value, may thereby determine that the first coordinate information and the second coordinate informationMatch.In this way, the first angle and recipient that can be slided on networking gear by determining sender existWhether the differential seat angle between second angle to be slided on networking gear is less than preset differential seat angle threshold value, to provideA kind of whether matched mode of determining coordinate information.
In some optional implementations of the present embodiment, if above-mentioned first coordinate information include the first sliding trace andFirst angle, above-mentioned second coordinate information include the second sliding trace and the second angle, then above-mentioned executing subject can be by such asUnder type determines whether above-mentioned first coordinate information matches with above-mentioned second coordinate information: above-mentioned executing subject can determine above-mentionedWhether the difference of the length of the first sliding trace and the length of above-mentioned second sliding trace is less than preset length difference threshold value (for example, 1Centimetre, 2 centimetres etc.), and to determine whether the difference of the angle of above-mentioned first angle and the angle of above-mentioned second angle is less than defaultDifferential seat angle threshold value (for example, 1 degree, 3 degree etc.).If the length of the length of above-mentioned first sliding trace and above-mentioned second sliding traceDifference be less than above-mentioned length difference threshold value and above-mentioned first angle angle and above-mentioned second angle angle difference less than above-mentionedDifferential seat angle threshold value, then above-mentioned executing subject can determine that above-mentioned first coordinate information is matched with above-mentioned second coordinate information.AsExample, if the length of the first sliding trace is 5.1 centimetres, the length of the second sliding trace is 6.3 centimetres, the angle of the first angleIt is 28.6 degree, the angle of the second angle is 30.1 degree, and preset length difference threshold value is 2 centimetres, and preset differential seat angle threshold value is 3Degree, then above-mentioned executing subject can determine that the difference of the length of the first sliding trace and the length of the second sliding trace is less than length differenceThe difference of the angle of the angle and the second angle of threshold value and the first angle is less than differential seat angle threshold value, may thereby determine that the first coordinateInformation is matched with the second coordinate information.In this way, the differential seat angle between first angle and second angle can be being determinedWhether be less than preset differential seat angle threshold value on the basis of further determine that sender is slided on networking gear firstLength between the length for the second sliding trace that the length of sliding trace and recipient are slided on to networking gear itWhether difference is less than preset length difference threshold value, to provide another determining whether matched mode of coordinate information.Compared toOnly determine whether the differential seat angle between first angle and second angle is less than the mode of preset differential seat angle threshold value, which can be withMore accurately determine whether coordinate information matches.
In some optional implementations of the present embodiment, if above-mentioned first coordinate information includes above-mentioned world coordinate systemIn the first coordinate starting point and the first coordinate terminal, above-mentioned second coordinate information include the second coordinate in above-mentioned world coordinate systemStarting point and the second coordinate terminal, then above-mentioned executing subject can be determined as follows above-mentioned first coordinate information and above-mentioned theWhether two coordinate informations match: above-mentioned executing subject can determine between above-mentioned first coordinate starting point and above-mentioned second coordinate starting pointDistance whether be less than preset first distance difference threshold value, and determine above-mentioned first coordinate terminal and above-mentioned second coordinate terminalThe distance between whether be less than preset second range difference threshold value.If above-mentioned first coordinate starting point and above-mentioned second coordinate starting point itBetween distance be less than between above-mentioned first distance difference threshold value and above-mentioned first coordinate terminal and above-mentioned second coordinate terminal away fromFrom above-mentioned second range difference threshold value is less than, then above-mentioned executing subject can determine above-mentioned first coordinate information and above-mentioned second coordinateInformation matches.In this way, it can compare between the first coordinate starting point and the second coordinate starting point in world coordinate systemDistance, and comparison at a distance from the first coordinate terminal in world coordinate system is between the second coordinate terminal, so that it is determined thatWhether coordinate information matches, and provides another and determines the whether matched mode of coordinate information.
Step 607, it in response to determining that the first coordinate information is matched with the second coordinate information, obtains and accesses from the first equipmentInformation.
In the present embodiment, if determining above-mentioned first coordinate information and above-mentioned second coordinate information in step 606Match, above-mentioned executing subject can obtain access information from above-mentioned networking gear.Above-mentioned access information can be above-mentioned networkedIt is generated that equipment detects that the access point identity for the wireless access point having connected is selected.Above-mentioned access information may include nothingThe access point identity and access pin of line access point.Above-mentioned executing subject can use access pin and be connected to wireless access point.Above-mentioned networking gear can access point identity to above-mentioned wireless access point and access pin be packaged binding to generateAccess information.Binding is packaged to typically refer to that access point identity and access pin are stored and sealed with preset data formatDress.Herein, networking gear and carried out data transmission to networking gear usually using identical Data Transport Protocol.It is above-mentioned pre-If data format be usually used in data format defined in Data Transport Protocol.Networking gear can useIt states coding mode corresponding to preset data format to encode data, and is sent to is set wait network in binary formIt is standby, it can use decoding process corresponding to above-mentioned preset data format to networking gear and data be decoded, to obtainGet access information.
Step 608, the access pin of wireless access point is obtained from access information to connect wireless access point.
In the present embodiment, the operation of step 608 and the operation of step 507 are essentially identical, and details are not described herein.
From fig. 6 it can be seen that being used to connect wireless access point in the present embodiment compared with the corresponding embodiment of Fig. 5Method process 600 embody the second slip information is converted to the second coordinate information in preset coordinate system step 603,Determine whether to get the step 604 of the first coordinate information from the first equipment for having connected wireless access point, determine the second coordinateWhether information is step 605 generated and determining first coordinate in the preset time period after the generation of the first coordinate informationThe step 606 whether information matches with the second coordinate information.Slip information is converted to seat by the scheme of the present embodiment description as a result,Information is marked, is compared, can be accurately determined on networking gear using the coordinate information being transformed into preset coordinate systemSlip gesture whether match with to the slip gesture on networking gear.
Below with reference to Fig. 7, it illustrates the computer systems 700 for the electronic equipment for being suitable for being used to realize the embodiment of the present inventionStructural schematic diagram.Electronic equipment shown in Fig. 7 is only an example, function to the embodiment of the present application and should not use modelShroud carrys out any restrictions.
As shown in fig. 7, computer system 700 includes central processing unit (CPU) 701, it can be read-only according to being stored inProgram in memory (ROM) 702 or be loaded into the program in random access storage device (RAM) 703 from storage section 708 andExecute various movements appropriate and processing.In RAM 703, also it is stored with system 700 and operates required various programs and data.CPU 701, ROM 702 and RAM 703 are connected with each other by bus 704.Input/output (I/O) interface 705 is also connected to alwaysLine 704.
I/O interface 705 is connected to lower component: the importation 706 including keyboard, mouse etc.;Including such as liquid crystalShow the output par, c 707 of device (LCD) and loudspeaker etc.;Storage section 708 including hard disk etc.;And including such as LAN card,The communications portion 709 of the network interface card of modem etc..Communications portion 709 executes communication via the network of such as internetProcessing.Driver 710 is also connected to I/O interface 705 as needed.Detachable media 711, such as disk, CD, magneto-optic disk,Semiconductor memory etc. is mounted on as needed on driver 710, in order to from the computer program read thereon according to needIt is mounted into storage section 708.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart descriptionSoftware program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable mediumOn computer program, which includes the program code for method shown in execution flow chart.In such realityIt applies in example, which can be downloaded and installed from network by communications portion 709, and/or from detachable media711 are mounted.When the computer program is executed by central processing unit (CPU) 701, limited in execution the present processesAbove-mentioned function.It should be noted that the above-mentioned computer-readable medium of the application can be computer-readable signal media orComputer readable storage medium either the two any combination.Computer readable storage medium for example can be --- butBe not limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.The more specific example of computer readable storage medium can include but is not limited to: have one or more conducting wires electrical connection,Portable computer diskette, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only depositReservoir (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memoryPart or above-mentioned any appropriate combination.In this application, computer readable storage medium, which can be, any include or storesThe tangible medium of program, the program can be commanded execution system, device or device use or in connection.AndIn the application, computer-readable signal media may include in a base band or the data as the propagation of carrier wave a part are believedNumber, wherein carrying computer-readable program code.The data-signal of this propagation can take various forms, including but notIt is limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computerAny computer-readable medium other than readable storage medium storing program for executing, the computer-readable medium can send, propagate or transmit useIn by the use of instruction execution system, device or device or program in connection.Include on computer-readable mediumProgram code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc., Huo ZheshangAny appropriate combination stated.
Flow chart and block diagram in attached drawing are illustrated according to the system of various embodiments of the invention, method and computer journeyThe architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generationA part of one module, program segment or code of table, a part of the module, program segment or code include one or more useThe executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in boxThe function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actuallyIt can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuseMeaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holdingThe dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instructionCombination realize.
As on the other hand, present invention also provides a kind of computer-readable medium, which be can beInstitute in the first equipment of wireless access point or the second equipment of wireless access point to be connected is had connected described in above-described embodimentInclude;It is also possible to individualism, and without in supplying first equipment or the second equipment.Above-mentioned computer-readable medium is heldIt is loaded with one or more program, when said one or multiple programs are executed by first equipment or the second equipment, so thatFirst equipment: the access point identity in response to detecting the wireless access point having connected is selected, generates access information,In, access information includes the access point identity and access pin of selected wireless access point;In response to detecting in touch screenOn by where direction from access information to the second equipment of wireless access point to be connected sliding slide, generate first slidingInformation;If receiving the second slip information of the second equipment transmission within a preset period of time, it is determined that the first slip information and theWhether two slip informations match;If the first slip information is matched with the second slip information, access information is sent to the second equipment, withThe wireless access point for keeping the connection of the second equipment selected.Or make second equipment: on the touchscreen will in response to detectingThe slide that the access point identity of wireless access point to be connected is slided to target direction generates the second slip information;If fromThe first equipment for having connected wireless access point gets the first slip information and determines that the second slip information is in the first slidingIt is generated in preset time period after information generation, it is determined that whether the first slip information matches with the second slip information;If the first slip information is matched with the second slip information, access information is obtained from the first equipment, wherein access information includes nothingThe access pin of line access point;The access pin of wireless access point is obtained from access information to connect wireless access point.
Above description is only presently preferred embodiments of the present invention and the explanation to institute's application technology principle.Those skilled in the artMember is it should be appreciated that invention scope involved in the present invention, however it is not limited to technology made of the specific combination of above-mentioned technical characteristicScheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent featureAny combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed in the present inventionCan technical characteristic replaced mutually and the technical solution that is formed.