CN114928898B - Method and device for establishing session based on WiFi direct connection - Google Patents

Method and device for establishing session based on WiFi direct connection Download PDF

Info

Publication number
CN114928898B
CN114928898B CN202210841500.2A CN202210841500A CN114928898B CN 114928898 B CN114928898 B CN 114928898B CN 202210841500 A CN202210841500 A CN 202210841500A CN 114928898 B CN114928898 B CN 114928898B
Authority
CN
China
Prior art keywords
wifi direct
direct connection
request
connection
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210841500.2A
Other languages
Chinese (zh)
Other versions
CN114928898A (en
Inventor
邱利松
张梦龙
陈英涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202210841500.2A priority Critical patent/CN114928898B/en
Priority to CN202211600127.8A priority patent/CN117425227A/en
Publication of CN114928898A publication Critical patent/CN114928898A/en
Application granted granted Critical
Publication of CN114928898B publication Critical patent/CN114928898B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/50Secure pairing of devices
    • H04W12/55Secure pairing of devices involving three or more devices, e.g. group pairing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/40Connection management for selective distribution or broadcast
    • 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]

Landscapes

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

Abstract

The application provides a method and a device for establishing a session based on WiFi direct connection, wherein the method comprises the following steps: the WiFi direct connection module receives a session request from a service APP, and the session request requests that a session based on WiFi direct connection is established; the WiFi direct connection module determines whether a WLAN channel and/or a Bluetooth channel exists between the first device and the second device according to the session request; when the WLAN channel and/or the Bluetooth channel do not exist, the WiFi direct connection module sends a first connection request to the second equipment through Bluetooth broadcasting, and the first connection request requests to establish WiFi direct connection of the service APP; the WiFi direct connection module receives a reply message of the first connection request from the second equipment; and when the WiFi direct connection module receives the reply message of the first connection request, the WiFi direct connection module establishes a session based on WiFi direct connection according to the reply message of the first connection request. The method and the device can reduce the time required for establishing the session based on the WiFi direct connection.

Description

