Data transmission method and electronic device

By adjusting the antenna duty cycle, adaptive time-sharing multiplexing of antennas between multiple short-range communication chips is achieved, which solves the problem of service interruption caused by antenna preemption and improves the data transmission efficiency and user experience of electronic devices.

WO2025138785A1PCT designated stage expired Publication Date: 2025-07-03HONOR DEVICE CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/108823
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-12-28
Filing Date
2024-07-31
Publication Date
2025-07-03

AI Technical Summary

Technical Problem

In electronic devices, when multiple short-range communication chips share one antenna, how to effectively multiplex the antennas in time to ensure the smoothness and transmission rate of service data transmission of each chip, and avoid service interruptions caused by antenna preemption.

Method used

The first chip adjusts the antenna duty cycle based on the communication quality information of the second chip, and realizes adaptive time-sharing multiplexing of the antenna, ensuring that while ensuring the first chip service transmission rate, the communication quality impact on the second chip is reduced.

Benefits of technology

It improves the smoothness and transmission rate of service data transmission between multiple short-range communication chips, reduces service interruptions caused by antenna preemption, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024108823_03072025_PF_FP_ABST
    Figure CN2024108823_03072025_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of communications. Provided are a data transmission method and an electronic device. After a first chip in an electronic device uses a first antenna, whether the communication quality of a second chip in the electronic device is significantly reduced is determined on the basis of QOE information before and after the first chip uses the first antenna. If the communication quality is significantly reduced, in order to improve the communication quality of the second chip, the first chip can reduce an antenna duty cycle, so as to reduce the time that the first chip uses the first antenna, thereby increasing the time that the second chip can use the first antenna, and improving the transmission rate of the second chip. If the communication quality is slightly reduced, indicating that a service of the second chip is slightly affected by the second chip stopping using the first antenna, the first chip can increase the antenna duty cycle, so as to increase the time that the first chip uses the first antenna, thereby increasing the transmission rate of the first chip, realizing rational time-division multiplexing of the first antenna, and ensuring smooth service operation.
Need to check novelty before this filing date? Find Prior Art

Description

Data transmission method and electronic device

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on December 28, 2023, with application number 202311861630.3 and invention name “A Data Transmission Method and Electronic Device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The embodiments of the present application relate to the field of communication technology, and in particular to a data transmission method and electronic device. Background Art

[0003] With the development of technology, electronic devices are generally equipped with short-range communication chips (such as WI-FI (wireless fidelity) chips). Electronic devices can use short-range communication chips to communicate with other electronic devices to transmit business data corresponding to the business with other electronic devices.

[0004] In order to improve the efficiency of electronic devices in processing different services, multiple short-range communication chips (such as two short-range communication chips) can be set in the electronic device, so that the electronic device can use multiple short-range communication chips to process different services, that is, to transmit business data corresponding to different services. Due to the limited space of electronic devices, the short-range communication chips in electronic devices need to use time-sharing multiplexing antennas to transmit business data. Therefore, how to use antennas to transmit business data between multiple short-range communication chips has become an urgent problem that needs to be solved.

[0005] Summary of the Invention

[0006] The embodiments of the present application provide a data transmission method and an electronic device for transmitting service data between multiple short-range communication chips using antennas.

[0007] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:

[0008] In a first aspect, a data transmission method is provided for use in an electronic device, the electronic device comprising a first chip and a second chip. The first chip and the second chip are both short-range communication chips, and the first chip and the second chip reuse a first antenna (or antenna a). Reusing the first antenna means that when the first chip is connected to the first antenna, the second chip is disconnected from the first antenna, and when the second chip is connected to the first antenna, the first chip is disconnected from the first antenna.

[0009] First, the first chip is connected to the first antenna and can transmit first data via the first antenna. Then, the first chip can determine the communication quality degradation value (or QOE deterioration degree) of the second chip based on the first communication quality information (or QOE information 1) and the second communication quality information (QOE information 2) of the second chip.

[0010] The first communication quality information represents the communication quality information of the second chip collected before the first chip is connected to the first antenna, that is, the communication quality information of the second chip is obtained before the first chip enters the antenna preemption state. The second communication quality information represents the communication quality information of the second chip collected after the first chip is connected to the first antenna, that is, the communication quality information of the second chip is obtained after the first chip switches to the antenna preemption state.

[0011] The first chip then reduces or increases the antenna duty cycle (also known as the latest antenna duty cycle or the current antenna duty cycle) based on the communication quality degradation value to obtain an adjusted antenna duty cycle. The antenna duty cycle represents the proportion of time the first chip can use the first antenna within a first preset time (e.g., unit time).

[0012] Afterwards, the first chip can control the first antenna to connect to the second chip based on the adjusted antenna duty cycle when it determines that the second chip has reached the time to use the first antenna. Then, the second chip can use the first antenna to transmit the second data it needs to transmit.

[0013] In this application, after the first chip enters the antenna preemption state, it can determine the second chip's communication quality degradation value based on the second chip's communication quality information before and after entering the antenna preemption state. In other words, it can determine the degradation of the second chip's communication quality after the second chip stops using the first antenna. The first chip can then determine how to adjust the antenna duty cycle based on this degradation in communication quality, whether to increase or decrease the antenna duty cycle, thereby achieving adaptive adjustment of the antenna duty cycle. Furthermore, the antenna duty cycle is adjusted based on the actual communication quality of the second chip, ensuring the rationality of the adjustment. This ensures that the first chip uses the first antenna for as long as possible, that is, while maintaining the transmission rate of the first chip's services, the communication quality of the second chip is guaranteed, and the impact of the multiplexed antenna on the second chip's services is reduced. This, to a certain extent, can ensure the smooth operation of services on both the first and second chips.

[0014] In a possible implementation of the first aspect, the process of reducing or increasing the antenna duty cycle based on the communication quality degradation value may include:

[0015] The first chip determines whether the communication quality degradation value is greater than a first preset threshold (or called a preset deterioration threshold).

[0016] When the communication quality degradation value is greater than the first preset threshold, it indicates that the communication quality of the second chip has degraded significantly, and the switching of the first antenna has a greater impact on the communication quality of the second chip. In this case, the first chip can reduce the antenna duty cycle to shorten the time the first chip uses the first antenna and extend the time the second chip uses the first antenna, thereby enabling the first chip to use the first antenna in a timely manner while ensuring the communication quality of the second chip.

[0017] When the communication quality degradation value is less than or equal to the first preset threshold, it indicates that the degradation degree of the communication quality of the second chip is small, and the switching of the first antenna has little impact on the communication quality of the second chip. In this case, the first chip can increase the antenna duty cycle to extend the time that the first chip uses the first antenna and shorten the time that the second chip uses the first antenna, thereby improving the communication quality of the first chip while ensuring the communication quality of the second chip.

[0018] In a possible implementation manner of the first aspect, the first chip may first determine to reduce the duty cycle, and then reduce the antenna duty cycle based on the reduced duty cycle, thereby implementing a reduction adjustment of the antenna duty cycle.

[0019] The above-mentioned determination method of reducing the duty cycle may include:

[0020] In one possible design, the first chip can reduce the duty cycle based on the priority of the first data and the priority of the second data. The priority of the data (or service data) indicates the importance of the data. The higher the importance of the data, the greater the priority.

[0021] In one possible design, the first chip can directly determine the reduced duty cycle corresponding to the priority of the first data, the priority of the second data, and the short-range communication state. The short-range communication state indicates the state in which the short-range communication mode of the electronic device is used. The short-range communication state includes the short-range communication on / off state and / or the short-range communication connected state. Based on this, when the priority of the first data is less than or equal to the priority of the second data and the short-range communication state is the short-range communication on state, it indicates that the second data is of high importance and the second chip needs to use the first antenna to transmit data. To ensure the transmission rate of the second data, the antenna duty cycle can be reduced to the maximum extent, that is, the duty cycle can be reduced to the maximum extent, allowing the second chip to use the first antenna for a longer period of time. When the priority of the first data is greater than the priority of the second data and the short-range communication state is the short-range communication off state, it indicates that the second data is of low importance and the second chip is less likely to use the first antenna. Therefore, the antenna duty cycle can be reduced to the minimum extent, that is, the duty cycle can be reduced to the minimum extent, and accordingly, the first chip can use the first antenna for a longer period of time.

[0022] In another case, when the priority of the first data is greater than the priority of the second data, the first chip uses the first duty cycle (or duty cycle 1) as a reduced duty cycle. When the priority of the first data is less than or equal to the priority of the second data, the first chip uses the second duty cycle (or duty cycle 2) as a reduced duty cycle. The first duty cycle is less than the second duty cycle. Based on this, when the importance of the first data is higher than the importance of the second data, in order to ensure the transmission rate of the first data, the degree of reduction of the antenna duty cycle can be smaller. When the importance of the first data is less than or equal to the importance of the second data, in order to ensure the transmission rate of the second data, the degree of reduction of the antenna duty cycle can be larger.

[0023] In another case, the first chip determines a reduced duty cycle corresponding to the priority of the first data and the priority of the second data.

[0024] In another possible design, the first chip determines a reduced duty cycle corresponding to the short-range communication state.

[0025] In another possible design, the aforementioned reduced duty cycle is preset.

[0026] The above process of reducing the antenna duty cycle based on reducing the duty cycle may include:

[0027] The first chip calculates a ratio between the antenna duty cycle and the reduced duty cycle, or the first chip calculates a difference between the antenna duty cycle and the reduced duty cycle.

[0028] In a possible implementation manner of the first aspect, the first chip may first determine to increase the duty cycle, and then increase the antenna duty cycle based on the increased duty cycle, thereby achieving an increase adjustment of the antenna duty cycle.

[0029] The above-mentioned determination method of increasing the duty cycle may include:

[0030] In one possible design, the first chip may determine whether to increase the duty cycle based on the priority of the first data and the priority of the second data.

[0031] In this possible design, in one case, the first chip can directly determine the increased duty cycle corresponding to the priority of the first data, the priority of the second data, and the short-range communication state. The short-range communication state includes a short-range communication switch state and / or a short-range communication connection state. Based on this, when the priority of the first data is greater than the priority of the second data, and the short-range communication state is a short-range communication off state, it indicates that the importance of the second data is low, and the possibility of the second chip using the first antenna is small. Therefore, the degree of improvement of the antenna duty cycle can be maximized, that is, the increase in the duty cycle can be maximized, and accordingly, the first chip can use the first antenna for a longer time.

[0032] In another case, if the priority of the first data is greater than the priority of the second data, the first chip uses the third duty cycle as the increased duty cycle. If the priority of the first data is less than or equal to the priority of the second data, the first chip uses the fourth duty cycle as the increased duty cycle. The third duty cycle is greater than the fourth duty cycle. Based on this, when the importance of the first data is higher than that of the second data, the antenna duty cycle can be increased to a greater extent to ensure the transmission rate of the first data.

[0033] In another possible design, the first chip determines an increased duty cycle corresponding to the priority of the first data and the priority of the second data.

[0034] In another possible design, the first chip determines an increased duty cycle corresponding to the short-range communication state.

[0035] In another possible design, the above-mentioned increased duty cycle is preset.

[0036] The above process of reducing the duty cycle based on increasing the duty cycle may include:

[0037] The first chip calculates the sum of the antenna duty cycle and the boost duty cycle, or the first chip calculates the product of the antenna duty cycle and the boost duty cycle.

[0038] The antenna duty cycle is between 0 and 100%.

[0039] In a possible implementation of the first aspect, the short-range communication state includes a WI-FI state and a Bluetooth state; wherein the WI-FI state includes a WI-FI switch state and / or a WI-FI connection state, the WI-FI switch state includes a WI-FI on state and a WI-FI off state, and the WI-FI connection state includes a WI-FI connected state and a WI-FI disconnected state;

[0040] The Bluetooth status includes the Bluetooth switch status and / or the Bluetooth connection status. The Bluetooth switch status includes the Bluetooth on state and the Bluetooth off state. The Bluetooth connection status includes the Bluetooth connected state and the Bluetooth disconnected state.

[0041] In a possible implementation of the first aspect, the process of the first chip determining the communication quality degradation value may include:

[0042] The first chip performs a weighted sum calculation on the quality indicator values ​​in the first communication quality information to obtain the first communication quality. Similarly, the first chip performs a weighted sum calculation on the quality indicator values ​​in the second communication quality information to obtain the second communication quality.

[0043] The first chip then calculates the difference between the second communication quality and the first communication quality to obtain a communication quality degradation value. Based on this, the first chip measures the communication quality degradation based on the value of the quality indicator of the second chip, thereby accurately determining the communication quality degradation.

[0044] Optionally, the first communication quality information includes values ​​of one or more quality indicators of the number of spatial streams, working bandwidth, link rate, throughput, packet loss rate, retransmission rate, and modulation and coding strategy.

[0045] In a possible implementation of the first aspect, when the second chip is in a data transmission state, the first chip may continue to determine a communication quality degradation value, so as to adjust the antenna duty cycle by using the communication quality degradation value.

[0046] When the second chip is not in the data transmission state, the first chip can directly increase the antenna duty cycle to achieve adaptive adjustment of the antenna duty cycle.

