Link establishment method, electronic device and storage medium

By using the third device to obtain link information and service status in the mobile terminal, and optimizing link selection, the balance between power consumption and service requirements in multiple P2P links is solved, and communication efficiency and quality are improved.

CN115499900BActive Publication Date: 2025-08-15HUAWEI TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202110669887.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-17
Publication Date
2025-08-15
Estimated Expiration
2041-06-17

AI Technical Summary

Technical Problem

In mobile terminals such as mobile phones, how to balance service needs and power consumption in multiple P2P links has become an urgent problem.

Method used

By establishing multiple links on demand between two devices, using a third device such as a P2P server to obtain link-related information, select the best link, and update the link priority based on the service status and QoS information, delete unnecessary built links, and prioritize the establishment of the highest priority to be selected link.

Benefits of technology

It realizes power consumption saving, improves communication efficiency and quality in a multi-link environment, and ensures the satisfaction of business needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115499900B_ABST
    Figure CN115499900B_ABST
Patent Text Reader

Abstract

The present invention provides a link establishment method, electronic device, and storage medium, relating to the field of communication technology. The method includes: establishing a first link with a second device; obtaining a set of candidate links, wherein the set of candidate links includes multiple candidate links; selecting a second link from the set of candidate links, establishing the second link with the second device, and communicating with the second device using the first link and the second link. The method provided in the present invention can establish multiple links according to business needs, thereby saving power consumption and improving communication efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communication technologies, and in particular to a link establishment method, an electronic device, and a storage medium. Background Art

[0002] With the advancement of electronics and communications technology, mobile phones have become an indispensable electronic device. Mobile phones are becoming increasingly powerful. For example, a single phone can support multiple network cards. As you can see, one network card can support one point-to-point (P2P) link. Therefore, multiple network cards can support multiple P2P links.

[0003] Currently, mobile phones can establish multiple P2P links when conducting business, such as a Wi-Fi link and a cellular link. However, how to balance business needs and power consumption across multiple P2P links has become an urgent problem that needs to be solved. Summary of the Invention

[0004] The embodiments of the present application provide a link establishment method, an electronic device, and a storage medium to provide a way to establish multiple links between mobile terminals, thereby saving power consumption and improving communication efficiency.

[0005] In a first aspect, an embodiment of the present application provides a link establishment method, applied to a first device, including:

[0006] Establishing a first link with a second device; wherein the first device and the second device can be electronic devices of the same type, for example, both mobile phones; or the first device and the second device can be electronic devices of different types, for example, the first device can be a mobile phone and the second device can be a tablet. This embodiment of the application does not specifically limit the types of the first device and the second device.

[0007] A set of candidate links is obtained, wherein the set of candidate links includes multiple candidate links; wherein the candidate links are unestablished links.

[0008] A second link is selected from the set of candidate links, the second link is established with a second device, and the first link and the second link are used to communicate with the second device.

[0009] In the embodiment of the present application, by establishing multiple links between two devices as needed, power consumption can be saved and communication efficiency can be improved.

[0010] In one possible implementation, establishing the first link with the second device includes:

[0011] Send link-related information to a third device; wherein the third device may be a server, such as a P2P server.

[0012] receiving a link establishment notification sent by a third device, where the link establishment notification includes a path of the first link;

[0013] A first link is established with the second device based on the link establishment notification.

[0014] In the embodiment of the present application, link-related information of the first device and the second device is obtained by the third device, and the first link is selected by the third device, which can improve the efficiency of path selection and thus select a better link.

[0015] In one possible implementation, the set of links to be selected is sent by a third device, and the set of links to be selected is determined by link-related information of the first device and the second device.

[0016] By having the third device send the set of links to be selected to the first device, the efficiency of the first device in acquiring the set of links to be selected can be improved.

[0017] In one possible implementation, the link-related information includes one or more of a network address translation type, an operator type, and a network card type.

[0018] One possible implementation method also includes:

[0019] QoS information on the first link is obtained, and priorities of the candidate links in the candidate link set are updated based on the QoS information.

[0020] In the embodiment of the present application, updating the priorities of the links to be selected helps to select better links, thereby improving link capacity.

[0021] In one possible implementation, selecting the second link from the set of candidate links includes:

[0022] Obtaining service status; wherein the service status is used to represent the matching status between service requirements and the capabilities of established links;