Method and device for establishing session based on WiFi direct connection
Technical Field
The present application relates to the field of communications, and in particular, to a method and an apparatus for establishing a session based on WiFi direct connection.
Background
WiFi (wireless fidelity) is a wireless local area network technology based on the Institute of Electrical and Electronics Engineers (IEEE) 802.11 standard. WiFi direct connection may also be referred to as WiFi point to point (P2P) connection, enabling terminal devices to connect to each other easily without requiring a wireless Access Point (AP) as an intermediary.
WiFi directly links and has extensive application in the terminal equipment field, for example, the super terminal function of cell-phone can establish the WiFi between cell-phone and the smart audio amplifier and the WiFi between cell-phone and the projector directly links and is connected for the user can shift the conversation to smart audio amplifier on, can also make the video of user on the broadcast cell-phone on the projector.
The establishing of the WiFi direct connection by the mobile phone needs to go through the stages of scanning, group role negotiation, dynamic Internet Protocol (IP) address allocation, etc., and the steps are numerous, so that the session based on the WiFi direct connection can be established and completed in a long time.
Disclosure of Invention
The embodiment of the application provides a method and a device for establishing a session based on WiFi direct connection, which can reduce the time required for establishing the session based on WiFi direct connection.
In a first aspect, a method for transmitting over a WiFi direct connection is provided, where the method is applied to a first device, the first device includes a WiFi direct module, and the method includes:
the WiFi direct-connection module receives a session request from a service APP, and the session request requests to establish a session based on WiFi direct-connection;
the WiFi direct connection module determines whether a Wireless Local Area Network (WLAN) channel and/or a Bluetooth channel exist between the first device and the second device according to the session request;
when the WLAN channel and/or the Bluetooth channel do not exist, the WiFi direct connection module sends a first connection request to second equipment through Bluetooth broadcasting, and the first connection request requests to establish WiFi direct connection of the service APP;
the WiFi direct connection module receives a reply message of the first connection request from the second equipment;
and when the WiFi direct connection module receives a reply message of the first connection request, the WiFi direct connection module establishes the session based on the WiFi direct connection according to the reply message of the first connection request.
In the prior art, the first device needs to wait for the WLAN channel or the bluetooth channel to be established when it wants to send the first connection request, but the WLAN channel or the bluetooth channel needs to wait for a long time to be established, so the prior art needs to wait for a long time to send the first connection request. In this embodiment, the WiFi direct connection module first determines whether a WLAN channel and/or a bluetooth channel exists before sending the first connection request, and if the WLAN channel and/or the bluetooth channel does not exist, the first connection request is sent through bluetooth broadcast, and the bluetooth broadcast can be used without waiting for a response of the second device, thereby reducing time required for establishing a session based on WiFi direct connection.
Optionally, the first device further comprises a bluetooth module, and the method further comprises:
the Bluetooth module establishes the Bluetooth channel;
and the WiFi direct connection module sends a second connection request to the second equipment through the Bluetooth channel, and the second connection request requests to establish WiFi direct connection of the service APP.
Because the reliability of the bluetooth broadcast is poor, after the first device sends the first connection request through the bluetooth broadcast, the first device can send a connection request (second connection request) through the bluetooth channel after the bluetooth channel is established, and therefore the success rate of establishing the session based on the WiFi direct connection can be improved.
Optionally, the method further comprises:
the WiFi direct connection module receives a reply message of the second connection request from the second device;
when the WiFi direct-connection module does not receive the reply message of the first connection request, the WiFi direct-connection module establishes the conversation based on the WiFi direct-connection according to the reply message of the second connection request;
and when the WiFi direct connection module receives the reply message of the first connection request, the WiFi direct connection module discards the reply message of the second connection request.
If the WiFi direct connection module does not receive the reply message of the first connection request, which indicates that the first connection request is unsuccessfully sent through bluetooth broadcast, the WiFi direct connection module may establish a session based on WiFi direct connection according to the reply message of the second connection request, so that a success rate of establishing the session based on WiFi direct connection may be improved. If the WiFi direct connection module receives the reply message of the first connection request, it indicates that the first connection request is successfully sent through bluetooth broadcast, and the WiFi direct connection module has already established WiFi direct connection based on the reply message of the first connection request, and does not need to process the reply message of the second connection request, so as to reduce power consumption of the first device.
Optionally, the method further comprises:
when the WLAN channel and the Bluetooth channel exist, the WiFi direct connection module sends a third connection request to the second device through the WLAN channel, and the third connection request requests to establish WiFi direct connection of the service APP;
the WiFi direct connection module receives a reply message of the third connection request from the second equipment;
and the WiFi direct connection module establishes the session based on the WiFi direct connection according to a reply message of the third connection request.
When the WLAN channel and the bluetooth channel exist, it indicates that the WLAN channel and the bluetooth channel are successfully established before the WiFi direct connection module receives the session request, and the WiFi direct connection module may select one channel to transmit the connection request without using bluetooth broadcast, so that the success rate of session establishment may be improved. The reliability of the WLAN channel is higher, and when the WLAN channel and the Bluetooth channel exist, the WLAN channel is selected to transmit the third connection request, so that the success rate of session establishment can be further improved.
Optionally, the method further comprises:
when the WLAN channel does not exist and when the Bluetooth channel exists, the WiFi direct connection module sends a fourth connection request to the second device through the Bluetooth channel, and the fourth connection request requests to establish WiFi direct connection of the service APP;
the WiFi direct connection module receives a reply message of the fourth connection request from the second equipment;
and the WiFi direct connection module establishes the session based on the WiFi direct connection according to a reply message of the fourth connection request.
When the WLAN channel does not exist and when the bluetooth channel exists, the reliability of the bluetooth channel is higher than that of the bluetooth broadcast, and the success rate of session establishment can be improved by transmitting a connection request using the bluetooth channel.
Optionally, before the first device further includes a device discovery authentication module, and the WiFi direct module receives a session request from a service APP, the method further includes:
the device discovery authentication module sends a device authentication request to the second device, wherein the device authentication request is used for the second device to authenticate the identity of the first device, and the device authentication request comprises parameters required for establishing WiFi direct connection;
the device discovery authentication module receives a reply message of the device authentication request from the second device, wherein the reply message of the device authentication request is used for the first device to authenticate the identity of the second device, and the reply message of the device authentication request comprises parameters required for establishing the WiFi direct connection;
and the equipment discovery authentication module stores parameters required for establishing the WiFi direct connection in a reply message of the equipment authentication request.
The first device can perform negotiation of WiFi direct connection in the device discovery authentication stage, and compared with performing negotiation of WiFi direct connection after waiting for the discovery authentication to be completed, the time for establishing WiFi direct connection can be reduced in this embodiment.
Optionally, the method further comprises:
the WiFi direct connection module monitors state change of a first WiFi direct connection network, and the first WiFi direct connection network is the WiFi direct connection network of the first equipment;
when the state of the first WiFi direct connection network changes, the WiFi direct connection module sends synchronization information to the second equipment, the synchronization information is used for the second equipment to update the state of the first WiFi direct connection network, and the synchronization information comprises the group role of the first equipment;
the WiFi direct connection module receives a reply message of the synchronization information from the second equipment, wherein the reply message of the synchronization information comprises the group role of the second equipment;
and the WiFi direct connection module updates the group role of the second equipment according to the reply message of the synchronous information.
When the state of the first WiFi direct connection network changes, the first device needs to notify the second device of the new state of the first WiFi direct connection network through the synchronization information. At this time, the first device may implement negotiation of the group role by using the synchronization information and the reply message of the synchronization information. Compared with the negotiation of the group role after the synchronization is finished, the time for establishing the WiFi direct connection can be reduced.
In a second aspect, a method for establishing a WiFi direct connection based session is provided, where the method is applied to a second device, and the second device includes a WiFi direct connection module, and the method includes:
the WiFi direct connection module determines whether a WLAN channel and/or a Bluetooth channel exists between a first device and a second device;
when the WLAN channel and/or the Bluetooth channel do not exist, the WiFi direct connection module receives a Bluetooth broadcast, the Bluetooth broadcast comprises a first connection request, and the first connection request requests to establish WiFi direct connection of a service APP of the first device;
the WiFi direct connection module establishes WiFi direct connection of the business APP according to the first connection request;
and the WiFi direct connection module sends a reply message of the first connection request to the first equipment, wherein the reply message of the first connection request indicates that the second equipment establishes the WiFi direct connection of the service APP.
In the prior art, the second device needs to wait for the WLAN channel or the bluetooth channel to be established to complete to receive the first connection request, but the WLAN channel or the bluetooth channel needs to wait for a longer time to be established, so the prior art needs to wait for a longer time to receive the first connection request. In this embodiment, the WiFi direct connection module may monitor the bluetooth broadcast when determining that the WLAN channel and/or the bluetooth channel does not exist, receive the first connection request through the bluetooth broadcast, and the bluetooth broadcast may be used without waiting for the response of the second device, thereby reducing the time required to establish the session based on the WiFi direct connection.
Optionally, the second device further includes a bluetooth module, and the method further includes:
the Bluetooth module establishes a Bluetooth channel between the second device and the first device;
the WiFi direct connection module receives a second connection request through the Bluetooth channel, and the second connection request requests to establish WiFi direct connection of the service APP;
and the WiFi direct connection module sends a reply message of the second connection request to the first equipment through the Bluetooth channel, and the reply message of the second connection request indicates that the second equipment establishes the WiFi direct connection of the service APP.
Because the reliability of the bluetooth broadcast is poor, after the second device receives the first connection request through the bluetooth broadcast, the second device can receive a connection request (second connection request) through the bluetooth channel after the bluetooth channel is established, and therefore the success rate of establishing a session based on the WiFi direct connection can be improved.
Optionally, the second device further includes a device discovery authentication module, and before the WiFi direct module receives the bluetooth broadcast, the method further includes:
the device discovery authentication module receives a device authentication request from the first device, wherein the device authentication request is used for the second device to authenticate the identity of the first device, and the device authentication request comprises parameters required for establishing WiFi direct connection;
the device discovery authentication module stores parameters required for establishing WiFi direct connection in the device authentication request;
the device discovery authentication module sends a reply message of the device authentication request to the first device, wherein the reply message of the device authentication request is used for the first device to authenticate the identity of the second device, and the reply message of the device authentication request comprises parameters required for establishing WiFi direct connection.
The second device can perform negotiation of WiFi direct connection in the device discovery authentication stage, and compared with performing negotiation of WiFi direct connection after waiting for the discovery authentication to be completed, the time for establishing WiFi direct connection can be reduced in this embodiment.
Optionally, the method further comprises:
the WiFi direct connection module receives synchronization information from the first equipment, the synchronization information is used for the second equipment to update the state of a first WiFi direct connection network, the synchronization information comprises a group role of the first equipment, and the first WiFi direct connection network is the WiFi direct connection network of the first equipment;
the WiFi direct connection module updates the state of the first WiFi direct connection network according to the synchronization information;
and the WiFi direct connection module sends a reply message of the synchronous information to the second equipment, wherein the reply message of the synchronous information comprises the group role of the second equipment.
When the state of the first WiFi direct connection network changes, the first device needs to inform the second device of the new state of the first WiFi direct connection network through the synchronization information. At this time, the second device may implement negotiation of the group role by using the synchronization information and the reply message of the synchronization information. Compared with the negotiation of the group role after the synchronization is finished, the time for establishing the WiFi direct connection can be reduced.
In a third aspect, an apparatus for establishing a WiFi direct connection based session is provided that includes means for performing any of the methods of the first or second aspects. The device can be a terminal device and also can be a chip in the terminal device. The apparatus may include an input unit and a processing unit.
When the apparatus is a terminal device, the processing unit may be a processor, and the input unit may be a communication interface; the terminal device may further comprise a memory for storing computer program code which, when executed by the processor, causes the terminal device to perform the method of any of the first or second aspects.
When the apparatus is a chip in a terminal device, the processing unit may be a logic processing unit inside the chip, and the input unit may be an output interface, a pin, a circuit, or the like; the chip may also include a memory, which may be a memory within the chip (e.g., registers, cache, etc.) or a memory external to the chip (e.g., read-only memory, random access memory, etc.); the memory is adapted to store computer program code which, when executed by the processor, causes the chip to perform any of the methods of the first or second aspects.
In a fourth aspect, a computer-readable storage medium is provided that stores computer program code which, when executed by an apparatus for establishing a WiFi direct connection based session, causes the apparatus to perform any one of the methods of the first or second aspects.
In a fifth aspect, there is provided a computer program product comprising: computer program code which, when run by an apparatus for establishing a WiFi direct connection based session, causes the apparatus to perform any one of the methods of the first or second aspects.
Drawings
FIG. 1 is a schematic diagram of an application scenario suitable for use in the present application;
fig. 2 is a schematic diagram of a WiFi direct connection interface provided herein;
FIG. 3 is a schematic diagram of a hardware architecture of a device suitable for use in the present application;
FIG. 4 is a schematic diagram of a software architecture suitable for use in the apparatus of the present application;
fig. 5 is a schematic diagram of establishing a WiFi direct connection and a data transmission flow after the WiFi direct connection is established according to the present application;
fig. 6 is a schematic diagram of establishing a WiFi direct connection based session provided by the present application;
FIG. 7 is a schematic diagram of another arrangement provided herein for establishing a WiFi direct connection based session;
fig. 8 is a schematic diagram of a procedure for pre-establishing a WiFi direct connection provided in the present application;
fig. 9 is a schematic diagram of another procedure for pre-establishing a WiFi direct connection provided herein;
fig. 10 is a schematic diagram of a session establishment procedure after a WiFi direct connection is pre-established.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of an application scenario suitable for the present application. The mobile phone, the intelligent sound box, the projector and the tablet computer have WiFi functions respectively, and a user can turn on WiFi switches of the mobile phone, the intelligent sound box, the projector and the tablet computer, so that the mobile phone, the intelligent sound box, the projector and the tablet computer can find surrounding electronic equipment.
The user can use the mobile phone as the main device to establish the WiFi direct connection between the mobile phone and other terminal devices, as shown in fig. 2, the mobile phone can start the super terminal function, transmit data of a service Application (APP) through the WiFi direct connection, and the WiFi direct connection is shown by a bidirectional arrow in fig. 1.
For example, after a WiFi direct connection is established between the mobile phone and the smart sound box, the mobile phone can transmit voice data to the smart sound box through the WiFi direct connection, and answer an incoming call through the smart sound box; after WiFi direct connection is established between the mobile phone and the projector, the mobile phone can transmit video data to the projector through the WiFi direct connection, and videos are played through the projector; after WiFi direct connection is established between the mobile phone and the tablet personal computer, the mobile phone can transmit the document to the tablet personal computer through the WiFi direct connection, the document is edited by using the tablet personal computer, and after the document is edited, a user can also transmit the edited document to the mobile phone through the WiFi direct connection.
The above application scenarios are exemplary, and application scenarios applicable to the present application are not limited thereto.
Before the functions of call transfer, screen projection, file sharing and the like are realized, a session based on WiFi direct connection needs to be established. And establishing the WiFi direct connection requires a negotiation channel, which is used for the two ends of the WiFi direct connection to perform the group role negotiation and other steps. The negotiation channel can be a WLAN channel or a Bluetooth channel, and is limited by a WLAN protocol and a Bluetooth protocol, and the WLAN channel and the Bluetooth channel can be established only by multiple times of information interaction, so that a long time is consumed for establishing a session based on WiFi direct connection.
The following describes a method and an apparatus for establishing a WiFi direct connection based session according to an embodiment of the present application.
Fig. 3 is a schematic diagram of a hardware structure of an apparatus suitable for the present application, where the apparatus 100 may be any one of a mobile phone, a foldable electronic device, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a Personal Digital Assistant (PDA), an Augmented Reality (AR) device, a Virtual Reality (VR) device, an Artificial Intelligence (AI) device, a wearable device, a vehicle-mounted device, a smart home device, or a smart city device. The embodiment of the present application does not set any limit to the specific type of the apparatus 100.
The apparatus 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, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identification Module (SIM) card interface 195, and the like. 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, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
The configuration shown in fig. 1 is not intended to specifically limit the apparatus 100. In other embodiments of the present application, the apparatus 100 may include more or fewer components than those shown in FIG. 1, or the apparatus 100 may include a combination of some of the components shown in FIG. 1, or the apparatus 100 may include sub-components of some of the components shown in FIG. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units. For example, the processor 110 may include at least one of the following processing units: an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and a neural Network Processor (NPU). The different processing units may be independent devices or integrated devices.
The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold 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 called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
In some embodiments, processor 110 may include one or more interfaces. For example, the processor 110 may include at least one of the following interfaces: an inter-integrated circuit (I2C) interface, an inter-integrated circuit audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose-output (GPIO) interface, a SIM interface, and a USB interface.
The I2C interface is a bidirectional synchronous serial bus including a serial data line (SDA) and a Serial Clock Line (SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc., respectively, through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through an I2C interface, such that the processor 110 and the touch sensor 180K communicate through an I2C bus interface to implement the touch function of the apparatus 100.
The I2S interface may be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 through an I2S bus, enabling communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit the audio signal to the wireless communication module 160 through the I2S interface, so as to implement a function of receiving a call through a bluetooth headset.
The PCM interface may also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to implement a function of answering a call through a bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus used for asynchronous communications. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit the audio signal to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a bluetooth headset.
MIPI interfaces may be used to connect processor 110 with peripheral devices such as display screen 194 and camera 193. The MIPI interface includes a Camera Serial Interface (CSI), a Display Serial Interface (DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the capture functionality of apparatus 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal interface and may also be configured as a data signal interface. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, and the sensor module 180. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, or a MIPI interface.
The USB interface 130 is an interface conforming to the USB standard specification, and may be, for example, a Mini (Mini) USB interface, a Micro (Micro) USB interface, or a USB Type C (USB Type C) interface. The USB interface 130 may be used to connect a charger to charge the apparatus 100, to transmit data between the apparatus 100 and a peripheral device, and to connect an earphone to play audio through the earphone. The USB interface 130 may also be used to connect other apparatuses 100, such as AR devices.
The connection relationship between the modules shown in fig. 1 is merely illustrative and does not limit the connection relationship between the modules of the apparatus 100. Alternatively, the modules of the apparatus 100 may also adopt a combination of the connection manners in the above embodiments.
The charge management module 140 is used to receive power from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive the current of the wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive electromagnetic waves through a wireless charging coil of the device 100 (current path shown as dashed line). The charging management module 140 may also supply power to the device 100 through the power management module 141 while charging the battery 142.
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 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle number, and battery state of health (e.g., leakage, impedance). Alternatively, the power management module 141 may be disposed in the processor 110, or the power management module 141 and the charging management module 140 may be disposed in the same device.
The wireless communication function of the apparatus 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication applied on the device 100, such as at least one of the following: second generation (2) th generation, 2G) mobile communication solution, third generation (3) th generation, 3G) mobile communication solution, fourth generation (4) th generation, 5G) mobile communication solution, fifth generation (5) th generation, 5G) mobile communication solutions. The mobile communication module 150 may includeAt least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and then transmit the electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and the amplified signal is converted into electromagnetic waves by the antenna 1 to be radiated. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (e.g., speaker 170A, microphone 170B) or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional modules, independent of the processor 110.
Similar to the mobile communication module 150, the wireless communication module 160 may also provide a wireless communication solution applied on the device 100, such as at least one of the following: wireless Local Area Networks (WLANs), bluetooth (BT), global Navigation Satellite System (GNSS), frequency Modulation (FM), near Field Communication (NFC), 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, performs frequency modulation and filtering processing on an electromagnetic wave signal, and transmits the processed signal to the processor 110. The wireless communication module 160 may also receive, frequency modulate and amplify the signal to be transmitted from the processor 110, which is converted to electromagnetic waves via the antenna 2 for radiation.
In some embodiments, antenna 1 of apparatus 100 and mobile communication module 150 are coupled and antenna 2 of apparatus 100 and wireless communication module 160 are coupled such that apparatus 100 may communicate with networks and other devices via wireless communication techniques. The wireless communication technology may include global system for mobile communications (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 (time-division code division multiple access, TD-SCDMA), long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
The device 100 may implement display functionality through the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 may be used to display images or video. The display screen 194 includes a display panel. The display panel may be a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Mini light-emitting diode (Mini LED), a Micro light-emitting diode (Micro LED), a Micro OLED (Micro OLED), or a quantum dot light-emitting diode (QLED). In some embodiments, the device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The device 100 may implement a photographing function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process the data fed back by the camera 193. For example, when a user takes a picture, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, an optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and converting into an image visible to the naked eye. The ISP can perform algorithm optimization on the noise, brightness and color of the image, and can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to be converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into a standard Red Green Blue (RGB), YUV, or the like format image signal. In some embodiments, device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the apparatus 100 selects a frequency bin, the digital signal processor is configured to perform fourier transform or the like on the frequency bin energy.
Video codecs are used to compress or decompress digital video. The apparatus 100 may support one or more video codecs. In this way, the apparatus 100 can play or record video in a variety of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.
The NPU is a processor which uses biological neural network structure for reference, for example, the NPU can rapidly process input information by using a transfer mode between human brain neurons, and can also continuously self-learn. The NPU may implement functions of the apparatus 100, such as intelligent recognition: image recognition, face recognition, speech recognition and text understanding.
The external memory interface 120 may be used to connect an external memory card, such as a Secure Digital (SD) card, to implement the memory capability of the expansion device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The internal memory 121 may include a program storage area and a data storage area. Wherein the storage program area may store an operating system, an application program required for at least one function (e.g., a sound playing function and an image playing function). The storage data area may store data (e.g., audio data and a phonebook) created during use of the device 100. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a nonvolatile memory such as: at least one magnetic disk storage device, a flash memory device, and a universal flash memory (UFS), and the like. The processor 110 performs various processing methods of the apparatus 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The apparatus 100 may implement audio functions, such as music playing and recording, through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor.
The audio module 170 is used to convert digital audio information into an analog audio signal for output, and may also be used to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 or some functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also referred to as a horn, converts the audio electrical signal into a sound signal. The device 100 may listen to music or hands-free talk through the speaker 170A.
The receiver 170B, also called an earpiece, is used to convert the electrical audio signal into a sound signal. When the user uses the device 100 to receive a call or voice information, the voice can be received by placing the receiver 170B close to the ear.
The microphone 170C, also referred to as a microphone or microphone, is used to convert sound signals into electrical signals. When a user makes a call or sends voice information, a voice signal may be input into the microphone 170C by sounding near the microphone 170C. The apparatus 100 may be provided with at least one microphone 170C. In other embodiments, the apparatus 100 may be provided with two microphones 170C to implement the noise reduction function. In other embodiments, three, four, or more microphones 170C may be provided with the apparatus 100 to perform the functions of identifying the source of the sound and directing the recording. The processor 110 may process the electrical signal output by the microphone 170C, for example, the audio module 170 and the wireless communication module 160 may be coupled via a PCM interface, and the microphone 170C converts the ambient sound into an electrical signal (e.g., a PCM signal) and transmits the electrical signal to the processor 110 via the PCM interface; from processor 110, the electrical signal is subjected to a volume analysis and a frequency analysis to determine the volume and frequency of the ambient sound.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be the USB interface 130, or may be a 3.5mm open mobile device 100 platform (OMTP) standard interface, a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used for sensing a pressure signal, and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A may be of a wide variety, and may be, for example, a resistive pressure sensor, an inductive pressure sensor, or a capacitive pressure sensor. The capacitive pressure sensor may be a sensor that includes at least two parallel plates having conductive material, and when a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes, and the apparatus 100 determines the strength of the pressure based on the change in capacitance. When a touch operation is applied to the display screen 194, the device 100 detects the touch operation from the pressure sensor 180A. The apparatus 100 may also calculate the position of the touch from the detection signal of the pressure sensor 180A. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions. For example: when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message; and when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.
The gyro sensor 180B may be used to determine the motion attitude of the apparatus 100. In some embodiments, the angular velocity of device 100 about three axes (i.e., the x-axis, y-axis, and z-axis) may be determined by gyroscope sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the apparatus 100, calculates the distance to be compensated for the lens module according to the shake angle, and allows the lens to counteract the shake of the apparatus 100 by the reverse movement, thereby achieving anti-shake. The gyro sensor 180B can also be used in scenes such as navigation and motion sensing games.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, the device 100 calculates altitude from barometric pressure values measured by the barometric pressure sensor 180C, aiding in positioning and navigation.
The magnetic sensor 180D includes a hall sensor. The device 100 may detect the opening and closing of the flip holster using the magnetic sensor 180D. In some embodiments, when the apparatus 100 is a flip phone, the apparatus 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. The device 100 can set the flip cover to automatically unlock according to the detected opening and closing state of the leather sheath or the detected opening and closing state of the flip cover.
Acceleration sensor 180E may detect the magnitude of acceleration of device 100 in various directions, typically the x-axis, y-axis, and z-axis. The magnitude and direction of gravity can be detected when the device 100 is at rest. The acceleration sensor 180E may also be used to recognize the attitude of the device 100 as an input parameter for applications such as landscape and portrait screen switching and pedometers.
The distance sensor 180F is used to measure a distance. The device 100 may measure distance by infrared or laser. In some embodiments, for example in a shooting scene, the device 100 may utilize the range sensor 180F to range for fast focus.
The proximity light sensor 180G may include, for example, a light-emitting diode (LED) and a photodetector, for example, a photodiode. The LED may be an infrared LED. The device 100 emits infrared light outward through the LED. The apparatus 100 uses a photodiode to detect infrared reflected light from nearby objects. When reflected light is detected, the apparatus 100 may determine that an object is present nearby. When no reflected light is detected, the apparatus 100 can determine that there is no object nearby. The device 100 can detect whether the user holds the device 100 close to the ear or not by using the proximity light sensor 180G, so as to automatically turn off the screen to save power. The proximity light sensor 180G may also be used for automatic unlocking and automatic screen locking in a holster mode or a pocket mode.
The ambient light sensor 180L is used to sense the ambient light level. The device 100 may adaptively adjust the brightness of the display screen 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the device 100 is in a pocket to prevent inadvertent contact.
The fingerprint sensor 180H is used to collect a fingerprint. The device 100 can utilize the collected fingerprint characteristics to achieve the functions of unlocking, accessing an application lock, taking a picture, answering an incoming call, and the like.
The temperature sensor 180J is used to detect temperature. In some embodiments, the apparatus 100 implements a temperature processing strategy using the temperature detected by the temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the apparatus 100 performs a reduction in performance of a processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, the device 100 heats the battery 142 when the temperature is below another threshold to avoid a low temperature causing the device 100 to shut down abnormally. In other embodiments, when the temperature is below a further threshold, the apparatus 100 performs a boost on the output voltage of the battery 142 to avoid abnormal shutdown due to low temperature.
The touch sensor 180K is also referred to as a touch device. The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also referred to as a touch screen. The touch sensor 180K is used to detect a touch operation applied thereto or in the vicinity thereof. The touch sensor 180K may pass the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided via the display screen 194. In other embodiments, the touch sensor 180K may be disposed on a surface of the device 100 at a different location than the display screen 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, the bone conduction sensor 180M may acquire a vibration signal of the human vocal part vibrating the bone mass. The bone conduction sensor 180M may also contact the human pulse to receive the blood pressure pulsation signal. In some embodiments, the bone conduction sensor 180M may also be disposed in a headset, integrated into a bone conduction headset. The audio module 170 may analyze a voice signal based on the vibration signal of the bone mass vibrated by the sound part acquired by the bone conduction sensor 180M, so as to implement a voice function. The application processor can analyze heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M, so that the heart rate detection function is realized.
The keys 190 include a power-on key and a volume key. The keys 190 may be mechanical keys or touch keys. The device 100 can receive the key input signal and realize the function related to the case input signal.
The motor 191 may generate vibrations. The motor 191 may be used for incoming call prompts as well as for touch feedback. The motor 191 may generate different vibration feedback effects for touch operations applied to different applications. The motor 191 may also produce different vibration feedback effects for touch operations applied to different areas of the display screen 194. Different application scenarios (e.g., time reminders, received messages, alarms, and games) may correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
Indicator 192 may be an indicator light that may be used to indicate a change in charge status and charge level, or may be used to indicate a message, missed call, and notification.
The SIM card interface 195 is used to connect a SIM card. The SIM card may be inserted into the SIM card interface 195 to make contact with the device 100, or may be removed from the SIM card interface 195 to make separation from the device 100. The apparatus 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The same SIM card interface 195 may be inserted with multiple cards at the same time, which may be of the same or different types. The SIM card interface 195 may also be compatible with external memory cards. The device 100 interacts with the network through the SIM card to implement functions such as communication and data communication. In some embodiments, the device 100 employs an embedded SIM (eSIM) card, which can be embedded in the device 100 and cannot be separated from the device 100.
The hardware system of the apparatus 100 is described in detail above, and the software system of the apparatus 100 is described below. The software system may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture or a cloud architecture, and the software system of the apparatus 100 is exemplarily described in the embodiment of the present application by taking the layered architecture as an example.
As shown in fig. 4, the software system adopting the layered architecture is divided into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the software system may be divided into four layers, an application layer, an application framework layer, an Android Runtime (Android Runtime) and system library, and a kernel layer from top to bottom, respectively.
The application layer may include a business APP and a super terminal service.
The service APP is used for providing services required by the user, for example, the service APP can provide super-call services for the user, and calls are transferred from the mobile phone to the smart speaker.
The super terminal service is used for creating and managing the WiFi direct connection.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application of the application layer. The application framework layer may include some predefined functions. The application framework layer may include a resource manager and a notification manager.
The resource manager provides various resources for the application program, such as localized character strings, icons, pictures, layout files, and video files, and may facilitate the generation of a User Interface (UI).
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a brief dwell, and does not require user interaction. Such as notification managers, are used for download completion notifications and message reminders. The notification manager may also manage notifications that appear in a chart or scrollbar text form in a status bar at the top of the system, such as notifications for applications running in the background. The notification manager may also manage notifications that appear on the screen in dialog windows, such as prompting for text messages in a status bar, sounding a prompt tone, vibrating the electronic device, and flashing an indicator light.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used to perform the functions of object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
The system library may include a plurality of functional modules, such as: surface managers (surface managers), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), and 2D graphics engines (e.g., SGL).
The surface manager is used for managing the display subsystem and providing fusion of the 2D layer and the 3D layer for a plurality of application programs.
The media library supports playback and recording of multiple audio formats, playback and recording of multiple video formats, and still image files. The media library may support a variety of audio-video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.
The three-dimensional graphics processing library may be used to implement three-dimensional graphics drawing, image rendering, compositing, and layer processing.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The kernel layer may include a system framework WiFi direct interface, a network service interface, a display driver, and a modem driver, where the system framework WiFi direct interface is a physical layer interface of a WiFi direct connection, and the network service interface is a transport layer interface of the WiFi direct connection.
It is understood that the hardware structure and software architecture shown in fig. 3 and 4 are only exemplary descriptions of the apparatus 100, and do not limit the apparatus 100 in hardware and software, and the apparatus 100 may be implemented by other types of hardware structures and software architectures.
The software system and hardware system workflow of the apparatus 100 are exemplarily described below with reference to a scenario of establishing a WiFi direct connection.
In some cases, the apparatus 100 may display an interface including prompt information (e.g., information prompting the user to find a device) on the display screen 194 through the display driver, so that the user can instruct the apparatus 100 to perform the next process based on the prompt information. When a user needs to operate on the interface of the device 100, the touch sensor 180K generates a hardware interrupt, the hardware interrupt is sent to the kernel layer, the kernel layer processes the touch operation into an interaction event, and the interaction event includes information such as a touch coordinate and a time stamp of the touch operation; subsequently, the kernel layer identifies a control corresponding to the interaction event, and notifies an Application (APP) corresponding to the control. And when the touch operation is the operation of establishing the WiFi direct connection, the service APP calls a WiFi direct connection module through the API according to the interaction event to establish the WiFi direct connection.
Fig. 5 shows the establishment of a WiFi direct connection and a data transmission flow after the establishment of the WiFi direct connection.
The mobile phone can discover terminal devices with wireless communication functions (such as WiFi function and Bluetooth function) around the mobile phone through the device discovery authentication module, and after discovering the peripheral terminal devices, the discovery authentication module can inform the service APP of discovering new devices.
After a service APP of the mobile phone generates a service requirement (for example, the service requirement is a requirement triggered after a user clicks a screen projection button), the service APP can request the WiFi direct connection module to create a session through the session management interface, the WiFi direct connection module can send a WiFi direct connection request through the WiFi direct connection interface of the system framework, and the WiFi direct connection request is modulated in a wireless signal and transmitted after being transmitted to a modem driver.
And after receiving the wireless signal, the projector carries out demodulation processing to obtain a WiFi direct connection request. If the number of the WiFi direct connection of the projector does not reach the maximum value, the projector can send a reply message which bears the load and can establish the WiFi direct connection.
After receiving the wireless signal carrying the reply message, the mobile phone demodulates the wireless signal through the modem drive to acquire the reply message, and the reply message is transmitted to the WiFi direct connection module through the WiFi direct connection interface of the system framework. The WiFi direct connection module executes the process of establishing WiFi direct connection, and after the WiFi direct connection is established, the WiFi direct connection module can inform the established message to the service APP through the session management interface. The WiFi direct connection module can also send parameters of WiFi direct connection to the transmission module so that the transmission module transmits service data of the service APP based on the parameters of the WiFi direct connection, and the parameters of the WiFi direct connection comprise: a Service Set Identifier (SSID), a Basic Service Set Identifier (BSSID), a pre-shared key, and a channel list.
After receiving the message that the WiFi direct connection is established, the service APP transmits service data (such as video data) to the transmission module through the data transmission interface, the transmission module transmits the service data to the modem driver through the network service interface, and the modem driver modulates the service data in a wireless signal to transmit the wireless signal. The modem driver can also demodulate a received wireless signal containing service data (such as a shared document), and transmit the service data to the transmission module, and the transmission module transmits the service data to the service APP through the data transmission interface, so that the function of transmitting the service data through WiFi direct connection is realized.
The super terminal service further comprises an equipment information synchronization module used for sending the WiFi direct connection information updated by the mobile phone to the opposite terminal equipment.
Hereinafter, a method for establishing a WiFi direct connection based session provided in an embodiment of the present application will be described in detail. As shown in fig. 6, the method is applied to a first device including a WiFi direct connection module, where the first device may be a mobile phone or other terminal devices. The method includes the following.
S610, the WiFi direct connection module receives a session request from a service APP, and the session request requests to establish a session based on WiFi direct connection.
The service APP can be a screen projection service APP, a file sharing service APP, and other APPs which need to be connected through WiFi direct connection for data transmission. The service APP can call the session management interface to send a session request to the WiFi direct-connection module.
S620, the WiFi direct connection module determines whether a WLAN channel and/or a Bluetooth channel exists between the first device and the second device according to the session request.
After receiving the session request, the WiFi direct connection module first checks whether a WLAN channel and/or a bluetooth channel exists between the first device and the second device, and if the WLAN channel and the bluetooth channel exist, the existing WLAN channel or bluetooth channel may be selected as a negotiation channel, and parameters required for establishing WiFi direct connection are transmitted through the negotiation channel. If there is no WLAN channel and/or bluetooth channel, the WiFi direct module may perform the following steps.
S630, when the WLAN channel and/or the Bluetooth channel do not exist, the WiFi direct connection module sends a first connection request to a second device through Bluetooth broadcasting, and the first connection request requests to establish WiFi direct connection of the service APP.
S640, the WiFi direct module receives a reply message of the first connection request from the second device.
S650, when the WiFi direct connection module receives the reply message of the first connection request, the WiFi direct connection module establishes the conversation based on the WiFi direct connection according to the reply message of the first connection request.
In the prior art, the first device needs to wait for the WLAN channel or the bluetooth channel to be established when the first device wants to send the first connection request, but the WLAN channel or the bluetooth channel needs to wait for a long time to be established, so that the first connection request needs to be sent after a long time in the prior art. In this embodiment, the WiFi direct connection module first determines whether a WLAN channel and/or a bluetooth channel exists before sending the first connection request, and if the WLAN channel and/or the bluetooth channel does not exist, the first connection request is sent through bluetooth broadcast, and the bluetooth broadcast can be used without waiting for a response of the second device, thereby reducing time required for establishing a session based on WiFi direct connection.
An example of establishing a session provided herein is described below in conjunction with fig. 7.
S701, the service APP requests to establish a session to the second device.
The service APP may request the WiFi direct module to establish a session with a second device (e.g., a projector) based on a service requirement of the user (e.g., a service requirement triggered after the user clicks a screen-projection button).
S702, the WiFi direct connection module judges whether an available WLAN channel exists.
If the determination result in S702 is yes, S707 is executed. If the determination result of S702 is no, S703 is executed.
And S703, the WiFi direct connection module judges whether an available Bluetooth channel exists or not.
The bluetooth channel may be a Basic Rate (BR) bluetooth channel, an Enhanced Data Rate (EDR) bluetooth channel, or a transmission channel that applies bluetooth technology other than a bluetooth broadcast channel.
Because the reliability of the WiFi channel is generally higher than that of the Bluetooth channel, if the WLAN channel exists, the WLAN channel can be directly selected as the negotiation access, the Bluetooth channel is not considered any more, and therefore the success rate of establishing the WiFi direct connection can be improved.
If the determination result in S703 is yes, S708 is executed. If the determination result in S703 is no, S704 is executed.
And S704, the WiFi direct connection module selects a Bluetooth broadcast channel as a negotiation channel.
S705, the WiFi direct connection module concurrently establishes a Bluetooth channel.
The WiFi direct connection module can establish a Bluetooth channel through the Bluetooth module while selecting the Bluetooth broadcast channel as a negotiation channel. Because the first device can send the Bluetooth broadcast message carrying the connection request after selecting the Bluetooth broadcast channel, and the Bluetooth broadcast message can also carry the parameters required for establishing the Bluetooth channel, if the second device opens the Bluetooth function, the first device and the second device can establish the Bluetooth channel as soon as possible.
And S706, after the Bluetooth channel is successfully established, the WiFi direct connection module selects the Bluetooth channel as a negotiation channel.
And S707, the WiFi direct connection module selects a WLAN channel as a negotiation channel.
And S708, the WiFi direct-connection module selects a Bluetooth channel as a negotiation channel.
And S709, the WiFi direct connection module sends a connection request to the second equipment through the negotiation channel.
If the WiFi direct connection module executes S704, the WiFi direct connection module actually sends two connection requests when executing S709, where the two connection requests are a first connection request sent through the bluetooth broadcast channel and a second connection request sent through the bluetooth channel, and the two connection requests have the same function, the reason for sending the second connection request is that the reliability of the bluetooth broadcast is poor, and after the bluetooth channel is established, the success rate of establishing the WiFi direct connection can be improved by sending one connection request (second connection request) through the bluetooth channel.
If the WiFi direct module performs S707, the WiFi direct module sends a connection request when performing S709, where the connection request may be referred to as a third connection request.
If the WiFi direct module performs S708, the WiFi direct module sends a connection request when performing S709, and the connection request may be referred to as a fourth connection request.
S710, the second device processes the connection request.
If the second device receives the third connection request or the fourth connection request, the second device executes a procedure of establishing the WiFi direct connection based on the third connection request or the fourth connection request, which will be described below.
If the second device receives only the first connection request, which indicates that the transmission of the second connection request fails, the second device may execute a procedure of establishing WiFi direct connection based on the first connection request.
If the second device only receives the second connection request, which indicates that the transmission of the first connection request fails, the second device may execute a procedure of establishing the WiFi direct connection based on the second connection request.
If the second device receives the first connection request and the second connection request, because the first connection request is usually received first, the second device may execute a procedure of establishing the WiFi direct connection based on the first connection request, and send a reply message to the first device after the WiFi direct connection is established, indicating that the WiFi direct connection is established successfully. The second device may discard the second connection request after receiving the second connection request (i.e., no longer establish the WiFi direct connection based on the second connection request), and in order to prevent the failure of the first device to receive the reply message of the first connection request, the second device may send the reply message of the second connection request to the first device, so that a success rate of establishing the WiFi direct connection may be improved.
Accordingly, if the first device receives only the reply message of the first connection request or the second connection request, the first device may establish a session based on WiFi direct connection according to the reply message of the first connection request or the second connection request. If the first device receives the reply messages of the first connection request and the second connection request, the first device does not need to process the reply message of the second connection request because the time for receiving the reply message of the second connection request is later, and therefore the power consumption of the first device can be reduced.
Optionally, the first device may be prepared to establish the WiFi direct connection in advance before the service APP requests to establish the session.
A flow of pre-establishing a WiFi direct connection is shown in fig. 8.
S801, the device discovery authentication module of the first device discovers terminal devices, such as the second device, around the first device.
The method for discovering the second device may be bluetooth broadcast, wiFi link broadcast, or other discovery methods.
S802, the device discovery authentication module of the first device starts a device authentication process.
S803, the device discovery authentication module of the first device sends an authentication request, which carries the first device information.
The first device information includes information required for establishing the WiFi direct connection, such as information of a WiFi direct role, SSID, BSSID, pre-shared key, and channel list, in addition to information required for the device authentication process.
And S804, the second equipment processes the authentication request and stores the first equipment information carried in the authentication request to the local.
And S805, the second equipment sends an authentication reply to the first equipment, wherein the authentication reply carries the information of the second equipment.
The second device information includes information required for establishing the WiFi direct connection, such as information about a WiFi direct connection role, in addition to information required for the device authentication process.
And S806, the first device processes the authentication reply and stores the second device information to the local.
Through the steps of S801-S806, the first device and the second device both store information required for establishing the WiFi direct connection. When the service APP of the first device requests to establish a session based on WiFi direct connection, the first device may directly send a connection request (e.g., including a static IP address assigned to the second device) to the second device based on the pre-stored second device information, without performing role negotiation and dynamic IP address assignment, thereby reducing the time required for session establishment.
Fig. 9 is an example of another pre-established WiFi direct connection provided herein.
S901, the WiFi direct connection module of the first device analyzes the broadcast message to acquire the connection state of the first WiFi direct connection network.
The WiFi direct module may register a broadcast receiver in the operating system during an initialization process (e.g., when the first device is booted), the broadcast receiver being configured to listen for a change event (broadcast message) of the WiFi direct connection. When the WiFi direct connection module receives the broadcast message, the broadcast message needs to be analyzed, and the current state of the first WiFi direct connection network is determined according to the content of the broadcast message.
And S902, the WiFi direct connection module judges whether the WiFi direct connection network is in a connected state.
If the judgment result of the S902 is negative, executing S903; if the determination result in S902 is yes, S904 is executed.
And S903, emptying a connection list by the WiFi direct connection module, and updating the local direct connection role to be in a role-free state.
And S904, the WiFi direct connection module updates the local roles as Group Owner (GO) or Group Client (GC) according to the WiFi direct connection group information in the broadcast message.
And S905, the WiFi direct connection module executes the capacity change synchronization process.
And S906, the WiFi direct connection module sends a synchronization request carrying local WiFi direct connection information (updated WiFi direct connection information of the first WiFi direct connection network).
The local-end WiFi direct information includes, for example: updated WiFi direct role (GO, GC or no role) of the first device, SSID, BSSID, pre-shared key and channel list.
And S907, the second device processes the synchronization request and updates WiFi direct connection information of the opposite terminal (updated WiFi direct connection information of the first WiFi direct connection network) to the database.
And S908, the second device returns a synchronization reply and carries the local WiFi direct connection information (the updated WiFi direct connection information of the second WiFi direct connection network), wherein the second WiFi direct connection network is the WiFi direct connection network of the second device.
S909, the first device processes the synchronization reply, and updates the WiFi direct connection information of the opposite end (updated WiFi direct connection information of the second WiFi direct connection network) to the database.
When the state of the first WiFi direct connection network changes, the first device needs to inform the second device of the new state of the first WiFi direct connection network through the synchronization information. At this time, the first device may implement negotiation of the group role using the synchronization information and a reply message of the synchronization information. Compared with the negotiation of the group role after the synchronization is finished, the time for establishing the WiFi direct connection can be reduced.
The following describes a session establishment procedure after the WiFi direct connection is pre-established. As shown in fig. 10.
S1001, the service APP requests to establish a session to the second device.
The service APP may request the WiFi direct module to establish a session with a second device (e.g., a projector) based on a service requirement of the user (e.g., a service requirement triggered after the user clicks a screen-projection button).
And S1002, the WiFi direct connection module executes a WiFi direct connection establishment process.
And S1003, the WiFi direct connection module executes a negotiation channel selection strategy and selects a negotiation channel.
The specific process for executing the negotiation channel selection policy may refer to fig. 7, which is not described herein again.
And S1004, the WiFi direct connection module executes role decision and channel decision.
For example, if the second device is a non-role device (a device that does not establish any WiFi direct connections), the first device may decide to become a GO device; the first device may select, according to the channel lists supported by the two parties (the first device and the second device), a channel that is commonly supported by the first two parties in the channel list as a WiFi direct channel.
And S1005, the WiFi direct connection module creates a WiFi direct connection group.
When the first device is a GO device, the first device can send a connection request through a negotiation channel in parallel without waiting for the WiFi direct connection group to be established while establishing the WiFi direct connection group.
And S1006, the WiFi direct connection module sends a connection request to the second device through the negotiation channel, and carries the information of the WiFi direct connection group.
The information of the WiFi direct group includes, for example: the first device's WiFi direct role, SSID, BSSID, pre-shared key, channel list and static IP address assigned to the second device, the static IP address is uniformly managed and assigned by the GO device.
And S1007, the second device receives the connection request and starts to connect the WiFi direct connection group.
After receiving the connection request, the second device may determine whether the WiFi direct connection role of the first device and the WiFi direct connection role of the second device meet requirements. If the first device is a GO device and the second device is in a no-role state (i.e., the second device has not established WiFi direct connection), the second device may skip a scanning process (scanning a surrounding potential SSID) and a role negotiation process, and leave the airplane to initiate connection according to WiFi direct connection information (SSID, BSSDI, pre-shared key, and channel) negotiated in advance.
When the second device receives the WiFi direct connection state change information of the system and indicates that the GO device (the first device) is successfully connected, the static IP address allocated by the first device can be set to the local WiFi direct network card, and then S1008 is executed.
And S1008, after the connection is successful, sending a reply message to indicate that the connection is successful.
S1009, after receiving the reply message indicating that the connection is successful, the WiFi direct connection module of the first device creates a session based on the WiFi direct connection.
The session is established, that is, a transmission channel of a transmission layer is established, for example, parameters of the WiFi direct connection are sent to the transmission module, so that the transmission module transmits service data of the service APP based on the parameters of the WiFi direct connection.
And S1010, after the session is established, the WiFi direct connection module reports the service APP and indicates that the session is established.
And after receiving the message of the completion of the session creation, the service APP calls a data transmission interface to transmit service data through the session.
The present application also provides a computer program product which, when executed by a processor, implements the method of any of the method embodiments of the present application.
The computer program product may be stored in a memory and eventually transformed into an executable object file that can be executed by a processor via preprocessing, compiling, assembling and linking.
The computer program product may also solidify the code in the chip. The present application is not intended to be limited to the particular form of the computer program product.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a computer, implements the method of any of the method embodiments of the present application. The computer program may be a high-level language program or an executable object program.
The computer readable storage medium may be volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an electrically Erasable EPROM (EEPROM), or a flash memory. Volatile memory can be Random Access Memory (RAM), which acts as external cache memory. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), synchronous Dynamic Random Access Memory (SDRAM), double data rate SDRAM, enhanced SDRAM, SLDRAM, synchronous Link DRAM (SLDRAM), and direct rambus RAM (DR RAM).
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes and the generated technical effects of the above-described apparatuses and devices may refer to the corresponding processes and technical effects in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the disclosed system, apparatus and method may be implemented in other ways. For example, some features of the method embodiments described above may be omitted, or not performed. The above-described embodiments of the apparatus are merely exemplary, the division of the unit is only one logical function division, and there may be other division ways in actual implementation, and a plurality of units or components may be combined or integrated into another system. In addition, the coupling between the units or the coupling between the components may be direct coupling or indirect coupling, and the coupling includes electrical, mechanical or other connections.
It should be understood that, in the various embodiments of the present application, the sequence numbers of the processes do not mean the execution sequence, and the execution sequence of the processes should be determined by the functions and the inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Additionally, the terms "system" and "network" are often used interchangeably herein. The term "and/or" herein is only one kind of association relationship describing the association object, and means that there may be three kinds of relationships, for example, a and/or B, and may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
In short, the above description is only a preferred embodiment of the present disclosure, and is not intended to limit the scope of the present disclosure. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A method for establishing a session based on WiFi direct connection is applied to a first device, the first device comprises a WiFi direct connection module and a Bluetooth module, and the method comprises the following steps:
the WiFi direct-connection module receives a session request from a service APP, and the session request requests to establish a session based on WiFi direct-connection;
the WiFi direct connection module determines whether a WLAN channel and/or a Bluetooth channel exists between the first equipment and the second equipment according to the session request;
when the WLAN channel and/or the Bluetooth channel do not exist, the WiFi direct connection module sends a first connection request to the second device through Bluetooth broadcasting, and the first connection request requests to establish WiFi direct connection of the service APP;
the WiFi direct connection module receives a reply message of the first connection request from the second equipment;
when the WiFi direct connection module receives a reply message of the first connection request, the WiFi direct connection module establishes the session based on WiFi direct connection according to the reply message of the first connection request;
the Bluetooth module establishes the Bluetooth channel;
the WiFi direct connection module sends a second connection request to the second equipment through the Bluetooth channel, and the second connection request requests to establish WiFi direct connection of the service APP;
the WiFi direct module receives a reply message of the second connection request from the second device;
when the WiFi direct-connection module does not receive the reply message of the first connection request, the WiFi direct-connection module establishes the conversation based on the WiFi direct-connection according to the reply message of the second connection request;
and when the WiFi direct connection module receives the reply message of the first connection request, the WiFi direct connection module discards the reply message of the second connection request.
2. The method of claim 1, further comprising:
when the WLAN channel and the Bluetooth channel exist, the WiFi direct connection module sends a third connection request to the second device through the WLAN channel, and the third connection request requests to establish WiFi direct connection of the service APP;
the WiFi direct connection module receives a reply message of the third connection request from the second equipment;
and the WiFi direct connection module establishes the session based on the WiFi direct connection according to a reply message of the third connection request.
3. The method of claim 1, further comprising:
when the WLAN channel does not exist and when the Bluetooth channel exists, the WiFi direct connection module sends a fourth connection request to the second device through the Bluetooth channel, and the fourth connection request requests to establish WiFi direct connection of the service APP;
the WiFi direct connection module receives a reply message of the fourth connection request from the second equipment;
and the WiFi direct connection module establishes the session based on the WiFi direct connection according to a reply message of the fourth connection request.
4. The method according to any one of claims 1 to 3, wherein the first device further comprises a device discovery authentication module, and before the WiFi direct module receives the session request from the service APP, the method further comprises:
the device discovery authentication module sends a device authentication request to the second device, wherein the device authentication request is used for the second device to authenticate the identity of the first device, and the device authentication request comprises parameters required for establishing WiFi direct connection;
the device discovery authentication module receives a reply message of the device authentication request from the second device, wherein the reply message of the device authentication request is used for the first device to authenticate the identity of the second device, and the reply message of the device authentication request comprises parameters required for establishing the WiFi direct connection;
and the equipment discovery and authentication module stores parameters required for establishing the WiFi direct connection in a reply message of the equipment authentication request.
5. The method according to any one of claims 1 to 3, further comprising:
the WiFi direct connection module monitors state change of a first WiFi direct connection network, and the first WiFi direct connection network is the WiFi direct connection network of the first equipment;
when the state of the first WiFi direct connection network changes, the WiFi direct connection module sends synchronization information to the second equipment, the synchronization information is used for the second equipment to update the state of the first WiFi direct connection network, and the synchronization information comprises the group role of the first equipment;
the WiFi direct connection module receives a reply message of the synchronization information from the second equipment, wherein the reply message of the synchronization information comprises the group role of the second equipment;
and the WiFi direct connection module updates the group role of the second equipment according to the reply message of the synchronous information.
6. A method for establishing a session based on WiFi direct connection is applied to a second device, the second device comprises a WiFi direct connection module and a Bluetooth module, and the method comprises the following steps:
the WiFi direct connection module determines whether a WLAN channel and/or a Bluetooth channel exists between a first device and a second device;
when the WLAN channel and/or the Bluetooth channel do not exist, the WiFi direct connection module receives a Bluetooth broadcast, the Bluetooth broadcast comprises a first connection request, and the first connection request requests to establish WiFi direct connection of a service APP of the first device;
the WiFi direct connection module establishes WiFi direct connection of the service APP according to the first connection request;
the WiFi direct connection module sends a reply message of the first connection request to the first device, wherein the reply message of the first connection request indicates that the second device establishes WiFi direct connection of the service APP;
the Bluetooth module establishes a Bluetooth channel between the second device and the first device;
the WiFi direct connection module receives a second connection request through the Bluetooth channel, and the second connection request requests to establish WiFi direct connection of the service APP;
and the WiFi direct connection module sends a reply message of the second connection request to the first equipment through the Bluetooth channel, and the reply message of the second connection request indicates that the second equipment establishes the WiFi direct connection of the service APP.
7. The method of claim 6, wherein the second device further comprises a device discovery authentication module, and wherein before the WiFi direct module receives the bluetooth broadcast, the method further comprises:
the device discovery authentication module receives a device authentication request from the first device, wherein the device authentication request is used for the second device to authenticate the identity of the first device, and the device authentication request comprises parameters required for establishing WiFi direct connection;
the device discovery authentication module stores parameters required for establishing WiFi direct connection in the device authentication request;
the device discovery authentication module sends a reply message of the device authentication request to the first device, wherein the reply message of the device authentication request is used for the first device to authenticate the identity of the second device, and the reply message of the device authentication request comprises parameters required for establishing WiFi direct connection.
8. The method according to claim 6 or 7, characterized in that the method further comprises:
the WiFi direct connection module receives synchronization information from the first equipment, the synchronization information is used for the second equipment to update the state of a first WiFi direct connection network, the synchronization information comprises a group role of the first equipment, and the first WiFi direct connection network is the WiFi direct connection network of the first equipment;
the WiFi direct connection module updates the state of the first WiFi direct connection network according to the synchronization information;
and the WiFi direct connection module sends a reply message of the synchronous information to the second equipment, wherein the reply message of the synchronous information comprises the group role of the second equipment.
9. An apparatus for establishing a WiFi direct connection based session, comprising a processor and a memory, the processor and the memory coupled for storing a computer program that, when executed by the processor, causes the apparatus to perform the method of any of claims 1 to 8.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, causes an apparatus comprising the processor to perform the method of any of claims 1 to 8.
CN202210841500.2A 2022-07-18 2022-07-18 Method and device for establishing session based on WiFi direct connection Active CN114928898B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210841500.2A CN114928898B (en) 2022-07-18 2022-07-18 Method and device for establishing session based on WiFi direct connection
CN202211600127.8A CN117425227A (en) 2022-07-18 2022-07-18 Method and device for establishing session based on WiFi direct connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210841500.2A CN114928898B (en) 2022-07-18 2022-07-18 Method and device for establishing session based on WiFi direct connection

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202211600127.8A Division CN117425227A (en) 2022-07-18 2022-07-18 Method and device for establishing session based on WiFi direct connection