[0047] In a possible implementation of the first aspect, the first chip may determine, based on an antenna duty cycle, when it is time for the first chip to use the first antenna, and connect the first antenna.

[0048] In a possible implementation of the first aspect, the process of determining the initial value of the antenna duty cycle (or referred to as the initial antenna duty cycle) may include:

[0049] The first chip determines the initial antenna duty cycle based on the priority of the third data and the priority of the fourth data. Alternatively, the first chip uses the antenna duty cycle corresponding to the short-range communication state of the electronic device as the initial antenna duty cycle.

[0050] Among them, the third data is data processed by the first chip after the first chip is connected to the first antenna for the first time when the electronic device does not have an initial antenna duty cycle, and the fourth data is data processed by the second chip before the first chip is connected to the first antenna for the first time.

[0051] The process of the first chip determining the initial antenna duty cycle based on the priority of the third data and the priority of the fourth data can refer to the process of determining the reduction of the antenna duty cycle based on the priority of the first data and the priority of the second data.

[0052] Optionally, the number of the first antennas may be one or more.

[0053] In a second aspect, the present application provides a chip system, which includes a first chip and a second chip, and the first chip and the second chip are both short-range communication chips.

[0054] In a possible implementation manner of the second surface, the first chip and the second chip are connected.

[0055] In a possible implementation manner of the second aspect, the chip system further includes an AP, which is connected to the first chip and the second chip respectively.

[0056] In a possible implementation of the second aspect, the chip system is applied to an electronic device, and the electronic device executes the method described above.

[0057] In a third aspect, the present application provides an electronic device, comprising a display screen, a memory, a first chip, a second chip, and one or more processors; the display screen, the memory, the first chip, the second chip, and the processor are coupled; the processor comprises an application processor, the display screen is used to display an image generated by the processor, the memory is used to store computer program code, the first chip and the second chip are short-range communication chips, both used to transmit data, and the computer program code comprises computer instructions; when the processor executes the computer instructions, the electronic device executes the method described above.

[0058] In a fourth aspect, the present application provides a computer-readable storage medium comprising computer instructions, which, when executed on an electronic device, enables the electronic device to execute the method described above.

[0059] In a fifth aspect, the present application provides a computer program product, which, when executed on an electronic device, enables the electronic device to execute the method described above.

[0060] It can be understood that the beneficial effects that can be achieved by the chip system described in the second aspect, the electronic device described in the third aspect, the computer storage medium described in the fourth aspect, and the computer program product described in the fifth aspect provided above can refer to the beneficial effects in the first aspect and any possible implementation thereof, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] FIG1A is a schematic diagram of a communication scenario provided in an embodiment of the present application;

[0062] FIG1B is a second schematic diagram of a communication scenario provided in an embodiment of the present application;

[0063] FIG1C is a third schematic diagram of a communication scenario provided in an embodiment of the present application;

[0064] FIG2 is a schematic diagram of a dual-chip structure according to an embodiment of the present application;

[0065] FIG3 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0066] FIG4 is a structural block diagram of an electronic device provided in an embodiment of the present application;

[0067] FIG5 is a flowchart of a data transmission method according to an embodiment of the present application;

[0068] FIG6A is a second schematic diagram of a dual-chip structure provided in an embodiment of the present application;

[0069] FIG6B is a third schematic diagram of a dual-chip structure provided in an embodiment of the present application;

[0070] FIG6C is a fourth schematic diagram of a dual-chip structure provided in an embodiment of the present application;

[0071] FIG6D is a fifth schematic diagram of a dual-chip structure provided in an embodiment of the present application;

[0072] FIG7A is a sixth schematic diagram of a dual-chip structure provided in an embodiment of the present application;

[0073] FIG7B is a seventh schematic diagram of a dual-chip structure provided in an embodiment of the present application;

[0074] FIG7C is a schematic diagram eight of a dual-chip structure provided in an embodiment of the present application;

[0075] FIG8 is a second flow chart of a data transmission method provided in an embodiment of the present application;

[0076] FIG9A is a first schematic diagram of a business scenario provided by an embodiment of the present application;

[0077] FIG9B is a second schematic diagram of a business scenario provided in an embodiment of the present application;

[0078] FIG9C is a third schematic diagram of a business scenario provided in an embodiment of the present application;

[0079] FIG10A is a first schematic diagram of a switch provided in an embodiment of the present application;

[0080] FIG10B is a second schematic diagram of a switch provided in an embodiment of the present application. DETAILED DESCRIPTION

[0081] In order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described in the present application as "exemplary" or "for example" should not be interpreted as being more preferred or advantageous than other embodiments or design. To be precise, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way. In the embodiments of the present application, "at least one" refers to one or more, and "more" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the related objects before and after are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple. In the embodiments of the present application, "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" can explicitly or implicitly include one or more of the features. In the description of this embodiment, unless otherwise specified, the meaning of "multiple" is two or more.

[0082] To facilitate understanding of the embodiments of the present application, some terms involved in the embodiments of the present application are explained below.

[0083] Short-range communication: refers to a communication method for transmitting data within a relatively close distance. When the distance between electronic devices is less than a certain distance, electronic devices can communicate with each other through short-range communication. Exemplary short-range communication methods may include Bluetooth, near field communication (NFC), WI-FI, and other communication methods. In this application, short-range communication can also be referred to as close range communication or short-range communication.

[0084] WI-FI connection mode: including WI-FI station (sta) mode and WI-FI peer-to-peer (P2P) mode. Among them, the WI-FI sta mode means that an electronic device can establish a WI-FI connection with other devices through a wireless access point (AP), that is, to conduct WI-FI communication, and the role of the electronic device can be a station. The WI-FI P2P mode refers to direct point-to-point communication between multiple devices using WI-FI technology to form a P2P network (also known as a P2P group), which includes a group owner (group owner, Go) and at least one group client (group client, Gc). It can be understood that the group owner is equivalent to the above-mentioned wireless access point (or described as a router), and the group client is equivalent to the above-mentioned station.

[0085] Antenna duty cycle for the short-range slave chip: The percentage of time within a unit time that the short-range slave chip can use the antenna (such as antenna a in the embodiment of this application). For example, if the unit time is 100 milliseconds (ms) and the antenna duty cycle is 70%, then within that 100ms, the short-range slave chip can use antenna a for 70ms.

[0086] To improve the efficiency of electronic devices in processing services, they are equipped with two short-range communication chips: a short-range main chip and a short-range secondary chip. The short-range main chip and the short-range secondary chip can transmit service data for corresponding services respectively, enabling concurrent operation of services.

[0087] In some embodiments, there are more and more types of electronic devices, such as mobile phones, tablets, PCs, smart watches, Bluetooth headsets, smart screens, smart appliances, etc. In order to achieve interconnection between multiple electronic devices, the first electronic device can first perform device discovery through short-range communication. Then, the first electronic device transmits device authentication data (such as a key) to the discovered other devices (second electronic devices) through short-range communication to match the devices and establish a first short-range communication connection. In some embodiments, after the first short-range communication connection is established, the first electronic device can also establish a second short-range communication connection with the second electronic device, so that business data can be transmitted between the electronic devices through the first short-range communication connection or the second short-range communication connection. In a multi-screen collaboration scenario or a super notification scenario, different types of electronic devices may establish a short-range communication connection through different types of short-range communication chips. For example, taking the first electronic device as an example, in a multi-screen collaboration scenario, the mobile phone can establish a WI-FI P2P connection (or simply a P2P connection) with the tablet computer and personal computer (PC) in Figure 1A through a short-range communication chip (here or referred to as a short-range main chip). In addition, the mobile phone can also establish Bluetooth (BT) connections with the Bluetooth headset, smart watch, mouse and keyboard in Figure 1A through the short-range main chip to transmit corresponding business data. Optionally, as shown in Figure 1A, the mobile phone establishes Bluetooth low energy (BLE) connections with the mouse and keyboard respectively. The mobile phone establishes Bluetooth connections with the short-range main chip in the Bluetooth headset and smart watch.

[0088] However, during the operation of the multi-screen collaborative service (or called collaborative service) or the super notification service, the electronic device may also run other services at the same time, and the electronic device also needs to use the short-range communication chip to transmit the service data corresponding to other services. In other words, not only the multi-screen collaborative service and the super notification service need to use the short-range communication chip, but there are also other services that require the support of the short-range communication chip. Therefore, in order to ensure the smoothness of the concurrent operation of the services, a new short-range communication chip can be added inside the electronic device. In other words, there are two short-range communication chips in the electronic device. One of the two short-range communication chips can be called a short-range main chip, and the other can be called a short-range sub-chip. The short-range main chip and the short-range sub-chip can process different services at the same time. For example, the short-range main chip processes three-party services, such as smart home services, car-machine interconnection services, etc. The short-range sub-chip can handle private services, such as multi-screen collaborative services, super notification services, etc.

[0089] It should be understood that the services processed by the short-range primary chip listed above are only examples. The short-range primary chip can also handle other services, such as video calling, social networking, short video, news, file downloads, audio and video playback, and gaming. Similarly, the services processed by the short-range secondary chip listed above are only examples. The short-range secondary chip can also handle other services.

[0090] For example, the mobile phone can transmit business data corresponding to the multi-screen collaborative business with the tablet computer and PC (such as the short-range secondary chip in the tablet computer and PC) in Figure 1B through the short-range secondary chip, such as device authentication data, screen projection data, file transfer, notification messages, etc. In addition, as shown in Figure 1B, the mobile phone can also communicate with the smart watch and Bluetooth headset (such as the short-range secondary chip in the smart watch and Bluetooth headset) through the short-range secondary chip to transmit business data. For example, the smart watch can send business data such as heartbeat data, step count, location, etc. detected by the smart watch to the short-range secondary chip in the mobile phone through the short-range secondary chip. The mobile phone can send audio data and command data (such as play, pause command data) and other business data to the short-range secondary chip in the Bluetooth headset through the short-range secondary chip. In addition, the mobile phone can communicate with the mouse and keyboard shown in Figure 1B through the short-range secondary chip to transmit business data, such as user operation data. Optionally, in the case where the mouse and keyboard include a short-range main chip and a short-range secondary chip, the mobile phone can communicate with the short-range secondary chip in the mouse and keyboard through the short-range secondary chip.

[0091] Among them, the mobile phone can establish a communication connection with other devices based on the short-range secondary chip through the short-range communication protocol 1 to transmit business data. As shown in Figure 1B above, the mobile phone can establish a P2P connection with a tablet computer and a PC respectively through the P2P communication protocol 1. The mobile phone can establish a Bluetooth connection with a Bluetooth headset, a smart watch, a keyboard, and a mouse respectively through the Bluetooth communication protocol 1. Among them, optionally, as shown in Figure 1B, the mobile phone can establish a BLE connection with the mouse and keyboard respectively.

[0092] Among them, optionally, the above-mentioned short-range communication protocol 1 can be a custom short-range communication protocol (ie, a private protocol), for example, the above-mentioned P2P communication protocol 1 can be a custom P2P communication protocol, and the above-mentioned Bluetooth communication protocol 1 can be a custom Bluetooth communication protocol.

[0093] Furthermore, the mobile phone can use the short-range main chip to transmit business data corresponding to smart home services, such as control data such as power on, off, and mode adjustment, to smart home appliances such as the air conditioner, robot vacuum, refrigerator, and air purifier shown in Figure 1C. Furthermore, as shown in Figure 1C, the mobile phone can also use the short-range main chip to transmit business data corresponding to vehicle-mounted services, such as control commands, files, and other data, to the vehicle. Of course, the mobile phone can also use the short-range main chip to transmit business data to other devices, such as transmitting control commands, files, and other data to a printer.

[0094] Among them, the mobile phone can establish a communication connection with other devices based on the short-range main chip through the short-range communication protocol 2 to transmit business data. For example, the mobile phone can establish a communication connection with a refrigerator, air conditioner, air purifier, and sweeping robot through a router based on the short-range communication protocol 2 to transmit business data (as shown in Figure 1C above). The mobile phone can establish a Bluetooth connection with a vehicle (such as the car computer in the vehicle) through the Bluetooth communication protocol 2.

[0095] Optionally, since the short-range main chip is mainly used to process three-party services, the short-range communication protocol 2 can be a standard short-range communication protocol. For example, the above-mentioned Bluetooth communication protocol 2 can be a standard Bluetooth communication protocol.

[0096] It should be noted that the scenario shown in Figure 1B above can also be a super notification scenario. For example, after receiving an incoming call, the mobile phone can send the incoming call data to a tablet computer, PC, Bluetooth headset, smart watch and other devices through the short-range secondary chip, so that the device can prompt the incoming call. Among them, optionally, the dotted circle in Figure 1B indicates that the devices (i.e., tablet computer, PC, Bluetooth headset, smart watch, mobile phone, mouse and keyboard) can be networked and communicate with each other through the short-range secondary chip.

