WO2018121652A1 - 通过用户设备中的应用连接无线接入点的方法与设备 - Google Patents

通过用户设备中的应用连接无线接入点的方法与设备 Download PDF

Info

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
Application number
PCT/CN2017/119292
Other languages
English (en)
French (fr)
Inventor
苏勇
王飞
Original Assignee
上海掌门科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 上海掌门科技有限公司 filed Critical 上海掌门科技有限公司
Publication of WO2018121652A1 publication Critical patent/WO2018121652A1/zh
Priority to US16/454,094 priority Critical patent/US11071151B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/50Secure pairing of devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/60Subscription-based services using application servers or record carriers, e.g. SIM application toolkits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/322Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
    • H04L69/329Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the application layer [OSI layer 7]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation
    • H04W80/08Upper layer protocols
    • H04W80/10Upper 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

通过用户设备中的应用连接无线接入点的方法与设备 技术领域
本申请涉及通信领域,尤其涉及通过用户设备中的应用连接无线接入点的方法与设备。
背景技术
目前市场上面的WiFi应用主要分成Android应用和IOS应用这两类,这两种应用方案都是需要掌握原生系统WiFi相关API,并编写相关界面和功能,且开发代码没法相互共用,可移植性差,每次应用的功能升级都需要重新发布版本让用户下载安装,开发成本高、周期长。此外,同时维持多个版本的基于原生系统的应用,成本也非常高昂。
发明内容
本申请的一个目的,是提供一种通过用户设备中的应用连接无线接入点的方法与设备。
根据本申请的一个方面,提供了一种用于通过用户设备中第一应用连接无线接入点的方法,该方法包括:
获取关于目标无线接入点的第一无线连接请求;
通过调用对应的第二应用提供的第一接口向所述第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统,所述第二应用基于所述第二无线连接请求、调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接。
根据本申请的另一个方面,提供了一种用于通过用户设备中第二应用连接无线接入点的方法,该方法包括:
接收第一应用通过调用第二应用提供的第一接口向所述第二应用发送的 关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统;
调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;
向所述第一应用返回所述第二无线连接请求对应的连接结果信息。
根据本申请的又一个方面,提供了一种用于通过用户设备中第一应用连接无线接入点的方法,该方法包括:
获取关于目标无线接入点的第一无线连接请求;
向对应的第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备;
接收所述第二应用基于所述第二无线连接请求的连接结果信息。
根据本申请的再一个方面,提供了一种用于通过用户设备中第二应用连接无线接入点的方法,该方法包括:
接收第一应用向第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备;
调用所述用户设备的系统无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;
向所述第一应用返回所述第二无线连接请求对应的连接结果信息。
根据本申请的一个方面,提供了一种用于通过用户设备中第一应用连接无线接入点的第一装置,该第一装置包括:
第一一模块,用于获取关于目标无线接入点的第一无线连接请求;
第一二模块,用于通过调用对应的第二应用提供的第一接口向所述第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统,所述第二应用基于所述第二无线连接请求、调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接。
根据本申请的另一个方面,提供了一种用于通过用户设备中第二应用连接无线接入点的第二装置,该第二装置包括:
第二一模块,用于接收第一应用通过调用第二应用提供的第一接口向所述 第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统;
第二二模块,用于调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;
第二三模块,用于向所述第一应用返回所述第二无线连接请求对应的连接结果信息。
根据本申请的又一个方面,提供了一种用于通过用户设备中第一应用连接无线接入点的第一装置,该第一装置包括:
第三一模块,用于获取关于目标无线接入点的第一无线连接请求;
第三二模块,用于向对应的第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备;
第三三模块,用于接收所述第二应用基于所述第二无线连接请求的连接结果信息。
根据本申请的再一个方面,提供了一种用于通过用户设备中第二应用连接无线接入点的第二装置,该第二装置包括:
第四一模块,用于接收第一应用向第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备;
第四二模块,用于调用所述用户设备的系统无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;
第四三模块,用于向所述第一应用返回所述第二无线连接请求对应的连接结果信息。
根据本申请的一个方面,提供了一种用于通过用户设备中第一应用连接无线接入点的第一设备,该第一设备包括:
处理器;以及
被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器:
获取关于目标无线接入点的第一无线连接请求;
通过调用对应的第二应用提供的第一接口向所述第二应用发送关于所述 目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统;
接收所述第二应用基于所述第二无线连接请求的连接结果信息。
根据本申请的另一个方面,提供了一种用于通过用户设备中第二应用连接无线接入点的第二设备,该第二设备包括:
处理器;以及
被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器:
接收第一应用通过调用第二应用提供的第一接口向所述第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统;
调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;
向所述第一应用返回所述第二无线连接请求对应的连接结果信息。
根据本申请的又一个方面,提供了一种用于通过用户设备中第一应用连接无线接入点的第一设备,该第一设备包括:
处理器;以及
被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器:
获取关于目标无线接入点的第一无线连接请求;
向对应的第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备;
接收所述第二应用基于所述第二无线连接请求的连接结果信息。
根据本申请的再一个方面,提供了一种用于通过用户设备中第二应用连接无线接入点的第二设备,该第二设备包括:
处理器;以及
被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器:
接收第一应用向第二应用发送的关于目标无线接入点的第二无线连接请 求,其中,所述第二应用与所述第一应用安装于同一用户设备;
调用所述用户设备的系统无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;
向所述第一应用返回所述第二无线连接请求对应的连接结果信息。
根据本申请的一个方面,提供了一种包括指令的计算机可读存储介质,所述指令在被执行时使得系统进行以下操作:
获取关于目标无线接入点的第一无线连接请求;
通过调用对应的第二应用提供的第一接口向所述第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统;
接收所述第二应用基于所述第二无线连接请求的连接结果信息。
根据本申请的另一个方面,提供了一种包括指令的计算机可读存储介质,所述指令在被执行时使得系统进行以下操作:
接收第一应用通过调用第二应用提供的第一接口向所述第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统;
调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;
向所述第一应用返回所述第二无线连接请求对应的连接结果信息。
根据本申请的又一个方面,提供了一种包括指令的计算机可读存储介质,所述指令在被执行时使得系统进行以下操作:
获取关于目标无线接入点的第一无线连接请求;
向对应的第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备;
接收所述第二应用基于所述第二无线连接请求的连接结果信息。
根据本申请的再一个方面,提供了一种包括指令的计算机可读存储介质,所述指令在被执行时使得系统进行以下操作:
接收第一应用向第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备;
调用所述用户设备的系统无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;
向所述第一应用返回所述第二无线连接请求对应的连接结果信息。
与现有技术相比,本申请至少具有以下优点:
1)开发者无需针对不同的操作系统平台编写代码,只需要掌握一种API,即可开发能在不同平台上运行的应用,提升了开发效率,缩短了开发周期,降低了开发成本;
2)应用更新无需重新下载安装,线上即可完成,且不需要通知用户进行更新,从而改善了用户体验,并且无需维持应用的多个版本,进一步降低了开发成本。
附图说明
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:
图1示出根据本申请一个实施例的一种用于通过用户设备中第一应用连接无线接入点的方法流程图;
图2示出根据本申请另一个实施例的一种用于通过用户设备中第二应用连接无线接入点的方法流程图;
图3示出根据本申请又一个实施例的一种用于通过用户设备中第一应用连接无线接入点的方法流程图;
图4示出根据本申请再一个实施例的一种用于通过用户设备中第二应用连接无线接入点的方法流程图;
图5示出根据本申请一个实施例的一种用于通过用户设备中第一应用连接无线接入点的第一装置结构图;
图6示出根据本申请另一个实施例的一种用于通过用户设备中第二应用连接无线接入点的第二装置结构图;
图7示出根据本申请又一个实施例的一种用于通过用户设备中第一应用连接无线接入点的第一装置结构图;
图8示出根据本申请再一个实施例的一种用于通过用户设备中第二应用连 接无线接入点的第二装置结构图;
图9示出根据本申请一个实施例的第一应用、第二应用及云端服务器的关系示意图;
图10示出根据本申请一个实施例的第一应用、第二应用及用户设备的系统的工作原理示意图;
附图中相同或相似的附图标记代表相同或相似的部件。
具体实施方式
下面结合附图对本申请作进一步详细描述。
在本申请一个典型的配置中,终端、服务网络的设备和可信方均包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括非暂存电脑可读媒体(transitory media),如调制的数据信号和载波。
本申请所指设备包括但不限于用户设备、网络设备、或用户设备与网络设备通过网络相集成所构成的设备。所述用户设备包括但不限于任何一种可与用户进行人机交互(例如通过触摸板进行人机交互)的移动电子产品,例如智能手机、平板电脑等,所述移动电子产品可以采用任意操作系统,如android操作系统、iOS操作系统等。其中,所述网络设备包括一种能够按照事先设定或存 储的指令,自动进行数值计算和信息处理的电子设备,其硬件包括但不限于微处理器、专用集成电路(ASIC)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、数字信号处理器(DSP)、嵌入式设备等。所述网络设备包括但不限于计算机、网络主机、单个网络服务器、多个网络服务器集或多个服务器构成的云;在此,云由基于云计算(Cloud Computing)的大量计算机或网络服务器构成,其中,云计算是分布式计算的一种,由一群松散耦合的计算机集组成的一个虚拟超级计算机。所述网络包括但不限于互联网、广域网、城域网、局域网、VPN网络、无线自组织网络(Ad Hoc网络)等。优选地,所述设备还可以是运行于所述用户设备、网络设备、或用户设备与网络设备、网络设备、触摸终端或网络设备与触摸终端通过网络相集成所构成的设备上的程序。
本申请所指装置包括但不限于用户装置、网络装置、或用户装置与网络装置通过网络相集成所构成的装置。所述用户装置包括但不限于任何一种可与用户进行人机交互(例如通过触摸板进行人机交互)的移动电子产品,例如智能手机、平板电脑等,所述移动电子产品可以采用任意操作系统,如android操作系统、iOS操作系统等。其中,所述网络装置包括一种能够按照事先设定或存储的指令,自动进行数值计算和信息处理的电子装置,其硬件包括但不限于微处理器、专用集成电路(ASIC)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、数字信号处理器(DSP)、嵌入式装置等。所述网络装置包括但不限于计算机、网络主机、单个网络服务器、多个网络服务器集或多个服务器构成的云;在此,云由基于云计算(Cloud Computing)的大量计算机或网络服务器构成,其中,云计算是分布式计算的一种,由一群松散耦合的计算机集组成的一个虚拟超级计算机。所述网络包括但不限于互联网、广域网、城域网、局域网、VPN网络、无线自组织网络(Ad Hoc网络)等。优选地,所述装置还可以是运行于所述用户装置、网络装置、或用户装置与网络装置、网络装置、触摸终端或网络装置与触摸终端通过网络相集成所构成的装置上的程序。
当然,本领域技术人员应能理解上述设备或装置仅为举例,其他现有的或今后可能出现的设备或装置如可适用于本申请,也应包含在本申请保护范围以内,并在此以引用方式包含于此。
在本申请的描述中,“多个”的含义是两个或者更多,除非另有明确具体 的限定。
以下以安装于用户所使用的用户设备上的第一应用、第二应用为例对本申请详细描述。
图1示出了根据本申请一个方面的一种用于通过用户设备中第一应用连接无线接入点的方法流程图,该方法包括步骤S11、步骤S12。
其中,在步骤S11中,第一应用获取关于目标无线接入点的第一无线连接请求;在步骤S12中,第一应用通过调用对应的第二应用提供的第一接口向所述第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统,所述第二应用基于所述第二无线连接请求、调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接。
具体而言,在步骤S11中,第一应用获取关于目标无线接入点的第一无线连接请求,例如,用户需要将用户设备连接到目标无线接入点,例如,用户指定目标无线接入点的SSID/BSSID,并向第一应用发送关于该目标无线接入点的第一无线连接请求。指定的操作可以是通过用户设备手动输入,或者在用户设备提供的无线接入点列表中进行选择等。
接着,在步骤S12中,第一应用通过调用对应的第二应用提供的第一接口向所述第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统,所述第二应用基于所述第二无线连接请求、调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接。例如,第一应用调用对应的、由第二应用所提供的第一接口,实现向第二应用发送关于前述目标无线接入点的与第一无线连接请求相对应的第二无线连接请求;其中,第一应用和第二应用都安装于同一台用户设备,相应地,第一接口的调用过程也发生于该用户设备;并且,第一接口与用户设备上的操作系统相互独立,从而第一接口与用户设备上操作系统提供的编程接口相互独立,第一应用对第一接口的调用与用户设备上操作系统提供的编程接口也相互独立,从而第一应用的开发者无需关注系统编程接口的情况,就算在不同的平台进行开发,也只要关注第二应用向第一应用所提供的接口即可。
此时,第二应用调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接。其中,无线连接接口由各用户设备的系统提供,通过调用用户设备的该接口,可实现该用户设备与前述目标无线接入点之间的无线连接。
优选地,随后,在步骤S13中,第一应用接收所述第二应用基于所述第二无线连接请求的连接结果信息。例如,接收第二无线连接请求发送后所返回的连接成功、连接失败、连接带宽信息、连接稳定性信息等。其中,优选地,当该连接结果信息中包含连接成功的信息,通过所述用户设备与所述目标无线接入点间的无线连接进行通信,此时用户设备与目标无线接入点之间的无线连接已经建立,用户设备与目标无线接入点之间的通信无需通过第二应用所提供的接口实现。
优选地,第二应用还提供了与用户设备系统相独立的第二接口,通过对该第二接口的调用,向第二应用发送扫描请求,以对用户设备附近(信号能覆盖用户设备)的无线接入点进行扫描,并获得第二应用基于该扫描请求而返回的一个或多个无线接入点,例如,返回这一个或多个无线接入点的SSID/BSSID信息和/或无线信号强度等。和第一接口的情况类似地,第二接口与用户设备上的操作系统相互独立,从而第二接口与用户设备上操作系统的编程接口相互独立,第一应用对第二接口的调用与用户设备上操作系统的编程接口也相互独立,从而第一应用的开发者无需关注系统编程接口的情况,就算在不同的平台进行开发,也只要关注第二应用向第一应用所提供的接口即可。
优选地,在步骤S11中,第一应用获取关于目标无线接入点的第一无线连接请求,其中该目标无线接入点从第二应用返回的一个或多个无线接入点中选择,选择动作可由用户完成,也可由第一应用根据预设逻辑(例如,选择信号强度最高的无线接入点)完成。更进一步地,参考图9,在从这一个或多个无线接入点中选择目标无线接入点之前,先从对应的网络设备(例如,云端服务器)请求获取这些无线接入点的认证状态信息,例如,云端服务器预先存储有一些无线接入点的信息以及对应的认证状态信息,如无线接入点是否在云端服务器存储有相应的认证信息;根据由此获取的认证状态信息,从这一个或多个无线接入点之中选择目标无线接入点,例如,从多个无线接入点中,选中在云端服务 器存储有相应的认证信息的无线接入点作为目标无线接入点,用于依据云端服务器存储的它的认证信息进行连接;然后再获取关于该目标无线接入点的第一无线连接请求。
优选地,为便于用户从第二应用基于第一应用通过第二接口发送的扫描请求所返回的一个或多个无线接入点中选取目标无线接入点,在所述第一应用中呈现这一个或多个无线接入点中的至少一个无线接入点。例如,在用户设备的屏幕上,通过列表的方式将返回的无线接入点全部呈现;也可将返回的无线接入点进行排序(例如,根据信号强度排序)后呈现;或者只呈现经过预设逻辑筛选、符合条件的一个或几个无线接入点。然后,再根据用户从呈现出来的至少一个无线接入点中选中的目标无线接入点,生成关于该目标无线接入点的第一无线连接请求。
优选地,第二应用还提供与用户设备的系统相互独立的第三接口,通过调用该第三接口,即可从第二应用发送执行请求,该执行请求包括但不限于:从第二应用中获取界面元素(例如视图组件、布局等)、从第二应用中获取用户设备的位置信息、通过第二应用在用户设备中执行数据存储、通过第二应用进行数据通信。相应地,第二应用所提供的第三接口包括但不限于:用于从第二应用中获取界面元素的接口、从第二应用中获取用户设备的位置信息的接口、通过第二应用在用户设备中执行数据存储的接口、通过第二应用进行数据通信的接口。和第一接口的情况类似地,第三接口与用户设备上的操作系统相互独立,从而第三接口与用户设备上操作系统的编程接口相互独立,第一应用对第三接口的调用与用户设备上操作系统的编程接口也相互独立,从而第一应用的开发者无需关注系统编程接口的情况,就算在不同的平台进行开发,也只要关注第二应用向第一应用所提供的接口即可。
特别地,第一应用基于脚本语言(例如,JavaScript、Lua、Python、Ruby等)进行开发;第二应用相应地内置有脚本引擎,调用该脚本引擎,第一应用即可被解释执行。在不同的平台上开发好带有同样脚本引擎的第二应用后,基于对应脚本语言开发的、具有实用功能的第一应用即可跨平台运行,开发者无需针对不同的系统平台编写代码,只要关注第二应用提供的接口即可开发能在不同平台上运行的应用,提升了开发效率,缩短了开发周期,降低了开发成本; 且第一应用的功能更新无需重新下载安装,线上即可完成,并且不需要通知用户进行更新,从而改善了用户体验;同时,无需维持第一应用的多个版本,进一步降低了开发成本。
参考图10,第一应用基于脚本语言开发,第二应用内置有相应的脚本引擎,调用该脚本引擎,对第一应用进行解释执行。第二应用提供了与用户设备系统相独立的第一接口和第二接口。通过对第二接口的调用,实现向第二应用发送扫描请求,以对用户设备附近(信号能覆盖用户设备)的无线接入点进行扫描;第二应用调用用户设备的系统提供的系统接口中的无线连接点扫描接口,扫描并获得用户设备周围的一个或者多个无线接入点,并将其返回给第二应用;接着,第二应用基于第一应用的扫描请求,返回的一个或多个无线接入点,例如,返回这一个或多个无线接入点的SSID/BSSID信息和/或无线信号强度等。然后,第一应用调用由第二应用所提供的第一接口,实现向第二应用发送关于前述目标无线接入点的与第一无线连接请求相对应的第二无线连接请求。优选地,第二应用还提供了与用户设备系统相独立的第三接口,第一应用通过调用该第三接口,即可从第二应用发送执行请求,该执行请求包括但不限于:从第二应用中获取界面元素(例如视图组件、布局等)、从第二应用中获取用户设备的位置信息、通过第二应用在用户设备中执行数据存储、通过第二应用进行数据通信;相应地,第二应用所提供的第三接口包括但不限于:用于从第二应用中获取界面元素的接口、从第二应用中获取用户设备的位置信息的接口、通过第二应用在用户设备中执行数据存储的接口、通过第二应用进行数据通信的接口。进一步地,补充参考图9,在选择目标无线接入点之前,第一应用先从对应的网络设备(例如,云端服务器)获取这些无线接入点的认证信息,例如,云端服务器预先存储有一些无线接入点的信息以及对应的认证信息;根据认证信息,从这一个或多个无线接入点之中选择目标无线接入点;然后再获取关于该目标无线接入点的第一无线连接请求。
其中,第一应用和第二应用都安装于同一台用户设备,相应地,第一接口的调用过程也发生于该用户设备;并且,第一接口、第二接口和第三接口与用户设备上的操作系统相互独立,从而第一接口、第二接口和第三接口与用户设备上操作系统提供的编程接口相互独立,第一应用对第一接口的调用与用户设 备上操作系统的提供的编程接口也相互独立,从而第一应用的开发者无需关注系统编程接口的情况,就算在不同的平台进行开发,也只要关注第二应用向第一应用所提供的接口即可。
图2示出了根据本申请另一个方面的一种用于通过用户设备中第二应用连接无线接入点的方法流程图,该方法包括步骤S21、步骤S22和步骤S23。
其中,在步骤S21中,第二应用接收第一应用通过调用第二应用提供的第一接口向所述第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统;在步骤S22中,第二应用调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;在步骤S23中,第二应用向所述第一应用返回所述第二无线连接请求对应的连接结果信息。
具体而言,在步骤S21中,第二应用接收第一应用通过调用第二应用提供的第一接口向所述第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统。例如,第一应用调用对应的、由第二应用所提供的第一接口,实现向第二应用发送关于前述目标无线接入点的与第一无线连接请求相对应的第二无线连接请求;其中,第一应用和第二应用都安装于同一台用户设备,相应地,第一接口的调用过程也发生于该用户设备;并且,第一接口与用户设备上的操作系统相互独立,从而第一接口与用户设备上操作系统的编程接口相互独立,第一应用对第一接口的调用与用户设备上操作系统的编程接口也相互独立,从而第一应用的开发者无需关注系统编程接口的情况,就算在不同的平台进行开发,也只要关注第二应用向第一应用所提供的接口即可。
接着,在步骤S22中,第二应用调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接。其中,无线连接接口由各用户设备的系统提供,通过调用用户设备的该接口,可实现该用户设备与前述目标无线接入点之间的无线连接。
然后,在步骤S23中,第二应用向第一应用返回第二无线连接请求对应的连接结果信息。例如,接收第二无线连接请求发送后所返回的连接成功、连接失败、连接带宽信息、连接稳定性信息等。其中,优选地,当该连接结果信息 中包含连接成功的信息,第二应用通过所述用户设备与所述目标无线接入点间的无线连接进行通信,此时用户设备与目标无线接入点之间的无线连接已经建立,用户设备与目标无线接入点之间的通信无需通过第二应用所提供的接口实现。
优选地,第二应用还提供了与用户设备系统相独立的第二接口,通过第一应用对该第二接口的调用,向第二应用发送扫描请求,以对用户设备附近(信号能覆盖用户设备)的无线接入点进行扫描,并获得第二应用基于该扫描请求而返回的一个或多个无线接入点,例如,返回这一个或多个无线接入点的SSID/BSSID信息和/或无线信号强度等。和第一接口的情况类似地,第二接口与用户设备上的操作系统相互独立,从而第二接口与用户设备上操作系统的编程接口相互独立,第一应用对第二接口的调用与用户设备上操作系统的编程接口也相互独立,从而第一应用的开发者无需关注系统编程接口的情况,就算在不同的平台进行开发,也只要关注第二应用向第一应用所提供的接口即可。此时,调用用户设备的系统的无线连接点扫描接口,对用户设备附近(信号能覆盖用户设备)的无线接入点进行扫描,并获得第二应用基于该扫描请求而返回的一个或多个无线接入点。随后,向第一应用返回这一个或多个无线接入点中的至少一个无线接入点。例如,可将基于扫描请求返回的无线接入点进行排序(例如,根据信号强度排序)后返回优选的无线接入点,或根据其他预设逻辑筛选而返回这一个或多个无线接入点中的至少一个无线接入点。
图3示出了根据本申请又一个方面的一种用于通过用户设备中第一应用连接无线接入点的方法流程图,该方法包括步骤S31、步骤S32和步骤S33。
其中,在步骤S31中,第一应用获取关于目标无线接入点的第一无线连接请求;在步骤S32中,第一应用向对应的第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备;在步骤S33中,第一应用接收所述第二应用基于所述第二无线连接请求的连接结果信息。
具体而言,在步骤S31中,第一应用获取关于目标无线接入点的第一无线连接请求,例如,用户需要将用户设备连接到目标无线接入点,例如,用户指定目标无线接入点的SSID/BSSID,并向第一应用发送关于该目标无线接入点 的第一无线连接请求。
接着,在步骤S32中,第一应用向对应的第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备。其中,该第二无线连接请求和前述第一无线连接请求相对应。此时,第一应用并不直接向用户设备的系统发送无线连接请求,第一应用和用户设备的系统是相互独立的,从而第一应用的开发者无需关注第一应用和不同用户设备系统之间的适配问题,就算在不同的平台开发该第一应用,也只要关心第一应用和第二应用之间的通信即可。
然后,在步骤S33中,第一应用接收所述第二应用基于所述第二无线连接请求的连接结果信息。例如,接收第二无线连接请求发送后所返回的连接成功、连接失败、连接带宽信息、连接稳定性信息等。其中,优选地,当该连接结果信息中包含连接成功的信息,通过所述用户设备与所述目标无线接入点间的无线连接进行通信,此时用户设备与目标无线接入点之间的无线连接已经建立,用户设备与目标无线接入点之间的通信无需通过第二应用所提供的接口实现。
优选地,第一应用向第二应用发送扫描请求,以对用户设备附近(信号能覆盖用户设备)的无线接入点进行扫描,并接收第二应用基于该扫描请求返回的一个或者多个无线接入点,例如,返回这一个或多个无线接入点的SSID/BSSID信息和/或无线信号强度等。第一应用并不直接向用户设备的系统发送无线接入点扫描请求,第一应用和用户设备的系统是相互独立的,从而第一应用的开发者无需关注第一应用和不同用户设备系统之间的适配问题,就算在不同的平台开发该第一应用,也只要关心第一应用和第二应用之间的通信即可。
进一步优选地,第一应用获取关于目标无线接入点的第一无线连接请求,其中该目标无线接入点从第二应用返回的一个或多个无线接入点中选择,选择动作可由用户完成,也可由第一应用根据预设逻辑(例如,选择信号强度最高的无线接入点)完成。
更优选地,为便于用户从第二应用基于第一应用发送的扫描请求所返回的一个或多个无线接入点中选取目标无线接入点,在所述第一应用中呈现这一个或多个无线接入点中的至少一个无线接入点。例如,在用户设备的屏幕上,通过列表的方式将返回的无线接入点全部呈现;也可将返回的无线接入点进行排 序(例如,根据信号强度排序)后呈现;或者只呈现经过预设逻辑筛选、符合条件的一个或几个无线接入点。然后,再根据用户从呈现出来的至少一个无线接入点中选中的目标无线接入点,生成关于该目标无线接入点的第一无线连接请求。
图4示出了根据本申请再一个方面的一种用于通过用户设备中第二应用连接无线接入点的方法流程图,该方法包括步骤S41、步骤S42和步骤S43。
其中,在步骤S41中,接收第一应用向第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备;在步骤S42中,第二应用调用所述用户设备的系统无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;在步骤S43中,第二应用向所述第一应用返回所述第二无线连接请求对应的连接结果信息。
具体而言,在步骤S41中,接收第一应用向第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备。此时,第一应用并不直接向用户设备的系统发送无线连接请求,第一应用和用户设备的系统是相互独立的,从而第一应用的开发者无需关注第一应用和不同用户设备系统之间的适配问题,就算在不同的平台开发该第一应用,也只要关心第一应用和第二应用之间的通信即可。
接着,在步骤S42中,第二应用调用所述用户设备的系统无线连接接口建立所述用户设备与所述目标无线接入点的无线连接。其中,无线连接接口由各用户设备的系统提供,通过调用用户设备的该接口,可实现该用户设备与前述目标无线接入点之间的无线连接。
然后,在步骤S43中,第二应用向第一应用返回第二无线连接请求对应的连接结果信息。例如,接收第二无线连接请求发送后所返回的连接成功、连接失败、连接带宽信息、连接稳定性信息等。其中,优选地,当该连接结果信息中包含连接成功的信息,第四装置4通过所述用户设备与所述目标无线接入点间的无线连接进行通信,此时用户设备与目标无线接入点之间的无线连接已经建立,用户设备与目标无线接入点之间的通信无需通过第二应用所提供的接口实现。
优选地,第一应用向第二应用发送扫描请求,以对用户设备附近(信号能覆 盖用户设备)的无线接入点进行扫描,并获得第二应用基于该扫描请求而返回的一个或多个无线接入点,例如,返回这一个或多个无线接入点的SSID/BSSID信息和/或无线信号强度等。其中,第一应用并不直接向用户设备的系统发送无线连接请求,第一应用和用户设备的系统是相互独立的,从而第一应用的开发者无需关注第一应用和不同用户设备系统之间的适配问题,就算在不同的平台开发该第一应用,也只要关心第一应用和第二应用之间的通信即可。此时,调用用户设备的系统的无线连接点扫描接口,对用户设备附近(信号能覆盖用户设备)的无线接入点进行扫描,并获得第二应用基于该扫描请求而返回的一个或多个无线接入点。随后,向第一应用返回这一个或多个无线接入点中的至少一个无线接入点。例如,可将基于扫描请求返回的无线接入点进行排序(例如,根据信号强度排序)后返回优选的无线接入点,或根据其他预设逻辑筛选而返回这一个或多个无线接入点中的至少一个无线接入点。
图5示出了根据本申请一个方面的一种用于通过用户设备中第一应用连接无线接入点的装置结构图,其中第一装置1包括第一一模块11、第一二模块12。
其中,第一一模块11获取关于目标无线接入点的第一无线连接请求;第一二模块12通过调用对应的第二应用提供的第一接口向所述第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统,所述第二应用基于所述第二无线连接请求、调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接。
具体而言,第一一模块11获取关于目标无线接入点的第一无线连接请求,例如,用户需要将用户设备连接到目标无线接入点,例如,用户指定目标无线接入点的SSID/BSSID,并向第一应用发送关于该目标无线接入点的第一无线连接请求。指定的操作可以是通过用户设备手动输入,或者在用户设备提供的无线接入点列表中进行选择等。
接着,第一二模块12通过调用对应的第二应用提供的第一接口向所述第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的 系统,所述第二应用基于所述第二无线连接请求、调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接。例如,第一应用调用对应的、由第二应用所提供的第一接口,实现向第二应用发送关于前述目标无线接入点的与第一无线连接请求相对应的第二无线连接请求;其中,第一应用和第二应用都安装于同一台用户设备,相应地,第一接口的调用过程也发生于该用户设备;并且,第一接口与用户设备上的操作系统相互独立,从而第一接口与用户设备上操作系统的编程接口相互独立,第一应用对第一接口的调用与用户设备上操作系统的编程接口也相互独立,从而第一应用的开发者无需关注系统编程接口的情况,就算在不同的平台进行开发,也只要关注第二应用向第一应用所提供的接口即可。
此时,第二应用调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接。其中,无线连接接口由各用户设备的系统提供,通过调用用户设备的该接口,可实现该用户设备与前述目标无线接入点之间的无线连接。
优选地,随后,第一三模块13接收所述第二应用基于所述第二无线连接请求的连接结果信息。例如,接收第二无线连接请求发送后所返回的连接成功、连接失败、连接带宽信息、连接稳定性信息等。其中,优选地,当该连接结果信息中包含连接成功的信息,通过所述用户设备与所述目标无线接入点间的无线连接进行通信,此时用户设备与目标无线接入点之间的无线连接已经建立,用户设备与目标无线接入点之间的通信无需通过第二应用所提供的接口实现。
优选地,第二应用还提供了与用户设备系统相独立的第二接口,通过对该第二接口的调用,向第二应用发送扫描请求,以对用户设备附近(信号能覆盖用户设备)的无线接入点进行扫描,并获得第二应用基于该扫描请求而返回的一个或多个无线接入点,例如,返回这一个或多个无线接入点的SSID/BSSID信息和/或无线信号强度等。和第一接口的情况类似地,第二接口与用户设备上的操作系统相互独立,从而第二接口与用户设备上操作系统的编程接口相互独立,第一应用对第二接口的调用与用户设备上操作系统的编程接口也相互独立,从而第一应用的开发者无需关注系统编程接口的情况,就算在不同的平台进行开发,也只要关注第二应用向第一应用所提供的接口即可。
优选地,第一一模块11获取关于目标无线接入点的第一无线连接请求,其中该目标无线接入点从第二应用返回的一个或多个无线接入点中选择,选择动作可由用户完成,也可由第一应用根据预设逻辑(例如,选择信号强度最高的无线接入点)完成。更进一步地,参考图9,在从这一个或多个无线接入点中选择目标无线接入点之前,先从对应的网络设备(例如,云端服务器)请求获取这些无线接入点的认证状态信息,例如,云端服务器预先存储有一些无线接入点的信息以及对应的认证状态信息,如无线接入点是否在云端服务器存储有相应的认证信息;根据由此获取的认证状态信息,从这一个或多个无线接入点之中选择目标无线接入点,例如,从多个无线接入点中,选中在云端服务器存储有相应的认证信息的无线接入点作为目标无线接入点,用于依据云端服务器存储的它的认证信息进行连接;然后再获取关于该目标无线接入点的第一无线连接请求。
优选地,为便于用户从第二应用基于第一应用通过第二接口发送的扫描请求所返回的一个或多个无线接入点中选取目标无线接入点,在所述第一应用中呈现这一个或多个无线接入点中的至少一个无线接入点。例如,在用户设备的屏幕上,通过列表的方式将返回的无线接入点全部呈现;也可将返回的无线接入点进行排序(例如,根据信号强度排序)后呈现;或者只呈现经过预设逻辑筛选、符合条件的一个或几个无线接入点。然后,再根据用户从呈现出来的至少一个无线接入点中选中的目标无线接入点,生成关于该目标无线接入点的第一无线连接请求。
优选地,第二应用还提供与用户设备的系统相互独立的第三接口,通过调用该第三接口,即可从第二应用发送执行请求,该执行请求包括但不限于:从第二应用中获取界面元素(例如视图组件、布局等)、从第二应用中获取用户设备的位置信息、通过第二应用在用户设备中执行数据存储、通过第二应用进行数据通信。相应地,第二应用所提供的第三接口包括但不限于:用于从第二应用中获取界面元素的接口、从第二应用中获取用户设备的位置信息的接口、通过第二应用在用户设备中执行数据存储的接口、通过第二应用进行数据通信的接口。和第一接口的情况类似地,第三接口与用户设备上的操作系统相互独立,从而第三接口与用户设备上操作系统的编程接口相互独立,第一应用对第三接 口的调用与用户设备上操作系统的编程接口也相互独立,从而第一应用的开发者无需关注系统编程接口的情况,就算在不同的平台进行开发,也只要关注第二应用向第一应用所提供的接口即可。
特别地,第一应用基于脚本语言(例如,JavaScript、Lua、Python、Ruby等)进行开发;第二应用相应地内置有脚本引擎,调用该脚本引擎,第一应用即可被解释执行。在不同的平台上开发好带有同样脚本引擎的第二应用后,基于对应脚本语言开发的、具有实用功能的第一应用即可跨平台运行,开发者无需针对不同的系统平台编写代码,只要关注第二应用提供的接口即可开发能在不同平台上运行的应用,提升了开发效率,缩短了开发周期,降低了开发成本;且第一应用的功能更新无需重新下载安装,线上即可完成,并且不需要通知用户进行更新,从而改善了用户体验;同时,无需维持第一应用的多个版本,进一步降低了开发成本。
参考图10,第一应用基于脚本语言开发,第二应用内置有相应的脚本引擎,调用该脚本引擎,对第一应用进行解释执行。第二应用提供了与用户设备系统相独立的第一接口和第二接口。通过对第二接口的调用,实现向第二应用发送扫描请求,以对用户设备附近(信号能覆盖用户设备)的无线接入点进行扫描;第二应用调用用户设备的系统提供的系统接口中的无线连接点扫描接口,扫描并获得用户设备周围的一个或者多个无线接入点,并将其返回给第二应用;接着,第二应用基于第一应用的扫描请求,返回的一个或多个无线接入点,例如,返回这一个或多个无线接入点的SSID/BSSID信息和/或无线信号强度等。然后,第一应用调用由第二应用所提供的第一接口,实现向第二应用发送关于前述目标无线接入点的与第一无线连接请求相对应的第二无线连接请求。优选地,第二应用还提供了与用户设备系统相独立的第三接口,第一应用通过调用该第三接口,即可从第二应用发送执行请求,该执行请求包括但不限于:从第二应用中获取界面元素(例如视图组件、布局等)、从第二应用中获取用户设备的位置信息、通过第二应用在用户设备中执行数据存储、通过第二应用进行数据通信;相应地,第二应用所提供的第三接口包括但不限于:用于从第二应用中获取界面元素的接口、从第二应用中获取用户设备的位置信息的接口、通过第二应用在用户设备中执行数据存储的接口、通过第二应用进行数据通信的接口。进一 步地,补充参考图9,在选择目标无线接入点之前,第一应用先从对应的网络设备(例如,云端服务器)获取这些无线接入点的认证信息,例如,云端服务器预先存储有一些无线接入点的信息以及对应的认证信息;根据认证信息,从这一个或多个无线接入点之中选择目标无线接入点;然后再获取关于该目标无线接入点的第一无线连接请求。
其中,第一应用和第二应用都安装于同一台用户设备,相应地,第一接口的调用过程也发生于该用户设备;并且,第一接口、第二接口和第三接口与用户设备上的操作系统相互独立,从而第一接口、第二接口和第三接口与用户设备上操作系统提供的编程接口相互独立,第一应用对第一接口的调用与用户设备上操作系统的提供的编程接口也相互独立,从而第一应用的开发者无需关注系统编程接口的情况,就算在不同的平台进行开发,也只要关注第二应用向第一应用所提供的接口即可。
图6示出了根据本申请另一个方面的一种用于通过用户设备中第二应用连接无线接入点的装置结构图,其中第二装置2包括第二一模块21、第二二模块22和第二三模块23。
其中,第二一模块21接收第一应用通过调用第二应用提供的第一接口向所述第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统;第二二模块22调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;第二三模块23向所述第一应用返回所述第二无线连接请求对应的连接结果信息。
具体而言,第二一模块21接收第一应用通过调用第二应用提供的第一接口向所述第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统。例如,第一应用调用对应的、由第二应用所提供的第一接口,实现向第二应用发送关于前述目标无线接入点的与第一无线连接请求相对应的第二无线连接请求;其中,第一应用和第二应用都安装于同一台用户设备,相应地,第一接口的调用过程也发生于该用户设备;并且,第一接口与用户设备上的操作系统相互独立,从而第一接口与用户设备上操作系统的编程接口相 互独立,第一应用对第一接口的调用与用户设备上操作系统的编程接口也相互独立,从而第一应用的开发者无需关注系统编程接口的情况,就算在不同的平台进行开发,也只要关注第二应用向第一应用所提供的接口即可。
接着,第二二模块22调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接。其中,无线连接接口由各用户设备的系统提供,通过调用用户设备的该接口,可实现该用户设备与前述目标无线接入点之间的无线连接。
然后,第二三模块23向第一应用返回第二无线连接请求对应的连接结果信息。例如,接收第二无线连接请求发送后所返回的连接成功、连接失败、连接带宽信息、连接稳定性信息等。其中,优选地,当该连接结果信息中包含连接成功的信息,第一装置1通过所述用户设备与所述目标无线接入点间的无线连接进行通信,此时用户设备与目标无线接入点之间的无线连接已经建立,用户设备与目标无线接入点之间的通信无需通过第二应用所提供的接口实现。
优选地,第二应用还提供了与用户设备系统相独立的第二接口,通过第一应用对该第二接口的调用,向第二应用发送扫描请求,以对用户设备附近(信号能覆盖用户设备)的无线接入点进行扫描,并获得第二应用基于该扫描请求而返回的一个或多个无线接入点,例如,返回这一个或多个无线接入点的SSID/BSSID信息和/或无线信号强度等。和第一接口的情况类似地,第二接口与用户设备上的操作系统相互独立,从而第二接口与用户设备上操作系统的编程接口相互独立,第一应用对第二接口的调用与用户设备上操作系统的编程接口也相互独立,从而第一应用的开发者无需关注系统编程接口的情况,就算在不同的平台进行开发,也只要关注第二应用向第一应用所提供的接口即可。此时,调用用户设备的系统的无线连接点扫描接口,对用户设备附近(信号能覆盖用户设备)的无线接入点进行扫描,并获得第二应用基于该扫描请求而返回的一个或多个无线接入点。随后,向第一应用返回这一个或多个无线接入点中的至少一个无线接入点。例如,可将基于扫描请求返回的无线接入点进行排序(例如,根据信号强度排序)后返回优选的无线接入点,或根据其他预设逻辑筛选而返回这一个或多个无线接入点中的至少一个无线接入点。
图7示出了根据本申请又一个方面的一种用于通过用户设备中第一应用连 接无线接入点的装置结构图,其中第一装置1包括第一一模块11、第一二模块12和第一三模块13。
其中,第一一模块11获取关于目标无线接入点的第一无线连接请求;第一二模块12向对应的第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备;第一三模块13接收所述第二应用基于所述第二无线连接请求的连接结果信息。
具体而言,第一一模块11获取关于目标无线接入点的第一无线连接请求,例如,用户需要将用户设备连接到目标无线接入点,例如,用户指定目标无线接入点的SSID/BSSID,并向第一应用发送关于该目标无线接入点的第一无线连接请求。
接着,第一二模块12向对应的第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备。其中,该第二无线连接请求和前述第一无线连接请求相对应。此时,第一应用并不直接向用户设备的系统发送无线连接请求,第一应用和用户设备的系统是相互独立的,从而第一应用的开发者无需关注第一应用和不同用户设备系统之间的适配问题,就算在不同的平台开发该第一应用,也只要关心第一应用和第二应用之间的通信即可。
然后,第一三模块13接收所述第二应用基于所述第二无线连接请求的连接结果信息。例如,接收第二无线连接请求发送后所返回的连接成功、连接失败、连接带宽信息、连接稳定性信息等。其中,优选地,当该连接结果信息中包含连接成功的信息,通过所述用户设备与所述目标无线接入点间的无线连接进行通信,此时用户设备与目标无线接入点之间的无线连接已经建立,用户设备与目标无线接入点之间的通信无需通过第二应用所提供的接口实现。
优选地,第一装置1向第二应用发送扫描请求,以对用户设备附近(信号能覆盖用户设备)的无线接入点进行扫描,并接收第二应用基于该扫描请求返回的一个或者多个无线接入点,例如,返回这一个或多个无线接入点的SSID/BSSID信息和/或无线信号强度等。第一应用并不直接向用户设备的系统发送无线接入点扫描请求,第一应用和用户设备的系统是相互独立的,从而第一应用的开发者无需关注第一应用和不同用户设备系统之间的适配问题,就算在不同的平台 开发该第一应用,也只要关心第一应用和第二应用之间的通信即可。
进一步优选地,第一装置1获取关于目标无线接入点的第一无线连接请求,其中该目标无线接入点从第二应用返回的一个或多个无线接入点中选择,选择动作可由用户完成,也可由第一应用根据预设逻辑(例如,选择信号强度最高的无线接入点)完成。
更优选地,为便于用户从第二应用基于第一应用发送的扫描请求所返回的一个或多个无线接入点中选取目标无线接入点,在所述第一应用中呈现这一个或多个无线接入点中的至少一个无线接入点。例如,在用户设备的屏幕上,通过列表的方式将返回的无线接入点全部呈现;也可将返回的无线接入点进行排序(例如,根据信号强度排序)后呈现;或者只呈现经过预设逻辑筛选、符合条件的一个或几个无线接入点。然后,再根据用户从呈现出来的至少一个无线接入点中选中的目标无线接入点,生成关于该目标无线接入点的第一无线连接请求。
图8示出了根据本申请再一个方面的一种用于通过用户设备中第二应用连接无线接入点的装置结构图,其中第二装置2包括第二一模块21、第二二模块22和第二三模块23。
其中,第二一模块21接收第一应用向第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备;第二二模块22调用所述用户设备的系统无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;第二三模块23向所述第一应用返回所述第二无线连接请求对应的连接结果信息。
具体而言,第二一模块21接收第一应用向第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备。此时,第一应用并不直接向用户设备的系统发送无线连接请求,第一应用和用户设备的系统是相互独立的,从而第一应用的开发者无需关注第一应用和不同用户设备系统之间的适配问题,就算在不同的平台开发该第一应用,也只要关心第一应用和第二应用之间的通信即可。
接着,第二二模块22调用所述用户设备的系统无线连接接口建立所述用户设备与所述目标无线接入点的无线连接。其中,无线连接接口由各用户设备 的系统提供,通过调用用户设备的该接口,可实现该用户设备与前述目标无线接入点之间的无线连接。
然后,第二三模块23向第一应用返回第二无线连接请求对应的连接结果信息。例如,接收第二无线连接请求发送后所返回的连接成功、连接失败、连接带宽信息、连接稳定性信息等。其中,优选地,当该连接结果信息中包含连接成功的信息,第二装置2通过所述用户设备与所述目标无线接入点间的无线连接进行通信,此时用户设备与目标无线接入点之间的无线连接已经建立,用户设备与目标无线接入点之间的通信无需通过第二应用所提供的接口实现。
优选地,第一应用向第二应用发送扫描请求,以对用户设备附近(信号能覆盖用户设备)的无线接入点进行扫描,并获得第二应用基于该扫描请求而返回的一个或多个无线接入点,例如,返回这一个或多个无线接入点的SSID/BSSID信息和/或无线信号强度等。其中,第一应用并不直接向用户设备的系统发送无线连接请求,第一应用和用户设备的系统是相互独立的,从而第一应用的开发者无需关注第一应用和不同用户设备系统之间的适配问题,就算在不同的平台开发该第一应用,也只要关心第一应用和第二应用之间的通信即可。此时,调用用户设备的系统的无线连接点扫描接口,对用户设备附近(信号能覆盖用户设备)的无线接入点进行扫描,并获得第二应用基于该扫描请求而返回的一个或多个无线接入点。随后,向第一应用返回这一个或多个无线接入点中的至少一个无线接入点。例如,可将基于扫描请求返回的无线接入点进行排序(例如,根据信号强度排序)后返回优选的无线接入点,或根据其他预设逻辑筛选而返回这一个或多个无线接入点中的至少一个无线接入点。
根据本申请的一个方面,提供了一种用于通过用户设备中第一应用连接无线接入点的设备,该设备包括:
处理器;以及
被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器:
获取关于目标无线接入点的第一无线连接请求;
通过调用对应的第二应用提供的第一接口向所述第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安 装于同一用户设备,所述第一接口独立于所述用户设备的系统,所述第二应用基于所述第二无线连接请求、调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接。
根据本申请的另一个方面,提供了一种用于通过用户设备中第二应用连接无线接入点的设备,该设备包括:
处理器;以及
被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器:
接收第一应用通过调用第二应用提供的第一接口向所述第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统;
调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;
向所述第一应用返回所述第二无线连接请求对应的连接结果信息。
根据本申请的又一个方面,提供了一种用于通过用户设备中第一应用连接无线接入点的设备,该设备包括:
处理器;以及
被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器:
获取关于目标无线接入点的第一无线连接请求;
向对应的第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备;
接收所述第二应用基于所述第二无线连接请求的连接结果信息。
根据本申请的再一个方面,提供了一种用于通过用户设备中第二应用连接无线接入点的设备,该设备包括:
处理器;以及
被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器:
接收第一应用向第二应用发送的关于目标无线接入点的第二无线连接请 求,其中,所述第二应用与所述第一应用安装于同一用户设备;
调用所述用户设备的系统无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;
向所述第一应用返回所述第二无线连接请求对应的连接结果信息。
根据本申请的一个方面,提供了一种包括指令的计算机可读存储介质,所述指令在被执行时使得系统进行以下操作:
获取关于目标无线接入点的第一无线连接请求;
通过调用对应的第二应用提供的第一接口向所述第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统,所述第二应用基于所述第二无线连接请求、调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接。
根据本申请的另一个方面,提供了一种包括指令的计算机可读存储介质,所述指令在被执行时使得系统进行以下操作:
接收第一应用通过调用第二应用提供的第一接口向所述第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统;
调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;
向所述第一应用返回所述第二无线连接请求对应的连接结果信息。
根据本申请的又一个方面,提供了一种包括指令的计算机可读存储介质,所述指令在被执行时使得系统进行以下操作:
获取关于目标无线接入点的第一无线连接请求;
向对应的第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备;
接收所述第二应用基于所述第二无线连接请求的连接结果信息。
根据本申请的再一个方面,提供了一种包括指令的计算机可读存储介质,所述指令在被执行时使得系统进行以下操作:
接收第一应用向第二应用发送的关于目标无线接入点的第二无线连接请 求,其中,所述第二应用与所述第一应用安装于同一用户设备;
调用所述用户设备的系统无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;
向所述第一应用返回所述第二无线连接请求对应的连接结果信息。
需要注意的是,本申请可在软件和/或软件与硬件的组合体中被实施,例如,可采用专用集成电路(ASIC)、通用目的计算机或任何其他类似硬件设备来实现。在一个实施例中,本申请的软件程序可以通过处理器执行以实现上文所述步骤或功能。同样地,本申请的软件程序(包括相关的数据结构)可以被存储到计算机可读记录介质中,例如,RAM存储器,磁或光驱动器或软磁盘及类似设备。另外,本申请的一些步骤或功能可采用硬件来实现,例如,作为与处理器配合从而执行各个步骤或功能的电路。
另外,本申请的一部分可被应用为计算机程序产品,例如计算机程序指令,当其被计算机执行时,通过该计算机的操作,可以调用或提供根据本申请的方法和/或技术方案。而调用本申请的方法的程序指令,可能被存储在固定的或可移动的记录介质中,和/或通过广播或其他信号承载媒体中的数据流而被传输,和/或被存储在根据所述程序指令运行的计算机设备的工作存储器中。在此,根据本申请的一个实施例包括一个装置,该装置包括用于存储计算机程序指令的存储器和用于执行程序指令的处理器,其中,当该计算机程序指令被该处理器执行时,触发该装置运行基于前述根据本申请的多个实施例的方法和/或技术方案。
对于本领域技术人员而言,显然本申请不限于上述示范性实施例的细节,而且在不背离本申请的精神或基本特征的情况下,能够以其他的具体形式实现本申请。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本申请的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本申请内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。此外,显然“包括”一词不排除其他单元或步骤,单数不排除复数。装置权利要求中陈述的多个单元或装置也可以由一个单元或装置通过软件或者硬件来实现。第一,第二等词语用来表示名称,而并不表示任何特定的顺序。