[0023] The second link is determined based on the service status and the priority of the candidate links.

[0024] In the embodiment of the present application, the second link is selected based on the service status, which can be selected on demand, thereby saving power consumption.

[0025] One possible implementation method also includes:

[0026] Constructing an established link set, wherein the established link set includes multiple established links;

[0027] Get the priority of the established link;

[0028] One or more established links in the established link set are deleted based on the service status and the priorities of the established links.

[0029] In an embodiment of the present application, when the service status is overflow, one or more established links can be deleted, thereby saving resources and power consumption.

[0030] In one possible implementation, the second link is a link with the highest priority in the set of links to be selected.

[0031] In the embodiment of the present application, the link with the highest priority is selected as the second link, which can improve the link capacity more quickly and enhance the communication quality.

[0032] In one possible implementation, deleting one or more established links in the established link set based on the service status and the priority of the established links includes:

[0033] If the capacity of the current established link exceeds the service demand, the established link with the lowest priority in the established link set is deleted.

[0034] In the embodiment of the present application, by deleting the established link with the lowest priority, power consumption can be saved and the problem of insufficient link capacity caused by deleting the link with high priority can be avoided.

[0035] In a second aspect, an embodiment of the present application provides a link establishment device, including:

[0036] A first establishing module, configured to establish a first link with a second device;

[0037] An acquisition module, configured to acquire a set of links to be selected, wherein the set of links to be selected includes a plurality of links to be selected;

[0038] The second establishing module is configured to select a second link from the set of candidate links, establish the second link with the second device, and communicate with the second device using the first link and the second link.

[0039] In one possible implementation, the first establishing module is further configured to send link related information to the third device;

[0040] receiving a link establishment notification sent by a third device, where the link establishment notification includes a path of the first link;

[0041] A first link is established with the second device based on the link establishment notification.

[0042] In one possible implementation, the apparatus further includes:

[0043] The updating module is configured to obtain QoS information on the first link and update the priorities of the candidate links in the candidate link set based on the QoS information.

[0044] In one possible implementation, the second establishing module is further configured to obtain a service status; wherein the service status is configured to characterize a matching status between service requirements and capabilities of established links;

[0045] The second link is determined based on the service status and the priority of the candidate links.

[0046] In one possible implementation, the apparatus further includes:

[0047] A deletion module, configured to construct an established link set, wherein the established link set includes multiple established links;

[0048] Get the priority of the established link;

[0049] Delete an established link from the established link set based on the service status and the priority of the established link.

[0050] In one possible implementation manner, the deletion module is further configured to delete the lowest priority established link in the set of established links if the capacity of the current established link exceeds the service demand.

[0051] In a third aspect, an embodiment of the present application provides a first device, including:

[0052] A memory, wherein the memory is used to store computer program code, wherein the computer program code includes instructions, and when the first device reads the instructions from the memory, the first device performs the following steps:

[0053] Establishing a first link with a second device;

[0054] Acquire a set of links to be selected, wherein the set of links to be selected includes multiple links to be selected;

[0055] A second link is selected from the set of candidate links, the second link is established with the second device, and the first link and the second link are used to communicate with the second device.

[0056] In one possible implementation, when the instruction is executed by the first device, causing the first device to perform the step of establishing a first link with the second device includes:

[0057] Sending link-related information to a third device;

[0058] receiving a link establishment notification sent by a third device, where the link establishment notification includes a path of the first link;

[0059] A first link is established with the second device based on the link establishment notification.

[0060] In one possible implementation, when the instruction is executed by the first device, the first device further performs the following steps:

[0061] QoS information on the first link is obtained, and priorities of the candidate links in the candidate link set are updated based on the QoS information.

[0062] In one possible implementation, when the instruction is executed by the first device, causing the first device to perform the step of selecting the second link from the set of candidate links includes:

[0063] Obtaining service status; wherein the service status is used to represent the matching status between service requirements and the capabilities of established links;

[0064] The second link is determined based on the service status and the priority of the candidate links.

[0065] In one possible implementation, when the instruction is executed by the first device, the first device further performs the following steps:

[0066] Constructing an established link set, wherein the established link set includes multiple established links;

[0067] Get the priority of the established link;

[0068] One or more established links in the established link set are deleted based on the service status and the priorities of the established links.