[0097] In addition, the tablet computer in FIG1B can also establish a short-range communication connection with other devices (such as smart watches and PCs) through the short-range main chip, so as to use the short-range main chip to transmit business data corresponding to other services. Similarly, the PC can also establish a short-range communication connection with other devices (such as Bluetooth headsets and tablets) through the short-range main chip, so as to use the short-range main chip to transmit business data corresponding to other services, thereby realizing concurrent operation of services.

[0098] Alternatively, as shown in Figure 1A or Figure 1B above, the tablet computer, mobile phone, and PC can be in the same network environment and use the Wi-Fi provided by the router. As shown in Figure 1C above, in a smart home scenario, a robot vacuum cleaner, air purifier, refrigerator, air conditioner, and mobile phone can be in the same network environment and use the Wi-Fi provided by the router.

[0099] The short-range main chip can include at least one of the following short-range communication chips: an NFC chip, a Bluetooth chip, and a Wi-Fi chip. Similarly, the short-range secondary chip can also include at least one of the following short-range communication chips: an NFC chip, a Bluetooth chip, and a Wi-Fi chip. The short-range secondary chip can contain the same or different types of short-range communication chips as the short-range main chip. Furthermore, due to the limited space available in the smartwatch and Bluetooth headset, the smartwatch and Bluetooth headset can also include only one short-range communication chip, rather than an additional one.

[0100] In some embodiments, for electronic devices with smaller spaces such as mobile phones, the short-range main chip and the short-range secondary chip in the electronic device can reuse an antenna (or called antenna a), thereby reducing the space occupied by the antenna. Time-sharing multiplexing of antenna a by the short-range main chip and the short-range secondary chip means that during the period when the short-range main chip uses antenna a to transmit business data, the short-range secondary chip cannot use antenna a to transmit business data. During the period when the short-range secondary chip uses antenna a to transmit business data, the short-range main chip cannot use antenna a to transmit business data. In other words, the short-range main chip and the short-range secondary chip cannot use antenna a to transmit business data continuously, but transmit business data alternately. As shown in Figure 2, the short-range secondary chip can realize the reuse of antenna a by switching the single-pole double-throw switch 1. The short-range secondary chip can reuse antenna a according to antenna coexistence strategies such as the main chip priority strategy and the secondary chip priority strategy.

[0101] Among them, the main chip priority strategy means that when the short-distance secondary chip detects that the short-distance main chip is not in the data transmission state, it indicates that the short-distance main chip does not need to use antenna a to transmit business data. The short-distance secondary chip can switch the single-pole double-throw switch 1 to the short-distance secondary chip side to realize the preemption of antenna a. However, the business processed by the short-distance secondary chip may have high requirements for real-time performance (here or replaced by throughput, transmission rate). Since antenna a cannot be used to transmit business data in time, the smoothness of the business operation of the short-distance secondary chip is greatly affected. If the short-distance secondary chip directly switches the single-pole double-throw switch 1 while the short-distance main chip is in the data transmission state and forcibly preempts antenna a, the business of the short-distance main chip will be affected. For example, if the business processed by the short-distance main chip is a video call business, the video call data cannot be transmitted in time, which may cause the video call to be disconnected, affecting the user experience.

[0102] The secondary chip priority strategy means that when the short-range secondary chip needs to transmit service data, it directly switches single-pole double-throw switch 1 to the short-range secondary chip side to preempt antenna A. However, this will significantly affect the smooth operation of the short-range primary chip's services.

[0103] It can be seen that whether it is the main chip priority strategy or the secondary chip priority strategy, the smoothness of the business operation of the short-range main chip or the short-range secondary chip will be greatly affected. Therefore, in response to the above problems, the present application provides an antenna duty cycle adaptive adjustment strategy. The electronic device includes a short-range main chip and a short-range secondary chip, and antenna a is reused between the short-range main and secondary chips. The short-range secondary chip in the electronic device allocates the corresponding time slot ratio of antenna a (or called usage time, antenna duty cycle). When the time window of the short-range secondary chip is reached, the short-range secondary chip enters the usage time of antenna a, the short-range secondary chip uses antenna a to transmit business data, and the short-range main chip stops using antenna a. When the time window of the short-range main chip is reached, the short-range secondary chip switches antenna a to the short-range main chip side, and the short-range main chip continues to use antenna a to transmit business data. By alternating the use of antenna a by the short-range main and secondary chips, the business of the short-range main and secondary antennas can be processed in a timely manner, avoiding the occurrence of long-term interruptions in the business processed by the short-range main chip or the short-range secondary chip, thereby ensuring the smoothness of the business operation of the short-range main and secondary chips to a certain extent. Moreover, while the short-range secondary chip is using antenna a, the short-range secondary chip can adaptively adjust the current antenna duty cycle according to the degree of deterioration of the transmission quality of the short-range main chip, thereby ensuring that the short-range secondary chip uses antenna a for as long as possible, that is, on the basis of ensuring the transmission rate of the short-range secondary chip's business, reducing the impact on the short-range main chip's business.

[0104] For example, the electronic device in this application may be a mobile phone, a tablet computer, a laptop computer, a personal computer (PC), a smart TV (also known as a smart screen, a large screen, etc.), or wearable devices such as smart watches and smart bracelets, personal digital assistants (PDAs), vehicle-mounted terminals, Internet of Things devices, and other devices with short-range communication chips.

[0105] FIG3 shows a schematic structural diagram of the electronic device 100 .

[0106] 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.

[0107] It should be understood that the structure illustrated in the embodiments of the present invention does 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.

[0108] 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 memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.

[0109] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0110] The processor 110 may also include a memory for storing instructions and data.

[0111] 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.

[0112] It is understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention 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.

[0113] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to provide power to the electronic device 100 and the like.

[0114] 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.

[0115] 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.

[0116] 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.

[0117] 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.

[0118] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as WI-FI (wireless fidelity) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc. 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 signal, and sends the processed signal 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.

[0119] 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).

[0120] In some embodiments, the number of the above-mentioned antennas 2 may be one or more. The above-mentioned wireless communication module 160 may include a short-range communication module (or short-range communication chip). The short-range communication chip may include at least one of NFC, WI-FI, and BT chips. The number of short-range communication chips is multiple, and the short-range communication chips may include the same chips or different chips. For example, the number of short-range communication chips is two, namely a short-range main chip and a short-range sub-chip. The short-range main chip includes NFC, WI-FI, and BT chips, and the short-range sub-chip includes NFC, WI-FI, and BT chips. The short-range sub-chip and the short-range main chip include the same chip. The short-range main chip includes NFC, WI-FI, and BT chips, and the short-range sub-chip includes WI-FI and BT chips. The short-range sub-chip and the short-range main chip include different chips.

[0121] Among them, each short-range communication chip is connected to the above-mentioned AP, and is used to receive business data allocated by the AP, send the business data to an external device, or receive business data sent by an external device to realize the transmission of business data.

[0122] Optionally, the short-range communication chips may reuse antennas, may be directly connected to each other for communication, or may communicate through an AP without establishing a connection between the short-range communication chips.

[0123] Optionally, the short-range master chip supports a single input single output (SISO) mode and a multiple input multiple output (MIMO) mode. The short-range slave chip supports the SISO mode.

[0124] Exemplarily, the above-mentioned AP may also be referred to as an AP processor or an AP chip, etc.

[0125] In some embodiments, the short-range communication chip may include a radio frequency (RF) module for transmitting radio frequency signals to transmit service data. In addition, the short-range communication chip may also include a baseband (as shown in FIG4 below).

[0126] The above-mentioned short-range communication chip may be an H2.0 chip, for example, the above-mentioned short-range slave chip may be an H2.0 chip.

[0127] In some embodiments, the AP chip can be integrated into a system-on-chip (SOC) chip of an electronic device, and the short-range main chip and the short-range slave chip may not be integrated into the SOC. The short-range main chip and the short-range slave chip are two independent communication chips. Of course, this is only an example, and the short-range main chip and / or the short-range slave chip can also be integrated into the SOC. This application is not limited to this. It only requires that the AP can be connected to the short-range main chip and the short-range slave chip respectively.

[0128] 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.

[0129] The display screen 194 is used to display images, videos, etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.

[0130] 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.

[0131] 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.

[0132] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can 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 can 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.

[0133] 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.

[0134] Among them, the above-mentioned sensor module 180 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor 180K, an ambient light sensor, a bone conduction sensor, etc.

[0135] Buttons 190 include a power button, a volume button, etc. Motor 191 can generate vibration prompts. Indicator 192 can be an indicator light that can be used to indicate charging status, power changes, messages, missed calls, notifications, etc.

[0136] The SIM card interface 195 is used to connect a SIM card. The electronic device 100 may support one or N SIM card interfaces, where N is a positive integer greater than one.

[0137] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes a layered architecture system as an example to exemplify the software structure of the electronic device 100.

[0138] FIG4 is a structural block diagram of the electronic device 100 according to an embodiment of the present application.

[0139] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into five layers: from top to bottom: the application layer, the application framework layer, the Android runtime and system libraries, the hardware abstraction layer (HAL), and the kernel layer.

[0140] The application layer can include a series of application packages.

[0141] As shown in FIG4 , the application package may include applications such as camera, gallery, call, multi-screen collaboration, navigation, WLAN, Bluetooth, music, video, short message, and smart home.

[0142] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0143] As shown in FIG4 , the application framework layer may include applications such as a short-range communication status identification module, a service priority module, a quality of experience (QOE) information identification module, and a scene identification module.

[0144] The scene recognition module is used to identify the application running on the electronic device 100, that is, the running service, or to identify the service scenario in which the electronic device 100 is located, such as a file download scenario, an audio and video playback scenario, a video call scenario, a smart home scenario, etc. The scene recognition module can send service information (such as application identification, service scenario identification, etc.) to the service priority module.

[0145] The service priority module is used to determine the priority corresponding to the service based on the service information, so as to mark the priority of the service.

[0146] The QOE information identification module, also known as the quality identification module, is used to identify the QOE information of the short-range primary chip. This QOE information is used to determine the communication quality of the short-range primary chip. Optionally, the QOE information identification module can send the QOE information to the service priority module, which then sends it to the short-range secondary chip.

[0147] The short-range communication state identification module is used to identify the short-range communication state of the electronic device 100, such as on, off, connected, disconnected, etc. Optionally, the short-range communication state may include a WI-FI state and / or a Bluetooth state.

[0148] Android Runtime includes core libraries and a virtual machine. Android Runtime is responsible for scheduling and management of the Android system.

[0149] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.

[0150] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.

[0151] The system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0152] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.

[0153] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0154] A 2D graphics engine is a drawing engine for 2D drawings.

[0155] The hardware abstraction layer (HAL) is the interface layer between the operating system kernel and the hardware circuitry. As shown in Figure 4, the HAL can include HAL channels. Data transmitted between software layers (such as the application framework layer) and the short-range communication chip can be transmitted through HAL channels. For example, HAL channels can transmit service data, quality of service (QOE) information, priority, short-range communication status information, and other data.

[0156] Optionally, the HAL channel may include HAL channel 1 and HAL channel 2. When data is transmitted between the application framework layer (such as the QOE information identification module and the service priority module) and the short-range communication chip, it may be transmitted through HAL channel 1. When data is transmitted between the application framework layer (such as the service priority module and the short-range communication status identification module) and the short-range communication chip, it may be transmitted through HAL channel 2.

[0157] Optionally, the hardware abstraction layer may also include a transmission link control module. The transmission link control module is used to determine the short-range communication chip that processes the business, and sends the business data to the short-range communication chip that processes the business corresponding to the business data. Exemplarily, the transmission link control module can determine the short-range communication chip that processes the business based on the information of the business. For example, a certain business needs to transmit business data with a large amount of data, and the real-time requirements of the business are not high. The priority corresponding to the business is low, and the transmission link control module can assign it to the main chip. Of course, the short-range communication chip that processes the business can also be determined according to other rules, such as using a random allocation rule. This application does not limit the rules used to determine the short-range communication chip that processes the business.

[0158] Optionally, the service priority module may send the service priority to the transmission link control module. After determining the target short-range communication chip to process the service, the transmission link control module may send the service priority to the target short-range communication chip. Alternatively, the transmission link control module may send information about the target short-range communication chip to the service priority module, so that the service priority module can send the service priority to the target short-range communication chip. This application does not limit this.

[0159] The kernel layer is the layer between hardware and software. The kernel layer contains at least the short-distance main chip driver and the short-distance slave chip driver.

[0160] It should be understood that the software system to which the above-mentioned software layer belongs may be a software system located on the AP chip, that is, a program code running on the AP chip.

[0161] In some embodiments, the dual-chip coexistence strategy module in the short-range slave chip can obtain one or more of the above-mentioned QOE information, short-range communication status information, and service priority, and determine the antenna duty cycle and / or adjust the antenna duty cycle based on the information. The data transmission arbitration module can switch the single-pole double-throw switch 1 based on different antenna coexistence strategies, such as the slave chip priority strategy, the main chip priority strategy, and the antenna duty cycle adaptive adjustment strategy.

