WO2018121652A1 - Method and device for connecting wireless access point through application in user equipment - Google Patents
Method and device for connecting wireless access point through application in user equipment Download PDFInfo
- Publication number
- WO2018121652A1 WO2018121652A1 PCT/CN2017/119292 CN2017119292W WO2018121652A1 WO 2018121652 A1 WO2018121652 A1 WO 2018121652A1 CN 2017119292 W CN2017119292 W CN 2017119292W WO 2018121652 A1 WO2018121652 A1 WO 2018121652A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- application
- wireless access
- access point
- user equipment
- wireless connection
- 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.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/50—Secure pairing of devices
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/06—Authentication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/60—Subscription-based services using application servers or record carriers, e.g. SIM application toolkits
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/20—Selecting an access point
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/31—Programming languages or programming paradigms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/30—Definitions, standards or architectural aspects of layered protocol stacks
- H04L69/32—Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
- H04L69/322—Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
- H04L69/329—Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the application layer [OSI layer 7]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W80/00—Wireless network protocols or protocol adaptations to wireless operation
- H04W80/08—Upper layer protocols
- H04W80/10—Upper layer protocols adapted for application session management, e.g. SIP [Session Initiation Protocol]
Definitions
- the present application relates to the field of communications, and in particular, to a method and device for connecting a wireless access point through an application in a user equipment.
- the WiFi applications on the market are mainly divided into Android applications and IOS applications. These two applications need to master the native system WiFi related APIs, and write related interfaces and functions, and the development code can not be shared with each other, and the portability is poor.
- the application's feature upgrade requires a re-release version for users to download and install, the development cost is high and the cycle is long.
- maintaining multiple versions of native system-based applications at the same time is costly.
- a method for connecting a wireless access point through a first application in a user equipment comprising:
- a method for connecting a wireless access point through a second application in a user equipment comprising:
- connection result information corresponding to the second wireless connection request
- a method for connecting a wireless access point through a first application in a user equipment comprising:
- a method for connecting a wireless access point through a second application in a user equipment comprising:
- connection result information corresponding to the second wireless connection request
- a first apparatus for connecting a wireless access point through a first application in a user equipment comprising:
- a first module configured to acquire a first wireless connection request for a target wireless access point
- a first two module configured to send, by using a first interface provided by the corresponding second application, a second wireless connection request for the target wireless access point to the second application, where the second application is
- the first application is installed on the same user equipment, the first interface is independent of the system of the user equipment, and the second application establishes the user based on the second wireless connection request, and invokes a wireless connection interface of the system.
- a second apparatus for connecting a wireless access point through a second application in a user equipment comprising:
- a second module configured to receive a second wireless connection request for the target wireless access point that is sent by the first application to the second application by using the first interface provided by the second application, where the second application is The first application is installed on the same user equipment, and the first interface is independent of the system of the user equipment;
- a second module configured to invoke a wireless connection interface of the system to establish a wireless connection between the user equipment and the target wireless access point;
- the second third module is configured to return, to the first application, connection result information corresponding to the second wireless connection request.
- a first apparatus for connecting a wireless access point through a first application in a user equipment comprising:
- a third module configured to acquire a first wireless connection request for the target wireless access point
- a third module configured to send a second wireless connection request for the target wireless access point to the corresponding second application, where the second application is installed on the same user equipment as the first application;
- a third third module configured to receive connection result information of the second application based on the second wireless connection request.
- a second apparatus for connecting a wireless access point through a second application in a user equipment comprising:
- a fourth module configured to receive a second wireless connection request that is sent by the first application to the second application, where the second application is installed on the same user equipment as the first application;
- a fourth module configured to invoke a system wireless connection interface of the user equipment to establish a wireless connection between the user equipment and the target wireless access point;
- a fourth module configured to return, to the first application, connection result information corresponding to the second wireless connection request.
- a first device for connecting a wireless access point through a first application in a user equipment includes:
- a memory arranged to store computer executable instructions that, when executed, cause the processor to:
- a second device for connecting a wireless access point through a second application in a user equipment includes:
- a memory arranged to store computer executable instructions that, when executed, cause the processor to:
- connection result information corresponding to the second wireless connection request
- a first device for connecting a wireless access point by using a first application in a user equipment where the first device includes:
- a memory arranged to store computer executable instructions that, when executed, cause the processor to:
- a second device for connecting a wireless access point by using a second application in a user equipment where the second device includes:
- a memory arranged to store computer executable instructions that, when executed, cause the processor to:
- connection result information corresponding to the second wireless connection request
- a computer readable storage medium comprising instructions that, when executed, cause a system to:
- a computer readable storage medium comprising instructions that, when executed, cause a system to:
- connection result information corresponding to the second wireless connection request
- a computer readable storage medium comprising instructions that, when executed, cause a system to:
- a computer readable storage medium comprising instructions that, when executed, cause a system to:
- connection result information corresponding to the second wireless connection request
- FIG. 1 is a flowchart of a method for connecting a wireless access point through a first application in a user equipment according to an embodiment of the present application
- FIG. 2 is a flowchart of a method for connecting a wireless access point through a second application in a user equipment according to another embodiment of the present application;
- FIG. 3 is a flowchart of a method for connecting a wireless access point through a first application in a user equipment according to still another embodiment of the present application;
- FIG. 4 is a flowchart of a method for connecting a wireless access point through a second application in a user equipment according to still another embodiment of the present application;
- FIG. 5 is a structural diagram of a first apparatus for connecting a wireless access point through a first application in a user equipment according to an embodiment of the present application
- FIG. 6 is a structural diagram of a second apparatus for connecting a wireless access point through a second application in a user equipment according to another embodiment of the present application;
- FIG. 7 is a structural diagram of a first apparatus for connecting a wireless access point through a first application in a user equipment according to still another embodiment of the present application;
- FIG. 8 is a structural diagram of a second apparatus for connecting a wireless access point through a second application in a user equipment according to still another embodiment of the present application;
- FIG. 9 is a schematic diagram showing the relationship between a first application, a second application, and a cloud server according to an embodiment of the present application.
- FIG. 10 is a schematic diagram showing the working principle of a system of a first application, a second application, and a user equipment according to an embodiment of the present application;
- the terminal, the device of the service network, and the trusted party each include one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
- processors CPUs
- input/output interfaces network interfaces
- memory volatile and non-volatile memory
- the memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory.
- RAM random access memory
- ROM read only memory
- Memory is an example of a computer readable medium.
- Computer readable media includes both permanent and non-persistent, removable and non-removable media.
- Information storage can be implemented by any method or technology.
- the information can be computer readable instructions, data structures, modules of programs, or other data.
- Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage,
- computer readable media does not include non-transitory computer readable media, such as modulated data signals and carrier waves.
- the device referred to in the present application includes but is not limited to a user equipment, a network device, or a device formed by integrating a user equipment and a network device through a network.
- the user equipment includes, but is not limited to, any mobile electronic product that can perform human-computer interaction with the user (for example, human-computer interaction through a touchpad), such as a smart phone, a tablet computer, etc., and the mobile electronic product can be operated by any operation.
- System such as android operating system, iOS operating system, etc.
- the network device includes an electronic device capable of automatically performing numerical calculation and information processing according to an instruction set or stored in advance, and the hardware includes but is not limited to a microprocessor, an application specific integrated circuit (ASIC), and programmable logic.
- ASIC application specific integrated circuit
- the network device includes, but is not limited to, a computer, a network host, a single network server, a plurality of network server sets, or a plurality of servers; wherein the cloud is composed of a large number of computers or network servers based on Cloud Computing.
- cloud computing is a kind of distributed computing, a virtual supercomputer composed of a group of loosely coupled computers.
- the network includes, but is not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, a VPN network, a wireless ad hoc network (Ad Hoc network), and the like.
- the device may also be a program running on the user equipment, the network device, or the user equipment and the network device, the network device, the touch terminal, or the network device and the touch terminal integrated through the network.
- the devices referred to in the present application include, but are not limited to, a user device, a network device, or a device in which a user device and a network device are integrated through a network.
- the user device includes, but is not limited to, any mobile electronic product that can perform human-computer interaction with the user (for example, human-computer interaction through a touch panel), such as a smart phone, a tablet computer, etc., and the mobile electronic product can be operated by any operation.
- System such as android operating system, iOS operating system, etc.
- the network device includes an electronic device capable of automatically performing numerical calculation and information processing according to an instruction set or stored in advance, and the hardware includes but is not limited to a microprocessor, an application specific integrated circuit (ASIC), and programmable logic.
- ASIC application specific integrated circuit
- the network device includes, but is not limited to, a computer, a network host, a single network server, a plurality of network server sets, or a plurality of servers; wherein the cloud is composed of a large number of computers or network servers based on Cloud Computing.
- cloud computing is a kind of distributed computing, a virtual supercomputer composed of a group of loosely coupled computers.
- the network includes, but is not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, a VPN network, a wireless ad hoc network (Ad Hoc network), and the like.
- the device may also be a program running on the user device, the network device, or the user device and the network device, the network device, the touch terminal, or the network device and the touch terminal integrated through the network.
- the following is a detailed description of the first application and the second application installed on the user equipment used by the user.
- FIG. 1 shows a flow chart of a method for connecting a wireless access point through a first application in a user equipment, the method comprising steps S11, S12, in accordance with an aspect of the present application.
- step S11 the first application acquires a first wireless connection request for the target wireless access point; in step S12, the first application sends the first interface provided by the corresponding second application to the second application.
- the second application establishes a wireless connection between the user equipment and the target wireless access point based on the second wireless connection request, invoking a wireless connection interface of the system.
- the first application acquires a first wireless connection request with respect to the target wireless access point, for example, the user needs to connect the user equipment to the target wireless access point, for example, the user specifies the target wireless access point.
- the SSID/BSSID and send a first wireless connection request for the target wireless access point to the first application.
- the specified operation may be manually input through the user equipment, or selected in the list of wireless access points provided by the user equipment, and the like.
- step S12 the first application sends a second wireless connection request for the target wireless access point to the second application by calling a first interface provided by the corresponding second application, where the second The application is installed on the same user equipment as the first application, the first interface is independent of the system of the user equipment, and the second application is established based on the second wireless connection request and calling the wireless connection interface of the system.
- the user equipment is wirelessly connected to the target wireless access point.
- the first application invokes a corresponding first interface provided by the second application, and sends a second wireless connection request corresponding to the first wireless connection request for the foregoing target wireless access point to the second application;
- the first application and the second application are both installed on the same user equipment.
- the calling process of the first interface also occurs on the user equipment; and the first interface is independent of the operating system on the user equipment, so that the first The interface is independent of the programming interface provided by the operating system on the user equipment, and the first application calls the first interface independently of the programming interface provided by the operating system on the user device, so that the developer of the first application does not need to pay attention to the system programming interface.
- the first interface is independent of the programming interface provided by the operating system on the user equipment
- the first application calls the first interface independently of the programming interface provided by the operating system on the user device, so that the developer of the first application does not need to pay attention to the system programming interface.
- the second application invokes the wireless connection interface of the system to establish a wireless connection between the user equipment and the target wireless access point.
- the wireless connection interface is provided by the system of each user equipment, and by calling the interface of the user equipment, a wireless connection between the user equipment and the target wireless access point can be implemented.
- the first application receives connection result information of the second application based on the second wireless connection request.
- connection success, connection failure, connection bandwidth information, connection stability information, and the like returned after receiving the second wireless connection request are received.
- the connection result information includes information of successful connection
- communication is performed by the wireless connection between the user equipment and the target wireless access point, and between the user equipment and the target wireless access point. The wireless connection has been established and the communication between the user equipment and the target wireless access point need not be achieved through the interface provided by the second application.
- the second application further provides a second interface independent of the user equipment system, by sending a scan request to the second application by calling the second interface, to the vicinity of the user equipment (the signal can cover the user equipment)
- the wireless access point scans and obtains one or more wireless access points returned by the second application based on the scan request, for example, returning SSID/BSSID information and/or wireless signals of the one or more wireless access points Strength, etc.
- the second interface is independent of the operating system on the user equipment, so that the second interface is independent of the programming interface of the operating system on the user equipment, and the first application calls the second interface with the user equipment.
- the programming interfaces of the operating system are also independent of each other, so that the developer of the first application does not need to pay attention to the situation of the system programming interface, and even if the development is performed on different platforms, it is only necessary to pay attention to the interface provided by the second application to the first application.
- the first application acquires a first wireless connection request for the target wireless access point, wherein the target wireless access point selects from one or more wireless access points returned by the second application, and selects
- the action can be done by the user or by the first application according to preset logic (eg, selecting the wireless access point with the highest signal strength). Further, referring to FIG.
- the cloud server pre-stores information of some wireless access points and corresponding authentication status information, such as whether the wireless access point stores corresponding authentication information in the cloud server; according to the authentication status information thus obtained, from the information Selecting a target wireless access point from among one or more wireless access points, for example, selecting, from among the plurality of wireless access points, a wireless access point in which the corresponding authentication information is stored in the cloud server as the target wireless access point, Used to connect according to its authentication information stored by the cloud server; and then obtain a first wireless connection request for the target wireless access point.
- a network device e.g, a cloud server
- the first application is presented in the first application.
- At least one of the one or more wireless access points are all presented by means of a list; the returned wireless access points may also be sorted (for example, sorted according to signal strength); or only presented Set up logical filtering, one or several wireless access points that meet the requirements.
- a first wireless connection request for the target wireless access point is generated according to the target wireless access point selected by the user from the presented at least one wireless access point.
- the second application further provides a third interface independent of the system of the user equipment, and by calling the third interface, the execution request may be sent from the second application, where the execution request includes but is not limited to: from the second application Obtaining interface elements (eg, view components, layouts, etc.), obtaining location information of the user equipment from the second application, performing data storage in the user equipment through the second application, and performing data communication through the second application.
- the third interface provided by the second application includes, but is not limited to, an interface for acquiring an interface element from the second application, an interface for acquiring location information of the user device from the second application, and the user by using the second application. An interface that performs data storage in the device and an interface that performs data communication through the second application.
- the third interface is independent of the operating system on the user equipment, so that the third interface is independent of the programming interface of the operating system on the user equipment, and the first application invokes the third interface with the user equipment.
- the programming interfaces of the operating system are also independent of each other, so that the developer of the first application does not need to pay attention to the situation of the system programming interface, and even if the development is performed on different platforms, it is only necessary to pay attention to the interface provided by the second application to the first application.
- the first application is developed based on a scripting language (eg, JavaScript, Lua, Python, Ruby, etc.); the second application has a built-in scripting engine, and the first application can be interpreted and executed.
- a scripting language eg, JavaScript, Lua, Python, Ruby, etc.
- the first application with practical functions developed based on the corresponding scripting language can be run across platforms, and the developer does not need to write code for different system platforms, as long as Focus on the interface provided by the second application to develop applications that can run on different platforms, improve development efficiency, shorten development cycle, and reduce development cost; and the function update of the first application does not need to be downloaded and installed again, online Completed, and does not need to notify the user to update, thereby improving the user experience; at the same time, there is no need to maintain multiple versions of the first application, further reducing development costs.
- a scripting language eg, JavaScript, Lua, Python, Ruby, etc.
- the first application is developed based on a scripting language
- the second application has a corresponding scripting engine built in, and the scripting engine is invoked to interpret and execute the first application.
- the second application provides a first interface and a second interface that are separate from the user equipment system.
- the second application invokes the system interface provided by the system of the user equipment Wireless connection point scanning interface, scanning and obtaining one or more wireless access points around the user equipment, and returning it to the second application; then, the second application returns one or more based on the scanning request of the first application Wireless access points, for example, returning SSID/BSSID information and/or wireless signal strength of the one or more wireless access points, and the like.
- the first application invokes the first interface provided by the second application, and sends a second wireless connection request corresponding to the first wireless connection request for the foregoing target wireless access point to the second application.
- the second application further provides a third interface independent of the user equipment system, and the first application may send an execution request from the second application by calling the third interface, where the execution request includes but is not limited to: Obtaining interface elements (such as view components, layouts, etc.) in the application, acquiring location information of the user equipment from the second application, performing data storage in the user equipment through the second application, and performing data communication through the second application;
- the third interface provided by the second application includes, but is not limited to, an interface for acquiring an interface element from the second application, an interface for acquiring location information of the user device from the second application, and executing in the user device by using the second application.
- An interface for data storage an interface for data communication through a second application.
- the first application before selecting the target wireless access point, the first application first obtains the authentication information of the wireless access points from the corresponding network device (for example, the cloud server), for example, the cloud server pre-stores some Information of the wireless access point and corresponding authentication information; selecting a target wireless access point from the one or more wireless access points according to the authentication information; and then acquiring a first wireless connection with respect to the target wireless access point request.
- the corresponding network device for example, the cloud server
- the first application and the second application are both installed on the same user equipment. Accordingly, the calling process of the first interface also occurs on the user equipment; and, the first interface, the second interface, and the third interface are connected to the user equipment.
- the operating systems are independent of each other such that the first interface, the second interface, and the third interface are independent of the programming interface provided by the operating system on the user device, the first application calls the first interface and the programming provided by the operating system on the user device
- the interfaces are also independent of each other, so that the developer of the first application does not need to pay attention to the system programming interface. Even if the development is performed on different platforms, it is only necessary to pay attention to the interface provided by the second application to the first application.
- step S21 illustrates a flow chart of a method for connecting a wireless access point through a second application in a user device, the method including step S21, step S22, and step S23, in accordance with another aspect of the present application.
- the second application receives a second wireless connection request for the target wireless access point sent by the first application to the second application by using the first interface provided by the second application, in the step S21, where the first application
- the second application is installed on the same user equipment as the first application, and the first interface is independent of the system of the user equipment; in step S22, the second application invokes the wireless connection interface of the system to establish the user equipment and The wireless connection of the target wireless access point; in step S23, the second application returns the connection result information corresponding to the second wireless connection request to the first application.
- the second application receives a second wireless connection request for the target wireless access point that is sent by the first application to the second application by using the first interface provided by the second application, where
- the second application is installed on the same user equipment as the first application, and the first interface is independent of the system of the user equipment.
- the first application invokes a corresponding first interface provided by the second application, and sends a second wireless connection request corresponding to the first wireless connection request for the foregoing target wireless access point to the second application;
- the first application and the second application are both installed on the same user equipment.
- the calling process of the first interface also occurs on the user equipment; and the first interface is independent of the operating system on the user equipment, so that the first The interface is independent of the programming interface of the operating system on the user equipment, and the first application calls the first interface and the programming interface of the operating system on the user device are independent of each other, so that the developer of the first application does not need to pay attention to the system programming interface. Even if you are developing on different platforms, you only need to pay attention to the interface provided by the second application to the first application.
- step S22 the second application invokes the wireless connection interface of the system to establish a wireless connection between the user equipment and the target wireless access point.
- the wireless connection interface is provided by the system of each user equipment, and by calling the interface of the user equipment, a wireless connection between the user equipment and the target wireless access point can be implemented.
- the second application returns the connection result information corresponding to the second wireless connection request to the first application.
- the connection success, connection failure, connection bandwidth information, connection stability information, and the like returned after receiving the second wireless connection request are received.
- the connection result information includes information that the connection is successful
- the second application communicates through the wireless connection between the user equipment and the target wireless access point, and the user equipment and the target wireless access point at this time The wireless connection between the two has been established, and the communication between the user equipment and the target wireless access point need not be implemented through the interface provided by the second application.
- the second application further provides a second interface independent of the user equipment system, and sends a scan request to the second application by the first application to the second interface, so that the signal can cover the user
- the wireless access point of the device scans and obtains one or more wireless access points returned by the second application based on the scan request, for example, returning the SSID/BSSID information of the one or more wireless access points and/or Or wireless signal strength, etc.
- the second interface is independent of the operating system on the user equipment, so that the second interface is independent of the programming interface of the operating system on the user equipment, and the first application calls the second interface with the user equipment.
- the programming interfaces of the operating system are also independent of each other, so that the developer of the first application does not need to pay attention to the situation of the system programming interface, and even if the development is performed on different platforms, it is only necessary to pay attention to the interface provided by the second application to the first application.
- the wireless connection point scanning interface of the system of the user equipment is invoked, the wireless access point near the user equipment (the signal can cover the user equipment) is scanned, and one or more returned by the second application based on the scanning request is obtained.
- Wireless access point is obtained.
- at least one of the one or more wireless access points is returned to the first application.
- the wireless access points returned based on the scan request may be sorted (eg, sorted according to signal strength) and returned to the preferred wireless access point, or returned to the one or more wireless access points according to other preset logic filters. At least one wireless access point.
- step S31 illustrates a flow chart of a method for connecting a wireless access point through a first application in a user equipment, the method including step S31, step S32, and step S33, in accordance with still another aspect of the present application.
- step S31 the first application acquires a first wireless connection request for the target wireless access point; in step S32, the first application sends a second information about the target wireless access point to the corresponding second application. a wireless connection request, wherein the second application is installed on the same user equipment as the first application; in step S33, the first application receives connection result information of the second application based on the second wireless connection request.
- the first application acquires a first wireless connection request with respect to the target wireless access point, for example, the user needs to connect the user equipment to the target wireless access point, for example, the user specifies the target wireless access point.
- the SSID/BSSID and send a first wireless connection request for the target wireless access point to the first application.
- step S32 the first application sends a second wireless connection request for the target wireless access point to the corresponding second application, where the second application and the first application are installed on the same user equipment.
- the second wireless connection request corresponds to the foregoing first wireless connection request.
- the first application does not directly send a wireless connection request to the system of the user equipment, and the systems of the first application and the user equipment are independent of each other, so that the developer of the first application does not need to pay attention to the first application and the different user equipment systems.
- the problem of adaptation between the first application and the second application is only concerned with the development of the first application on different platforms.
- the first application receives the connection result information of the second application based on the second wireless connection request.
- the connection success, connection failure, connection bandwidth information, connection stability information, and the like returned after receiving the second wireless connection request are received.
- the connection result information includes information of successful connection
- communication is performed by the wireless connection between the user equipment and the target wireless access point, and between the user equipment and the target wireless access point. The wireless connection has been established and the communication between the user equipment and the target wireless access point need not be achieved through the interface provided by the second application.
- the first application sends a scan request to the second application to scan a wireless access point in the vicinity of the user equipment (the signal can cover the user equipment), and receive one or more wireless reports returned by the second application based on the scan request.
- the access point for example, returns the SSID/BSSID information and/or wireless signal strength of the one or more wireless access points, and the like.
- the first application does not directly send a wireless access point scan request to the system of the user equipment, and the systems of the first application and the user equipment are independent of each other, so that the developer of the first application does not need to pay attention to the first application and the different user equipment systems.
- the problem of adaptation between the first application and the second application is only concerned with the development of the first application on different platforms.
- the first application acquires a first wireless connection request for the target wireless access point, wherein the target wireless access point is selected from one or more wireless access points returned by the second application, and the selecting action is achievable by the user It can also be done by the first application according to preset logic (for example, selecting the wireless access point with the highest signal strength).
- the one or more are presented in the first application.
- At least one of the wireless access points For example, on the screen of the user equipment, the returned wireless access points are all presented by means of a list; the returned wireless access points may also be sorted (for example, sorted according to signal strength); or only presented Set up logical filtering, one or several wireless access points that meet the requirements. Then, a first wireless connection request for the target wireless access point is generated according to the target wireless access point selected by the user from the presented at least one wireless access point.
- step S41 illustrates a flow chart of a method for connecting a wireless access point through a second application in a user equipment, the method including step S41, step S42, and step S43, in accordance with still another aspect of the present application.
- the second wireless connection request for the target wireless access point sent by the first application to the second application is received in step S41, wherein the second application is installed on the same user equipment as the first application;
- the second application invokes the system wireless connection interface of the user equipment to establish a wireless connection between the user equipment and the target wireless access point;
- the second application returns to the first application.
- the connection result information corresponding to the second wireless connection request is described.
- step S41 a second wireless connection request for the target wireless access point sent by the first application to the second application is received, where the second application and the first application are installed on the same user equipment.
- the first application does not directly send a wireless connection request to the system of the user equipment, and the systems of the first application and the user equipment are independent of each other, so that the developer of the first application does not need to pay attention to the first application and the different user equipment systems.
- the problem of adaptation between the first application and the second application is only concerned with the development of the first application on different platforms.
- step S42 the second application invokes a system wireless connection interface of the user equipment to establish a wireless connection between the user equipment and the target wireless access point.
- the wireless connection interface is provided by the system of each user equipment, and by calling the interface of the user equipment, a wireless connection between the user equipment and the target wireless access point can be implemented.
- the second application returns the connection result information corresponding to the second wireless connection request to the first application.
- the connection success, connection failure, connection bandwidth information, connection stability information, and the like returned after receiving the second wireless connection request are received.
- the connection result information includes the information that the connection is successful
- the fourth device 4 communicates through the wireless connection between the user equipment and the target wireless access point, and the user equipment and the target wireless access at this time The wireless connection between the points has been established, and the communication between the user equipment and the target wireless access point need not be implemented through the interface provided by the second application.
- the first application sends a scan request to the second application to scan the wireless access point in the vicinity of the user equipment (the signal can cover the user equipment), and obtain one or more returned by the second application based on the scan request.
- the wireless access point for example, returns SSID/BSSID information and/or wireless signal strength of the one or more wireless access points, and the like.
- the first application does not directly send a wireless connection request to the system of the user equipment, and the systems of the first application and the user equipment are independent of each other, so that the developer of the first application does not need to pay attention to the first application and the different user equipment systems.
- the adaptation problem even if the first application is developed on different platforms, only needs to care about the communication between the first application and the second application.
- the wireless connection point scanning interface of the system of the user equipment is invoked, the wireless access point near the user equipment (the signal can cover the user equipment) is scanned, and one or more returned by the second application based on the scanning request is obtained.
- Wireless access point is scanned.
- at least one of the one or more wireless access points is returned to the first application.
- the wireless access points returned based on the scan request may be sorted (eg, sorted according to signal strength) and returned to the preferred wireless access point, or returned to the one or more wireless access points according to other preset logic filters. At least one wireless access point.
- FIG. 5 shows a structural diagram of an apparatus for connecting a wireless access point through a first application in a user equipment, wherein the first apparatus 1 includes a first one module 11 and a first two module 12, according to an aspect of the present application.
- the first module 11 acquires a first wireless connection request for the target wireless access point; the first two module 12 sends the second wireless application to the second application by calling the first interface provided by the corresponding second application.
- a second wireless connection request of the access point wherein the second application is installed on the same user equipment as the first application, the first interface is independent of the system of the user equipment, and the second application is based on Determining a second wireless connection request, invoking a wireless connection interface of the system, establishing a wireless connection between the user equipment and the target wireless access point.
- the first module 11 acquires a first wireless connection request for the target wireless access point, for example, the user needs to connect the user equipment to the target wireless access point, for example, the user specifies the SSID of the target wireless access point/ The BSSID and send a first wireless connection request for the target wireless access point to the first application.
- the specified operation may be manually input through the user equipment, or selected in the list of wireless access points provided by the user equipment, and the like.
- the first two module 12 sends a second wireless connection request for the target wireless access point to the second application by using a first interface provided by the corresponding second application, where the second application and the second application
- the first application is installed on the same user equipment, the first interface is independent of the system of the user equipment, and the second application establishes the user based on the second wireless connection request, and invokes a wireless connection interface of the system.
- the first application invokes a corresponding first interface provided by the second application, and sends a second wireless connection request corresponding to the first wireless connection request for the foregoing target wireless access point to the second application;
- the first application and the second application are both installed on the same user equipment.
- the calling process of the first interface also occurs on the user equipment; and the first interface is independent of the operating system on the user equipment, so that the first The interface is independent of the programming interface of the operating system on the user equipment, and the first application calls the first interface and the programming interface of the operating system on the user device are independent of each other, so that the developer of the first application does not need to pay attention to the system programming interface. Even if you are developing on different platforms, you only need to pay attention to the interface provided by the second application to the first application.
- the second application invokes the wireless connection interface of the system to establish a wireless connection between the user equipment and the target wireless access point.
- the wireless connection interface is provided by the system of each user equipment, and by calling the interface of the user equipment, a wireless connection between the user equipment and the target wireless access point can be implemented.
- the first three module 13 subsequently receives the connection result information of the second application based on the second wireless connection request.
- the connection success, connection failure, connection bandwidth information, connection stability information, and the like returned after receiving the second wireless connection request are received.
- the connection result information includes information of successful connection
- communication is performed by the wireless connection between the user equipment and the target wireless access point, and between the user equipment and the target wireless access point. The wireless connection has been established and the communication between the user equipment and the target wireless access point need not be achieved through the interface provided by the second application.
- the second application further provides a second interface independent of the user equipment system, by sending a scan request to the second application by calling the second interface, to the vicinity of the user equipment (the signal can cover the user equipment)
- the wireless access point scans and obtains one or more wireless access points returned by the second application based on the scan request, for example, returning SSID/BSSID information and/or wireless signals of the one or more wireless access points Strength, etc.
- the second interface is independent of the operating system on the user equipment, so that the second interface is independent of the programming interface of the operating system on the user equipment, and the first application calls the second interface with the user equipment.
- the programming interfaces of the operating system are also independent of each other, so that the developer of the first application does not need to pay attention to the situation of the system programming interface, and even if the development is performed on different platforms, it is only necessary to pay attention to the interface provided by the second application to the first application.
- the first module 11 acquires a first wireless connection request for the target wireless access point, wherein the target wireless access point is selected from one or more wireless access points returned by the second application, and the selection action is available to the user. Completion may also be accomplished by the first application based on preset logic (eg, selecting the wireless access point with the highest signal strength). Further, referring to FIG.
- the cloud server pre-stores information of some wireless access points and corresponding authentication status information, such as whether the wireless access point stores corresponding authentication information in the cloud server; according to the authentication status information thus obtained, from the information Selecting a target wireless access point from among one or more wireless access points, for example, selecting, from among the plurality of wireless access points, a wireless access point in which the corresponding authentication information is stored in the cloud server as the target wireless access point, Used to connect according to its authentication information stored by the cloud server; and then obtain a first wireless connection request for the target wireless access point.
- a network device e.g, a cloud server
- the first application is presented in the first application.
- At least one of the one or more wireless access points are all presented by means of a list; the returned wireless access points may also be sorted (for example, sorted according to signal strength); or only presented Set up logical filtering, one or several wireless access points that meet the requirements.
- a first wireless connection request for the target wireless access point is generated according to the target wireless access point selected by the user from the presented at least one wireless access point.
- the second application further provides a third interface independent of the system of the user equipment, and by calling the third interface, the execution request may be sent from the second application, where the execution request includes but is not limited to: from the second application Obtaining interface elements (eg, view components, layouts, etc.), obtaining location information of the user equipment from the second application, performing data storage in the user equipment through the second application, and performing data communication through the second application.
- the third interface provided by the second application includes, but is not limited to, an interface for acquiring an interface element from the second application, an interface for acquiring location information of the user device from the second application, and the user by using the second application. An interface that performs data storage in the device and an interface that performs data communication through the second application.
- the third interface is independent of the operating system on the user equipment, so that the third interface is independent of the programming interface of the operating system on the user equipment, and the first application invokes the third interface with the user equipment.
- the programming interfaces of the operating system are also independent of each other, so that the developer of the first application does not need to pay attention to the situation of the system programming interface, and even if the development is performed on different platforms, it is only necessary to pay attention to the interface provided by the second application to the first application.
- the first application is developed based on a scripting language (eg, JavaScript, Lua, Python, Ruby, etc.); the second application has a built-in scripting engine, and the first application can be interpreted and executed.
- a scripting language eg, JavaScript, Lua, Python, Ruby, etc.
- the first application with practical functions developed based on the corresponding scripting language can be run across platforms, and the developer does not need to write code for different system platforms, as long as Focus on the interface provided by the second application to develop applications that can run on different platforms, improve development efficiency, shorten development cycle, and reduce development cost; and the function update of the first application does not need to be downloaded and installed again, online Completed, and does not need to notify the user to update, thereby improving the user experience; at the same time, there is no need to maintain multiple versions of the first application, further reducing development costs.
- a scripting language eg, JavaScript, Lua, Python, Ruby, etc.
- the first application is developed based on a scripting language
- the second application has a corresponding scripting engine built in, and the scripting engine is invoked to interpret and execute the first application.
- the second application provides a first interface and a second interface that are separate from the user equipment system.
- the second application invokes the system interface provided by the system of the user equipment Wireless connection point scanning interface, scanning and obtaining one or more wireless access points around the user equipment, and returning it to the second application; then, the second application returns one or more based on the scanning request of the first application Wireless access points, for example, returning SSID/BSSID information and/or wireless signal strength of the one or more wireless access points, and the like.
- the first application invokes the first interface provided by the second application, and sends a second wireless connection request corresponding to the first wireless connection request for the foregoing target wireless access point to the second application.
- the second application further provides a third interface independent of the user equipment system, and the first application may send an execution request from the second application by calling the third interface, where the execution request includes but is not limited to: Obtaining interface elements (such as view components, layouts, etc.) in the application, acquiring location information of the user equipment from the second application, performing data storage in the user equipment through the second application, and performing data communication through the second application;
- the third interface provided by the second application includes, but is not limited to, an interface for acquiring an interface element from the second application, an interface for acquiring location information of the user device from the second application, and executing in the user device by using the second application.
- An interface for data storage an interface for data communication through a second application.
- the first application before selecting the target wireless access point, the first application first obtains the authentication information of the wireless access points from the corresponding network device (for example, the cloud server), for example, the cloud server pre-stores some Information of the wireless access point and corresponding authentication information; selecting a target wireless access point from the one or more wireless access points according to the authentication information; and then acquiring a first wireless connection with respect to the target wireless access point request.
- the corresponding network device for example, the cloud server
- the first application and the second application are both installed on the same user equipment. Accordingly, the calling process of the first interface also occurs on the user equipment; and, the first interface, the second interface, and the third interface are connected to the user equipment.
- the operating systems are independent of each other such that the first interface, the second interface, and the third interface are independent of the programming interface provided by the operating system on the user device, the first application calls the first interface and the programming provided by the operating system on the user device
- the interfaces are also independent of each other, so that the developer of the first application does not need to pay attention to the system programming interface. Even if the development is performed on different platforms, it is only necessary to pay attention to the interface provided by the second application to the first application.
- FIG. 6 is a structural diagram of an apparatus for connecting a wireless access point through a second application in a user equipment according to another aspect of the present application, wherein the second device 2 includes a second module 21 and a second module 22 And the second three modules 23.
- the second module 21 receives a second wireless connection request for the target wireless access point that is sent by the first application to the second application by using the first interface provided by the second application, where the second application is The first application is installed on the same user equipment, the first interface is independent of the system of the user equipment, and the second second module 22 invokes a wireless connection interface of the system to establish the user equipment and the target wireless access. a wireless connection of the point; the second three module 23 returns the connection result information corresponding to the second wireless connection request to the first application.
- the second module 21 receives a second wireless connection request for the target wireless access point that is sent by the first application to the second application by using the first interface provided by the second application, where the second The application is installed on the same user equipment as the first application, and the first interface is independent of the system of the user equipment.
- the first application invokes a corresponding first interface provided by the second application, and sends a second wireless connection request corresponding to the first wireless connection request for the foregoing target wireless access point to the second application;
- the first application and the second application are both installed on the same user equipment.
- the calling process of the first interface also occurs on the user equipment; and the first interface is independent of the operating system on the user equipment, so that the first The interface is independent of the programming interface of the operating system on the user equipment, and the first application calls the first interface and the programming interface of the operating system on the user device are independent of each other, so that the developer of the first application does not need to pay attention to the system programming interface. Even if you are developing on different platforms, you only need to pay attention to the interface provided by the second application to the first application.
- the second module 22 invokes the wireless connection interface of the system to establish a wireless connection between the user equipment and the target wireless access point.
- the wireless connection interface is provided by the system of each user equipment, and by calling the interface of the user equipment, a wireless connection between the user equipment and the target wireless access point can be implemented.
- the second three module 23 returns the connection result information corresponding to the second wireless connection request to the first application.
- the connection success, connection failure, connection bandwidth information, connection stability information, and the like returned after receiving the second wireless connection request are received.
- the connection result information includes information that the connection is successful
- the first device 1 communicates through the wireless connection between the user equipment and the target wireless access point, and the user equipment and the target wireless access at this time
- the wireless connection between the points has been established, and the communication between the user equipment and the target wireless access point need not be implemented through the interface provided by the second application.
- the second application further provides a second interface independent of the user equipment system, and sends a scan request to the second application by the first application to the second interface, so that the signal can cover the user
- the wireless access point of the device scans and obtains one or more wireless access points returned by the second application based on the scan request, for example, returning the SSID/BSSID information of the one or more wireless access points and/or Or wireless signal strength, etc.
- the second interface is independent of the operating system on the user equipment, so that the second interface is independent of the programming interface of the operating system on the user equipment, and the first application calls the second interface with the user equipment.
- the programming interfaces of the operating system are also independent of each other, so that the developer of the first application does not need to pay attention to the situation of the system programming interface, and even if the development is performed on different platforms, it is only necessary to pay attention to the interface provided by the second application to the first application.
- the wireless connection point scanning interface of the system of the user equipment is invoked, the wireless access point near the user equipment (the signal can cover the user equipment) is scanned, and one or more returned by the second application based on the scanning request is obtained.
- Wireless access point is obtained.
- at least one of the one or more wireless access points is returned to the first application.
- the wireless access points returned based on the scan request may be sorted (eg, sorted according to signal strength) and returned to the preferred wireless access point, or returned to the one or more wireless access points according to other preset logic filters. At least one wireless access point.
- FIG. 7 is a structural diagram of an apparatus for connecting a wireless access point through a first application in a user equipment according to still another aspect of the present application, wherein the first apparatus 1 includes a first one module 11 and a first two module 12 And the first three modules 13.
- the first module 11 acquires a first wireless connection request for the target wireless access point, and the first two module 12 sends a second wireless connection request for the target wireless access point to the corresponding second application, where The second application is installed on the same user equipment as the first application; the first three module 13 receives connection result information of the second application based on the second wireless connection request.
- the first module 11 acquires a first wireless connection request for the target wireless access point, for example, the user needs to connect the user equipment to the target wireless access point, for example, the user specifies the SSID of the target wireless access point/ The BSSID and send a first wireless connection request for the target wireless access point to the first application.
- the first two module 12 sends a second wireless connection request for the target wireless access point to the corresponding second application, where the second application is installed on the same user equipment as the first application.
- the second wireless connection request corresponds to the foregoing first wireless connection request.
- the first application does not directly send a wireless connection request to the system of the user equipment, and the systems of the first application and the user equipment are independent of each other, so that the developer of the first application does not need to pay attention to the first application and the different user equipment systems.
- the problem of adaptation between the first application and the second application is only concerned with the development of the first application on different platforms.
- the first three module 13 receives the connection result information of the second application based on the second wireless connection request.
- the connection success, connection failure, connection bandwidth information, connection stability information, and the like returned after receiving the second wireless connection request are received.
- the connection result information includes information of successful connection
- communication is performed by the wireless connection between the user equipment and the target wireless access point, and between the user equipment and the target wireless access point. The wireless connection has been established and the communication between the user equipment and the target wireless access point need not be achieved through the interface provided by the second application.
- the first device 1 sends a scan request to the second application to scan a wireless access point in the vicinity of the user equipment (the signal can cover the user equipment), and receive one or more returned by the second application based on the scan request.
- the wireless access point for example, returns SSID/BSSID information and/or wireless signal strength of the one or more wireless access points, and the like.
- the first application does not directly send a wireless access point scan request to the system of the user equipment, and the systems of the first application and the user equipment are independent of each other, so that the developer of the first application does not need to pay attention to the first application and the different user equipment systems.
- the problem of adaptation between the first application and the second application is only concerned with the development of the first application on different platforms.
- the first device 1 acquires a first wireless connection request for the target wireless access point, wherein the target wireless access point selects from one or more wireless access points returned by the second application, and the selection action is available to the user Completion may also be accomplished by the first application based on preset logic (eg, selecting the wireless access point with the highest signal strength).
- the one or more are presented in the first application.
- At least one of the wireless access points For example, on the screen of the user equipment, the returned wireless access points are all presented by means of a list; the returned wireless access points may also be sorted (for example, sorted according to signal strength); or only presented Set up logical filtering, one or several wireless access points that meet the requirements. Then, a first wireless connection request for the target wireless access point is generated according to the target wireless access point selected by the user from the presented at least one wireless access point.
- FIG. 8 is a structural diagram of a device for connecting a wireless access point through a second application in a user equipment according to still another aspect of the present application, wherein the second device 2 includes a second module 21 and a second module 22 And the second three modules 23.
- the second module 21 receives a second wireless connection request for the target wireless access point sent by the first application to the second application, where the second application is installed on the same user equipment as the first application;
- the second module 22 calls the system wireless connection interface of the user equipment to establish a wireless connection between the user equipment and the target wireless access point;
- the second three module 23 returns the second wireless connection request to the first application. Corresponding connection result information.
- the second module 21 receives a second wireless connection request for the target wireless access point sent by the first application to the second application, where the second application is installed on the same user equipment as the first application. .
- the first application does not directly send a wireless connection request to the system of the user equipment, and the systems of the first application and the user equipment are independent of each other, so that the developer of the first application does not need to pay attention to the first application and the different user equipment systems.
- the problem of adaptation between the first application and the second application is only concerned with the development of the first application on different platforms.
- the second module 22 invokes a system wireless connection interface of the user equipment to establish a wireless connection between the user equipment and the target wireless access point.
- the wireless connection interface is provided by a system of each user equipment, and by calling the interface of the user equipment, a wireless connection between the user equipment and the target wireless access point can be implemented.
- the second three module 23 returns the connection result information corresponding to the second wireless connection request to the first application.
- the connection success, connection failure, connection bandwidth information, connection stability information, and the like returned after receiving the second wireless connection request are received.
- the connection result information includes information that the connection is successful
- the second device 2 communicates through the wireless connection between the user equipment and the target wireless access point, and the user equipment and the target wireless access at this time The wireless connection between the points has been established, and the communication between the user equipment and the target wireless access point need not be implemented through the interface provided by the second application.
- the first application sends a scan request to the second application to scan the wireless access point in the vicinity of the user equipment (the signal can cover the user equipment), and obtain one or more returned by the second application based on the scan request.
- the wireless access point for example, returns SSID/BSSID information and/or wireless signal strength of the one or more wireless access points, and the like.
- the first application does not directly send a wireless connection request to the system of the user equipment, and the systems of the first application and the user equipment are independent of each other, so that the developer of the first application does not need to pay attention to the first application and the different user equipment systems.
- the adaptation problem even if the first application is developed on different platforms, only needs to care about the communication between the first application and the second application.
- the wireless connection point scanning interface of the system of the user equipment is invoked, the wireless access point near the user equipment (the signal can cover the user equipment) is scanned, and one or more returned by the second application based on the scanning request is obtained.
- Wireless access point is scanned.
- at least one of the one or more wireless access points is returned to the first application.
- the wireless access points returned based on the scan request may be sorted (eg, sorted according to signal strength) and returned to the preferred wireless access point, or returned to the one or more wireless access points according to other preset logic filters. At least one wireless access point.
- an apparatus for connecting a wireless access point through a first application in a user equipment comprising:
- a memory arranged to store computer executable instructions that, when executed, cause the processor to:
- an apparatus for connecting a wireless access point through a second application in a user equipment comprising:
- a memory arranged to store computer executable instructions that, when executed, cause the processor to:
- connection result information corresponding to the second wireless connection request
- an apparatus for connecting a wireless access point through a first application in a user equipment comprising:
- a memory arranged to store computer executable instructions that, when executed, cause the processor to:
- an apparatus for connecting a wireless access point through a second application in a user equipment includes:
- a memory arranged to store computer executable instructions that, when executed, cause the processor to:
- connection result information corresponding to the second wireless connection request
- a computer readable storage medium comprising instructions that, when executed, cause a system to:
- a computer readable storage medium comprising instructions that, when executed, cause a system to:
- connection result information corresponding to the second wireless connection request
- a computer readable storage medium comprising instructions that, when executed, cause a system to:
- a computer readable storage medium comprising instructions that, when executed, cause a system to:
- connection result information corresponding to the second wireless connection request
- the present application can be implemented in software and/or a combination of software and hardware, for example, using an application specific integrated circuit (ASIC), a general purpose computer, or any other similar hardware device.
- the software program of the present application can be executed by a processor to implement the steps or functions described above.
- the software programs (including related data structures) of the present application can be stored in a computer readable recording medium such as a RAM memory, a magnetic or optical drive or a floppy disk and the like.
- some of the steps or functions of the present application may be implemented in hardware, for example, as a circuit that cooperates with a processor to perform various steps or functions.
- a portion of the present application can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide a method and/or technical solution in accordance with the present application.
- the program instructions for invoking the method of the present application may be stored in a fixed or removable recording medium, and/or transmitted by a data stream in a broadcast or other signal bearing medium, and/or stored in a The working memory of the computer device in which the program instructions are run.
- an embodiment in accordance with the present application includes a device including a memory for storing computer program instructions and a processor for executing program instructions, wherein when the computer program instructions are executed by the processor, triggering
- the apparatus operates based on the aforementioned methods and/or technical solutions in accordance with various embodiments of the present application.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
Description
本申请涉及通信领域,尤其涉及通过用户设备中的应用连接无线接入点的方法与设备。The present application relates to the field of communications, and in particular, to a method and device for connecting a wireless access point through an application in a user equipment.
目前市场上面的WiFi应用主要分成Android应用和IOS应用这两类,这两种应用方案都是需要掌握原生系统WiFi相关API,并编写相关界面和功能,且开发代码没法相互共用,可移植性差,每次应用的功能升级都需要重新发布版本让用户下载安装,开发成本高、周期长。此外,同时维持多个版本的基于原生系统的应用,成本也非常高昂。At present, the WiFi applications on the market are mainly divided into Android applications and IOS applications. These two applications need to master the native system WiFi related APIs, and write related interfaces and functions, and the development code can not be shared with each other, and the portability is poor. Each time the application's feature upgrade requires a re-release version for users to download and install, the development cost is high and the cycle is long. In addition, maintaining multiple versions of native system-based applications at the same time is costly.
发明内容Summary of the invention
本申请的一个目的,是提供一种通过用户设备中的应用连接无线接入点的方法与设备。It is an object of the present application to provide a method and apparatus for connecting a wireless access point through an application in a user equipment.
根据本申请的一个方面,提供了一种用于通过用户设备中第一应用连接无线接入点的方法,该方法包括:According to an aspect of the present application, a method for connecting a wireless access point through a first application in a user equipment is provided, the method comprising:
获取关于目标无线接入点的第一无线连接请求;Acquiring a first wireless connection request for the target wireless access point;
通过调用对应的第二应用提供的第一接口向所述第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统,所述第二应用基于所述第二无线连接请求、调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接。Sending, by the first interface provided by the corresponding second application, a second wireless connection request for the target wireless access point to the second application, where the second application is installed in the same manner as the first application a user equipment, the first interface is independent of the system of the user equipment, and the second application establishes the user equipment and the target wireless connection based on the second wireless connection request, calling a wireless connection interface of the system Incoming wireless connection.
根据本申请的另一个方面,提供了一种用于通过用户设备中第二应用连接无线接入点的方法,该方法包括:According to another aspect of the present application, a method for connecting a wireless access point through a second application in a user equipment is provided, the method comprising:
接收第一应用通过调用第二应用提供的第一接口向所述第二应用发送的 关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统;Receiving a second wireless connection request for the target wireless access point sent by the first application to the second application by using a first interface provided by the second application, where the second application and the first application are installed on The same user equipment, the first interface is independent of the system of the user equipment;
调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;Invoking a wireless connection interface of the system to establish a wireless connection between the user equipment and the target wireless access point;
向所述第一应用返回所述第二无线连接请求对应的连接结果信息。Returning, to the first application, connection result information corresponding to the second wireless connection request.
根据本申请的又一个方面,提供了一种用于通过用户设备中第一应用连接无线接入点的方法,该方法包括:According to still another aspect of the present application, a method for connecting a wireless access point through a first application in a user equipment is provided, the method comprising:
获取关于目标无线接入点的第一无线连接请求;Acquiring a first wireless connection request for the target wireless access point;
向对应的第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备;Sending, to the corresponding second application, a second wireless connection request for the target wireless access point, where the second application is installed on the same user equipment as the first application;
接收所述第二应用基于所述第二无线连接请求的连接结果信息。Receiving connection result information of the second application based on the second wireless connection request.
根据本申请的再一个方面,提供了一种用于通过用户设备中第二应用连接无线接入点的方法,该方法包括:According to still another aspect of the present application, a method for connecting a wireless access point through a second application in a user equipment is provided, the method comprising:
接收第一应用向第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备;Receiving, by the first application, a second wireless connection request for the target wireless access point, where the second application is installed on the same user equipment as the first application;
调用所述用户设备的系统无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;Calling a system wireless connection interface of the user equipment to establish a wireless connection between the user equipment and the target wireless access point;
向所述第一应用返回所述第二无线连接请求对应的连接结果信息。Returning, to the first application, connection result information corresponding to the second wireless connection request.
根据本申请的一个方面,提供了一种用于通过用户设备中第一应用连接无线接入点的第一装置,该第一装置包括:According to an aspect of the present application, a first apparatus for connecting a wireless access point through a first application in a user equipment is provided, the first apparatus comprising:
第一一模块,用于获取关于目标无线接入点的第一无线连接请求;a first module, configured to acquire a first wireless connection request for a target wireless access point;
第一二模块,用于通过调用对应的第二应用提供的第一接口向所述第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统,所述第二应用基于所述第二无线连接请求、调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接。a first two module, configured to send, by using a first interface provided by the corresponding second application, a second wireless connection request for the target wireless access point to the second application, where the second application is The first application is installed on the same user equipment, the first interface is independent of the system of the user equipment, and the second application establishes the user based on the second wireless connection request, and invokes a wireless connection interface of the system. A wireless connection of the device to the target wireless access point.
根据本申请的另一个方面,提供了一种用于通过用户设备中第二应用连接无线接入点的第二装置,该第二装置包括:According to another aspect of the present application, a second apparatus for connecting a wireless access point through a second application in a user equipment is provided, the second apparatus comprising:
第二一模块,用于接收第一应用通过调用第二应用提供的第一接口向所述 第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统;a second module, configured to receive a second wireless connection request for the target wireless access point that is sent by the first application to the second application by using the first interface provided by the second application, where the second application is The first application is installed on the same user equipment, and the first interface is independent of the system of the user equipment;
第二二模块,用于调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;a second module, configured to invoke a wireless connection interface of the system to establish a wireless connection between the user equipment and the target wireless access point;
第二三模块,用于向所述第一应用返回所述第二无线连接请求对应的连接结果信息。The second third module is configured to return, to the first application, connection result information corresponding to the second wireless connection request.
根据本申请的又一个方面,提供了一种用于通过用户设备中第一应用连接无线接入点的第一装置,该第一装置包括:According to still another aspect of the present application, a first apparatus for connecting a wireless access point through a first application in a user equipment is provided, the first apparatus comprising:
第三一模块,用于获取关于目标无线接入点的第一无线连接请求;a third module, configured to acquire a first wireless connection request for the target wireless access point;
第三二模块,用于向对应的第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备;a third module, configured to send a second wireless connection request for the target wireless access point to the corresponding second application, where the second application is installed on the same user equipment as the first application;
第三三模块,用于接收所述第二应用基于所述第二无线连接请求的连接结果信息。And a third third module, configured to receive connection result information of the second application based on the second wireless connection request.
根据本申请的再一个方面,提供了一种用于通过用户设备中第二应用连接无线接入点的第二装置,该第二装置包括:According to still another aspect of the present application, a second apparatus for connecting a wireless access point through a second application in a user equipment is provided, the second apparatus comprising:
第四一模块,用于接收第一应用向第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备;a fourth module, configured to receive a second wireless connection request that is sent by the first application to the second application, where the second application is installed on the same user equipment as the first application;
第四二模块,用于调用所述用户设备的系统无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;a fourth module, configured to invoke a system wireless connection interface of the user equipment to establish a wireless connection between the user equipment and the target wireless access point;
第四三模块,用于向所述第一应用返回所述第二无线连接请求对应的连接结果信息。And a fourth module, configured to return, to the first application, connection result information corresponding to the second wireless connection request.
根据本申请的一个方面,提供了一种用于通过用户设备中第一应用连接无线接入点的第一设备,该第一设备包括:According to an aspect of the present application, a first device for connecting a wireless access point through a first application in a user equipment, the first device includes:
处理器;以及Processor;
被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器:A memory arranged to store computer executable instructions that, when executed, cause the processor to:
获取关于目标无线接入点的第一无线连接请求;Acquiring a first wireless connection request for the target wireless access point;
通过调用对应的第二应用提供的第一接口向所述第二应用发送关于所述 目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统;Sending, by the first interface provided by the corresponding second application, a second wireless connection request for the target wireless access point to the second application, where the second application is installed in the same manner as the first application a user equipment, the first interface being independent of a system of the user equipment;
接收所述第二应用基于所述第二无线连接请求的连接结果信息。Receiving connection result information of the second application based on the second wireless connection request.
根据本申请的另一个方面,提供了一种用于通过用户设备中第二应用连接无线接入点的第二设备,该第二设备包括:According to another aspect of the present application, a second device for connecting a wireless access point through a second application in a user equipment, the second device includes:
处理器;以及Processor;
被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器:A memory arranged to store computer executable instructions that, when executed, cause the processor to:
接收第一应用通过调用第二应用提供的第一接口向所述第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统;Receiving a second wireless connection request for the target wireless access point sent by the first application to the second application by using a first interface provided by the second application, where the second application and the first application are installed on The same user equipment, the first interface is independent of the system of the user equipment;
调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;Invoking a wireless connection interface of the system to establish a wireless connection between the user equipment and the target wireless access point;
向所述第一应用返回所述第二无线连接请求对应的连接结果信息。Returning, to the first application, connection result information corresponding to the second wireless connection request.
根据本申请的又一个方面,提供了一种用于通过用户设备中第一应用连接无线接入点的第一设备,该第一设备包括:According to still another aspect of the present application, a first device for connecting a wireless access point by using a first application in a user equipment, where the first device includes:
处理器;以及Processor;
被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器:A memory arranged to store computer executable instructions that, when executed, cause the processor to:
获取关于目标无线接入点的第一无线连接请求;Acquiring a first wireless connection request for the target wireless access point;
向对应的第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备;Sending, to the corresponding second application, a second wireless connection request for the target wireless access point, where the second application is installed on the same user equipment as the first application;
接收所述第二应用基于所述第二无线连接请求的连接结果信息。Receiving connection result information of the second application based on the second wireless connection request.
根据本申请的再一个方面,提供了一种用于通过用户设备中第二应用连接无线接入点的第二设备,该第二设备包括:According to still another aspect of the present application, a second device for connecting a wireless access point by using a second application in a user equipment, where the second device includes:
处理器;以及Processor;
被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器:A memory arranged to store computer executable instructions that, when executed, cause the processor to:
接收第一应用向第二应用发送的关于目标无线接入点的第二无线连接请 求,其中,所述第二应用与所述第一应用安装于同一用户设备;Receiving a second wireless connection request for the target wireless access point sent by the first application to the second application, where the second application is installed on the same user equipment as the first application;
调用所述用户设备的系统无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;Calling a system wireless connection interface of the user equipment to establish a wireless connection between the user equipment and the target wireless access point;
向所述第一应用返回所述第二无线连接请求对应的连接结果信息。Returning, to the first application, connection result information corresponding to the second wireless connection request.
根据本申请的一个方面,提供了一种包括指令的计算机可读存储介质,所述指令在被执行时使得系统进行以下操作:According to an aspect of the present application, there is provided a computer readable storage medium comprising instructions that, when executed, cause a system to:
获取关于目标无线接入点的第一无线连接请求;Acquiring a first wireless connection request for the target wireless access point;
通过调用对应的第二应用提供的第一接口向所述第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统;Sending, by the first interface provided by the corresponding second application, a second wireless connection request for the target wireless access point to the second application, where the second application is installed in the same manner as the first application a user equipment, the first interface being independent of a system of the user equipment;
接收所述第二应用基于所述第二无线连接请求的连接结果信息。Receiving connection result information of the second application based on the second wireless connection request.
根据本申请的另一个方面,提供了一种包括指令的计算机可读存储介质,所述指令在被执行时使得系统进行以下操作:In accordance with another aspect of the present application, a computer readable storage medium comprising instructions that, when executed, cause a system to:
接收第一应用通过调用第二应用提供的第一接口向所述第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统;Receiving a second wireless connection request for the target wireless access point sent by the first application to the second application by using a first interface provided by the second application, where the second application and the first application are installed on The same user equipment, the first interface is independent of the system of the user equipment;
调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;Invoking a wireless connection interface of the system to establish a wireless connection between the user equipment and the target wireless access point;
向所述第一应用返回所述第二无线连接请求对应的连接结果信息。Returning, to the first application, connection result information corresponding to the second wireless connection request.
根据本申请的又一个方面,提供了一种包括指令的计算机可读存储介质,所述指令在被执行时使得系统进行以下操作:In accordance with still another aspect of the present application, a computer readable storage medium comprising instructions that, when executed, cause a system to:
获取关于目标无线接入点的第一无线连接请求;Acquiring a first wireless connection request for the target wireless access point;
向对应的第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备;Sending, to the corresponding second application, a second wireless connection request for the target wireless access point, where the second application is installed on the same user equipment as the first application;
接收所述第二应用基于所述第二无线连接请求的连接结果信息。Receiving connection result information of the second application based on the second wireless connection request.
根据本申请的再一个方面,提供了一种包括指令的计算机可读存储介质,所述指令在被执行时使得系统进行以下操作:In accordance with still another aspect of the present application, a computer readable storage medium comprising instructions that, when executed, cause a system to:
接收第一应用向第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备;Receiving, by the first application, a second wireless connection request for the target wireless access point, where the second application is installed on the same user equipment as the first application;
调用所述用户设备的系统无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;Calling a system wireless connection interface of the user equipment to establish a wireless connection between the user equipment and the target wireless access point;
向所述第一应用返回所述第二无线连接请求对应的连接结果信息。Returning, to the first application, connection result information corresponding to the second wireless connection request.
与现有技术相比,本申请至少具有以下优点:Compared with the prior art, the present application has at least the following advantages:
1)开发者无需针对不同的操作系统平台编写代码,只需要掌握一种API,即可开发能在不同平台上运行的应用,提升了开发效率,缩短了开发周期,降低了开发成本;1) Developers do not need to write code for different operating system platforms. They only need to master an API to develop applications that can run on different platforms, improve development efficiency, shorten development cycle, and reduce development costs.
2)应用更新无需重新下载安装,线上即可完成,且不需要通知用户进行更新,从而改善了用户体验,并且无需维持应用的多个版本,进一步降低了开发成本。2) Application updates do not need to be re-downloaded and installed, can be completed online, and do not need to notify users to update, thus improving the user experience, and without maintaining multiple versions of the application, further reducing development costs.
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:Other features, objects, and advantages of the present application will become more apparent from the detailed description of the accompanying drawings.
图1示出根据本申请一个实施例的一种用于通过用户设备中第一应用连接无线接入点的方法流程图;FIG. 1 is a flowchart of a method for connecting a wireless access point through a first application in a user equipment according to an embodiment of the present application;
图2示出根据本申请另一个实施例的一种用于通过用户设备中第二应用连接无线接入点的方法流程图;2 is a flowchart of a method for connecting a wireless access point through a second application in a user equipment according to another embodiment of the present application;
图3示出根据本申请又一个实施例的一种用于通过用户设备中第一应用连接无线接入点的方法流程图;FIG. 3 is a flowchart of a method for connecting a wireless access point through a first application in a user equipment according to still another embodiment of the present application;
图4示出根据本申请再一个实施例的一种用于通过用户设备中第二应用连接无线接入点的方法流程图;4 is a flowchart of a method for connecting a wireless access point through a second application in a user equipment according to still another embodiment of the present application;
图5示出根据本申请一个实施例的一种用于通过用户设备中第一应用连接无线接入点的第一装置结构图;FIG. 5 is a structural diagram of a first apparatus for connecting a wireless access point through a first application in a user equipment according to an embodiment of the present application;
图6示出根据本申请另一个实施例的一种用于通过用户设备中第二应用连接无线接入点的第二装置结构图;6 is a structural diagram of a second apparatus for connecting a wireless access point through a second application in a user equipment according to another embodiment of the present application;
图7示出根据本申请又一个实施例的一种用于通过用户设备中第一应用连接无线接入点的第一装置结构图;FIG. 7 is a structural diagram of a first apparatus for connecting a wireless access point through a first application in a user equipment according to still another embodiment of the present application;
图8示出根据本申请再一个实施例的一种用于通过用户设备中第二应用连 接无线接入点的第二装置结构图;FIG. 8 is a structural diagram of a second apparatus for connecting a wireless access point through a second application in a user equipment according to still another embodiment of the present application;
图9示出根据本申请一个实施例的第一应用、第二应用及云端服务器的关系示意图;FIG. 9 is a schematic diagram showing the relationship between a first application, a second application, and a cloud server according to an embodiment of the present application;
图10示出根据本申请一个实施例的第一应用、第二应用及用户设备的系统的工作原理示意图;FIG. 10 is a schematic diagram showing the working principle of a system of a first application, a second application, and a user equipment according to an embodiment of the present application;
附图中相同或相似的附图标记代表相同或相似的部件。The same or similar reference numerals in the drawings denote the same or similar components.
下面结合附图对本申请作进一步详细描述。The present application is further described in detail below with reference to the accompanying drawings.
在本申请一个典型的配置中,终端、服务网络的设备和可信方均包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration of the present application, the terminal, the device of the service network, and the trusted party each include one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。The memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory. Memory is an example of a computer readable medium.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括非暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer readable media includes both permanent and non-persistent, removable and non-removable media. Information storage can be implemented by any method or technology. The information can be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, A magnetic tape cartridge, magnetic tape storage or other magnetic storage device or any other non-transportable medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media, such as modulated data signals and carrier waves.
本申请所指设备包括但不限于用户设备、网络设备、或用户设备与网络设备通过网络相集成所构成的设备。所述用户设备包括但不限于任何一种可与用户进行人机交互(例如通过触摸板进行人机交互)的移动电子产品,例如智能手机、平板电脑等,所述移动电子产品可以采用任意操作系统,如android操作系统、iOS操作系统等。其中,所述网络设备包括一种能够按照事先设定或存 储的指令,自动进行数值计算和信息处理的电子设备,其硬件包括但不限于微处理器、专用集成电路(ASIC)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、数字信号处理器(DSP)、嵌入式设备等。所述网络设备包括但不限于计算机、网络主机、单个网络服务器、多个网络服务器集或多个服务器构成的云;在此,云由基于云计算(Cloud Computing)的大量计算机或网络服务器构成,其中,云计算是分布式计算的一种,由一群松散耦合的计算机集组成的一个虚拟超级计算机。所述网络包括但不限于互联网、广域网、城域网、局域网、VPN网络、无线自组织网络(Ad Hoc网络)等。优选地,所述设备还可以是运行于所述用户设备、网络设备、或用户设备与网络设备、网络设备、触摸终端或网络设备与触摸终端通过网络相集成所构成的设备上的程序。The device referred to in the present application includes but is not limited to a user equipment, a network device, or a device formed by integrating a user equipment and a network device through a network. The user equipment includes, but is not limited to, any mobile electronic product that can perform human-computer interaction with the user (for example, human-computer interaction through a touchpad), such as a smart phone, a tablet computer, etc., and the mobile electronic product can be operated by any operation. System, such as android operating system, iOS operating system, etc. The network device includes an electronic device capable of automatically performing numerical calculation and information processing according to an instruction set or stored in advance, and the hardware includes but is not limited to a microprocessor, an application specific integrated circuit (ASIC), and programmable logic. Devices (PLDs), Field Programmable Gate Arrays (FPGAs), Digital Signal Processors (DSPs), embedded devices, and more. The network device includes, but is not limited to, a computer, a network host, a single network server, a plurality of network server sets, or a plurality of servers; wherein the cloud is composed of a large number of computers or network servers based on Cloud Computing. Among them, cloud computing is a kind of distributed computing, a virtual supercomputer composed of a group of loosely coupled computers. The network includes, but is not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, a VPN network, a wireless ad hoc network (Ad Hoc network), and the like. Preferably, the device may also be a program running on the user equipment, the network device, or the user equipment and the network device, the network device, the touch terminal, or the network device and the touch terminal integrated through the network.
本申请所指装置包括但不限于用户装置、网络装置、或用户装置与网络装置通过网络相集成所构成的装置。所述用户装置包括但不限于任何一种可与用户进行人机交互(例如通过触摸板进行人机交互)的移动电子产品,例如智能手机、平板电脑等,所述移动电子产品可以采用任意操作系统,如android操作系统、iOS操作系统等。其中,所述网络装置包括一种能够按照事先设定或存储的指令,自动进行数值计算和信息处理的电子装置,其硬件包括但不限于微处理器、专用集成电路(ASIC)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、数字信号处理器(DSP)、嵌入式装置等。所述网络装置包括但不限于计算机、网络主机、单个网络服务器、多个网络服务器集或多个服务器构成的云;在此,云由基于云计算(Cloud Computing)的大量计算机或网络服务器构成,其中,云计算是分布式计算的一种,由一群松散耦合的计算机集组成的一个虚拟超级计算机。所述网络包括但不限于互联网、广域网、城域网、局域网、VPN网络、无线自组织网络(Ad Hoc网络)等。优选地,所述装置还可以是运行于所述用户装置、网络装置、或用户装置与网络装置、网络装置、触摸终端或网络装置与触摸终端通过网络相集成所构成的装置上的程序。The devices referred to in the present application include, but are not limited to, a user device, a network device, or a device in which a user device and a network device are integrated through a network. The user device includes, but is not limited to, any mobile electronic product that can perform human-computer interaction with the user (for example, human-computer interaction through a touch panel), such as a smart phone, a tablet computer, etc., and the mobile electronic product can be operated by any operation. System, such as android operating system, iOS operating system, etc. The network device includes an electronic device capable of automatically performing numerical calculation and information processing according to an instruction set or stored in advance, and the hardware includes but is not limited to a microprocessor, an application specific integrated circuit (ASIC), and programmable logic. Devices (PLDs), Field Programmable Gate Arrays (FPGAs), Digital Signal Processors (DSPs), embedded devices, and more. The network device includes, but is not limited to, a computer, a network host, a single network server, a plurality of network server sets, or a plurality of servers; wherein the cloud is composed of a large number of computers or network servers based on Cloud Computing. Among them, cloud computing is a kind of distributed computing, a virtual supercomputer composed of a group of loosely coupled computers. The network includes, but is not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, a VPN network, a wireless ad hoc network (Ad Hoc network), and the like. Preferably, the device may also be a program running on the user device, the network device, or the user device and the network device, the network device, the touch terminal, or the network device and the touch terminal integrated through the network.
当然,本领域技术人员应能理解上述设备或装置仅为举例,其他现有的或今后可能出现的设备或装置如可适用于本申请,也应包含在本申请保护范围以内,并在此以引用方式包含于此。Of course, those skilled in the art should understand that the above-mentioned devices or devices are merely examples, and other existing or future devices or devices may be applicable to the present application, and should also be included in the scope of the present application. The reference is included here.
在本申请的描述中,“多个”的含义是两个或者更多,除非另有明确具体 的限定。In the description of the present application, the meaning of "plurality" is two or more unless specifically defined otherwise.
以下以安装于用户所使用的用户设备上的第一应用、第二应用为例对本申请详细描述。The following is a detailed description of the first application and the second application installed on the user equipment used by the user.
图1示出了根据本申请一个方面的一种用于通过用户设备中第一应用连接无线接入点的方法流程图,该方法包括步骤S11、步骤S12。1 shows a flow chart of a method for connecting a wireless access point through a first application in a user equipment, the method comprising steps S11, S12, in accordance with an aspect of the present application.
其中,在步骤S11中,第一应用获取关于目标无线接入点的第一无线连接请求;在步骤S12中,第一应用通过调用对应的第二应用提供的第一接口向所述第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统,所述第二应用基于所述第二无线连接请求、调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接。In step S11, the first application acquires a first wireless connection request for the target wireless access point; in step S12, the first application sends the first interface provided by the corresponding second application to the second application. Sending a second wireless connection request for the target wireless access point, where the second application is installed on the same user equipment as the first application, and the first interface is independent of the system of the user equipment, The second application establishes a wireless connection between the user equipment and the target wireless access point based on the second wireless connection request, invoking a wireless connection interface of the system.
具体而言,在步骤S11中,第一应用获取关于目标无线接入点的第一无线连接请求,例如,用户需要将用户设备连接到目标无线接入点,例如,用户指定目标无线接入点的SSID/BSSID,并向第一应用发送关于该目标无线接入点的第一无线连接请求。指定的操作可以是通过用户设备手动输入,或者在用户设备提供的无线接入点列表中进行选择等。Specifically, in step S11, the first application acquires a first wireless connection request with respect to the target wireless access point, for example, the user needs to connect the user equipment to the target wireless access point, for example, the user specifies the target wireless access point. The SSID/BSSID and send a first wireless connection request for the target wireless access point to the first application. The specified operation may be manually input through the user equipment, or selected in the list of wireless access points provided by the user equipment, and the like.
接着,在步骤S12中,第一应用通过调用对应的第二应用提供的第一接口向所述第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统,所述第二应用基于所述第二无线连接请求、调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接。例如,第一应用调用对应的、由第二应用所提供的第一接口,实现向第二应用发送关于前述目标无线接入点的与第一无线连接请求相对应的第二无线连接请求;其中,第一应用和第二应用都安装于同一台用户设备,相应地,第一接口的调用过程也发生于该用户设备;并且,第一接口与用户设备上的操作系统相互独立,从而第一接口与用户设备上操作系统提供的编程接口相互独立,第一应用对第一接口的调用与用户设备上操作系统提供的编程接口也相互独立,从而第一应用的开发者无需关注系统编程接口的情况,就算在不同的平台进行开发,也只要关注第二应用向第一应用所提供的接口即可。Next, in step S12, the first application sends a second wireless connection request for the target wireless access point to the second application by calling a first interface provided by the corresponding second application, where the second The application is installed on the same user equipment as the first application, the first interface is independent of the system of the user equipment, and the second application is established based on the second wireless connection request and calling the wireless connection interface of the system. The user equipment is wirelessly connected to the target wireless access point. For example, the first application invokes a corresponding first interface provided by the second application, and sends a second wireless connection request corresponding to the first wireless connection request for the foregoing target wireless access point to the second application; The first application and the second application are both installed on the same user equipment. Accordingly, the calling process of the first interface also occurs on the user equipment; and the first interface is independent of the operating system on the user equipment, so that the first The interface is independent of the programming interface provided by the operating system on the user equipment, and the first application calls the first interface independently of the programming interface provided by the operating system on the user device, so that the developer of the first application does not need to pay attention to the system programming interface. In the case, even if development is performed on different platforms, it is only necessary to pay attention to the interface provided by the second application to the first application.
此时,第二应用调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接。其中,无线连接接口由各用户设备的系统提供,通过调用用户设备的该接口,可实现该用户设备与前述目标无线接入点之间的无线连接。At this time, the second application invokes the wireless connection interface of the system to establish a wireless connection between the user equipment and the target wireless access point. The wireless connection interface is provided by the system of each user equipment, and by calling the interface of the user equipment, a wireless connection between the user equipment and the target wireless access point can be implemented.
优选地,随后,在步骤S13中,第一应用接收所述第二应用基于所述第二无线连接请求的连接结果信息。例如,接收第二无线连接请求发送后所返回的连接成功、连接失败、连接带宽信息、连接稳定性信息等。其中,优选地,当该连接结果信息中包含连接成功的信息,通过所述用户设备与所述目标无线接入点间的无线连接进行通信,此时用户设备与目标无线接入点之间的无线连接已经建立,用户设备与目标无线接入点之间的通信无需通过第二应用所提供的接口实现。Preferably, subsequently, in step S13, the first application receives connection result information of the second application based on the second wireless connection request. For example, the connection success, connection failure, connection bandwidth information, connection stability information, and the like returned after receiving the second wireless connection request are received. Preferably, when the connection result information includes information of successful connection, communication is performed by the wireless connection between the user equipment and the target wireless access point, and between the user equipment and the target wireless access point. The wireless connection has been established and the communication between the user equipment and the target wireless access point need not be achieved through the interface provided by the second application.
优选地,第二应用还提供了与用户设备系统相独立的第二接口,通过对该第二接口的调用,向第二应用发送扫描请求,以对用户设备附近(信号能覆盖用户设备)的无线接入点进行扫描,并获得第二应用基于该扫描请求而返回的一个或多个无线接入点,例如,返回这一个或多个无线接入点的SSID/BSSID信息和/或无线信号强度等。和第一接口的情况类似地,第二接口与用户设备上的操作系统相互独立,从而第二接口与用户设备上操作系统的编程接口相互独立,第一应用对第二接口的调用与用户设备上操作系统的编程接口也相互独立,从而第一应用的开发者无需关注系统编程接口的情况,就算在不同的平台进行开发,也只要关注第二应用向第一应用所提供的接口即可。Preferably, the second application further provides a second interface independent of the user equipment system, by sending a scan request to the second application by calling the second interface, to the vicinity of the user equipment (the signal can cover the user equipment) The wireless access point scans and obtains one or more wireless access points returned by the second application based on the scan request, for example, returning SSID/BSSID information and/or wireless signals of the one or more wireless access points Strength, etc. Similar to the case of the first interface, the second interface is independent of the operating system on the user equipment, so that the second interface is independent of the programming interface of the operating system on the user equipment, and the first application calls the second interface with the user equipment. The programming interfaces of the operating system are also independent of each other, so that the developer of the first application does not need to pay attention to the situation of the system programming interface, and even if the development is performed on different platforms, it is only necessary to pay attention to the interface provided by the second application to the first application.
优选地,在步骤S11中,第一应用获取关于目标无线接入点的第一无线连接请求,其中该目标无线接入点从第二应用返回的一个或多个无线接入点中选择,选择动作可由用户完成,也可由第一应用根据预设逻辑(例如,选择信号强度最高的无线接入点)完成。更进一步地,参考图9,在从这一个或多个无线接入点中选择目标无线接入点之前,先从对应的网络设备(例如,云端服务器)请求获取这些无线接入点的认证状态信息,例如,云端服务器预先存储有一些无线接入点的信息以及对应的认证状态信息,如无线接入点是否在云端服务器存储有相应的认证信息;根据由此获取的认证状态信息,从这一个或多个无线接入点之中选择目标无线接入点,例如,从多个无线接入点中,选中在云端服务 器存储有相应的认证信息的无线接入点作为目标无线接入点,用于依据云端服务器存储的它的认证信息进行连接;然后再获取关于该目标无线接入点的第一无线连接请求。Preferably, in step S11, the first application acquires a first wireless connection request for the target wireless access point, wherein the target wireless access point selects from one or more wireless access points returned by the second application, and selects The action can be done by the user or by the first application according to preset logic (eg, selecting the wireless access point with the highest signal strength). Further, referring to FIG. 9, before selecting a target wireless access point from the one or more wireless access points, requesting acquisition of the authentication status of the wireless access points from a corresponding network device (eg, a cloud server) Information, for example, the cloud server pre-stores information of some wireless access points and corresponding authentication status information, such as whether the wireless access point stores corresponding authentication information in the cloud server; according to the authentication status information thus obtained, from the information Selecting a target wireless access point from among one or more wireless access points, for example, selecting, from among the plurality of wireless access points, a wireless access point in which the corresponding authentication information is stored in the cloud server as the target wireless access point, Used to connect according to its authentication information stored by the cloud server; and then obtain a first wireless connection request for the target wireless access point.
优选地,为便于用户从第二应用基于第一应用通过第二接口发送的扫描请求所返回的一个或多个无线接入点中选取目标无线接入点,在所述第一应用中呈现这一个或多个无线接入点中的至少一个无线接入点。例如,在用户设备的屏幕上,通过列表的方式将返回的无线接入点全部呈现;也可将返回的无线接入点进行排序(例如,根据信号强度排序)后呈现;或者只呈现经过预设逻辑筛选、符合条件的一个或几个无线接入点。然后,再根据用户从呈现出来的至少一个无线接入点中选中的目标无线接入点,生成关于该目标无线接入点的第一无线连接请求。Preferably, in order to facilitate the user to select a target wireless access point from one or more wireless access points returned by the second application based on the scan request sent by the first application through the second interface, the first application is presented in the first application. At least one of the one or more wireless access points. For example, on the screen of the user equipment, the returned wireless access points are all presented by means of a list; the returned wireless access points may also be sorted (for example, sorted according to signal strength); or only presented Set up logical filtering, one or several wireless access points that meet the requirements. Then, a first wireless connection request for the target wireless access point is generated according to the target wireless access point selected by the user from the presented at least one wireless access point.
优选地,第二应用还提供与用户设备的系统相互独立的第三接口,通过调用该第三接口,即可从第二应用发送执行请求,该执行请求包括但不限于:从第二应用中获取界面元素(例如视图组件、布局等)、从第二应用中获取用户设备的位置信息、通过第二应用在用户设备中执行数据存储、通过第二应用进行数据通信。相应地,第二应用所提供的第三接口包括但不限于:用于从第二应用中获取界面元素的接口、从第二应用中获取用户设备的位置信息的接口、通过第二应用在用户设备中执行数据存储的接口、通过第二应用进行数据通信的接口。和第一接口的情况类似地,第三接口与用户设备上的操作系统相互独立,从而第三接口与用户设备上操作系统的编程接口相互独立,第一应用对第三接口的调用与用户设备上操作系统的编程接口也相互独立,从而第一应用的开发者无需关注系统编程接口的情况,就算在不同的平台进行开发,也只要关注第二应用向第一应用所提供的接口即可。Preferably, the second application further provides a third interface independent of the system of the user equipment, and by calling the third interface, the execution request may be sent from the second application, where the execution request includes but is not limited to: from the second application Obtaining interface elements (eg, view components, layouts, etc.), obtaining location information of the user equipment from the second application, performing data storage in the user equipment through the second application, and performing data communication through the second application. Correspondingly, the third interface provided by the second application includes, but is not limited to, an interface for acquiring an interface element from the second application, an interface for acquiring location information of the user device from the second application, and the user by using the second application. An interface that performs data storage in the device and an interface that performs data communication through the second application. Similar to the case of the first interface, the third interface is independent of the operating system on the user equipment, so that the third interface is independent of the programming interface of the operating system on the user equipment, and the first application invokes the third interface with the user equipment. The programming interfaces of the operating system are also independent of each other, so that the developer of the first application does not need to pay attention to the situation of the system programming interface, and even if the development is performed on different platforms, it is only necessary to pay attention to the interface provided by the second application to the first application.
特别地,第一应用基于脚本语言(例如,JavaScript、Lua、Python、Ruby等)进行开发;第二应用相应地内置有脚本引擎,调用该脚本引擎,第一应用即可被解释执行。在不同的平台上开发好带有同样脚本引擎的第二应用后,基于对应脚本语言开发的、具有实用功能的第一应用即可跨平台运行,开发者无需针对不同的系统平台编写代码,只要关注第二应用提供的接口即可开发能在不同平台上运行的应用,提升了开发效率,缩短了开发周期,降低了开发成本; 且第一应用的功能更新无需重新下载安装,线上即可完成,并且不需要通知用户进行更新,从而改善了用户体验;同时,无需维持第一应用的多个版本,进一步降低了开发成本。In particular, the first application is developed based on a scripting language (eg, JavaScript, Lua, Python, Ruby, etc.); the second application has a built-in scripting engine, and the first application can be interpreted and executed. After developing a second application with the same script engine on different platforms, the first application with practical functions developed based on the corresponding scripting language can be run across platforms, and the developer does not need to write code for different system platforms, as long as Focus on the interface provided by the second application to develop applications that can run on different platforms, improve development efficiency, shorten development cycle, and reduce development cost; and the function update of the first application does not need to be downloaded and installed again, online Completed, and does not need to notify the user to update, thereby improving the user experience; at the same time, there is no need to maintain multiple versions of the first application, further reducing development costs.
参考图10,第一应用基于脚本语言开发,第二应用内置有相应的脚本引擎,调用该脚本引擎,对第一应用进行解释执行。第二应用提供了与用户设备系统相独立的第一接口和第二接口。通过对第二接口的调用,实现向第二应用发送扫描请求,以对用户设备附近(信号能覆盖用户设备)的无线接入点进行扫描;第二应用调用用户设备的系统提供的系统接口中的无线连接点扫描接口,扫描并获得用户设备周围的一个或者多个无线接入点,并将其返回给第二应用;接着,第二应用基于第一应用的扫描请求,返回的一个或多个无线接入点,例如,返回这一个或多个无线接入点的SSID/BSSID信息和/或无线信号强度等。然后,第一应用调用由第二应用所提供的第一接口,实现向第二应用发送关于前述目标无线接入点的与第一无线连接请求相对应的第二无线连接请求。优选地,第二应用还提供了与用户设备系统相独立的第三接口,第一应用通过调用该第三接口,即可从第二应用发送执行请求,该执行请求包括但不限于:从第二应用中获取界面元素(例如视图组件、布局等)、从第二应用中获取用户设备的位置信息、通过第二应用在用户设备中执行数据存储、通过第二应用进行数据通信;相应地,第二应用所提供的第三接口包括但不限于:用于从第二应用中获取界面元素的接口、从第二应用中获取用户设备的位置信息的接口、通过第二应用在用户设备中执行数据存储的接口、通过第二应用进行数据通信的接口。进一步地,补充参考图9,在选择目标无线接入点之前,第一应用先从对应的网络设备(例如,云端服务器)获取这些无线接入点的认证信息,例如,云端服务器预先存储有一些无线接入点的信息以及对应的认证信息;根据认证信息,从这一个或多个无线接入点之中选择目标无线接入点;然后再获取关于该目标无线接入点的第一无线连接请求。Referring to FIG. 10, the first application is developed based on a scripting language, and the second application has a corresponding scripting engine built in, and the scripting engine is invoked to interpret and execute the first application. The second application provides a first interface and a second interface that are separate from the user equipment system. Sending a scan request to the second application by using the second interface to scan the wireless access point in the vicinity of the user equipment (the signal can cover the user equipment); the second application invokes the system interface provided by the system of the user equipment Wireless connection point scanning interface, scanning and obtaining one or more wireless access points around the user equipment, and returning it to the second application; then, the second application returns one or more based on the scanning request of the first application Wireless access points, for example, returning SSID/BSSID information and/or wireless signal strength of the one or more wireless access points, and the like. Then, the first application invokes the first interface provided by the second application, and sends a second wireless connection request corresponding to the first wireless connection request for the foregoing target wireless access point to the second application. Preferably, the second application further provides a third interface independent of the user equipment system, and the first application may send an execution request from the second application by calling the third interface, where the execution request includes but is not limited to: Obtaining interface elements (such as view components, layouts, etc.) in the application, acquiring location information of the user equipment from the second application, performing data storage in the user equipment through the second application, and performing data communication through the second application; The third interface provided by the second application includes, but is not limited to, an interface for acquiring an interface element from the second application, an interface for acquiring location information of the user device from the second application, and executing in the user device by using the second application. An interface for data storage, an interface for data communication through a second application. Further, with reference to FIG. 9, before selecting the target wireless access point, the first application first obtains the authentication information of the wireless access points from the corresponding network device (for example, the cloud server), for example, the cloud server pre-stores some Information of the wireless access point and corresponding authentication information; selecting a target wireless access point from the one or more wireless access points according to the authentication information; and then acquiring a first wireless connection with respect to the target wireless access point request.
其中,第一应用和第二应用都安装于同一台用户设备,相应地,第一接口的调用过程也发生于该用户设备;并且,第一接口、第二接口和第三接口与用户设备上的操作系统相互独立,从而第一接口、第二接口和第三接口与用户设备上操作系统提供的编程接口相互独立,第一应用对第一接口的调用与用户设 备上操作系统的提供的编程接口也相互独立,从而第一应用的开发者无需关注系统编程接口的情况,就算在不同的平台进行开发,也只要关注第二应用向第一应用所提供的接口即可。The first application and the second application are both installed on the same user equipment. Accordingly, the calling process of the first interface also occurs on the user equipment; and, the first interface, the second interface, and the third interface are connected to the user equipment. The operating systems are independent of each other such that the first interface, the second interface, and the third interface are independent of the programming interface provided by the operating system on the user device, the first application calls the first interface and the programming provided by the operating system on the user device The interfaces are also independent of each other, so that the developer of the first application does not need to pay attention to the system programming interface. Even if the development is performed on different platforms, it is only necessary to pay attention to the interface provided by the second application to the first application.
图2示出了根据本申请另一个方面的一种用于通过用户设备中第二应用连接无线接入点的方法流程图,该方法包括步骤S21、步骤S22和步骤S23。2 illustrates a flow chart of a method for connecting a wireless access point through a second application in a user device, the method including step S21, step S22, and step S23, in accordance with another aspect of the present application.
其中,在步骤S21中,第二应用接收第一应用通过调用第二应用提供的第一接口向所述第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统;在步骤S22中,第二应用调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;在步骤S23中,第二应用向所述第一应用返回所述第二无线连接请求对应的连接结果信息。The second application receives a second wireless connection request for the target wireless access point sent by the first application to the second application by using the first interface provided by the second application, in the step S21, where the first application The second application is installed on the same user equipment as the first application, and the first interface is independent of the system of the user equipment; in step S22, the second application invokes the wireless connection interface of the system to establish the user equipment and The wireless connection of the target wireless access point; in step S23, the second application returns the connection result information corresponding to the second wireless connection request to the first application.
具体而言,在步骤S21中,第二应用接收第一应用通过调用第二应用提供的第一接口向所述第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统。例如,第一应用调用对应的、由第二应用所提供的第一接口,实现向第二应用发送关于前述目标无线接入点的与第一无线连接请求相对应的第二无线连接请求;其中,第一应用和第二应用都安装于同一台用户设备,相应地,第一接口的调用过程也发生于该用户设备;并且,第一接口与用户设备上的操作系统相互独立,从而第一接口与用户设备上操作系统的编程接口相互独立,第一应用对第一接口的调用与用户设备上操作系统的编程接口也相互独立,从而第一应用的开发者无需关注系统编程接口的情况,就算在不同的平台进行开发,也只要关注第二应用向第一应用所提供的接口即可。Specifically, in step S21, the second application receives a second wireless connection request for the target wireless access point that is sent by the first application to the second application by using the first interface provided by the second application, where The second application is installed on the same user equipment as the first application, and the first interface is independent of the system of the user equipment. For example, the first application invokes a corresponding first interface provided by the second application, and sends a second wireless connection request corresponding to the first wireless connection request for the foregoing target wireless access point to the second application; The first application and the second application are both installed on the same user equipment. Accordingly, the calling process of the first interface also occurs on the user equipment; and the first interface is independent of the operating system on the user equipment, so that the first The interface is independent of the programming interface of the operating system on the user equipment, and the first application calls the first interface and the programming interface of the operating system on the user device are independent of each other, so that the developer of the first application does not need to pay attention to the system programming interface. Even if you are developing on different platforms, you only need to pay attention to the interface provided by the second application to the first application.
接着,在步骤S22中,第二应用调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接。其中,无线连接接口由各用户设备的系统提供,通过调用用户设备的该接口,可实现该用户设备与前述目标无线接入点之间的无线连接。Next, in step S22, the second application invokes the wireless connection interface of the system to establish a wireless connection between the user equipment and the target wireless access point. The wireless connection interface is provided by the system of each user equipment, and by calling the interface of the user equipment, a wireless connection between the user equipment and the target wireless access point can be implemented.
然后,在步骤S23中,第二应用向第一应用返回第二无线连接请求对应的连接结果信息。例如,接收第二无线连接请求发送后所返回的连接成功、连接失败、连接带宽信息、连接稳定性信息等。其中,优选地,当该连接结果信息 中包含连接成功的信息,第二应用通过所述用户设备与所述目标无线接入点间的无线连接进行通信,此时用户设备与目标无线接入点之间的无线连接已经建立,用户设备与目标无线接入点之间的通信无需通过第二应用所提供的接口实现。Then, in step S23, the second application returns the connection result information corresponding to the second wireless connection request to the first application. For example, the connection success, connection failure, connection bandwidth information, connection stability information, and the like returned after receiving the second wireless connection request are received. Preferably, when the connection result information includes information that the connection is successful, the second application communicates through the wireless connection between the user equipment and the target wireless access point, and the user equipment and the target wireless access point at this time The wireless connection between the two has been established, and the communication between the user equipment and the target wireless access point need not be implemented through the interface provided by the second application.
优选地,第二应用还提供了与用户设备系统相独立的第二接口,通过第一应用对该第二接口的调用,向第二应用发送扫描请求,以对用户设备附近(信号能覆盖用户设备)的无线接入点进行扫描,并获得第二应用基于该扫描请求而返回的一个或多个无线接入点,例如,返回这一个或多个无线接入点的SSID/BSSID信息和/或无线信号强度等。和第一接口的情况类似地,第二接口与用户设备上的操作系统相互独立,从而第二接口与用户设备上操作系统的编程接口相互独立,第一应用对第二接口的调用与用户设备上操作系统的编程接口也相互独立,从而第一应用的开发者无需关注系统编程接口的情况,就算在不同的平台进行开发,也只要关注第二应用向第一应用所提供的接口即可。此时,调用用户设备的系统的无线连接点扫描接口,对用户设备附近(信号能覆盖用户设备)的无线接入点进行扫描,并获得第二应用基于该扫描请求而返回的一个或多个无线接入点。随后,向第一应用返回这一个或多个无线接入点中的至少一个无线接入点。例如,可将基于扫描请求返回的无线接入点进行排序(例如,根据信号强度排序)后返回优选的无线接入点,或根据其他预设逻辑筛选而返回这一个或多个无线接入点中的至少一个无线接入点。Preferably, the second application further provides a second interface independent of the user equipment system, and sends a scan request to the second application by the first application to the second interface, so that the signal can cover the user The wireless access point of the device scans and obtains one or more wireless access points returned by the second application based on the scan request, for example, returning the SSID/BSSID information of the one or more wireless access points and/or Or wireless signal strength, etc. Similar to the case of the first interface, the second interface is independent of the operating system on the user equipment, so that the second interface is independent of the programming interface of the operating system on the user equipment, and the first application calls the second interface with the user equipment. The programming interfaces of the operating system are also independent of each other, so that the developer of the first application does not need to pay attention to the situation of the system programming interface, and even if the development is performed on different platforms, it is only necessary to pay attention to the interface provided by the second application to the first application. At this time, the wireless connection point scanning interface of the system of the user equipment is invoked, the wireless access point near the user equipment (the signal can cover the user equipment) is scanned, and one or more returned by the second application based on the scanning request is obtained. Wireless access point. Subsequently, at least one of the one or more wireless access points is returned to the first application. For example, the wireless access points returned based on the scan request may be sorted (eg, sorted according to signal strength) and returned to the preferred wireless access point, or returned to the one or more wireless access points according to other preset logic filters. At least one wireless access point.
图3示出了根据本申请又一个方面的一种用于通过用户设备中第一应用连接无线接入点的方法流程图,该方法包括步骤S31、步骤S32和步骤S33。3 illustrates a flow chart of a method for connecting a wireless access point through a first application in a user equipment, the method including step S31, step S32, and step S33, in accordance with still another aspect of the present application.
其中,在步骤S31中,第一应用获取关于目标无线接入点的第一无线连接请求;在步骤S32中,第一应用向对应的第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备;在步骤S33中,第一应用接收所述第二应用基于所述第二无线连接请求的连接结果信息。In step S31, the first application acquires a first wireless connection request for the target wireless access point; in step S32, the first application sends a second information about the target wireless access point to the corresponding second application. a wireless connection request, wherein the second application is installed on the same user equipment as the first application; in step S33, the first application receives connection result information of the second application based on the second wireless connection request.
具体而言,在步骤S31中,第一应用获取关于目标无线接入点的第一无线连接请求,例如,用户需要将用户设备连接到目标无线接入点,例如,用户指定目标无线接入点的SSID/BSSID,并向第一应用发送关于该目标无线接入点 的第一无线连接请求。Specifically, in step S31, the first application acquires a first wireless connection request with respect to the target wireless access point, for example, the user needs to connect the user equipment to the target wireless access point, for example, the user specifies the target wireless access point. The SSID/BSSID and send a first wireless connection request for the target wireless access point to the first application.
接着,在步骤S32中,第一应用向对应的第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备。其中,该第二无线连接请求和前述第一无线连接请求相对应。此时,第一应用并不直接向用户设备的系统发送无线连接请求,第一应用和用户设备的系统是相互独立的,从而第一应用的开发者无需关注第一应用和不同用户设备系统之间的适配问题,就算在不同的平台开发该第一应用,也只要关心第一应用和第二应用之间的通信即可。Next, in step S32, the first application sends a second wireless connection request for the target wireless access point to the corresponding second application, where the second application and the first application are installed on the same user equipment. . The second wireless connection request corresponds to the foregoing first wireless connection request. At this time, the first application does not directly send a wireless connection request to the system of the user equipment, and the systems of the first application and the user equipment are independent of each other, so that the developer of the first application does not need to pay attention to the first application and the different user equipment systems. The problem of adaptation between the first application and the second application is only concerned with the development of the first application on different platforms.
然后,在步骤S33中,第一应用接收所述第二应用基于所述第二无线连接请求的连接结果信息。例如,接收第二无线连接请求发送后所返回的连接成功、连接失败、连接带宽信息、连接稳定性信息等。其中,优选地,当该连接结果信息中包含连接成功的信息,通过所述用户设备与所述目标无线接入点间的无线连接进行通信,此时用户设备与目标无线接入点之间的无线连接已经建立,用户设备与目标无线接入点之间的通信无需通过第二应用所提供的接口实现。Then, in step S33, the first application receives the connection result information of the second application based on the second wireless connection request. For example, the connection success, connection failure, connection bandwidth information, connection stability information, and the like returned after receiving the second wireless connection request are received. Preferably, when the connection result information includes information of successful connection, communication is performed by the wireless connection between the user equipment and the target wireless access point, and between the user equipment and the target wireless access point. The wireless connection has been established and the communication between the user equipment and the target wireless access point need not be achieved through the interface provided by the second application.
优选地,第一应用向第二应用发送扫描请求,以对用户设备附近(信号能覆盖用户设备)的无线接入点进行扫描,并接收第二应用基于该扫描请求返回的一个或者多个无线接入点,例如,返回这一个或多个无线接入点的SSID/BSSID信息和/或无线信号强度等。第一应用并不直接向用户设备的系统发送无线接入点扫描请求,第一应用和用户设备的系统是相互独立的,从而第一应用的开发者无需关注第一应用和不同用户设备系统之间的适配问题,就算在不同的平台开发该第一应用,也只要关心第一应用和第二应用之间的通信即可。Preferably, the first application sends a scan request to the second application to scan a wireless access point in the vicinity of the user equipment (the signal can cover the user equipment), and receive one or more wireless reports returned by the second application based on the scan request. The access point, for example, returns the SSID/BSSID information and/or wireless signal strength of the one or more wireless access points, and the like. The first application does not directly send a wireless access point scan request to the system of the user equipment, and the systems of the first application and the user equipment are independent of each other, so that the developer of the first application does not need to pay attention to the first application and the different user equipment systems. The problem of adaptation between the first application and the second application is only concerned with the development of the first application on different platforms.
进一步优选地,第一应用获取关于目标无线接入点的第一无线连接请求,其中该目标无线接入点从第二应用返回的一个或多个无线接入点中选择,选择动作可由用户完成,也可由第一应用根据预设逻辑(例如,选择信号强度最高的无线接入点)完成。Further preferably, the first application acquires a first wireless connection request for the target wireless access point, wherein the target wireless access point is selected from one or more wireless access points returned by the second application, and the selecting action is achievable by the user It can also be done by the first application according to preset logic (for example, selecting the wireless access point with the highest signal strength).
更优选地,为便于用户从第二应用基于第一应用发送的扫描请求所返回的一个或多个无线接入点中选取目标无线接入点,在所述第一应用中呈现这一个或多个无线接入点中的至少一个无线接入点。例如,在用户设备的屏幕上,通过列表的方式将返回的无线接入点全部呈现;也可将返回的无线接入点进行排 序(例如,根据信号强度排序)后呈现;或者只呈现经过预设逻辑筛选、符合条件的一个或几个无线接入点。然后,再根据用户从呈现出来的至少一个无线接入点中选中的目标无线接入点,生成关于该目标无线接入点的第一无线连接请求。More preferably, in order to facilitate the user to select a target wireless access point from one or more wireless access points returned by the second application based on the scan request sent by the first application, the one or more are presented in the first application. At least one of the wireless access points. For example, on the screen of the user equipment, the returned wireless access points are all presented by means of a list; the returned wireless access points may also be sorted (for example, sorted according to signal strength); or only presented Set up logical filtering, one or several wireless access points that meet the requirements. Then, a first wireless connection request for the target wireless access point is generated according to the target wireless access point selected by the user from the presented at least one wireless access point.
图4示出了根据本申请再一个方面的一种用于通过用户设备中第二应用连接无线接入点的方法流程图,该方法包括步骤S41、步骤S42和步骤S43。4 illustrates a flow chart of a method for connecting a wireless access point through a second application in a user equipment, the method including step S41, step S42, and step S43, in accordance with still another aspect of the present application.
其中,在步骤S41中,接收第一应用向第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备;在步骤S42中,第二应用调用所述用户设备的系统无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;在步骤S43中,第二应用向所述第一应用返回所述第二无线连接请求对应的连接结果信息。The second wireless connection request for the target wireless access point sent by the first application to the second application is received in step S41, wherein the second application is installed on the same user equipment as the first application; In step S42, the second application invokes the system wireless connection interface of the user equipment to establish a wireless connection between the user equipment and the target wireless access point; in step S43, the second application returns to the first application. The connection result information corresponding to the second wireless connection request is described.
具体而言,在步骤S41中,接收第一应用向第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备。此时,第一应用并不直接向用户设备的系统发送无线连接请求,第一应用和用户设备的系统是相互独立的,从而第一应用的开发者无需关注第一应用和不同用户设备系统之间的适配问题,就算在不同的平台开发该第一应用,也只要关心第一应用和第二应用之间的通信即可。Specifically, in step S41, a second wireless connection request for the target wireless access point sent by the first application to the second application is received, where the second application and the first application are installed on the same user equipment. . At this time, the first application does not directly send a wireless connection request to the system of the user equipment, and the systems of the first application and the user equipment are independent of each other, so that the developer of the first application does not need to pay attention to the first application and the different user equipment systems. The problem of adaptation between the first application and the second application is only concerned with the development of the first application on different platforms.
接着,在步骤S42中,第二应用调用所述用户设备的系统无线连接接口建立所述用户设备与所述目标无线接入点的无线连接。其中,无线连接接口由各用户设备的系统提供,通过调用用户设备的该接口,可实现该用户设备与前述目标无线接入点之间的无线连接。Next, in step S42, the second application invokes a system wireless connection interface of the user equipment to establish a wireless connection between the user equipment and the target wireless access point. The wireless connection interface is provided by the system of each user equipment, and by calling the interface of the user equipment, a wireless connection between the user equipment and the target wireless access point can be implemented.
然后,在步骤S43中,第二应用向第一应用返回第二无线连接请求对应的连接结果信息。例如,接收第二无线连接请求发送后所返回的连接成功、连接失败、连接带宽信息、连接稳定性信息等。其中,优选地,当该连接结果信息中包含连接成功的信息,第四装置4通过所述用户设备与所述目标无线接入点间的无线连接进行通信,此时用户设备与目标无线接入点之间的无线连接已经建立,用户设备与目标无线接入点之间的通信无需通过第二应用所提供的接口实现。Then, in step S43, the second application returns the connection result information corresponding to the second wireless connection request to the first application. For example, the connection success, connection failure, connection bandwidth information, connection stability information, and the like returned after receiving the second wireless connection request are received. Preferably, when the connection result information includes the information that the connection is successful, the fourth device 4 communicates through the wireless connection between the user equipment and the target wireless access point, and the user equipment and the target wireless access at this time The wireless connection between the points has been established, and the communication between the user equipment and the target wireless access point need not be implemented through the interface provided by the second application.
优选地,第一应用向第二应用发送扫描请求,以对用户设备附近(信号能覆 盖用户设备)的无线接入点进行扫描,并获得第二应用基于该扫描请求而返回的一个或多个无线接入点,例如,返回这一个或多个无线接入点的SSID/BSSID信息和/或无线信号强度等。其中,第一应用并不直接向用户设备的系统发送无线连接请求,第一应用和用户设备的系统是相互独立的,从而第一应用的开发者无需关注第一应用和不同用户设备系统之间的适配问题,就算在不同的平台开发该第一应用,也只要关心第一应用和第二应用之间的通信即可。此时,调用用户设备的系统的无线连接点扫描接口,对用户设备附近(信号能覆盖用户设备)的无线接入点进行扫描,并获得第二应用基于该扫描请求而返回的一个或多个无线接入点。随后,向第一应用返回这一个或多个无线接入点中的至少一个无线接入点。例如,可将基于扫描请求返回的无线接入点进行排序(例如,根据信号强度排序)后返回优选的无线接入点,或根据其他预设逻辑筛选而返回这一个或多个无线接入点中的至少一个无线接入点。Preferably, the first application sends a scan request to the second application to scan the wireless access point in the vicinity of the user equipment (the signal can cover the user equipment), and obtain one or more returned by the second application based on the scan request. The wireless access point, for example, returns SSID/BSSID information and/or wireless signal strength of the one or more wireless access points, and the like. The first application does not directly send a wireless connection request to the system of the user equipment, and the systems of the first application and the user equipment are independent of each other, so that the developer of the first application does not need to pay attention to the first application and the different user equipment systems. The adaptation problem, even if the first application is developed on different platforms, only needs to care about the communication between the first application and the second application. At this time, the wireless connection point scanning interface of the system of the user equipment is invoked, the wireless access point near the user equipment (the signal can cover the user equipment) is scanned, and one or more returned by the second application based on the scanning request is obtained. Wireless access point. Subsequently, at least one of the one or more wireless access points is returned to the first application. For example, the wireless access points returned based on the scan request may be sorted (eg, sorted according to signal strength) and returned to the preferred wireless access point, or returned to the one or more wireless access points according to other preset logic filters. At least one wireless access point.
图5示出了根据本申请一个方面的一种用于通过用户设备中第一应用连接无线接入点的装置结构图,其中第一装置1包括第一一模块11、第一二模块12。FIG. 5 shows a structural diagram of an apparatus for connecting a wireless access point through a first application in a user equipment, wherein the first apparatus 1 includes a first one
其中,第一一模块11获取关于目标无线接入点的第一无线连接请求;第一二模块12通过调用对应的第二应用提供的第一接口向所述第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统,所述第二应用基于所述第二无线连接请求、调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接。The
具体而言,第一一模块11获取关于目标无线接入点的第一无线连接请求,例如,用户需要将用户设备连接到目标无线接入点,例如,用户指定目标无线接入点的SSID/BSSID,并向第一应用发送关于该目标无线接入点的第一无线连接请求。指定的操作可以是通过用户设备手动输入,或者在用户设备提供的无线接入点列表中进行选择等。Specifically, the
接着,第一二模块12通过调用对应的第二应用提供的第一接口向所述第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的 系统,所述第二应用基于所述第二无线连接请求、调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接。例如,第一应用调用对应的、由第二应用所提供的第一接口,实现向第二应用发送关于前述目标无线接入点的与第一无线连接请求相对应的第二无线连接请求;其中,第一应用和第二应用都安装于同一台用户设备,相应地,第一接口的调用过程也发生于该用户设备;并且,第一接口与用户设备上的操作系统相互独立,从而第一接口与用户设备上操作系统的编程接口相互独立,第一应用对第一接口的调用与用户设备上操作系统的编程接口也相互独立,从而第一应用的开发者无需关注系统编程接口的情况,就算在不同的平台进行开发,也只要关注第二应用向第一应用所提供的接口即可。Then, the first two
此时,第二应用调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接。其中,无线连接接口由各用户设备的系统提供,通过调用用户设备的该接口,可实现该用户设备与前述目标无线接入点之间的无线连接。At this time, the second application invokes the wireless connection interface of the system to establish a wireless connection between the user equipment and the target wireless access point. The wireless connection interface is provided by the system of each user equipment, and by calling the interface of the user equipment, a wireless connection between the user equipment and the target wireless access point can be implemented.
优选地,随后,第一三模块13接收所述第二应用基于所述第二无线连接请求的连接结果信息。例如,接收第二无线连接请求发送后所返回的连接成功、连接失败、连接带宽信息、连接稳定性信息等。其中,优选地,当该连接结果信息中包含连接成功的信息,通过所述用户设备与所述目标无线接入点间的无线连接进行通信,此时用户设备与目标无线接入点之间的无线连接已经建立,用户设备与目标无线接入点之间的通信无需通过第二应用所提供的接口实现。Preferably, the first three
优选地,第二应用还提供了与用户设备系统相独立的第二接口,通过对该第二接口的调用,向第二应用发送扫描请求,以对用户设备附近(信号能覆盖用户设备)的无线接入点进行扫描,并获得第二应用基于该扫描请求而返回的一个或多个无线接入点,例如,返回这一个或多个无线接入点的SSID/BSSID信息和/或无线信号强度等。和第一接口的情况类似地,第二接口与用户设备上的操作系统相互独立,从而第二接口与用户设备上操作系统的编程接口相互独立,第一应用对第二接口的调用与用户设备上操作系统的编程接口也相互独立,从而第一应用的开发者无需关注系统编程接口的情况,就算在不同的平台进行开发,也只要关注第二应用向第一应用所提供的接口即可。Preferably, the second application further provides a second interface independent of the user equipment system, by sending a scan request to the second application by calling the second interface, to the vicinity of the user equipment (the signal can cover the user equipment) The wireless access point scans and obtains one or more wireless access points returned by the second application based on the scan request, for example, returning SSID/BSSID information and/or wireless signals of the one or more wireless access points Strength, etc. Similar to the case of the first interface, the second interface is independent of the operating system on the user equipment, so that the second interface is independent of the programming interface of the operating system on the user equipment, and the first application calls the second interface with the user equipment. The programming interfaces of the operating system are also independent of each other, so that the developer of the first application does not need to pay attention to the situation of the system programming interface, and even if the development is performed on different platforms, it is only necessary to pay attention to the interface provided by the second application to the first application.
优选地,第一一模块11获取关于目标无线接入点的第一无线连接请求,其中该目标无线接入点从第二应用返回的一个或多个无线接入点中选择,选择动作可由用户完成,也可由第一应用根据预设逻辑(例如,选择信号强度最高的无线接入点)完成。更进一步地,参考图9,在从这一个或多个无线接入点中选择目标无线接入点之前,先从对应的网络设备(例如,云端服务器)请求获取这些无线接入点的认证状态信息,例如,云端服务器预先存储有一些无线接入点的信息以及对应的认证状态信息,如无线接入点是否在云端服务器存储有相应的认证信息;根据由此获取的认证状态信息,从这一个或多个无线接入点之中选择目标无线接入点,例如,从多个无线接入点中,选中在云端服务器存储有相应的认证信息的无线接入点作为目标无线接入点,用于依据云端服务器存储的它的认证信息进行连接;然后再获取关于该目标无线接入点的第一无线连接请求。Preferably, the
优选地,为便于用户从第二应用基于第一应用通过第二接口发送的扫描请求所返回的一个或多个无线接入点中选取目标无线接入点,在所述第一应用中呈现这一个或多个无线接入点中的至少一个无线接入点。例如,在用户设备的屏幕上,通过列表的方式将返回的无线接入点全部呈现;也可将返回的无线接入点进行排序(例如,根据信号强度排序)后呈现;或者只呈现经过预设逻辑筛选、符合条件的一个或几个无线接入点。然后,再根据用户从呈现出来的至少一个无线接入点中选中的目标无线接入点,生成关于该目标无线接入点的第一无线连接请求。Preferably, in order to facilitate the user to select a target wireless access point from one or more wireless access points returned by the second application based on the scan request sent by the first application through the second interface, the first application is presented in the first application. At least one of the one or more wireless access points. For example, on the screen of the user equipment, the returned wireless access points are all presented by means of a list; the returned wireless access points may also be sorted (for example, sorted according to signal strength); or only presented Set up logical filtering, one or several wireless access points that meet the requirements. Then, a first wireless connection request for the target wireless access point is generated according to the target wireless access point selected by the user from the presented at least one wireless access point.
优选地,第二应用还提供与用户设备的系统相互独立的第三接口,通过调用该第三接口,即可从第二应用发送执行请求,该执行请求包括但不限于:从第二应用中获取界面元素(例如视图组件、布局等)、从第二应用中获取用户设备的位置信息、通过第二应用在用户设备中执行数据存储、通过第二应用进行数据通信。相应地,第二应用所提供的第三接口包括但不限于:用于从第二应用中获取界面元素的接口、从第二应用中获取用户设备的位置信息的接口、通过第二应用在用户设备中执行数据存储的接口、通过第二应用进行数据通信的接口。和第一接口的情况类似地,第三接口与用户设备上的操作系统相互独立,从而第三接口与用户设备上操作系统的编程接口相互独立,第一应用对第三接 口的调用与用户设备上操作系统的编程接口也相互独立,从而第一应用的开发者无需关注系统编程接口的情况,就算在不同的平台进行开发,也只要关注第二应用向第一应用所提供的接口即可。Preferably, the second application further provides a third interface independent of the system of the user equipment, and by calling the third interface, the execution request may be sent from the second application, where the execution request includes but is not limited to: from the second application Obtaining interface elements (eg, view components, layouts, etc.), obtaining location information of the user equipment from the second application, performing data storage in the user equipment through the second application, and performing data communication through the second application. Correspondingly, the third interface provided by the second application includes, but is not limited to, an interface for acquiring an interface element from the second application, an interface for acquiring location information of the user device from the second application, and the user by using the second application. An interface that performs data storage in the device and an interface that performs data communication through the second application. Similar to the case of the first interface, the third interface is independent of the operating system on the user equipment, so that the third interface is independent of the programming interface of the operating system on the user equipment, and the first application invokes the third interface with the user equipment. The programming interfaces of the operating system are also independent of each other, so that the developer of the first application does not need to pay attention to the situation of the system programming interface, and even if the development is performed on different platforms, it is only necessary to pay attention to the interface provided by the second application to the first application.
特别地,第一应用基于脚本语言(例如,JavaScript、Lua、Python、Ruby等)进行开发;第二应用相应地内置有脚本引擎,调用该脚本引擎,第一应用即可被解释执行。在不同的平台上开发好带有同样脚本引擎的第二应用后,基于对应脚本语言开发的、具有实用功能的第一应用即可跨平台运行,开发者无需针对不同的系统平台编写代码,只要关注第二应用提供的接口即可开发能在不同平台上运行的应用,提升了开发效率,缩短了开发周期,降低了开发成本;且第一应用的功能更新无需重新下载安装,线上即可完成,并且不需要通知用户进行更新,从而改善了用户体验;同时,无需维持第一应用的多个版本,进一步降低了开发成本。In particular, the first application is developed based on a scripting language (eg, JavaScript, Lua, Python, Ruby, etc.); the second application has a built-in scripting engine, and the first application can be interpreted and executed. After developing a second application with the same script engine on different platforms, the first application with practical functions developed based on the corresponding scripting language can be run across platforms, and the developer does not need to write code for different system platforms, as long as Focus on the interface provided by the second application to develop applications that can run on different platforms, improve development efficiency, shorten development cycle, and reduce development cost; and the function update of the first application does not need to be downloaded and installed again, online Completed, and does not need to notify the user to update, thereby improving the user experience; at the same time, there is no need to maintain multiple versions of the first application, further reducing development costs.
参考图10,第一应用基于脚本语言开发,第二应用内置有相应的脚本引擎,调用该脚本引擎,对第一应用进行解释执行。第二应用提供了与用户设备系统相独立的第一接口和第二接口。通过对第二接口的调用,实现向第二应用发送扫描请求,以对用户设备附近(信号能覆盖用户设备)的无线接入点进行扫描;第二应用调用用户设备的系统提供的系统接口中的无线连接点扫描接口,扫描并获得用户设备周围的一个或者多个无线接入点,并将其返回给第二应用;接着,第二应用基于第一应用的扫描请求,返回的一个或多个无线接入点,例如,返回这一个或多个无线接入点的SSID/BSSID信息和/或无线信号强度等。然后,第一应用调用由第二应用所提供的第一接口,实现向第二应用发送关于前述目标无线接入点的与第一无线连接请求相对应的第二无线连接请求。优选地,第二应用还提供了与用户设备系统相独立的第三接口,第一应用通过调用该第三接口,即可从第二应用发送执行请求,该执行请求包括但不限于:从第二应用中获取界面元素(例如视图组件、布局等)、从第二应用中获取用户设备的位置信息、通过第二应用在用户设备中执行数据存储、通过第二应用进行数据通信;相应地,第二应用所提供的第三接口包括但不限于:用于从第二应用中获取界面元素的接口、从第二应用中获取用户设备的位置信息的接口、通过第二应用在用户设备中执行数据存储的接口、通过第二应用进行数据通信的接口。进一 步地,补充参考图9,在选择目标无线接入点之前,第一应用先从对应的网络设备(例如,云端服务器)获取这些无线接入点的认证信息,例如,云端服务器预先存储有一些无线接入点的信息以及对应的认证信息;根据认证信息,从这一个或多个无线接入点之中选择目标无线接入点;然后再获取关于该目标无线接入点的第一无线连接请求。Referring to FIG. 10, the first application is developed based on a scripting language, and the second application has a corresponding scripting engine built in, and the scripting engine is invoked to interpret and execute the first application. The second application provides a first interface and a second interface that are separate from the user equipment system. Sending a scan request to the second application by using the second interface to scan the wireless access point in the vicinity of the user equipment (the signal can cover the user equipment); the second application invokes the system interface provided by the system of the user equipment Wireless connection point scanning interface, scanning and obtaining one or more wireless access points around the user equipment, and returning it to the second application; then, the second application returns one or more based on the scanning request of the first application Wireless access points, for example, returning SSID/BSSID information and/or wireless signal strength of the one or more wireless access points, and the like. Then, the first application invokes the first interface provided by the second application, and sends a second wireless connection request corresponding to the first wireless connection request for the foregoing target wireless access point to the second application. Preferably, the second application further provides a third interface independent of the user equipment system, and the first application may send an execution request from the second application by calling the third interface, where the execution request includes but is not limited to: Obtaining interface elements (such as view components, layouts, etc.) in the application, acquiring location information of the user equipment from the second application, performing data storage in the user equipment through the second application, and performing data communication through the second application; The third interface provided by the second application includes, but is not limited to, an interface for acquiring an interface element from the second application, an interface for acquiring location information of the user device from the second application, and executing in the user device by using the second application. An interface for data storage, an interface for data communication through a second application. Further, with reference to FIG. 9, before selecting the target wireless access point, the first application first obtains the authentication information of the wireless access points from the corresponding network device (for example, the cloud server), for example, the cloud server pre-stores some Information of the wireless access point and corresponding authentication information; selecting a target wireless access point from the one or more wireless access points according to the authentication information; and then acquiring a first wireless connection with respect to the target wireless access point request.
其中,第一应用和第二应用都安装于同一台用户设备,相应地,第一接口的调用过程也发生于该用户设备;并且,第一接口、第二接口和第三接口与用户设备上的操作系统相互独立,从而第一接口、第二接口和第三接口与用户设备上操作系统提供的编程接口相互独立,第一应用对第一接口的调用与用户设备上操作系统的提供的编程接口也相互独立,从而第一应用的开发者无需关注系统编程接口的情况,就算在不同的平台进行开发,也只要关注第二应用向第一应用所提供的接口即可。The first application and the second application are both installed on the same user equipment. Accordingly, the calling process of the first interface also occurs on the user equipment; and, the first interface, the second interface, and the third interface are connected to the user equipment. The operating systems are independent of each other such that the first interface, the second interface, and the third interface are independent of the programming interface provided by the operating system on the user device, the first application calls the first interface and the programming provided by the operating system on the user device The interfaces are also independent of each other, so that the developer of the first application does not need to pay attention to the system programming interface. Even if the development is performed on different platforms, it is only necessary to pay attention to the interface provided by the second application to the first application.
图6示出了根据本申请另一个方面的一种用于通过用户设备中第二应用连接无线接入点的装置结构图,其中第二装置2包括第二一模块21、第二二模块22和第二三模块23。FIG. 6 is a structural diagram of an apparatus for connecting a wireless access point through a second application in a user equipment according to another aspect of the present application, wherein the second device 2 includes a
其中,第二一模块21接收第一应用通过调用第二应用提供的第一接口向所述第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统;第二二模块22调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;第二三模块23向所述第一应用返回所述第二无线连接请求对应的连接结果信息。The
具体而言,第二一模块21接收第一应用通过调用第二应用提供的第一接口向所述第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统。例如,第一应用调用对应的、由第二应用所提供的第一接口,实现向第二应用发送关于前述目标无线接入点的与第一无线连接请求相对应的第二无线连接请求;其中,第一应用和第二应用都安装于同一台用户设备,相应地,第一接口的调用过程也发生于该用户设备;并且,第一接口与用户设备上的操作系统相互独立,从而第一接口与用户设备上操作系统的编程接口相 互独立,第一应用对第一接口的调用与用户设备上操作系统的编程接口也相互独立,从而第一应用的开发者无需关注系统编程接口的情况,就算在不同的平台进行开发,也只要关注第二应用向第一应用所提供的接口即可。Specifically, the
接着,第二二模块22调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接。其中,无线连接接口由各用户设备的系统提供,通过调用用户设备的该接口,可实现该用户设备与前述目标无线接入点之间的无线连接。Next, the
然后,第二三模块23向第一应用返回第二无线连接请求对应的连接结果信息。例如,接收第二无线连接请求发送后所返回的连接成功、连接失败、连接带宽信息、连接稳定性信息等。其中,优选地,当该连接结果信息中包含连接成功的信息,第一装置1通过所述用户设备与所述目标无线接入点间的无线连接进行通信,此时用户设备与目标无线接入点之间的无线连接已经建立,用户设备与目标无线接入点之间的通信无需通过第二应用所提供的接口实现。Then, the second three
优选地,第二应用还提供了与用户设备系统相独立的第二接口,通过第一应用对该第二接口的调用,向第二应用发送扫描请求,以对用户设备附近(信号能覆盖用户设备)的无线接入点进行扫描,并获得第二应用基于该扫描请求而返回的一个或多个无线接入点,例如,返回这一个或多个无线接入点的SSID/BSSID信息和/或无线信号强度等。和第一接口的情况类似地,第二接口与用户设备上的操作系统相互独立,从而第二接口与用户设备上操作系统的编程接口相互独立,第一应用对第二接口的调用与用户设备上操作系统的编程接口也相互独立,从而第一应用的开发者无需关注系统编程接口的情况,就算在不同的平台进行开发,也只要关注第二应用向第一应用所提供的接口即可。此时,调用用户设备的系统的无线连接点扫描接口,对用户设备附近(信号能覆盖用户设备)的无线接入点进行扫描,并获得第二应用基于该扫描请求而返回的一个或多个无线接入点。随后,向第一应用返回这一个或多个无线接入点中的至少一个无线接入点。例如,可将基于扫描请求返回的无线接入点进行排序(例如,根据信号强度排序)后返回优选的无线接入点,或根据其他预设逻辑筛选而返回这一个或多个无线接入点中的至少一个无线接入点。Preferably, the second application further provides a second interface independent of the user equipment system, and sends a scan request to the second application by the first application to the second interface, so that the signal can cover the user The wireless access point of the device scans and obtains one or more wireless access points returned by the second application based on the scan request, for example, returning the SSID/BSSID information of the one or more wireless access points and/or Or wireless signal strength, etc. Similar to the case of the first interface, the second interface is independent of the operating system on the user equipment, so that the second interface is independent of the programming interface of the operating system on the user equipment, and the first application calls the second interface with the user equipment. The programming interfaces of the operating system are also independent of each other, so that the developer of the first application does not need to pay attention to the situation of the system programming interface, and even if the development is performed on different platforms, it is only necessary to pay attention to the interface provided by the second application to the first application. At this time, the wireless connection point scanning interface of the system of the user equipment is invoked, the wireless access point near the user equipment (the signal can cover the user equipment) is scanned, and one or more returned by the second application based on the scanning request is obtained. Wireless access point. Subsequently, at least one of the one or more wireless access points is returned to the first application. For example, the wireless access points returned based on the scan request may be sorted (eg, sorted according to signal strength) and returned to the preferred wireless access point, or returned to the one or more wireless access points according to other preset logic filters. At least one wireless access point.
图7示出了根据本申请又一个方面的一种用于通过用户设备中第一应用连 接无线接入点的装置结构图,其中第一装置1包括第一一模块11、第一二模块12和第一三模块13。FIG. 7 is a structural diagram of an apparatus for connecting a wireless access point through a first application in a user equipment according to still another aspect of the present application, wherein the first apparatus 1 includes a first one
其中,第一一模块11获取关于目标无线接入点的第一无线连接请求;第一二模块12向对应的第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备;第一三模块13接收所述第二应用基于所述第二无线连接请求的连接结果信息。The
具体而言,第一一模块11获取关于目标无线接入点的第一无线连接请求,例如,用户需要将用户设备连接到目标无线接入点,例如,用户指定目标无线接入点的SSID/BSSID,并向第一应用发送关于该目标无线接入点的第一无线连接请求。Specifically, the
接着,第一二模块12向对应的第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备。其中,该第二无线连接请求和前述第一无线连接请求相对应。此时,第一应用并不直接向用户设备的系统发送无线连接请求,第一应用和用户设备的系统是相互独立的,从而第一应用的开发者无需关注第一应用和不同用户设备系统之间的适配问题,就算在不同的平台开发该第一应用,也只要关心第一应用和第二应用之间的通信即可。Next, the first two
然后,第一三模块13接收所述第二应用基于所述第二无线连接请求的连接结果信息。例如,接收第二无线连接请求发送后所返回的连接成功、连接失败、连接带宽信息、连接稳定性信息等。其中,优选地,当该连接结果信息中包含连接成功的信息,通过所述用户设备与所述目标无线接入点间的无线连接进行通信,此时用户设备与目标无线接入点之间的无线连接已经建立,用户设备与目标无线接入点之间的通信无需通过第二应用所提供的接口实现。Then, the first three
优选地,第一装置1向第二应用发送扫描请求,以对用户设备附近(信号能覆盖用户设备)的无线接入点进行扫描,并接收第二应用基于该扫描请求返回的一个或者多个无线接入点,例如,返回这一个或多个无线接入点的SSID/BSSID信息和/或无线信号强度等。第一应用并不直接向用户设备的系统发送无线接入点扫描请求,第一应用和用户设备的系统是相互独立的,从而第一应用的开发者无需关注第一应用和不同用户设备系统之间的适配问题,就算在不同的平台 开发该第一应用,也只要关心第一应用和第二应用之间的通信即可。Preferably, the first device 1 sends a scan request to the second application to scan a wireless access point in the vicinity of the user equipment (the signal can cover the user equipment), and receive one or more returned by the second application based on the scan request. The wireless access point, for example, returns SSID/BSSID information and/or wireless signal strength of the one or more wireless access points, and the like. The first application does not directly send a wireless access point scan request to the system of the user equipment, and the systems of the first application and the user equipment are independent of each other, so that the developer of the first application does not need to pay attention to the first application and the different user equipment systems. The problem of adaptation between the first application and the second application is only concerned with the development of the first application on different platforms.
进一步优选地,第一装置1获取关于目标无线接入点的第一无线连接请求,其中该目标无线接入点从第二应用返回的一个或多个无线接入点中选择,选择动作可由用户完成,也可由第一应用根据预设逻辑(例如,选择信号强度最高的无线接入点)完成。Further preferably, the first device 1 acquires a first wireless connection request for the target wireless access point, wherein the target wireless access point selects from one or more wireless access points returned by the second application, and the selection action is available to the user Completion may also be accomplished by the first application based on preset logic (eg, selecting the wireless access point with the highest signal strength).
更优选地,为便于用户从第二应用基于第一应用发送的扫描请求所返回的一个或多个无线接入点中选取目标无线接入点,在所述第一应用中呈现这一个或多个无线接入点中的至少一个无线接入点。例如,在用户设备的屏幕上,通过列表的方式将返回的无线接入点全部呈现;也可将返回的无线接入点进行排序(例如,根据信号强度排序)后呈现;或者只呈现经过预设逻辑筛选、符合条件的一个或几个无线接入点。然后,再根据用户从呈现出来的至少一个无线接入点中选中的目标无线接入点,生成关于该目标无线接入点的第一无线连接请求。More preferably, in order to facilitate the user to select a target wireless access point from one or more wireless access points returned by the second application based on the scan request sent by the first application, the one or more are presented in the first application. At least one of the wireless access points. For example, on the screen of the user equipment, the returned wireless access points are all presented by means of a list; the returned wireless access points may also be sorted (for example, sorted according to signal strength); or only presented Set up logical filtering, one or several wireless access points that meet the requirements. Then, a first wireless connection request for the target wireless access point is generated according to the target wireless access point selected by the user from the presented at least one wireless access point.
图8示出了根据本申请再一个方面的一种用于通过用户设备中第二应用连接无线接入点的装置结构图,其中第二装置2包括第二一模块21、第二二模块22和第二三模块23。FIG. 8 is a structural diagram of a device for connecting a wireless access point through a second application in a user equipment according to still another aspect of the present application, wherein the second device 2 includes a
其中,第二一模块21接收第一应用向第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备;第二二模块22调用所述用户设备的系统无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;第二三模块23向所述第一应用返回所述第二无线连接请求对应的连接结果信息。The
具体而言,第二一模块21接收第一应用向第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备。此时,第一应用并不直接向用户设备的系统发送无线连接请求,第一应用和用户设备的系统是相互独立的,从而第一应用的开发者无需关注第一应用和不同用户设备系统之间的适配问题,就算在不同的平台开发该第一应用,也只要关心第一应用和第二应用之间的通信即可。Specifically, the
接着,第二二模块22调用所述用户设备的系统无线连接接口建立所述用户设备与所述目标无线接入点的无线连接。其中,无线连接接口由各用户设备 的系统提供,通过调用用户设备的该接口,可实现该用户设备与前述目标无线接入点之间的无线连接。Next, the
然后,第二三模块23向第一应用返回第二无线连接请求对应的连接结果信息。例如,接收第二无线连接请求发送后所返回的连接成功、连接失败、连接带宽信息、连接稳定性信息等。其中,优选地,当该连接结果信息中包含连接成功的信息,第二装置2通过所述用户设备与所述目标无线接入点间的无线连接进行通信,此时用户设备与目标无线接入点之间的无线连接已经建立,用户设备与目标无线接入点之间的通信无需通过第二应用所提供的接口实现。Then, the second three
优选地,第一应用向第二应用发送扫描请求,以对用户设备附近(信号能覆盖用户设备)的无线接入点进行扫描,并获得第二应用基于该扫描请求而返回的一个或多个无线接入点,例如,返回这一个或多个无线接入点的SSID/BSSID信息和/或无线信号强度等。其中,第一应用并不直接向用户设备的系统发送无线连接请求,第一应用和用户设备的系统是相互独立的,从而第一应用的开发者无需关注第一应用和不同用户设备系统之间的适配问题,就算在不同的平台开发该第一应用,也只要关心第一应用和第二应用之间的通信即可。此时,调用用户设备的系统的无线连接点扫描接口,对用户设备附近(信号能覆盖用户设备)的无线接入点进行扫描,并获得第二应用基于该扫描请求而返回的一个或多个无线接入点。随后,向第一应用返回这一个或多个无线接入点中的至少一个无线接入点。例如,可将基于扫描请求返回的无线接入点进行排序(例如,根据信号强度排序)后返回优选的无线接入点,或根据其他预设逻辑筛选而返回这一个或多个无线接入点中的至少一个无线接入点。Preferably, the first application sends a scan request to the second application to scan the wireless access point in the vicinity of the user equipment (the signal can cover the user equipment), and obtain one or more returned by the second application based on the scan request. The wireless access point, for example, returns SSID/BSSID information and/or wireless signal strength of the one or more wireless access points, and the like. The first application does not directly send a wireless connection request to the system of the user equipment, and the systems of the first application and the user equipment are independent of each other, so that the developer of the first application does not need to pay attention to the first application and the different user equipment systems. The adaptation problem, even if the first application is developed on different platforms, only needs to care about the communication between the first application and the second application. At this time, the wireless connection point scanning interface of the system of the user equipment is invoked, the wireless access point near the user equipment (the signal can cover the user equipment) is scanned, and one or more returned by the second application based on the scanning request is obtained. Wireless access point. Subsequently, at least one of the one or more wireless access points is returned to the first application. For example, the wireless access points returned based on the scan request may be sorted (eg, sorted according to signal strength) and returned to the preferred wireless access point, or returned to the one or more wireless access points according to other preset logic filters. At least one wireless access point.
根据本申请的一个方面,提供了一种用于通过用户设备中第一应用连接无线接入点的设备,该设备包括:According to an aspect of the present application, an apparatus for connecting a wireless access point through a first application in a user equipment is provided, the apparatus comprising:
处理器;以及Processor;
被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器:A memory arranged to store computer executable instructions that, when executed, cause the processor to:
获取关于目标无线接入点的第一无线连接请求;Acquiring a first wireless connection request for the target wireless access point;
通过调用对应的第二应用提供的第一接口向所述第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安 装于同一用户设备,所述第一接口独立于所述用户设备的系统,所述第二应用基于所述第二无线连接请求、调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接。Sending, by the first interface provided by the corresponding second application, a second wireless connection request for the target wireless access point to the second application, where the second application is installed in the same manner as the first application a user equipment, the first interface is independent of the system of the user equipment, and the second application establishes the user equipment and the target wireless connection based on the second wireless connection request, calling a wireless connection interface of the system Incoming wireless connection.
根据本申请的另一个方面,提供了一种用于通过用户设备中第二应用连接无线接入点的设备,该设备包括:According to another aspect of the present application, an apparatus for connecting a wireless access point through a second application in a user equipment is provided, the apparatus comprising:
处理器;以及Processor;
被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器:A memory arranged to store computer executable instructions that, when executed, cause the processor to:
接收第一应用通过调用第二应用提供的第一接口向所述第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统;Receiving a second wireless connection request for the target wireless access point sent by the first application to the second application by using a first interface provided by the second application, where the second application and the first application are installed on The same user equipment, the first interface is independent of the system of the user equipment;
调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;Invoking a wireless connection interface of the system to establish a wireless connection between the user equipment and the target wireless access point;
向所述第一应用返回所述第二无线连接请求对应的连接结果信息。Returning, to the first application, connection result information corresponding to the second wireless connection request.
根据本申请的又一个方面,提供了一种用于通过用户设备中第一应用连接无线接入点的设备,该设备包括:According to still another aspect of the present application, an apparatus for connecting a wireless access point through a first application in a user equipment is provided, the apparatus comprising:
处理器;以及Processor;
被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器:A memory arranged to store computer executable instructions that, when executed, cause the processor to:
获取关于目标无线接入点的第一无线连接请求;Acquiring a first wireless connection request for the target wireless access point;
向对应的第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备;Sending, to the corresponding second application, a second wireless connection request for the target wireless access point, where the second application is installed on the same user equipment as the first application;
接收所述第二应用基于所述第二无线连接请求的连接结果信息。Receiving connection result information of the second application based on the second wireless connection request.
根据本申请的再一个方面,提供了一种用于通过用户设备中第二应用连接无线接入点的设备,该设备包括:According to still another aspect of the present application, an apparatus for connecting a wireless access point through a second application in a user equipment, the apparatus includes:
处理器;以及Processor;
被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器:A memory arranged to store computer executable instructions that, when executed, cause the processor to:
接收第一应用向第二应用发送的关于目标无线接入点的第二无线连接请 求,其中,所述第二应用与所述第一应用安装于同一用户设备;Receiving a second wireless connection request for the target wireless access point sent by the first application to the second application, where the second application is installed on the same user equipment as the first application;
调用所述用户设备的系统无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;Calling a system wireless connection interface of the user equipment to establish a wireless connection between the user equipment and the target wireless access point;
向所述第一应用返回所述第二无线连接请求对应的连接结果信息。Returning, to the first application, connection result information corresponding to the second wireless connection request.
根据本申请的一个方面,提供了一种包括指令的计算机可读存储介质,所述指令在被执行时使得系统进行以下操作:According to an aspect of the present application, there is provided a computer readable storage medium comprising instructions that, when executed, cause a system to:
获取关于目标无线接入点的第一无线连接请求;Acquiring a first wireless connection request for the target wireless access point;
通过调用对应的第二应用提供的第一接口向所述第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统,所述第二应用基于所述第二无线连接请求、调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接。Sending, by the first interface provided by the corresponding second application, a second wireless connection request for the target wireless access point to the second application, where the second application is installed in the same manner as the first application a user equipment, the first interface is independent of the system of the user equipment, and the second application establishes the user equipment and the target wireless connection based on the second wireless connection request, calling a wireless connection interface of the system Incoming wireless connection.
根据本申请的另一个方面,提供了一种包括指令的计算机可读存储介质,所述指令在被执行时使得系统进行以下操作:In accordance with another aspect of the present application, a computer readable storage medium comprising instructions that, when executed, cause a system to:
接收第一应用通过调用第二应用提供的第一接口向所述第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统;Receiving a second wireless connection request for the target wireless access point sent by the first application to the second application by using a first interface provided by the second application, where the second application and the first application are installed on The same user equipment, the first interface is independent of the system of the user equipment;
调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;Invoking a wireless connection interface of the system to establish a wireless connection between the user equipment and the target wireless access point;
向所述第一应用返回所述第二无线连接请求对应的连接结果信息。Returning, to the first application, connection result information corresponding to the second wireless connection request.
根据本申请的又一个方面,提供了一种包括指令的计算机可读存储介质,所述指令在被执行时使得系统进行以下操作:In accordance with still another aspect of the present application, a computer readable storage medium comprising instructions that, when executed, cause a system to:
获取关于目标无线接入点的第一无线连接请求;Acquiring a first wireless connection request for the target wireless access point;
向对应的第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备;Sending, to the corresponding second application, a second wireless connection request for the target wireless access point, where the second application is installed on the same user equipment as the first application;
接收所述第二应用基于所述第二无线连接请求的连接结果信息。Receiving connection result information of the second application based on the second wireless connection request.
根据本申请的再一个方面,提供了一种包括指令的计算机可读存储介质,所述指令在被执行时使得系统进行以下操作:In accordance with still another aspect of the present application, a computer readable storage medium comprising instructions that, when executed, cause a system to:
接收第一应用向第二应用发送的关于目标无线接入点的第二无线连接请 求,其中,所述第二应用与所述第一应用安装于同一用户设备;Receiving a second wireless connection request for the target wireless access point sent by the first application to the second application, where the second application is installed on the same user equipment as the first application;
调用所述用户设备的系统无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;Calling a system wireless connection interface of the user equipment to establish a wireless connection between the user equipment and the target wireless access point;
向所述第一应用返回所述第二无线连接请求对应的连接结果信息。Returning, to the first application, connection result information corresponding to the second wireless connection request.
需要注意的是,本申请可在软件和/或软件与硬件的组合体中被实施,例如,可采用专用集成电路(ASIC)、通用目的计算机或任何其他类似硬件设备来实现。在一个实施例中,本申请的软件程序可以通过处理器执行以实现上文所述步骤或功能。同样地,本申请的软件程序(包括相关的数据结构)可以被存储到计算机可读记录介质中,例如,RAM存储器,磁或光驱动器或软磁盘及类似设备。另外,本申请的一些步骤或功能可采用硬件来实现,例如,作为与处理器配合从而执行各个步骤或功能的电路。It should be noted that the present application can be implemented in software and/or a combination of software and hardware, for example, using an application specific integrated circuit (ASIC), a general purpose computer, or any other similar hardware device. In one embodiment, the software program of the present application can be executed by a processor to implement the steps or functions described above. Likewise, the software programs (including related data structures) of the present application can be stored in a computer readable recording medium such as a RAM memory, a magnetic or optical drive or a floppy disk and the like. In addition, some of the steps or functions of the present application may be implemented in hardware, for example, as a circuit that cooperates with a processor to perform various steps or functions.
另外,本申请的一部分可被应用为计算机程序产品,例如计算机程序指令,当其被计算机执行时,通过该计算机的操作,可以调用或提供根据本申请的方法和/或技术方案。而调用本申请的方法的程序指令,可能被存储在固定的或可移动的记录介质中,和/或通过广播或其他信号承载媒体中的数据流而被传输,和/或被存储在根据所述程序指令运行的计算机设备的工作存储器中。在此,根据本申请的一个实施例包括一个装置,该装置包括用于存储计算机程序指令的存储器和用于执行程序指令的处理器,其中,当该计算机程序指令被该处理器执行时,触发该装置运行基于前述根据本申请的多个实施例的方法和/或技术方案。In addition, a portion of the present application can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide a method and/or technical solution in accordance with the present application. The program instructions for invoking the method of the present application may be stored in a fixed or removable recording medium, and/or transmitted by a data stream in a broadcast or other signal bearing medium, and/or stored in a The working memory of the computer device in which the program instructions are run. Herein, an embodiment in accordance with the present application includes a device including a memory for storing computer program instructions and a processor for executing program instructions, wherein when the computer program instructions are executed by the processor, triggering The apparatus operates based on the aforementioned methods and/or technical solutions in accordance with various embodiments of the present application.
对于本领域技术人员而言,显然本申请不限于上述示范性实施例的细节,而且在不背离本申请的精神或基本特征的情况下,能够以其他的具体形式实现本申请。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本申请的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本申请内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。此外,显然“包括”一词不排除其他单元或步骤,单数不排除复数。装置权利要求中陈述的多个单元或装置也可以由一个单元或装置通过软件或者硬件来实现。第一,第二等词语用来表示名称,而并不表示任何特定的顺序。It is obvious to those skilled in the art that the present application is not limited to the details of the above-described exemplary embodiments, and the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present application. Therefore, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the invention is defined by the appended claims instead All changes in the meaning and scope of equivalent elements are included in this application. Any reference signs in the claims should not be construed as limiting the claim. In addition, it is to be understood that the word "comprising" does not exclude other elements or steps. A plurality of units or devices recited in the device claims may also be implemented by a unit or device by software or hardware. The first, second, etc. words are used to denote names and do not denote any particular order.
Claims (42)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US16/454,094 US11071151B2 (en) | 2016-12-28 | 2019-06-27 | Methods and apparatuses for connecting a wireless access point through an application in a user equipment |
Applications Claiming Priority (4)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611238921 | 2016-12-28 | ||
| CN201611238921.7 | 2016-12-28 | ||
| CN201710138460.4 | 2017-03-09 | ||
| CN201710138460.4A CN106941709B (en) | 2016-12-28 | 2017-03-09 | Method and device for connecting wireless access point through application in user equipment |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US16/454,094 Continuation US11071151B2 (en) | 2016-12-28 | 2019-06-27 | Methods and apparatuses for connecting a wireless access point through an application in a user equipment |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2018121652A1 true WO2018121652A1 (en) | 2018-07-05 |
Family
ID=59469745
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/119292 Ceased WO2018121652A1 (en) | 2016-12-28 | 2017-12-28 | Method and device for connecting wireless access point through application in user equipment |
Country Status (3)
| Country | Link |
|---|---|
| US (1) | US11071151B2 (en) |
| CN (2) | CN106941709B (en) |
| WO (1) | WO2018121652A1 (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106941709B (en) | 2016-12-28 | 2019-02-26 | 上海掌门科技有限公司 | Method and device for connecting wireless access point through application in user equipment |
| CN115002548B (en) * | 2022-05-19 | 2024-09-27 | 深圳前海茂佳软件科技有限公司 | Television platform application interface calling method and device, terminal equipment and storage medium |
| WO2025052485A1 (en) * | 2023-09-09 | 2025-03-13 | Jio Platforms Limited | Method and system for facilitating data transfer between a first platform and a second platform |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101207924A (en) * | 2007-05-14 | 2008-06-25 | 开曼群岛威睿电通股份有限公司 | Method for processing multi-user connections in high speed grouped data terminal |
| US20150350910A1 (en) * | 2014-05-30 | 2015-12-03 | Ebay Inc. | Shared network connection credentials on check-in at a user's home location |
| CN105611525A (en) * | 2015-12-29 | 2016-05-25 | 联想(北京)有限公司 | Information processing method and electronic equipment |
| CN105873239A (en) * | 2015-12-14 | 2016-08-17 | 上海连尚网络科技有限公司 | Method used for establishing wireless connection for application of user equipment |
| CN106941709A (en) * | 2016-12-28 | 2017-07-11 | 上海掌门科技有限公司 | Method and device for connecting wireless access point through application in user equipment |
Family Cites Families (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5282477B2 (en) * | 2008-08-12 | 2013-09-04 | 富士通株式会社 | Authentication method, program, and authentication apparatus |
| US8934389B2 (en) * | 2012-01-18 | 2015-01-13 | Microsoft Corporation | Mechanism for connecting a mobile device to a network |
| WO2015042189A1 (en) * | 2013-09-17 | 2015-03-26 | Interdigital Patent Holdings, Inc. | Connectivity augmented services architecture, discovery and connection |
| KR102085181B1 (en) * | 2013-10-23 | 2020-03-05 | 삼성전자주식회사 | Method and device for transmitting data and method and device for receiving data |
| CN104317573B (en) * | 2014-10-03 | 2017-06-16 | 李宏伟 | Android installation kit conversion method and device and the method and apparatus of operation application |
| CN106455004A (en) * | 2015-08-05 | 2017-02-22 | 上海连尚网络科技有限公司 | Method and apparatus for providing wireless access points |
| CN107071772B (en) * | 2016-07-29 | 2020-07-07 | 腾讯科技(深圳)有限公司 | Wireless local area network connection method and mobile terminal |
| SE543198C2 (en) * | 2016-10-18 | 2020-10-20 | Telia Co Ab | Methods and apparatuses for conditional wifi roaming |
| US11425639B2 (en) * | 2016-10-24 | 2022-08-23 | International Business Machines Corporation | Trusted method for consuming and sharing Wi-Fi internet access |
-
2017
- 2017-03-09 CN CN201710138460.4A patent/CN106941709B/en active Active
- 2017-03-09 CN CN201910034828.1A patent/CN109756948B/en active Active
- 2017-12-28 WO PCT/CN2017/119292 patent/WO2018121652A1/en not_active Ceased
-
2019
- 2019-06-27 US US16/454,094 patent/US11071151B2/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101207924A (en) * | 2007-05-14 | 2008-06-25 | 开曼群岛威睿电通股份有限公司 | Method for processing multi-user connections in high speed grouped data terminal |
| US20150350910A1 (en) * | 2014-05-30 | 2015-12-03 | Ebay Inc. | Shared network connection credentials on check-in at a user's home location |
| CN105873239A (en) * | 2015-12-14 | 2016-08-17 | 上海连尚网络科技有限公司 | Method used for establishing wireless connection for application of user equipment |
| CN105611525A (en) * | 2015-12-29 | 2016-05-25 | 联想(北京)有限公司 | Information processing method and electronic equipment |
| CN106941709A (en) * | 2016-12-28 | 2017-07-11 | 上海掌门科技有限公司 | Method and device for connecting wireless access point through application in user equipment |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109756948B (en) | 2021-11-23 |
| CN109756948A (en) | 2019-05-14 |
| US20190320473A1 (en) | 2019-10-17 |
| US11071151B2 (en) | 2021-07-20 |
| CN106941709B (en) | 2019-02-26 |
| CN106941709A (en) | 2017-07-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112162753B (en) | Software deployment method, device, computer equipment and storage medium | |
| CN113312037B (en) | Data processing method, device, equipment and storage medium applied to micro-service | |
| CN110032512B (en) | Debugging method of small program, related equipment and terminal | |
| CN107168960B (en) | A business execution method and device | |
| US9342333B2 (en) | Backend custom code extensibility | |
| KR102067017B1 (en) | Apparatus and Method for providing a virtual API for mashup service | |
| CN110968331A (en) | Method and apparatus for running an application | |
| CN112015384A (en) | An interface mapping method and device | |
| CN111212183B (en) | Method, device and computer readable medium for running hosted application | |
| CN104978378B (en) | A kind of Web access method and device | |
| CN113127361B (en) | Application development method and device, electronic equipment and storage medium | |
| WO2018121652A1 (en) | Method and device for connecting wireless access point through application in user equipment | |
| WO2018090871A1 (en) | Application service indication method and application service indication device | |
| CN106793165B (en) | WIFI hotspot connection method and intelligent terminal | |
| US10255063B2 (en) | Providing source control of custom code for a user without providing source control of host code for the user | |
| WO2021057411A1 (en) | Component loading method, device, and system | |
| CN114385382B (en) | Light application access method, device, computer equipment and storage medium | |
| CN111835549A (en) | Method, apparatus, computer device and medium for processing media content | |
| CN111124613B (en) | Service realization method, device, device and storage medium of virtualized resources | |
| US12438770B2 (en) | System and method for customization of onboarding process | |
| CN113805878A (en) | Plug-in engineering method, device, computer system and medium | |
| CN116382804A (en) | Application running method, device, medium and equipment | |
| CN116561013A (en) | Test method, device, electronic equipment and medium based on target service framework | |
| CN109669679B (en) | Service detection and processing method and device and electronic equipment | |
| CN115543146A (en) | Data processing method, device and terminal equipment based on target service framework |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17889497 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 06.09.2019) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 17889497 Country of ref document: EP Kind code of ref document: A1 |