Claims (42)

  1. 一种用于通过用户设备中第一应用连接无线接入点的方法,其中,该方法包括:
    获取关于目标无线接入点的第一无线连接请求;
    通过调用对应的第二应用提供的第一接口向所述第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统,所述第二应用基于所述第二无线连接请求、调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接。
  2. 根据权利要求1所述的方法,其中,所述方法还包括:
    接收所述第二应用基于所述第二无线连接请求的连接结果信息;
    当所述连接结果信息包括连接成功,通过所述用户设备与所述目标无线接入点间的无线连接进行通信。
  3. 根据权利要求1所述的方法,其中,所述方法还包括:
    通过调用所述第二应用提供的第二接口向所述第二应用发送扫描所述用户设备周围无线接入点的扫描请求,其中,所述第二接口独立于所述系统;
    接收所述第二应用基于所述扫描请求返回的一个或多个无线接入点。
  4. 根据权利要求3所述的方法,其中,所述获取关于目标无线接入点的第一无线连接请求包括:
    获取关于目标无线接入点的第一无线连接请求,其中,所述目标无线接入点选自所述一个或多个无线接入点。
  5. 根据权利要求4所述的方法,其中,所述方法还包括:
    通过对应网络设备请求获取所述无线接入点的认证状态信息;
    其中,所述获取关于目标无线接入点的第一无线连接请求包括:
    根据所述认证状态信息,从所述一个或多个无线接入点中选择目标无线接入点;
    获取关于所述目标无线接入点的第一无线连接请求。
  6. 根据权利要求4所述的方法,其中,所述方法还包括:
    在所述第一应用中呈现所述一个或多个无线接入点中至少一个无线接入点;
    其中,所述获取关于目标无线接入点的第一无线连接请求包括:
    根据用户从所述至少一个无线接入点中选中的目标无线接入点,生成关于所述目标无线接入点的第一无线连接请求。
  7. 根据权利要求1至6中任一项所述的方法,其中,所述方法还包括:
    通过调用所述第二应用提供的第三接口从所述第二应用发送执行请求,其中,所述第三接口独立于所述系统。
  8. 根据权利要求7所述的方法,其中,所述第三接口包括以下至少任一项:
    用于从所述第二应用中获取界面元素的接口;
    用于从所述第二应用中获取所述用户设备的位置信息的接口;
    用于通过所述第二应用在所述用户设备中执行数据存储的接口;
    用于通过所述第二应用进行数据通信的接口。
  9. 根据权利要求1至8中任一项所述的方法,其中,所述第一应用基于脚本语言,并通过调用所述第二应用中脚本引擎被解释执行。
  10. 一种用于通过用户设备中第二应用连接无线接入点的方法,其中,该方法包括:
    接收第一应用通过调用第二应用提供的第一接口向所述第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统;
    调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;
    向所述第一应用返回所述第二无线连接请求对应的连接结果信息。
  11. 根据权利要求10所述的方法,其中,所述方法还包括:
    接收所述第一应用通过调用所述第二应用提供的第二接口向所述第二应用发送的扫描所述用户设备周围无线接入点的扫描请求,其中,所述第二接口独立于所述系统;
    调用所述系统的无线连接点扫描接口扫描获得所述用户设备周围的一个或多个无线接入点;
    向所述第一应用返回所述一个或多个无线接入点中至少一个。
  12. 一种用于通过用户设备中第一应用连接无线接入点的方法,其中,该方法包括:
    获取关于目标无线接入点的第一无线连接请求;
    向对应的第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备;
    接收所述第二应用基于所述第二无线连接请求的连接结果信息。
  13. 根据权利要求12所述的方法,其中,所述方法还包括:
    向所述第二应用发送扫描所述用户设备周围无线接入点的扫描请求;
    接收所述第二应用基于所述扫描请求返回的一个或多个无线接入点。
  14. 根据权利要求13所述的方法,其中,所述获取关于目标无线接入点的第一无线连接请求包括:
    获取关于目标无线接入点的第一无线连接请求,其中,所述目标无线接入点选自所述一个或多个无线接入点。
  15. 根据权利要求14所述的方法,其中,所述方法还包括:
    在所述第一应用中呈现所述一个或多个无线接入点中至少一个无线接入点;
    其中,所述获取关于目标无线接入点的第一无线连接请求包括:
    根据用户从所述至少一个无线接入点中选中的目标无线接入点,生成关于所述目标无线接入点的第一无线连接请求。
  16. 一种用于通过用户设备中第二应用连接无线接入点的方法,其中,该方法包括:
    接收第一应用向第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备;
    调用所述用户设备的系统无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;
    向所述第一应用返回所述第二无线连接请求对应的连接结果信息。
  17. 根据权利要求16所述的方法,其中,所述方法还包括:
    接收所述第一应用发送的扫描所述用户设备周围无线接入点的扫描请求;
    调用所述用户设备的系统无线连接点扫描接口扫描获得所述用户设备周围的一个或多个无线接入点;
    向所述第一应用返回所述一个或多个无线接入点中至少一个。
  18. 一种用于通过用户设备中第一应用连接无线接入点的第一装置,其中,该第一装置包括:
    第一一模块,用于获取关于目标无线接入点的第一无线连接请求;
    第一二模块,用于通过调用对应的第二应用提供的第一接口向所述第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统,所述第二应用基于所述第二无线连接请求、调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接。
  19. 根据权利要求18所述的第一装置,其中,所述第一装置还包括:
    第一三模块,用于接收所述第二应用基于所述第二无线连接请求的连接结果信息;
    第一四模块,用于当所述连接结果信息包括连接成功,通过所述用户设备与所述目标无线接入点间的无线连接进行通信。
  20. 根据权利要求18所述的第一装置,其中,所述第一装置还包括:
    第一五模块,用于通过调用所述第二应用提供的第二接口向所述第二应用发送扫描所述用户设备周围无线接入点的扫描请求,其中,所述第二接口独立于所述系统;
    第一六模块,用于接收所述第二应用基于所述扫描请求返回的一个或多个无线接入点。
  21. 根据权利要求20所述的第一装置,其中,所述第一一模块用于:
    获取关于目标无线接入点的第一无线连接请求,其中,所述目标无线接入点选自所述一个或多个无线接入点。
  22. 根据权利要求21所述的第一装置,其中,所述第一装置还包括:
    第一七模块,用于通过对应网络设备请求获取所述无线接入点的认证状态信息;
    其中,所述第一一模块用于:
    根据所述认证状态信息,从所述一个或多个无线接入点中选择目标无线接入点;
    获取关于所述目标无线接入点的第一无线连接请求。
  23. 根据权利要求21所述的第一装置,其中,所述第一装置还包括:
    第一八模块,用于在所述第一应用中呈现所述一个或多个无线接入点中至少一个无线接入点;
    其中,所述第一一模块用于:
    根据用户从所述至少一个无线接入点中选中的目标无线接入点,生成关于所述目标无线接入点的第一无线连接请求。
  24. 根据权利要求18至23中任一项所述的第一装置,其中,所述第一装置还包括:
    第一九模块,用于通过调用所述第二应用提供的第三接口从所述第二应用发送执行请求,其中,所述第三接口独立于所述系统。
  25. 根据权利要求24所述的第一装置,其中,所述第三接口包括以下至少任一项:
    用于从所述第二应用中获取界面元素的接口;
    用于从所述第二应用中获取所述用户设备的位置信息的接口;
    用于通过所述第二应用在所述用户设备中执行数据存储的接口;
    用于通过所述第二应用进行数据通信的接口。
  26. 根据权利要求18至25中任一项所述的第一装置,其中,所述第一应用基于脚本语言,并通过调用所述第二应用中脚本引擎被解释执行。
  27. 一种用于通过用户设备中第二应用连接无线接入点的第二装置,其中,该第二装置包括:
    第二一模块,用于接收第一应用通过调用第二应用提供的第一接口向所述第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统;
    第二二模块,用于调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;
    第二三模块,用于向所述第一应用返回所述第二无线连接请求对应的连接结果信息。
  28. 根据权利要求27所述的第二装置,其中,所述第二装置还包括:
    第二四模块,用于接收所述第一应用通过调用所述第二应用提供的第二接口向所述第二应用发送的扫描所述用户设备周围无线接入点的扫描请求,其中,所述第二接口独立于所述系统;
    第二五模块,用于调用所述系统的无线连接点扫描接口扫描获得所述用户设备周围的一个或多个无线接入点;
    第二六模块,用于向所述第一应用返回所述一个或多个无线接入点中至少一个。
  29. 一种用于通过用户设备中第一应用连接无线接入点的第一装置,其中,该第一装置包括:
    第三一模块,用于获取关于目标无线接入点的第一无线连接请求;
    第三二模块,用于向对应的第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备;
    第三三模块,用于接收所述第二应用基于所述第二无线连接请求的连接结果信息。
  30. 根据权利要求29所述的第一装置,其中,所述第一装置还包括:
    第三四模块,用于向所述第二应用发送扫描所述用户设备周围无线接入点的扫描请求;
    第三五模块,用于接收所述第二应用基于所述扫描请求返回的一个或多个无线接入点。
  31. 根据权利要求30所述的第一装置,其中,所述第三一模块用于:
    获取关于目标无线接入点的第一无线连接请求,其中,所述目标无线接入点选自所述一个或多个无线接入点。
  32. 根据权利要求31所述的第一装置,其中,所述第一装置还包括:
    第三六模块,用于在所述第一应用中呈现所述一个或多个无线接入点中至少一个无线接入点;
    其中,所述第三一模块用于:
    根据用户从所述至少一个无线接入点中选中的目标无线接入点,生成关于所述目标无线接入点的第一无线连接请求。
  33. 一种用于通过用户设备中第二应用连接无线接入点的第二装置,其中,该 第二装置包括:
    第四一模块,用于接收第一应用向第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备;
    第四二模块,用于调用所述用户设备的系统无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;
    第四三模块,用于向所述第一应用返回所述第二无线连接请求对应的连接结果信息。
  34. 根据权利要求33所述的第二装置,其中,所述第二装置还包括:
    第四四模块,用于接收所述第一应用发送的扫描所述用户设备周围无线接入点的扫描请求;
    第四五模块,用于调用所述用户设备的系统无线连接点扫描接口扫描获得所述用户设备周围的一个或多个无线接入点;
    第四六模块,用于向所述第一应用返回所述一个或多个无线接入点中至少一个。
  35. 一种用于通过用户设备中第一应用连接无线接入点的第一设备,其中,该第一设备包括:
    处理器;以及
    被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器:
    获取关于目标无线接入点的第一无线连接请求;
    通过调用对应的第二应用提供的第一接口向所述第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统,所述第二应用基于所述第二无线连接请求、调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接。
  36. 一种用于通过用户设备中第二应用连接无线接入点的第二设备,其中,该第二设备包括:
    处理器;以及
    被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所 述处理器:
    接收第一应用通过调用第二应用提供的第一接口向所述第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统;
    调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;
    向所述第一应用返回所述第二无线连接请求对应的连接结果信息。
  37. 一种用于通过用户设备中第一应用连接无线接入点的第一设备,其中,该第一设备包括:
    处理器;以及
    被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器:
    获取关于目标无线接入点的第一无线连接请求;
    向对应的第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备;
    接收所述第二应用基于所述第二无线连接请求的连接结果信息。
  38. 一种用于通过用户设备中第二应用连接无线接入点的第二设备,其中,该第二设备包括:
    处理器;以及
    被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器:
    接收第一应用向第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备;
    调用所述用户设备的系统无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;
    向所述第一应用返回所述第二无线连接请求对应的连接结果信息。
  39. 一种包括指令的计算机可读存储介质,所述指令在被执行时使得系统进行以下操作:
    获取关于目标无线接入点的第一无线连接请求;
    通过调用对应的第二应用提供的第一接口向所述第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统,所述第二应用基于所述第二无线连接请求、调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接。
  40. 一种包括指令的计算机可读存储介质,所述指令在被执行时使得系统进行以下操作:
    接收第一应用通过调用第二应用提供的第一接口向所述第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备,所述第一接口独立于所述用户设备的系统;
    调用所述系统的无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;
    向所述第一应用返回所述第二无线连接请求对应的连接结果信息。
  41. 一种包括指令的计算机可读存储介质,所述指令在被执行时使得系统进行以下操作:
    获取关于目标无线接入点的第一无线连接请求;
    向对应的第二应用发送关于所述目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备;
    接收所述第二应用基于所述第二无线连接请求的连接结果信息。
  42. 一种包括指令的计算机可读存储介质,所述指令在被执行时使得系统进行以下操作:
    接收第一应用向第二应用发送的关于目标无线接入点的第二无线连接请求,其中,所述第二应用与所述第一应用安装于同一用户设备;
    调用所述用户设备的系统无线连接接口建立所述用户设备与所述目标无线接入点的无线连接;
    向所述第一应用返回所述第二无线连接请求对应的连接结果信息。