[0162] It should be understood that the above-mentioned short-range main chip and short-range secondary chip are only examples. The electronic device 100 can also include other numbers of short-range communication chips, and each short-range communication chip has a corresponding short-range communication chip driver, such as including three short-range communication chips and three short-range communication chip drivers, and the short-range communication chips and short-range communication chip drivers correspond one to one.

[0163] The following will take the above-mentioned electronic device as an example of device 1 to introduce a data transmission method provided by an embodiment of the present application. Device 1 can determine the antenna duty cycle corresponding to the short-range slave chip according to the priority of the service processed by the short-range main and slave chips, thereby realizing a reasonable setting of the antenna duty cycle. For example, when the priority of the service processed by the short-range main chip is higher, the antenna duty cycle corresponding to the short-range slave chip can be smaller, and the short-range main chip uses antenna a for a longer time. When the priority of the service processed by the short-range slave chip is higher, the antenna duty cycle corresponding to the short-range slave chip can be smaller, and the short-range slave chip uses antenna a for a longer time. Thus, on the basis of ensuring the transmission rate of the more important service, the transmission rate of the less important service can also be guaranteed, thereby ensuring that the service of the short-range main and slave chips can be processed in a timely manner. And after entering the usage time of the short-range slave chip for antenna a based on the antenna duty cycle, the short-range slave chip can determine whether the communication quality of the short-range main chip is poor, and adjust the antenna duty cycle according to the judgment result, thereby realizing adaptive adjustment of the antenna duty cycle, thereby achieving the goal of reducing the impact on the communication quality of the short-range main chip while ensuring the communication quality of the short-range slave chip. Specifically, as shown in FIG5 , the data transmission method may include S201 - S226 .

[0164] S201 : The AP chip in device 1 sends service data 1 to the short-range slave chip.

[0165] S202: The short-distance slave chip connects the first end and the second end of the single-pole double-throw switch 1. The first end is connected to the antenna a, and the second end is connected to the short-distance slave chip.

[0166] In an embodiment of the present application, device 1 runs service 1, and device 1 (such as the AP chip in device 1) determines that the short-range communication chip that processes service 1 is a short-range slave chip. Then the AP chip can assign service data 1 corresponding to service 1 to the short-range slave chip. After receiving the service data 1 assigned by the AP chip, the short-range slave chip can determine whether there is an antenna duty cycle (or the latest antenna duty cycle). If it does not exist, it indicates that the antenna duty cycle needs to be determined. The short-range slave chip can first determine the antenna duty cycle for switching to use antenna a using the antenna duty cycle. If it exists, the short-range slave chip can adaptively adjust the antenna duty cycle (such as executing S209 below).

[0167] In some embodiments, the short-range master chip is not in the data transmission state. The short-range slave chip can directly enter the antenna preemption state when it needs to transmit service data 1. Optionally, the short-range master chip and the short-range slave chip can communicate with each other. While the short-range master chip is transmitting service data using antenna a, the short-range master chip can send data transmission status information to the short-range slave chip.

[0168] The data transmission status information may include transmit (TX) status information and receive (RX) status information. The transmit status information indicates that the short-range main chip is sending service data to the external device via antenna a, that is, the short-range main chip is in the transmit state. The receive status information indicates that the short-range main chip is receiving service data sent by the external device via antenna a, that is, the short-range main chip is in the receive state.

[0169] The short-range slave chip can determine whether the short-range master chip is in a data transmission state based on data transmission status information. When the short-range master chip uses antenna a to transmit service data with an external device, the short-range master chip can notify the short-range slave chip that the short-range master chip is in a data transmission state, enabling data transmission state sharing. This allows the short-range slave chip to determine whether to switch to antenna a based on the state of the short-range master chip when it needs to use antenna a to transmit service data. If it is determined that the short-range master chip is not in a data transmission state, indicating that the short-range master chip currently has no need to use antenna a, the short-range slave chip can directly switch to antenna a to transmit service data 1 using antenna a.

[0170] Optionally, each time the short-range main chip uses antenna a to send service data or uses antenna a to receive service data, it will send data transmission status information to the short-range secondary chip.

[0171] The short-range slave chip and the short-range master chip can communicate directly or through an AP chip. The communication method between the short-range master and slave chips will be described in detail below.

[0172] In one possible design, the short-distance main chip is connected to the short-distance slave chip so that communication can be carried out between the short-distance main chip and the short-distance slave chip. In one case, the short-distance main chip and the short-distance slave chip can be connected through pins. Specifically, as shown in Figure 6A, pin 1 of the short-distance main chip is connected to pin 2 of the short-distance slave chip through a wire. When the short-distance main chip uses antenna a to send business data or receive business data, the signal output by pin 1 of the short-distance main chip will change from signal 1 to signal 2. Signal 2 is equivalent to data transmission status information, indicating that the short-distance main chip is in a data transmission state. Afterwards, the short-distance main chip can send signal 2 to the short-distance slave chip.

[0173] The above-mentioned signal 1 and signal 2 are different electrical signals. For example, signal 1 is a low-level signal, and signal 2 can be a high-level signal. For another example, signal 1 is a high-level signal, and signal 2 can be a low-level signal.

[0174] Optionally, the pins 1 and 2 may be input / output pins, such as GPIO pins. For example, the short-range master chip and the short-range slave chip are connected via GPIO pins to enable communication between the short-range master chip and the short-range slave chip.

[0175] It should be noted that the number of pins 1 and pins 2 mentioned above is the same, and the number of pins 1 and pins 2 mentioned above can be multiple. For example, as shown in Figure 6B, the number of pins 1 is two, and correspondingly, the number of pins 2 is also two, and pins 1 and pins 2 are connected one-to-one. One pin 1 (or pin 1A) is used to transmit sending status information, and the other pin 1 (or pin 1B) is used to transmit receiving status information. Specifically, the short-range main chip uses antenna a to send business data. The signal output by pin 1A will change from signal 1 to signal 2, and the signal output by pin 1B is still signal 1, indicating that the short-range main chip is in the sending state and shares the sending status information with the short-range slave chip. The short-range main chip uses antenna a to receive business data. The signal output by pin 1A is still signal 1, and the signal output by pin 1B changes from signal 1 to signal 2, indicating that the short-range main chip is in the receiving state. The receiving state information is shared with the short-range slave chip, so that the short-range slave chip can know the specific data transmission state of the short-range main chip and realize accurate sharing of the data transmission state. When the short-range slave chip needs to use antenna a to transmit business data, it can determine to switch antenna a according to whether the short-range main chip is in the data transmission state.

[0176] Alternatively, since the short-distance slave chip only needs to determine whether the short-distance master chip is in the data transmission state, the number of the pins 1 and 2 can both be one (as shown in FIG. 6A ).

[0177] In another case, the short-distance main chip and the short-distance secondary chip can be connected via a bus (as shown in Figure 6C). The bus interface of the short-distance main chip is connected to the bus interface of the short-distance secondary chip via a bus. The short-distance main chip can send data transmission information to the short-distance secondary chip through the bus. Exemplarily, the short-distance main chip uses antenna a to send business data, and the short-distance main chip can send the sending status information to the short-distance secondary chip. The short-distance main chip uses antenna a to receive business data, and the short-distance main chip can send the receiving status information to the short-distance secondary chip so that the short-distance secondary chip knows the specific data transmission status of the short-distance main chip. Alternatively, whether the short-distance main chip uses antenna a to send business data or receive business data, it can send data transmission status information to the short-distance secondary chip so that the short-distance secondary chip knows that the short-distance main chip is in a data transmission state.

[0178] In another possible design, the short-range master chip and the short-range slave chip can communicate via an AP chip. As shown in Figure 6D , the short-range master chip can send data transmission status information to the AP chip, which then sends this data transmission status information to the short-range slave chip, thereby enabling sharing of the data transmission status of the short-range master chip. Optionally, in this design, the short-range master chip and the short-range slave chip can be connected or unconnected.

[0179] The above describes how the short-range master chip can share the data transmission status with the short-range slave chip. Next, we will describe how the short-range slave chip determines whether the short-range master chip is in the data transmission state, so that when the short-range master chip is not in the data transmission state, the short-range slave chip can use antenna a to transmit service data.

[0180] When the short-distance secondary chip receives the service data 1 sent by the AP chip, it determines whether the data transmission status information sent by the short-distance main chip is received within the target time. The target time includes the preset time 1 before the current time and / or the preset time 2 after the current time. If yes, the short-distance secondary chip can determine that the short-distance main chip is in the data transmission state. If not, the short-distance secondary chip determines that the short-distance main chip is not in the data transmission state. For example, after the short-distance secondary chip receives the service data corresponding to the multi-screen collaborative service, it determines whether the data transmission status information sent by the short-distance main chip is received within 30 seconds before and after. Here, the service data corresponding to the multi-screen collaborative service refers to the service data 1, and the 30 seconds before and after refers to the target time.

[0181] In other embodiments, the short-range slave chip can also directly switch to using antenna a after receiving service data based on the slave chip priority policy. For example, after receiving the above-mentioned service data 1, the short-range slave chip can directly connect the first terminal and the second terminal of the single-pole double-throw switch 1 to enter the antenna preemption state regardless of the data transmission state of the short-range master chip.

[0182] In other embodiments, the short-range slave chip can negotiate with the short-range master chip to use antenna a. If the priority of service data 1 processed by the short-range slave chip is higher than the priority of service data processed by the short-range master chip, this indicates that the service 1 corresponding to service data 1 is more important, has lower latency, and is more sensitive to transmission rate than the service processed by the short-range master chip. Therefore, the short-range slave chip can enter the antenna preemption state to ensure smooth operation of important services. For example, the short-range slave chip can send a request 1 to the short-range master chip, which includes the priority of service data 1. In response to request 1, the short-range master chip determines whether the priority of service data 1 is higher than the priority of the service data processed by the short-range slave chip. If so, the short-range master chip can send an acceptance response message to the short-range slave chip, indicating that the short-range master chip agrees to switch to antenna a. In response to the acceptance response message, the short-range slave chip switches to antenna a and enters the antenna preemption state. If so, the short-range master chip can send a rejection response message to the short-range slave chip, indicating that the short-range master chip refuses to switch to antenna a. The short-range slave chip responds to the rejection response message and does not enter the antenna preemption state.

[0183] Among them, optionally, the above-mentioned priority can be directly transmitted between the short-distance master and slave chips. For example, as shown in Figure 7A, the short-distance master chip can send request 1, that is, the priority, to the short-distance slave chip through the bus. For another example, as shown in Figure 7B, pin 3 of the short-distance slave chip and pin 4 of the short-distance slave chip are connected by a wire. The level signal output by pin 3 (such as signal 3 or signal 4) can represent the priority. Among them, signal 3 can represent 0, signal 4 can represent 1, and signal 3 and signal 4 are different. For example, signal 3 is a low level signal, and signal 4 is a high level signal. For another example, signal 3 is a high level signal, and signal 4 is a low level signal.

[0184] Among them, the number of pins 3 and pins 4 is the same, and pins 3 and pins 4 are connected one to one. It is worth mentioning that the number of pins 3, that is, the number of pins 4 corresponds to the number of priorities. Specifically, the corresponding relationship can be that x is greater than or equal to and closest to A positive integer, where x represents the number of pins 3, and x represents the number of priorities.

[0185] For example, the number of priorities is 2 (priorities 0 and 1 respectively), If it is 1, then x is 1, that is, the number of pin 3 is 1, and pin 3 outputs signal 3 (such as a low-level signal) indicating that the priority of the business data processed by the short-distance main chip is 0, and pin 3 outputs signal 4 (such as a high-level signal) indicating that the priority of the business data processed by the short-distance main chip is 1.

[0186] For another example, the number of priorities is 3 (priorities are 0, 1 and 2 respectively), Approximately equal to 1.7, then x is 2, that is, the number of pins 3 is 2, namely high pin 3 and low pin 3. Both low pin 3 and high pin 3 output low-level signals, indicating that the priority corresponding to business data 2 is 0. Low pin 3 outputs a high-level signal, and high pin 3 outputs a low-level signal, indicating that the priority of the business data processed by the short-distance main chip is 01, that is, the priority of the business data is 1. Low pin 3 outputs a low-level signal, and high pin 3 outputs a high-level signal, indicating that the priority of the business data is 10, that is, the priority of the business data is 3. It should be understood that the number of pins 3 is 2, and the number of pins 4 is also 2 (as shown in Figure 7B above).

[0187] For another example, the number of priorities is 4 (priorities are 0, 1, 2 and 3 respectively), If x is approximately equal to 2, then x is 2, which means that there are two pins 3, one high pin 3 and one low pin 3. When the low pin 3 outputs a high-level signal and the high pin 3 outputs a high-level signal, it means that the priority of the service data processed by the short-distance main chip is 11, which means that the priority corresponding to this service data is 3.

[0188] Alternatively, the priority may be transmitted by the short-range master and slave chips via the AP chip. For example, as shown in FIG7C , the short-range slave chip sends the request 1 to the short-range master chip via the AP.

[0189] Similarly, the response message corresponding to the request 1 (such as the rejection response message or the acceptance response message) may also be transmitted by the short-range master chip to the short-range slave chip directly or through the AP chip.