[0069] In one possible implementation, when the instruction is executed by the first device, causing the first device to perform the step of deleting an established link in the established link set based on the service status and the priority of the established link includes:

[0070] If the capacity of the current established link exceeds the service demand, the established link with the lowest priority in the established link set is deleted.

[0071] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer-readable storage medium is run on a computer, the computer executes the method described in the first aspect.

[0072] In a fifth aspect, an embodiment of the present application provides a computer program, which, when executed by a computer, is used to execute the method described in the first aspect.

[0073] In one possible design, the program in the fifth aspect may be stored in whole or in part on a storage medium packaged with the processor, or may be stored in whole or in part on a memory not packaged with the processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0074] Figure 1 A schematic diagram of a link provided in an embodiment of the present application;

[0075] Figure 2 Schematic diagram of application scenarios provided by embodiments of the present application;

[0076] Figure 3 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0077] Figure 4 A flowchart of an embodiment of the link establishment method provided by this application;

[0078] Figure 5 A diagram of the business status provided for this application;

[0079] Figure 6 This is a structural diagram of an embodiment of the link establishment device provided in this application. DETAILED DESCRIPTION

[0080] The following describes the technical solutions in the embodiments of the present application in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " represents "or." For example, A / B can represent A or B. "And / or" in this document is merely a description of the association relationship between associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, or B exists alone.

[0081] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, "plurality" means two or more.

[0082] Currently, mobile phones can establish multiple P2P links when conducting services, such as a Wi-Fi link and a cellular link. However, with P2P services, bandwidth and latency requirements are increasing, and a single P2P link may not be sufficient. In these cases, additional P2P links are needed. However, the increased number of links wastes power. Therefore, balancing links and power consumption has become an urgent issue.

[0083] Figure 1 A schematic diagram of establishing two links for a mobile phone, such as Figure 1 As shown, a WIFI link and a cellular link can be established between mobile phone A and mobile phone B.

[0084] To address the above issues, embodiments of the present application provide a link establishment method, which is applied to a first device 10. The first device 10 may be a mobile terminal. A mobile terminal may also be referred to as a terminal device, user equipment (UE), access terminal, subscriber unit, subscriber station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent, or user apparatus. The mobile terminal can be a station (STAION, ST) in a WLAN, a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA) device, a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a vehicle networking terminal, a computer, a laptop computer, a handheld communication device, a handheld computing device, a satellite wireless device, a wireless modem card, a TV set-top box (STB), a customer premises equipment (CPE) and / or other devices for communicating on a wireless system and a next-generation communication system, for example, a mobile terminal in a 5G network or a mobile terminal in a future evolved public land mobile network (PLMN) network, etc.

[0085] It will be understood that the above examples do not constitute a limitation on the embodiments of the present application. In some embodiments, the above first device 10 may also be other types of wireless accessory devices.

[0086] Figure 2 For the application scenario of the above cross-device connection method, such as Figure 2 As shown, the above application scenario includes a first device 10, a second device 20, and a third device 30. The second device 20 can be a terminal device of the same type as the first device 10, or a terminal device of a different type from the first device 10. The embodiment of the present application does not specifically limit the specific type of the second device 20. The third device 30 can be a server (for example, a P2P server).

[0087] The first device 10 may include a network card 11, a network card 12, a network card 13, and a network card 14, wherein the network card 11 and the network card 13 may be used to establish a WIFI connection, and the network card 12 and the network card 14 may be used to establish a cellular connection. The second device 20 may include a network card 21, a network card 22, a network card 23, and a network card 24, wherein the network card 21 and the network card 23 may be used to establish a WIFI connection, and the network card 22 and the network card 24 may be used to establish a cellular connection. It will be understood that the number of network cards in the first device 10 and the second device 20 described above is merely an example and does not constitute a limitation on the embodiments of the present application. In some embodiments, the first device 10 and the second device 20 may include more or fewer network cards.

[0088] The following combination Figure 3 First, an exemplary electronic device provided in the following embodiments of the present application is introduced. Figure 3 A structural schematic diagram of an electronic device 100 is shown, and the electronic device 100 may be the first device 10 mentioned above.

[0089] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, 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 button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. 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, etc.

