CN109219108B - Method and apparatus for connecting wireless access points - Google Patents

Method and apparatus for connecting wireless access points Download PDF

Info

Publication number
CN109219108B
CN109219108B CN201811436793.6A CN201811436793A CN109219108B CN 109219108 B CN109219108 B CN 109219108B CN 201811436793 A CN201811436793 A CN 201811436793A CN 109219108 B CN109219108 B CN 109219108B
Authority
CN
China
Prior art keywords
access point
information
wireless access
networked
response
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811436793.6A
Other languages
Chinese (zh)
Other versions
CN109219108A (en
Inventor
梁文昭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shaoxing Jilian Technology Co ltd
Original Assignee
Shanghai Lianshang Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Lianshang Network Technology Co Ltd filed Critical Shanghai Lianshang Network Technology Co Ltd
Priority to CN201811436793.6A priority Critical patent/CN109219108B/en
Publication of CN109219108A publication Critical patent/CN109219108A/en
Application granted granted Critical
Publication of CN109219108B publication Critical patent/CN109219108B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters
    • H04W4/026Services making use of location information using location based information parameters using orientation information, e.g. compass
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

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

Abstract

The embodiment of the application discloses a method and equipment for connecting a wireless access point. One embodiment of the method comprises: generating access information in response to detecting that an access point identification of a connected wireless access point is selected; in response to detecting the preset instruction, determining at least one second device to be connected with the wireless access point, and determining a relative position between the first device and the at least one second device; identifying coordinate points for characterizing the first device and at least one second device in a preset coordinate system based on the relative positions; generating vector connection information in response to detecting that a user performs an operation of connecting coordinate points; and sending the access information to the second equipment positioned in the information transmission direction, so that at least one second equipment receiving the access information is connected with the selected wireless access point. This embodiment reduces the networking steps for the user so that the device connects quickly to the wireless access point.

Description

Method and apparatus for connecting wireless access points
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a method and equipment for connecting wireless access points.
Background
At present, with the wide use of mobile terminals such as mobile phones, tablet computers, smart home devices and the like, wireless access points become an indispensable part of the life of people. When a user goes to a new location, it is often necessary to connect the mobile terminal to a wireless access point of the location. At this time, the user usually inquires about an access password of a wireless access point to which the location can be connected, and manually inputs the access password to connect to the wireless access point of the location. Since the access password is usually composed of more specific characters due to network security, the user is prone to error and takes a long time to input the complicated password.
Disclosure of Invention
The embodiment of the application provides a method and equipment for connecting a wireless access point.
In a first aspect, an embodiment of the present application provides a method for connecting a wireless access point, where the method is applied to a first device connected to the wireless access point, and the method includes: generating access information in response to detecting that an access point identifier of a connected wireless access point is selected, wherein the access information comprises the access point identifier and an access password of the selected wireless access point; in response to detecting the preset instruction, determining at least one second device to be connected with the wireless access point, and determining a relative position between the first device and the at least one second device; identifying coordinate points for characterizing the first device and at least one second device in a preset coordinate system based on the relative positions; generating vector connection information in response to detecting that a user performs an operation of connecting coordinate points, wherein the vector connection information includes an information transmission direction; and sending the access information to the second equipment positioned in the information transmission direction, so that at least one second equipment receiving the access information is connected with the selected wireless access point.
In some embodiments, in response to detecting the preset instruction, determining at least one second device to which the wireless access point is to be connected comprises: in response to receiving a connection request sent by the electronic device for connecting the wireless access point, the electronic device sending the connection request is determined as a second device to be connected with the wireless access point.
In some embodiments, the first apparatus comprises an imaging device; and in response to detecting the preset instruction, determining at least one second device to be connected to the wireless access point, including: in response to detecting a photographing operation of the electronic device by the user using the image pickup apparatus, the photographed electronic device is determined as a second device to which the wireless access point is to be connected.
In some embodiments, determining a relative position between the first device and the at least one second device comprises: the relative position between the first device and the at least one second device is determined by means of infrared sensing.
In some embodiments, the origin of coordinates of the coordinate system is used to characterize the first device, and coordinate points of the coordinate system other than the origin of coordinates are used to characterize the at least one second device, respectively; and generating vector connection information in response to detecting that the user performs an operation of connecting the coordinate points, including: in response to detecting that the user performs an operation of connecting the origin of coordinates and at least one of the other coordinate points, vector connection information is generated.
In some embodiments, the vector connection information further comprises an information transmission distance; and transmitting the access information to a second device located in the information transmission direction, including: and sending the access information to a second device which is positioned in the information transmission direction and is at a position with a distance from the first device as the information transmission distance.
In some embodiments, the vector connection information further comprises a device identification of the second device; and the method further comprises: presenting a device identification of the second device; and identifying the equipment identification of the second equipment in a preset mode in response to receiving success information which is sent by the second equipment and used for representing the successful connection of the wireless access point.
In some embodiments, the access information further comprises encryption information; and transmitting access information to the second devices located in the information transmission direction, so that at least one second device receiving the access information connects to the selected wireless access point, comprising: and sending the access information to the second equipment positioned in the information transmission direction, so that the second equipment receiving the access information can be connected with the selected wireless access point after decrypting the encrypted information.
In a second aspect, an embodiment of the present application provides a method for connecting a wireless access point, which is applied to a second device to be connected with the wireless access point, and the method includes: receiving access information sent by first equipment connected with a wireless access point, wherein the access information comprises an access point identifier and an access password of the selected wireless access point; and connecting the selected wireless access points according to the access point identification and the access password.
In some embodiments, prior to receiving the access information transmitted by the first device connected to the wireless access point, the method further comprises: in response to detecting that a user performs a preset operation, determining at least one first device connected with a wireless access point, and determining a relative position between a second device and the at least one first device; identifying coordinate points for characterizing the second device and at least one coordinate point of the first device in a preset coordinate system based on the relative positions; generating vector connection information in response to detecting that a user performs an operation of connecting coordinate points, wherein the vector connection information includes an information transmission direction; a connection request for connecting to the wireless access point is sent to a first device located in the information transfer direction.
In some embodiments, the second apparatus comprises an image capture device; and in response to detecting that the user performs a preset operation, determining at least one first device connected to the wireless access point, including: in response to detecting a photographing operation of a user on the electronic apparatus with the image pickup device, the photographed electronic apparatus is determined as a first apparatus to which the wireless access point has been connected.
In some embodiments, determining the relative position between the second device and the at least one first device comprises: the relative position between the second device and the at least one first device is determined by means of infrared sensing.
In some embodiments, the origin of coordinates of the coordinate system is used to characterize the second device, and coordinate points other than the origin of coordinates of the coordinate system are respectively used to characterize the at least one first device; and generating vector connection information in response to detecting that the user performs an operation of connecting the coordinate points, including: in response to detecting that the user performs an operation of connecting the origin of coordinates and at least one of the other coordinate points, vector connection information is generated.
In some embodiments, the vector connection information further comprises an information transmission distance; and transmitting a connection request for connecting to the wireless access point to the first device located in the information transmission direction, including: and sending a connection request for connecting the wireless access point to a first device which is positioned in the information transmission direction and is at a distance of the information transmission distance from a second device.
In some embodiments, the vector connection information further comprises a device identification of the first device; and the method further comprises: presenting a device identification of a first device; and in response to determining that the selected wireless access point is successfully connected according to the access information sent by the first device, sending success information for representing the successful connection of the wireless access point to the first device, and identifying the device identification of the first device in a preset mode.
In some embodiments, the access information further comprises encryption information; and after receiving the access information transmitted by the first device connected to the wireless access point, the method further comprises: and decrypting the encrypted information to obtain the access point identification and the access password.
In a third aspect, an embodiment of the present application provides an electronic device, including: one or more processors; a storage device, on which one or more programs are stored, which, when executed by the one or more processors, cause the one or more processors to implement the method as described in any implementation manner of the first aspect.
In a fourth aspect, an embodiment of the present application provides an electronic device, including: one or more processors; a storage device, on which one or more programs are stored, which, when executed by the one or more processors, cause the one or more processors to implement the method as described in any implementation manner of the second aspect.
In a fifth aspect, an embodiment of the present application provides a system, including: an electronic device as described in the third aspect and an electronic device as described in the fourth aspect.
In a sixth aspect, the present application provides a computer-readable medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the method as described in any implementation manner of the first and second aspects.
The method and the device for connecting the wireless access point provided by the above embodiment of the present application generate the access information by responding to the first device connected with the wireless access point detecting that the access point identifier of the connected wireless access point is selected; then, in response to detecting the preset instruction, determining at least one second device to be connected with the wireless access point, and determining a relative position between the first device and the at least one second device; then, based on the relative position, identifying a coordinate point for representing the first equipment and a coordinate point of at least one second equipment in a preset coordinate system; then, in response to detecting that the user performs an operation of connecting the coordinate points, generating vector connection information including an information transmission direction; and finally, sending the access information to the second equipment positioned in the information transmission direction, so that at least one second equipment receiving the access information is connected with the selected wireless access point. The networking mode can locate the second equipment to be connected with the wireless access point through the preset instruction and send the access password to the located second equipment, so that the networking steps of a user can be reduced, and the equipment can be quickly connected with the wireless access point.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram to which some embodiments of the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a method for connecting to a wireless access point according to the present application;
FIG. 3 is a schematic diagram of one application scenario of a method for connecting a wireless access point according to the present application;
FIG. 4 is a flow diagram of yet another embodiment of a method for connecting to a wireless access point according to the present application;
FIG. 5 is a flow diagram of another embodiment of a method for connecting to a wireless access point according to the present application;
FIG. 6 is a schematic block diagram of a computer system suitable for use in implementing an electronic device according to embodiments of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 illustrates an exemplary system architecture 100 to which embodiments of the method for connecting wireless access points of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include first devices 1011, 1012, 1013 of connected wireless access points, a network 102, and second devices 1031, 1032, 1033 of to-be-connected wireless access points. Wherein the network 102 is to provide a medium for communication links between the first devices 1011, 1012, 1013 and the second devices 1031, 1032, 1033. Network 102 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
It should be noted that, in the following, a first device of the connected wireless access point is represented by a connected device, and a second device of the to-be-connected wireless access point is represented by a to-be-connected device.
A user may interact with the devices to be networked 1031, 1032, 1033 over the network 102 using the networked devices 1011, 1012, 1013, to send or receive messages, etc. Various communication client applications, such as a networking application, a wireless access point sharing application, a wireless access point management application, a web browser application, a shopping application, a searching application, social platform software, etc., may be installed on the networked devices 1011, 1012, 1013 and the devices 1031, 1032, 1033 to be networked.
The networked devices 1011, 1012, 1013 may be electronic devices that support wireless access point connections, such as electronic devices that send access information to the devices 1031, 1032, 1033 to be networked. The connected devices 1011, 1012, 1013 may generate access information upon detecting that an access point identification of a connected wireless access point is selected; then, when a preset instruction is detected, determining at least one device to be networked of the wireless access point to be connected, and determining the relative position between the networked device and the at least one device to be networked; then, based on the relative position, identifying a coordinate point for representing the networked equipment and a coordinate point of at least one equipment to be networked in a preset coordinate system; then, in response to detecting that the user performs an operation of connecting the coordinate points, generating vector connection information including an information transmission direction; and finally, sending access information to the equipment to be networked positioned in the information transmission direction, so that the at least one equipment to be networked receiving the access information is connected with the selected wireless access point.
The networked devices 1011, 1012, 1013 may be hardware or software. When the networked devices 1011, 1012, 1013 are hardware, they may be various electronic devices having a display screen and supporting wireless access point connections, including but not limited to smartphones, smartwatches, e-book readers, MP3 players (Moving Picture Experts group Audio Layer III, motion Picture Experts compression standard Audio Layer 3), MP4 players (Moving Picture Experts group Audio Layer IV, motion Picture Experts compression standard Audio Layer 4), laptop portable computers, and the like. When the networked devices 1011, 1012, 1013 are software, they may be installed in the electronic devices listed above. It may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
The devices 1031, 1032, 1033 to be networked may be electronic devices that support wireless access point connections, such as electronic devices that receive access information transmitted by the networked devices 1011, 1012, 1013. The devices 1031, 1032 and 1033 to be networked can receive the access information sent by the networked devices, wherein the access information comprises the access point identification and the access password of the selected wireless access point; the wireless access point may then be connected based on the access point identification and the access password of the wireless access point.
It should be noted that the method for connecting a wireless access point provided by the embodiment of the present application may be performed by the networked devices 1011, 1012, 1013, or may be performed by the devices 1031, 1032, 1033 to be networked.
It should be noted that the devices 1031, 1032, 1033 to be networked may be hardware or software. When the devices 1031, 1032, 1033 to be networked are hardware, they may be various electronic devices having a display screen and supporting wireless access point connection, including but not limited to smart phones, smart watches, e-book readers, MP3 players (Moving picture Experts Group Audio Layer III, motion picture Experts compression standard Audio Layer 3), MP4 players (Moving picture Experts Group Audio Layer IV, motion picture Experts compression standard Audio Layer 4), laptop computers, and the like. When the devices to be networked 1031, 1032, 1033 are software, they may be installed in the electronic devices listed above. It may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
It should be understood that the number of networked devices, networks, and devices to be networked in fig. 1 is merely illustrative. There may be any number of networked devices, networks, and devices to be networked, as desired for an implementation.
With continued reference to fig. 2, a flow 200 of one embodiment of a method for connecting a wireless access point in accordance with the present application is shown. The method for connecting a wireless access point is generally applied to a first device (networked device) to which a wireless access point is connected. The method for connecting the wireless access point comprises the following steps:
step 201, it is detected whether the access point id of the connected wireless access point is selected.
In this embodiment, the executing entity of the method for connecting a wireless access point (e.g., the networked device shown in fig. 1) may detect whether the access point identification of the connected wireless access point is selected. The access point identification is typically referred to as the access point name. The execution body may determine whether the access point identifier is selected by detecting whether a user performs a preset operation (e.g., a click operation or a drag operation) on the access point identifier of the connected wireless access point. If the user performs a preset operation on the access point identifier, it may be determined that the access point identifier is selected.
Access information is generated in response to detecting that an access point identification of a connected wireless access point is selected, step 202.
In this embodiment, if it is detected in step 201 that the access point identifier of the connected wireless access point is selected, the executing entity may generate the access information. The access information may include an access point identification and an access password of the selected wireless access point. The electronic device may connect to the selected wireless access point using the access code. The executing body can perform packaging and binding on the access point identification and the access password of the selected wireless access point so as to generate the access information. The bundled packet generally means that the access point identifier and the access password are stored and encapsulated in a preset data format. Here, the networked device and the device to be networked generally use the same data transfer protocol for data transfer. The preset data format is a data format defined in the used data transmission protocol. The networked device may encode data in an encoding mode corresponding to the preset data format and send the encoded data to the device to be networked in a binary form, and the device to be networked may decode the data in a decoding mode corresponding to the preset data format, thereby obtaining the access information.
Step 203, determining whether a preset instruction is detected.
In this embodiment, the execution subject may determine whether a preset instruction is detected. The preset instruction may be an instruction issued by a user to perform a preset operation. The preset operation may be a receiving operation of receiving a networking request transmitted by another electronic device. The preset operation may also be a scanning operation of scanning a two-dimensional code for identifying other electronic devices.
Step 204, in response to detecting the preset instruction, determining at least one second device to be connected with the wireless access point, and determining a relative position between the first device and the at least one second device.
In this embodiment, if a preset instruction is detected in step 203, for example, an instruction issued by a user performing a preset operation is detected, the executing entity may determine at least one device to be networked to which the wireless access point is to be connected. As an example, if an instruction issued by the user clicking a receiving icon is detected, the executing entity may determine the electronic device sending the networking request as a device to be networked to which the wireless access point is to be connected, where the receiving icon is used to represent that the networking request sent by other electronic devices is received. If an instruction sent by the scanning operation of scanning the two-dimensional code for identifying other electronic devices by the user is detected, the executing body may determine the electronic device indicated by the scanned two-dimensional code as a device to be networked to which the wireless access point is to be connected.
In this embodiment, after determining at least one device to be networked, the execution body may determine a relative position between the execution body itself (a networked device) and the at least one device to be networked. Here, the execution main body may determine a relative position between the execution main body and the at least one device to be networked in an RFID (Radio Frequency Identification) tag induction manner. The RFID technology is a communication technology that can identify a specific object and read and write related data by radio signals without establishing mechanical or optical contact between the execution main body and a device to be networked. Here, the device to be networked generally comprises a radio frequency tag containing electronically stored information that can be identified by the executing entity within a few meters. The rf tag may be embedded within the device to be networked without being within the line of sight of the identifier of the executing agent.
In some optional implementations of the embodiment, the execution main body may include an image pickup device. The execution main body can detect whether a user shoots other electronic equipment by using the camera device, and if the user shoots other electronic equipment by using the camera device, the execution main body can determine the shot electronic equipment as the equipment to be networked of the wireless access point to be connected. In this way, the device to be networked can be determined through a photographing operation, and thus the device to be networked can be located.
In some optional implementations of the embodiment, the execution main body may determine whether a connection request sent by the electronic device for connecting to the wireless access point is received. If a connection request for connecting a wireless access point sent by an electronic device is received, the execution main body may determine the electronic device sending the connection request as a device to be networked of the wireless access point to be connected. In some cases, a device to be networked may actively transmit a connection request for connecting a wireless access point to the execution master to access the wireless access point to which the execution master is connected. In this way, the electronic device that transmits the connection request to connect the wireless access point can be determined as the device to be networked, thereby satisfying the networking requirements of the electronic device.
In some optional implementations of this embodiment, the execution body may determine the relative position between the execution body itself and the at least one device to be networked by using an infrared sensing method. Specifically, the execution body may include an infrared ray sensing device, and the relative position with the device to be networked is determined by sensing the infrared ray radiated from the device to be networked using the infrared ray sensing device. This approach provides a way to determine the relative position between devices.
In step 205, coordinate points for characterizing the first device and coordinate points of the at least one second device are identified in a preset coordinate system based on the relative positions.
In this embodiment, the executing entity may identify a coordinate point for characterizing the connected device and a coordinate point of the at least one device to be connected in a preset coordinate system based on the relative position between the connected device and the at least one device to be connected determined in step 204. The preset coordinate system may be a two-dimensional coordinate system or a three-dimensional coordinate system. Specifically, for a device to be networked in the at least one device to be networked, the executing entity may first select any coordinate point in a preset coordinate system to represent the networked device; then, a coordinate point for characterizing the device to be networked can be determined in the coordinate system by using the relative position relationship between the device to be networked and the device to be networked; finally, coordinate points for characterizing the networked device and coordinate points for characterizing the device to be networked may be identified using a preset device identification. Here, the device identification may be a brand and a model of the device; or the user's naming of the device. For example, the device identification of the already-connected device may be "already-connected device a", and the device identification of the to-be-connected device may be "to-be-connected device a"; alternatively, the device identification of the already-connected device may be "first device N1", and the device identification of the to-be-connected device may be "second device M1". It should be noted that the length of the unit coordinate in the coordinate system may be scaled according to a preset scale, for example, the length of the unit coordinate in the coordinate system may represent 1 meter in the real space.
As an example, if the relative positional relationship between the networked device and the device to be networked is that the device to be networked is located in a 30 degree north-west direction of the networked device and the distance between the networked device and the networked device is 1.6 meters, at this time, if the networked device is characterized by a coordinate point (1, 1, 1) in the three-dimensional coordinate system, if the unit coordinate length in the three-dimensional coordinate system is characterized by 1 meter, a target coordinate point located in a 30 degree north-west direction of the coordinate point (1, 1, 1) and the distance between the coordinate point (1, 1, 1) and the unit length can be searched in the three-dimensional coordinate system. The execution body may identify the coordinate point (1, 1, 1) with a device identification "connected device a", and identify the target coordinate point with a device identification "to-be-connected device a".
In this embodiment, if the predetermined coordinate system is a three-dimensional coordinate system, the three-dimensional coordinate system may be a world coordinate system, the world coordinate system is an absolute coordinate system of the system, and coordinates of all points on the screen before the user coordinate system is not established are determined by the origin of the coordinate system. The three-dimensional coordinate system may also be a user coordinate system, and for example, the user coordinate system may be a three-dimensional coordinate system having one vertex of the execution subject (networked device) screen as a coordinate origin, two adjacent sides of the execution subject screen as X and Y axes, respectively, and a straight line passing through the coordinate origin and perpendicular to a plane formed by the X and Y axes as a Z axis.
In some optional implementations of this embodiment, the origin of coordinates of the coordinate system may be used to characterize the networked device, and in this case, if the coordinate system is a two-dimensional coordinate system, a coordinate point (0, 0) is used to characterize the networked device, and if the coordinate system is a three-dimensional coordinate system, a coordinate point (0, 0, 0) is used to characterize the networked device. Other coordinate points of the coordinate system than the origin of coordinates may be used to characterize the at least one device to be networked, respectively. This manner of characterizing the origin of coordinates as a networked device may highlight the coordinate points corresponding to the networked device in the coordinate system, facilitating the user to perform operations to connect the coordinate points.
In step 206, it is detected whether the user performs an operation of connecting the coordinate points.
In this embodiment, the execution main body may detect whether the user performs an operation of connecting the coordinate points. Here, the operation of connecting the coordinate points may be a sliding operation of sliding from the coordinate points for characterizing the already-connected device to the coordinate points for characterizing the device to be connected.
In step 207, in response to detecting that the user performs an operation of connecting coordinate points, vector connection information is generated.
In this embodiment, if it is detected in step 206 that the user performs an operation of connecting the coordinate points, for example, if it is detected that the user performs a sliding operation from a coordinate point for characterizing a networked device to a coordinate point for characterizing a device to be networked, the execution body may generate vector connection information. Here, the vector connection information may include an information transmission direction. The information transmission direction may be a sliding direction of a finger of the user when the coordinate point is connected, and is generally a direction from the position of the execution main body to the position of the device to be networked. The information transfer direction is typically the relative direction of the device to be networked with respect to the networked device, e.g., the device to be networked is located directly north of the networked device, and the device to be networked is located 10 degrees north of the networked device.
It should be noted that, when the execution main body needs to send access information to at least two devices to be networked, for example, needs to send access information to the device a to be networked and the device B to be networked, the user needs to perform operations of connecting a coordinate point for characterizing the networked device and a coordinate point for characterizing the device a to be networked, and perform operations of connecting a coordinate point for characterizing the networked device and a coordinate point for characterizing the device B to be networked, respectively.
In some optional implementations of the embodiment, if the networked device is characterized by using the origin of coordinates of the coordinate system, and the at least one device to be networked is respectively characterized by using other coordinate points except the origin of coordinates in the coordinate system, the executing body may detect whether the user performs an operation of connecting the origin of coordinates and at least one of the other coordinate points. The execution body may generate vector connection information if it is detected that the user performs an operation of connecting at least one of the origin of coordinates and the other coordinate points. At this time, the generated vector connection information includes at least one information transmission direction, where each information transmission direction is a relative direction of each device to be networked with respect to the networked device. This manner of characterizing the origin of coordinates as a networked device may highlight the coordinate points corresponding to the networked device in the coordinate system, facilitating the user to perform operations to connect the coordinate points.
In some optional implementations of this embodiment, the vector connection information may further include an information transmission distance. Since the length of the unit coordinate in the coordinate system may be obtained by scaling the length in the real space according to a predetermined scale, for example, the length of the unit coordinate in the coordinate system may represent 1 meter in the real space. The execution body may determine the information transmission distance using the sliding distance of the user in the coordinate system and the preset ratio. As an example, if the sliding distance of the user in the coordinate system is 1.5 unit coordinate lengths, and the unit coordinate length in the coordinate system represents 1 meter in the real space, it may be determined that the information transmission distance is 1.5 meters. By using the vector connection information including the information transmission distance, the execution subject can more accurately position the second device to be connected with the wireless access point.
And step 208, sending the access information to the second equipment in the information transmission direction, so that the at least one second equipment receiving the access information is connected with the selected wireless access point.
In this embodiment, the executing entity may send the access information to the device to be networked in the information transmission direction. After receiving the access information, the device to be networked may connect to the selected wireless access point using the access point identifier and the access password of the selected wireless access point. As an example, if the information transmission direction is that the device to be networked is located in the 10 degrees north of the already-connected device, the executing body may transmit the access information to the device to be networked located in the 10 degrees north of the executing body.
In some optional implementations of this embodiment, if the vector connection information further includes an information transmission distance, the executing entity may send the access information to a device to be networked, which is located in the information transmission direction and at a distance from the networked device that is the information transmission distance. As an example, if the information transmission direction is a north direction and the information transmission distance is 1.5 meters, the execution body may send the access information to the device to be networked, which is located in the north direction of the execution body and is at a distance of 1.5 meters from the execution body. In this way, the execution subject can more accurately locate the second device to be connected to the wireless access point, thereby preventing other electronic devices (electronic devices not required to be connected to the selected wireless access point) in the information transmission direction from receiving the access information.
In some optional implementations of this embodiment, the vector connection information may further include a device identifier of a device to be networked. After the user performs the operation of connecting the coordinate point, the execution body may present a device identifier of the device to be networked. Then, whether success information which is transmitted by the device to be networked and used for representing the successful connection of the wireless access point is received or not can be determined. If successful information used for representing successful connection of the wireless access point is received, which is sent by the device to be networked, the execution main body can identify the device identifier of the device to be networked, which sends the successful information, in a preset manner. The preset manner may be to add a preset icon (e.g., "opposite hook" icon, "five-pointed star" icon, etc.) after the device identifier of the device to be networked that sends successful information. The preset manner may also be to display the device identification of the device to be connected to the network, which transmits the success information, in a preset color (e.g., red, yellow, etc.). In general, when the device to be networked receives the access information sent by the execution main body and successfully connects to the selected wireless access point by using the access information, the device to be networked can send success information for representing the successful connection of the wireless access point to the execution main body. In this way, it is possible to facilitate the sender of the access information (the user using the above-described execution body) to confirm the devices to be networked that have received the access information and the devices to be networked that have not received the access information.
In some optional implementations of this embodiment, the access information may further include encryption information. The encryption information may include a password agreed by the sender and the receiver, and the password may be a character string. The executing body may send the access information to a device to be networked in the information transmission direction. After receiving the access information, the device to be networked may decrypt the encrypted information included in the access information, and after the decryption is successful, the device to be networked receiving the access information may connect to the selected wireless access point. As an example, the device to be networked may present a password filling-in page after receiving the above-mentioned access information, and a recipient using the device to be networked may fill in a password (e.g., 123ABC) agreed with the sender in the password filling-in page, and if the password "123 ABC" is included in the encrypted information included in the above-mentioned access information, it may be determined that the decryption of the device to be networked is successful. In this way, only the receiver with the known password can perform networking operation by using the access information, thereby ensuring the security of the access information.
With continued reference to fig. 3, fig. 3 is a schematic diagram of an application scenario of the method for connecting a wireless access point according to the present embodiment. In the application scenario of fig. 3, the networked device 301 may first detect whether the access point identification "TP-LINK _ 0056" 302 of the connected wireless access point is selected. As shown by icon 303, the connected device 301, detecting that the user has clicked on the access point identification "TP-LINK _ 0056" 302 of the connected wireless access point, may generate access information 304. Here, the access information 304 may include an access point identification "TP-LINK _ 0056" and an access password "1350 ahns" of the selected wireless access point. Then, the connected device 301 may determine whether a preset instruction is detected. As shown by an icon 305, if the already-connected device 301 detects a click operation by the user on a reception icon 306 for receiving a networking request of the device "second device B", the already-connected device 301 may determine the device identified as "second device B" as the device to be networked 307 of the wireless access point to be connected. The networked device 301 may then determine the relative position 308 between the networked device 301 and the device to be networked "second device B" 307 by way of RFID tag induction. Here, the relative position 308 may be that the device to be networked 307 is located in the east of the networked device 301. Then, the networked device 301 may identify coordinate points for characterizing the networked device 301 and the device to be networked 307 in a preset coordinate system based on the relative position 308. As shown by an icon 309, if the preset coordinate system is a three-dimensional coordinate system, the networked device 301 may be characterized by a coordinate point (0, 1, 1)310 in the three-dimensional coordinate system, and the device to be networked 307 may be characterized by a coordinate point (0, 4, 1)311 in the three-dimensional coordinate system. Here, the coordinate point (0, 1, 1)310 may be named "first device a", and the coordinate point (0, 4, 1)311 may be named "second device B". Then, the already-connected device 301 may detect whether the user performs an operation of connecting the coordinate point as described above. As shown by an icon 312, if the already-connected device 301 detects that the user performs the above-described sliding operation from the coordinate point 310 to the coordinate point 311, the already-connected device 301 may generate vector connection information 313. Here, the vector connection information 313 may include an information transfer direction, which may be that the device to be networked 307 is located in the east of the already-connected device 301. Finally, the networked device 301 may transmit the access information 304 to the electronic device 314 located in the east of the networked device 301, and the electronic device 314, after receiving the access information 304, may connect the selected wireless access point using the access point identification "TP-LINK _ 0056" and the access password "1350 ahns". It is noted that the electronic device 314 may be utilized to characterize the device to be networked 307.
The method provided by the above embodiment of the present application generates the access information by responding to the first device connected with the wireless access point detecting that the access point identifier of the connected wireless access point is selected; then, in response to detecting the preset instruction, determining at least one second device to be connected with the wireless access point, and determining a relative position between the first device and the at least one second device; then, based on the relative position, identifying a coordinate point for representing the first equipment and a coordinate point of at least one second equipment in a preset coordinate system; then, in response to detecting that the user performs an operation of connecting the coordinate points, generating vector connection information including an information transmission direction; and finally, sending the access information to the second equipment positioned in the information transmission direction, so that at least one second equipment receiving the access information is connected with the selected wireless access point. The networking mode can locate the equipment to be networked through the preset instruction and send the access password to the located equipment to be networked, so that the networking steps of a user can be reduced, and the equipment can be quickly connected to the wireless access point.
With further reference to fig. 4, a flow 400 of yet another embodiment of a method for connecting a wireless access point is shown. The method for connecting a wireless access point is generally applied to a second device to which the wireless access point is to be connected, and the flow 400 of the method for connecting the wireless access point includes the following steps:
step 401, receiving access information sent by a first device connected with a wireless access point.
In the present embodiment, an execution body of the method for connecting a wireless access point (e.g., a device to be networked shown in fig. 1) may receive access information transmitted by a device already connected to the wireless access point. The access information may include an access point identification and an access password of the selected wireless access point. The electronic device may connect to the wireless access point using the access code. The access information may be generated by a networked device by bundling an access point identifier and an access password of a wireless access point. The bundled packet generally means that the access point identifier and the access password are stored and encapsulated in a preset data format. Here, the networked device and the device to be networked generally use the same data transfer protocol for data transfer. The preset data format is a data format defined in the used data transmission protocol. The networked device may encode data in an encoding mode corresponding to the preset data format and send the encoded data to the device to be networked in a binary form, and the device to be networked may decode the data in a decoding mode corresponding to the preset data format, thereby obtaining the access information.
In some optional implementations of this embodiment, the access information may further include encryption information. After the execution main body receives access information sent by a connected device connected with a wireless access point, the execution main body can analyze the access information to obtain an access point identifier and an access password of the wireless access point. The process of analyzing the access information may be a process of decoding data by using a decoding method corresponding to the preset data format. The encryption information may include a password agreed by the sender and the receiver, and the password may be a character string. If the execution main body receives the access information sent by the networking device, the execution main body can decrypt the encrypted information in the access information. If the decryption is successful, the execution main body can analyze the access information to obtain the access point identification and the access password of the wireless access point. As an example, the executing entity may present a password filling page after receiving the access information, a recipient using the executing entity may fill a password (e.g., 123ABC) agreed with the sender in the password filling page, and if the received encrypted information includes a password "123 ABC", it may be determined that the executing entity has successfully decrypted. In this way, only the receiver with the known password can perform networking operation by using the access information, thereby ensuring the security of the access information.
And 402, connecting the selected wireless access points according to the access point identifications and the access passwords.
In this embodiment, the execution subject may connect to the selected wireless access point according to the access point identifier and the access password of the wireless access point.
The method provided by the above embodiment of the present application may reduce the networking steps of the user by receiving the access information sent by the networked device and including the access point identifier and the access password of the selected wireless access point, and connecting the wireless access points according to the access point identifier and the access password of the wireless access point, so that the device is quickly connected to the wireless access point.
With further reference to fig. 5, a flow 500 of another embodiment of a method for connecting a wireless access point is shown. The method for connecting a wireless access point is generally applied to a second device to which the wireless access point is to be connected, and the flow 500 of the method for connecting the wireless access point includes the following steps:
step 501, detecting whether a user executes a preset operation.
In the present embodiment, an executing body (e.g., a device to be networked shown in fig. 1) of the method for connecting a wireless access point may detect whether a user performs a preset operation. The preset operation may be a networking operation of a networking request transmitted to other electronic devices. The preset operation may also be a scanning operation of scanning a two-dimensional code for identifying other electronic devices.
Step 502, in response to detecting that a user performs a preset operation, determining at least one first device connected to the wireless access point, and determining a relative position between a second device and the at least one first device.
In this embodiment, if it is detected in step 501 that the user performs the preset operation, the executing entity may determine at least one connected device connected to the wireless access point. As an example, if the user clicks a networking icon for indicating that a networking request is sent to another electronic device, the execution body may determine the electronic device receiving the networking request as a networked device connected with a wireless access point. If the scanning operation of the user for scanning the two-dimensional code for identifying the other electronic device is detected, the executing body may determine the electronic device indicated by the scanned two-dimensional code as a connected device connected to the wireless access point.
In this embodiment, after determining at least one networked device, the execution entity may determine a relative position between the execution entity itself (the device to be networked) and the at least one networked device. Here, the execution body may determine a relative position between the execution body and the at least one networked device by means of an RFID tag induction. RFID technology is a communication technology that can identify a specific object and read and write related data by radio signals without establishing mechanical or optical contact between the execution body and a connected device. Here, the networked devices typically include radio frequency tags that contain electronically stored information that can be identified by the executing entity within a few meters. The rf tag may be embedded within the device to be networked without being within the line of sight of the identifier of the executing agent.
In some optional implementations of the embodiment, the execution main body may include an image pickup device. The execution main body may detect whether a user shoots another electronic device using the image pickup apparatus, and if it is detected that the user shoots another electronic device using the image pickup apparatus, the execution main body may determine the shot electronic device as a connected device to which the wireless access point is connected. In this way, the networked device may be located by determining the networked device through a photographing operation.
In some optional implementations of this embodiment, the execution body may determine the relative position between the execution body itself and the at least one networked device by using infrared sensing. Specifically, the actuator may include an infrared sensing device, and determine a relative position with the networked device by sensing infrared rays radiated from the networked device using the infrared sensing device. This approach provides a way to determine the relative position between devices.
In step 503, coordinate points for characterizing the second device and at least one coordinate point of the first device are identified in a preset coordinate system based on the relative positions.
In this embodiment, the executing entity may identify a coordinate point for characterizing the device to be networked and a coordinate point of the at least one networked device in a preset coordinate system based on the relative position between the device to be networked and the at least one networked device determined in step 502. The preset coordinate system may be a two-dimensional coordinate system or a three-dimensional coordinate system. Specifically, for a networked device of the at least one networked device, the executing entity may first select any coordinate point in a preset coordinate system to represent the device to be networked; then, a coordinate point for characterizing the connected device may be determined in the coordinate system using a relative positional relationship between the device to be connected and the connected device; finally, coordinate points for characterizing the device to be networked and coordinate points for characterizing the networked device may be identified using a preset device identification. Here, the device identification may be a brand and a model of the device; or the user's naming of the device. For example, the device identification of the device to be networked may be "device to be networked a", and the device identification of the already-connected device may be "device to be connected a"; alternatively, the device identification of the device to be networked may be "first device N1", and the device identification of the device already connected may be "second device M1". It should be noted that the length of the unit coordinate in the coordinate system may be obtained by scaling the length in the real space according to a preset scale, for example, the length of the unit coordinate in the coordinate system may represent 1 meter in the real space.
As an example, if the relative positional relationship between the device to be networked and the networked device is that the networked device is located in a 20 degree north-east direction of the device to be networked and the distance from the networked device is 1.2 meters, at this time, if the device to be networked is characterized by a coordinate point (2, 2, 2) in the three-dimensional coordinate system, if the unit coordinate length in the three-dimensional coordinate system is characterized by 1 meter, a target coordinate point located in a 20 degree north-east direction of the coordinate point (2, 2, 2) and the distance from the coordinate point (2, 2, 2) by 1.2 unit lengths may be searched in the three-dimensional coordinate system. The execution body may identify the coordinate point (2, 2, 2) with a device identification "device a to be networked", and identify the target coordinate point with a device identification "device a already connected".
In this embodiment, if the predetermined coordinate system is a three-dimensional coordinate system, the three-dimensional coordinate system may be a world coordinate system, the world coordinate system is an absolute coordinate system of the system, and coordinates of all points on the screen before the user coordinate system is not established are determined by the origin of the coordinate system. The three-dimensional coordinate system may also be a user coordinate system, and for example, the user coordinate system may be a three-dimensional coordinate system having one vertex of the execution subject (device to be networked) screen as a coordinate origin, two adjacent sides of the execution subject screen as X and Y axes, respectively, and a straight line passing through the coordinate origin and perpendicular to a plane formed by the X and Y axes as a Z axis.
In some optional implementations of the embodiment, the origin of coordinates of the coordinate system may be used to characterize the device to be networked, in which case, if the coordinate system is a two-dimensional coordinate system, a coordinate point (0, 0) is used to characterize the device to be networked, and if the coordinate system is a three-dimensional coordinate system, a coordinate point (0, 0, 0) is used to characterize the device to be networked. Other coordinate points in the coordinate system than the origin of coordinates may be used to characterize the at least one networked device, respectively. The manner of representing the coordinate origin as the device to be networked can highlight the coordinate point corresponding to the device to be networked in the coordinate system, so that the user can conveniently execute the operation of connecting the coordinate points.
In step 504, it is detected whether the user performs an operation of connecting coordinate points.
In this embodiment, the execution main body may detect whether the user performs an operation of connecting the coordinate points. Here, the operation of connecting the coordinate points may be a sliding operation of sliding from the coordinate points for characterizing the device to be networked to the coordinate points for characterizing the device already networked.
Step 505, in response to detecting that the user performs an operation of connecting coordinate points, generating vector connection information.
In this embodiment, if it is detected in step 504 that the user performs an operation of connecting the coordinate points, for example, if it is detected that the user performs a sliding operation from a coordinate point for characterizing a device to be networked to a coordinate point for characterizing a device already networked, the execution body may generate vector connection information. Here, the vector connection information may include an information transmission direction, and the information transmission direction may be a sliding direction of a finger of a user when connecting the coordinate points, and is generally a direction pointing from the position of the execution body to the position of the device to be networked. The direction of information transfer is typically the relative direction of the networked device with respect to the device to be networked, e.g., the networked device is located directly north of the device to be networked, and the networked device is located 10 degrees north of the device to be networked.
It should be noted that, when the execution main body needs to send connection requests to at least two networked devices, for example, needs to send connection requests to the networked device a and the networked device B, respectively, the user needs to perform operations of connecting a coordinate point for characterizing the device to be networked and a coordinate point for characterizing the networked device a, and perform operations of connecting a coordinate point for characterizing the device to be networked and a coordinate point for characterizing the networked device B, respectively.
In some optional implementations of this embodiment, if the device to be networked is characterized by an origin of coordinates of the coordinate system, and the at least one networked device is respectively characterized by other coordinate points except the origin of coordinates in the coordinate system, the executing body may detect whether the user performs an operation of connecting the origin of coordinates and at least one of the other coordinate points. The execution body may generate vector connection information if it is detected that the user performs an operation of connecting the origin of coordinates and at least one of the other coordinate points. At this time, the generated vector connection information includes at least one information transmission direction, where each information transmission direction is a relative direction of each networked device with respect to the device to be networked. The manner of representing the coordinate origin as the device to be networked can highlight the coordinate point corresponding to the device to be networked in the coordinate system, so that the user can conveniently execute the operation of connecting the coordinate points.
In some optional implementations of this embodiment, the vector connection information may further include an information transmission distance. Since the length of the unit coordinate in the coordinate system may be obtained by scaling the length in the real space according to a predetermined scale, for example, the length of the unit coordinate in the coordinate system may represent 1 meter in the real space. The execution body may determine the information transmission distance using the sliding distance of the user in the coordinate system and the preset ratio. As an example, if the sliding distance of the user in the coordinate system is 1.5 unit coordinate lengths, and the unit coordinate length in the coordinate system represents 1 meter in the real space, it may be determined that the information transmission distance is 1.5 meters. By using the vector connection information including the information transmission distance, the execution subject can more accurately position the second device to be connected with the wireless access point.
A connection request for connecting to the wireless access point is sent to the first device in the information transfer direction, step 506.
In this embodiment, the execution body may send a connection request for connecting to the wireless access point to the already-connected device located in the information transmission direction. As an example, if the information transfer direction is that the connected device is located in the 10 degrees north of the device to be connected, the executing body may send the connection request to the connected device located in the 10 degrees north of the executing body.
In some optional implementations of this embodiment, if the vector connection information further includes an information transmission distance, the executing entity may send a connection request for connecting a wireless access point to a connected device located in the information transmission direction and located at a distance from the to-be-connected device, where the distance is the information transmission distance. As an example, if the information transmission direction is a 40 degree south east direction and the information transmission distance is 0.8 m, the execution body may send the connection request to a connected device located in the 40 degree south east direction of the execution body and at a distance of 0.8 m from the execution body. In this way, the execution subject can more accurately locate the first device to which the wireless access point has been connected, thereby preventing a connection request from being transmitted to other electronic devices (electronic devices to which the wireless access point has not been connected) in the information transmission direction.
Step 507, receiving access information sent by the first device connected with the wireless access point.
And step 508, connecting the selected wireless access points according to the access point identifications and the access passwords.
In the present embodiment, the operations of steps 507-508 are substantially the same as the operations of steps 401-402, and are not described herein again.
In some optional implementations of this embodiment, the vector connection information may further include a device identifier of the connected device. After connecting the wireless access point using the access point identification and the access password of the wireless access point, the execution body may present the device identification of the connected device. Then, it can be determined whether the selected wireless access point is successfully connected according to the access information transmitted by the networked device. If it is determined that the selected wireless access point is successfully connected according to the access information sent by the networked device, the execution main body may send success information for representing that the wireless access point is successfully connected to the networked device, and identify, in a preset manner, a device identifier of the networked device that receives the success information. The preset manner may be to add a preset icon (e.g., a "pair hook" icon, a "five-pointed star" icon, etc.) after the device identification of the networked device that received the success information. The preset manner may also be to display the device identification of the connected device that received the success information in a preset color (e.g., red, yellow, etc.). In this way, the recipient of the access information (the user using the execution body described above) may be facilitated to confirm the networked device from which the access information originated.
As can be seen from fig. 5, compared with the embodiment corresponding to fig. 4, the flow 500 of the method for connecting to a wireless access point in this embodiment represents a step 501 of detecting whether a user performs a preset operation; step 502 of determining at least one networked device and determining a relative position of the device to be networked and the at least one networked device if it is detected that the user performs a preset operation; a step 503 of identifying coordinate points for characterizing the device to be networked and at least one networked device in a preset coordinate system based on the relative positions; a step 504 of detecting whether the user performs an operation of connecting coordinate points; in response to detecting that the user performs an operation of connecting to the coordinate point, a step 505 of generating vector connection information and a step 506 of transmitting a connection request for connecting to the wireless access point to a connected device located in an information transmission direction. Therefore, the scheme described in the embodiment can locate the connected device through the gesture operation of the user, and send the connection request for connecting the wireless access point to the located connected device, so that the connected device can be requested to access information, and the device can be connected to the wireless access point more quickly.
Referring now to FIG. 6, shown is a block diagram of a computer system 600 suitable for use with the electronic device implementing an embodiment of the present invention. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Liquid Crystal Display (LCD) and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program performs the above-described functions defined in the method of the present application when executed by a Central Processing Unit (CPU) 601. It should be noted that the computer readable medium mentioned above in the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the first device of the connected wireless access point or the second device of the to-be-connected wireless access point described in the above embodiments; or may exist separately without being assembled into the first device or the second device. The computer readable medium carries one or more programs which, when executed by the first device or the second device, cause the first device to: generating access information in response to detecting that an access point identifier of a connected wireless access point is selected, wherein the access information comprises the access point identifier and an access password of the selected wireless access point; in response to detecting the preset instruction, determining at least one second device to be connected with the wireless access point, and determining a relative position between the first device and the at least one second device; identifying coordinate points for characterizing the first device and at least one second device in a preset coordinate system based on the relative positions; generating vector connection information in response to detecting that a user performs an operation of connecting coordinate points, wherein the vector connection information includes an information transmission direction; and sending the access information to the second equipment positioned in the information transmission direction, so that at least one second equipment receiving the access information is connected with the selected wireless access point. Or cause the second device to: receiving access information sent by first equipment connected with a wireless access point, wherein the access information comprises an access point identifier and an access password of the selected wireless access point; and connecting the selected wireless access points according to the access point identification and the access password.
The foregoing description is only exemplary of the preferred embodiments of the invention and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention according to the present invention is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is possible without departing from the scope of the invention as defined by the appended claims. For example, the above features and (but not limited to) features having similar functions disclosed in the present invention are mutually replaced to form the technical solution.

Claims (19)

1. A method for connecting to a wireless access point, the method being applied to a first device having a connected wireless access point, the method comprising:
generating access information in response to detecting that an access point identification of a connected wireless access point is selected, wherein the access information comprises the access point identification and an access password of the selected wireless access point;
in response to detecting a preset instruction, determining at least one second device to be connected with a wireless access point, and determining a relative position between the first device and the at least one second device;
identifying coordinate points for characterizing the first device and the at least one second device in a preset coordinate system based on the relative positions;
generating vector connection information in response to detecting that a user performs an operation of connecting coordinate points, wherein the vector connection information includes an information transmission direction;
and sending the access information to second equipment positioned in the information transmission direction, so that at least one second equipment receiving the access information is connected with the selected wireless access point.
2. The method of claim 1, wherein the determining, in response to detecting the preset instruction, at least one second device to which the wireless access point is to be connected comprises:
in response to receiving a connection request sent by the electronic equipment and used for connecting the wireless access point, the electronic equipment sending the connection request is determined as a second equipment to be connected with the wireless access point.
3. The method of claim 1, wherein the first device comprises an image capture device; and
the determining at least one second device to be connected to the wireless access point in response to detecting the preset instruction comprises:
in response to detecting a shooting operation of the electronic device by the user using the camera, the shot electronic device is determined as a second device to which the wireless access point is to be connected.
4. The method of any one of claims 1 to 3, wherein the determining the relative position between the first device and the at least one second device comprises:
and determining the relative position between the first device and the at least one second device by using an infrared sensing mode.
5. The method according to any one of claims 1 to 3, wherein the origin of coordinates of the coordinate system is used for characterizing the first device, and coordinate points other than the origin of coordinates of the coordinate system are respectively used for characterizing the at least one second device; and
the generating vector connection information in response to detecting that the user performs an operation of connecting coordinate points includes:
generating vector connection information in response to detecting that the user performs an operation of connecting the origin of coordinates and at least one of the other coordinate points.
6. The method according to any one of claims 1 to 3, wherein the vector connection information further comprises an information transmission distance; and
the sending the access information to the second device located in the information transmission direction includes:
and sending the access information to a second device which is positioned in the information transmission direction and is positioned at a position with the distance from the first device as the information transmission distance.
7. The method according to any of claims 1 to 3, wherein the vector connection information further comprises a device identification of the second device; and
the method further comprises the following steps:
presenting a device identification of the second device;
and identifying the equipment identification of the second equipment in a preset mode in response to receiving success information which is sent by the second equipment and used for representing the successful connection of the wireless access point.
8. The method according to any of claims 1 to 3, wherein the access information further comprises encryption information; and
the sending the access information to the second device located in the information transmission direction so that at least one second device receiving the access information connects to the selected wireless access point includes:
and sending the access information to second equipment positioned in the information transmission direction, so that the second equipment receiving the access information is connected with the selected wireless access point after decrypting the encrypted information.
9. A method for connecting a wireless access point, applied to a second device to be connected with the wireless access point, the method comprising:
in response to detecting that a user performs a preset operation, determining at least one first device connected with a wireless access point, and determining a relative position between the second device and the at least one first device;
identifying coordinate points for characterizing the second device and the at least one first device in a preset coordinate system based on the relative positions;
generating vector connection information in response to detecting that the user performs an operation of connecting coordinate points, wherein the vector connection information includes an information transmission direction;
sending a connection request for connecting a wireless access point to a first device located in the information transmission direction;
receiving access information sent by first equipment connected with a wireless access point, wherein the access information comprises an access point identifier and an access password of the selected wireless access point;
and connecting the selected wireless access point according to the access point identification and the access password.
10. The method of claim 9, wherein the second device comprises an image capture device; and
the determining at least one first device connected with the wireless access point in response to detecting that the user performs a preset operation comprises:
in response to detecting a photographing operation of the user on the electronic device with the image pickup apparatus, the photographed electronic device is determined as a first device to which a wireless access point has been connected.
11. The method of claim 9 or 10, wherein the determining the relative position between the second device and the at least one first device comprises:
and determining the relative position between the second device and the at least one first device by using an infrared sensing mode.
12. The method according to claim 9 or 10, wherein the origin of coordinates of the coordinate system is used for characterizing the second device, and coordinate points of the coordinate system other than the origin of coordinates are used for characterizing the at least one first device, respectively; and
the generating vector connection information in response to detecting that the user performs an operation of connecting coordinate points includes:
generating vector connection information in response to detecting that the user performs an operation of connecting the origin of coordinates and at least one of the other coordinate points.
13. The method according to claim 9 or 10, wherein the vector connection information further comprises an information transmission distance; and
the sending a connection request for connecting a wireless access point to a first device located in the information transmission direction includes:
and sending a connection request for connecting a wireless access point to the first equipment which is positioned in the information transmission direction and is positioned at a position with the distance from the second equipment as the information transmission distance.
14. The method according to claim 9 or 10, wherein the vector connection information further comprises a device identification of the first device; and
the method further comprises the following steps:
presenting a device identification of the first device;
and in response to the fact that the selected wireless access point is successfully connected according to the access information sent by the first equipment, sending success information used for representing the successful connection of the wireless access point to the first equipment, and identifying the equipment identification of the first equipment in a preset mode.
15. The method according to claim 9 or 10, wherein the access information further comprises encryption information; and
after the receiving access information transmitted by the first device connected to the wireless access point, the method further comprises:
and decrypting the encrypted information to obtain the access point identification and the access password.
16. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-8.
17. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 9-15.
18. A system for connecting wireless access points, comprising: an electronic device as claimed in claim 16 and an electronic device as claimed in claim 17.
19. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-15.
CN201811436793.6A 2018-11-28 2018-11-28 Method and apparatus for connecting wireless access points Active CN109219108B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811436793.6A CN109219108B (en) 2018-11-28 2018-11-28 Method and apparatus for connecting wireless access points

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811436793.6A CN109219108B (en) 2018-11-28 2018-11-28 Method and apparatus for connecting wireless access points

Publications (2)

Publication Number Publication Date
CN109219108A CN109219108A (en) 2019-01-15
CN109219108B true CN109219108B (en) 2020-11-06

Family

ID=64994469

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811436793.6A Active CN109219108B (en) 2018-11-28 2018-11-28 Method and apparatus for connecting wireless access points

Country Status (1)

Country Link
CN (1) CN109219108B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110166947B (en) * 2019-06-20 2020-09-25 维沃移动通信有限公司 Position sharing method, first mobile terminal and base station

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104993981A (en) * 2015-05-14 2015-10-21 小米科技有限责任公司 Method and apparatus for controlling access of device
CN105472698A (en) * 2015-11-30 2016-04-06 小米科技有限责任公司 Wireless network access method and device
WO2017020554A1 (en) * 2015-08-05 2017-02-09 上海连尚网络科技有限公司 Method and device for providing wireless access point
CN108270724A (en) * 2016-12-30 2018-07-10 上海掌门科技有限公司 For obtaining the method for the access information of shared wireless access point, equipment and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9949137B2 (en) * 2015-07-24 2018-04-17 Apple Inc. Wi-Fi based location availability for sparse signal locations

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104993981A (en) * 2015-05-14 2015-10-21 小米科技有限责任公司 Method and apparatus for controlling access of device
WO2017020554A1 (en) * 2015-08-05 2017-02-09 上海连尚网络科技有限公司 Method and device for providing wireless access point
CN105472698A (en) * 2015-11-30 2016-04-06 小米科技有限责任公司 Wireless network access method and device
CN108270724A (en) * 2016-12-30 2018-07-10 上海掌门科技有限公司 For obtaining the method for the access information of shared wireless access point, equipment and system

Also Published As

Publication number Publication date
CN109219108A (en) 2019-01-15

Similar Documents

Publication Publication Date Title
US10917498B2 (en) Service processing method and apparatus, and service server
CN107302597B (en) Message file pushing method and device
US20190068576A1 (en) Method, apparatus and system for remote controlling intelligent devices
CN110059623B (en) Method and apparatus for generating information
US20190102938A1 (en) Method and Apparatus for Presenting Information
CN110377440B (en) Information processing method and device
CN109992732A (en) Information sharing method, device, electronic equipment and storage medium
KR102559827B1 (en) System for authenticating image based on blockchain and hash encryption technique and method thereof
CN109801354B (en) Panorama processing method and device
CN109219108B (en) Method and apparatus for connecting wireless access points
CN110705985A (en) Method and apparatus for storing information
CN109819026B (en) Method and device for transmitting information
CN111324470A (en) Method and device for generating information
CN110619615A (en) Method and apparatus for processing image
CN112346661B (en) Data processing method and device and electronic equipment
CN111767456A (en) Method and device for pushing information
CN109413651B (en) Method and apparatus for connecting wireless access points
CN110209849B (en) Method and device for marking key points
CN110492998B (en) Method for encrypting and decrypting data
CN109685508B (en) Transaction data processing method and device, electronic equipment and readable storage medium
CN109086210B (en) Navigation information method and device for testing navigation application
CN110620805B (en) Method and apparatus for generating information
CN112306976A (en) Information processing method and device and electronic equipment
CN111831530A (en) Test method and device
CN110351713B (en) Method and device for processing information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20231109

Address after: 312500 Wangjiangshan Village, Nanming Street, Xinchang County, Shaoxing City, Zhejiang Province

Patentee after: Shaoxing Jilian Technology Co.,Ltd.

Address before: 201306 N2025 room 24, 2 New Town Road, mud town, Pudong New Area, Shanghai

Patentee before: SHANGHAI LIANSHANG NETWORK TECHNOLOGY Co.,Ltd.