[0190] It should be noted that after receiving the above rejection response message, the short-range slave chip can send the above request 1 to the short-range master chip periodically or in real time, so as to enter the antenna preemption state after the short-range master chip transmits low-priority business data.

[0191] In addition, the short-range main chip can also actively send the priority of the service data to the short-range slave chip after receiving the service data sent by the AP chip. The short-range slave chip determines whether to enter the antenna preemption state by judging whether the priority is less than or equal to the priority of service data 1.

[0192] S203: The short-range main chip receives service data 2 sent by the AP chip.

[0193] S204 : The short-range master chip sends the priority of service data 2 to the short-range slave chip.

[0194] Among them, the priority corresponding to the service data, that is, the priority corresponding to the service, indicates the importance of the service. The higher the importance of the service, the higher the priority of the service, and the lower the importance of the service, the lower the priority corresponding to the service. Optionally, the importance can be characterized by throughput or latency. The higher the throughput of the service, or the lower the latency of the service, the more sensitive it is to the transmission rate, the higher the transmission rate required to transmit the service data corresponding to the service, and the higher the importance. When the transmission rate is low, it has a greater impact on the smooth operation of services with high throughput, and may even cause service interruption. For example, the video call service is highly sensitive to the transmission speed. When the transmission rate of the video call data is low, the video call service may be stuck or the video call may be disconnected, affecting the user experience.

[0195] In some embodiments, device 1 (such as the AP chip in device 1) can determine the priority of the service based on the information of the service. Exemplarily, the information of the service can be the identifier of the service, that is, the identifier of the application to which the service belongs. For example, if the service is a video playback service and the application to which the service belongs is a video application, the priority corresponding to the identifier of the video application can be found and used as the priority of the service. Alternatively, the information of the service can be the identifier of the service scenario. If the service is a video call service, the priority corresponding to the identifier of the video call service is used as the priority. The video call service is the service scenario. In addition, the priority of the service can also be determined by the short-range communication chip that allocates the service.

[0196] If the service data 2 is determined by the AP chip, the AP chip can not only send the priority of the service data 2 to the short-range master chip, but also send it to the short-range slave chip.

[0197] In an embodiment of the present application, after receiving service data 2 from the AP chip, the short-range master chip can proactively send the priority of service data 2 to the short-range slave chip. Alternatively, the short-range slave chip can send request 2 to the short-range master chip. In response to request 2, the short-range master chip sends the service priority of service data 2 to the short-range slave chip. Alternatively, after determining the priority of service data 2, the AP chip sends it to both the short-range master chip and the short-range slave chip.

[0198] Among them, optionally, the AP chip can determine the short-range communication chip for processing the service (such as service 1 and service 2 mentioned above) according to the type of service. For example, the AP chip determines that service 1 belongs to the first preset service, then the AP chip assigns service 1 to the short-range secondary chip. The AP chip determines that service 2 belongs to the second preset service, then the AP chip assigns it to the short-range main chip. Among them, the first preset service and the second preset service are preset, such as the first preset service is a private service (such as a multi-screen collaborative service), and the first preset service is all services except the second preset service, such as a three-party service. Of course, the AP chip can also determine the chip for processing the service according to other rules, for example, it can be randomly assigned, and this application does not limit it.

[0199] It should be noted that the above S203 - S204 are optional steps. When the latest antenna duty cycle needs to be determined, the short-range main chip may not have received the above service data 2 .

[0200] S205 : The short-range slave chip determines the latest antenna duty cycle based on the priority of service data 1 and the priority of service data 2 .

[0201] In some embodiments, the short-range slave chip can determine whether the priority of service data 1 is greater than the priority of service data 2. If so, this indicates that service 1, processed by the short-range slave chip, is of high importance and high-traffic traffic, requiring a higher transmission rate and lower latency. Therefore, service 1 can be prioritized, the short-range slave chip can use antenna a for a longer period, and the short-range slave chip can set the latest antenna duty cycle to duty cycle 1. If this indicates that service 2, processed by the short-range master chip, is of high importance and high-traffic traffic, requiring a higher transmission rate and lower latency, can be prioritized. The short-range master chip can use antenna a for a longer period, and the short-range slave chip can set the latest antenna duty cycle to duty cycle 2. It should be understood that, since no antenna duty cycle exists before device 1 determines the initial antenna duty cycle based on the priorities of service data 1 and service data 2, the latest antenna duty cycle determined here can also be referred to as the initial antenna duty cycle.

[0202] Duty cycle 1 is greater than duty cycle 2. Optionally, duty cycle 1 may be a value greater than 50%, and duty cycle 2 may be a value less than or equal to 50%. Furthermore, if the priority of service data 2 is equal to the priority of service data 1, the short-range slave chip may set the latest antenna duty cycle to duty cycle 1 or duty cycle 2. Alternatively, the short-range slave chip may set the latest antenna duty cycle to 50%.

[0203] In other embodiments, the short-range slave chip may directly look up the antenna duty cycle corresponding to the priority of service data 1 and the priority of service data 2, and use it as the latest antenna duty cycle.

[0204] In other embodiments, the short-range secondary chip can determine the latest antenna duty cycle based on the priority of service data 1, the priority of service data 2, and the short-range communication status. The short-range communication status indicates the usage status of the short-range communication mode, which includes the short-range communication switch status and / or the short-range communication connection status. The short-range communication switch status indicates whether the short-range communication switch of device 1 is turned on, which includes the short-range communication on state and the short-range communication off state. The short-range communication connection state indicates whether the short-range communication is in use when the short-range communication switch is in the short-range communication switch state, which includes the short-range communication connected state and the short-range communication disconnected state.

[0205] When the short-range communication switch state is the short-range communication off state, it indicates that the short-range main chip is based on antenna a and is unlikely to use short-range communication to transmit business data. Therefore, the short-range secondary chip can use antenna a for a long time, so that the latest determined antenna duty cycle can be very large.

[0206] When the short-range communication connection state is the short-range communication disconnection state, it indicates that device 1 has the possibility of using short-range communication to transmit business data. Therefore, the short-range secondary chip can use antenna a for a longer time, so that the latest antenna duty cycle determined can be larger.

[0207] Among them, optionally, the above-mentioned short-range communication state may include a WI-FI state and / or a Bluetooth state. The WI-FI state includes a WI-FI switch state and / or a WI-FI connection state. Among them, the WI-FI switch state indicates whether the WI-FI switch of device 1 is turned on, which includes a WI-FI on state and a WI-FI off state. When the WI-FI switch state is the WI-FI off state, it indicates that the possibility of the short-range main chip using the WI-FI communication method to process business is very small. Therefore, the short-range secondary chip can use antenna a for a longer time, so that the latest antenna duty cycle can be larger.

[0208] The Wi-Fi connection status indicates whether device 1 is connected to a Wi-Fi network, including Wi-Fi connected and Wi-Fi disconnected states. When the Wi-Fi connection status is Wi-Fi off, it indicates that the short-range main chip may still use antenna a to transmit service data based on the Wi-Fi communication mode, such as transmitting service data corresponding to the Wi-Fi scanning service. Therefore, the short-range secondary chip can use antenna a for a longer period of time, thereby increasing the latest antenna duty cycle.

[0209] Similarly, the Bluetooth status includes the Bluetooth on / off status and / or the Bluetooth connection status. The Bluetooth on / off status indicates whether the Bluetooth switch of device 1 is on, which includes the Bluetooth on state and the Bluetooth off state. The Bluetooth connection status indicates whether device 1 is connected to Bluetooth, which includes the Bluetooth connected state and the Bluetooth disconnected state.

[0210] Among them, optionally, the short-range secondary chip can find the antenna duty cycle corresponding to the priority of service data 1, the priority of service data 2 and the short-range communication switch state, and use it as the latest antenna duty cycle. For example, the short-range communication state includes the WI-FI state and the Bluetooth state. When the priority of service data 1 is 1, the priority of service data 2 is 2, the WI-FI state is the WI-FI off state, and the Bluetooth state is the Bluetooth off state, it indicates that both Bluetooth and WI-FI of device 1 are in the off state. The communication method used by the short-range main chip to process service data 2 may be a cellular network communication method (such as 5G, 4G, etc.). The probability of the short-range main chip using WI-FI communication or Bluetooth communication is small. Therefore, the antenna duty cycle corresponding to the priority of service data 1 being 1, the priority of service data 2 being 2, the WI-FI state being the WI-FI off state, and the Bluetooth state being the Bluetooth off state can be 100%, and the latest antenna duty cycle can be 100%.

[0211] For another example, when the priority of business data 1 is 2, the priority of business data 2 is 1, the WI-FI state is the WI-FI off state, and the Bluetooth state is the Bluetooth disconnected state, it indicates that the short-range main chip may use Bluetooth communication to transmit business data (such as business data corresponding to the Bluetooth scanning service). Therefore, the priority of business data 1 is 2, the priority of business data 2 is 1, the WI-FI state is the WI-FI off state, and the Bluetooth state is the Bluetooth disconnected state. The corresponding antenna duty cycle can be 90%, and the latest antenna duty cycle can be 90%.

[0212] It should be noted that when device 1 is in the Wi-Fi off state, the short-range slave chip may still use Wi-Fi to process services in the background. For example, when performing private services, the short-range slave chip may use Wi-Fi for scanning, positioning, etc. It should be understood that when the Wi-Fi is off state, the short-range slave chip uses Wi-Fi for service operations after being informed to the user and authorized by the user.

[0213] Alternatively, the short-range slave chip can directly use the short-range communication state to determine the latest antenna duty cycle. For example, the short-range slave chip can directly look up the antenna duty cycle corresponding to the short-range communication state and use it as the latest antenna duty cycle. For example, the short-range communication state includes a Wi-Fi state and a Bluetooth state. If the Wi-Fi state is Wi-Fi off and the Bluetooth state is Bluetooth off, the antenna duty cycle corresponding to the Wi-Fi off state and the Bluetooth off state is 100%.

[0214] In some embodiments, it is described above that the latest antenna duty cycle (i.e., the initial antenna duty cycle) is determined by the short-range secondary chip according to the operating conditions of the device 1 (such as the priority of the running service, i.e., the priority of the service data corresponding to the running service, and the short-range communication switch state). Of course, the above-mentioned initial antenna duty cycle can also be a fixed value, which is pre-set and does not require the short-range secondary chip to be determined according to the operating conditions, thereby realizing the rapid acquisition of the initial antenna duty cycle. Among them, optionally, in the case where the initial antenna duty cycle is pre-set, the situation where the device 1 does not have an initial antenna duty cycle generally does not occur. Therefore, after receiving the service data 1 allocated by the above-mentioned AP chip, the short-range secondary chip can directly switch antenna a based on the initial antenna duty cycle.

[0215] S206 . The short-range secondary chip transmits service data 1 to device 2 based on antenna a.

[0216] The transmission of the above-mentioned business data 1 and the determination of the latest duty cycle may be executed in sequence or concurrently, and this application does not limit this.

[0217] S207: The short-range main chip transmits service data 2 to device 3 based on antenna b. Antenna b is an antenna exclusively used by the short-range main chip.

[0218] In this embodiment of the present application, while the short-range secondary chip is using antenna a, the short-range primary chip can continue to transmit service data using antenna b, ensuring that the services processed by the short-range primary chip can continue to operate. However, the transmission speed of service data 2 will be reduced to avoid interruption of the services processed by the short-range primary chip, thereby ensuring the user experience. For example, the short-range primary chip can switch from MIMO mode to SISO mode to transmit service data 2 using antenna b.

[0219] Among them, optionally, the above-mentioned short-range main chip can be connected to antenna b through a core pin (such as an ANT pin) to output a radio frequency signal through the core pin to realize the transmission of business data. Optionally, the short-range main chip can be connected to antenna b through front-end modules (FEM). As shown in Figure 2 above, the short-range main chip is connected to antenna b through FEM0. Among them, the short-range main chip can also output a control signal to FEM0 through the Fem_Ctrl0 pin to control FEM0.

[0220] S208: Based on the latest antenna duty cycle, after determining that the short-range master chip has reached the usage time of antenna a, the short-range slave chip connects the first terminal to the third terminal of the single-pole double-throw switch 1. The third terminal is connected to the short-range master chip.

[0221] S209 . The short-range main chip transmits service data 2 to device 3 based on antenna a and antenna b.

[0222] For example, if the latest antenna duty cycle is 20%, after the short-range slave chip uses antenna a for 20 milliseconds, the short-range master chip's time window for using antenna a has expired. This means the short-range master chip's time to use antenna a has expired. The short-range slave chip then switches antenna a to the short-range master chip, allowing the short-range master chip to use antenna a and antenna b to transmit service data 2. The short-range master chip uses antenna a for 80 milliseconds.

[0223] It should be noted that after the short-range main chip is able to use antenna a, it can switch from SISO mode to MIMO mode and use antenna a and antenna b to transmit service data 2 simultaneously, thereby increasing the transmission rate of service data 2. In addition, while the short-range main chip is using antenna a, the short-range main chip can also not use antenna b, but only use antenna a to transmit service data.