[0090] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0091] The processor 110 may include one or more processing units, for example: the processor 110 may include 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 / or a neural-network processing unit (NPU), etc. Among them, different processing units can be independent devices or integrated into one or more processors. Among them, the controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals based on instruction opcodes and timing signals to complete the control of instruction fetching and execution.

[0092] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0093] The execution of the screenshot method provided in the embodiment of the present application can be controlled by the processor 110 or completed by calling other components, such as calling the processing program of the embodiment of the present application stored in the internal memory 121 to realize the user's screenshot operation and enhance the user experience.

[0094] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.

[0095] The USB interface 130 is an interface that complies with USB standards and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100, or to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect other electronic devices, such as augmented reality devices.

[0096] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.

[0097] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0098] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.

[0099] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0100] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0101] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0102] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with a network and other devices through wireless communication technologies. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. 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).

[0103] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.

[0104] Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can 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 MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED). In some embodiments, electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.

[0105] The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.

[0106] The ISP processes data fed back by camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and converted into a visible image. The ISP can also perform algorithmic optimization on image noise, brightness, and skin tone. It can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located within camera 193.

[0107] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0108] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0109] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. This allows electronic device 100 to play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.

[0110] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU can enable intelligent cognitive applications in electronic device 100, such as image recognition, face recognition, speech recognition, and text comprehension.

[0111] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.

[0112] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.

[0113] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0114] The touch sensor 180K is also called a "touch panel." The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen." The touch sensor 180K is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, in a location different from that of the display screen 194.

[0115] In the embodiment of the present application, the user's touch screen data can be obtained through the touch sensor 180K, and the touch screen data can be sent to the processor 110 for processing.

[0116] The buttons 190 include a power button, a volume button, and the like. The buttons 190 may be mechanical buttons or touch buttons. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100.

[0117] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0118] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power level changes, messages, missed calls, notifications, etc.

[0119] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or disconnected from the electronic device 100 by inserting it into or removing it from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

[0120] Figure 4 A flowchart of an embodiment of a link establishment method provided in an embodiment of the present application includes:

[0121] In step 401 , the first device 10 and the second device 20 send link-related information to the third device 30 .

[0122] Specifically, when the first device 10 establishes a P2P link with the second device 20 , the first device 10 and the second device 20 may send their respective link-related information to the third device 30 .

[0123] Among them, the link-related information may include information such as the Network Address Translation (NAT) type, operator type, and network card type. Exemplarily, the link-related information of the first device 10 may include information such as the Network Address Translation (NAT) type, operator type, and network card type of the first device 10, and the link-related information of the second device 20 may include information such as the Network Address Translation (NAT) type, operator type, and network card type of the second device 20. Among them, the NAT type may include types such as port-restricted cone and symmetric, the operator type may include types such as China Mobile, China Unicom, and China Telecom, and the network card type may include types such as WIFI and cellular. It will be understood that the above examples are merely illustrative of the above types and do not constitute a limitation on the embodiments of the present application. In some embodiments, more types may be included.

[0124] In step 402 , the third device 30 creates link parameters based on the link-related information of the first device 10 and the second device 20 .

[0125] Specifically, after the third device 30 receives the link-related information sent by the first device 10 and the second device 20, it can create corresponding link parameters based on the link-related information sent by the first device 10 and the second device 20. The link parameters can be used to calculate the total score of the link, so that a P2P link can be established between the first device 10 and the second device 20 based on the total score.

[0126] Referring to Table 1, the link parameters may include the following:

[0127] Table 1

[0128]

[0129] Among them, Ra and Rb belong to NAT type, Rc belongs to operator type, and Rd and Re belong to network card type. In addition, the above link parameters may also have corresponding weight scores. It is understandable that the above weight scores may have preset scores in the initial state (for example, the initial state may be a state where no link is established). For example, referring to Table 2, the weights corresponding to the above parameters may include the following scores:

[0130] Table 2

[0131]

[0132]

[0133] It should be noted that the above-mentioned weight scores are merely exemplary and do not constitute a limitation on the embodiments of the present application. In some embodiments, other preset scores may also be used.

[0134] Step 403: The third device 30 constructs a set of candidate links based on the link parameters.

