WO2021218544A1 - 一种提供无线上网的系统、方法及电子设备 - Google Patents

一种提供无线上网的系统、方法及电子设备 Download PDF

Info

Publication number
WO2021218544A1
WO2021218544A1 PCT/CN2021/084335 CN2021084335W WO2021218544A1 WO 2021218544 A1 WO2021218544 A1 WO 2021218544A1 CN 2021084335 W CN2021084335 W CN 2021084335W WO 2021218544 A1 WO2021218544 A1 WO 2021218544A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
interface
network
data
mobile phone
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2021/084335
Other languages
English (en)
French (fr)
Inventor
王同波
丁吉
王利平
丁国治
石恬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to EP21797291.8A priority Critical patent/EP4135470A4/en
Priority to US17/921,514 priority patent/US20230199886A1/en
Publication of WO2021218544A1 publication Critical patent/WO2021218544A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • 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
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections
    • H04W76/16Involving different core network technologies, e.g. a packet-switched [PS] bearer in combination with a circuit-switched [CS] bearer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/04Terminal devices adapted for relaying to or from another terminal or user

Definitions

  • This application relates to the field of communication technology, and in particular to a system, method and electronic device for providing wireless Internet access.
  • Mobile communication network is commonly referred to as cellular mobile network, including but not limited to: Global System of Mobile Communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code) Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time-Division Code Division Multiple Access (TD-SCDMA), etc.
  • WLAN includes wireless fidelity (Wi-Fi) networks and so on.
  • Mobile communication networks cover a wide range and bring convenience to our lives.
  • the popularization of mobile communication networks is mainly concentrated in electronic devices such as handheld mobile terminals, and the charges are relatively high.
  • WLANs generally only have coverage in homes, businesses, and a few public places, and the coverage area is limited, but the user cost is low.
  • the embodiments of the present application provide a system, method, and electronic device for providing wireless Internet access, which can solve the technical problem that electronic devices cannot cooperate to access the Internet in related technologies.
  • an embodiment of the present application provides a system for providing wireless Internet access.
  • the system includes: a first electronic device and a second electronic device;
  • the first electronic device is used for:
  • the second electronic device is used for:
  • Data is sent and received with the network side through the network sharing function of the first electronic device.
  • the embodiment of the first aspect realizes sharing of the Internet access capability of the first electronic device with the second electronic device through convenient operation by the user, so that the second electronic device obtains the networking capability.
  • the first operation includes an operation of selecting the first data, an operation of opening a sharing control, and an operation of selecting the second electronic device as a receiving device.
  • the user’s operation on the sharing control is received, such as a single click.
  • the first electronic device may display a list of receiving devices and receive the user’s The name of the receiving device selected in the receiving device list, for example, the second electronic device.
  • the first electronic device establishes a Wi-Fi direct connection with the second electronic device, and sends the first data to the second electronic device.
  • an operation of the user acting on the sharing control such as a single click, is received, and the first electronic device loads an interface including a list of sharing methods, such as ,
  • the list of sharing methods includes Wi-Fi direct connection (or WLAN direct connection), share, screen projection, Bluetooth, instant chat tool or third-party exchange tool, etc.
  • Wi-Fi direct connection or WLAN direct connection
  • share or screen projection the first electronic device can display the receiving device list, and the receiving user selects it in the receiving device list The receiving device name of, for example, the second electronic device.
  • the first electronic device establishes a Wi-Fi direct connection with the second electronic device, and sends the first data to the second electronic device.
  • the second operation includes an operation of opening a network sharing control.
  • the second operation further includes an operation of inputting a correct password.
  • the first electronic device includes a Wi-Fi module and a routing control module
  • the Wi-Fi module includes a wide area network WAN interface and a local area network LAN interface
  • the local area network LAN interface is a Wi-Fi point-to-point P2P interface, where the first electronic device establishes a Wi-Fi direct connection with the second electronic device through the Wi-Fi P2P interface;
  • the first electronic device accesses a cellular mobile network or a wireless local area network WLAN network through the WAN interface;
  • the second operation is used to enable the routing control function of the routing control module
  • the routing control function includes: if the second data on the network side received from the WAN interface has a destination address of the second electronic device, then forwarding the second data to the Wi-Fi P2P interface, Send to the second electronic device through the Wi-Fi P2P interface; if the third data from the second electronic device received from the Wi-Fi P2P interface has the destination address of the network side, then The third data is forwarded to the WAN interface, and sent to the network side through the WAN interface.
  • the first electronic device is further configured to prompt the user of a network sharing status, and the network sharing status includes: cellular mobile network sharing is turned on or WLAN network sharing is turned on.
  • an embodiment of the present application provides a system for providing wireless Internet access.
  • the system includes: a first electronic device and a second electronic device;
  • the first electronic device is used for:
  • the second electronic device is used for:
  • Data is sent and received with the network side through the network sharing function of the first electronic device.
  • the third operation includes an operation of opening a network sharing control, or a touch operation of the NFC area of the first electronic device and the second electronic device.
  • the third operation further includes an operation of inputting a correct password.
  • the first electronic device includes a Wi-Fi module and a routing control module
  • the Wi-Fi module includes a wide area network WAN interface and a local area network LAN interface
  • the local area network LAN interface is a Wi-Fi point-to-point P2P interface, where the first electronic device establishes a Wi-Fi direct connection with the second electronic device through the Wi-Fi P2P interface;
  • the first electronic device accesses a cellular mobile network or a wireless local area network WLAN network through the WAN interface;
  • the third operation is used to enable the Wi-Fi P2P interface, establish a Wi-Fi direct connection with the second electronic device through the Wi-Fi P2P interface, and enable the routing control function of the routing control module;
  • the routing control function includes: if the second data on the network side received from the WAN interface has a destination address of the second electronic device, then forwarding the second data to the Wi-Fi P2P interface, Send to the second electronic device through the Wi-Fi P2P interface; if the third data from the second electronic device received from the Wi-Fi P2P interface has the destination address of the network side, then The third data is forwarded to the WAN interface, and sent to the network side through the WAN interface.
  • the first electronic device includes a Wi-Fi module and a routing control module
  • the Wi-Fi module includes a wide area network WAN interface and a local area network LAN interface
  • the local area network LAN interface includes Wi-Fi point-to-point P2P interface and soft access point AP interface
  • the first electronic device accesses a cellular mobile network or a wireless local area network WLAN network through the WAN interface, and the third operation is used to turn on the Wi-Fi P2P interface or the softAP interface, through the Wi-Fi P2P
  • the interface establishes a Wi-Fi direct connection with the second electronic device, or establishes a wireless hotspot connection with the second electronic device through the softAP interface, and enables the routing control function of the routing control module;
  • the routing control function includes: if the second data on the cellular mobile network side received from the WAN interface and the destination address is the second electronic device, then forwarding the second data to the Wi-Fi P2P Interface or the softAP interface is sent to the second electronic device through the Wi-Fi P2P interface or the softAP interface; if the Wi-Fi P2P interface or the softAP interface is received from the second electronic device 2. If the destination address of the third data of the electronic device is the network side, the third data is forwarded to the WAN interface and sent to the network side through the WAN interface;
  • the first electronic device accesses the cellular mobile network through the WAN interface
  • the first electronic device activates the soft AP interface in response to the monitored network sharing event, and then through the soft AP interface Establish a wireless hotspot connection with the second electronic device; if the first electronic device accesses the WLAN network through the WAN interface, the first electronic device starts all the devices in response to the monitored network sharing event.
  • the Wi-Fi P2P interface establishes a Wi-Fi direct connection with the second electronic device through the Wi-Fi P2P interface; or,
  • the first electronic device accesses the cellular mobile network through the WAN interface, the first electronic device activates the Wi-Fi P2P interface in response to the monitored network sharing event and activates the Wi-Fi P2P interface through the Wi-Fi interface.
  • the Fi P2P interface establishes a Wi-Fi direct connection with the second electronic device; if the first electronic device accesses the WLAN network through the WAN interface, the first electronic device responds to the monitored activation In a network sharing event, the soft AP interface is activated, and a wireless hotspot connection is established with the second electronic device through the soft AP interface.
  • the first electronic device is further configured to prompt the user of a network sharing status, and the network sharing status includes: cellular mobile network sharing is turned on or WLAN network sharing is turned on.
  • an embodiment of the present application provides a method for providing wireless Internet access, including:
  • the first electronic device receives the user's first operation, and in response to the first operation, establishes a Wi-Fi direct connection with the second electronic device; the first operation is used to transfer the first data in the first electronic device Share or screen to the second electronic device;
  • the second electronic device receives the first data from the first electronic device
  • the first electronic device receives a second operation of the user, and in response to the second operation, turns on the network sharing function; the second operation is used to turn on the network sharing function of the first electronic device;
  • the second electronic device transmits and receives data with the network side through the network sharing function of the first electronic device.
  • the first operation includes an operation of selecting the first data, an operation of opening a sharing control, and an operation of selecting the second electronic device as a receiving device.
  • the second operation includes an operation of opening a network sharing control.
  • the first electronic device includes a Wi-Fi module
  • the Wi-Fi module includes a wide area network WAN interface and a local area network LAN interface
  • the local area network LAN interface is a Wi-Fi point-to-point P2P interface
  • the first electronic device accesses a cellular mobile network or a wireless local area network WLAN network through the WAN interface;
  • the first electronic device receiving the user's first operation, and in response to the first operation, establishing a Wi-Fi direct connection with the second electronic device includes:
  • the first electronic device receives the first operation of the user, and in response to the first operation, establishes a Wi-Fi direct connection with the second electronic device through the Wi-Fi P2P interface;
  • the sending and receiving of data between the second electronic device and the network side through the network sharing function of the first electronic device includes:
  • the second data on the network side received from the WAN interface has the destination address of the second electronic device, the second data is forwarded to the Wi-Fi P2P interface through the Wi-Fi P2P Interface to the second electronic device; if the third data from the second electronic device received from the Wi-Fi P2P interface is the network side, then the third data is forwarded to the The WAN interface is sent to the network side through the WAN interface.
  • an embodiment of the present application provides a method for providing wireless Internet access, including:
  • the first electronic device accesses a cellular mobile network or a wireless local area network WLAN network;
  • the first electronic device receives a third operation of the user, and in response to the third operation, establishes a wireless connection with the second electronic device, and turns on a network sharing function;
  • the second electronic device transmits and receives data with the network side through the network sharing function of the first electronic device.
  • the third operation includes an operation of opening a network sharing control, or a touch operation of the NFC area of the first electronic device and the second electronic device.
  • the third operation further includes an operation of inputting a correct password.
  • the establishing a wireless connection with the second electronic device in response to the third operation includes:
  • the first electronic device If the first electronic device is connected to the cellular mobile network, the first electronic device will establish a wireless hotspot connection with the second electronic device in response to the third operation; if the first electronic device is connected Into the WLAN network, the first electronic device establishes a Wi-Fi direct connection with the second electronic device in response to the third operation; or,
  • the first electronic device accesses the cellular mobile network, the first electronic device establishes a Wi-Fi direct connection with the second electronic device in response to the third operation; if the first electronic device When the device accesses the WLAN network, the first electronic device establishes a wireless hotspot connection with the second electronic device in response to the third operation.
  • an embodiment of the present application provides a method for providing wireless Internet access, including:
  • the first electronic device receives the user's first operation, and in response to the first operation, establishes a Wi-Fi direct connection with the second electronic device; the first operation is used to transfer the first data in the first electronic device Share or screen to the second electronic device;
  • the first electronic device receives a second operation of the user, and in response to the second operation, turns on the network sharing function; the second operation is used to turn on the network sharing function of the first electronic device, and the first electronic device
  • the network sharing function of the device is used to implement data transmission and reception between the second electronic device and the network side.
  • the first operation includes an operation of selecting the first data, an operation of opening a sharing control, and an operation of selecting the second electronic device as a receiving device.
  • the second operation includes an operation of opening a network sharing control.
  • the second operation further includes an operation of inputting a correct password.
  • an embodiment of the present application provides a method for providing wireless Internet access, including:
  • the first electronic device accesses a cellular mobile network or a wireless local area network WLAN network;
  • the first electronic device receives the third operation of the user, and in response to the third operation, establishes a wireless connection with the second electronic device and turns on the network sharing function.
  • the network sharing function of the first electronic device is used to implement all The data transceiving between the second electronic device and the network side is described.
  • the third operation includes an operation of opening a network sharing control, or a touch operation of the NFC area of the first electronic device and the second electronic device.
  • the third operation further includes an operation of inputting a correct password.
  • an embodiment of the present application provides a first electronic device that provides wireless Internet access.
  • the first electronic device receives a user's first operation, and in response to the first operation, establishes Wi-Fi with a second electronic device. Fi direct connection; the first operation is used to share or project the first data in the first electronic device to the second electronic device;
  • the first electronic device receives a second operation of the user, and in response to the second operation, turns on the network sharing function; the second operation is used to turn on the network sharing function of the first electronic device, and the first electronic device
  • the network sharing function of the device is used to implement data transmission and reception between the second electronic device and the network side.
  • an embodiment of the present application provides a first electronic device that provides wireless Internet access.
  • the first electronic device accesses a cellular mobile network or a wireless local area network WLAN network, and the first electronic device receives a user's third operation In response to the third operation, establish a wireless connection with the second electronic device, and turn on the network sharing function.
  • the network sharing function of the first electronic device is used to implement data transmission and reception between the second electronic device and the network side.
  • an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and running on the processor.
  • the processor executes the computer program, , Enabling the electronic device to implement the method described in any one of the possible implementation manners of the fifth aspect and the fifth aspect, or implement the method described in any one of the possible implementation manners of the sixth aspect and the sixth aspect.
  • an embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the possibilities of the fifth and fifth aspects are achieved.
  • the method described in any one of the implementation manners, or the method described in any one of the sixth aspect and the possible implementation manners of the sixth aspect is implemented.
  • the embodiments of the present application provide a computer program product, which when the computer program product runs on an electronic device, causes the electronic device to execute any one of the foregoing fifth aspect and the possible implementation manners of the fifth aspect. Method, or execute the method described in any one of the foregoing sixth aspect and possible implementation manners of the sixth aspect.
  • FIG. 1A is an application scenario in which an electronic device realizes networking according to an embodiment of the present application
  • FIG. 1B is an application scenario in which an electronic device cannot achieve networking according to an embodiment of the present application
  • FIG. 2A is a schematic structural diagram of an electronic device to which the method for providing Internet access provided by an embodiment of the present application is applicable;
  • 2B is a software structural block diagram of an electronic device to which a method for providing Internet access provided by an embodiment of the present application is applicable;
  • FIG. 3A is an application scenario of a method for providing Internet access provided by an embodiment of the present application
  • 3B is a schematic diagram of a scenario in which a mobile phone and a PC establish a wireless connection in a method for providing Internet access according to an embodiment of the present application;
  • 3C is a schematic diagram of the implementation principle of a method for providing Internet access according to an embodiment of the present application.
  • FIG. 3D is a schematic diagram of a user interface presented by an electronic device for providing Internet access according to an embodiment of the present application
  • 3E is a schematic diagram of a user interface presented by an electronic device for providing Internet access according to another embodiment of the present application.
  • 3F is a schematic flowchart of a method for providing Internet access according to an embodiment of the present application.
  • FIG. 4A is another application scenario of a method for providing Internet access provided by an embodiment of the present application.
  • 4B is a schematic diagram of an implementation principle of a method for providing Internet access according to an embodiment of the present application.
  • 4C is a schematic diagram of another implementation principle of a method for providing Internet access according to an embodiment of the present application.
  • 4D is a schematic flowchart of a method for providing Internet access according to an embodiment of the present application.
  • FIG. 5A is another application scenario of a method for providing Internet access provided by an embodiment of the present application.
  • FIG. 5B is a schematic diagram of the implementation principle of a method for providing Internet access according to an embodiment of the present application.
  • FIG. 5C is a schematic flowchart of a method for providing Internet access according to an embodiment of the present application.
  • the term “if” can be construed as “when” or “once” or “in response to determination” or “in response to detecting ".
  • a first terminal 11 including a Wi-Fi module accesses the network through a cellular mobile network.
  • the first terminal 11 is also connected to other devices 12 including Wi-Fi modules through the Wi-Fi direct connection function.
  • the first terminal is for example a mobile phone, and other devices are for example a personal computer (PC) or a TV.
  • Wi-Fi Direct also known as Wi-Fi Peer to Peer (P2P) connection.
  • Wi-Fi Direct refers to allowing devices in a wireless network to connect to each other without going through a wireless router. Multiple devices that implement Wi-Fi Direct can transmit content to each other.
  • Wi-Fi Direct technology allows multiple Wi-Fi terminals to establish a wireless connection at the same time. For example, a Wi-Fi terminal can establish a wireless connection with another Wi-Fi terminal, that is, a team can be formed through a one-to-one topology.
  • a Wi-Fi terminal can establish a wireless connection with multiple other Wi-Fi terminals at the same time, that is, a group is established through a one-to-many topology to establish a wireless connection.
  • a Wi-Fi P2P connection is established between the first Wi-Fi terminal and the second Wi-Fi terminal, according to the Wi-Fi Direct technical specifications, a group owner (GO) and a group client ( Group Client, GC).
  • GO group owner
  • GC Group Client
  • roles need to be negotiated in the process of establishing a Wi-Fi Direct connection.
  • two Wi-Fi terminals establish a Wi-Fi Direct connection, one terminal’s role is GO and the other terminal’s role is GC.
  • the first terminal can access the cellular mobile network through the cellular base station.
  • the first terminal may access the cellular mobile network through an access point (Access Point, AP) that is connected to the base station and provides hotspot services.
  • AP Access Point
  • the Wi-Fi direct connection between the first terminal 11 and the other devices 12 can be used for point-to-point file transfer, and can also be used for mirroring screen projection.
  • other devices need to be connected to the Internet, they need to be implemented through other networking methods, for example, by connecting to the Wi-Fi AP 13 to access the Internet (Internet).
  • This application proposes a method for providing wireless Internet access.
  • the method is applied to an electronic device including a Wi-Fi module.
  • the method utilizes the Internet access capability of the electronic device, and at the same time, uses the Wi-Fi established between the electronic device and the opposite device.
  • the P2P wireless communication method shares the networking capability of the electronic device itself with the peer device, so that the peer device can obtain the networking capability while performing peer-to-peer communication.
  • the method for providing wireless Internet access proposed in the embodiments of this application can be applied to mobile phones, wearable devices, in-vehicle devices, augmented reality (AR)/virtual reality (VR) devices, notebook computers, and ultra-mobile personal computers ( ultra-mobile personal computer (UMPC), netbooks, personal digital assistants (personal digital assistants, PDAs), smart speakers, TV set top boxes (STB), televisions or smart screens, etc.
  • the embodiments of this application have implications for electronic devices There are no restrictions on specific types.
  • FIG. 2A shows a schematic diagram of the structure of the electronic device 100.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2.
  • Mobile communication module 150 wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM Subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light Sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer components than those shown in the figure, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU), etc.
  • AP application processor
  • modem processor modem processor
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the different processing units may be independent devices or integrated in one or more processors.
  • the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching instructions and executing instructions.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter/receiver (universal asynchronous) interface.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter/receiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB Universal Serial Bus
  • the I2C interface is a bidirectional synchronous serial bus, which includes a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may include multiple sets of I2C buses.
  • the processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc., respectively through different I2C bus interfaces.
  • the processor 110 may couple the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to implement the touch function of the electronic device 100.
  • the I2S interface can be used for audio communication.
  • the processor 110 may include multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communication to sample, quantize and encode analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • the UART interface is generally used to connect the processor 110 and the wireless communication module 160.
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with the display screen 194, the camera 193 and other peripheral devices.
  • MIPI interfaces include camera serial interface (cameraserial interface, CSI), display serial interface (display serial interface, DSI) and so on.
  • the processor 110 and the camera 193 communicate through a CSI interface to implement the shooting function of the electronic device 100.
  • the processor 110 and the display screen 194 communicate through a DSI interface to realize the display function of the electronic device 100.
  • the GPIO interface can be configured through software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and so on.
  • the GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a MiniUSB interface, a MicroUSB interface, a USBTypeC interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect earphones and play audio through earphones. This interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiment of the present application is merely a schematic description, and does not constitute a structural limitation of the electronic device 100.
  • the electronic device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
  • the charging management module 140 may receive the wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110.
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100.
  • the mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like.
  • the mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 100 including WLAN (such as Wi-Fi), Bluetooth (bluetooth, BT), global navigation satellite system (GNSS), frequency modulation (FM), Wireless communication solutions such as near field communication (NFC) and infrared technology (infrared, IR).
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 may also receive a signal to be sent from the processor 110, perform frequency modulation, amplify, and convert it into electromagnetic waves to radiate through the antenna 2.
  • the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include Global System of Mobile Communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), and Broadband Code Division Multiple access (Wideband Code Division Multiple Access, WCDMA), time-division code division multiple access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM , And/or IR technology, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is an image processing microprocessor, which is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations and is used for graphics rendering.
  • the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, and the like.
  • the display screen 194 includes a display panel.
  • the display panel can use liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • AMOLED flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
  • the electronic device 100 may include one or N display screens 194, and N is an integer greater than one.
  • the electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
  • the ISP is used to process the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transfers the electrical signal to the ISP for processing and transforms it into an image visible to the naked eye.
  • ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193.
  • the camera 193 is used to capture still images or videos.
  • the object generates an optical image through the lens and is projected to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transfers the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the electronic device 100 may include one or M cameras 193, and M is an integer greater than one.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects the frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
  • MPEG moving picture experts group
  • MPEG2 MPEG2, MPEG3, MPEG4, and so on.
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • applications such as intelligent cognition of the electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, and so on.
  • the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
  • the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required by at least one function, and the like.
  • the data storage area can store data (such as audio data, phone book, etc.) created during the use of the electronic device 100.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
  • the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
  • the audio module 170 can also be used to encode and decode audio signals.
  • the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
  • the speaker 170A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 answers a call or voice message, it can receive the voice by bringing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through the human mouth, and input the sound signal into the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which can not only collect sound signals, but also achieve a noise reduction function. In other embodiments, the electronic device 100 may also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
  • the earphone interface 170D is used to connect wired earphones.
  • the earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, and a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA, CTIA
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A may be provided on the display screen 194.
  • the capacitive pressure sensor may include at least two parallel plates with conductive materials.
  • the electronic device 100 determines the intensity of the pressure according to the change in capacitance.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations that act on the same touch position but have different touch operation strengths may correspond to different operation instructions. For example: when a touch operation whose intensity of the touch operation is less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the movement posture of the electronic device 100.
  • the angular velocity of the electronic device 100 around three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip holster.
  • the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and apply to applications such as horizontal and vertical screen switching, pedometers, and so on.
  • the electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F to measure the distance to achieve fast focusing.
  • the proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector such as a photodiode.
  • the light emitting diode may be an infrared light emitting diode.
  • the electronic device 100 emits infrared light to the outside through the light emitting diode.
  • the electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100.
  • the electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
  • the ambient light sensor 180L is used to sense the brightness of the ambient light.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, and so on.
  • the temperature sensor 180J is used to detect temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature.
  • the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch device”.
  • the touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
  • the touch sensor 180K is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • the visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 194.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can obtain the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the human pulse and receive the blood pressure pulse signal.
  • the bone conduction sensor 180M may also be provided in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 180M, and realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beating signal obtained by the bone conduction sensor 180M, and realize the heart rate detection function.
  • the button 190 includes a power-on button, a volume button, and so on.
  • the button 190 may be a mechanical button. It can also be a touch button.
  • the electronic device 100 may receive key input, and generate key signal input related to user settings and function control of the electronic device 100.
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback.
  • touch operations applied to different applications can correspond to different vibration feedback effects.
  • Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminding, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
  • the SIM card interface 195 is used to connect to the SIM card.
  • the SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100.
  • the electronic device 100 may support one or N SIM card interfaces, and N is an integer greater than one.
  • the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
  • the same SIM card interface 195 can insert multiple cards at the same time. The types of the multiple cards can be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 may also be compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication.
  • the electronic device 100 adopts an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiment of the present application takes an Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 by way of example.
  • FIG. 2B is a block diagram of the software structure of the electronic device 100 according to an embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface.
  • the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android Runtime and system libraries, and the kernel layer.
  • the application layer can include a series of application packages.
  • the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and so on.
  • the window manager is used to manage window programs.
  • the window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, take a screenshot, etc.
  • the content provider is used to store and retrieve data and make these data accessible to applications.
  • the data may include videos, images, audios, phone calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, and so on.
  • the view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
  • the phone manager is used to provide the communication function of the electronic device 100. For example, the management of the call status (including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify download completion, message reminders, and so on.
  • the notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or a scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, text messages are prompted in the status bar, prompt sounds, electronic devices vibrate, and indicator lights flash.
  • Android Runtime includes core libraries and virtual machines. Android Runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function functions that the java language needs to call, and the other part is the core library of Android.
  • the application layer and application framework layer run in a virtual machine.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), three-dimensional graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing.
  • the 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • 3A to 3F are schematic diagrams of the first application scenario of the wireless Internet access method proposed in this embodiment of the application.
  • the first application scenario is that the mobile phone 301 connects to a cellular mobile network, and the mobile phone 301 establishes a Wi-Fi Direct point-to-point communication connection with the PC302.
  • the mobile phone 301 shares the cellular network with the PC302 through the Wi-Fi Direct wireless connection path established with the PC302, so that the PC302 has the ability to surf the Internet.
  • the mobile phone 301 and the PC302 establish a Wi-Fi Direct wireless connection path
  • the role of the mobile phone 301 is GO
  • the role of the PC302 is GC.
  • the mobile phone 301 and the PC 302 can discover peripheral devices through Bluetooth.
  • the mobile phone 301 receives the operation of the user to select files such as pictures, videos, or audios, and receives the operation of the user to click on the controls such as "Share” or the controls such as "Screencasting". It can display a list of nearby receiving devices, and the receiving user clicks on the target in the receiving device list.
  • the operation of the device (such as PC302) can complete the Wi-Fi direct connection between the mobile phone 301 and the PC302, and can also complete the operation of transferring files or projecting to the target device (such as PC302).
  • Wi-Fi direct connection between 301 and PC302.
  • FIG. 3B a schematic diagram of a scenario in which a mobile phone 301 and a PC 302 establish a wireless connection and transfer files.
  • a prompt box 320 can be displayed.
  • the prompt box 320 includes a receiving button 321 and a reject button 322.
  • the receiving button 321 can be used to trigger the PC 302 to receive the picture 310 sent by the mobile phone 301.
  • the reject button 322 can be used to trigger the PC 302 to reject the picture 310 sent by the mobile phone 301.
  • the PC 302 can receive an operation (for example, a click) of the receiving button 321 by the user, and in response to the operation, the PC 302 can send a receiving response to the mobile phone 301.
  • the mobile phone 301 can send the picture through communication technologies such as Wi-Fi Direct (Wi-Fi P2P), Wi-Fi wireless soft (soft) AP, or ultra-wideband (UWB) 310 to PC302.
  • Wi-Fi P2P Wi-Fi Direct
  • Wi-Fi wireless soft soft
  • UWB ultra-wideband
  • the progress displayed on the progress bar 320 on the mobile phone 301 will change with the transmission process. For example, the progress displayed on the progress bar 320 when the mobile phone 301 has not yet started to transmit the picture 311 is " 0%", the progress displayed on the progress bar 320 when the transmission is completed is "100%".
  • the mobile phone 301 establishes a Wi-Fi direct connection with the PC 302 in response to the monitored sharing event or screen projection event.
  • the sharing event refers to the event of transferring a file to other devices
  • the screen projection event refers to the event of transferring the file to other devices.
  • Sharing events or screen-casting events are usually triggered by a user performing a preset operation. In the foregoing embodiments, only the operation of triggering a sharing event or a screen-casting event is exemplarily described. In the embodiment of the present application, the operation that triggers the sharing event or the screen projection event may include one operation or a series of operations, including but not limited to: touch screen operation, cursor control operation, voice control operation, gesture control operation, etc.
  • Cursor control operations include one or more of the keyboard, mouse, remote control stick, trackball, joystick, touch panel, etc. to perform cursor control operations.
  • the method of triggering the sharing event or the screen casting event is not limited.
  • the user turns on the Wi-Fi direct connection or wireless projection function in the status bar of the mobile phone 301 and PC302 or the system settings, for example, clicking the Wi-Fi direct connection or wireless projection control is In the on state, at this time, the mobile phone 301 and PC302 will automatically turn on the Bluetooth function and Wi-Fi function, and the mobile phone 301 and PC302 can discover peripheral devices through Bluetooth.
  • the mobile phone 301 can display a list of nearby receiving devices, and receive the user's operation of clicking the target device (such as PC302) in the receiving device list to complete the Wi-Fi direct connection between the mobile phone 301 and the PC302.
  • the PC302 turns on the NFC function and Wi-Fi function
  • the mobile phone 301 turns on the NFC function and Wi-Fi function
  • the user touches the mobile phone 301 to the PC302 for example, touches the NFC area of the mobile phone 301 to the NFC of the PC302 area.
  • the mobile phone 301 or PC302 automatically pops up the connection prompt interface.
  • the Wi-Fi direct connection between the mobile phone 301 and the PC302 is completed.
  • One-touch interconnection simplifies user operations and greatly improves interconnection efficiency.
  • the mobile phone 301 and/or the PC 302 may not pop up the connection prompt interface, but may pop up the password input interface.
  • the user enters the correct password in the password input interface to complete the Wi-Fi direct connection between the mobile phone 301 and the PC 302.
  • the communication security is improved by setting a password.
  • the mobile phone 301 establishes a Wi-Fi direct connection with the PC 302 in response to the monitored Wi-Fi direct connection event.
  • the Wi-Fi direct connection event refers to an event in which the device establishes a Wi-Fi direct connection with other devices.
  • Wi-Fi direct connection events are usually triggered by a user performing a preset operation. In the above embodiment, only the operation of triggering the Wi-Fi direct connection event is exemplarily described. In the embodiment of the present application, the operation of triggering the Wi-Fi direct connection event may include one operation or a series of operations, including but not limited to : One or a combination of touch screen operation, cursor control operation, voice control operation, gesture control operation, etc. In the embodiment of the present application, the manner of triggering the Wi-Fi direct connection event is not limited.
  • the network interface of the Wi-Fi module in the mobile phone includes a wide area network (WAN) interface and a local area network (LAN) interface.
  • the WAN interface is used to connect to a cellular mobile network, or WLAN.
  • the LAN interface is used to connect to an internal network, or a device called a local area network.
  • the WAN interface of the Wi-Fi module in the mobile phone is connected to the cellular mobile network;
  • the LAN interface is a Wi-Fi P2P interface, that is, the P2P (GO) interface in Figure 3C.
  • the routing control module directs the data packet received from the WAN interface according to the destination address of the data packet and forwards it to the LAN interface, or receives it from the LAN interface
  • the data packet is directed according to the destination address of the data packet and forwarded to the WAN interface, so that the PC302 can access the network through the mobile phone.
  • the mobile phone 301 and the PC 302 have established a Wi-Fi Direct wireless connection path, they have not performed Wi-Fi Direct service data transmission.
  • the mobile phone 301 and the PC 302 have established a Wi-Fi Direct wireless connection path, the user has not shared or screened the data on the mobile phone 301 to the PC 302 through the Wi-Fi Direct wireless connection path.
  • the PC302 accesses the network through the mobile phone 301 and can interact with the Internet for data.
  • the routing control module of the mobile phone will direct the data packet received from the Internet on the WAN interface according to the destination address of the data packet. If the destination address of the data packet is PC302, the data packet will be The packet is forwarded to the P2P (GO) interface, and then the data packet is transmitted to the PC302 through the Wi-Fi Direct channel; if the destination address of the data packet is the mobile phone 301, the mobile phone 301 will process the data packet after receiving the data packet through the WAN interface . On the other hand, the data packets received from the PC302 from the P2P (GO) interface and whose destination address is the Internet are directed according to the destination address of the data packet and forwarded to the WAN interface.
  • the gateway address of the mobile phone 301 at the P2P (GO) interface is 192.168.43.1, and the address of the mobile phone 301 is 192.168.1.100.
  • the data packet from the Internet received from the WAN interface if the destination address of the data packet is 192.168.43.x, the data packet is forwarded to the P2P (GO) interface, and then the data packet is transmitted to the P2P (GO) interface through the Wi-Fi Direct channel PC302: If the destination address of the data packet is 192.168.1.100, the mobile phone 301 processes the data packet after receiving the data packet from the WAN interface.
  • the mobile phone 301 and the PC302 establish a Wi-Fi Direct wireless connection path, and perform Wi-Fi Direct service data transmission, for example, through Wi-Fi Direct file transmission, or based on Wi-Fi Direct establishment Wi-Fi display (Wi-Fi Display), which transmits the projection data.
  • the PC42 is connected to the network through the mobile phone 301 and can interact with the Internet for data.
  • the routing control module of the mobile phone will direct the data packet received from the Internet on the WAN interface according to the destination address of the data packet. If the destination address of the data packet is PC302, the data packet will be The packet is forwarded to the P2P (GO) interface, and then the data packet is transmitted to the PC302 through the Wi-Fi Direct channel; if the destination address of the data packet is the mobile phone 301, the mobile phone 301 will process the data packet after receiving the data packet through the WAN interface . On the other hand, the data packets received from the PC302 from the P2P (GO) interface and whose destination address is the Internet are directed according to the destination address of the data packet and forwarded to the WAN interface.
  • the Wi-Fi Direct service data is sent from the P2P (GO) interface to the PC430, and the PC302 receives and processes the Wi-Fi Direct service data; the Wi-Fi Direct service data is sent from the PC302 to the P2P (GO) interface, The mobile phone 301 receives and processes Wi-Fi Direct service data.
  • the data packets from the Internet that arrive at the PC 302 and the Wi-Fi Direct service data from the mobile phone 301 are processed by different applications depending on the destination port.
  • the data packets from the Internet arriving at the mobile phone 301 and the Wi-Fi Direct service data from the PC 302 are processed by different applications depending on the destination port.
  • Wi-Fi Direct channel between the mobile phone 301 and PC302 needs to transmit networked data and Wi-Fi Direct service data
  • time division multiplexing, frequency division multiplexing, or code division multiplexing can be used.
  • frequency division multiplexing can be used as multiplexing technologies
  • the routing control module is realized by software. Therefore, only the software of the existing hardware equipment needs to be upgraded, and the hardware equipment does not need to be replaced, which reduces the cost of networking.
  • the user can enable or disable the network sharing function of the mobile phone to realize the setting of whether the mobile phone network is shared or not.
  • FIG. 3D it is a user setting interface of a mobile phone.
  • the user can activate or deactivate the network sharing by triggering the selection control 303 (for example, clicking, etc.).
  • the interfaces and controls here are exemplary descriptions and cannot be construed as specific limitations on the application.
  • the user can set the network name, encryption type, password, etc. of the P2P (GO) interface.
  • P2P P2P
  • FIG. 3E it is a user setting interface of a mobile phone.
  • the user can trigger the first control 304 to modify the network name; trigger the second control 305 to select the encryption type; trigger the third control 306 to modify the encryption password.
  • the interfaces and controls here are exemplary descriptions and cannot be construed as specific limitations on the application. If the user sets an encryption password for the network sharing, based on the example shown in FIG. 3D, after the user triggers the selection control 303, and enters the correct password in the password input interface, the network sharing can be enabled.
  • the mobile phone 301 can actively push a notification message to the PC302, and the notification message includes whether the PC302 agrees or accepts Internet access via the mobile phone 301 After receiving the confirmation from the PC302, the mobile phone 301 turns on the network sharing function.
  • the mobile phone 301 and the PC302 have the same user account, and a Wi-Fi direct connection is established between the mobile phone 301 and the PC302, the mobile phone 301 can actively pop up an inquiry notification, and the inquiry notification includes whether the user is Agree or accept that the mobile phone 301 opens the network sharing function, etc. After the user confirms in the mobile phone 301, the mobile phone 301 opens the network sharing function.
  • the mobile phone 301 activates the network sharing function of the mobile phone in response to the monitored network sharing event.
  • Enabling the network sharing event refers to the event that allows the mobile phone to share the networking capability with other devices, such as the PC302, which is usually triggered by the user performing a preset operation.
  • the operation of triggering the opening of the network sharing event may include one operation or a series of operations, including but not limited to: touch screen operation, One or a combination of cursor control operations, voice control operations, gesture control operations, etc.
  • the method of triggering the network sharing event is not limited.
  • the method for providing wireless Internet access includes the following steps:
  • S310 two electronic devices including Wi-Fi modules, the first electronic device and the second electronic device, establish a point-to-point communication connection through Wi-Fi direct connection.
  • S320 The first electronic device connects to the Internet through the cellular mobile network.
  • two electronic devices including Wi-Fi modules include a mobile phone and a PC. In other examples, it can also be other electronic devices.
  • one electronic device is a PAD that can be connected to a cellular mobile network, and the other electronic device is a PC, a TV, or a smart screen.
  • the first electronic device sends the networking data of the cellular mobile network to the second electronic device through the point-to-point path established by the Wi-Fi direct connection; the second electronic device sends the networking data to the second electronic device through the point-to-point path established by the Wi-Fi direct connection.
  • An electronic device is transmitted to the Internet from the first electronic device.
  • steps S310 and S320 cannot be interpreted as a limitation on the time sequence of the two steps. In the embodiment of the present application, the time sequence of the two steps is not limited. Step S310 can be executed before step S320, and step S310 is also It can be executed after step S320, and step S310 can also be executed simultaneously with step S320.
  • multiple second electronic devices may be provided, and multiple second electronic devices may be connected to the Internet through a mobile phone.
  • the first electronic device accesses the cellular mobile network, and the first electronic device shares the accessed cellular mobile network with the second electronic device through the established Wi-Fi point-to-point communication connection with the second electronic device.
  • the electronic device enables the second electronic device to have the ability to access the Internet.
  • Figures 4A to 4D show schematic diagrams of a second application scenario for providing a wireless Internet access method proposed in an embodiment of this application.
  • the mobile phone 401 can be connected to a cellular mobile network and a WLAN network to achieve networking.
  • the mobile phone 401 When the mobile phone is connected to one of the cellular mobile network and the WLAN network, and the peer device needs to obtain the Internet access capability of the mobile phone, that is, to obtain the shared network of the mobile phone, in the embodiment of the present application, the mobile phone 401 responds to the monitored network sharing In the event, a Wi-Fi Direct point-to-point communication connection can be established with the peer device 402, that is, a Wi-Fi P2P wireless connection path can be established.
  • the opposite device 402 is a PC.
  • the method for triggering the network sharing function on the mobile phone 401 may refer to the method of the first application scenario, and the embodiment of the present application does not specifically limit the method for triggering the network sharing event. It should also be understood that in the embodiment shown in FIG.
  • the mobile phone 401 when the mobile phone 401 turns on the network sharing function, it is no longer necessary for the user to trigger the Wi-Fi direct connection event on the mobile phone 401, and the mobile phone 401 can establish Wi-Fi Direct with the PC.
  • the point-to-point communication connection of the mobile phone 401 shares the Internet access capability of the mobile phone 401 to the PC 402.
  • the user may not need to trigger the Wi-Fi direct connection control on the mobile phone 401, the mobile phone 401 can automatically enable the Wi-Fi direct connection function, and the Wi-Fi direct connection control state is in the on state.
  • One-click network sharing greatly simplifies user operations, improves operation efficiency, and improves user experience.
  • the mobile phone 401 and the PC402 establish a Wi-Fi P2P wireless connection path
  • the role of the mobile phone 401 is GO
  • the role of the PC402 is GC.
  • the mobile phone 401 and the PC 402 can perform Wi-Fi Direct service data transmission through Wi-Fi P2P wireless connection channels, for example, through Wi-Fi Direct file transmission, or Wi-Fi Direct establishment of Wi-Fi screen projection ( Wi-Fi Display), to transmit the projection data.
  • Wi-Fi Direct service data transmission through Wi-Fi P2P wireless connection channels, for example, through Wi-Fi Direct file transmission, or Wi-Fi Direct establishment of Wi-Fi screen projection ( Wi-Fi Display), to transmit the projection data.
  • the mobile phone 401 responds to the monitored activation Sharing events can start a wireless soft AP (Soft AP) to establish a wireless connection path with the PC402, and the PC402 obtains the Internet access capability through the hotspot function of the mobile phone 401.
  • Soft AP Soft AP
  • the method for triggering the network sharing function on the mobile phone 401 may refer to the method of the first application scenario, and the embodiment of the present application does not specifically limit the method for triggering the network sharing event. It should also be understood that in the embodiment shown in FIG.
  • the hotspot opening event refers to an event that turns on a hotspot function, that is, an event that starts a Soft AP and establishes a wireless hotspot connection path.
  • Soft AP provides the same signal transfer and routing functions as Wi-Fi AP through the driver.
  • Wi-Fi Direct technology and Soft AP technology allow multiple Wi-Fi terminals to establish wireless connections at the same time
  • multiple peer devices can be set, and multiple peer devices can pass through The mobile phone is connected to the Internet.
  • the mobile phone 401 accesses the WLAN network through a wireless AP.
  • the device with its own networking capability may not be a mobile phone, but other electronic devices, such as a laptop or desktop computer.
  • the laptop and desktop computer can be connected to the WLAN network through a wired way, laptop and desktop Computers, etc. can share their own WLAN network extensions with mobile phones.
  • the WAN interface of the Wi-Fi module in the mobile phone includes the WAN interface connected to the cellular mobile network and the WLAN network respectively.
  • WLAN network cannot access the Internet, it can be switched To cellular mobile network;
  • LAN interface includes Wi-Fi P2P interface and Soft AP interface, Wi-Fi P2P interface is the P2P (GO) interface in Figure 4B and Figure 4C.
  • the routing control module directs and forwards the data packet received from the WAN interface according to the destination address of the data packet to the LAN interface, or from the LAN interface Upon receiving the data packet, it is directed according to the destination address of the data packet and forwarded to the WAN interface, thereby realizing the forwarding of network data.
  • the mobile phone can be connected to the cellular mobile network and the WLAN network, and the network data is forwarded to the LAN interface through the routing control module, and then forwarded to other Wi-Fi terminal devices by the LAN interface; or, The network data received by the LAN interface from other Wi-Fi terminal devices is forwarded from the LAN interface to the WAN interface through the routing control module, and then uploaded to the Internet via the WAN interface, thereby realizing the sharing of the mobile phone network to other Wi-Fi terminal devices .
  • PC402 can also carry out normal networking, which saves the cost of network construction.
  • the corresponding relationship between the LAN interface and the WAN interface during network sharing is: the WAN interface connected to the cellular mobile network corresponds to the Soft AP interface in the LAN interface; the WAN interface connected to the WLAN network corresponds to The P2P (GO) interface in the LAN interface.
  • the mobile phone 401 starts network sharing, it does not rely on the cellular mobile network or WLAN network of the mobile phone 401: when the WAN interface of the mobile phone 401 is activated on the cellular mobile network, the LAN interface starts Soft AP, and the status of the mobile phone 401 shows the cellular network. Sharing is enabled; when the WAN interface of the mobile phone 401 is active in the WLAN network, the LAN interface starts P2P (GO), and the status of the mobile phone 401 shows that WLAN network sharing is enabled.
  • the mobile phone actively disconnects the LAN interface and recreates the corresponding LAN interface.
  • the disconnected peer device can manually or automatically reconnect after the disconnection.
  • the mobile phone 401 switches from accessing the cellular mobile network to accessing the WLAN network
  • the mobile phone actively disconnects the LAN interface corresponding to the cellular mobile network, that is, the Soft AP interface, and restarts the LAN interface corresponding to the WLAN network, that is, the P2P (GO) interface .
  • the PC 402 After the PC 402 is disconnected from the mobile phone 401, it can automatically search for a shared network and reconnect, or the user can trigger a search for a shared network event, and the PC responds to the search for a shared network event to reconnect with the mobile phone.
  • the correspondence between the LAN interface and the WAN interface during network sharing is: the WAN interface for accessing the cellular mobile network corresponds to the P2P (GO) interface in the LAN interface; the WAN interface for accessing the WLAN network , Corresponding to the Soft AP interface in the LAN interface.
  • the mobile phone 401 when the mobile phone 401 starts network sharing, it does not rely on the cellular mobile network or WLAN network of the mobile phone 401:
  • the LAN interface starts P2P (GO), and the status of the mobile phone 401 is displayed Cellular mobile network sharing is enabled;
  • the WAN interface of the mobile phone 401 is activated by the WLAN network, the LAN interface starts Soft AP, and the status of the mobile phone 401 shows that the WLAN network sharing is enabled.
  • the mobile phone actively disconnects the LAN interface and recreates the corresponding LAN interface.
  • the disconnected peer device can manually or automatically reconnect after the disconnection.
  • the mobile phone 401 switches from accessing the WLAN network to accessing the cellular mobile network
  • the mobile phone actively disconnects the LAN interface corresponding to the WLAN network, that is, the Soft AP interface, and restarts the LAN interface corresponding to the cellular mobile network, that is, the P2P (GO) interface .
  • PC402 After PC402 is disconnected from mobile phone 401, if it is not connected for the first time, PC402 can automatically search for the shared network of mobile phone 401 and reconnect; if it is connected for the first time, a search shared network event is triggered by the user on PC402, and PC402 responds to the search After sharing the network event, after obtaining the password entered by the user, it will reconnect with the mobile phone if the verification is successful.
  • the network-sharing device is a mobile phone, and the opposite device 402 is a PC.
  • the network-sharing device may also be an electronic device such as a PAD or a wearable device that can access a cellular mobile network and a WLAN network.
  • the peer device can also be an electronic device such as a PAD, a TV, or a smart screen.
  • the user can choose to turn on or turn off the shared network.
  • the user can set the network name, encryption type, password, etc. of the shared network.
  • the mobile phone 401 can prompt whether the current sharing status is a cellular mobile network or a WLAN network.
  • the mobile phone 401 when the Soft AP interface and P2P (GO) interface of the mobile phone 401 are activated to establish a wireless connection path with the PC 402, the mobile phone can be configured with a uniform network name and password.
  • the network name is, for example, Service Set Identifier (SSID).
  • the mobile phone 401 when the mobile phone 401 establishes a Wi-Fi P2P wireless connection path with the PC 402 to realize the network sharing of the mobile phone, on the one hand, the PC 402 accesses the network through the mobile phone 401 and can exchange data with the Internet. On the other hand, the mobile phone 401 and the PC 402 can also transmit Wi-Fi Direct service data to each other.
  • the workflow of the routing control module is similar to the first application scenario, please refer to the related description in the first application scenario.
  • the method for providing wireless Internet access includes the following steps:
  • the mobile phone can be connected to the cellular mobile network and the WLAN network, and both networks can be in an active state, or one of the networks can be in an active state.
  • S420 The mobile phone opens a LAN interface corresponding to an activated network, and establishes a wireless connection with the peer device through the LAN interface.
  • the mobile phone forwards network data between the WAN interface and the LAN interface, and shares the mobile phone network with the peer device.
  • the LAN interface of the mobile phone includes Soft AP interface and P2P (GO) interface.
  • the WAN interface of the mobile phone 401 is connected to the cellular mobile network, the LAN interface corresponding to the cellular mobile network, namely the Soft AP interface, is turned on, and the mobile phone 401 establishes a wireless connection with the PC 402 through the Soft AP interface.
  • the WAN interface of the mobile phone 401 is connected to the WLAN network, the LAN interface corresponding to the WLAN network is turned on, that is, the P2P (GO) interface, and the mobile phone 401 establishes a Wi-Fi P2P connection with the PC 402 through the P2P (GO) interface.
  • the WAN interface of the mobile phone 401 is connected to the WLAN network, the LAN interface corresponding to the WLAN network, that is, the Soft AP interface, is turned on.
  • the mobile phone 401 establishes a wireless connection with the PC 402 through the Soft AP interface.
  • the WAN interface of the mobile phone 401 is connected to the cellular mobile network, turn on the LAN interface corresponding to the cellular mobile network, that is, the P2P (GO) interface.
  • the mobile phone 401 establishes a Wi-Fi P2P connection with the PC 402 through the P2P (GO) interface.
  • the routing control module configured on the mobile phone directs the data packets received from the WAN interface from the Internet according to the destination address of the data packets and forwards them to the LAN interface.
  • the data packet is sent to the PC.
  • the routing control module of the mobile phone configures the data packet received from the PC on the LAN interface, directs it according to the destination address of the data packet and forwards it to the WAN interface, and then uploads it to the Internet via the WAN interface, so that the PC can access the Internet through the mobile phone .
  • the mobile phone when the mobile phone is connected to a WLAN network, such as a Wi-Fi network, the mobile phone establishes a point-to-point communication connection with the peer device, and the connected Wi-Fi network extension can be shared with the peer device.
  • a WLAN network such as a Wi-Fi network
  • the mobile phone switches to the cellular mobile network, and the mobile phone establishes a point-to-point communication connection with the peer device, and the connected cellular mobile network can be extended and shared with the peer device.
  • the peer device can continue to obtain Internet access capabilities.
  • Figures 5A to 5C are schematic diagrams of a third application scenario for providing a wireless Internet access method proposed in an embodiment of this application.
  • the mobile phone 501 can be connected to a cellular mobile network and a WLAN to achieve networking.
  • the mobile phone 501 and the peer device 502 establish a Wi-Fi Direct point-to-point communication connection, that is, establish a Wi-Fi P2P wireless connection path.
  • the opposite device 502 is a television (TV). It should be understood that the TV 502 includes a Wi-Fi module.
  • the mobile phone 401 and the TV 502 establish a Wi-Fi P2P wireless connection path
  • the role of the mobile phone 401 is GO
  • the role of TV 502 is GC.
  • the mobile phone 501 and TV 502 can perform Wi-Fi Direct service data transmission through Wi-Fi P2P wireless connection channels, for example, through Wi-Fi Direct file transmission, or Wi-Fi Direct establishment of Wi-Fi -Fi screen projection (Wi-Fi Display), which transmits screen projection data.
  • Wi-Fi Direct service data transmission through Wi-Fi P2P wireless connection channels, for example, through Wi-Fi Direct file transmission, or Wi-Fi Direct establishment of Wi-Fi -Fi screen projection (Wi-Fi Display), which transmits screen projection data.
  • the WAN interface of the Wi-Fi module in the mobile phone includes a WAN interface respectively connected to a cellular mobile network and a WLAN network.
  • the LAN interface includes a Wi-Fi P2P interface, that is, the P2P (GO) interface in Figure 5B.
  • the routing control module directs the data packet received from the WAN interface according to the destination address of the data packet and forwards it to the LAN interface, or receives it from the LAN interface. To the data packet, it is directed according to the destination address of the data packet and forwarded to the WAN interface, thereby realizing the forwarding of network data.
  • the mobile phone can be connected to the cellular mobile network and the WLAN network, and the network data is forwarded to the LAN interface through the routing control module, and then the LAN interface is forwarded to other Wi-Fi terminal devices; or, the LAN interface
  • the received network data from other Wi-Fi terminal devices is forwarded from the LAN interface to the WAN interface through the routing control module, and then uploaded to the Internet via the WAN interface, so as to realize the sharing of the network of the mobile phone to other Wi-Fi terminal devices.
  • TV 502 can also be connected to the network normally, saving the cost of network construction.
  • the LAN interface regardless of whether the WAN interface of the mobile phone is currently activated on the cellular mobile network or the WLAN network, the LAN interface always activates the P2P (GO) interface. In other words, the WAN interface switching does not affect the LAN interface.
  • the channel on the LAN interface may be switched because it needs to follow the WLAN channel.
  • the LAN interface uses channel 6; and when the WAN interface is switched from the cellular mobile network to the WLAN network, the WAN interface uses channel 1. Then, in order to avoid signal interference, the LAN interface The channel can be switched to channel 1.
  • the LAN interface uses channel 6; when the WAN interface is switched from the cellular mobile network to the WLAN network, the WLAN uses channel 6. Then, in order to avoid signal interference, the LAN interface The channel can be switched to channel 1.
  • Wi-Fi Direct technology allows multiple Wi-Fi terminals to establish wireless connections at the same time
  • multiple peer devices can be set, and multiple peer devices can be connected to each other through mobile phones. .
  • the user can choose to turn on or turn off the shared network.
  • the user can set the network name, encryption type, password, etc. of the shared network.
  • the network name is, for example, Service Set Identifier (SSID).
  • the mobile phone 501 can prompt whether the current sharing status is a cellular mobile network or a WLAN network. For example, if TV 502 is connected to mobile phone 501 for the first time, and mobile phone 501 is not set to share network encryption, TV502 can automatically search the shared network of mobile phone 401 and establish a Wi-Fi P2P wireless connection path with the mobile phone; if it is the first connection, and the mobile phone 501 sets the shared network encryption situation.
  • the user triggers a search shared network event on TV 502, and TV 502 responds to the search shared network event, obtains the password entered by the user, and establishes a Wi-Fi P2P wireless connection path with the mobile phone after verification is successful.
  • a status prompt to indicate whether the current sharing network is a cellular mobile network or a WLAN network. For example, when the current mobile phone WAN interface is activated on the cellular mobile network, the mobile phone status shows that cellular mobile tethering is turned on; when the current mobile phone WAN interface is activated on the WLAN network, the mobile phone status shows that WLAN tethering is turned on.
  • the TV 502 accesses the network through the mobile phone 501 and can interact with the Internet for data.
  • the mobile phone 501 and the TV502 can also transmit Wi-Fi Direct service data to each other.
  • the workflow of the routing control module is similar to the first application scenario, please refer to the related description in the first application scenario.
  • the method for providing wireless Internet access includes the following steps:
  • S510 two electronic devices including Wi-Fi modules, the first electronic device and the second electronic device, establish a point-to-point communication connection through Wi-Fi direct connection.
  • two electronic devices including Wi-Fi modules include a mobile phone and a TV, and the mobile phone and the TV establish a Wi-Fi P2P wireless connection path.
  • the first electronic device is a PAD that can connect to a cellular mobile network and a WLAN network
  • the second electronic device is a PC, TV, or smart screen.
  • S520 The first electronic device is connected to the cellular mobile network and the WLAN network at the same time, and both networks may be in an active state, or one of the networks may be in an active state.
  • the first electronic device forwards the network data of the cellular mobile network or the WLAN network to the second electronic device through the established Wi-Fi P2P wireless connection path; the second electronic device forwards the network data through the established Wi-Fi P2P wireless connection
  • the path is sent to the first electronic device and forwarded by the first electronic device to the cellular mobile network or the WLAN network.
  • the first electronic device forwards the connected cellular mobile network and the WLAN network through the network, and shares the network with other Wi-Fi terminal devices.
  • the LAN interface in the first electronic device sharing mode is fixed as a P2P (GO) interface. Regardless of whether the first electronic device is currently in a cellular mobile network or a WLAN network, the LAN interface permanently activates the P2P (GO) interface.
  • the routing control module realizes the network data orientation and forwarding between the WAN interface and the LAN interface.
  • steps S510 and S520 cannot be construed as limiting the time sequence of the two steps.
  • the time sequence of the two steps is not limited.
  • Step S510 can be executed before step S520, and step S510 can also be executed before step S520. It can be executed after step S520, and step S510 can also be executed simultaneously with step S520.
  • the first electronic device and the second electronic device have established a Wi-Fi point-to-point communication connection.
  • the first electronic device accesses the WLAN network, it can extend the sharing through the existing Wi-Fi point-to-point connection
  • the second electronic device when the first electronic device cannot access the WLAN network and switches to the cellular mobile network, the second electronic device can continuously obtain the Internet access capability.
  • the embodiments of the present application also provide a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in each of the foregoing method embodiments can be realized.
  • the embodiments of the present application provide a computer program product.
  • the steps in the foregoing method embodiments can be realized when the mobile terminal is executed.
  • the integrated module/unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the computer program can be stored in a computer-readable storage medium. When executed by the processor, the steps of the foregoing method embodiments can be implemented.
  • the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate forms.
  • the computer-readable medium may at least include: any entity or device capable of carrying computer program code to the photographing device/electronic device, recording medium, computer memory, read-only memory (ROM), random access memory (Random Access Memory, RAM), electric carrier signal, telecommunications signal and software distribution medium.
  • ROM read-only memory
  • RAM random access memory
  • electric carrier signal telecommunications signal and software distribution medium.
  • U disk mobile hard disk, floppy disk or CD-ROM, etc.
  • computer-readable media cannot be electrical carrier signals and telecommunication signals.
  • the disclosed electronic device and method may be implemented in other ways.
  • the electronic device embodiments described above are only illustrative.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.

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