Publications (2)

Publication Number Publication Date
CN114928898A CN114928898A (en) 2022-08-19
CN114928898B true CN114928898B (en) 2022-10-28

Family

ID=82815776

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202211600127.8A Pending CN117425227A (en) 2022-07-18 2022-07-18 Method and device for establishing session based on WiFi direct connection
CN202210841500.2A Active CN114928898B (en) 2022-07-18 2022-07-18 Method and device for establishing session based on WiFi direct connection

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202211600127.8A Pending CN117425227A (en) 2022-07-18 2022-07-18 Method and device for establishing session based on WiFi direct connection

Country Status (1)

Country Link
CN (2) CN117425227A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116743413B (en) * 2022-10-26 2024-04-12 荣耀终端有限公司 Internet of things equipment authentication method and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106413128A (en) * 2016-09-29 2017-02-15 努比亚技术有限公司 Projection method and mobile terminal
WO2018045561A1 (en) * 2016-09-09 2018-03-15 华为技术有限公司 File transmission method, file reception method and terminal
CN111372325A (en) * 2020-02-21 2020-07-03 华为技术有限公司 Method and device for establishing Wi-Fi point-to-point connection
CN111866824A (en) * 2019-04-30 2020-10-30 青岛海信移动通信技术股份有限公司 Method and equipment for establishing communication connection and data transmission

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114079893B (en) * 2020-08-13 2023-10-13 华为技术有限公司 Bluetooth communication method, terminal device and computer readable storage medium
CN114679708A (en) * 2020-12-25 2022-06-28 华为技术有限公司 Communication method, system and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018045561A1 (en) * 2016-09-09 2018-03-15 华为技术有限公司 File transmission method, file reception method and terminal
CN106413128A (en) * 2016-09-29 2017-02-15 努比亚技术有限公司 Projection method and mobile terminal
CN111866824A (en) * 2019-04-30 2020-10-30 青岛海信移动通信技术股份有限公司 Method and equipment for establishing communication connection and data transmission
CN111372325A (en) * 2020-02-21 2020-07-03 华为技术有限公司 Method and device for establishing Wi-Fi point-to-point connection