[0135] Specifically, after the third device 30 obtains the above-mentioned link parameters, it can construct a set of candidate links based on the above-mentioned link parameters and the corresponding preset weights. The set of candidate links can include multiple candidate links, each of which can have a corresponding priority, and the priority can be used to characterize the quality of the candidate link. Exemplarily, the candidate link with the highest priority can be the optimal link, that is, the candidate link with the highest priority can be preferentially selected as the actual link, so that the optimal link can be established between the first device 10 and the second device 20 for communication, thereby improving the communication quality.

[0136] In a specific implementation, the priority of the above-mentioned candidate links can be determined by the above-mentioned link parameters and corresponding weights. For example, the total score of each candidate link can be calculated by the following formula:

[0137] Sum=Ra*Wa+Rb*Wb+Rc*Wc+Rd*Wd+Re*We;

[0138] After calculating the total score Sum of each candidate link, the links can be sorted according to the Sum value. The link with the highest Sum value can be the highest priority, the link with the second highest Sum value can be the second highest priority, and so on. Referring to Table 3, the corresponding relationship between the candidate links and their priorities is as follows:

[0139] Table 3

[0140]

[0141] It is understood that Table 3 only shows some of the links to be selected, and does not constitute a limitation on the embodiments of the present application. Figure 2 In the application scenario shown, the first device 10 has four network cards, and the second device 20 has four network cards. Therefore, there may be 16 links to be selected between the first device 10 and the second device 20.

[0142] In step 404 , the third device 30 determines a first link from the candidate links and establishes the first link between the first device 10 and the second device 20 .

[0143] Specifically, after the third device 30 obtains the above-mentioned set of candidate links, the third device 30 can select the first link (for example, the candidate link with the highest priority) from the above-mentioned set of candidate links as the actual link. Then, a first link is established between the first device 10 and the second device 20 so that the first device 10 and the second device 20 can communicate using the first link. In a specific implementation, the third device 30 can send a link establishment notification to the first device 10 and the second device 20, wherein the link establishment notification includes the path of the above-mentioned first link. When the first device 10 and the second device 20 receive the above-mentioned link establishment notification, the above-mentioned first path can be established between the first device 10 and the second device 20.

[0144] In addition, after the third device 30 establishes the first link, the third device 30 may also update the set of candidate links, for example, by deleting the candidate link corresponding to the first link from the set of candidate links, thereby obtaining a first updated set of candidate links.

[0145] In step 405 , the third device 30 sends the first link path and the first updated candidate link set to the first device 10 .

[0146] Specifically, after the third device 30 updates the aforementioned candidate link set and obtains the first updated candidate link set, it can send the first link path and the first updated candidate link set to the first device 10. This allows the first device 10 to add and delete links based on the aforementioned first link path and the first updated candidate link set, thereby improving communication quality.

[0147] It is understandable that the third device 30 may also send the first link path and the first updated candidate link set to the second device 20. This allows the second device 20 to add and delete links based on the first link path and the first updated candidate link set. The embodiment of the present application does not limit to which device, the first device 10 or the second device 20, the third device 30 sends the first link path and the first updated candidate link set. For ease of explanation, the following description takes the case where the third device 30 sends the first link path and the first updated candidate link set to the first device 10 as an example.

[0148] Step 406: The first device 10 obtains QoS information on the first link, and updates the priority of the link to be selected based on the QoS information.

[0149] Specifically, after the first device 10 receives the first link path and the first updated candidate link set sent by the third device 30, the first device 10 may further obtain QoS information for the first link, where the QoS information may include information such as service type, latency, and bandwidth. The service type may include a latency-sensitive type and a bandwidth-sensitive type. Then, the first device 10 may update the priorities of the candidate links in the first updated candidate link set based on the QoS information.

[0150] In specific implementation, the priorities of the candidate links in the first updated candidate link set may be updated according to the service type.

[0151] Taking bandwidth-sensitive services as an example, when recalculating the total score Sum of each candidate link, the values of the weights Wa, Wb, Wc, Wd, and We can all be updated values. For example, referring to Table 4, the values of the weights Wa, Wb, Wc, Wd, and We are as follows:

[0152] Table 4

[0153]

[0154]

[0155] It is understandable that the above weight update data is only for illustrative purposes and does not constitute a limitation on the embodiments of the present application. In some embodiments, other values may also be used.

[0156] After obtaining a new Sum value through recalculation, the first device 10 may update the priority of each candidate link in the first updated candidate link set based on the new Sum value.