[0224] In some embodiments, the above-mentioned service data 2 may be the service with the highest priority among the services processed by the short-distance main chip, or it may not be, and this application does not limit it.

[0225] In some embodiments, the short-distance slave chip can be connected to the first end of the single-pole double-throw switch 1 through a GPIO pin (Switch_sel pin as shown in Figure 2) to output a control signal through the GPIO pin to trigger the single-pole double-throw switch 1 to switch.

[0226] In some embodiments, the short-range slave chip can be connected to the second end of the single-pole double-throw switch 1 via an ANT pin to output a radio frequency signal via the ANT pin to achieve transmission of service data. Alternatively, the short-range master chip can be connected to the third end of the single-pole double-throw switch 1 via a core pin (such as ANT) to output a radio frequency signal via the core pin to achieve transmission of service data.

[0227] It should be noted that the above-mentioned switching of antenna a through the single-pole double-throw switch 1 is only an example. The switching of antenna a can also be achieved through other types of switches (such as other single-pole multi-throw switches, or single-pole single-throw switches). In other words, the short-range secondary chip can achieve the connection between the short-range secondary chip and antenna a, or the connection between the short-range main chip and antenna a through the switch. The type of the switch is not limited, as long as it can achieve the switching of antenna a.

[0228] The above describes the process of the short-range slave chip switching to use antenna a based on the initial antenna duty cycle. The following will continue to describe the process of the short-range slave chip adaptively adjusting the antenna duty cycle based on the QOE information of the short-range main chip.

[0229] S210: The short-range slave chip obtains the QOE information of the short-range master chip.

[0230] For example, the short-range slave chip can periodically or in real time obtain the QOE information of the short-range master chip. The QOE information can be used to measure the communication quality (i.e., transmission quality) of the short-range master chip. The QOE information may include the value of one or more quality indicators of the number of spatial streams, operating bandwidth, link rate, throughput, packet loss rate, retransmission rate, and modulation and coding scheme (MCS).

[0231] Throughput includes send throughput and / or receive throughput. Send throughput refers to the number of packets successfully sent per unit time. Receive throughput refers to the number of packets successfully received per unit time.

[0232] Operating bandwidth refers to the signal frequency range available within the operating frequency band.

[0233] The MSC specifies an upper limit for the transmission rate (or link rate). Generally speaking, the MCS ranges from MCS0 to MCS11 (i.e., MSC values ​​range from 0 to 11). Different MCSs specify different upper limits for the transmission rate. As the MCS value increases, the upper limit for the transmission rate gradually increases. For example, MCS0 specifies the lowest transmission rate, while MSC11 specifies the highest.

[0234] The number of spatial streams refers to the number of independent data streams used simultaneously when sending and receiving data in wireless communications. For example, in SISO mode, the number of spatial streams of the short-range master chip is 1.

[0235] Optionally, since the short-range main chip can use one or more short-range communication methods to communicate with external devices at the same time, the QOE information of the above-mentioned short-range main chip can be determined during the transmission of business data based on one or more short-range communication methods. In addition, when the short-range main chip transmits business data based on different short-range communication methods, the electronic device can count the QOE information corresponding to each short-range communication method. For example, device 1 is connected to a Bluetooth headset, and while the user is using the social application of device 1, he also listens to the music played by the music application of device 1 through the Bluetooth headset. Accordingly, the short-range main chip in device 1 transmits the business data corresponding to the social application through the WI-FI communication method, and transmits the business data corresponding to the music application through the Bluetooth communication method. The QOE information of the above-mentioned short-range main chip may include the QOE information corresponding to the Bluetooth communication method and the QOE information corresponding to the WI-FI communication method.

[0236] It should be noted that the QOE information corresponding to the Bluetooth communication mode may include one or more of the operating bandwidth, link rate, throughput, packet loss rate, and retransmission rate, and does not include the MSC and number of spatial streams. In addition, since Bluetooth communication and Wi-Fi communication share the same frequency band and use the same antenna, the statistical QOE information can be determined based on the period during which service data is transmitted via Bluetooth communication and the period during which service data is transmitted via Wi-Fi communication. For short-range communication modes such as NFC, due to the different frequency bands and antennas used, it is not necessary to use statistical data related to NFC communication.

[0237] S211 , based on the latest antenna duty cycle, after determining that the short-distance slave chip has reached the usage time of antenna a, the short-distance slave chip connects the first terminal and the second terminal of the single-pole double-throw switch 1 .

[0238] S212: The short-distance slave chip determines whether the QOE deterioration degree of the short-distance master chip is greater than a preset deterioration threshold based on the QOE information 1 and the QOE information 2.

[0239] Among them, QOE information 1 represents the QOE information of the short-range main chip obtained before the short-range slave chip enters the antenna preemption state, that is, the QOE information collected when the short-range main chip uses antenna a. QOE information 2 represents the QOE information of the short-range main chip obtained after the short-range slave chip enters the antenna preemption state.

[0240] Continuing with the above example, after the short-range slave chip uses antenna a for 20 milliseconds, it switches antenna a to the short-range master chip. The short-range master chip can then use antenna a for 80 milliseconds. After 80 milliseconds, the short-range slave chip switches antenna a to the short-range slave chip again. The QOE information 1 mentioned above can be collected within this 80 millisecond period. QOE information 2 can be collected after antenna a is switched to the short-range slave chip again.

[0241] Optionally, the QOE information 1 may be QOE information whose collection time is before the collection time corresponding to the QOE information 2 and is closest to the collection time corresponding to the QOE information 2.

[0242] In an embodiment of the present application, after entering the antenna preemption state, the short-range slave chip can determine whether the QOE deterioration degree of the short-range master chip is greater than a preset deterioration threshold, that is, whether the transmission quality of the short-range master chip is reduced too much.

[0243] When the QOE deterioration degree is greater than the preset deterioration threshold, it indicates that due to the influence of not using antenna a, the transmission quality of the short-range main chip is greatly reduced. In order to avoid a significant reduction in the smoothness of the business operation of the short-range main chip, the short-range secondary chip can reduce the antenna duty cycle of the short-range secondary chip to extend the usage time of the short-range main chip using antenna a. The short-range secondary chip can then execute S213.

[0244] When the QOE deterioration degree is less than or equal to the preset deterioration threshold, it indicates that the transmission quality of the short-range main chip is slightly reduced, the smoothness of the business operation of the short-range main chip is slightly reduced, and the latest antenna duty cycle has little impact on the business running of the short-range main chip. The short-range secondary chip can increase the antenna duty cycle of the short-range secondary chip and reduce the usage time of the short-range main chip using antenna a. Then the short-range secondary chip can execute S220.

[0245] In some embodiments, the short-distance slave chip may calculate the QOE degradation degree using weighting based on the QOE information 1 and the QOE information 2. The QOE degradation degree indicates the degree of degradation of the transmission quality of the short-distance master chip.

[0246] For example, the short-range slave chip may perform a weighted sum calculation on the quality indicator values ​​in the QOE information to obtain the transmission quality 1 corresponding to the QOE information 1. Specifically, for each quality indicator, the short-range slave chip calculates the product of the value of the quality indicator in the QOE information 1 and the weight corresponding to the quality indicator to obtain the weighted value 1 of the quality indicator. The short-range slave chip may then calculate the sum of the weighted values ​​1 of the various quality indicators to obtain the transmission quality 1 corresponding to the QOE information 1.

[0247] Similarly, the short-distance slave chip can calculate the transmission quality 2 corresponding to the QOE information 2. Then, the short-distance slave chip can calculate the difference between the transmission quality 2 and the transmission quality 1 to obtain the degree of QOE degradation.

[0248] Optionally, the short-distance slave chip can normalize QOE information 1 and QOE information 2 to unify the dimensions of different quality indicators for easier calculation. The short-distance slave chip can then calculate the degree of QOE degradation using weighted calculations based on the normalized QOE information 1 and the normalized QOE information 2.

[0249] In some embodiments, the QOE information may include QOE information corresponding to at least one short-range communication mode. Accordingly, for each short-range communication mode, the short-range slave chip may perform a weighted sum calculation on the values ​​of the quality indicators in the QOE information 1 corresponding to the short-range communication mode to obtain the transmission quality 1 corresponding to the QOE information 1 corresponding to the short-range communication mode. The short-range slave chip may then perform a weighted sum calculation on the transmission quality 1 corresponding to the QOE information 1 corresponding to each short-range communication mode to obtain the transmission quality 1 corresponding to the QOE information 1.

[0250] Similarly, the short-range slave chip can perform weighted sum calculation on the transmission quality 2 corresponding to the QOE information 2 corresponding to each short-range communication mode to obtain the transmission quality 2 corresponding to the QOE information 2.

[0251] For example, the QOE information 1 includes QOE information 1 corresponding to the Bluetooth communication mode and QOE information 1 corresponding to the Wi-Fi communication mode. For the Bluetooth communication mode, the short-range slave chip can perform a weighted sum calculation on the quality indicator values ​​in the QOE information 1 corresponding to the Bluetooth communication mode to obtain the transmission quality 1 corresponding to the QOE information 1 corresponding to the Bluetooth communication mode. Furthermore, for the Wi-Fi communication mode, the short-range slave chip can perform a weighted sum calculation on the quality indicator values ​​in the QOE information 1 corresponding to the Wi-Fi communication mode to obtain the transmission quality 1 corresponding to the QOE information 1 corresponding to the Wi-Fi communication mode.

[0252] The short-range slave chip can then calculate the product of the weight corresponding to the Bluetooth communication mode and the transmission quality 1 corresponding to the QOE information 1 corresponding to the Bluetooth communication mode, and also calculate the product of the weight corresponding to the Wi-Fi communication mode and the transmission quality 1 corresponding to the QOE information 1 corresponding to the Wi-Fi communication mode. The short-range slave chip can then calculate the sum of these two products to obtain the transmission quality 1 corresponding to the QOE information 1.

[0253] In some embodiments, after the short-range slave chip enters the antenna preemption state, if the short-range main chip is not in the data transmission state, the short-range slave chip does not need to determine whether the QOE deterioration degree of the short-range main chip is greater than the preset deterioration threshold. The short-range slave chip can directly increase the antenna duty cycle. The process of increasing the antenna duty cycle can refer to the relevant introduction below.

[0254] To determine whether the short-range main chip is in a data transmission state, reference can be made to the process of determining whether it is in a data transmission state based on data transmission state information described above. Alternatively, the process may be when the WI-FI state changes from the WI-FI on state to the WI-FI off state, and the Bluetooth state changes from the Bluetooth on state to the Bluetooth off state, when the antenna preemption state is entered. When the short-range main chip is not in a data transmission state, this means that the above-mentioned QOE information 1 is collected when the short-range main chip is in a data transmission state, and QOE information 2 is collected when the short-range main chip is not in a data transmission state. In this case, the degree of QOE deterioration may be significant, but the short-range main chip is less likely to use antenna a. Therefore, there is no need to reduce the latest antenna duty cycle, but the latest duty cycle can be directly increased.

[0255] Optionally, when the short-range slave chip enters the antenna preemption state, the WI-FI state changes from the WI-FI on state to the WI-FI off state, and the Bluetooth state is still the Bluetooth on state. At this time, the short-range slave chip can directly increase the latest antenna duty cycle, or because the short-range main chip is still using antenna a for Bluetooth communication, the short-range slave chip can still calculate the QOE deterioration degree to adjust the latest antenna duty cycle using the QOE deterioration degree.

[0256] Similarly, when the short-range slave chip enters the antenna preemption state, the Wi-Fi state is still the Wi-Fi on state, and the Bluetooth state changes from the Bluetooth on state to the Bluetooth off state. At this time, the short-range slave chip can directly increase the latest antenna duty cycle, or because the short-range main chip is still using antenna a for Wi-FI communication, the short-range slave chip can still calculate the QOE deterioration degree, so as to use the QOE deterioration degree to adjust the latest antenna duty cycle.

[0257] S213 : The short-range slave chip determines to reduce the duty cycle based on the priority of service data 1 and the priority of service data 2 .

[0258] For example, the process of determining the duty cycle reduction by the short-range slave chip can refer to the process of determining the latest antenna duty cycle described above. The following is a brief introduction to the implementation of determining the duty cycle reduction.

[0259] In one implementation, when the priority of service data 1 is greater than the priority of service data 2, it indicates that the service processed by the short-range secondary chip is more important and has higher transmission rate requirements. Therefore, the degree of reduction in the latest antenna duty cycle can be smaller to avoid a significant reduction in the antenna duty cycle, which will cause a greater impact on the transmission rate of the short-range secondary chip. The short-range secondary chip can set the reduced duty cycle to reduced duty cycle 1.

[0260] When the priority of service data 1 is less than or equal to the priority of service data 2, it indicates that the importance of the service processed by the short-range slave chip is relatively low, and the transmission rate of the short-range main chip needs to be guaranteed. Therefore, the degree of reduction in the latest antenna duty cycle can be greater, and the short-range slave chip can set the reduced duty cycle to reduced duty cycle 2.

[0261] Among them, the above-mentioned reduced duty cycle 1 is smaller than the above-mentioned reduced duty cycle 2.