Also Published As

Publication number Publication date
CN117425227A (en) 2024-01-19
CN114928898A (en) 2022-08-19

Similar Documents

Publication Publication Date Title
CN111666119B (en) UI component display method and electronic device
EP4084486A1 (en) Cross-device content projection method, and electronic device
CN113438354B (en) Data transmission method and device, electronic equipment and storage medium
CN113630910B (en) Method for using cellular communication function, related device and system
CN114125130B (en) Method for controlling communication service state, terminal device and readable storage medium
CN111371849A (en) Data processing method and electronic equipment
CN112543447A (en) Device discovery method based on address list, audio and video communication method and electronic device
US20240095000A1 (en) Plug-In Installation Method, Apparatus, and Storage Medium
CN114553814A (en) Method and device for processing push message
CN113645571A (en) Data transmission method and electronic equipment
CN114928898B (en) Method and device for establishing session based on WiFi direct connection
CN114124980B (en) Method, device, system, terminal and storage medium for starting application
CN113810451B (en) Method and device for establishing point-to-point link, first terminal equipment and storage medium
CN113703894A (en) Display method and display device of notification message
CN114928900B (en) Method and apparatus for transmission over a WiFi direct connection
EP4293997A1 (en) Display method, electronic device, and system
WO2021218544A1 (en) Wireless connection providing system, method, and electronic apparatus
CN115017498A (en) Method for operating applet and electronic device
CN114567871A (en) File sharing method and device, electronic equipment and readable storage medium
CN115701018A (en) Method for safely calling service, method and device for safely registering service
CN115002939B (en) Method and device for joining WiFi group
WO2024093703A1 (en) Instance management method and apparatus, and electronic device and storage medium
WO2024093795A1 (en) Device replacement configuration method and apparatus
WO2022206769A1 (en) Method for combining content, electronic device, and system
CN116560769A (en) Application component sharing method and related equipment

Legal Events

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