[0157] Taking delay-sensitive services as an example, when recalculating the total score Sum of each candidate link, the values of the weights Wa, Wb, Wc, Wd, and We can all be updated values. The specific update process can be referred to Table 4 and will not be repeated here.

[0158] After obtaining a new Sum value through recalculation, the first device 10 may update the priority of each candidate link in the first updated candidate link set based on the new Sum value.

[0159] In step 407 , the first device 10 obtains the service status, determines the second link based on the service status, establishes the second link with the second device 20 , and communicates with the second device 20 using the first link and the second link.

[0160] Specifically, the service state may include an initial state, an unsatisfied state, a matched state, and an overflow state. Figure 5 Figure 1 is a service status diagram. The initial state can be used to represent the state before the link is established; the unsatisfied state can be used to represent that the current link's capabilities cannot meet service requirements. For example, assuming that the current service is a delay-sensitive service, if the delay of the current link cannot meet the delay requirement of the delay-sensitive service, then the current link's capabilities cannot meet service requirements. Alternatively, assuming that the current service is a bandwidth-sensitive service, if the bandwidth of the current link cannot meet the bandwidth requirement of the bandwidth-sensitive service, then the current link's capabilities cannot meet service requirements. The matched state can be used to represent that the current link's capabilities match service requirements; the overflow state can be used to represent that the current link's capabilities exceed service requirements.

[0161] Typically, factors affecting P2P link quality include: NAT type combination, network interface quality (NIC) air interface, carrier combination, NIC combination, and link QoS information. The NAT type combination factor can correspond to link parameters Ra and Rb, the carrier combination factor can correspond to link parameter Rc, the NIC combination factor can correspond to link parameter Rd, and the link QoS information factor can correspond to link parameters such as latency or bandwidth. NIC air interface quality can correspond to the NIC ID.

[0162] In a specific implementation, a service state can be set for the first device 10. When the first device 10 is in the initial state, the NAT type combination and the network card air interface quality have a greater impact. Therefore, the two link parameters Ra and Rb can be given priority consideration, as well as whether to shut down the corresponding network card. For example, the weight scores of the two link parameters Ra and Rb can be increased, and when the air interface quality of any network card is poor, the network card can be shut down, thereby reducing the number of links to be selected. Then, the priority of the links to be selected can be updated based on the above-mentioned NAT type combination and network card air interface quality factors.

[0163] When the first device 10 is in an unsatisfied state, the operator combination factor and the link QoS information factor have a greater impact. At this time, the link parameter Rc and link parameters such as delay or bandwidth can be considered in particular. For example, the weight score of the link parameter Rc and link parameters such as delay or bandwidth can be increased. It can be understood that the link QoS information factor can correspond to link parameters such as delay or bandwidth, and the link parameters such as delay or bandwidth can be used to calculate the total score of the established link, thereby allowing the established link to be reordered. In other words, the link QoS information factor is not applicable to the evaluation of the link to be selected, but only to the evaluation of the established link. Since only one P2P link (for example, the first link) is currently established, when the first device 10 is in an unsatisfied state, only the priority of the link to be selected is updated, and the priority of the established link is not updated.

[0164] After the first device 10 updates the priorities of the candidate links in the first updated candidate link set, a second updated candidate link set is obtained. The first device 10 can then select the highest-priority candidate link in the second updated candidate link set as the second link and establish the second link with the second device 20. This allows the first device 10 to communicate with the second device 20 using both the first and second links simultaneously, thereby ensuring service requirements.

[0165] It should be noted that, when the highest priority candidate link in the second updated candidate link set becomes the second link, the candidate link corresponding to the second link can be deleted from the second updated candidate link set, thereby obtaining a third updated candidate link set.

[0166] When the first device 10 is in a matching state or overflow state, the network card combination factor and the link QoS information factor have a greater impact. At this time, the link parameter Rc and link parameters such as latency or bandwidth can be given priority consideration. For example, the weight score of the link parameter Rd and link parameters such as latency or bandwidth can be increased. In a specific implementation, the overflow state can be when the current capacity of the link exceeds the service demand by 20%. It will be understood that the above ratio is only an example and does not constitute a limitation of the embodiments of the present application. In some embodiments, other ratio values can also be used.