PCT/CN2017/119292 2016-12-28 2017-12-28 通过用户设备中的应用连接无线接入点的方法与设备 WO2018121652A1 (zh)

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.7 2016-12-28
CN201611238921 2016-12-28
CN201710138460.4 2017-03-09
CN201710138460.4A CN106941709B (zh) 2016-12-28 2017-03-09 通过用户设备中的应用连接无线接入点的方法与设备

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 (zh) 2018-07-05

Family

ID=59469745

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/119292 WO2018121652A1 (zh) 2016-12-28 2017-12-28 通过用户设备中的应用连接无线接入点的方法与设备

Country Status (3)

Country Link
US (1) US11071151B2 (zh)
CN (2) CN109756948B (zh)
WO (1) WO2018121652A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109756948B (zh) 2016-12-28 2021-11-23 上海掌门科技有限公司 通过用户设备中的应用连接无线接入点的方法与设备
CN115002548A (zh) * 2022-05-19 2022-09-02 深圳前海茂佳软件科技有限公司 电视平台应用接口调用方法、装置、终端设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207924A (zh) * 2007-05-14 2008-06-25 开曼群岛威睿电通股份有限公司 高速分组数据终端中处理多用户连接的方法
US20150350910A1 (en) * 2014-05-30 2015-12-03 Ebay Inc. Shared network connection credentials on check-in at a user's home location
CN105611525A (zh) * 2015-12-29 2016-05-25 联想(北京)有限公司 一种信息处理方法及电子设备
CN105873239A (zh) * 2015-12-14 2016-08-17 上海连尚网络科技有限公司 用于为用户设备的应用建立无线连接的方法
CN106941709A (zh) * 2016-12-28 2017-07-11 上海掌门科技有限公司 通过用户设备中的应用连接无线接入点的方法与设备

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5282477B2 (ja) * 2008-08-12 2013-09-04 富士通株式会社 認証方法、プログラム、及び認証装置
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 (ko) * 2013-10-23 2020-03-05 삼성전자주식회사 데이터 전송 방법, 데이터 수신 방법, 및 디바이스
CN104317573B (zh) * 2014-10-03 2017-06-16 李宏伟 安卓安装包转换方法和装置以及运行应用的方法和装置
CN106455004A (zh) * 2015-08-05 2017-02-22 上海连尚网络科技有限公司 一种用于提供无线接入点的方法与设备
CN107071772B (zh) * 2016-07-29 2020-07-07 腾讯科技(深圳)有限公司 无线局域网连接方法及移动终端
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207924A (zh) * 2007-05-14 2008-06-25 开曼群岛威睿电通股份有限公司 高速分组数据终端中处理多用户连接的方法
US20150350910A1 (en) * 2014-05-30 2015-12-03 Ebay Inc. Shared network connection credentials on check-in at a user's home location
CN105873239A (zh) * 2015-12-14 2016-08-17 上海连尚网络科技有限公司 用于为用户设备的应用建立无线连接的方法
CN105611525A (zh) * 2015-12-29 2016-05-25 联想(北京)有限公司 一种信息处理方法及电子设备
CN106941709A (zh) * 2016-12-28 2017-07-11 上海掌门科技有限公司 通过用户设备中的应用连接无线接入点的方法与设备