本申请涉及通信技术领域,提供了一种提供无线上网的系统、方法及电子设备,所述系统包括:第一电子设备和第二电子设备,所述第一电子设备用于:接收用户的第一操作,所述第一操作用于将所述第一电子设备中的第一数据分享或者投屏到所述第二电子设备;响应于所述第一操作,与所述第二电子设备建立Wi-Fi直连;接收用户的第二操作,所述第二操作用于打开所述第一电子设备的网络共享功能;所述第二电子设备用于:接收来自所述第一电子设备的所述第一数据;通过所述第一电子设备的网络共享功能与网络侧进行数据收发。本申请实施例通过用户便捷操作,实现将第一电子设备的上网能力共享给第二电子设备,使得第二电子设备获得了联网能力。

Description

一种提供无线上网的系统、方法及电子设备
本申请要求于2020年4月30日提交国家知识产权局、申请号为202010363772.7、申请名称为“一种提供无线上网的系统、方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及通信技术领域,尤其涉及一种提供无线上网的系统、方法及电子设备。
背景技术
随着通信技术和终端技术的不断发展,电子设备有联网需求的场景越来越多,电子设备的互联互通越来越受到人们的关注。
目前,电子设备接入因特网的方式包括移动通信网络和无线局域网(Wireless Local Area Network,WLAN)的方式。移动通信网络即通常所说的蜂窝移动网络,包括但不限于:全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA)等。WLAN包括无线保真(wireless fide lity,Wi-Fi)网络等。
移动通信网络覆盖范围广,给我们的生活带来便利,但是,移动通信网络的普及主要集中在手持移动终端等电子设备,收费较高。而WLAN一般仅在家庭、企业和少数公共场所才有覆盖,覆盖区域有限,但是用户所耗成本低。
因此,如何提升各个产品之间协同工作、协同上网,解决用户越来越多的联网需求,已迫在眉睫。
发明内容
本申请实施例提供了一种提供无线上网的系统、方法及电子设备,可以解决相关技术中电子设备无法协同上网的技术的问题。
第一方面,本申请实施例提供了一种提供无线上网的系统,所述系统包括:第一电子设备和第二电子设备;
所述第一电子设备用于:
接收用户的第一操作,所述第一操作用于将所述第一电子设备中的第一数据分享或者投屏到所述第二电子设备;
响应于所述第一操作,与所述第二电子设备建立Wi-Fi直连;
接收用户的第二操作,所述第二操作用于打开所述第一电子设备的网络共享功能;
所述第二电子设备用于:
接收来自所述第一电子设备的所述第一数据;
通过所述第一电子设备的网络共享功能与网络侧进行数据收发。
第一方面的实施例通过用户便捷操作,实现将第一电子设备的上网能力共享给第二电子设备,使得第二电子设备获得了联网能力。
在第一方面的一种实现方式中,所述第一操作包括选定所述第一数据的操作,开启分享控件的操作,以及选定所述第二电子设备作为接收设备的操作。
在第一方面的一种实现方式的一示例中,在显示第一数据的显示界面,接收到用户作用于分享控件的操作,例如单击,第一电子设备可以显示接收设备列表,接收用户在接收设备列表选中的接收设备名,例如第二电子设备,第一电子设备与第二电子设备建立Wi-Fi直连,将第一数据发送给第二电子设备。
在第一方面的一种实现方式的一示例中,在显示第一数据的显示界面,接收到用户作用于分享控件的操作,例如单击,第一电子设备加载包括分享方式列表的界面,例如,分享方式列表包括Wi-Fi直连(或称WLAN直连)、分享(share)、投屏、蓝牙、即时聊天工具或第三方互传工具等。接收用户在分享方式列表选中的分享方式,例如Wi-Fi直连(或称WLAN直连)、分享(share)或投屏,第一电子设备可以显示接收设备列表,接收用户在接收设备列表选中的接收设备名,例如第二电子设备,第一电子设备与第二电子设备建立Wi-Fi直连,将第一数据发送给第二电子设备。
在第一方面的一种实现方式中,所述第二操作包括开启网络共享控件的操作。
在第一方面的一种实现方式中,所述第二操作还包括输入正确密码的操作。
在第一方面的一种实现方式中,所述第一电子设备包括Wi-Fi模块和路由控制模块,所述Wi-Fi模块包括广域网WAN接口和局域网LAN接口,局域网LAN接口为Wi-Fi点对点P2P接口,所述第一电子设备通过所述Wi-Fi P2P接口与所述第二电子设备建立Wi-Fi直连;
所述第一电子设备通过所述WAN接口接入蜂窝移动网络或无线局域网WLAN网络;
所述第二操作用于开启所述路由控制模块的路由控制功能;
所述路由控制功能包括:若从所述WAN接口接收到的网络侧的第二数据,目的地址为所述第二电子设备,则将所述第二数据转发到所述Wi-Fi P2P接口,通过所述Wi-Fi P2P接口发送至所述第二电子设备;若从所述Wi-Fi P2P接口接收到的来自所述第二电子设备的第三数据,目的地址为网络侧,则将所述第三数据转发到所述WAN接口,通过所述WAN接口发送至网络侧。
在第一方面的一种实现方式中,所述第一电子设备还用于:提示用户网络共享状态,所述网络共享状态包括:蜂窝移动网络共享已开启或WLAN网络共享已开启。
第二方面,本申请实施例提供了一种提供无线上网的系统,所述系统包括:第一电子设备和第二电子设备;
所述第一电子设备用于:
接收用户的第三操作,所述第三操作用于将所述第一电子设备与所述第二电子设备建立无线连接,打开所述第一电子设备的网络共享功能;
所述第二电子设备用于:
通过所述第一电子设备的网络共享功能与网络侧进行数据收发。
在第二方面的一种实现方式中,所述第三操作包括开启网络共享控件的操作,或,所述第一电子设备与所述第二电子设备的NFC区域的触碰操作。
在第二方面的一种实现方式中,所述第三操作还包括输入正确密码的操作。
在第二方面的一种实现方式中,所述第一电子设备包括Wi-Fi模块和路由控制模块,所述Wi-Fi模块包括广域网WAN接口和局域网LAN接口,局域网LAN接口为Wi-Fi点对点P2P接口,所述第一电子设备通过所述Wi-Fi P2P接口与所述第二电子设备建立Wi-Fi直连;
所述第一电子设备通过所述WAN接口接入蜂窝移动网络或无线局域网WLAN网络;
所述第三操作用于开启所述Wi-Fi P2P接口,通过所述Wi-Fi P2P接口与所述第二电子设备 建立Wi-Fi直连,开启所述路由控制模块的路由控制功能;
所述路由控制功能包括:若从所述WAN接口接收到的网络侧的第二数据,目的地址为所述第二电子设备,则将所述第二数据转发到所述Wi-Fi P2P接口,通过所述Wi-Fi P2P接口发送至所述第二电子设备;若从所述Wi-Fi P2P接口接收到的来自所述第二电子设备的第三数据,目的地址为网络侧,则将所述第三数据转发到所述WAN接口,通过所述WAN接口发送至网络侧。
在第二方面的一种实现方式中,所述第一电子设备包括Wi-Fi模块和路由控制模块,所述Wi-Fi模块包括广域网WAN接口和局域网LAN接口,局域网LAN接口包括Wi-Fi点对点P2P接口和软soft访问网点AP接口;
所述第一电子设备通过所述WAN接口接入蜂窝移动网络或无线局域网WLAN网络,所述第三操作用于开启所述Wi-Fi P2P接口或所述softAP接口,通过所述Wi-Fi P2P接口与所述第二电子设备建立Wi-Fi直连,或通过所述softAP接口与所述第二电子设备建立无线热点连接,开启所述路由控制模块的路由控制功能;
所述路由控制功能包括:若从所述WAN接口接收到的蜂窝移动网络侧的第二数据,目的地址为所述第二电子设备,则将所述第二数据转发到所述Wi-Fi P2P接口或所述softAP接口,通过所述Wi-Fi P2P接口或所述softAP接口发送至所述第二电子设备;若从所述Wi-Fi P2P接口或所述softAP接口接收到的来自所述第二电子设备的第三数据,目的地址为网络侧,则将所述第三数据转发到所述WAN接口,通过所述WAN接口发送至网络侧;
若所述第一电子设备通过所述WAN接口接入所述蜂窝移动网络,则所述第一电子设备响应于监听到的开启网络共享事件,启动所述soft AP接口,通过所述soft AP接口与所述第二电子设备建立无线热点连接;若所述第一电子设备通过所述WAN接口接入所述WLAN网络,则所述第一电子设备响应于监听到的开启网络共享事件,启动所述Wi-Fi P2P接口,通过所述Wi-Fi P2P接口与所述第二电子设备建立Wi-Fi直连;或,
若所述第一电子设备通过所述WAN接口接入所述蜂窝移动网络,则所述第一电子设备响应于监听到的开启网络共享事件,启动所述Wi-Fi P2P接口,通过所述Wi-Fi P2P接口与所述第二电子设备建立Wi-Fi直连;若所述第一电子设备通过所述WAN接口接入所述WLAN网络,则所述第一电子设备响应于监听到的开启网络共享事件,启动所述soft AP接口,通过所述soft AP接口与所述第二电子设备建立无线热点连接。
在第二方面的一种实现方式中,所述第一电子设备还用于:提示用户网络共享状态,所述网络共享状态包括:蜂窝移动网络共享已开启或WLAN网络共享已开启。
第三方面,本申请实施例提供了一种提供无线上网的方法,包括:
第一电子设备接收用户的第一操作,响应于所述第一操作,与第二电子设备建立Wi-Fi直连;所述第一操作用于将所述第一电子设备中的第一数据分享或者投屏到所述第二电子设备;
所述第二电子设备接收来自所述第一电子设备的所述第一数据;
所述第一电子设备接收用户的第二操作,响应于所述第二操作,打开网络共享功能;所述第二操作用于打开所述第一电子设备的网络共享功能;
所述第二电子设备通过所述第一电子设备的网络共享功能与网络侧进行数据收发。
在第三方面的一种实现方式中,所述第一操作包括选定所述第一数据的操作,开启分享控件的操作,以及选定所述第二电子设备作为接收设备的操作。
在第三方面的一种实现方式中,所述第二操作包括开启网络共享控件的操作。
在第三方面的一种实现方式中,所述第一电子设备包括Wi-Fi模块,所述Wi-Fi模块包括广域网WAN接口和局域网LAN接口,局域网LAN接口为Wi-Fi点对点P2P接口;所述第一电子设备通过所述WAN接口接入蜂窝移动网络或无线局域网WLAN网络;
所述第一电子设备接收用户的第一操作,响应于所述第一操作,与第二电子设备建立Wi-Fi直连,包括:
第一电子设备接收用户的第一操作,响应于所述第一操作,通过所述Wi-Fi P2P接口与第二电子设备建立Wi-Fi直连;
所述第二电子设备通过所述第一电子设备的网络共享功能与网络侧进行数据收发,包括:
若从所述WAN接口接收到的网络侧的第二数据,目的地址为所述第二电子设备,则将所述第二数据转发到所述Wi-Fi P2P接口,通过所述Wi-Fi P2P接口发送至所述第二电子设备;若从所述Wi-Fi P2P接口接收到的来自所述第二电子设备的第三数据,目的地址为网络侧,则将所述第三数据转发到所述WAN接口,通过所述WAN接口发送至网络侧。
第四方面,本申请实施例提供了一种提供无线上网的方法,包括:
第一电子设备接入蜂窝移动网络或无线局域网WLAN网络;
所述第一电子设备接收用户的第三操作,响应于所述第三操作,与第二电子设备建立无线连接,并打开网络共享功能;
所述第二电子设备通过所述第一电子设备的网络共享功能与网络侧进行数据收发。
在第四方面的一种实现方式中,所述第三操作包括开启网络共享控件的操作,或,所述第一电子设备与所述第二电子设备的NFC区域的触碰操作。
在第四方面的一种实现方式中,所述第三操作还包括输入正确密码的操作。
在第四方面的一种实现方式中,所述响应于所述第三操作,与第二电子设备建立无线连接,包括:
若所述第一电子设备接入所述蜂窝移动网络,则所述第一电子设备响应于所述第三操作,与所述第二电子设备建立无线热点连接;若所述第一电子设备接入所述WLAN网络,则所述第一电子设备响应于所述第三操作,与所述第二电子设备建立Wi-Fi直连;或,
若所述第一电子设备接入所述蜂窝移动网络,则所述第一电子设备响应于所述第三操作,与所述第二电子设备建立Wi-Fi直连;若所述第一电子设备接入所述WLAN网络,则所述第一电子设备响应于所述第三操作,与所述第二电子设备建立无线热点连接。
第五方面,本申请实施例提供了一种提供无线上网的方法,包括:
第一电子设备接收用户的第一操作,响应于所述第一操作,与第二电子设备建立Wi-Fi直连;所述第一操作用于将所述第一电子设备中的第一数据分享或者投屏到所述第二电子设备;
所述第一电子设备将所述第一数据发送至所述第二电子设备;
所述第一电子设备接收用户的第二操作,响应于所述第二操作,打开网络共享功能;所述第二操作用于打开所述第一电子设备的网络共享功能,所述第一电子设备的网络共享功能用于实现所述第二电子设备与网络侧的数据收发。
在第五方面的一种实现方式中,所述第一操作包括选定所述第一数据的操作,开启分享控件的操作,以及选定所述第二电子设备作为接收设备的操作。
在第五方面的一种实现方式中,所述第二操作包括开启网络共享控件的操作。
在第五方面的一种实现方式中,所述第二操作还包括输入正确密码的操作。
第六方面,本申请实施例提供了一种提供无线上网的方法,包括:
第一电子设备接入蜂窝移动网络或无线局域网WLAN网络;
所述第一电子设备接收用户的第三操作,响应于所述第三操作,与第二电子设备建立无线连接,并打开网络共享功能,所述第一电子设备的网络共享功能用于实现所述第二电子设备与网络侧的数据收发。
在第六方面的一种实现方式中,所述第三操作包括开启网络共享控件的操作,或,所述第一电子设备与所述第二电子设备的NFC区域的触碰操作。
在第六方面的一种实现方式中,所述第三操作还包括输入正确密码的操作。
第七方面,本申请实施例提供了一种提供无线上网的第一电子设备,所述第一电子设备接收用户的第一操作,响应于所述第一操作,与第二电子设备建立Wi-Fi直连;所述第一操作用于将所述第一电子设备中的第一数据分享或者投屏到所述第二电子设备;
所述第一电子设备将所述第一数据发送至所述第二电子设备;
所述第一电子设备接收用户的第二操作,响应于所述第二操作,打开网络共享功能;所述第二操作用于打开所述第一电子设备的网络共享功能,所述第一电子设备的网络共享功能用于实现所述第二电子设备与网络侧的数据收发。
第八方面,本申请实施例提供了一种提供无线上网的第一电子设备,所述第一电子设备接入蜂窝移动网络或无线局域网WLAN网络,所述第一电子设备接收用户的第三操作,响应于所述第三操作,与第二电子设备建立无线连接,并打开网络共享功能,所述第一电子设备的网络共享功能用于实现所述第二电子设备与网络侧的数据收发。
第九方面,本申请实施例提供了一种电子设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时,使得所述电子设备实现如第五方面和第五方面可能的实现方式中任一所述的方法,或,实现如第六方面和第六方面可能的实现方式中任一所述的方法。
第十方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如第五方面和第五方面可能的实现方式中任一所述的方法,或,实现如第六方面和第六方面可能的实现方式中任一所述的方法。
第十一方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行上述第五方面和第五方面可能的实现方式中任一所述的方法,或,执行上述第六方面和第六方面可能的实现方式中任一所述的方法。
可以理解的是,上述第二方面至第十一方面的有益效果可以参见上述第一方面中的相关描述。
附图说明
图1A是本申请一实施例提供的一种电子设备实现联网的应用场景;
图1B是本申请一实施例提供的一种电子设备无法实现联网的应用场景;
图2A是本申请实施例提供的提供上网的方法所适用于的电子设备的结构示意图;
图2B是本申请实施例提供的一种提供上网的方法所适用于的电子设备的软件结构框图;
图3A是本申请一实施例提供的一种提供上网的方法的一应用场景;
图3B是本申请一实施例提供的一种提供上网的方法中实现手机与PC建立无线连接的场景示意图;
图3C是本申请一实施例提供的一种提供上网的方法的实现原理示意图;
图3D是本申请一实施例提供的一种提供上网的电子设备所呈现的用户界面示意图;
图3E是本申请另一实施例提供的一种提供上网的电子设备所呈现的用户界面示意图;
图3F是本申请一实施例提供的一种提供上网的方法的流程示意图;
图4A是本申请一实施例提供的一种提供上网的方法的另一应用场景;
图4B是本申请一实施例提供的一种提供上网的方法的一实现原理示意图;
图4C是本申请一实施例提供的一种提供上网的方法的另一实现原理示意图;
图4D是本申请一实施例提供的一种提供上网的方法的流程示意图;
图5A是本申请一实施例提供的一种提供上网的方法的又一应用场景;
图5B是本申请一实施例提供的一种提供上网的方法的实现原理示意图;
图5C是本申请一实施例提供的一种提供上网的方法的流程示意图。
具体实施方式
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。
以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括例如“一个或多个”这种表达形式,除非其上下文中明确地有相反指示。
还应当理解,在本申请实施例中,“若干个”和“一个或多个”是指一个、两个或两个以上;“和/或”,描述关联对象的关联关系,表示可以存在三种关系;例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A、B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。
当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。
如在本申请说明书和所附权利要求书中所使用的那样,术语“若”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。
另外,在本申请说明书和所附权利要求书的描述中,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。
在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。
为了说明本申请的技术方案,下面通过具体实施例来进行说明。
近年来,随着通信技术的不断发展,很多手持移动终端,可以获取移动通信网络和WLAN的上网能力。
例如,如图1A所示,包括Wi-Fi模块的第一终端11通过蜂窝移动网络接入网络。此外,第一终端11还通过Wi-Fi直连功能与包括Wi-Fi模块的其它设备12连接。第一终端例如手机,其他设备例如个人计算机(Personal Computer,PC)或者电视等。
Wi-Fi直连(Wi-Fi Direct),又称为Wi-Fi点对点(Peer to Peer,P2P)连接。Wi-Fi Direct是指允许无线网络中的设备无需通过无线路由器即可相互连接。实现Wi-Fi Direct的多个设备之间可以实现内容的相互传输。也就是说,Wi-Fi Direct技术允许多个Wi-Fi终端同时建立无线连接,例如,一个Wi-Fi终端可以与另一个Wi-Fi终端建立无线连接,即通过一对一的拓扑形式组建小组来建立无线连接;又如,一个Wi-Fi终端可以同时与多个其他Wi-Fi终端建立无线连接,即通过一对多的拓扑形式组建小组来建立无线连接。当第一Wi-Fi终端和第二Wi-Fi终端之间通过Wi-Fi P2P建立连接,根据Wi-Fi Direct技术规范,需要建立一个组拥有者(Group Owner,GO)和一个组客户端(Group Client,GC)。也就是说,建立Wi-Fi Direct连接的过程中需要协商角色,当两个Wi-Fi终端建立Wi-Fi Direct连接,其中一个终端的角色为GO,另一个终端的角色为GC。
作为一种实现方式,如图1A所示场景,第一终端可以通过蜂窝基站接入蜂窝移动网络。作为另一种实现方式,第一终端可以通过连接到基站且提供热点服务的访问网点(Access Point,AP)接入蜂窝移动网络。
在图1A所示的场景中,第一终端11和其他设备12之间的Wi-Fi直连可以用来进行点对点的文件传输,也可以用于实现镜像投屏。当其它设备需要联网时,则需要通过其它联网方式来实现,例如,通过连接Wi-Fi AP 13接入到因特网(Internet)的方式。
但是,在图1A所示场景的基础上,当其他设备周围没有Wi-Fi AP或者有线网等其它接入Internet的方式时,例如,参见图1B所示,其他设备12则无法进行联网,从而浪费了设备12的上网能力。
又如,对于需要出差的用户而言,通常情况下除了携带手机,还会携带笔记本电脑。由于蜂窝移动网络的覆盖几乎无所不在,因而手机几乎随时可联网。但是,若笔记本电脑不具备接入蜂窝移动网络的能力,又受限于WLAN网络的覆盖局限性,在需要笔记本电脑联网的情形下,无法实现联网,造成用户不便。
因此,为了解决上述两个示例中,电子设备(如手机)自身具备联网能力,且周围无其它网络接入方式时,其他设备或称对端设备(如PC)无法联网的问题。本申请提出了一种提供无线上网的方法,该方法应用于包括Wi-Fi模块的电子设备,该方法利用电子设备自身的上网能力,同时借助电子设备与对端设备之间建立的Wi-Fi P2P无线通信方式,将电子设备自身的联网能力共享给对端设备,使得对端设备可以在进行点对点通信的同时,获得联网能力。
本申请实施例提出的提供无线上网的方法可以应用于手机、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)、智能音箱、电视机顶盒(set top box,STB)、电视机或智慧屏等,本申请实施例对电子设备的具体类型不作任何限制。
图2A示出了电子设备100的结构示意图。
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线 1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(cameraserial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是MiniUSB接口,MicroUSB接口,USBTypeC接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波, 放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括WLAN(如Wi-Fi),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(Long Term Evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的整数。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄 像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或M个摄像头193,M为大于1的整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能应用以及数据处理。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风 170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还 可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。
图2B是本申请实施例的电子设备100的软件结构框图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通 信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android Runtime)和系统库,以及内核层。
应用程序层可以包括一系列应用程序包。
如图2B所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图2B所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
Android Runtime包括核心库和虚拟机。Android Runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
下面通过三个非限制示例对本申请实施例的应用场景及实现流程进行说明。
图3A至图3F所示,为本申请实施例提出的提供无线上网方法的第一个应用场景示意图。
如图3A所示,第一个应用场景为手机301连接蜂窝移动网络,手机301与PC302建立了Wi-Fi Direct的点对点通信连接。手机301通过与PC302建立的Wi-Fi Direct无线连接通路将蜂窝网络共享给PC302,使得PC302具备上网的能力。
其中,手机301和PC302建立Wi-Fi Direct无线连接通路,手机301的角色为GO,PC302的角色为GC。
在本申请一些实施例中,手机301和PC302开启蓝牙功能和Wi-Fi功能后,手机301和PC302可以通过蓝牙发现周边设备。手机301接收用户选择图片、视频、或者音频等文件的操作,接收用户点击“分享”等控件或者“投屏”等控件的操作,可以显示附近的接收设备列表,接收用户点击接收设备列表中目标设备(如PC302)的操作,即可以完成手机301与PC302的Wi-Fi直连,也就可以完成文件的传出或者投屏到目标设备(如PC302)的操作等。需要说明的是,在本申请其他一些实施例中,当用户在接收设备列表中选择目标设备,如PC302后,需要用户输入正确的密码,和/或,待目标设备确认接收后,可以完成手机301与PC302的Wi-Fi直连。
作为一非限制性示例,如图3B所示,为手机301和PC302建立无线连接,传输文件的场景示意图。PC302接收到手机301发送的图片分享请求后,可以显示出提示框320。其中,该提示框320中包括有接收按钮321和拒绝按钮322。该接收按钮321可用于触发PC302接收手机301发送的图片310。该拒绝按钮322可用于触发PC302拒绝接收手机301发送的图片310。PC302可以接收用户作用于接收按钮321的操作(例如单击),响应于该操作,PC302可以发送接收响应给手机301。手机301在接收到该接收响应后,可以通过Wi-Fi直连(Wi-Fi P2P)、Wi-Fi无线软(soft)AP、或超宽带(ultra-wideband,UWB)等通信技术发送该图片310给PC302。其中,在发送该图片310的过程中,手机301上的进度条320显示的进度会随着传输进程变化,例如,手机301还未开始传输该图片311时该进度条320上显示的进度为“0%”,传输完成时该进度条320上显示的进度为“100%”。
在这些实施例中,手机301响应于监听到的分享事件或投屏事件,建立与PC302的Wi-Fi直连。应理解,分享事件是指将文件传输至其他设备的事件,投屏事件是指将文件投屏至其他设备的事件。分享事件或投屏事件通常由用户执行预设操作触发。在上述实施例中仅示例性描述了触发分享事件或投屏事件的操作。在本申请实施例中,触发分享事件或投屏事件的操作可以包括一个操作或一系列操作,操作包括但不限于:触屏操作,光标控制操作,语音控制操作,手势控制操作等中的一种或几种的组合。光标控制操作包括通过键盘,鼠标,遥控杆,轨迹球,操作杆,触控面板等中的一种或几种进行的光标控制操作。在本申请实施例中,对触发分享事件或投屏事件的方式不予限定。
在本申请另一些实施例中,用户在手机301和PC302状态栏或系统设置中开启Wi-Fi直连、或无线投屏等功能,例如点击Wi-Fi直连、或无线投屏的控件为开启状态,此时,手机301和PC302会自动开启蓝牙功能和Wi-Fi功能,手机301和PC302可以通过蓝牙发现周边设备。手机301可以显示附近的接收设备列表,接收用户点击接收设备列表中目标设备(如PC302)的操作,即可以完成手机301与PC302的Wi-Fi直连。在本申请其他一些实施例中,PC302开启NFC功能和Wi-Fi功能,手机301开启NFC功能和Wi-Fi功能,用户将手机301轻碰PC302,例如将手机301的NFC区域轻碰PC302的NFC区域。手机301或PC302自动弹出连接提示界面,当用户在连接提示界面选择确认后,完成手机301与PC302的Wi-Fi直连。通过一碰互连,简化了用户操作,大大提高 了互连效率。需要说明的是,在本申请其他一些实施例中,当用户在连接提示界面选择确认后,需要用户输入正确的密码,可以完成手机301与PC302的Wi-Fi直连。在本申请其他一些实施例中,手机301和/或PC302可以不弹出连接提示界面,可以弹出密码输入界面,用户在密码输入界面输入正确密码,可以完成手机301与PC302的Wi-Fi直连。通过设置密码提高了通信安全性。在手机301与PC302建立Wi-Fi直连之后,可以实现文件在两个设备间的互传,也可以基于Wi-Fi直连实现手机301到PC302的投屏。
在这些实施例中,手机301响应于监听到的Wi-Fi直连事件,建立与PC302的Wi-Fi直连。应理解,Wi-Fi直连事件是指本机与其他设备建立Wi-Fi直连的事件。Wi-Fi直连事件通常由用户执行预设操作触发。在上述实施例中仅示例性描述了触发Wi-Fi直连事件的操作,在本申请实施例中,触发Wi-Fi直连事件的操作可以包括一个操作或一系列操作,操作包括但不限于:触屏操作,光标控制操作,语音控制操作,手势控制操作等中的一种或几种的组合。在本申请实施例中,对触发Wi-Fi直连事件的方式不予限定。
通常情况下,手机中Wi-Fi模块的网络接口包括广域网(Wide Area Network,WAN)接口和局域网(Local Area Network,LAN)接口。WAN接口用来连接蜂窝移动网络,或者WLAN。LAN接口用来连接内网,或称为局域网的设备。
在图3A所示的应用场景中,如图3C所示,手机中Wi-Fi模块的WAN接口连接蜂窝移动网络;LAN接口为Wi-Fi P2P接口,即图3C中的P2P(GO)接口。
继续参见图3C所示,通过给手机配置路由控制模块,路由控制模块把从WAN接口上收到数据包,根据数据包的目的地址进行定向并转发到LAN接口,或把从LAN接口上收到数据包,根据数据包的目的地址进行定向并转发到WAN接口,实现PC302可以通过手机接入网络。
在本申请一些实施例中,手机301与PC302虽然建立了Wi-Fi Direct无线连接通路,但是并未进行Wi-Fi Direct业务数据传输。也就是说,手机301与PC302虽然建立了Wi-Fi Direct无线连接通路,但是用户并未通过Wi-Fi Direct无线连接通路,将手机301上的数据分享或投屏到PC302。PC302通过手机301接入网络,可以与因特网进行数据交互。
在这些实施例中,手机的路由控制模块,一方面,将从WAN接口上收到的来自因特网的数据包,根据数据包的目的地址进行定向,若数据包的目的地址为PC302,则将数据包转发到P2P(GO)接口,再通过Wi-Fi Direct通道将数据包传送至PC302;若数据包的目的地址为手机301,则手机301通过WAN接口接收到数据包后,对数据包进行处理。另一方面,将从P2P(GO)接口接收到的来自PC302的,目的地址为因特网的数据包,根据数据包的目的地址进行定向并转发到WAN接口。
作为一非限制性示例,若PC302的地址是192.168.43.x,手机301在P2P(GO)接口处的网关地址为192.168.43.1,手机301的地址是192.168.1.100。从WAN接口上接收到的来自因特网的数据包,若数据包的目的地址为192.168.43.x,则将数据包转发到P2P(GO)接口,再通过Wi-Fi Direct通道将数据包传送至PC302;若数据包的目的地址为192.168.1.100,则手机301从WAN接口上接收到数据包后,对数据包进行处理。
在本申请另一些实施例中,手机301与PC302建立了Wi-Fi Direct无线连接通路,并进行Wi-Fi Direct业务数据传输,例如通过Wi-Fi Direct的文件传输,或基于Wi-Fi Direct建立Wi-Fi投屏(Wi-Fi Display),进行投屏数据的传输。PC42通过手机301接入网络,可以与因特网进行数据交互。
在这些实施例中,手机的路由控制模块,一方面,将从WAN接口上收到的来自因特网的数据包,根据数据包的目的地址进行定向,若数据包的目的地址为PC302,则将数据包转发到P2P(GO)接口,再通过Wi-Fi Direct通道将数据包传送至PC302;若数据包的目的地址为手机301,则手机301通过WAN接口接收到数据包后,对数据包进行处理。另一方面,将从P2P(GO)接口接收到的来自PC302的,目的地址为因特网的数据包,根据数据包的目的地址进行定向并转发到WAN接口。再一方面,将Wi-Fi Direct业务数据从P2P(GO)接口发送至PC430,PC302接收Wi-Fi Direct业务数据并进行处理;将Wi-Fi Direct业务数据从PC302发送至P2P(GO)接口,手机301接收Wi-Fi Direct业务数据并进行处理。
需要说明的是,不同的应用进程会使用不同的端口,网路传输层会根据不同的目的端口将数据传递到不同的应用。到达PC302的来自因特网的数据包和来自手机301的Wi-Fi Direct业务数据,根据目的端口的不同,由不同应用进行处理。类似地,到达手机301的来自因特网的数据包和来自PC302的Wi-Fi Direct业务数据,根据目的端口的不同,由不同应用进行处理。
还需要说明的是,当手机301和PC302之间的Wi-Fi Direct通道需要传输联网数据和Wi-Fi Direct业务数据的情形下,可以采用时分复用、频分复用、或码分复用等复用技术,本申请对复用技术的选择不作具体限制。
路由控制模块通过软件实现,因此,只需升级现有硬件设备的软件,不需要更换硬件设备,降低了联网成本。
在本申请一些实施例中,用户可以通过开启或关闭手机的网络共享功能,以实现对手机网络是否共享的设置。例如图3D所示,为手机的一用户设置界面,在该界面中,用户可以通过触发选择控件303(例如单击等),实现网络共享的开启或关闭。应理解,此处的界面及控件为示例性描述,不能解释为对本申请的具体限制。
在本申请一些实施例中,用户可以设置P2P(GO)接口的网络名称、加密类型和密码等。例如图3E所示,为手机的一用户设置界面,在该界面中,用户可以通过触发第一控件304,修改网络名称;触发第二控件305,选择加密类型;触发第三控件306,修改加密密码。应理解,此处的界面及控件为示例性描述,不能解释为对本申请的具体限制。若用户设置了网络共享的加密密码,则在图3D所示示例的基础上,用户触发选择控件303后,在密码输入界面输入正确密码,可以实现网络共享的开启。
在本申请另一些实施例中,若手机301与PC302之间建立了Wi-Fi直连,手机301可以主动向PC302推送通知消息,所述通知消息包括PC302是否同意或者接受通过手机301来进行上网等,待接收到PC302端的确认后,手机301开启网络共享功能。在本申请另一些实施例中,若手机301合并PC302具有同一用户账号,手机301和PC302之间建立了Wi-Fi直连,手机301可以主动弹出问询通知,所述问询通知包括用户是否同意或者接受手机301开启网络共享功能等,待用户在手机301确认后,手机301开启网络共享功能。
应理解,在本申请实施例中,手机301响应于监听到的开启网络共享事件,开启手机的网络共享功能。开启网络共享事件是指允许手机将联网能力共享给其他设备,如PC302的事件,通常由用户执行预设操作触发。在上述实施例中仅示例性描述了开启网络共享事件的操作,在本申请实施例中,触发开启网络共享事件的操作可以包括一个操作或一系列操作,操作包括但不限于:触屏操作,光标控制操作,语音控制操作,手势控制操作等中的一种或几种的组合。在本申请实施例中,对触发开启网络共享事件的方式不予限定。
在图3A、图3B和图3C的应用场景中,如图3F所示,提供无线上网的方法包括如下几个步骤:
S310,两个包括Wi-Fi模块的电子设备,第一电子设备和第二电子设备,通过Wi-Fi直连建立点对点的通信连接。
S320,第一电子设备通过蜂窝移动网络连接互联网。
在如图3A、图3B和图3C的示例中,两个包括Wi-Fi模块的电子设备包括手机和PC。在其他示例中,还可以为其他电子设备,例如,一个电子设备为可以连接蜂窝移动网络的PAD,另一个电子设备为PC、电视机或智慧屏等。
S330,第一电子设备将蜂窝移动网络的联网数据通过Wi-Fi直连建立的点对点通路发给第二电子设备;第二电子设备将联网数据通过Wi-Fi直连建立的点对点通路发给第一电子设备并由第一电子设备传至互联网。
需要说明的是,步骤S310和S320的编号不能解释为对两个步骤时间顺序的限定,在本申请实施例中,不限定两个步骤的时序,步骤S310可以在步骤S320之前执行,步骤S310也可以在步骤S320之后执行,步骤S310也可以与步骤S320同时执行。
由于Wi-Fi Direct技术允许多个Wi-Fi终端同时建立无线连接,因此,在其他实施例中,可以设置多个第二电子设备,多个第二电子设备可以通过手机实现联网。
在第一个应用场景中,第一电子设备接入蜂窝移动网络,第一电子设备通过与第二电子设备已经建立的Wi-Fi点对点的通信连接,将接入的蜂窝移动网络共享给第二电子设备,使得第二电子设备可以具备上网能力。
图4A至图4D所示,为本申请实施例提出的提供无线上网方法的第二个应用场景示意图。
如图4A所示,第二个应用场景中,手机401可以通过接入蜂窝移动网络和WLAN网络以实现联网。
当手机接入蜂窝移动网络和WLAN网络中的一个网络,对端设备需要获取手机的上网能力,即获取手机的共享网络时,在本申请实施例中,手机401响应于监听到的开启网络共享事件,可以与对端设备402建立Wi-Fi Direct的点对点通信连接,即建立Wi-Fi P2P无线连接通路。对端设备402为PC。应理解,手机401开启网络共享功能的触发方式可以参照第一个应用场景的方式,本申请实施例对触发开启网络共享事件的方式不予具体限制。还应理解,在图4A所示的实施例中,当手机401开启网络共享功能后,不再需要用户在手机401触发Wi-Fi直连事件,就可以实现手机401与PC建立Wi-Fi Direct的点对点通信连接,从而将手机401的上网能力共享给PC402。例如,用户可以不需要在手机401上触发开启Wi-Fi直连的控件,手机401可以自动开启Wi-Fi直连功能,Wi-Fi直连的控件状态为开启状态。通过一键实现网络共享,大大简化了用户操作,提高了操作效率,从而提升用户体验。
其中,手机401和PC402建立Wi-Fi P2P无线连接通路,手机401的角色为GO,PC402的角色为GC。
可选地,手机401与PC402可以通过Wi-Fi P2P无线连接通路进行Wi-Fi Direct业务数据传输,例如,通过Wi-Fi Direct的文件传输,或基于Wi-Fi Direct建立Wi-Fi投屏(Wi-Fi Display),进行投屏数据的传输。
当手机接入蜂窝移动网络和WLAN网络中的另一个网络,对端设备需要获取手机的上网能力,即获取手机的共享网络时,在本申请实施例中,手机401响应于监听到的开启网络共享事件,可 以启动无线软AP(Soft AP),与PC402建立无线连接通路,PC402通过手机401热点功能获取上网能力。应理解,手机401开启网络共享功能的触发方式可以参照第一个应用场景的方式,本申请实施例对触发开启网络共享事件的方式不予具体限制。还应理解,在图4A所示的实施例中,当手机401开启网络共享功能后,不再需要用户在手机401触发热点开启事件,就可以实现手机401与PC402建立无线热点连接,从而将手机401的上网能力共享给PC402。例如,用户可以不需要在手机401上触发开启热点的控件,手机401可以自动开启热点功能,热点的控件状态为开启状态。所述热点开启事件指的是开启热点功能的事件,即启动Soft AP,建立无线热点连接通路的事件。
其中,Soft AP通过驱动程序使其提供与Wi-Fi AP一样的信号转接和路由等功能。
需要说明的是,由于Wi-Fi Direct技术和Soft AP技术允许多个Wi-Fi终端同时建立无线连接,因此,在其他实施例中,可以设置多个对端设备,多个对端设备可以通过手机实现联网。
还需要说明的是,作为一种实现方式,如图4A所示,手机401通过无线AP的方式接入WLAN网络。作为其他实现方式,自身具备联网能力的设备可以不为手机,而是其他电子设备,例如用笔记本电脑或台式电脑等,笔记本电脑和台式电脑可以通过有线的方式接入WLAN网络,笔记本电脑和台式电脑等可以将自身的WLAN网络扩展共享给手机。
在图4A所示的应用场景中,如图4B和图4C所示,手机中Wi-Fi模块的WAN接口包括分别连接蜂窝移动网络和WLAN网络的WAN接口,当WLAN网络无法上网时,可以切换到蜂窝移动网络;LAN接口包括Wi-Fi P2P接口和Soft AP接口,Wi-Fi P2P接口即图4B和图4C中的P2P(GO)接口。
继续参见图4B和图4C所示,通过给手机配置路由控制模块,路由控制模块把从WAN接口上收到数据包,根据数据包的目的地址进行定向并转发到LAN接口,或把从LAN接口上收到数据包,根据数据包的目的地址进行定向并转发到WAN接口,从而实现网络数据的转发。
在图4B和图4C所示的实施例中,手机可以连接蜂窝移动网络和WLAN网络,通过路由控制模块将网络数据转发至LAN接口,再由LAN接口转发至其他Wi-Fi终端设备;或者,由LAN接口接收的来自其他Wi-Fi终端设备的网络数据,通过路由控制模块由LAN接口转发至WAN接口,再由WAN接口上传至互联网,从而实现将手机的网络共享给其它Wi-Fi终端设备。在没有部署Wi-Fi AP和有线网络的情形下,PC402也能够进行正常的联网,节省了建设网络的成本。
在图4B所示的实施例中,网络共享时LAN接口与WAN接口的对应关系为:接入蜂窝移动网络的WAN接口,对应LAN接口中的Soft AP接口;接入WLAN网络的WAN接口,对应LAN接口中的P2P(GO)接口。也就是说,当手机401启动网络共享时,不依赖手机401的蜂窝移动网络或WLAN网络:当手机401的WAN接口处于蜂窝移动网络激活时,LAN接口启动Soft AP,手机401的状态显示蜂窝网络共享已开启;当手机401的WAN接口处于WLAN网络激活时,LAN接口启动P2P(GO),手机401的状态显示WLAN网络共享已开启。
在图4B所示实施例的基础上,若手机的WAN接口发生切换,手机主动断开LAN接口,重新创建对应的LAN接口,已断开的对端设备在中断连接后可以手动或自动重连。例如,若手机401从接入蜂窝移动网络切换成接入WLAN网络,手机主动断开蜂窝移动网络对应的LAN接口,即Soft AP接口,重新启动WLAN网络对应的LAN接口,即P2P(GO)接口。PC402在与手机401中断连接后,可以自动搜索共享网络并重连,或者由用户触发搜索共享网络事件,PC响应该搜索共享网络事件与手机重连。
在图4C所示的实施例中,网络共享时LAN接口与WAN接口的对应关系为:接入蜂窝移动网络的WAN接口,对应LAN接口中的P2P(GO)接口;接入WLAN网络的WAN接口,对应LAN接口中的Soft AP接口。也就是说,当手机401启动网络共享时,不依赖手机401的蜂窝移动网络或WLAN网络:当手机401的WAN接口处于蜂窝移动网络激活时,LAN接口启动P2P(GO),手机401的状态显示蜂窝移动网络共享已开启;当手机401的WAN接口处于WLAN网络激活时,LAN接口启动Soft AP,手机401的状态显示WLAN网络共享已开启。
在图4C所示实施例的基础上,若手机的WAN接口发生切换,手机主动断开LAN接口,重新创建对应的LAN接口,已断开的对端设备在中断连接后可以手动或自动重连。例如,若手机401从接入WLAN网络切换成接入蜂窝移动网络,手机主动断开WLAN网络对应的LAN接口,即Soft AP接口,重新启动蜂窝移动网络对应的LAN接口,即P2P(GO)接口。PC402在与手机401中断连接后,若为非首次连接的情形,PC402可以自动搜索手机401的共享网络并重连;若为首次连接的情形,PC402上由用户触发搜索共享网络事件,PC402响应该搜索共享网络事件,获取用户输入的密码后,验证成功则与手机重连。
在如图4A至图4C的示例中,共享网络的设备为手机,对端设备402为PC。在其他示例中,共享网络的设备还可以为可以接入蜂窝移动网络和WLAN网络的PAD、可穿戴设备等电子设备。对端设备还可以为,如PAD、电视机或智慧屏等电子设备。
在图4B和图4C所示实施例的基础上,本申请一些实施例中,在手机401上,用户可以选择开启或关闭共享网络。用户可以设置共享网络的网络名称、加密类型和密码等。手机401可以对当前的共享状态是蜂窝移动网络还是WLAN网络进行提示。
本申请一些实施例中,通过启动手机401的Soft AP接口和P2P(GO)接口建立与PC402的无线连接通路时,可以给手机配置统一的网络名称和密码。网络名称例如服务集标识(Service Set Identifier,SSID)。
在本申请一些实施例中,当手机401与PC402建立Wi-Fi P2P无线连接通路,实现手机的网络共享时,一方面,PC402通过手机401接入网络,可以与因特网进行数据交互。另一方面,手机401与PC402相互之间还可以传输Wi-Fi Direct业务数据。此时,路由控制模块的工作流程与第一应用场景类似,请参见第一应用场景中的相关描述。
在图4A至图4C的应用场景中,如图4D所示,提供无线上网的方法包括如下几个步骤:
S410,手机可以连接蜂窝移动网络和WLAN网络,可以两个网络都处于激活状态,或者其中一个网络处于激活状态。
S420,手机开启与一个激活状态的网络对应的LAN接口,通过LAN接口建立与对端设备的无线连接,手机将网络数据在WAN接口和LAN接口间转发,将手机的网络共享给对端设备。
其中,手机的WAN接口激活蜂窝移动网络,还是WLAN网络,与手机的网络优先级设置相关,通常情况下,优先激活WLAN网络。手机的LAN接口包括Soft AP接口和P2P(GO)接口。
在图4B所示实施例的基础上,若手机401的WAN接口接入蜂窝移动网络,开启与蜂窝移动网络对应的LAN接口,即Soft AP接口,手机401通过Soft AP接口与PC402建立无线连接。若手机401的WAN接口接入WLAN网络,开启与WLAN网络对应LAN接口,即P2P(GO)接口,手机401通过P2P(GO)接口与PC402建立Wi-Fi P2P连接。
在图4C所示实施例的基础上,若手机401的WAN接口接入WLAN网络,开启与WLAN网络对应的LAN接口,即Soft AP接口。手机401通过Soft AP接口与PC402建立无线连接。若手机401 的WAN接口接入蜂窝移动网络,开启与蜂窝移动网络对应LAN接口,即P2P(GO)接口。手机401通过P2P(GO)接口与PC402建立Wi-Fi P2P连接。
在图4B和图4C的实施例中,手机配置的路由控制模块把从WAN接口上收到的来自互联网的数据包,根据数据包的目的地址进行定向并转发到LAN接口,再由LAN接口将数据包发送至PC。或者,手机配置的路由控制模块把从LAN接口上收到来自PC的数据包,根据数据包的目的地址进行定向并转发到WAN接口,再由WAN接口上传至互联网,因此实现PC可以通过手机上网。
因此,在第二应用场景中,当手机连接WLAN网络,例如Wi-Fi网络,手机与对端设备建立点对点的通信连接,可以将接入的Wi-Fi网络扩展共享给对端设备。当Wi-Fi网络无法上网时,手机切换到蜂窝移动网络,手机与对端设备建立点对点的通信连接,可以将接入的蜂窝移动网络扩展共享给对端设备。在手机切换网络的情况下,对端设备可以持续获取上网能力。
图5A至图5C所示,为本申请实施例提出的提供无线上网方法的第三个应用场景示意图。
如图5A所示,第三个应用场景中,手机501可以通过接入蜂窝移动网络和WLAN以实现联网。手机501与对端设备502建立了Wi-Fi Direct的点对点通信连接,即建立Wi-Fi P2P无线连接通路。对端设备502为电视(TV)。应理解,TV 502包括Wi-Fi模块。
其中,手机401和TV 502建立Wi-Fi P2P无线连接通路,手机401的角色为GO,TV 502的角色为GC。
在本申请一些实施例中,手机501与TV 502可以通过Wi-Fi P2P无线连接通路进行Wi-Fi Direct业务数据传输,例如,通过Wi-Fi Direct的文件传输,或基于Wi-Fi Direct建立Wi-Fi投屏(Wi-Fi Display),进行投屏数据的传输。
如图5B所示,手机中Wi-Fi模块的WAN接口包括分别连接蜂窝移动网络和WLAN网络的WAN接口。在一些情形下,若WLAN网络无法上网时,可以切换到蜂窝移动网络;在另一些情形下,若蜂窝移动网络无法上网时,可以切换到WLAN网络。LAN接口包括Wi-Fi P2P接口,即图5B中的P2P(GO)接口。
继续参见图5B所示,通过给手机配置路由控制模块,路由控制模块把从WAN接口上收到的数据包,根据数据包的目的地址进行定向并转发到LAN接口,或把从LAN接口上收到数据包,根据数据包的目的地址进行定向并转发到WAN接口,从而实现网络数据的转发。
在图5B所示的实施例中,手机可以连接蜂窝移动网络和WLAN网络,通过路由控制模块将网络数据转发至LAN接口,再由LAN接口转发至其他Wi-Fi终端设备;或者,由LAN接口接收的来自其他Wi-Fi终端设备的网络数据,通过路由控制模块由LAN接口转发至WAN接口,再由WAN接口上传至互联网,从而实现将手机的网络共享给其它Wi-Fi终端设备。在没有部署Wi-Fi AP和有线网络的情形下,TV 502也能够进行正常的联网,节省了建设网络的成本。
在图5B所示的实施例中,无论当前手机WAN接口处于蜂窝移动网络还是WLAN网络激活,LAN接口固定启动P2P(GO)接口。也就是说,WAN接口切换不影响LAN接口。
需要说明的是,在一些情形下,若WAN接口从蜂窝移动网络切换到WLAN网络,LAN接口上的信道,可能会因为需要跟随WLAN的信道,而发生切换。例如,当WAN接口处于蜂窝移动网络激活时,LAN接口使用的是信道6;而当WAN接口从蜂窝移动网络切换到WLAN网络,WAN接口使用的是信道1,那么,为了避免信号干扰,LAN接口的信道可以切换到信道1。又如,当WAN接口处于蜂窝移动网络激活时,LAN接口使用的是信道6;而当WAN接口从蜂窝移动网络切换到WLAN网络,WLAN使用的是信道6,那么,为了避免信号干扰,LAN接口的信道可以切换到信道1。
还需要说明的是,由于Wi-Fi Direct技术允许多个Wi-Fi终端同时建立无线连接,因此,在其他实施例中,可以设置多个对端设备,多个对端设备可以通过手机实现联网。
在图5B所示实施例的基础上,本申请一些实施例中,在手机501上,用户可以选择开启或关闭共享网络。用户可以设置共享网络的网络名称、加密类型和密码等。网络名称例如服务集标识(Service Set Identifier,SSID)。手机501可以对当前的共享状态是蜂窝移动网络还是WLAN网络进行提示。例如,若TV 502与手机501首次连接,手机501未设置共享网络加密的情形,TV502可以自动搜索手机401的共享网络并与手机建立Wi-Fi P2P的无线连接通路;若为首次连接,且手机501设置共享网络加密的情形,TV 502上由用户触发搜索共享网络事件,TV 502响应该搜索共享网络事件,获取用户输入的密码后,验证成功则与手机建立Wi-Fi P2P的无线连接通路。
本申请一些实施例中,若手机WAN接口发生切换时,可以有状态提示当前分享网络是蜂窝移动网络还是WLAN网络。例如,当前手机WAN接口处于蜂窝移动网络激活时,手机状态显示蜂窝移动网络共享已开启;当前手机WAN接口处于WLAN网络激活时,手机状态显示WLAN网络共享已开启。
在本申请一些实施例中,当手机501与TV 502建立Wi-Fi P2P无线连接通路,实现手机的网络共享时,一方面,TV 502通过手机501接入网络,可以与因特网进行数据交互。另一方面,手机501与TV502相互之间还可以传输Wi-Fi Direct业务数据。此时,路由控制模块的工作流程与第一应用场景类似,请参见第一应用场景中的相关描述。
在图5A和图5B的应用场景中,如图5C所示,提供无线上网的方法包括如下几个步骤:
S510,两个包括Wi-Fi模块的电子设备,第一电子设备和第二电子设备,通过Wi-Fi直连建立点对点的通信连接。
在如图5A和图5B的示例中,两个包括Wi-Fi模块的电子设备包括手机和TV,手机和TV建立了Wi-Fi P2P无线连接通路。
在其他示例中,还可以为其他电子设备,例如,第一电子设备为可以连接蜂窝移动网络和WLAN网络的PAD,第二个电子设备为PC、TV或智慧屏等。
S520,第一电子设备同时连接蜂窝移动网络和WLAN网络,两个网络可以都处于激活状态,或者其中一个网络处于激活状态。
S530,第一电子设备将蜂窝移动网络或WLAN网络的网络数据,通过建立的Wi-Fi P2P无线连接通路转发给第二电子设备;第二电子设备将网络数据通过建立的Wi-Fi P2P无线连接通路发给第一电子设备并由第一电子设备转发至蜂窝移动网络或WLAN网络。
第一电子设备将连接的蜂窝移动网络和WLAN网络通过网络转发,将网络共享给其他Wi-Fi终端设备,第一电子设备共享方式中的LAN接口固定为P2P(GO)接口。无论第一电子设备当前处于蜂窝移动网络还是WLAN网络,LAN接口固定启动P2P(GO)接口。路由控制模块实现WAN接口和LAN接口间的网络数据定向和转发。
需要说明的是,步骤S510和S520的编号不能解释为对两个步骤时间顺序的限定,在本申请实施例中,不限定两个步骤的时序,步骤S510可以在步骤S520之前执行,步骤S510也可以在步骤S520之后执行,步骤S510也可以与步骤S520同时执行。
在第三个应用场景中,第一电子设备与第二电子设备已经建立Wi-Fi点对点通信连接,当第一电子设备接入WLAN网络时,可以通过已经存在的Wi-Fi点对点连接,扩展共享给第二电子设备,当第一电子设备无法接入WLAN网络而切换到蜂窝移动网络时,第二电子设备可以持续获取上网能 力。
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现可实现上述各个方法实施例中的步骤。
本申请实施例提供了一种计算机程序产品,当计算机程序产品在移动终端上运行时,使得移动终端执行时实现可实现上述各个方法实施例中的步骤。
所述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质至少可以包括:能够将计算机程序代码携带到拍照装置/电子设备的任何实体或装置、记录介质、计算机存储器、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读介质不可以是电载波信号和电信信号。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
在本申请所提供的实施例中,应该理解到,所揭露的电子设备和方法,可以通过其它的方式实现。例如,以上所描述的电子设备实施例仅仅是示意性的。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申 请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。

Claims (20)

  1. 一种提供无线上网的系统,其特征在于,所述系统包括:第一电子设备和第二电子设备;
    所述第一电子设备用于:
    接收用户的第一操作,所述第一操作用于将所述第一电子设备中的第一数据分享或者投屏到所述第二电子设备;
    响应于所述第一操作,与所述第二电子设备建立Wi-Fi直连;
    接收用户的第二操作,所述第二操作用于打开所述第一电子设备的网络共享功能;
    所述第二电子设备用于:
    接收来自所述第一电子设备的所述第一数据;
    通过所述第一电子设备的网络共享功能与网络侧进行数据收发。
  2. 如权利要求1所述的系统,其特征在于,所述第一操作包括选定所述第一数据的操作,开启分享控件的操作,以及选定所述第二电子设备作为接收设备的操作。
  3. 如权利要求1所述的系统,其特征在于,所述第二操作包括开启网络共享控件的操作。
  4. 如权利要求3所述的系统,其特征在于,所述第二操作还包括输入正确密码的操作。
  5. 如权利要求1至4任一项所述的系统,其特征在于,所述第一电子设备包括Wi-Fi模块和路由控制模块,所述Wi-Fi模块包括广域网WAN接口和局域网LAN接口,局域网LAN接口为Wi-Fi点对点P2P接口,所述第一电子设备通过所述Wi-Fi P2P接口与所述第二电子设备建立Wi-Fi直连;
    所述第一电子设备通过所述WAN接口接入蜂窝移动网络或无线局域网WLAN网络;
    所述第二操作用于开启所述路由控制模块的路由控制功能;
    所述路由控制功能包括:若从所述WAN接口接收到的网络侧的第二数据,目的地址为所述第二电子设备,则将所述第二数据转发到所述Wi-Fi P2P接口,通过所述Wi-Fi P2P接口发送至所述第二电子设备;若从所述Wi-Fi P2P接口接收到的来自所述第二电子设备的第三数据,目的地址为网络侧,则将所述第三数据转发到所述WAN接口,通过所述WAN接口发送至网络侧。
  6. 如权利要求5所述的系统,其特征在于,所述第一电子设备还用于:提示用户网络共享状态,所述网络共享状态包括:蜂窝移动网络共享已开启或WLAN网络共享已开启。
  7. 一种提供无线上网的系统,其特征在于,所述系统包括:第一电子设备和第二电子设备;
    所述第一电子设备用于:
    接收用户的第三操作,所述第三操作用于将所述第一电子设备与所述第二电子设备建立无线连接,打开所述第一电子设备的网络共享功能;
    所述第二电子设备用于:
    通过所述第一电子设备的网络共享功能与网络侧进行数据收发。
  8. 如权利要求7所述的系统,其特征在于,所述第三操作包括开启网络共享控件的操作,或,所述第一电子设备与所述第二电子设备的NFC区域的触碰操作。
  9. 如权利要求8所述的系统,其特征在于,所述第三操作还包括输入正确密码的操作。
  10. 如权利要求7至9任一项所述的系统,其特征在于,所述第一电子设备包括Wi-Fi模块和路由控制模块,所述Wi-Fi模块包括广域网WAN接口和局域网LAN接口,局域网LAN接口为Wi-Fi点对点P2P接口,所述第一电子设备通过所述Wi-Fi P2P接口与所述第二电子设备建立Wi-Fi直连;
    所述第一电子设备通过所述WAN接口接入蜂窝移动网络或无线局域网WLAN网络;
    所述第三操作用于开启所述Wi-Fi P2P接口,通过所述Wi-Fi P2P接口与所述第二电子设备建立Wi-Fi直连,开启所述路由控制模块的路由控制功能;
    所述路由控制功能包括:若从所述WAN接口接收到的网络侧的第二数据,目的地址为所述第二电子设备,则将所述第二数据转发到所述Wi-Fi P2P接口,通过所述Wi-Fi P2P接口发送至所述第二电子设备;若从所述Wi-Fi P2P接口接收到的来自所述第二电子设备的第三数据,目的地址为网络侧,则将所述第三数据转发到所述WAN接口,通过所述WAN接口发送至网络侧。
  11. 如权利要求7至9任一项所述的系统,其特征在于,所述第一电子设备包括Wi-Fi模块和路由控制模块,所述Wi-Fi模块包括广域网WAN接口和局域网LAN接口,局域网LAN接口包括Wi-Fi点对点P2P接口和软soft访问网点AP接口,
    所述第一电子设备通过所述WAN接口接入蜂窝移动网络或无线局域网WLAN网络,所述第三操作用于开启所述Wi-Fi P2P接口或所述softAP接口,通过所述Wi-Fi P2P接口与所述第二电子设备建立Wi-Fi直连,或通过所述softAP接口与所述第二电子设备建立无线热点连接,开启所述路由控制模块的路由控制功能;
    所述路由控制功能包括:若从所述WAN接口接收到的蜂窝移动网络侧的第二数据,目的地址为所述第二电子设备,则将所述第二数据转发到所述Wi-Fi P2P接口或所述softAP接口,通过所述Wi-Fi P2P接口或所述softAP接口发送至所述第二电子设备;若从所述Wi-Fi P2P接口或所述softAP接口接收到的来自所述第二电子设备的第三数据,目的地址为网络侧,则将所述第三数据转发到所述WAN接口,通过所述WAN接口发送至网络侧;
    若所述第一电子设备通过所述WAN接口接入所述蜂窝移动网络,则所述第一电子设备响应于监听到的开启网络共享事件,启动所述soft AP接口,通过所述soft AP接口与所述第二电子设备建立无线热点连接;若所述第一电子设备通过所述WAN接口接入所述WLAN网络,则所述第一电子设备响应于监听到的开启网络共享事件,启动所述Wi-Fi P2P接口,通过所述Wi-Fi P2P接口与所述第二电子设备建立Wi-Fi直连;或,
    若所述第一电子设备通过所述WAN接口接入所述蜂窝移动网络,则所述第一电子设备响应于监听到的开启网络共享事件,启动所述Wi-Fi P2P接口,通过所述Wi-Fi P2P接口与所述第二电子设备建立Wi-Fi直连;若所述第一电子设备通过所述WAN接口接入所述WLAN网络,则所述第一电子设备响应于监听到的开启网络共享事件,启动所述soft AP接口,通过所述soft AP接口与所述第二电子设备建立无线热点连接。
  12. 如权利要求7至9任一项所述的系统,其特征在于,所述第一电子设备还用于:提示用户网络共享状态,所述网络共享状态包括:蜂窝移动网络共享已开启或WLAN网络共享已开启。
  13. 一种提供无线上网的方法,其特征在于,包括:
    第一电子设备接收用户的第一操作,响应于所述第一操作,与第二电子设备建立Wi-Fi直连;所述第一操作用于将所述第一电子设备中的第一数据分享或者投屏到所述第二电子设备;
    所述第二电子设备接收来自所述第一电子设备的所述第一数据;
    所述第一电子设备接收用户的第二操作,响应于所述第二操作,打开网络共享功能;所述第二操作用于打开所述第一电子设备的网络共享功能;
    所述第二电子设备通过所述第一电子设备的网络共享功能与网络侧进行数据收发。
  14. 如权利要求13所述的方法,其特征在于,所述第一操作包括选定所述第一数据的操作, 开启分享控件的操作,以及选定所述第二电子设备作为接收设备的操作。
  15. 如权利要求13所述的方法,其特征在于,所述第二操作包括开启网络共享控件的操作。
  16. 如权利要求13至15任一项所述的方法,其特征在于,所述第一电子设备包括Wi-Fi模块,所述Wi-Fi模块包括广域网WAN接口和局域网LAN接口,局域网LAN接口为Wi-Fi点对点P2P接口;所述第一电子设备通过所述WAN接口接入蜂窝移动网络或无线局域网WLAN网络;
    所述第一电子设备接收用户的第一操作,响应于所述第一操作,与第二电子设备建立Wi-Fi直连,包括:
    第一电子设备接收用户的第一操作,响应于所述第一操作,通过所述Wi-FiP2P接口与第二电子设备建立Wi-Fi直连;
    所述第二电子设备通过所述第一电子设备的网络共享功能与网络侧进行数据收发,包括:
    若从所述WAN接口接收到的网络侧的第二数据,目的地址为所述第二电子设备,则将所述第二数据转发到所述Wi-Fi P2P接口,通过所述Wi-Fi P2P接口发送至所述第二电子设备;若从所述Wi-Fi P2P接口接收到的来自所述第二电子设备的第三数据,目的地址为网络侧,则将所述第三数据转发到所述WAN接口,通过所述WAN接口发送至网络侧。
  17. 一种提供无线上网的方法,其特征在于,包括:
    第一电子设备接入蜂窝移动网络或无线局域网WLAN网络;
    所述第一电子设备接收用户的第三操作,响应于所述第三操作,与第二电子设备建立无线连接,并打开网络共享功能;
    所述第二电子设备通过所述第一电子设备的网络共享功能与网络侧进行数据收发。
  18. 如权利要求17所述的方法,其特征在于,所述响应于所述第三操作,与第二电子设备建立无线连接,包括:
    若所述第一电子设备接入所述蜂窝移动网络,则所述第一电子设备响应于所述第三操作,与所述第二电子设备建立无线热点连接;若所述第一电子设备接入所述WLAN网络,则所述第一电子设备响应于所述第三操作,与所述第二电子设备建立Wi-Fi直连;或,
    若所述第一电子设备接入所述蜂窝移动网络,则所述第一电子设备响应于所述第三操作,与所述第二电子设备建立Wi-Fi直连;若所述第一电子设备接入所述WLAN网络,则所述第一电子设备响应于所述第三操作,与所述第二电子设备建立无线热点连接。
  19. 一种提供无线上网的第一电子设备,其特征在于,所述第一电子设备接收用户的第一操作,响应于所述第一操作,与第二电子设备建立Wi-Fi直连;所述第一操作用于将所述第一电子设备中的第一数据分享或者投屏到所述第二电子设备;
    所述第一电子设备将所述第一数据发送至所述第二电子设备;
    所述第一电子设备接收用户的第二操作,响应于所述第二操作,打开网络共享功能;所述第二操作用于打开所述第一电子设备的网络共享功能,所述第一电子设备的网络共享功能用于实现所述第二电子设备与网络侧的数据收发。
  20. 一种提供无线上网的第一电子设备,其特征在于,所述第一电子设备接入蜂窝移动网络或无线局域网WLAN网络,所述第一电子设备接收用户的第三操作,响应于所述第三操作,与第二电子设备建立无线连接,并打开网络共享功能,所述第一电子设备的网络共享功能用于实现所述第二电子设备与网络侧的数据收发。
PCT/CN2021/084335 2020-04-30 2021-03-31 一种提供无线上网的系统、方法及电子设备 Ceased WO2021218544A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP21797291.8A EP4135470A4 (en) 2020-04-30 2021-03-31 SYSTEM, METHOD AND ELECTRONIC DEVICE FOR PROVIDING A WIRELESS CONNECTION
US17/921,514 US20230199886A1 (en) 2020-04-30 2021-03-31 System and method for providing wireless network access, and electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010363772.7A CN113676902B (zh) 2020-04-30 2020-04-30 一种提供无线上网的系统、方法及电子设备
CN202010363772.7 2020-04-30

Publications (1)

Publication Number Publication Date
WO2021218544A1 true WO2021218544A1 (zh) 2021-11-04

Family

ID=78331753

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/084335 Ceased WO2021218544A1 (zh) 2020-04-30 2021-03-31 一种提供无线上网的系统、方法及电子设备

Country Status (4)

Country Link
US (1) US20230199886A1 (zh)
EP (1) EP4135470A4 (zh)
CN (1) CN113676902B (zh)
WO (1) WO2021218544A1 (zh)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DK4018606T3 (en) * 2019-09-27 2023-10-16 Viasat Inc Method and apparatus for enabling offloading network traffic via a connected cellular device
JP7494710B2 (ja) * 2020-11-25 2024-06-04 株式会社デンソー 無線通信制御装置、無線通信装置、及び無線通信制御方法
CN114501674B (zh) * 2021-06-10 2022-12-30 荣耀终端有限公司 一种热点连接方法、终端设备及存储介质
CN116489747A (zh) * 2022-01-14 2023-07-25 荣耀终端有限公司 通信方法及装置
CN117255434A (zh) * 2022-06-11 2023-12-19 荣耀终端有限公司 数据传输管理方法、电子设备及存储介质
CN119854893B (zh) * 2023-10-11 2026-01-30 荣耀终端股份有限公司 数据传输控制方法及装置
CN120238851B (zh) * 2023-12-21 2026-01-06 荣耀终端股份有限公司 网络共享方法、系统、电子设备及可读存储介质
CN120769366A (zh) * 2024-03-30 2025-10-10 荣耀终端股份有限公司 设备通信方法及电子设备
CN120751356A (zh) * 2024-08-27 2025-10-03 荣耀终端股份有限公司 一种通信方法、装置、设备、程序产品及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150350690A1 (en) * 2014-06-02 2015-12-03 Sonifi Solutions, Inc. Implementing screen sharing functionality over a communication network
US20160174277A1 (en) * 2014-12-12 2016-06-16 Samsung Electronics Co., Ltd. Method of connecting wireless network and electronic device thereof
CN106060970A (zh) * 2016-03-11 2016-10-26 北京奇虎科技有限公司 智能终端及其网络配置方法
CN109743712A (zh) * 2018-12-29 2019-05-10 Oppo广东移动通信有限公司 数据传输控制方法及相关产品

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9474094B2 (en) * 2012-08-07 2016-10-18 Intel Corporation Methods and arrangements to establish peer-to-peer link
US9801120B2 (en) * 2014-05-30 2017-10-24 Apple Inc. Client-initiated tethering for electronic devices
US9526032B2 (en) * 2014-09-26 2016-12-20 Apple Inc. Network bandwidth sharing for small mobile devices
US9532221B2 (en) * 2014-11-18 2016-12-27 Motorola Mobility Llc Communicating credentials and content between multiple mobile electronic devices located within content sharing geographical area
CN106535092A (zh) * 2016-11-01 2017-03-22 惠州Tcl移动通信有限公司 一种网络共享方法、接入网络方法及系统
CN107426726A (zh) * 2017-07-07 2017-12-01 珠海市魅族科技有限公司 网络分享方法及装置、终端及存储介质
CN116669040A (zh) * 2018-05-31 2023-08-29 华为技术有限公司 应用功能的实现方法及电子设备
CN112703478B (zh) * 2018-09-11 2024-07-05 华为技术有限公司 数据分享的方法、图形用户界面、电子设备及系统
US10966282B2 (en) * 2018-12-31 2021-03-30 T-Mobile Usa, Inc. Providing network access via mobile device peer to peer sharing
CN109640310B (zh) * 2019-02-12 2021-07-06 Oppo广东移动通信有限公司 数据传输控制方法及相关产品
US10805803B1 (en) * 2019-04-03 2020-10-13 Genfintech, Inc. Systems and methods for mobile peer-to-peer content sharing
CN111026484A (zh) * 2019-12-02 2020-04-17 维沃移动通信有限公司 一种应用分享方法、第一电子设备及计算机可读存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150350690A1 (en) * 2014-06-02 2015-12-03 Sonifi Solutions, Inc. Implementing screen sharing functionality over a communication network
US20160174277A1 (en) * 2014-12-12 2016-06-16 Samsung Electronics Co., Ltd. Method of connecting wireless network and electronic device thereof
CN106060970A (zh) * 2016-03-11 2016-10-26 北京奇虎科技有限公司 智能终端及其网络配置方法
CN109743712A (zh) * 2018-12-29 2019-05-10 Oppo广东移动通信有限公司 数据传输控制方法及相关产品

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4135470A4

Also Published As

Publication number Publication date
US20230199886A1 (en) 2023-06-22
EP4135470A4 (en) 2023-10-04
CN113676902A (zh) 2021-11-19
CN113676902B (zh) 2024-04-23
EP4135470A1 (en) 2023-02-15

Similar Documents

Publication Publication Date Title
EP4084486B1 (en) Cross-device content projection method, and electronic device
CN111602379B (zh) 语音通话方法、电子设备及系统
WO2021218544A1 (zh) 一种提供无线上网的系统、方法及电子设备
WO2021027616A1 (zh) 一种通过遥控器实现一碰投屏的终端设备、方法以及系统
US20230422154A1 (en) Method for using cellular communication function, and related apparatus and system
WO2021175300A1 (zh) 数据传输方法、装置、电子设备和可读存储介质
WO2021043286A1 (zh) 蓝牙连接的方法和电子设备
WO2022063159A1 (zh) 一种文件传输的方法及相关设备
WO2022033320A1 (zh) 蓝牙通信方法、终端设备及计算机可读存储介质
WO2022100610A1 (zh) 投屏方法、装置、电子设备及计算机可读存储介质
WO2020224447A1 (zh) 一种在联系人中添加智能家居设备的方法及系统
WO2022042770A1 (zh) 控制通信服务状态的方法、终端设备和可读存储介质
WO2021197071A1 (zh) 无线通信系统及方法
CN113645571A (zh) 数据传输方法及电子设备
WO2023071940A1 (zh) 跨设备的导航任务的同步方法、装置、设备及存储介质
WO2022222733A1 (zh) 数据传输方法及相关设备
CN114928900B (zh) 通过WiFi直接连接进行传输的方法和装置
WO2022152174A1 (zh) 一种投屏的方法和电子设备
WO2024260185A1 (zh) 一种数据传输的方法、终端及系统
CN115002939B (zh) 加入WiFi群组的方法和装置
WO2022267917A1 (zh) 蓝牙通信方法及系统
WO2024002137A1 (zh) 通信方法、通信系统及电子设备
WO2023051204A1 (zh) 跨设备连接方法、电子设备及存储介质
WO2023280160A1 (zh) 一种通道切换方法及装置
WO2026040530A1 (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: 21797291

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2021797291

Country of ref document: EP

Effective date: 20221109

NENP Non-entry into the national phase

Ref country code: DE