[0167] Step 408: The first device 10 constructs an established link set, and deletes established links in the established link set based on the service status.

[0168] Specifically, after the first device 10 adds the second link, a first established link set may be constructed. The first established link set may include the first link and the second link.

[0169] It is understood that in step 407, if the service requirements are still not met after the first device 10 adds the second link, the highest priority link in the third updated set of candidate links can be used as the third link. The first device 10 can then establish a third link with the second device 20 and simultaneously communicate with the second device 20 using the first link, the second link, and the third link, thereby meeting service requirements and improving communication quality. In other words, the first device 10 can establish multiple links with the second device 20 based on service requirements. For example, in some embodiments, more than three P2P links can be established.

[0170] After multiple P2P links are established between the first device 10 and the second device 20, if the first device 10 is in an overflow state, that is, the links established between the first device 10 and the second device 20 have exceeded the business needs, resulting in a waste of resources. At this time, some of the established links can be deleted, thereby saving resources.

[0171] In a specific implementation, the first device 10 may obtain the delay or bandwidth, and determine the priorities of the established links in the first established link set according to the link parameters, and delete the established link with the lowest priority.

[0172] Taking bandwidth-sensitive services as an example, the first device 10 can obtain the bandwidth of the established link by detecting the established link. Then, the first device 10 calculates the total score Sum of each established link according to the following formula:

[0173] Sum=Ra*Wa+Rb*Wb+Rc*Wc+Rd*Wd+Re*We+(Bcur-Bmin) / (Bmin*Wf);

[0174] Where Bcur is the bandwidth of any of the established links, and Bmin is the minimum bandwidth among all established links. Wf is the weight corresponding to Bmin. For example, when the bandwidth of any established link is 10% greater than the minimum bandwidth, the value of Wf may be increased. It should be understood that the above ratios are merely illustrative and do not constitute limitations on the embodiments of this application. In some embodiments, other ratios may be used.

[0175] Taking a delay-sensitive service as an example, the first device 10 can obtain the delay of the established link by detecting the established link. Then, the first device 10 calculates the total score Sum of each established link according to the following formula:

[0176] Sum=Ra*Wa+Rb*Wb+Rc*Wc+Rd*Wd+Re*We+(Tmax-Tcur) / (Tmax*Wg);

[0177] Where Tmax is the maximum delay among all established links, and Tcur is the delay of any of the established links. For example, when the delay of any established link is 10% lower than the maximum delay, the value of Wg may be increased. It should be understood that the above ratios are merely illustrative and do not constitute a limitation on the embodiments of the present application. In some embodiments, other ratios may be used.

[0178] It should be noted that after deleting any established link, if the remaining established links still exceed the service requirements, the lowest-priority established link among the remaining established links can be further deleted until the remaining established links meet the service requirements. The deleted established link can be added back to the above-mentioned set of candidate links for selection the next time a new link is created.

[0179] Figure 6 This is a structural diagram of an embodiment of the link establishment device of the present application, as shown in FIG. Figure 6 As shown, the link establishment device 60 may include: a first establishment module 61, an acquisition module 62 and a second establishment module 63; wherein,

[0180] A first establishing module 61, configured to establish a first link with a second device;

[0181] An acquisition module 62 is configured to acquire a set of links to be selected, wherein the set of links to be selected includes a plurality of links to be selected;

[0182] The second establishing module 63 is configured to select a second link from the set of candidate links, establish the second link with the second device, and communicate with the second device using the first link and the second link.

[0183] In one possible implementation, the first establishing module 61 is further configured to send link related information to the third device;

[0184] receiving a link establishment notification sent by a third device, where the link establishment notification includes a path of the first link;

[0185] A first link is established with the second device based on the link establishment notification.

[0186] In one possible implementation, the device 60 further includes:

[0187] The updating module 64 is configured to obtain QoS information on the first link, and update the priorities of the candidate links in the candidate link set based on the QoS information.

[0188] In one possible implementation, the second establishing module 63 is further configured to obtain a service status; wherein the service status is used to characterize the matching status between the service demand and the capability of the established link;

[0189] The second link is determined based on the service status and the priority of the candidate links.

[0190] In one possible implementation, the device 60 further includes:

[0191] a deletion module 65, configured to construct an established link set, wherein the established link set includes a plurality of established links;

