Link allocation methods, devices and electronic equipment
By allocating the link with the maximum signal strength value in the electronic device as the uplink, the problem of large service latency in TDD mode is solved, and simultaneous transmission of uplink and downlink services is achieved, thus improving processing efficiency.
Patent Information
- Application Number
- CN202211338848.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-28
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2042-10-28
AI Technical Summary
In TDD mode, if an electronic device needs to transmit downlink services of application B while transmitting uplink services of application A, it may result in significant service latency and affect user experience.
By acquiring the signal strength values of multiple communication links with the wireless LAN, and allocating one link as the uplink and the other as the downlink based on the maximum signal strength value, FDD mode is implemented to ensure that uplink and downlink services can be carried out simultaneously.
It reduces latency when electronic devices transmit some services, improves the efficiency of business data processing, and reduces latency caused by switching, especially when processing multiple applications at the same time.
Smart Images

Figure CN115665861B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of communications, specifically relating to a link allocation method, apparatus, and electronic device. Background Technology
[0002] Currently, electronic devices can access the internet via wireless network communication technology (Wi-Fi). However, because Wi-Fi operates in Time Division Duplex (TDD) mode, electronic devices can only send or receive services at a time in TDD mode.
[0003] Typically, when a user uses both application A and application B simultaneously, the electronic device needs to process the services of both applications at the same time. For example, when the electronic device is transmitting uplink services for application A, it can only transmit uplink services for application B as well; or, when the electronic device is transmitting downlink services for application A, it can only transmit downlink services for application B as well.
[0004] However, when an electronic device is transmitting uplink traffic for application A, if it also needs to transmit downlink traffic for application B, the device will switch from uplink to downlink traffic after completing the uplink transmission for application A. This may cause the electronic device to time out when transmitting downlink traffic for application B. Consequently, this results in significant latency when the electronic device transmits only part of the service. Summary of the Invention
[0005] The purpose of this application is to provide a link allocation method, apparatus, and electronic device that can reduce latency when an electronic device transmits certain services.
[0006] In a first aspect, embodiments of this application provide a link allocation method, the method comprising: obtaining a target signal strength value, the target signal strength value being the signal strength value corresponding to at least two links, one link corresponding to one signal strength value; the at least two links being communication links between an electronic device and a wireless local area network; and allocating the link corresponding to the maximum signal strength value among the target signal strength values as an uplink link.
[0007] Secondly, embodiments of this application provide a link allocation device, which includes an acquisition module and an allocation module. The acquisition module is used to acquire target parameters, including a first signal strength value and a second signal strength value. The first signal strength value is the signal strength value of a first link, and the second signal strength value is the signal strength value of a second link; the first link and the second link are communication links between an electronic device and a wireless local area network (WLAN). The allocation module is used to allocate the first link and the second link as links with different transmission directions based on the first signal strength value and the second signal strength value acquired by the acquisition module. The device includes an acquisition module and an allocation module; the acquisition module is used to acquire a target signal strength value, which is the signal strength value corresponding to at least two links, with one link corresponding to one signal strength value; the at least two links are communication links between an electronic device and a WLAN. The allocation module is used to allocate the link corresponding to the maximum signal strength value among the target signal strength values acquired by the acquisition module as an uplink link.
[0008] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement the steps of the method described in the first aspect.
[0009] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.
[0010] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.
[0011] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.
[0012] In this embodiment, the electronic device acquires a target signal strength value, which is the signal strength value corresponding to at least two links, with one link corresponding to one signal strength value. These at least two links are communication links between the electronic device and the wireless local area network (WLAN). Based on the target signal strength value, the link corresponding to the maximum signal strength value is assigned as the uplink link. Since the electronic device can acquire the signal strength value corresponding to each link after establishing multiple communication links with the WLAN, and assign the link corresponding to the maximum signal strength value as the uplink link, primarily handling uplink services, the efficiency of the electronic device in processing service data can be improved, and the latency when the electronic device transmits some services can be reduced. Attached Figure Description
[0013] Figure 1 This is one of the schematic diagrams of the working mode of a TDD mode provided in the embodiments of this application;
[0014] Figure 2 This is a schematic diagram of a hardware architecture for a TDD mode provided in an embodiment of this application;
[0015] Figure 3 This is a second schematic diagram of the working mode of a TDD mode provided in the embodiments of this application;
[0016] Figure 4 This is the third schematic diagram of the working mode of a TDD mode provided in the embodiments of this application;
[0017] Figure 5 This is one of the flowcharts of a link allocation method provided in the embodiments of this application;
[0018] Figure 6 This is a second flowchart of a link allocation method provided in the embodiments of this application;
[0019] Figure 7 This is one of the schematic diagrams of the working mode of a link allocation method provided in the embodiments of this application;
[0020] Figure 8 This is the third flowchart of a link allocation method provided in the embodiments of this application;
[0021] Figure 9 This is a second schematic diagram of the working mode of a link allocation method provided in the embodiments of this application;
[0022] Figure 10 This is the fourth flowchart of a link allocation method provided in the embodiments of this application;
[0023] Figure 11This is a schematic diagram of the structure of a link allocation device provided in an embodiment of this application;
[0024] Figure 12 This is one of the hardware structure diagrams of an electronic device provided in the embodiments of this application;
[0025] Figure 13 This is a second schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0026] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0027] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0028] With the rapid development of the Internet and electronic devices, mobile games and live streaming have become important ways for people to relax and have fun, and have also spawned various industries. For example, online games or live streaming have a common feature: they all have high requirements for latency, and latency is directly related to the user experience.
[0029] Currently, users can access the internet by connecting electronic devices, such as mobile phones, to the network via WiFi. WiFi is a TDD (Time-Based Delivery) working method. Figure 1 A schematic diagram of the working mode of TDD is shown, such as Figure 1 As shown, after the sending end finishes sending data, it needs to wait for a minimum SIFS interval of approximately 16µs, and then wait for the receiving end to receive the data and send an ACK back to the sending end. This time is approximately 24µs. After receiving the ACK, the sending end still needs to wait for a DIFS interval of approximately 34µs before sending the next frame of data.
[0030] Figure 2 A schematic diagram of a hardware architecture for a TDD mode is shown; as follows: Figure 2As shown, the hardware architecture of electronic devices and routers are designed according to the TDD method.
[0031] Therefore, in TDD mode, at any given time, electronic devices can only transmit downlink services or uplink services.
[0032] In the first scenario,
[0033] The phone needs to handle two applications simultaneously, for example, watching a live broadcast through application A and grabbing red envelopes through application B. Figure 3 This illustrates a TDD working mode in the first scenario.
[0034] In the second scenario,
[0035] Mobile applications require low latency, such as game applications, and need to refresh the map or server status in real time while playing the game. Figure 4 This illustrates a TDD working mode in the second scenario.
[0036] Therefore, since mobile phones must process downlink traffic after completing uplink traffic, in the two scenarios mentioned above, the latency of electronic devices transmitting some traffic may be relatively large, affecting the user experience.
[0037] The link allocation method provided in this application can be applied to electronic devices that support dual WiFi. It utilizes two non-interfering links (i.e., two links operating in different frequency bands), setting one link to mainly handle uplink services and the other link to mainly handle downlink services. At the same time, a certain synchronization is established between the two links to mutually confirm the received data, realizing the FDD mode where uplink and downlink services work simultaneously at the same time, reducing the latency of uplink and downlink TDD switching in actual applications.
[0038] The allocation provided in the embodiments of this application will be described in detail below with reference to the accompanying drawings, through specific examples and application scenarios.
[0039] This application provides a link allocation method. Figure 5 A flowchart illustrating a link allocation method provided in an embodiment of this application is shown. This method can be applied to electronic devices that support dual WiFi. Figure 5 As shown, the link allocation method provided in this application embodiment may include the following steps 201 and 202.
[0040] Step 201: The electronic device acquires the target signal strength value.
[0041] In this embodiment of the application, the target signal strength value is the signal strength value corresponding to at least two links, and one link corresponds to one signal strength value; the at least two links are communication links between electronic devices and wireless local area networks.
[0042] Optionally, in this embodiment of the application, the electronic device can establish multiple communication links with the wireless local area network and obtain the signal strength values corresponding to the multiple communication links, so as to allocate links for data transmission to the electronic device according to the multiple signal strength values.
[0043] Optionally, in this embodiment of the application, the electronic device can establish a connection with a wireless local area network (e.g., a router) through a WiFi module to establish multiple communication links, thereby enabling the electronic device to obtain the signal strength values of multiple links.
[0044] It should be noted that among the multiple communication links established by electronic devices, each link corresponds to an independent module, which can independently perform the transmission of services.
[0045] Step 202: The electronic device assigns the link corresponding to the maximum signal strength value among the target signal strength values as the uplink link.
[0046] In this embodiment of the application, after the electronic device obtains the target signal strength value, that is, after obtaining the signal strength values of multiple communication links, it can allocate the link corresponding to the maximum signal strength value among the target signal strength values as the uplink link.
[0047] Optionally, in this embodiment of the application, after the electronic device obtains the target signal strength value, that is, after obtaining the signal strength values of multiple communication links, it can allocate the communication links corresponding to different signal strength values as communication links with different transmission directions according to the target signal strength value.
[0048] Optionally, in this embodiment of the application, after the electronic device obtains the target signal strength value, it can compare each signal strength value in the target signal strength value, and according to the comparison result, allocate the communication link with the largest signal strength value as the uplink, and according to the comparison result, allocate the communication link with the smallest signal strength value as the downlink.
[0049] For example, if the currently available frequency bands of the wireless local area network are 2.4G, 5.1G and 5.8G, the electronic device can connect to the frequency band with the highest signal strength among the three frequency bands, such as the 5.8G frequency band, to establish a first link, i.e., an uplink. Furthermore, the electronic device can select the frequency band with the second highest signal strength, other than the frequency band corresponding to the first link, to connect to, for example, the 5.1G frequency band, to establish a second link, i.e., a downlink.
[0050] For example, if the target signal strength value includes a first signal strength value and a second signal strength value, and the first signal strength value is greater than the second signal strength value, then the link corresponding to the first strength value is assigned as an uplink; if the first signal strength value is less than the second signal strength value, then the link corresponding to the second strength value is assigned as an uplink.
[0051] For example, if the target signal strength value includes a first signal strength value and a second signal strength value, and the first signal strength value is greater than the second signal strength value, then the link corresponding to the second strength value is assigned as a downlink; if the first signal strength value is less than the second signal strength value, then the link corresponding to the first strength value is assigned as a downlink.
[0052] Optionally, in this embodiment of the application, after establishing at least two communication links between the electronic device and the wireless local area network, the electronic device obtains the signal strength values of at least two links, and allocates the link corresponding to the signal strength value of the at least two links that is greater than a preset strength threshold as an uplink.
[0053] Optionally, in this embodiment of the application, after establishing at least two communication links between the electronic device and the wireless local area network, the electronic device obtains the signal strength values of at least two links, and allocates the link corresponding to the signal strength value of the at least two links that is less than a preset strength threshold as a downlink.
[0054] For example, after establishing four communication links between the electronic device and the wireless local area network (i.e., after establishing the first link, the second link, the third link, and the fourth link), the electronic device obtains the signal strength values of the four links, compares the signal strength values of the four links, and if the signal strength values of the first link and the second link are greater than a preset strength threshold, then the first link and the second link are assigned as uplinks; or, if the signal strength values of the four links are in ascending order of the fourth link, the third link, the second link, and the first link, then the first link and the second link are assigned as uplinks.
[0055] For example, after establishing four communication links between the electronic device and the wireless local area network (i.e., after establishing the first link, the second link, the third link, and the fourth link), the electronic device obtains the signal strength values of the four links, compares the signal strength values of the four links, and if the signal strength values of the first link and the second link are less than a preset strength threshold, then the first link and the second link are assigned as downlinks; or, if the signal strength values of the four links are in ascending order of the fourth link, the third link, the second link, and the first link, then the fourth link and the third link are assigned as downlinks.
[0056] Optionally, in this embodiment of the application, after the electronic device allocates the corresponding link as an uplink according to the target signal strength value, it can process the uplink data of the application currently being processed by the electronic device through the uplink.
[0057] Optionally, in this embodiment of the application, after the electronic device allocates the corresponding link as a downlink according to the target signal strength value, it can process the downlink data of the application currently being processed by the electronic device through the downlink.
[0058] Optionally, in this embodiment of the application, after the electronic device allocates uplink and downlink according to the target signal strength value, for example, after allocating the first link as the uplink and the second link as the downlink, the first link can be mainly used to handle uplink services and the second link can be mainly used to handle downlink services. According to service requirements, the first link can be allocated to be in the transmitting end for a long time and the second link can be allocated to be in the receiving end for a long time.
[0059] It should be noted that after the electronic device allocates the corresponding link as uplink and downlink according to the target signal strength value, it can switch from TDD mode to FDD mode.
[0060] For example, when the current service required by the electronic device includes transmitting uplink service of application A and transmitting downlink service of application B, and the first link with the largest target signal strength value is assigned as the uplink link, and the second link with the smallest target signal strength value is assigned as the downlink link, that is, when the electronic device transmits uplink service of application A through the first link, if it needs to transmit downlink service of application B, the electronic device can directly receive downlink data sent by the server device through the second link, and feed back the uplink data of service 2 to the server device in real time through the first link; or, when the electronic device transmits downlink service of application A through the second link, if it needs to transmit uplink data of application B, the electronic device can directly send uplink data of application B to the server device through the first link, and receive downlink data of application A sent by the server device in real time through the second link.
[0061] It should be noted that in scenarios with strong WiFi signals, the power consumption is relatively low due to the higher negotiation rate, which can reduce power consumption by using it for the uplink path.
[0062] In this embodiment, the electronic device can allocate multiple links as uplinks or downlinks based on the signal strength values of multiple links. Since the negotiation rate is high in WiFi strong signal scenarios, allocating uplinks or downlinks based on signal strength values can reduce the power consumption of the electronic device.
[0063] This application provides a link allocation method. A target signal strength value is obtained, which is the signal strength value corresponding to at least two links, with one link corresponding to one signal strength value. These at least two links are communication links between an electronic device and a wireless local area network (WLAN). Based on the target signal strength value, the link corresponding to the highest signal strength value among the target signal strength values is allocated as an uplink. Since the electronic device can obtain the signal strength value corresponding to each link after establishing multiple communication links with the WLAN, and allocate the link corresponding to the highest signal strength value as an uplink to primarily handle uplink services, the efficiency of the electronic device in processing service data can be improved, and the latency when the electronic device transmits some services can be reduced.
[0064] Optionally, in the embodiments of this application, step 202 can be implemented by the following steps 202a1 and 202b1.
[0065] Step 202a1: The electronic device obtains the number of currently running applications.
[0066] Optionally, in this embodiment of the application, the electronic device also needs to obtain the number of currently running applications and allocate communication links according to the number of currently running applications.
[0067] Step 202b1: If the number of applications is greater than or equal to a preset number threshold, the electronic device will allocate the link corresponding to the minimum signal strength value among the target signal strength values as a downlink and the link corresponding to the maximum signal strength value among the target signal strength values as an uplink.
[0068] In this embodiment of the application, the electronic device can obtain the number of currently running applications and determine the number of applications currently being processed. If the number of applications is greater than or equal to a preset number threshold, the link corresponding to the minimum signal strength value among the target signal strength values is assigned as a downlink, and the link corresponding to the maximum signal strength value among the target signal strength values is assigned as an uplink.
[0069] Optionally, in this embodiment of the application, if the number of applications is less than a preset threshold, the electronic device may adopt the default TDD working mode, and after establishing at least two communication links, use one or more of the links as the main path and the other one or more communication links as auxiliary paths to accelerate.
[0070] For example, Figure 6 A flowchart of a link allocation method provided in an embodiment of this application is shown, as follows: Figure 6 As shown, after the electronic device establishes two links, namely the first link and the second link, the electronic device can determine the number of applications currently in the foreground. If the number of applications is less than a preset threshold, the TDD+ dual WiFi acceleration working mode is executed. If the number of applications is greater than or equal to the preset threshold, the first signal strength value of the first link and the second signal strength value of the second link are obtained, and it is determined whether the first signal strength value is greater than the second signal strength value. If yes, the first link is assigned as an uplink and the second link is assigned as a downlink. If no, the second link is assigned as an uplink and the first link is assigned as a downlink. After the electronic device assigns uplink and downlink, the electronic device transmits the service of application A in the current foreground application through the uplink and downlink. When the electronic device transmits the service of application A, it can determine whether it needs to transmit the uplink service of application B in the current foreground application. If yes, with the first link assigned as an uplink and the second link assigned as a downlink, the uplink service of application B is sent to the server device through the first link. If no, the downlink service sent by the server device is received in real time through the second link.
[0071] For example, Figure 7 A schematic diagram illustrating the working mode of a link allocation method provided in an embodiment of this application is shown, as follows: Figure 7 As shown, if a mobile phone needs to handle the services of application A (live broadcast) and application B (red envelope grabbing), the mobile phone can switch from TDD mode to FDD mode and transmit the uplink services of application A and application B through the first link. At the same time, it receives the downlink data of application B through the second link, that is, it receives the red envelope information in time, so as to quickly click the red envelope grabbing operation, and directly sends the feedback message to the server device through the first link. The latency can be shortened from the original T1 to T2 without waiting in between.
[0072] Optionally, in this embodiment of the application, when the number of applications processed by the electronic device is greater than or equal to a preset number threshold, that is, when the electronic device processes N applications, the electronic device can compare the priorities of the N applications and assign the processing order of the applications according to the priorities.
[0073] Optionally, in this embodiment, when the link corresponding to the minimum target signal strength value is assigned as a downlink and the link corresponding to the maximum target signal strength value is assigned as an uplink, the electronic device can send data from the first application of the multiple applications currently being processed by the electronic device to the server device via the uplink, and receive data sent by the server device to the first application via the downlink; when the second application of the multiple applications currently being processed requires to send data via the uplink, the required data is sent to the server device via the uplink, and the data sent by the server device to the second application is received in real time via the downlink, wherein the priority of the first application may be higher than the priority of the second application.
[0074] In this embodiment, the electronic device can utilize two non-interfering links, with one link designated for uplink transmission and the other for downlink transmission. When the electronic device processes multiple service data simultaneously, multiple services can simultaneously perform uplink and downlink on different frequency bands. The data of other services will not be delayed due to the high priority of a particular service or the limitation of the phone's hardware state by that service. In this way, the latency of the electronic device in processing services is reduced.
[0075] Optionally, in the embodiments of this application, step 202 can be implemented by steps 202a2 and 202b2 as described below.
[0076] Step 202a2: The electronic device obtains the latency of the currently running application.
[0077] Optionally, in this embodiment of the application, the electronic device also needs to obtain the latency of the currently running application and allocate a communication link based on the latency of the currently running application.
[0078] Step 202b2: If the application's latency requirement is less than or equal to the preset latency threshold, the electronic device will allocate the link corresponding to the minimum target signal strength value as the downlink and the link corresponding to the maximum target signal strength value as the uplink.
[0079] In this embodiment, the electronic device can determine the latency requirement of the currently processed application. If the latency requirement of the application is less than a preset latency threshold, the link corresponding to the minimum target signal strength value is assigned as a downlink, and the link corresponding to the maximum target signal strength value is assigned as an uplink.
[0080] Optionally, in this embodiment of the application, when an electronic device needs to process an application, if the latency requirement of the application is greater than a preset latency threshold, the electronic device may default to the TDD working mode, that is, one or more communication links are used as the main path, and another one or more communication links are used as auxiliary paths to accelerate.
[0081] Optionally, in this embodiment of the application, the electronic device can pre-add applications with low latency requirements to the whitelist, or pre-set some specific application scenarios with high latency requirements.
[0082] Optionally, in this embodiment of the application, after the electronic device allocates communication links with different transmission directions according to the target signal strength value, the electronic device automatically switches from TDD mode to FDD mode.
[0083] For example, Figure 8 A flowchart of a link allocation method provided in an embodiment of this application is shown, as follows: Figure 8 As shown, after the electronic device establishes two links, namely the first link and the second link, the electronic device can determine the latency requirements of the current foreground application. If the latency requirement of the application is greater than a preset latency threshold, the TDD+ dual WiFi acceleration working mode is executed. If the latency requirement of the application is less than or equal to the preset latency threshold, the first signal strength value of the first link and the second signal strength value of the second link are obtained, and it is determined whether the first signal strength value is greater than the second signal strength value. If so, the first link is assigned as an uplink and the second link is assigned as a downlink. If not, the second link is assigned as an uplink and the first link is assigned as a downlink. After the electronic device assigns uplink and downlink, and when the first link is assigned as an uplink and the second link is assigned as a downlink, the uplink service of the application (such as sending operation instructions) is sent to the server device through the first link, and the downlink service sent by the server device is received in real time through the second link.
[0084] For example, Figure 9 This illustration shows a schematic diagram of the working mode of a link allocation method provided in an embodiment of this application, such as... Figure 9 As shown, in applications requiring low latency, such as games, where users need to update the map and server status in real time while controlling their characters, electronic devices allocate multiple links as uplinks and downlinks based on the application's latency requirements. For example, the first link is allocated as an uplink and the second link as a downlink. User commands can be sent to the server via the first link, while map and server updates can be received via the second link.
[0085] In this embodiment, the electronic device can determine the latency requirements of the currently processed application. If the application has high latency requirements, i.e., the latency requirements are less than or equal to a preset latency threshold, the electronic device can also adopt FDD mode in a single application scenario, i.e., uplink and downlink services are transmitted simultaneously, thereby reducing the latency of the electronic device.
[0086] Optionally, in the embodiments of this application, step 202 above can be specifically implemented by steps 202c to 202e below.
[0087] Step 202c: The electronic device assigns the link corresponding to the maximum signal strength value among the target signal strength values as the uplink.
[0088] Optionally, in this embodiment of the application, the electronic device may allocate the link corresponding to the largest signal strength value among the target signal strength values as an uplink; or, the electronic device may allocate the link corresponding to the signal strength value greater than a preset strength threshold among the target signal strength values as an uplink.
[0089] Step 202d: The electronic device assigns the link corresponding to the minimum signal strength value among the target signal strength values as a flexible link.
[0090] Optionally, in this embodiment of the application, the electronic device can allocate the link corresponding to the minimum signal strength value among the target signal strength values as a flexible link; or, the electronic device can allocate the link corresponding to the signal strength value among the target signal strength values that is less than or equal to a preset strength threshold as a flexible link; or, the electronic device can allocate the link corresponding to the strength value of the signal strength value within the first preset threshold range among the target signal strength values as a flexible link.
[0091] Step 202e: The electronic device assigns the corresponding links to the target signal strength values other than the maximum and minimum signal strength values as downlinks.
[0092] Optionally, in this embodiment of the application, the electronic device may allocate the link corresponding to the signal strength value other than the maximum and minimum signal strength values in the target signal strength value as a downlink; or, the electronic device may allocate the link corresponding to the signal strength value second only to the maximum signal strength value in the target signal strength value as an uplink; or, the electronic device may allocate the link corresponding to the strength value of the signal strength value in the target signal strength value within a second preset threshold range as an uplink.
[0093] In this embodiment of the application, the electronic device can establish multiple links, and after allocating uplinks and downlinks according to the multiple links, it can allocate flexible links. Therefore, while reducing the latency of the electronic device, it also meets the needs of large business data volume.
[0094] Optionally, after step 202e above, the link allocation method provided in this application embodiment further includes step 301 or step 302 as described below.
[0095] Step 301: If the first transmission rate is greater than or equal to a preset rate threshold and the first transmission rate is greater than or equal to a second transmission rate, the electronic device transmits part of the uplink data in the flexible link.
[0096] Step 302: If the second transmission rate is greater than or equal to the preset rate threshold and the second transmission rate is greater than or equal to the second transmission rate, the electronic device transmits part of the downlink data in the flexible link.
[0097] The first transmission rate is the transmission rate of data transmitted in the uplink, and the second transmission rate is the transmission rate of data transmitted in the downlink.
[0098] Optionally, in the embodiments of this application, for scenarios where multiple applications work simultaneously, the electronic device can allocate multiple links as uplinks and downlinks based on the signal strength values of multiple links. Among them, the flexible link can dynamically adjust its uplink or downlink behavior according to the traffic volume of the service that the current electronic device needs to process, that is, flexibly allocate it as an uplink or downlink.
[0099] For example, if the currently available frequency bands of the wireless local area network are 2.4G, 5.1G and 5.8G, the electronic device can connect one or more frequency bands with the highest signal strength value among the three frequency bands to establish a first link. Furthermore, the electronic device can arbitrarily select one or more frequency bands with a signal strength value lower than that of the first link from the frequency bands other than the frequency band corresponding to the first link to establish a second link. Then, the electronic device can use the remaining frequency bands as a third link, i.e., a flexible link. For example, since the 5G frequency band has significant advantages over the 2.4G in terms of interference and bandwidth, in FDD scenarios, the 5.8G and 5.1G links are set as uplink and downlink respectively, while the 2.4G link serves as a flexible link whose transmission direction can be dynamically adjusted. By default, the flexible link is in standby mode. When multiple services simultaneously require uplink transmission, resulting in a large uplink data volume (a certain threshold can be set, such as exceeding 100Mbps), and significantly higher than the downlink data transmission rate, the electronic device can allocate the flexible link as an uplink link to assist the first link in uplink transmission. When multiple services simultaneously require downlink transmission, resulting in a large downlink data volume (a certain threshold can be set, such as exceeding 100Mbps), and significantly higher than the uplink data transmission rate, the flexible link can be allocated as a downlink link to assist the second link in downlink transmission.
[0100] For example, Figure 10 A flowchart of a link allocation method provided in an embodiment of this application is shown, as follows: Figure 10 As shown, the electronic device establishes three links. After establishing the three links, the signal strength values of the three links are judged, and an uplink, downlink, and flexible link are allocated according to the judgment results. If the electronic device allocates the link with the largest signal strength value as the uplink, the link with the second largest signal strength value as the downlink, and the link with the smallest signal strength value as the flexible link, it is judged whether the transmission rate of the uplink data is greater than the transmission rate of the downlink data and whether the transmission rate of the uplink data is greater than a preset rate threshold (e.g., 100Mbps). If so, the flexible link is allocated as the uplink to assist the first link in transmitting uplink data; if not, the flexible link is allocated as the downlink to assist the downlink in transmitting downlink data.
[0101] Optionally, in this embodiment, if the first transmission rate is greater than or equal to a preset rate threshold and the first transmission rate is less than a second transmission rate, the electronic device transmits a portion of the uplink data in the flexible link. If the second transmission rate is greater than or equal to the preset rate threshold and the second transmission rate is less than a second transmission rate, the electronic device transmits a portion of the downlink data in the flexible link.
[0102] In this embodiment, the electronic device can establish multiple links, and after allocating uplinks and downlinks according to the multiple links, it can allocate flexible links. Thus, the electronic device can change the transmission direction of the flexible links according to the current service requirements. Therefore, while reducing the latency of the electronic device, it also meets the needs of large service data volumes.
[0103] The link allocation method provided in this application can be executed by a link allocation device. This application uses the example of a link allocation device executing the link allocation method to illustrate the link allocation device provided in this application.
[0104] Figure 11 A schematic diagram of a possible structure of the link allocation device involved in an embodiment of this application is shown. For example... Figure 11 As shown, the link allocation device 60 may include an acquisition module 61 and an allocation module 62.
[0105] The acquisition module 61 is used to acquire the target signal strength value, which is the signal strength value corresponding to at least two links, with one link corresponding to one signal strength value; the at least two links are communication links between the electronic device and the wireless local area network. The allocation module 62 is used to allocate the link corresponding to the maximum signal strength value among the target signal strength values acquired by the acquisition module 61 as the uplink link.
[0106] This application provides a link allocation device. After establishing multiple communication links with a wireless local area network, the electronic device can obtain the signal strength value corresponding to each link, and allocate the link corresponding to the largest signal strength value as the uplink link based on the signal strength value of each link, and mainly handle uplink services. Therefore, it can improve the efficiency of the electronic device in processing service data and reduce the latency of the electronic device when transmitting some services.
[0107] In one possible implementation, the allocation module 62 is specifically used to obtain the number of currently running applications; if the number of applications is greater than or equal to a preset number threshold, then according to the target signal strength value, the link corresponding to the minimum signal strength value among the target signal strength values is allocated as a downlink; and the link corresponding to the maximum signal strength value among the target signal strength values is allocated as an uplink.
[0108] In one possible implementation, the allocation module 62 is specifically used to obtain the latency of the currently running application; if the latency requirement of the application is less than or equal to a preset latency threshold, then according to the target signal strength value, the link corresponding to the minimum signal strength value among the target signal strength values is allocated as a downlink; and the link corresponding to the maximum signal strength value among the target signal strength values is allocated as an uplink.
[0109] In one possible implementation, the allocation module 62 is specifically used to allocate the link corresponding to the minimum signal strength value among the target signal strength values as a flexible link; allocate the link corresponding to the maximum signal strength value among the target signal strength values as an uplink; and allocate the links corresponding to the signal strength values other than the maximum and minimum signal strength values among the target signal strength values as downlinks.
[0110] In one possible implementation, the link allocation device 60 further includes a transmission module. The transmission module is configured to, after the allocation module 62 allocates the link corresponding to the minimum signal strength value among the target signal strength values as a flexible link, transmit a portion of the uplink data in the flexible link if a first transmission rate is greater than or equal to a preset rate threshold and a second transmission rate is greater than or equal to a second transmission rate; or, transmit a portion of the downlink data in the flexible link if a second transmission rate is greater than or equal to a preset rate threshold and a second transmission rate is greater than or equal to a second transmission rate; wherein the first transmission rate is the transmission rate of the data transmitted in the uplink, and the second transmission rate is the transmission rate of the data transmitted in the downlink.
[0111] The link allocation device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the specific device.
[0112] The link allocation device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system used.
[0113] The link allocation device provided in this application embodiment can implement the various processes implemented in the above method embodiment, and will not be described again here to avoid repetition.
[0114] Optionally, such as Figure 12 As shown, this application embodiment also provides an electronic device 700, including a processor 701 and a memory 702. The memory 702 stores a program or instructions that can run on the processor 701. When the program or instructions are executed by the processor 701, they implement the various steps of the above-described link allocation method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0115] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.
[0116] Figure 13 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.
[0117] The electronic device 100 includes, but is not limited to, components such as: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, and processor 110.
[0118] Those skilled in the art will understand that the electronic device 100 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 110 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 13 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0119] The radio frequency unit 101 is used to acquire the target signal strength value, which is the signal strength value corresponding to at least two links, with one link corresponding to one signal strength value; the at least two links are communication links between the electronic device and the wireless local area network. The processor 110 is used to allocate the link corresponding to the maximum signal strength value among the target signal strength values as the uplink link.
[0120] This application provides an electronic device that, after establishing multiple communication links with a wireless local area network, can obtain the signal strength value corresponding to each link, and allocate the link corresponding to the largest signal strength value as an uplink link based on the signal strength value of each link, and mainly handle uplink services. Therefore, it can improve the efficiency of the electronic device in processing service data and reduce the latency of the electronic device when transmitting some services.
[0121] Optionally, the processor 110 is specifically used to obtain the number of currently running applications; if the number of applications is greater than or equal to a preset number threshold, then according to the target signal strength value, the link corresponding to the minimum signal strength value among the target signal strength values is allocated as a downlink; and the link corresponding to the maximum signal strength value among the target signal strength values is allocated as an uplink.
[0122] Optionally, the processor 110 is specifically used to obtain the latency of the currently running application; if the latency requirement of the application is less than or equal to a preset latency threshold, then according to the target signal strength value, the link corresponding to the minimum signal strength value among the target signal strength values is assigned as a downlink; and the link corresponding to the maximum signal strength value among the target signal strength values is assigned as an uplink.
[0123] Optionally, the processor 110 is specifically configured to allocate the link corresponding to the minimum signal strength value among the target signal strength values as a flexible link; allocate the link corresponding to the maximum signal strength value among the target signal strength values as an uplink; and allocate the links corresponding to the signal strength values other than the maximum and minimum signal strength values among the target signal strength values as downlinks.
[0124] Optionally, the processor 110 is further configured to, after allocating the link corresponding to the minimum signal strength value among the target signal strength values as a flexible link, transmit a portion of the uplink data in the flexible link if the first transmission rate is greater than or equal to a preset rate threshold and the first transmission rate is greater than or equal to a second transmission rate; or, transmit a portion of the downlink data in the flexible link if the second transmission rate is greater than or equal to a preset rate threshold and the second transmission rate is greater than or equal to a second transmission rate; wherein the first transmission rate is the transmission rate of the data transmitted in the uplink and the second transmission rate is the transmission rate of the data transmitted in the downlink.
[0125] It should be understood that, in this embodiment, the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, power buttons, etc.), a trackball, a mouse, and a joystick, which will not be described in detail here.
[0126] The memory 109 can be used to store software programs and various data. The memory 109 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 109 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 109 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.
[0127] Processor 110 may include one or more processing units; optionally, processor 110 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 110.
[0128] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described link allocation method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0129] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0130] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described link allocation method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0131] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0132] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the link allocation method embodiment described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0133] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0134] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0135] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A link allocation method, characterized in that, The method includes: The target signal strength value is obtained, wherein the target signal strength value is the signal strength value corresponding to at least two links, and one link corresponds to one signal strength value; the at least two links are communication links between the electronic device and the wireless local area network. Based on the target signal strength values, the link corresponding to the maximum signal strength value among the target signal strength values is assigned as an uplink, and the link corresponding to the minimum signal strength value among the target signal strength values is assigned as a downlink, and data is transmitted simultaneously through the uplink and the downlink; Alternatively, based on the target signal strength value, the link corresponding to the maximum signal strength value among the target signal strength values is allocated as an uplink, and the links corresponding to the signal strength values other than the maximum and minimum signal strength values among the target signal strength values are allocated as downlinks, and data is transmitted simultaneously through the uplink and the downlink; The uplink is a communication link for transmitting uplink services, and the downlink is a communication link for transmitting downlink services.
2. The method according to claim 1, characterized in that, The step of allocating the link corresponding to the maximum signal strength value among the target signal strength values as an uplink and the link corresponding to the minimum signal strength value among the target signal strength values as a downlink includes: Get the number of currently running applications; If the number of applications is greater than or equal to a preset number threshold, then based on the target signal strength value, the link corresponding to the minimum signal strength value among the target signal strength values is assigned as a downlink; and the link corresponding to the maximum signal strength value among the target signal strength values is assigned as an uplink.
3. The method according to claim 1, characterized in that, The step of allocating the link corresponding to the maximum signal strength value among the target signal strength values as an uplink and the link corresponding to the minimum signal strength value among the target signal strength values as a downlink includes: Get the latency of the currently running application; If the latency requirement of the application is less than or equal to a preset latency threshold, then according to the target signal strength value, the link corresponding to the minimum signal strength value among the target signal strength values is assigned as a downlink; and the link corresponding to the maximum signal strength value among the target signal strength values is assigned as an uplink.
4. The method according to claim 1, characterized in that, The step of allocating the link corresponding to the maximum signal strength value among the target signal strength values as an uplink, and allocating the links corresponding to the signal strength values other than the maximum and minimum signal strength values among the target signal strength values as downlinks, includes: The link corresponding to the minimum signal strength value among the target signal strength values is assigned as a flexible link; The link corresponding to the maximum signal strength value among the target signal strength values is assigned as an uplink link; The links corresponding to the target signal strength values other than the maximum and minimum signal strength values are assigned as downlinks.
5. The method according to claim 4, characterized in that, After allocating the link corresponding to the minimum signal strength value among the target signal strength values as a flexible link, the method further includes: If the first transmission rate is greater than or equal to a preset rate threshold and the first transmission rate is greater than or equal to a second transmission rate, then a portion of the data in the uplink is transmitted in the flexible link. or, If the second transmission rate is greater than or equal to a preset rate threshold and the second transmission rate is greater than or equal to the first transmission rate, then a portion of the downlink data is transmitted in the flexible link. The first transmission rate is the transmission rate of data transmitted in the uplink, and the second transmission rate is the transmission rate of data transmitted in the downlink.
6. A link allocation device, characterized in that, The device includes: an acquisition module and an allocation module; The acquisition module is used to acquire a target signal strength value, wherein the target signal strength value is the signal strength value corresponding to at least two links, and one link corresponds to one signal strength value; the at least two links are communication links between the electronic device and the wireless local area network. The allocation module is used to allocate the link corresponding to the maximum signal strength value among the target signal strength values as an uplink and the link corresponding to the minimum signal strength value among the target signal strength values as a downlink, based on the target signal strength values obtained by the acquisition module, and to transmit data simultaneously through the uplink and the downlink. Alternatively, based on the target signal strength value, the link corresponding to the maximum signal strength value among the target signal strength values is allocated as an uplink, and the links corresponding to the signal strength values other than the maximum and minimum signal strength values among the target signal strength values are allocated as downlinks, and data is transmitted simultaneously through the uplink and the downlink; The uplink is a communication link for transmitting uplink services, and the downlink is a communication link for transmitting downlink services.
7. The apparatus according to claim 6, characterized in that, The allocation module is specifically used to obtain the number of currently running applications; if the number of applications is greater than or equal to a preset number threshold, then according to the target signal strength value, the link corresponding to the minimum signal strength value among the target signal strength values is allocated as a downlink; The link corresponding to the maximum signal strength value among the target signal strength values is then assigned as the uplink link.
8. The apparatus according to claim 6, characterized in that, The allocation module is specifically used to obtain the latency of the currently running application; if the latency requirement of the application is less than or equal to a preset latency threshold, then according to the target signal strength value, the link corresponding to the minimum signal strength value among the target signal strength values is allocated as a downlink; The link corresponding to the maximum signal strength value among the target signal strength values is then assigned as the uplink link.
9. The apparatus according to claim 6, characterized in that, The allocation module is specifically used to allocate the link corresponding to the minimum signal strength value among the target signal strength values as a flexible link; allocate the link corresponding to the maximum signal strength value among the target signal strength values as an uplink; and allocate the links corresponding to the signal strength values other than the maximum and minimum signal strength values among the target signal strength values as downlinks.
10. The apparatus according to claim 9, characterized in that, The device further includes: a transmission module; The transmission module is configured to, after the allocation module allocates the link corresponding to the minimum signal strength value among the target signal strength values as a flexible link, transmit a portion of the uplink data in the flexible link if the first transmission rate is greater than or equal to a preset rate threshold and the first transmission rate is greater than or equal to a second transmission rate; or, transmit a portion of the downlink data in the flexible link if the second transmission rate is greater than or equal to a preset rate threshold and the second transmission rate is greater than or equal to the first transmission rate; wherein the first transmission rate is the transmission rate of the data transmitted in the uplink, and the second transmission rate is the transmission rate of the data transmitted in the downlink.
11. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the link allocation method as described in any one of claims 1 to 5.
12. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the link allocation method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
System based on wireless multi-link bandwidth aggregation
CN106850455A
Network matching method and device and electronic equipment
CN110752867A
Enhanced high-throughput synchronous and constrained multi-link transmission in WLAN
CN112218365A
Seamless roaming for multi-link device clients
WO2022150198A1