[0262] In another implementation, the short-range slave chip may directly search for the reduced duty cycle corresponding to the priority of service data 1 and the priority of service data 2 .

[0263] In other implementations, the short-range slave chip may search for a reduced duty cycle corresponding to the priority of service data 1, the priority of service data 2, and the short-range communication state.

[0264] In addition, the short-range slave chip may also directly use the short-range communication state to determine the reduced duty cycle. The short-range slave chip may search for the reduced duty cycle corresponding to the short-range communication state.

[0265] In some embodiments, the above-described implementation method for determining the reduction of the duty cycle is only an example, and the reduction of the duty cycle may also be determined based on other methods, such as the reduction of the duty cycle is preset.

[0266] In some embodiments, the above-mentioned business data 1 is the business data currently transmitted by the short-distance slave chip, and the business data 2 is the business data currently transmitted by the short-distance main chip. Of course, the short-distance slave chip may no longer transmit business data 1, but may transmit other business data. Similarly, the short-distance main chip may no longer transmit business data 2, but may transmit other business data. In other words, the above-mentioned S213 can be replaced with the description that the short-distance slave chip determines to reduce the duty cycle based on the priority of the business data 3 transmitted by the short-distance slave chip and the priority of the business data 4 transmitted by the short-distance main chip. The business data 3 may be the same as the business data 1 or different. The business data 4 may be the same as the business data 2 or different.

[0267] S214: The short-range slave chip calculates the ratio of the latest antenna duty cycle to the reduced duty cycle to obtain the adjusted latest antenna duty cycle.

[0268] For example, the short-range slave chip calculates the latest adjusted antenna duty cycle based on A / B. A represents the latest antenna duty cycle, and B represents a reduced duty cycle, with B being greater than or equal to 1%, enabling dynamic adjustment of the latest antenna duty cycle. Furthermore, since the adjustment is adaptively made based on the actual operating conditions of the short-range slave chip, the accuracy of the adjustment is guaranteed. This not only increases the short-range master chip's usage time for antenna a, and therefore improves the communication quality of the short-range master chip, but also reduces the impact on services processed by the short-range slave chip, thereby minimizing the overall impact on the short-range master and slave chips.

[0269] In some embodiments, the above S214 is only a possible implementation method of adjusting the latest antenna duty cycle based on reducing the duty cycle. The short-range secondary chip can also adjust the latest antenna duty cycle based on other methods. For example, the short-range secondary chip can calculate the difference between the latest antenna duty cycle and the reduced duty cycle to obtain the adjusted latest antenna duty cycle.

[0270] S215 . The short-range secondary chip transmits service data 1 to device 2 based on antenna a.

[0271] S216 . The short-range main chip transmits service data 2 to device 3 based on antenna b.

[0272] In the embodiment of the present application, while the short-range slave chip enters the antenna preemption state, the short-range slave chip can use antenna a to transmit service data 1 with device 2 based on the SISO mode. Furthermore, the short-range master chip cannot use antenna a and can use antenna b to transmit service data 2 with device 2 based on the SISO mode, such as receiving and sending service data 2.

[0273] S217 : Based on the latest adjusted antenna duty cycle, after determining that the short-range master chip has reached the usage time of antenna a, the short-range slave chip connects the first terminal and the third terminal of the single-pole double-throw switch 1 .

[0274] S218 . The short-range main chip transmits service data 2 to device 3 based on antenna a and antenna b.

[0275] S219: The short-distance slave chip returns to S210.

[0276] In an embodiment of the present application, after adjusting the latest antenna duty cycle, the short-range slave chip can determine whether the short-range main chip's usage time for antenna a has arrived based on the adjusted latest antenna duty cycle. If it has not arrived, the short-range slave chip can continue to use antenna a. If it has arrived, the short-range slave chip can switch antenna a to the short-range main chip side, so that the short-range main chip continues to use antenna a to transmit business data. The adjusted latest antenna duty cycle is used as the latest antenna duty cycle. The short-range slave chip can continue to obtain QOE information. Afterwards, when the antenna preemption state is re-entered based on the latest antenna duty cycle, the short-range slave chip continues to adjust the latest antenna duty cycle to achieve timely adjustment of the antenna duty cycle and ensure the rationality of the antenna duty cycle.

[0277] Sections S213-S219 above describe how the short-range slave chip reduces the latest antenna duty cycle when the QOE deterioration exceeds a preset degradation threshold. However, there's also the possibility that the QOE deterioration is less than or equal to the preset degradation threshold. In this case, the short-range slave chip needs to increase the latest antenna duty cycle. The following section describes the process of increasing the latest antenna duty cycle.

[0278] S220 : The short-range slave chip determines to increase the duty cycle based on the priority of service data 1 and the priority of service data 2 .

[0279] The process of determining to increase the duty cycle may refer to the process of determining to reduce the duty cycle described above, and will not be described in detail here.

[0280] S221. The short-range slave chip calculates the sum of the latest antenna duty cycle and the increased duty cycle to obtain the adjusted latest antenna duty cycle.

[0281] The short-range slave chip calculates the latest adjusted antenna duty cycle based on A + C. C represents the incremental duty cycle, enabling dynamic adjustment of the latest antenna duty cycle. Because the adjustment is adaptively tailored to the actual operating conditions of the short-range slave chip, accuracy is guaranteed. This not only increases the short-range slave chip's usage time for antenna A, and therefore its communication quality, but also reduces the impact on services handled by the short-range master chip, minimizing the overall impact on the short-range master and slave chips.

[0282] In some embodiments, the above S221 is only a possible implementation method of adjusting the latest antenna duty cycle based on reducing the duty cycle. The short-range secondary chip can also adjust the latest antenna duty cycle based on other methods. For example, the short-range secondary chip can calculate the product of the latest antenna duty cycle and the increased duty cycle to obtain the adjusted latest antenna duty cycle.

[0283] S222 . The short-range secondary chip transmits service data 1 to device 2 based on antenna a.

[0284] S223 . The short-range main chip transmits service data 2 to device 3 based on antenna b.

[0285] S224 : Based on the latest adjusted antenna duty cycle, after determining that the short-range master chip has reached the usage time of antenna a, the short-range slave chip connects the first terminal and the third terminal of the single-pole double-throw switch 1 .

[0286] S225 . The short-range main chip transmits service data 2 to device 3 based on antenna a and antenna b.

[0287] S226 : The short-distance slave chip returns to S210 .

[0288] In some embodiments, the short-range sub-chips in different devices can be used to process private services, so that the short-range sub-chips between different devices can use custom short-range communication protocols to transmit business data. For example, the short-range sub-chip in the above-mentioned device 1 sends private business data (or called private data) to the short-range sub-chip in device 2, and device 2 can also send private business data to the short-range sub-chip in device 1, thereby improving the efficiency of short-range communication and thus improving the efficiency of business data transmission. Exemplarily, the private business data is used to trigger device discovery, establish short-range communication connections, and transmit business data (or data) between devices. If the private business is a collaborative business, the short-range communication connection corresponding to the collaborative business includes a WI-FI connection. The steps corresponding to the conventional WI-FI communication protocol (or called the standard WI-FI communication protocol) include scanning, authentication, association, first handshake, second handshake, third handshake, and fourth handshake. The custom short-range communication protocol includes a custom WI-FI communication protocol. The steps corresponding to the WI-FI protocol may include some steps in the conventional WI-FI communication protocol. That is, the connection establishment steps corresponding to the custom short-range communication protocol are fewer than the connection establishment steps corresponding to the standard short-range communication protocol, such as omitting the authentication step, thereby simplifying the WI-FI connection process and improving the efficiency of business data transmission.

[0289] For another example, devices use a custom Bluetooth communication protocol to perform device discovery, transmit password information, and complete the definition of Go and Gc roles. Afterwards, a P2P connection is established between devices based on the custom P2P communication protocol. The steps corresponding to the P2P communication protocol may include some steps in the conventional P2P communication protocol. In other words, the connection establishment steps corresponding to the custom short-range communication protocol are fewer than those corresponding to the standard short-range communication protocol, such as omitting the Go and Gc role negotiation steps, thereby improving the efficiency of establishing the P2P connection. It should be understood that the custom Bluetooth communication protocol also belongs to the custom short-range communication protocol.

[0290] For another example, business data can be transmitted between devices through a custom short-range communication protocol to simplify the business data transmission process and improve the efficiency of business data transmission. Optionally, after establishing a P2P connection between devices, business data can be transmitted through a custom network communication protocol (such as a custom TCP / IP protocol) based on a short-range secondary chip. For example, the conventional TCP / IP protocol corresponds to four layers (application layer, transport layer, internet layer, and network access layer), and the number of layers corresponding to the custom TCP / IP protocol is less than the number of layers corresponding to the conventional TCP / IP protocol, thereby simplifying the business data transmission process.

[0291] Among them, optionally, the transmission of business data (such as the above-mentioned private business data) between devices through the same short-range secondary chip can avoid the failure of business data transmission due to different model specifications of short-range communication chips between devices, thereby avoiding compatibility issues.

[0292] In some embodiments, the short-distance slave chip may not control the switching of the single-pole double-throw switch 1, but instead the short-distance master chip may control the single-pole double-throw switch 1. Accordingly, the first end of the single-pole double-throw switch 1 may be connected to the short-distance master chip instead of the short-distance slave chip. In addition, the operations performed by the short-distance master chip can also be described as being performed by the short-distance slave chip. Accordingly, the operations performed by the short-distance slave chip can be performed by the short-distance master chip. In other words, the first chip can be the short-distance slave chip, and the second chip can be the short-distance master chip.

[0293] In some embodiments, after the short-range slave chip enters the antenna preemption state, the fixed program module (such as the dual-chip coexistence strategy) on the short-range slave chip can determine whether the transmission quality of the short-range main chip has deteriorated. When the degree of deterioration is large, the short-range slave chip can increase the antenna duty cycle. When the degree of deterioration is small, the antenna duty cycle can be reduced to achieve adaptive adjustment of the antenna duty cycle. The following will combine the structure shown in Figure 4 above and take the above-mentioned service 1 as an example of a collaborative service to introduce the adaptive adjustment process in detail. As shown in Figure 8, the process is as follows:

[0294] S1. The QOE information identification module calls the main chip driver every preset time 3 to obtain the QOE information of the short-range main chip.

[0295] S2. The QOE information identification module sends the QOE information of the short-range main chip to the service priority identification module.

[0296] S3. The service priority identification module calls the slave chip driver to send QOE information to the dual-chip strategy module on the short-distance slave chip.

[0297] Optionally, the QOE information identification module may also directly call the slave chip driver to send the QOE information to the short-range slave chip.

[0298] S4. The short-range communication status identification module calls the secondary chip driver every preset time 4 to send the short-range communication status of the device 1 to the dual-chip coexistence strategy module.

[0299] Optionally, the above-mentioned QOE information and short-range communication status (or short-range communication status information) may also be sent in real time.

[0300] S5 . The scene recognition module recognizes information of the service 5 started by the device 1 .

[0301] Exemplarily, the information of the service may include the identification of the application. For example, the user clicks the icon 10 of the first game application as shown in FIG9A . In response to the click operation on the icon 10 , the device 1 starts the first game application (such as displaying the startup content of FIG9B and FIG9C ). Accordingly, the information of the started service 5 includes the identification of the first game application. Alternatively, the information of the service may include the identification of the service scenario, such as a game scenario (zooming scene, airplane scene, shooting scene, battle scene, game lobby scene, etc.), a video call scene, a file download scene, and the like.

[0302] S6. The scene recognition module sends information about service 5 to the service priority module.

[0303] S7. The service priority module determines the priority corresponding to the information of service 5 and obtains the priority of service 5.

[0304] S8. The service priority module calls the target short-range communication chip driver and sends the priority of service 5 to the target short-range communication chip. The target short-range communication is the short-range main chip.

[0305] In some embodiments, the target short-range communication chip for processing service 5 may be determined by the service priority module or another module, such as a transmission link control module. The service priority can be determined by the transmission link control module by invoking the main chip driver to send the priority of service 5 to the target short-range communication chip.

[0306] Optionally, the transmission link control module may also send the service data 5 to a target short-range communication chip. The target short-range communication chip may be a short-range master chip, or a short-range slave chip.

[0307] S9. The short-range master chip sends the priority of service 5 to the dual-chip coexistence strategy module.

[0308] S10 , the short-range main chip uses antenna a and antenna b to transmit service data 5 to device 4 .

[0309] For example, assuming that the short-range main chip is currently using antenna a, the short-range main chip can use antenna a and antenna b to transmit service data 5 corresponding to service 5 with device 4. Service 5 represents the service processed by the short-range main chip.

[0310] During the period when the short-distance main chip uses antenna a, the first terminal and the third terminal of the single-pole double-throw switch 1 are connected (as shown in FIG10A ), so that the short-distance main chip is connected to antenna a.

[0311] S11 , based on the latest antenna duty cycle, after determining that the short-distance slave chip has reached the usage time of antenna a, the data transmission arbitration module on the short-distance slave chip connects the first end and the second end of the single-pole double-throw switch 1 .