[0192] Get the priority of the established link;

[0193] Delete an established link from the established link set based on the service status and the priority of the established link.

[0194] In one possible implementation, the deleting module 65 is further configured to delete the lowest priority established link in the set of established links if the capacity of the current established link exceeds the service demand.

[0195] Figure 6 The link establishment device provided in the embodiment shown can be used to implement the present application Figure 1-Figure 5 The technical solution of the method embodiment shown, its implementation principle and technical effects can be further referred to the relevant description in the method embodiment.

[0196] It should be understood that the above Figure 6The division of the various modules of the link establishment device shown is merely a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. Moreover, these modules can all be implemented in the form of software called through processing elements; or all be implemented in the form of hardware; or some modules can be implemented in the form of software called through processing elements, and some modules can be implemented in the form of hardware. For example, the detection module can be a separately established processing element, or it can be integrated into a chip of an electronic device. The implementation of other modules is similar. In addition, these modules can all or partly be integrated together, or they can be implemented independently. During the implementation process, each step of the above method or each of the above modules can be completed by the hardware integrated logic circuit in the processor element or by instructions in the form of software.

[0197] For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application-specific integrated circuits (ASICs), one or more microprocessors (DSPs), or one or more field programmable gate arrays (FPGAs). For another example, these modules may be integrated together to implement a system-on-a-chip (SOC).

[0198] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.

[0199] It is understandable that, in order to realize the above functions, the above-mentioned electronic devices and the like include hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the embodiments of the present application.

[0200] The embodiment of the present application can divide the functional modules of the above-mentioned electronic device etc. according to the above-mentioned method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0201] Through the description of the above embodiments, those skilled in the art will clearly understand that for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working processes of the above-described systems, devices, and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0202] The functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0203] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as flash memory, mobile hard disk, read-only memory, random access memory, magnetic disk or optical disk.

[0204] The above is only a specific embodiment of the present application, but the scope of protection of this application is not limited to this. Any changes or substitutions within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A link establishment method, applied to a first device, characterized in that: The method comprises: Establishing a first link with a second device; Acquire a set of links to be selected, wherein the set of links to be selected includes multiple links to be selected; Selecting a second link from the set of candidate links, establishing the second link with the second device, and communicating with the second device using the first link and the second link; Establishing a first link with the second device includes: Sending link-related information to a third device; receiving a link establishment notification sent by the third device, where the link establishment notification includes a path of the first link; establishing the first link with the second device based on the link establishment notification; The candidate link set is sent by the third device, and the candidate link set is determined by link-related information of the first device and the second device, and the link-related information includes one or more of network address translation type, operator type, and network card type.

2. The method according to claim 1, characterized in that The method comprises: Acquire QoS information on the first link, and update the priorities of the candidate links in the set of candidate links based on the QoS information.

3. The method according to claim 2, characterized in that The selecting a second link from the set of links to be selected comprises: Obtaining a service status; wherein the service status is used to characterize the matching status between the service demand and the capability of the established link; A second link is determined based on the service status and the priorities of the candidate links.

4. The method according to claim 3, characterized in that The method further comprises: Constructing an established link set, wherein the established link set includes multiple established links; Obtaining the priority of the established link; One or more established links in the established link set are deleted based on the service status and the priority of the established link.

5. The method according to claim 3, characterized in that The second link is a link to be selected with the highest priority in the set of links to be selected.

6. The method according to claim 4, characterized in that The deleting an established link in the established link set based on the service status and the priority of the established link includes: If the capacity of the current established link exceeds the service demand, the established link with the lowest priority in the set of established links is deleted.

7. A first device, characterized in that: include: A memory, wherein the memory is used to store computer program code, wherein the computer program code includes instructions, and when the first device reads the instructions from the memory, the first device executes the method according to any one of claims 1 to 6.

8. A computer-readable storage medium, characterized in that The method comprises computer instructions, which, when executed on the first device, cause the first device to execute the method according to any one of claims 1 to 6.

9. A computer program product, characterized in that When the computer program product is run on a computer, the computer is caused to perform the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Method, base stations and system for link establishment

    CN104144458A

  • A tunnel bandwidth resource recovery method and device

    CN108574646A

  • Communication method and device of wireless local area network, medium and electronic equipment

    CN111787544A