Also Published As

Publication number Publication date
US20190320473A1 (en) 2019-10-17
CN106941709B (zh) 2019-02-26
US11071151B2 (en) 2021-07-20
CN109756948A (zh) 2019-05-14
CN109756948B (zh) 2021-11-23
CN106941709A (zh) 2017-07-11

Similar Documents

Publication Publication Date Title
CN110032512B (zh) 一种小程序的调试方法、相关设备及终端
US10691439B2 (en) Method and apparatus for facilitating a software update process over a network
CN107168960B (zh) 一种业务执行方法及装置
US9342333B2 (en) Backend custom code extensibility
WO2019178869A1 (zh) 一种eSIM卡的开户方法及终端
WO2019227450A1 (zh) 应用功能的实现方法及电子设备
CN110780930B (zh) 启动Android系统的方法、装置、电子设备及存储介质
US10404568B2 (en) Agent manager for distributed transaction monitoring system
CN106911500B (zh) 物理机的配置方法、装置和物理机
KR20150048196A (ko) 호스트 디바이스의 능력들의 증강
KR102067017B1 (ko) 매쉬업 서비스를 위한 가상 api 제공 장치 및 방법
CN107644075B (zh) 收集页面信息的方法和装置
CN111212183B (zh) 一种用于运行寄宿应用的方法、设备及计算机可读介质
CN104903863A (zh) 用于虚拟环境的控制反转组件服务模型
WO2018090871A1 (zh) 应用业务提示方法及应用业务提示装置
CN110968331A (zh) 应用程序运行的方法和装置
CN104978378B (zh) 一种网页访问方法和装置
WO2018121652A1 (zh) 通过用户设备中的应用连接无线接入点的方法与设备
US10255063B2 (en) Providing source control of custom code for a user without providing source control of host code for the user
KR101955744B1 (ko) 로컬 서버를 통한 로컬 클라이언트 어플리케이션용 이벤트 서비스
CN114222003A (zh) 服务调用方法、系统、装置、设备及存储介质
TW201800993A (zh) 支付方法、系統、支付轉換方法以及支付轉換裝置
WO2021057411A1 (zh) 一种组件加载方法、装置及系统
CN116257320B (zh) 一种基于dpu虚拟化配置管理方法、装置、设备及介质
CN115080109A (zh) 基于混合开发的多云端环境联调方法、装置、系统和设备

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