[0312] When the short-distance slave chip uses antenna a, the first terminal and the third terminal of the single-pole double-throw switch 1 are connected (as shown in FIG10B ), so that the short-distance slave chip is connected to antenna a.

[0313] S12 . The short-range secondary chip uses antenna a to transmit service data 6 corresponding to service 6 to device 5 .

[0314] For example, the short-range secondary chip in device 1 may use antenna a to transmit service data 6 to the short-range secondary chip in device 5 .

[0315] In some embodiments, the service 6 may or may not be the same service as the service 1 or service 3. The service 5 may or may not be the same service as the service 2 or service 4.

[0316] S13. The dual-chip coexistence strategy module determines the degree of QOE degradation based on the QOE information 1 and the QOE information 2.

[0317] S14. The dual-chip coexistence strategy module determines whether the QOE deterioration degree is greater than a preset deterioration threshold.

[0318] When the QOE deterioration degree is greater than the preset deterioration threshold, it indicates that the communication quality of the short-range main chip has been significantly degraded and the latest antenna duty cycle is too large for service 5. Therefore, the latest antenna duty cycle needs to be reduced, and the dual-chip coexistence strategy module can execute S15.

[0319] When the QOE deterioration degree is less than or equal to the preset deterioration threshold, it indicates that the communication quality of the short-range main chip is less degraded. Therefore, the latest antenna duty cycle needs to be increased, and the dual-chip coexistence strategy module can execute S18.

[0320] Optionally, the QOE deterioration degree may be determined by a service priority module, and the service priority module directly sends the QOE deterioration degree to the dual-chip coexistence strategy module.

[0321] Optionally, the QOE analysis result may be determined by the service priority module, which directly sends the QOE analysis result to the dual-chip coexistence strategy module, wherein the QOE analysis result indicates whether the QOE deterioration degree is greater than a preset deterioration threshold.

[0322] S15 . The dual-chip coexistence strategy module obtains a reduced duty cycle corresponding to the priority of service 5 , the priority of service 6 , and the short-range communication state.

[0323] S16. The dual-chip coexistence strategy module calculates the ratio of the latest antenna duty cycle to the reduced duty cycle to obtain the adjusted latest antenna duty cycle.

[0324] S17. The dual-chip coexistence strategy module sends the adjusted latest antenna duty cycle to the data transmission arbitration module and returns to S1.

[0325] Among them, S15-S17 introduces the process of reducing the latest antenna duty cycle by the short-range secondary chip according to the operation status of device 1 after the above S14. The specific implementation process of S15-S17 can refer to the relevant description of S213-S219 above, which will not be repeated here. It can be understood that after adjusting the latest antenna duty cycle, the short-range secondary chip re-acquires relevant information (such as the above-mentioned QOE information, the priority of the services processed by the short-range main and secondary chips, the short-range communication status, etc.).

[0326] The following will continue to combine S18-S20 to introduce the process of reducing the latest antenna duty cycle of the short-range secondary chip according to the operating status of device 1 after S14.

[0327] S18. The dual-chip coexistence strategy module obtains an increased duty cycle corresponding to the priority of service 5, the priority of service 6, and the short-range communication state.

[0328] S19. The dual-chip coexistence strategy module calculates the sum of the latest antenna duty cycle and the increased duty cycle to obtain the adjusted latest antenna duty cycle.

[0329] S20 , the dual-chip coexistence strategy module sends the adjusted latest antenna duty cycle to the data transmission arbitration module, and returns to S1 .

[0330] Among them, the specific implementation process of S18-S20 can refer to the relevant description of S220-S226 above, which will not be repeated here.

[0331] S21 , the data transmission arbitration module switches the single-pole double-throw switch 1 based on the latest adjusted antenna duty cycle.

[0332] In the embodiment of the present application, the data transmission arbitration module switches single-pole double-throw switch 1 to connect antenna a to the short-range master chip after determining that the short-range master chip has reached the usage time for antenna a based on the adjusted latest antenna duty cycle, i.e., the latest antenna duty cycle. Then, after determining that the short-range slave chip has reached the usage time for antenna a, the data transmission arbitration module switches single-pole double-throw switch 1 to connect antenna a to the short-range slave chip.

[0333] In some embodiments, the short-range secondary chip in a device (such as device 1, device 2 or device 5 mentioned above) can be set to handle private services such as multi-screen collaboration and super notifications, so that device 1 can use the short-range secondary chip and a custom short-range communication protocol to perform short-range communication with the short-range secondary chips in other devices, such as device discovery and establishing communication connections; wherein the custom short-range communication protocol can define the communication process according to needs and simplify the communication process between devices.

[0334] The above describes the case where the target short-range communication chip is a short-range master chip. Of course, there is also the possibility that the target short-range communication chip is a short-range slave chip.

[0335] It should be noted that the above introduction to the process of business data transmission takes the example of 2 short-range communication chips in device 1. The number of short-range communication chips in device 1 can also be other values, as long as it is greater than 1, and this application does not limit it.

[0336] In addition, the operations performed by the above modules (such as the scene recognition module, the service priority module, the QOE information recognition module, the short-range communication status recognition module, the dual-chip coexistence strategy module, and the data transmission arbitration module) are only examples. The operation can also be performed by other modules. This application does not limit the module that performs the operation.

[0337] In some embodiments, the present application provides a computer-readable storage medium including computer instructions. When the computer instructions are executed on a Bluetooth device, the electronic device executes the data transmission method described above.

[0338] In some embodiments, the present application provides a computer program product, which, when executed on a Bluetooth device, enables the electronic device to execute the data transmission method described above.

[0339] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned 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.

[0340] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules or units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0341] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0342] In addition, 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.

[0343] 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 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, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute 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 a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0344] The above content is only a specific embodiment of this application, but the scope of protection of this application is not limited to this. Any changes or replacements 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 data transmission method, characterized in that, Applied to an electronic device, the electronic device includes a first chip and a second chip, and the first chip and the second chip are short-range communication chips; The data transmission method includes: The first chip connects to a first antenna and transmits first data based on the first antenna; The first chip determines a communication quality degradation value of the second chip based on the first communication quality information of the second chip and the second communication quality information of the second chip; wherein, the first communication quality information represents the communication quality information of the second chip collected before the first chip connects to the first antenna, and the second communication quality information represents the communication quality information of the second chip collected after the first chip connects to the first antenna; the first antenna is an antenna shared by the first chip and the second chip, and when the first antenna is connected to the second chip, the first antenna is disconnected from the first chip; The first chip reduces or increases the antenna duty cycle based on the communication quality degradation value to obtain an adjusted antenna duty cycle; wherein, the antenna duty cycle represents the time ratio during which the first chip can use the first antenna within a first preset time; Based on the adjusted antenna duty cycle, the first chip determines the usage time of the first antenna by the second chip, and the first chip controls the first antenna to connect to the second chip; The second chip transmits second data based on the first antenna.

2. The method according to claim 1, wherein The reducing or increasing the antenna duty cycle based on the communication quality degradation value includes: The first chip determines that the communication quality degradation value is greater than a first preset threshold, and the first chip reduces the antenna duty cycle; The first chip determines that the communication quality degradation value is less than or equal to the first preset threshold, and the first chip increases the antenna duty cycle.

3. The method according to claim 1 or 2, characterized in that, Reducing the antenna duty cycle includes: The first chip determines to reduce the duty cycle based on the priority of the first data and the priority of the second data; wherein, the priority of the first data represents the importance of the first data; Based on the determined reduction of the duty cycle, the first chip reduces the antenna duty cycle.

4. The method according to claim 3, characterized in that, The first chip determining to reduce the duty cycle based on the priority of the first data and the priority of the second data includes: The first chip determines a reduced duty cycle corresponding to the priority of the first data, the priority of the second data, and the short-range communication state; the short-range communication state represents the usage state of the short-range communication method of the electronic device, and the short-range communication state includes a short-range communication switch state and / or a short-range communication connection state; Alternatively, the first chip determines that the priority of the first data is greater than the priority of the second data, and takes a first duty cycle as the reduced duty cycle; Alternatively, the first chip determines that the priority of the first data is less than or equal to the priority of the second data, and takes a second duty cycle as the reduced duty cycle; the first duty cycle is less than the second duty cycle; Alternatively, the first chip determines a reduced duty cycle corresponding to the priority of the first data and the priority of the second data.

5. The method according to claim 1 or 2, characterized in that, Reduce the antenna duty cycle to obtain an adjusted antenna duty cycle, including: The first chip determines a reduced duty cycle corresponding to the short-range communication state of the electronic device; Based on the reduced duty cycle, the first chip reduces the antenna duty cycle.

6. The method according to claim 4 or 5, characterized in that The short-range communication state includes a WI-FI state and a Bluetooth state; wherein, the WI-FI state includes a WI-FI switch state and / or a WI-FI connection state, the WI-FI switch state includes a WI-FI on state and a WI-FI off state, and the WI-FI connection state includes a WI-FI connected state and a WI-FI disconnected state; The Bluetooth state includes a Bluetooth switch state and / or a Bluetooth connection state, the Bluetooth switch state includes a Bluetooth on state and a Bluetooth off state, and the Bluetooth connection state includes a Bluetooth connected state and a Bluetooth disconnected state.

7. The method according to any one of claims 3 to 6, characterized in that, The step of the first chip reducing the antenna duty cycle based on the reduced duty cycle includes: The first chip calculates the ratio between the antenna duty cycle and the reduced duty cycle, or the first chip calculates the difference between the antenna duty cycle and the reduced duty cycle.

8. The method according to claim 1 or 2, characterized in that, Increase the antenna duty cycle, including: Based on an increased duty cycle, the first chip increases the antenna duty cycle; the increased duty cycle is determined based on the priority of the first data and the priority of the second data, or the increased duty cycle corresponds to the short-range communication state of the electronic device.

9. The method according to any one of claims 1 to 8, characterized in that, The step of determining the communication quality degradation value of the second chip based on the first communication quality information of the second chip and the second communication quality information of the second chip includes: The first chip performs a weighted sum calculation on the values of the quality indicators in the first communication quality information to obtain a first communication quality; The first chip performs a weighted sum calculation on the values of the quality indicators in the second communication quality information to obtain a second communication quality; The first chip calculates the difference between the second communication quality and the first communication quality to obtain the communication quality degradation value.

10. The method according to any one of claims 1 to 9, characterized in that, The first communication quality information includes the values of one or more quality indicators such as the number of spatial streams, operating bandwidth, link rate, throughput, packet loss rate, retransmission rate, and modulation and coding strategy.

11. The method according to claim 1, characterized in that, Before determining the communication quality degradation value of the second chip based on the first communication quality information of the second chip and the second communication quality information of the second chip, the method further includes: The first chip determines that the second chip is in a data transmission state.

12. The method according to claim 1, characterized in that, The method further includes: The first chip determines that the second chip is not in a data transmission state, and the first chip increases the antenna duty cycle.

13. The method according to any one of claims 1 to 12, characterized in that, Before the first chip connects to the first antenna and transmits the first data based on the first antenna, the method further includes: The first chip determines the initial value of the antenna duty cycle based on the priority of the third data and the priority of the fourth data ; Or, the first chip uses the antenna duty cycle corresponding to the short-range communication state of the electronic device as the initial value of the antenna duty cycle; Wherein, the third data is the data processed by the first chip after the first chip is connected to the first antenna when the antenna duty cycle does not exist in the electronic device, and the fourth data is the data processed by the second chip before the first chip is connected to the first antenna.

14. A chip system, characterized in that, The chip system includes a first chip and a second chip, and both the first chip and the second chip are short-range communication chips.

15. The chip system according to claim 14, wherein The first chip and the second chip are connected.

16. The chip system according to claim 14 or 15, characterized in that, The chip system further includes an application processor AP, and the AP is respectively connected to the first chip and the second chip.

17. The chip system according to claim 16, wherein The chip system is applied to an electronic device, and the electronic device executes the method according to any one of claims 1 to 13.

18. An electronic device, characterized in that, The electronic device includes a display screen, a memory, a first chip, a second chip, and one or more processors; the display screen, the memory, the first chip, the second chip, and the processors are coupled; the processors include an application processor, the display screen is used for displaying an image generated by the processor, the memory is used for storing computer program code, the first chip and the second chip are short-range communication chips and are both used for transmitting data, and the computer program code includes computer instructions; when the processor executes the computer instructions, the electronic device executes the method according to any one of claims 1 to 13.

19. A computer-readable storage medium, characterized in that, Including computer instructions, when the computer instructions run on an electronic device, the electronic device executes the method according to any one of claims 1 to 13.

Citation Information

Patent Citations

  • Antenna ratio setting method and device, user equipment and storage medium

    CN108901077A

  • Time slice allocation method and device, and electronic equipment

    CN109152057A

  • Wireless communication device and method of electronic equipment, electronic equipment and storage medium

    CN112020079A

  • Multi-radio coexistence aware intelligent WiFi data aggregation

    CN113923718A

  • Data transmission method, electronic equipment and storage medium

    CN117135750A