Data transmission method and electronic device

By employing an adaptive strategy that adjusts the antenna duty cycle, the problem of antenna usage conflicts between multiple short-range communication chips was resolved, achieving efficient and smooth transmission of service data.

CN120281347BActive Publication Date: 2026-04-17HONOR DEVICE CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HONOR DEVICE CO LTD
Filing Date
2023-12-28
Publication Date
2026-04-17

AI Technical Summary

Technical Problem

In electronic devices, how can antennas be effectively used to transmit service data between multiple short-range communication chips to avoid service smoothness issues caused by time-division multiplexing?

Method used

The first chip adjusts the antenna duty cycle based on communication quality information to achieve adaptive antenna allocation, ensuring smooth data transmission of services across all chips.

Benefits of technology

While ensuring the service transmission rate of the first chip, the impact on the communication quality of the second chip is reduced, thereby improving the overall smoothness of service operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120281347B_ABST
    Figure CN120281347B_ABST
Patent Text Reader

Abstract

This application provides a data transmission method and an electronic device, relating to the field of communication technology. In the electronic device, after the first chip uses the first antenna, it determines whether the communication quality of the second chip in the electronic device has significantly decreased based on the QOE information before and after the first chip uses the first antenna. If the communication quality has significantly decreased, in order to improve the communication quality of the second chip, the first chip can reduce the antenna duty cycle to reduce the time the first chip uses the first antenna, thereby increasing the time the second chip can use the first antenna and increasing the transmission rate of the second chip. If the communication quality has only slightly decreased, it indicates that the service of the second chip is less affected by the second chip ceasing to use the first antenna. The first chip can then increase the antenna duty cycle to increase the time the first chip uses the first antenna, increasing the transmission rate of the first chip, achieving reasonable time-division multiplexing of the first antenna, and ensuring smooth service operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a data transmission method and electronic device. Background Technology

[0002] 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 service data corresponding to other electronic devices.

[0003] To improve the efficiency of electronic devices in handling different services, multiple short-range communication chips (such as two chips) can be incorporated into the device. This allows the device to utilize multiple chips to process different services, i.e., to transmit service data corresponding to different services. Due to space constraints in electronic devices, the short-range communication chips require time-division multiplexing antennas to transmit service data. Therefore, how to use antennas to transmit service data among multiple short-range communication chips becomes a pressing problem to be solved. Summary of the Invention

[0004] This application provides a data transmission method and electronic device for transmitting service data between multiple short-range communication chips using antennas.

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

[0006] In a first aspect, a data transmission method is provided, applied to an electronic device, which includes a first chip and a second chip. Both the first chip and the second chip are short-range communication chips, and the first chip and the second chip share a first antenna (or antenna a); wherein, sharing 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.

[0007] First, the first chip is connected to the first antenna, and the first chip can transmit first data based on 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.

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

[0009] Subsequently, based on the communication quality degradation value, the first chip adjusts the antenna duty cycle (or the latest antenna duty cycle, the current antenna duty cycle) to obtain the 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).

[0010] Then, based on the adjusted antenna duty cycle and the determined time it takes for the second chip to use the first antenna, the first chip can control the connection between the first antenna and the second chip. The second chip can then use the first antenna to transmit the second data it needs.

[0011] In this application, after the first chip enters the antenna preemption state, it can determine the communication quality degradation value of the second chip based on the communication quality information of the second chip before and after entering the antenna preemption state. That is, it determines the communication quality degradation of the second chip after it stops using the first antenna. Then, the first chip can determine how to adjust the antenna duty cycle based on this communication quality degradation—whether to increase or decrease the antenna duty cycle—achieving adaptive adjustment of the antenna duty cycle. Furthermore, this antenna duty cycle is adjusted according to the actual communication quality of the second chip, ensuring the rationality of the adjustment. This ensures that while maximizing the first chip's usage time of the first antenna (i.e., maintaining the transmission rate of the first chip's services), it also guarantees the communication quality of the second chip, reducing the impact of antenna reuse on the second chip's services. This, to a certain extent, ensures the smooth operation of both the first and second chips' services.

[0012] In one 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:

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

[0014] If 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. The switching of the first antenna has a significant 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. This ensures that the first chip can use the first antenna in a timely manner while maintaining the communication quality of the second chip.

[0015] If the communication quality degradation value is less than or equal to the first preset threshold, it indicates that the communication quality degradation 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 the first chip uses the first antenna and shorten the time 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.

[0016] In one possible implementation of the first aspect, the first chip can first determine to reduce the duty cycle, and then, based on the reduced duty cycle, reduce the antenna duty cycle to achieve the reduction adjustment of the antenna duty cycle.

[0017] The methods for determining the reduction of the duty cycle mentioned above may include:

[0018] In one possible design approach, the first chip can determine the reduced duty cycle based on the priority of the first data and the priority of the second data. Here, the priority of the data (or business data) indicates its importance; the higher the importance of the data, the greater its priority.

[0019] In one possible design approach, 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 represents the usage status of the short-range communication mode of the electronic device. The short-range communication state includes a short-range communication on / off state and / or a 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 short-range communication on, it indicates that the second data is of higher importance, and the second chip needs to use the first antenna to transmit data. To ensure the transmission rate of the second data, the reduction in the antenna duty cycle can be maximized, meaning the reduction in duty cycle can be maximized, allowing the second chip to use the first antenna for a longer period. When the priority of the first data is greater than the priority of the second data, and the short-range communication state is short-range communication off, it indicates that the second data is of lower importance, and the second chip is less likely to use the first antenna. Therefore, the reduction in the antenna duty cycle can be minimized, meaning the reduction in duty cycle can be minimized, and correspondingly, the first chip can use the first antenna for a longer period.

[0020] In another scenario, when the priority of the first data is higher than that of the second data, the first chip uses the first duty cycle (or duty cycle 1) as the reduced duty cycle. When the priority of the first data is less than or equal to that of the second data, the first chip uses the second duty cycle (or duty cycle 2) as the reduced duty cycle. The first duty cycle is less than the second duty cycle. Therefore, when the importance of the first data is higher than that of the second data, the reduction in antenna duty cycle can be smaller to ensure the transmission rate of the first data. When the importance of the first data is less than or equal to that of the second data, the reduction in antenna duty cycle can be larger to ensure the transmission rate of the second data.

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

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

[0023] In another possible design approach, the aforementioned reduction in duty cycle is preset.

[0024] The process of reducing the antenna duty cycle, as described above, can include:

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

[0026] In one possible implementation of the first aspect, the first chip can first determine to increase the duty cycle, and then, based on the increased duty cycle, increase the antenna duty cycle to achieve the adjustment of increasing the antenna duty cycle.

[0027] The methods for determining the above-mentioned increase in duty cycle may include:

[0028] In one possible design approach, the first chip can determine the increased duty cycle based on the priority of the first data and the priority of the second data.

[0029] In one possible design approach, 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 on / off state and / or a short-range communication connected 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 short-range communication off, it indicates that the second data is less important, and the second chip is less likely to use the first antenna. Therefore, the increase in the antenna duty cycle can be maximized, meaning the duty cycle can be maximized, and correspondingly, the first chip can use the first antenna for a longer period.

[0030] In another scenario, when the priority of the first data is higher than that of the second data, the first chip uses the third duty cycle to increase the duty cycle. When the priority of the first data is less than or equal to that of the second data, the first chip uses the fourth duty cycle to increase the duty cycle. The third duty cycle is greater than the fourth duty cycle. Therefore, when the importance of the first data is higher than that of the second data, the antenna duty cycle can be increased significantly to ensure the transmission rate of the first data.

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

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

[0033] In another possible design approach, the aforementioned increase in duty cycle is preset.

[0034] The above process of increasing or decreasing the duty cycle can include:

[0035] The first chip calculates the sum between the antenna duty cycle and the increased duty cycle, or the first chip calculates the product between the antenna duty cycle and the increased duty cycle.

[0036] The duty cycle of the aforementioned antenna is between 0 and 100%.

[0037] In one possible implementation of the first aspect, the aforementioned 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.

[0038] Bluetooth status includes Bluetooth on / off status and / or Bluetooth connection status. Bluetooth on / off status includes Bluetooth on and Bluetooth off status, and Bluetooth connection status includes Bluetooth connected status and Bluetooth disconnected status.

[0039] In one possible implementation of the first aspect, the process by which the first chip determines the aforementioned communication quality degradation value may include:

[0040] The first chip performs a weighted summation of the quality index values ​​in the first communication quality information to obtain the first communication quality. Similarly, the first chip performs a weighted summation of the quality index values ​​in the second communication quality information to obtain the second communication quality.

[0041] Next, the first chip calculates the difference between the second communication quality and the first communication quality to obtain the communication quality degradation value. Based on this, the first chip measures the communication quality degradation based on the quality index value of the second chip, thus accurately determining the degree of communication quality degradation.

[0042] Optionally, the first communication quality information includes the number of spatial streams, operating bandwidth, link rate, throughput, packet loss rate, retransmission rate, and the value of one or more quality indicators in the modulation and coding strategy.

[0043] In one possible implementation of the first aspect, while the second chip is in the data transmission state, the first chip can continue to determine the communication quality degradation value in order to adjust the antenna duty cycle using the communication quality degradation value.

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

[0045] In one possible implementation of the first aspect, the first chip can determine the time when the first chip uses the first antenna based on the antenna duty cycle, and connect the first antenna.

[0046] In one possible implementation of the first aspect, the process of determining the initial value (or initial antenna duty cycle) of the aforementioned antenna duty cycle may include:

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

[0048] The third data is the data processed by the first chip after the first chip and the first antenna are first connected when the electronic device does not have an initial antenna duty cycle. The fourth data is the data processed by the second chip before the first chip and the first antenna are first connected.

[0049] The process by which the first chip determines the initial antenna duty cycle based on the priority of the third and fourth data can be referenced to the process described above for determining the reduced antenna duty cycle based on the priority of the first and second data.

[0050] Optionally, the number of the first antennas mentioned above can be one or more.

[0051] Secondly, this application provides a chip system, which includes a first chip and a second chip, both of which are short-range communication chips.

[0052] In one possible implementation of the second side, the first chip and the second chip are connected.

[0053] In one possible implementation of the second aspect, the chip system further includes an access point (AP) connected to both the first chip and the second chip.

[0054] In one possible implementation of the second aspect, the chip system is applied to an electronic device that performs the method described above.

[0055] Thirdly, this application provides an electronic device, which 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 processor are coupled; the processor includes an application processor, the display screen is used to display images 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 includes computer instructions; when the processor executes the computer instructions, the electronic device performs the method described above.

[0056] Fourthly, this application provides a computer-readable storage medium including computer instructions that, when executed on an electronic device, cause the electronic device to perform the method described above.

[0057] Fifthly, this application provides a computer program product that, when run on an electronic device, causes the electronic device to perform the method described above.

[0058] It is understood that the beneficial effects 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 can be referred to the beneficial effects in the first aspect and any possible implementation thereof, which will not be repeated here. Attached Figure Description

[0059] Figure 1A A schematic diagram of a communication scenario provided in this application embodiment;

[0060] Figure 1B A communication scenario illustration provided for an embodiment of this application Figure 2 ;

[0061] Figure 1C A communication scenario illustration provided for an embodiment of this application Figure 3 ;

[0062] Figure 2A schematic diagram of a dual-chip structure provided in this application embodiment;

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

[0064] Figure 4 A structural block diagram of an electronic device provided in an embodiment of this application;

[0065] Figure 5 A schematic flowchart of a data transmission method provided in an embodiment of this application is shown below;

[0066] Figure 6A A schematic diagram of a dual-chip structure provided in this application embodiment. Figure 2 ;

[0067] Figure 6B A schematic diagram of a dual-chip structure provided in this application embodiment. Figure 3 ;

[0068] Figure 6C A schematic diagram of a dual-chip structure provided in this application embodiment. Figure 4 ;

[0069] Figure 6D A schematic diagram of a dual-chip structure provided in this application embodiment. Figure 5 ;

[0070] Figure 7A A schematic diagram of a dual-chip structure provided in this application embodiment is shown in Figure 6.

[0071] Figure 7B Seven is a schematic diagram of a dual-chip structure provided in an embodiment of this application;

[0072] Figure 7C A schematic diagram of a dual-chip structure provided in this application embodiment. Figure 8 ;

[0073] Figure 8 A flowchart illustrating a data transmission method provided in this application embodiment. Figure 2 ;

[0074] Figure 9A A schematic diagram of a business scenario provided in this application embodiment;

[0075] Figure 9B A business scenario illustration provided for an embodiment of this application. Figure 2 ;

[0076] Figure 9C A business scenario illustration provided for an embodiment of this application. Figure 3 ;

[0077] Figure 10A A schematic diagram of a switch provided in an embodiment of this application;

[0078] Figure 10B A schematic diagram of a switch provided in an embodiment of this application. Figure 2 . Detailed Implementation

[0079] To facilitate a clear description of the technical solutions in the embodiments of this application, the terms "exemplary" or "for example" are used in the embodiments of this application to indicate examples, illustrations, or explanations. Any embodiment or design scheme described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of terms such as "exemplary" or "for example" is intended to present related concepts in a specific manner. In the embodiments of this application, "at least one" refers to one or more, and "more" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single 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, and c can be single or multiple. In the embodiments of this application, "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined with "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this embodiment, unless otherwise stated, "multiple" means two or more.

[0080] To facilitate understanding of the embodiments of this application, some terms involved in the embodiments of this application will be explained below.

[0081] Short-range communication refers to a communication method that transmits data over a relatively short distance. When the distance between electronic devices is less than a certain range, they can communicate using short-range communication. Examples of short-range communication methods include Bluetooth, Near Field Communication (NFC), and Wi-Fi. In this application, short-range communication may also be referred to as proximity communication or short-range communication.

[0082] Wi-Fi connection methods include Wi-Fi station (STA) and Wi-Fi peer-to-peer (P2P) methods. Wi-Fi STA refers to electronic devices establishing Wi-Fi connections with other devices through a wireless access point (AP), i.e., conducting Wi-Fi communication. The electronic device acts as a station. Wi-Fi P2P refers to multiple devices communicating directly point-to-point using Wi-Fi technology, forming a P2P network (also called a P2P group). This P2P network includes a group owner (Go) and at least one group client (Gc). The group owner can be understood as equivalent to the wireless access point (or router), and the group client as equivalent to the station.

[0083] Antenna duty cycle corresponding to the short-range sub-chip: The proportion of time within a unit of time that the short-range sub-chip can use the antenna (such as antenna a in the embodiments of this application). For example, if the unit of time is 100 milliseconds (ms) and the antenna duty cycle is 70%, then within those 100 ms, the short-range sub-chip can use antenna a for 70 ms.

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

[0085] In some embodiments, the types of electronic devices are increasing, such as mobile phones, tablets, PCs, smartwatches, Bluetooth headsets, smart screens, and smart home appliances. To achieve interconnectivity between multiple electronic devices, a first electronic device can first discover devices via short-range communication. Then, the first electronic device transmits device authentication data (such as keys) to the discovered other devices (second electronic devices) via short-range communication to perform device matching 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, allowing the electronic devices to transmit business data through either the first or second short-range communication connection. In multi-screen collaboration scenarios or super notification scenarios, different types of electronic devices may establish short-range communication connections through different types of short-range communication chips. For example, taking a mobile phone as an example, in a multi-screen collaboration scenario, the mobile phone can use a short-range communication chip (here referred to as the short-range main chip) to connect with... Figure 1AThis allows tablets and personal computers (PCs) to establish Wi-Fi IP2P connections (or simply P2P connections). Additionally, mobile phones can also connect to other devices via short-range main chipsets. Figure 1A Bluetooth headsets, smartwatches, mice, and keyboards establish Bluetooth (BT) connections to transmit corresponding service data. Optionally, such as... Figure 1A As shown, the phone establishes Bluetooth Low Energy (BLE) connections with the mouse and keyboard respectively. The phone also establishes Bluetooth connections with the short-range main chip in Bluetooth headsets and smartwatches.

[0086] However, while running multi-screen collaboration services (or collaboration services) or super notification services, electronic devices may also be running other services simultaneously. These other services also require the use of short-range communication chips to transmit their corresponding data. In other words, not only do the multi-screen collaboration and super notification services require short-range communication chips, but other concurrent services also need their support. Therefore, to ensure smooth concurrent operation, an additional short-range communication chip can be added inside the electronic device. This means the electronic device has two short-range communication chips. One of these chips can be called the main short-range chip, and the other the secondary short-range chip. The main and secondary short-range chips can handle different services simultaneously. For example, the main short-range chip can handle third-party services such as smart home services and vehicle-to-everything (V2X) services. The secondary short-range chip can handle proprietary services such as multi-screen collaboration and super notification services.

[0087] It should be understood that the services processed by the short-range main chip listed above are merely examples. The short-range main chip can also handle other services, such as video calls, social networking, short video streaming, news updates, file downloads, audio and video playback, and gaming. Similarly, the services processed by the short-range secondary chip listed above are also merely examples; the short-range secondary chip can also handle other services.

[0088] For example, a mobile phone can communicate with other devices via a short-range secondary chip. Figure 1B This involves transmitting service data related to multi-screen collaboration services, such as device authentication data, screen projection data, file transfer, and notification messages, to tablets and PCs (e.g., short-range secondary chips within tablets and PCs). Additionally, such as... Figure 1BAs shown, a mobile phone can also communicate with smartwatches and Bluetooth headsets (such as the short-range sub-chips in smartwatches and Bluetooth headsets) via a short-range sub-chip to transmit service data. For example, a smartwatch can send service data such as heart rate, step count, and location detected by the smartwatch to the short-range sub-chip in the mobile phone via the short-range sub-chip. A mobile phone can send audio data and command data (such as play / pause commands) to the short-range sub-chip in the Bluetooth headset via the short-range sub-chip. Furthermore, the mobile phone can communicate with... Figure 1B The mouse and keyboard shown communicate to transmit service data, such as user operation data. Optionally, if 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.

[0089] Among them, the mobile phone can establish a communication connection with other devices through short-range communication protocol 1, based on the short-range sub-chip, to transmit service data. As mentioned above. Figure 1B As shown, the mobile phone can establish P2P connections with a tablet and a PC respectively via P2P communication protocol 1. The mobile phone can also establish Bluetooth connections with Bluetooth headsets, smartwatches, keyboards, and mice respectively via Bluetooth communication protocol 1. Optionally, as shown... Figure 1B As shown, the mobile phone can establish BLE connections with the mouse and keyboard respectively.

[0090] Optionally, the aforementioned short-range communication protocol 1 can be a custom short-range communication protocol (i.e., a proprietary protocol). For example, the aforementioned P2P communication protocol 1 can be a custom P2P communication protocol, and the aforementioned Bluetooth communication protocol 1 can be a custom Bluetooth communication protocol.

[0091] Furthermore, the mobile phone can communicate with the main chip via short-range communication. Figure 1C The system transmits business data corresponding to smart home services, such as control data like turning on / off and adjusting modes, to smart home appliances such as air conditioners, robot vacuums, refrigerators, and air purifiers. Additionally, ... Figure 1C As shown, the mobile phone can also transmit business data corresponding to the vehicle's infotainment system, such as control commands and files, to the vehicle via the short-range main chip. Of course, the mobile phone can also transmit business data with other devices via the short-range main chip, such as transmitting control commands and files to a printer.

[0092] In this context, the mobile phone can establish communication connections with other devices via Short Range Communication Protocol 2, based on the short-range main chip, to transmit service data. For example, the mobile phone can establish communication connections with refrigerators, air conditioners, air purifiers, and robot vacuum cleaners via a router, based on Short Range Communication Protocol 2, to transmit service data (as described above). Figure 1C (As shown). A mobile phone can establish a Bluetooth connection with a vehicle (such as the vehicle's infotainment system) via Bluetooth protocol 2.

[0093] Optionally, since the short-range main chip is mainly used to process third-party services, the short-range communication protocol 2 can be a standard short-range communication protocol, such as the Bluetooth communication protocol 2 mentioned above, which can be a standard Bluetooth communication protocol.

[0094] It should be noted that the above Figure 1B The scenario shown can also be a super notification scenario. For example, after receiving an incoming call, the mobile phone can send the call data to devices such as tablets, PCs, Bluetooth headsets, and smartwatches via a short-range secondary chip, so that the device can notify the user of the incoming call. Optionally, Figure 1B The dashed circles in the diagram indicate that devices (i.e., tablets, PCs, Bluetooth headsets, smartwatches, mobile phones, mice, and keyboards) can network and communicate with each other through short-range sub-chips.

[0095] In addition, the above Figure 1B The tablet computer can also establish short-range communication connections with other devices (such as smartwatches and PCs) via the short-range main chip to transmit service data corresponding to other services. Similarly, the PC can also establish short-range communication connections with other devices (such as Bluetooth headsets and tablet computers) via the short-range main chip to transmit service data corresponding to other services, enabling concurrent operation of services.

[0096] Alternatively, as described above Figure 1A or Figure 1B As shown, tablets, mobile phones, and PCs can be in the same network environment and use the Wi-Fi provided by the router. (As mentioned above...) Figure 1C As shown, 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.

[0097] The aforementioned short-range main chip may include at least one of the following short-range communication chips: NFC chip, Bluetooth chip, and Wi-Fi chip. Similarly, the short-range secondary chip may also include at least one of the following short-range communication chips: NFC chip, Bluetooth chip, and Wi-Fi chip. The types of short-range communication chips included in the short-range secondary chip and the short-range main chip may be the same or different. Furthermore, due to space limitations in smartwatches and Bluetooth headsets, they may not require an additional short-range communication chip and may only include one short-range communication chip.

[0098] In some embodiments, for space-constrained electronic devices such as mobile phones, the short-range main chip and short-range secondary chip in the electronic device can reuse a single antenna (or antenna a), thereby reducing the space occupied by the antenna. Time-division multiplexing of antenna a between the short-range main chip and the short-range secondary chip means that while the short-range main chip is using antenna a to transmit service data, the short-range secondary chip cannot use antenna a to transmit service data. Conversely, while the short-range secondary chip is using antenna a to transmit service data, the short-range main chip cannot use antenna a to transmit service data; in other words, the short-range main chip and the short-range secondary chip cannot continuously use antenna a to transmit service data, but rather transmit service data alternately. Figure 2 As shown, the short-range sub-chip can reuse antenna a by switching single-pole double-throw switch 1. The short-range sub-chip can reuse antenna a according to antenna coexistence strategies such as main chip priority strategy and sub-chip priority strategy.

[0099] The main chip priority strategy means that when the short-range secondary chip detects that the short-range main chip is not in a data transmission state, it indicates that the short-range main chip does not need to use antenna a to transmit service data. The short-range secondary chip can then switch its single-pole double-throw switch 1 to the short-range secondary chip side to preempt antenna a. However, the services processed by the short-range secondary chip may have high real-time requirements (here, or alternatively, throughput and transmission rate). The inability to use antenna a to transmit service data in a timely manner significantly impacts the smooth operation of the short-range secondary chip's services. Conversely, if the short-range secondary chip directly switches its single-pole double-throw switch 1 to forcibly preempt antenna a while the short-range main chip is in a data transmission state, it will affect the short-range main chip's services. For example, if the short-range main chip is processing a video call, the video call data may not be transmitted in time, potentially causing the video call to drop and affecting the user experience.

[0100] The secondary chip priority strategy refers to the short-range secondary chip directly switching the single-pole double-throw switch 1 to the short-range secondary chip side when it needs to transmit service data, thus preempting antenna a. However, this will significantly affect the smoothness of the service operation of the short-range main chip.

[0101] It is evident that both main chip priority strategies and secondary chip priority strategies significantly impact the smoothness of service operation on short-range main chips or short-range secondary chips. Therefore, to address this issue, this application provides an adaptive antenna duty cycle adjustment strategy. The electronic device includes a short-range main chip and a short-range secondary chip, with antenna 'a' shared between them. The short-range secondary chip in the electronic device is allocated a corresponding time slot ratio (or usage time, antenna duty cycle) for antenna 'a'. When the short-range secondary chip's time window is reached, it enters the usage time of antenna 'a', using it to transmit service data, while the short-range main chip stops using antenna 'a'. When the short-range main chip's time window 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 service data. By alternating the use of antenna 'a' by the short-range main and secondary chips, the services of both short-range main and secondary antennas can be processed promptly, avoiding prolonged interruptions in the services processed by either the short-range main chip or the short-range secondary chip, thus ensuring the smoothness of service operation on both short-range main and secondary chips to a certain extent. Furthermore, during the period when the short-range sub-chip uses antenna a, the short-range sub-chip can adaptively adjust the current antenna duty cycle according to the degree of degradation of the transmission quality of the short-range main chip. This ensures that the short-range sub-chip uses antenna a for as long as possible, that is, while ensuring the transmission rate of the short-range sub-chip's services, it reduces the impact on the services of the short-range main chip.

[0102] For example, the electronic devices in this application may specifically be mobile phones, tablets, laptops, personal computers (PCs), smart TVs (also known as smart screens, large screens, etc.), or wearable devices such as smartwatches and smart bracelets, personal digital assistants (PDAs), vehicle terminals, Internet of Things devices, etc., that have short-range communication chips.

[0103] Figure 3 A schematic diagram of the structure of the electronic device 100 is shown.

[0104] Electronic device 100 may include processor 110, external memory interface 120, internal memory 121, universal serial bus (USB) interface 130, charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and subscriber identification module (SIM) card interface 195, etc.

[0105] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0106] Processor 110 may include one or more processing units, such as an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processing unit (NPU). These different processing units may be independent devices or integrated into one or more processors.

[0107] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of instruction fetching and execution.

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

[0109] In some embodiments, the processor 110 may include one or more interfaces. 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, etc.

[0110] It is understood that the interface connection relationships between the modules illustrated in the embodiments of the present invention are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0111] 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 power electronic devices such as the electronic device 100.

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

[0113] 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 one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with tuning switches.

[0114] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.

[0115] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates 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 processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.

[0116] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLAN) (such as Wi-Fi), Bluetooth, Global Navigation Satellite System (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR). 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 antenna 2, performs frequency modulation and filtering of the electromagnetic wave signal, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0117] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other devices via wireless communication technology. The wireless communication technology 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 technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).

[0118] In some embodiments, the number of antennas 2 can be one or more. The wireless communication module 160 can include a short-range communication module (or short-range communication chip). The short-range communication chip can include at least one of NFC, Wi-Fi, and BitTorrent chips. There can be multiple short-range communication chips, which can include the same chip or different chips. For example, there can be two short-range communication chips, a main short-range chip and a secondary short-range chip. The main short-range chip includes NFC, Wi-Fi, and BitTorrent chips, and the secondary short-range chip includes NFC, Wi-Fi, and BitTorrent chips. The secondary short-range chip may include the same chip as the main short-range chip. Alternatively, the main short-range chip may include NFC, Wi-Fi, and BitTorrent chips, and the secondary short-range chip may include Wi-Fi and BitTorrent chips. The secondary short-range chip may include different chips from the main short-range chip.

[0119] Each short-range communication chip is connected to the aforementioned AP and is used to receive service data allocated by the AP, send the service data to external devices, or receive service data sent by external devices, thereby realizing the transmission of service data.

[0120] Optionally, the aforementioned short-range communication chips can reuse antennas. The short-range communication chips can be directly connected for communication, or if no connection is established between them, the short-range communication chips can communicate via an access point (AP).

[0121] Optionally, the aforementioned short-range main chip supports both single-input single-output (SISO) and multiple-input multiple-output (MIMO) modes. The aforementioned short-range secondary chip supports SISO mode.

[0122] For example, the aforementioned AP can also be called an AP processor or AP chip, etc.

[0123] In some embodiments, the short-range communication chip described above may include a radio frequency (RF) module for transmitting RF signals to achieve the transmission of service data. Additionally, the short-range communication chip may also include a baseband (as described below). Figure 4 (As shown).

[0124] The aforementioned short-range communication chip can be an H2.0 chip, as can the aforementioned short-range secondary chip.

[0125] In some embodiments, the aforementioned AP chip can be integrated onto a system-on-chip (SOC) of the electronic device. The short-range main chip and the short-range secondary chip may not be integrated onto the SOC; instead, they are two independent communication chips. Of course, this is merely an example; the short-range main chip and / or the short-range secondary chip can also be integrated onto the SOC. This application does not limit this, as long as the AP can connect to the short-range main chip and the short-range secondary chip respectively.

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

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

[0128] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.

[0129] The external storage interface 120 can be used to connect an external storage card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.

[0130] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of electronic device 100 (such as audio data, phonebook, etc.). Furthermore, internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.

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

[0132] The aforementioned sensor module 180 may include pressure sensors, gyroscope sensors, barometric pressure sensors, magnetic sensors, accelerometers, distance sensors, proximity sensors, fingerprint sensors, temperature sensors, touch sensors 180K, ambient light sensors, bone conduction sensors, etc.

[0133] Buttons 190 include a power button, volume buttons, etc. Motor 191 can generate vibration feedback. Indicator 192 can be an indicator light, used to indicate charging status, battery level changes, and also to indicate messages, missed calls, notifications, etc.

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

[0135] The software system of the aforementioned electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application embodiment uses a layered architecture system as an example to exemplify the software structure of the electronic device 100.

[0136] Figure 4 This is a structural block diagram of an electronic device 100 according to an embodiment of this application.

[0137] A layered architecture divides software into several layers, each with a clear role and function. 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.

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

[0139] like Figure 4 As shown, the application package may include applications such as camera, gallery, calling, multi-screen collaboration, navigation, WLAN, Bluetooth, music, video, SMS, and smart home.

[0140] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0141] like Figure 4 As shown, the application framework layer may include applications such as a short-range communication status recognition module, a business priority module, a quality of experience (QOE) information recognition module, and a scene recognition module.

[0142] The scene recognition module is used to identify the applications running on the electronic device 100, i.e., the services being run, or to identify the service scenario in which the electronic device 100 is located, such as file download scenario, audio and video playback scenario, video call scenario, smart home scenario, etc. The scene recognition module can send service information (such as application identifier, service scenario identifier, etc.) to the service priority module.

[0143] The business priority module is used to determine the priority of a business based on business information, and to mark the priority of a business.

[0144] The QOE information identification module, also known as the quality identification module, is used to identify the QOE information of the short-range main chip. This QOE information is used to determine the communication quality of the short-range main chip. Optionally, the QOE information identification module can send the QOE information to the service priority module, so that it can be sent to the short-range secondary chip.

[0145] The short-range communication status identification module is used to identify the short-range communication status of the electronic device 100, such as on, off, connected, disconnected, etc. Optionally, the short-range communication status may include Wi-Fi status and / or Bluetooth status.

[0146] The Android Runtime consists of core libraries and a virtual machine. The Android Runtime is responsible for the scheduling and management of the Android system.

[0147] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.

[0148] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0149] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.

[0150] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.

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

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

[0153] The hardware abstraction layer (HAL) is the interface layer located between the operating system kernel and the hardware circuitry. For example... Figure 4 As shown, the Hardware Abstraction Layer (HAL) can include a HAL channel. Data can be transmitted between the software layer (such as the application framework layer) and the short-range communication chip via the HAL channel. For example, the HAL channel can transmit service data, QOE information, priority, short-range communication status information, and other data.

[0154] Optionally, the HAL channel may include HAL channel 1 and HAL channel 2. Data transmission between the application framework layer (such as the QOE information identification module and the service priority module) and the short-range communication chip can be achieved through HAL channel 1. Data transmission 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 can be achieved through HAL channel 2.

[0155] 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 service and to send the service data to the corresponding short-range communication chip. For example, the transmission link control module can determine the short-range communication chip that processes the service based on service information. For instance, if a service requires the transmission of a large amount of data and has low real-time requirements, its priority is low, and the transmission link control module can allocate it to the main chip. Of course, other rules can also be used to determine the short-range communication chip that processes the service, such as a random allocation rule. This application does not limit the rules used to determine the short-range communication chip that processes the service.

[0156] Optionally, the aforementioned service priority module can send the service priority to the transmission link control module. After determining the target short-range communication chip for processing the service, the transmission link control module can send the service priority to the target short-range communication chip. Alternatively, the transmission link control module can also send the target short-range communication chip information 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 approach.

[0157] The kernel layer is the layer between hardware and software. The kernel layer contains at least short-range main chip drivers and short-range secondary chip drivers.

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

[0159] In some embodiments, the dual-chip coexistence strategy module in the short-range secondary chip can acquire one or more of the above-mentioned QOE information, short-range communication status information, and service priority, and determine 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 according to different antenna coexistence strategies, such as secondary chip priority strategy, main chip priority strategy, and antenna duty cycle adaptive adjustment strategy.

[0160] It should be understood that the above-mentioned short-range main chip and short-range sub-chip are only examples. The electronic device 100 may also include other numbers of short-range communication chips. Each short-range communication chip has a corresponding short-range communication chip driver. For example, it may include three short-range communication chips and three short-range communication chip drivers. The short-range communication chips and short-range communication chip drivers correspond one-to-one.

[0161] The following will use the aforementioned electronic device as device 1 as an example to introduce a data transmission method provided by an embodiment of this application. Device 1 can determine the antenna duty cycle corresponding to the short-range secondary chip based on the priority of the services processed by the short-range main and secondary chips, thereby achieving a reasonable setting of the antenna duty cycle. For example, when the priority of the service processed by the short-range main chip is high, the antenna duty cycle corresponding to the short-range secondary chip can be smaller, and the short-range main chip uses antenna a for a longer time. Conversely, when the priority of the service processed by the short-range secondary chip is high, the antenna duty cycle corresponding to the short-range secondary chip can be smaller, and the short-range secondary chip uses antenna a for a longer time. This ensures that the transmission rate of services with higher importance is guaranteed, while also guaranteeing the transmission rate of services with lower importance, thus ensuring that the services of both the short-range main and secondary chips can be processed in a timely manner. Furthermore, after the usage time of antenna a by the short-range secondary chip based on the antenna duty cycle, the short-range secondary chip can determine whether the communication quality of the short-range main chip is poor, and adjust the antenna duty cycle according to the determination result, achieving adaptive adjustment of the antenna duty cycle. This reduces the impact on the communication quality of the short-range main chip while ensuring the communication quality of the short-range secondary chip. Specifically, as shown... Figure 5 As shown, the data transmission method may include S201-S226.

[0162] S201, The AP chip in device 1 sends service data 1 to the short-range sub-chip.

[0163] S202, the short-range sub-chip connects the first and second terminals of the single-pole double-throw switch 1. The first terminal is connected to antenna a, and the second terminal is connected to the short-range sub-chip.

[0164] In this embodiment, device 1 runs service 1. Device 1 (e.g., the AP chip in device 1) determines that the short-range communication chip processing service 1 is a short-range secondary chip. The AP chip can then allocate service data 1 corresponding to service 1 to the short-range secondary chip. After receiving service data 1 allocated by the AP chip, the short-range secondary chip can determine whether an antenna duty cycle (or the latest antenna duty cycle) exists. If not, it indicates that the antenna duty cycle needs to be determined. The short-range secondary chip can first determine the antenna duty cycle so that it can use that antenna duty cycle to switch to antenna a. If it exists, the short-range secondary chip can adaptively adjust the antenna duty cycle (e.g., by executing S209 below).

[0165] In some embodiments, the short-range main chip is not in data transmission state, and the short-range secondary chip can directly enter antenna preemption state when service data 1 needs to be transmitted. Optionally, the short-range main chip and the short-range secondary chip can communicate with each other. While the short-range main chip is transmitting service data using antenna a, the short-range main chip can send data transmission status information to the short-range secondary chip.

[0166] The data transmission status information can 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 an external device via antenna a, meaning the short-range main chip is in transmit mode. The receive status information indicates that the short-range main chip is receiving service data sent by an external device via antenna a, meaning the short-range main chip is in receive mode.

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

[0168] Optionally, the short-range main chip sends data transmission status information to the short-range sub-chip every time it uses antenna a to transmit service data or receives service data.

[0169] The aforementioned short-range secondary chip and short-range primary chip can communicate directly or through an AP chip. The communication methods between the short-range primary and secondary chips will be described in detail below.

[0170] In one possible design, the aforementioned short-pitch main chip and short-pitch sub-chip are connected, enabling communication between them. In one case, the short-pitch main chip and short-pitch sub-chip can be connected via pins. Specifically, as shown... Figure 6A As shown, pin 1 of the short-range main chip and pin 2 of the short-range sub-chip are connected by a wire. When the short-range main chip transmits or receives service data using antenna a, the signal output from pin 1 of the short-range main chip changes from signal 1 to signal 2. This signal 2 is equivalent to data transmission status information, indicating that the short-range main chip is in data transmission state. Afterwards, the short-range main chip can send this signal 2 to the short-range sub-chip.

[0171] In this context, signal 1 and signal 2 are different electrical signals. For example, signal 1 can be a low-level signal, while signal 2 can be a high-level signal. Alternatively, signal 1 can be a high-level signal, while signal 2 can be a low-level signal.

[0172] Optionally, pins 1 and 2 can be input / output pins, such as GPIO pins. For example, a short-range main chip and a short-range secondary chip can be connected via GPIO pins to enable communication between them.

[0173] It should be noted that the number of pins 1 and 2 mentioned above is the same, but the number of pins 1 and 2 can be multiple. For example, as... Figure 6B As shown, there are two pins 1 and two pins 2. Pins 1 and 2 are connected one-to-one. One pin 1 (or pin 1A) is used to transmit transmission status information, and the other pin 1 (or pin 1B) is used to transmit reception status information. Specifically, when the short-range main chip uses antenna a to transmit service data, the signal output from pin 1A changes from signal 1 to signal 2, while the signal output from pin 1B remains signal 1, indicating that the short-range main chip is in the transmission state and shares this transmission status information with the short-range secondary chip. When the short-range main chip uses antenna a to receive service data, the signal output from pin 1A remains signal 1, while the signal output from pin 1B changes from signal 1 to signal 2, indicating that the short-range main chip is in the reception state and shares this reception status information with the short-range secondary chip. This allows the short-range secondary chip to know the specific data transmission status of the short-range main chip, achieving accurate sharing of data transmission status. Consequently, when the short-range secondary chip needs to use antenna a to transmit service data, it can determine whether antenna a is in the data transmission state based on whether the short-range main chip is in the data transmission state.

[0174] Alternatively, since the short-range secondary chip only needs to determine whether the short-range main chip is in data transmission state, the number of pins 1 and 1 can both be one (as described above). Figure 6A (As shown).

[0175] In another scenario, the aforementioned short-pitch main chip and short-pitch sub-chip can be connected via a bus (e.g., Figure 6C (As shown). The bus interface of the short-range main chip and the bus interface of the short-range sub-chip are connected via a bus. The short-range main chip can send data transmission information to the short-range sub-chip via the bus. For example, if the short-range main chip uses antenna a to transmit service data, it can send transmission status information to the short-range sub-chip. If the short-range main chip uses antenna a to receive service data, it can send reception status information to the short-range sub-chip, so that the short-range sub-chip knows the specific data transmission status of the short-range main chip. Alternatively, whether the short-range main chip is using antenna a to transmit or receive service data, it can send data transmission status information to the short-range sub-chip, so that the short-range sub-chip knows that the short-range main chip is in a data transmission state.

[0176] In another possible design, the aforementioned short-range main chip and short-range secondary chip can communicate via an AP chip. For example... Figure 6D As shown, the short-range main chip can send data transmission status information to the AP chip, and the AP chip sends this data transmission status information to the short-range secondary chip to achieve data transmission status sharing between the short-range main chip and the secondary chip. Optionally, in this design, the short-range main chip and the short-range secondary chip can be connected or not.

[0177] The above describes the process by which the short-range main chip can share data transmission status with the short-range secondary chip. The following section will further explain how the short-range secondary chip determines whether the short-range main chip is in a data transmission state, so that when the short-range main chip is not in a data transmission state, the short-range secondary chip can use antenna a to transmit service data.

[0178] Upon receiving service data 1 from the AP chip, the short-range secondary chip determines whether it has received data transmission status information from the short-range primary chip within a target time. This target time includes a preset time 1 before the current time and / or a preset time 2 after the current time. If yes, the short-range secondary chip can determine that the short-range primary chip is in data transmission status. If no, the short-range secondary chip determines that the short-range primary chip is not in data transmission status. For example, after receiving service data corresponding to a multi-screen collaboration service, the short-range secondary chip determines whether it has received data transmission status information from the short-range primary chip within 30 seconds before and after the multi-screen collaboration service. Here, the service data corresponding to the multi-screen collaboration service refers to service data 1, and the 30 seconds before and after refer to the target time.

[0179] In other embodiments, the short-range secondary chip can also directly switch to antenna a based on a secondary chip priority strategy after receiving service data. For example, after receiving the aforementioned service data 1, the short-range secondary chip, regardless of the data transmission status of the short-range main chip, can directly connect the first and second terminals of the single-pole double-throw switch 1 to enter the antenna preemption state.

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

[0181] Optionally, the aforementioned priority can be transmitted directly between short-distance master and slave chips. For example, as... Figure 7A As shown, the short-range master chip can send request 1, i.e., priority, to the short-range slave chip via the bus. For example, as... Figure 7B As shown, pin 3 and pin 4 of the short-pitch sub-chip are connected by a wire. The level signal output from pin 3 (such as signal 3 or signal 4) can represent priority. Signal 3 can represent 0, and signal 4 can represent 1; signals 3 and 4 are different. For example, signal 3 is low and signal 4 is high. Or, for another example, signal 3 is high and signal 4 is low.

[0182] In this configuration, the number of pins 3 and 4 is the same, and pins 3 and 4 are connected in a one-to-one correspondence. It's worth noting that the number of pins 3 (i.e., pin 4) corresponds to the number of priority levels; specifically, this correspondence can be that x is greater than or equal to... And closest A positive integer, where x represents the number of pins 3 and x represents the number of priorities.

[0183] For example, the number of priorities is 2 (priorities are 0 and 1 respectively). If it is 1, then x is 1, which means the number of pins 3 is 1. Pin 3 output signal 3 (such as a low level signal) indicates that the priority of the service data processed by the short-distance main chip is 0. Pin 3 output signal 4 (such as a high level signal) indicates that the priority of the service data processed by the short-distance main chip is 1.

[0184] For example, the number of priorities is 3 (priorities are 0, 1, and 2). Approximately equal to 1.7, therefore x is 2, meaning there are 2 pins in pin 3, one high-order pin and one low-order pin. Both low-order and high-order pins 3 output low-level signals, indicating that the priority of service data 2 is 0. Low-order pin 3 outputs a high-level signal, and high-order pin 3 outputs a low-level signal, indicating that the priority of the service data processed by the short-range main chip is 01, meaning the priority of this service data is 1. Low-order pin 3 outputs a low-level signal, and high-order pin 3 outputs a high-level signal, indicating that the priority of this service data is 10, meaning the priority of this service data is 3. It should be understood that since there are 2 pins in pin 3, there are also 2 pins in pin 4 (as mentioned above). Figure 7B (As shown).

[0185] For example, the number of priorities is 4 (priorities are 0, 1, 2, and 3). If x is approximately equal to 2, then x is 2, meaning the number of pins 3 is 2, specifically high-order pin 3 and low-order pin 3. When both low-order pin 3 and high-order pin 3 output a high-level signal, it indicates that the priority of the service data processed by the short-distance main chip is 11, which means the priority of this service data is 3.

[0186] Alternatively, the aforementioned priority can be transmitted between short-range master and slave chips via an AP chip. For example, such as... Figure 7C As shown, the aforementioned short-range secondary chip sends the aforementioned request 1 to the short-range main chip via the AP.

[0187] Similarly, the response message corresponding to the above request 1 (such as the above rejection response message or acceptance response message) can also be transmitted directly from the short-range main chip to the short-range secondary chip or through the AP chip.

[0188] It should be noted that after receiving the aforementioned rejection response message, the short-range secondary chip can periodically or in real time send the aforementioned request 1 to the short-range main chip so that it can enter the antenna preemption state after the short-range main chip transmits low-priority service data.

[0189] In addition, the aforementioned short-range main chip can also proactively send the priority of the service data it receives from the AP chip to the short-range secondary chip. The short-range secondary chip determines whether to enter antenna preemption mode by judging whether this priority is less than or equal to the priority of service data 1.

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

[0191] S204, Priority of short-range main chip sending service data 2 to short-range secondary chip.

[0192] The priority of business data indicates the importance of the business; higher importance translates to higher priority, and vice versa. Optionally, importance can be represented by throughput or latency. Higher throughput or lower latency indicates greater sensitivity to transmission rate; the higher the transmission rate required to transmit the business data, the higher the importance. Lower transmission rates significantly impact the smooth operation of high-throughput services, potentially leading to service interruptions. For example, video call services are highly sensitive to transmission speed; low data transmission rates can cause buffering or disconnections, negatively affecting the user experience.

[0193] In some embodiments, device 1 (such as the AP chip in device 1) can determine the priority of a service based on service information. For example, the service information can be an identifier of the service, i.e., the identifier of the application to which the service belongs. For instance, if the service is a video playback service, and the application to which the service belongs is a video application, then the priority corresponding to the identifier of the video application can be looked up and used as the service priority. Alternatively, the service information can be an identifier of a service scenario. For instance, if the service is a video call service, then the priority corresponding to the identifier of the video call service can be used as that priority. The video call service is the service scenario. Furthermore, the service priority can also be determined by the short-range communication chip that allocates the service.

[0194] If the aforementioned service data 2 is determined by the AP chip, the AP chip can not only send the priority of service data 2 to the short-range main chip, but also send it to the short-range secondary chip.

[0195] In this embodiment, after receiving service data 2 from the AP chip, the short-range main chip can proactively send the priority of service data 2 to the short-range secondary chip. Alternatively, the short-range secondary chip can send request 2 to the short-range main chip. In response to request 2, the short-range main chip sends the service priority of service data 2 to the short-range secondary chip. Alternatively, after determining the priority of service data 2, the AP chip can send it to both the short-range main chip and the short-range secondary chip.

[0196] Optionally, the AP chip can determine the short-range communication chip to process a service (such as service 1 and service 2 mentioned above) based on the type of service. For example, if the AP chip determines that service 1 belongs to a first preset service, then the AP chip will assign service 1 to the short-range secondary chip. If the AP chip determines that service 2 belongs to a second preset service, then the AP chip will assign it to the short-range main chip. The first and second preset services are preset; for example, the first preset service may be a private service (such as a multi-screen collaboration service), or it may be any service other than the second preset service, such as a third-party service. Of course, the AP chip can also determine the chip to process the service according to other rules, such as random allocation; this application does not limit this.

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

[0198] S205, the short-range sub-chip determines the latest antenna duty cycle based on the priority of service data 1 and the priority of service data 2.

[0199] In some embodiments, the short-range sub-chip can determine whether the priority of service data 1 is greater than the priority of service data 2. If it is greater, it indicates that service 1, processed by the short-range sub-chip, is of higher importance, is a high-traffic service, requires a higher transmission rate and lower latency. Therefore, service 1 can be prioritized, the short-range sub-chip can use antenna a for a longer time, and the short-range sub-chip can set the latest antenna duty cycle to duty cycle 1. If it is less than, it indicates that service 2, processed by the short-range main chip, is of higher importance, is a high-traffic service, requires a higher transmission rate and lower latency. Therefore, service 2 can be prioritized, the short-range main chip can use antenna a for a longer time, and the short-range sub-chip can set the latest antenna duty cycle to duty cycle 2. It is understood that since device 1 does not have an antenna duty cycle before determining 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 called the initial antenna duty cycle.

[0200] In this context, duty cycle 1 is greater than duty cycle 2. Optionally, duty cycle 1 can be a value greater than 50%, and duty cycle 2 can 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 sub-chip can set the latest antenna duty cycle to either duty cycle 1 or duty cycle 2. Alternatively, the short-range sub-chip can set the latest antenna duty cycle to 50%.

[0201] In other embodiments, the short-range sub-chip can 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.

[0202] In other embodiments, the short-range sub-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 state of the short-range communication mode, including a short-range communication switch state and / or a short-range communication connection state. The short-range communication switch state indicates whether the short-range communication switch of device 1 is on, including a short-range communication on state and a short-range communication off state. The short-range communication connection state indicates whether short-range communication is in use when the short-range communication switch state is on, including a short-range communication connected state and a short-range communication disconnected state.

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

[0204] When the short-range communication connection state is the short-range communication disconnect state, it indicates that device 1 has the possibility of transmitting service data using the short-range communication method. Therefore, the short-range sub-chip can use antenna a for a longer time, and thus the latest antenna duty cycle can be larger.

[0205] Optionally, the aforementioned short-range communication states may include Wi-Fi states and / or Bluetooth states. Wi-Fi states include Wi-Fi on / off states and / or Wi-Fi connected states. The Wi-Fi on / off state indicates whether the Wi-Fi switch of device 1 is turned on, and includes Wi-Fi on and Wi-Fi off states. When the Wi-Fi switch state is Wi-Fi off, it indicates that the short-range main chip is unlikely to use Wi-Fi communication to process services; therefore, the short-range secondary chip can use antenna a for a longer period, resulting in a larger antenna duty cycle.

[0206] The Wi-Fi connection status indicates whether device 1 is connected to the Wi-Fi network, including both connected and disconnected states. When the Wi-Fi connection status is Wi-Fi off, it indicates that the short-range main chip still has the potential to use antenna a to transmit service data based on Wi-Fi communication, such as service data corresponding to Wi-Fi scanning services. Therefore, the short-range secondary chip can use antenna a for a longer period of time, resulting in a larger antenna duty cycle.

[0207] Similarly, Bluetooth status includes Bluetooth on / off status and / or Bluetooth connection status. Bluetooth on / off status indicates whether device 1's Bluetooth is turned on, including Bluetooth on and Bluetooth off states. Bluetooth connection status indicates whether device 1 is connected to Bluetooth, including Bluetooth connected and Bluetooth disconnected states.

[0208] Optionally, the short-range secondary chip can look up 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 this as the latest antenna duty cycle. For example, the short-range communication state includes Wi-Fi state and Bluetooth state. When the priority of service data 1 is 1, the priority of service data 2 is 2, the Wi-Fi state is Wi-Fi off, and the Bluetooth state is Bluetooth off, it indicates that both Bluetooth and Wi-Fi of device 1 are off. The communication method used by the short-range main chip to process service data 2 may be cellular network communication (such as 5G, 4G, etc.). The probability of the short-range main chip using Wi-Fi communication or Bluetooth communication is relatively 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 Wi-Fi off, and the Bluetooth state being Bluetooth off can be 100%, and this latest antenna duty cycle can be 100%.

[0209] For example, when the priority of service data 1 is 2, the priority of service data 2 is 1, the Wi-Fi status is Wi-Fi off, and the Bluetooth status is Bluetooth disconnected, it indicates that the short-range main chip may use Bluetooth communication to transmit service data (such as service data corresponding to Bluetooth scanning services). Therefore, the antenna duty cycle corresponding to the priority of service data 1 being 2, the priority of service data 2 being 1, the Wi-Fi status being Wi-Fi off, and the Bluetooth status being Bluetooth disconnected can be 90%.

[0210] It should be noted that even when device 1 is in a Wi-Fi off state, the short-range secondary chip may still use Wi-Fi in the background to process business. For example, when conducting private business, the short-range secondary chip may use Wi-Fi for scanning, positioning, etc. It should be understood that the user is informed and authorized by the user before the short-range secondary chip uses Wi-Fi for business operations while Wi-Fi is off.

[0211] Additionally, the short-range secondary chip can also directly determine the latest antenna duty cycle using the short-range communication status. For example, the short-range secondary chip can directly look up the antenna duty cycle corresponding to the short-range communication status and use it as the latest antenna duty cycle. For instance, short-range communication status includes Wi-Fi status and Bluetooth status. The Wi-Fi status is Wi-Fi off, and the Bluetooth status is Bluetooth off; the antenna duty cycle corresponding to these Wi-Fi off and Bluetooth off states is 100%.

[0212] In some embodiments, the latest antenna duty cycle (i.e., the initial antenna duty cycle) described above is determined by the short-range secondary chip based on the operating status of 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 status). Of course, the initial antenna duty cycle can also be a fixed value, which is preset and does not require the short-range secondary chip to determine based on the operating status, thus enabling rapid acquisition of the initial antenna duty cycle. Optionally, when the initial antenna duty cycle is preset, the situation where device 1 does not have an initial antenna duty cycle generally does not occur. Therefore, after receiving the service data 1 allocated by the AP chip, the short-range secondary chip can directly switch antenna a based on the initial antenna duty cycle.

[0213] S206, the short-range sub-chip, based on antenna a, transmits service data 1 with device 2.

[0214] The transmission of the aforementioned business data 1 and the determination of the latest duty cycle can be executed sequentially or concurrently; this application does not impose any restrictions on this.

[0215] S207, the short-range main chip transmits service data 2 with device 3 based on antenna b. Antenna b is a dedicated antenna for the short-range main chip.

[0216] In this embodiment, while the short-range secondary chip is using antenna a, the short-range main chip can continue to transmit service data using antenna b, ensuring that the services processed by the short-range main 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 main chip, thereby ensuring the user experience. For example, the short-range main chip can switch from MIMO mode to SISO mode to transmit service data 2 using antenna b.

[0217] Optionally, the aforementioned short-range main chip can be connected to antenna b via a core pin (such as an ANT pin) to output radio frequency signals and transmit service data. Alternatively, the short-range main chip can be connected to antenna b via front-end modules (FEMs). As described above... Figure 2 As shown, the short-range main chip is connected to antenna b via FEM0. The short-range main chip can also output control signals to FEM0 via the Fem_Ctrl0 pin to control FEM0.

[0218] S208. Based on the latest antenna duty cycle, after determining the usage time of antenna a by the short-range main chip, the short-range sub-chip connects the first and third terminals of the single-pole double-throw switch 1. The third terminal is connected to the short-range main chip.

[0219] S209, the short-range main chip transmits service data 2 with device 3 based on antenna a and antenna b.

[0220] For example, the latest antenna duty cycle is 20%. After the short-range sub-chip uses antenna a for 20 milliseconds, the short-range main chip's time window arrives, which is also the time the short-range main chip has been using antenna a. The short-range sub-chip then switches antenna a to the short-range main chip, allowing the short-range main chip to use antennas a and b to transmit service data 2. The short-range main chip uses antenna a for 80 milliseconds.

[0221] It should be noted that after the short-range main chip can use antenna a, it can switch from SISO mode to MIMO mode, simultaneously using antennas a and b to transmit service data 2, thereby improving the transmission rate of service data 2. Furthermore, while the short-range main chip is using antenna a, it can also choose not to use antenna b, and instead use only antenna a to transmit service data.

[0222] In some embodiments, the aforementioned service data 2 may be the highest priority service among the services processed by the short-range main chip, or it may not be; this application does not limit it.

[0223] In some embodiments, the aforementioned short-pitch sub-chip can be connected via GPIO pins (such as...). Figure 2 The Switch_sel pin shown is connected to the first end of the single-pole double-throw switch 1 mentioned above, so as to output a control signal through the GPIO pin and trigger the switching of the single-pole double-throw switch 1.

[0224] In some embodiments, the aforementioned short-range secondary chip can be connected to the second terminal of the aforementioned single-pole double-throw switch 1 via the ANT pin to output an radio frequency signal and transmit service data. Alternatively, the aforementioned short-range main chip can be connected to the third terminal of the aforementioned single-pole double-throw switch 1 via a core (e.g., ANT) pin to output an radio frequency signal and transmit service data.

[0225] It should be noted that the above example of switching antenna a using a single-pole double-throw switch 1 is only one example. Other types of switches (such as other single-pole multi-throw switches or single-pole single-throw switches) can also be used to switch antenna a. In other words, the short-range sub-chip can be connected to antenna a, or the short-range main chip can be connected to antenna a, through a switch. The type of switch is not limited, as long as it can achieve the switching of antenna a.

[0226] The above describes the process by which the short-range sub-chip switches to use antenna a based on the initial antenna duty cycle. The following section will describe the process by which the short-range sub-chip adaptively adjusts the antenna duty cycle based on the QOE information of the short-range main chip.

[0227] S210: The short-range sub-chip acquires the QOE information of the short-range main chip.

[0228] For example, the short-range secondary chip can periodically or in real-time acquire the QOE information of the short-range main chip. The QOE information can be used to measure the communication quality (i.e., transmission quality) of the short-range main chip. The QOE information may include the value of one or more quality metrics among Spatial Streams, operating bandwidth, link rate, throughput, packet loss rate, retransmission rate, and modulation and coding scheme (MCS).

[0229] Throughput includes transmit throughput and / or receive throughput. Transmit throughput represents the number of data packets successfully transmitted per unit time. Receive throughput represents the number of data packets successfully received per unit time.

[0230] Operating bandwidth refers to the range of signal frequencies available within the operating frequency band.

[0231] The MSC specifies an upper limit for transmission rate (or link rate). Generally, MCSs can include MCS0-MCS11 (i.e., the MSC value is 0-11). Different MCSs specify different upper limits for transmission rate; as the MCS value increases, the upper limit for transmission rate gradually increases. For example, MCS0 specifies the lowest transmission rate, while MSC11 specifies the highest.

[0232] Spatial stream count refers to the number of independent data streams used simultaneously when transmitting and receiving data in wireless communication. For example, in SISO mode, the spatial stream count of a short-range main chip is 1.

[0233] Optionally, since the short-range main chip can communicate with external devices simultaneously using one or more short-range communication methods, the QOE information of the aforementioned short-range main chip can be determined during the transmission of service data based on one or more short-range communication methods. Furthermore, when the short-range main chip transmits service data based on different short-range communication methods, the electronic device can collect the QOE information corresponding to each short-range communication method. For example, device 1 is connected to a Bluetooth headset, and while using the social application on device 1, the user also listens to music played by the music application on device 1 through the Bluetooth headset. Accordingly, the short-range main chip in device 1 transmits the service data corresponding to the social application via Wi-Fi communication and the service data corresponding to the music application via Bluetooth communication. The QOE information of the aforementioned short-range main chip can include the QOE information corresponding to the Bluetooth communication method and the QOE information corresponding to the Wi-Fi communication method.

[0234] It should be noted that the QOE information for Bluetooth communication may include one or more of the following: operating bandwidth, link rate, throughput, packet loss rate, and retransmission rate, but does not include MSC and the number of spatial streams. Furthermore, since Bluetooth and Wi-Fi communication share the same frequency band and use the same antennas, the statistical QOE information can be determined based on the transmission of service data via Bluetooth and Wi-Fi communication. However, for short-range communication methods such as NFC, due to the different frequency bands and antennas used, it is unnecessary to utilize statistical data related to NFC communication.

[0235] S211. Based on the latest antenna duty cycle, after determining the usage time of antenna a by the short-range sub-chip, the short-range sub-chip will connect the first and second terminals of the single-pole double-throw switch 1.

[0236] S212. The short-range sub-chip determines whether the QOE degradation of the short-range main chip is greater than the preset degradation threshold based on QOE information 1 and QOE information 2.

[0237] Wherein, QOE information 1 represents the QOE information of the short-range main chip acquired before the short-range sub-chip enters the antenna preemption state, that is, the QOE information collected during the short-range main chip's use of antenna a. QOE information 2 represents the QOE information of the short-range main chip acquired after the short-range sub-chip enters the antenna preemption state.

[0238] Continuing with the example above, after the short-range sub-chip uses antenna a for 20 milliseconds, it switches antenna a to the short-range main chip side. Then, the short-range main chip can use antenna a for 80 milliseconds. After 80 milliseconds, the short-range sub-chip switches antenna a back to the short-range sub-chip side. The QOE information 1 mentioned above can be collected within this 80 milliseconds. QOE information 2 can be collected after antenna a is switched back to the short-range sub-chip side.

[0239] Optionally, the aforementioned QOE information 1 can be the QOE information whose acquisition time is before the acquisition time corresponding to QOE information 2 and is closest to the acquisition time corresponding to QOE information 2.

[0240] In this embodiment of the application, after the short-range sub-chip enters the antenna preemption state, it can determine whether the QOE degradation of the short-range main chip is greater than a preset degradation threshold, that is, whether the transmission quality of the short-range main chip has been reduced too much.

[0241] If the QOE degradation level is greater than the preset degradation threshold, it indicates that the transmission quality of the short-range main chip is significantly reduced due to the lack of antenna a. In order to avoid a significant reduction in the smoothness of the short-range main chip's service operation, the short-range sub-chip can reduce the antenna duty cycle of the short-range sub-chip to extend the usage time of antenna a of the short-range main chip. Then the short-range sub-chip can execute S213.

[0242] If the QOE degradation level is less than or equal to the preset degradation threshold, it indicates that the transmission quality of the short-range main chip is reduced less, the smoothness of the service operation of the short-range main chip is reduced less, and the latest antenna duty cycle has little impact on the service operation of the short-range main chip. The short-range sub-chip can increase the antenna duty cycle of the short-range sub-chip and reduce the usage time of antenna a of the short-range main chip, so the short-range sub-chip can execute S220.

[0243] In some embodiments, the short-range secondary chip can calculate the QOE degradation level using a weighted average based on QOE information 1 and QOE information 2. This QOE degradation level indicates the degree of reduction in transmission quality of the short-range main chip.

[0244] For example, the short-range secondary chip can perform a weighted summation of the quality index values ​​in the QOE information to obtain the transmission quality 1 corresponding to QOE information 1. Specifically, for each quality index, the short-range secondary chip calculates the product of the value of that quality index in QOE information 1 and the weight corresponding to that quality index, obtaining the weighted value 1 of that quality index. Then, the short-range secondary chip can calculate the sum of the weighted values ​​1 of each quality index to obtain the transmission quality 1 corresponding to QOE information 1.

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

[0246] Optionally, the short-range sub-chip can standardize QOE information 1 and QOE information 2 to unify the dimensions of different quality indicators and facilitate calculation. Then, the short-range sub-chip can use a weighted average to calculate the degree of QOE degradation based on the standardized QOE information 1 and standardized QOE information 2.

[0247] In some embodiments, the aforementioned QOE information may include QOE information corresponding to at least one short-range communication method. Accordingly, for each short-range communication method, the short-range sub-chip can perform a weighted summation of the quality index values ​​in the QOE information 1 corresponding to that short-range communication method to obtain the transmission quality 1 corresponding to the QOE information 1 for that short-range communication method. Then, the short-range sub-chip can perform a weighted summation of the transmission quality 1 corresponding to the QOE information 1 for each short-range communication method to obtain the transmission quality 1 corresponding to the QOE information 1.

[0248] Similarly, the short-range sub-chip can perform a weighted summation of the transmission quality 2 corresponding to the QOE information 2 for each short-range communication method to obtain the transmission quality 2 corresponding to the QOE information 2.

[0249] For example, the aforementioned QOE information 1 includes QOE information 1 corresponding to Bluetooth communication and QOE information 1 corresponding to Wi-Fi communication. For Bluetooth communication, the short-range secondary chip can perform a weighted summation of the quality index values ​​in the QOE information 1 corresponding to Bluetooth communication to obtain the transmission quality 1 corresponding to the QOE information 1 for Bluetooth communication. Similarly, for Wi-Fi communication, the short-range secondary chip can perform a weighted summation of the quality index values ​​in the QOE information 1 corresponding to Wi-Fi communication to obtain the transmission quality 1 corresponding to the QOE information 1 for Wi-Fi communication.

[0250] Next, the short-range sub-chip can calculate the product of the weight corresponding to the Bluetooth communication mode and the transmission quality 1 corresponding to the QOE information 1 of 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 of the Wi-Fi communication mode. Then, the short-range sub-chip can calculate the sum of these two products to obtain the transmission quality 1 corresponding to the QOE information 1.

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

[0252] Determining whether the short-range main chip is in data transmission state can refer to the process described above for determining whether it is in data transmission state based on data transmission status information. Alternatively, it can be done when the antenna preemption state is entered, with the Wi-Fi status changing from Wi-Fi on to Wi-Fi off, and the Bluetooth status changing from Bluetooth on to Bluetooth off. When the short-range main chip is not in data transmission state, it means that QOE information 1 was collected when the short-range main chip was in data transmission state, and QOE information 2 was collected when the short-range main chip was not in data transmission state. In this case, the degree of QOE degradation may be greater, 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; instead, the latest duty cycle can be directly increased.

[0253] Optionally, when the short-range sub-chip enters the antenna preemption state, the Wi-Fi state changes from Wi-Fi on to Wi-Fi off, while the Bluetooth state remains Bluetooth on. In this case, the short-range sub-chip can directly increase the latest antenna duty cycle. Alternatively, since the short-range main chip is still using antenna a for Bluetooth communication, the short-range sub-chip can still calculate the QOE degradation level to adjust the latest antenna duty cycle.

[0254] Similarly, when the short-range sub-chip enters the antenna preemption state, the Wi-Fi state remains Wi-Fi enabled, and the Bluetooth state changes from Bluetooth enabled to Bluetooth disabled. At this time, the short-range sub-chip can directly increase the duty cycle of the latest antenna, or since the short-range main chip is still using antenna a for Wi-Fi communication, the short-range sub-chip can still calculate the QOE degradation level to adjust the duty cycle of the latest antenna.

[0255] S213, the short-range sub-chip determines to reduce the duty cycle based on the priority of service data 1 and the priority of service data 2.

[0256] For example, the process of determining the reduced duty cycle for the short-range sub-chip can be referenced from the process of determining the latest antenna duty cycle described above. The following is a brief introduction to the implementation method of determining the reduced duty cycle.

[0257] In one implementation, if the priority of service data 1 is higher than that of service data 2, it indicates that the service processed by the short-range sub-chip is of higher importance and has higher requirements for transmission rate. Therefore, the reduction of the latest antenna duty cycle can be smaller to avoid a significant impact on the transmission rate of the short-range sub-chip due to a large reduction in the antenna duty cycle. Thus, the short-range sub-chip can set the reduction of duty cycle to 1.

[0258] If the priority of service data 1 is less than or equal to the priority of service data 2, it indicates that the service processed by the short-range sub-chip is of lower importance and the transmission rate of the short-range main chip needs to be guaranteed. Therefore, the reduction of the latest antenna duty cycle can be greater, and the short-range sub-chip can set the reduction duty cycle to reduction duty cycle 2.

[0259] Among them, the reduction of duty cycle 1 is less than the reduction of duty cycle 2.

[0260] In another implementation, the short-range sub-chip can directly look up the reduced duty cycle corresponding to the priority of service data 1 and the priority of service data 2.

[0261] In some other implementations, the short-range sub-chip can look up the reduced duty cycle corresponding to the priority of service data 1, the priority of service data 2, and the short-range communication state.

[0262] In addition, the short-range secondary chip can also directly determine the reduced duty cycle using the short-range communication status. The short-range secondary chip can find the reduced duty cycle corresponding to the short-range communication status.

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

[0264] In some embodiments, the aforementioned service data 1 is the service data currently transmitted by the short-range secondary chip, and service data 2 is the service data currently transmitted by the short-range main chip. Of course, the service data currently transmitted by the short-range secondary chip may not be service data 1, but other service data. Similarly, the service data currently transmitted by the short-range main chip may not be service data 2, but other service data. In other words, the above-described S213 can be replaced by a description of the short-range secondary chip determining a reduced duty cycle based on the priority of service data 3 transmitted by the short-range secondary chip and the priority of service data 4 transmitted by the short-range main chip. Service data 3 may be the same as or different from service data 1. Service data 4 may be the same as or different from service data 2.

[0265] S214. The short-range sub-chip calculates the ratio of the latest antenna duty cycle to the reduced duty cycle, and obtains the adjusted latest antenna duty cycle.

[0266] For example, the short-range secondary chip calculates the adjusted latest antenna duty cycle based on A / B. Here, A represents the latest antenna duty cycle, and B is the reduction of the duty cycle, which is greater than or equal to 1%, achieving dynamic adjustment of the latest antenna duty cycle. Furthermore, because this adaptive adjustment is based on the actual operating conditions of the short-range secondary chip, the accuracy of the adjustment is ensured. This improves the usage time of antenna 'a' by the short-range main chip, thus enhancing the communication quality of the short-range main chip, while minimizing the impact on the services processed by the short-range secondary chip, thereby ensuring that the overall impact on both the short-range main and secondary chips is minimal.

[0267] In some embodiments, the above-described S214 is only one possible implementation of adjusting the latest antenna duty cycle based on reducing the duty cycle. The short-range sub-chip can also adjust the latest antenna duty cycle based on other methods, such as calculating the difference between the latest antenna duty cycle and the reduced duty cycle to obtain the adjusted latest antenna duty cycle.

[0268] S215, the short-range sub-chip, based on antenna a, transmits service data 1 with device 2.

[0269] S216, the short-range main chip, based on antenna b, transmits service data 2 with device 3.

[0270] In this embodiment, during the antenna preemption state of the short-range sub-chip, the short-range sub-chip can use antenna a to transmit service data 1 with device 2 based on SISO mode. Furthermore, the short-range main chip cannot use antenna a, but can use antenna b to transmit service data 2 with device 2 based on SISO mode, such as receiving or sending service data 2.

[0271] S217. Based on the adjusted latest antenna duty cycle, after determining the usage time of antenna a by the short-range main chip, the short-range sub-chip will connect the first and third terminals of the single-pole double-throw switch 1.

[0272] S218, the short-range main chip, based on antenna a and antenna b, transmits service data 2 with device 3.

[0273] S219, the short-range secondary chip returns to S210.

[0274] In this embodiment, after adjusting the latest antenna duty cycle, the short-range secondary 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 not, the short-range secondary chip can continue to use antenna a. If it has arrived, the short-range secondary chip can switch antenna a to the short-range main chip, allowing the short-range main chip to continue using antenna a to transmit service data. This adjusted latest antenna duty cycle is used as the latest antenna duty cycle. The short-range secondary chip can continue to acquire QOE information. Subsequently, when re-entering the antenna preemption state based on this latest antenna duty cycle, the short-range secondary chip continues to adjust the latest antenna duty cycle to achieve timely adjustment of the antenna duty cycle and ensure its rationality.

[0275] Sections S213-S219 above described the process by which the short-range sub-chip reduces the duty cycle of the latest antenna when the QOE degradation exceeds a preset degradation threshold. However, there is also the possibility that the QOE degradation is less than or equal to the preset degradation threshold. In this case, the short-range sub-chip needs to increase the duty cycle of the latest antenna. The process of increasing the duty cycle of the latest antenna will be described below.

[0276] S220 and the short-range sub-chip determine the increase in duty cycle based on the priority of service data 1 and the priority of service priority 2.

[0277] The process of determining the increase of the duty cycle can be referred to the process of determining the decrease of the duty cycle described above, and will not be repeated here.

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

[0279] The short-range secondary chip calculates the adjusted latest antenna duty cycle based on A+C. Here, C represents the increase in the duty cycle, enabling dynamic adjustment of the latest antenna duty cycle. Furthermore, because this adjustment is adaptively performed based on the actual operating conditions of the short-range secondary chip, its accuracy is ensured. This improves the utilization time of antenna 'a' by the short-range secondary chip, thereby enhancing its communication quality, while minimizing the impact on the services processed by the short-range primary chip. This ensures that the overall impact on both the short-range primary and secondary chips is minimal.

[0280] In some embodiments, the above-described S221 is only one possible implementation of adjusting the latest antenna duty cycle based on reducing the duty cycle. The short-range sub-chip can also adjust the latest antenna duty cycle in other ways, such as the short-range sub-chip can calculate the product of the latest antenna duty cycle and the increased duty cycle to obtain the adjusted latest antenna duty cycle.

[0281] S222, the short-range sub-chip, based on antenna a, transmits service data 1 with device 2.

[0282] S223, the short-range main chip, based on antenna b, transmits service data 2 with device 3.

[0283] S224. Based on the adjusted latest antenna duty cycle, after determining the usage time of antenna a by the short-range main chip, the short-range sub-chip will connect the first and third terminals of the single-pole double-throw switch 1.

[0284] S225, the short-range main chip, based on antenna a and antenna b, transmits service data 2 with device 3.

[0285] S226, the short-range sub-chip returns to S210.

[0286] In some embodiments, short-range secondary chips in different devices can be used to process private services, enabling short-range secondary chips between different devices to transmit service data using a custom short-range communication protocol. For example, the short-range secondary chip in device 1 sends private service data (or private data) to the short-range secondary chip in device 2, and device 2 can also send private service data to the short-range secondary chip in device 1, thereby improving short-range communication efficiency and thus improving service data transmission efficiency. For example, the private service data is used to trigger device discovery, establish short-range communication connections, and transmit service data (or data) between devices. If the private service is a collaborative service, the short-range communication connection corresponding to the collaborative service includes a Wi-Fi connection. The steps corresponding to the conventional Wi-Fi communication protocol (or 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 this Wi-Fi protocol may include some of the steps in the conventional Wi-Fi communication protocol. That is to say, 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 service data transmission.

[0287] For example, devices discover each other and transmit password information via a custom Bluetooth communication protocol, completing the definition of Go and Gc roles. Then, devices establish a P2P connection based on a custom P2P communication protocol. The steps corresponding to this P2P communication protocol can include some steps of the conventional P2P communication protocol; that is, 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 P2P connection establishment. It should be understood that the custom Bluetooth communication protocol also belongs to the category of custom short-range communication protocols.

[0288] For example, devices can use custom short-range communication protocols to transmit business data, simplifying the data transmission process and improving its efficiency. Optionally, after establishing a P2P connection, devices can use a custom network communication protocol (such as a custom TCP / IP protocol) based on a short-range secondary chip to transmit business data. For instance, the conventional TCP / IP protocol corresponds to four layers (application layer, transport layer, internet layer, and network access layer), while the custom TCP / IP protocol corresponds to fewer layers, thus simplifying the business data transmission process.

[0289] Optionally, transmitting service data (such as the aforementioned private service data) between devices via the same short-range secondary chip can avoid transmission failures due to differences in the model and specifications of the short-range communication chips between devices, thereby avoiding compatibility issues.

[0290] In some embodiments, the short-pitch sub-chip may not control the switching of the single-pitch double-throw switch 1; instead, the short-pitch main chip may control the single-pitch double-throw switch 1. Correspondingly, the first terminal of the single-pitch double-throw switch 1 may be connected to the short-pitch main chip, but not to the short-pitch sub-chip. Furthermore, the operation performed by the short-pitch main chip can also be described as being performed by the short-pitch sub-chip. In other words, the short-pitch sub-chip performing the above operation can be performed by the short-pitch main chip; that is, the first chip can be the short-pitch sub-chip, and the second chip can be the short-pitch main chip.

[0291] In some embodiments, after the short-range sub-chip enters the antenna preemption state, the firmware module on the short-range sub-chip (such as a dual-chip coexistence strategy) can determine whether the transmission quality of the short-range main chip has deteriorated. If the deterioration is significant, the short-range sub-chip can increase the antenna duty cycle. If the deterioration is minor, it can decrease the antenna duty cycle, achieving adaptive adjustment of the antenna duty cycle. The following will combine the above... Figure 4 The structure shown, taking the aforementioned business 1 as a collaborative business as an example, details the adaptive adjustment process. For example... Figure 8 As shown, the process is as follows:

[0292] S1, the QOE information recognition module calls the main chip driver every preset time interval of 3 to obtain the QOE information of the short-range main chip.

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

[0294] S3. The service priority identification module calls the secondary chip driver to send QOE information to the dual-chip strategy module on the short-range secondary chip.

[0295] Optionally, the QOE information recognition module can also directly call the secondary chip driver to send the QOE information to the short-range secondary chip.

[0296] S4. Every preset time interval 4, the short-range communication status identification module calls the secondary chip driver to send the short-range communication status of device 1 to the dual-chip coexistence strategy module.

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

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

[0299] For example, the information for the business may include the application's identifier. For instance, when a user clicks on... Figure 9A The icon 10 of the first game application shown above, in response to a click on icon 10, device 1 launches the first game application (as shown). Figure 9B and Figure 9C (The startup content). Accordingly, the information for the launched service 5 includes the identifier of the first game application. Alternatively, the service information may include the identifier of the service scenario, such as a game scenario (scope scenario, airplane scenario, shooting scenario, combat scenario, game lobby scenario, etc.), video call scenario, file download scenario, etc.

[0300] S6. The scene recognition module sends the information for service 5 to the service priority module.

[0301] S7. The business priority module determines the priority corresponding to the information of business 5, and obtains the priority of business 5.

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

[0303] In some embodiments, the target short-range communication chip for processing service 5 can be determined by the service priority module or by other modules, such as the transmission link control module. The service priority can be determined by the transmission link control module, which calls the main chip driver to send the priority of service 5 to the target short-range communication chip.

[0304] Optionally, the transmission link control module can also send service data 5 to the target short-range communication chip, which can be a short-range main chip or a short-range secondary chip.

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

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

[0307] For example, assuming the current time is when the short-range main chip is using antenna a, then the short-range main chip can use antenna a and antenna b to transmit service data 5 corresponding to service 5 to device 4. This service 5 represents the service processed by the short-range main chip.

[0308] During the short-range main chip's use of antenna a, the first and third terminals of the single-pole double-throw switch 1 are connected (e.g., Figure 10A As shown in the figure, this allows the short-range main chip to be connected to antenna a.

[0309] S11. Based on the latest antenna duty cycle, after determining the usage time of antenna a from the short-range sub-chip, the data transmission arbitration module on the short-range sub-chip will connect the first and second terminals of the single-pole double-throw switch 1.

[0310] During the use of antenna a in the short-range sub-chip, the first and third terminals of the single-pole double-throw switch 1 are connected (e.g., Figure 10B As shown in the figure, this connects the short-range sub-chip to antenna a.

[0311] S12, the short-range sub-chip uses antenna a to transmit service data 6 corresponding to service 6 to device 5.

[0312] For example, the short-range sub-chip in device 1 can use antenna a to transmit service data 6 with the short-range sub-chip in device 5.

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

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

[0315] S14. The dual-chip coexistence strategy module determines whether the QOE degradation level is greater than the preset degradation threshold.

[0316] If the QOE degradation level is greater than the preset degradation threshold, it indicates that the communication quality of the short-range main chip has deteriorated significantly, and the duty cycle of the latest antenna is too high for service 5. Therefore, it is necessary to reduce the duty cycle of the latest antenna, and the dual-chip coexistence strategy module can execute S15.

[0317] If the QOE degradation level is less than or equal to the preset degradation threshold, it indicates that the communication quality of the short-range main chip is reduced to a small extent. Therefore, it is necessary to increase the latest antenna duty cycle, and the dual-chip coexistence strategy module can execute S18.

[0318] Optionally, the QOE degradation level can be determined by the service priority module, which directly sends the QOE degradation level to the dual-chip coexistence strategy module.

[0319] Optionally, the QOE analysis result can be determined by the service priority module, which directly sends the QOE analysis result to the dual-chip coexistence strategy module. The QOE analysis result indicates whether the QOE degradation level exceeds a preset degradation threshold.

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

[0321] S16. The dual-chip coexistence strategy module calculates the ratio of the latest antenna duty cycle to the reduced duty cycle, and obtains the adjusted latest antenna duty cycle.

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

[0323] Sections S15-S17 describe the process after S14 where the short-range secondary chip reduces the latest antenna duty cycle based on the operating status of device 1. The specific implementation process of S15-S17 can be found in the descriptions of S213-S219 above, and will not be repeated here. It is understandable that after adjusting the latest antenna duty cycle, the short-range secondary chip re-acquires relevant information (such as the aforementioned QOE information, the priority of services processed by the short-range primary and secondary chips, and the short-range communication status).

[0324] The following section will continue with S18-S20, describing the process after S14 where the short-range sub-chip reduces the duty cycle of the latest antenna based on the operating status of device 1.

[0325] S18, the dual-chip coexistence strategy module obtains the priority of service 5, the priority of service 6, and the increase in duty cycle corresponding to the short-range communication status.

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

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

[0328] The specific implementation process of S18-S20 can be referred to the relevant descriptions of S220-S226 above, and will not be repeated here.

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

[0330] In this embodiment, the data transmission arbitration module, based on the adjusted latest antenna duty cycle (i.e., the latest antenna duty cycle), after determining the usage time of antenna a from the short-range main chip, switches the single-pole double-throw switch 1 to connect antenna a to the short-range main chip. Then, after determining the usage time of antenna a from the short-range sub-chip, it switches the single-pole double-throw switch 1 to connect antenna a to the short-range sub-chip.

[0331] In some embodiments, the short-range secondary chip in the device (such as device 1, device 2, or device 5 described above) can be configured to handle private services such as multi-screen collaboration and super notifications, thereby enabling device 1 to communicate with short-range secondary chips in other devices through the short-range secondary chip using a custom short-range communication protocol, such as performing device discovery and establishing communication connections; wherein, the custom short-range communication protocol can define the communication process according to requirements, simplifying the communication process between devices.

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

[0333] It should be noted that the above description of the business data transmission process is based on the example of two 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. This application does not limit it.

[0334] Furthermore, the operations performed by the aforementioned modules (such as the scene recognition module, service priority module, QOE information recognition module, short-range communication status recognition module, dual-chip coexistence strategy module, and data transmission arbitration module) are merely examples. These operations can also be performed by other modules, and this application does not limit the modules that perform these operations.

[0335] In some embodiments, this application provides a computer-readable storage medium including computer instructions that, when executed on a Bluetooth device, cause an electronic device to perform the data transmission method described above.

[0336] In some embodiments, this application provides a computer program product that, when run on a Bluetooth device, causes an electronic device to perform the data transmission method described above.

[0337] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0338] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0339] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0340] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0341] If the integrated unit is implemented as 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 solutions of the embodiments of this application, essentially or in other words, the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0342] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A data transmission method, characterized in that, Applied to electronic devices, the electronic devices include a first chip and a second chip, the first chip and the second chip being short-range communication chips; The data transmission method includes: The first chip is connected to the first antenna and transmits first data based on the first antenna; The first chip determines the communication quality degradation value of the second chip based on the first communication quality information 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 multiplexed 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 adjusts the antenna duty cycle by decreasing or increasing the communication quality degradation value to obtain an adjusted antenna duty cycle; wherein, the antenna duty cycle represents the proportion of time during which the first chip can use the first antenna within a first preset time period; 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 with the second chip. The second chip transmits second data based on the first antenna.

2. The method according to claim 1, characterized in that, The step of reducing or increasing the antenna duty cycle based on the communication quality degradation value includes: When the first chip determines that the communication quality degradation value is greater than a first preset threshold, 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 then 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 indicates the importance of the first data; Based on the reduction of duty cycle, the first chip reduces the antenna duty cycle.

4. The method according to claim 3, characterized in that, The first chip determines to reduce the duty cycle based on the priority of the first data and the priority of the second data, including: 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 indicates the usage state of the short-range communication mode of the electronic device, and the short-range communication state includes short-range communication switch state and / or 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 uses the 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 uses the 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 the adjusted antenna duty cycle, including: The first chip determines the reduced duty cycle corresponding to the short-range communication state of the electronic device; Based on the reduction of duty cycle, the first chip reduces the antenna duty cycle.

6. The method according to claim 5, characterized in that, The short-range communication states include Wi-Fi states and Bluetooth states; wherein, the Wi-Fi states include Wi-Fi on / off states and / or Wi-Fi connected states, the Wi-Fi on / off states include Wi-Fi on states and Wi-Fi off states, and the Wi-Fi connected states include Wi-Fi connected states and Wi-Fi disconnected states. The Bluetooth status includes Bluetooth on / off status and / or Bluetooth connection status. The Bluetooth on / off status includes Bluetooth on and Bluetooth off status, and the Bluetooth connection status includes Bluetooth connected status and Bluetooth disconnected status.

7. The method according to claim 3, characterized in that, Based on the reduction of the duty cycle, the first chip reduces the antenna duty cycle, including: 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, Increasing the antenna duty cycle includes: Based on the 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 claim 1 or 2, characterized in that, The determination of the communication quality degradation value of the second chip based on the first communication quality information and the second communication quality information of the second chip includes: The first chip performs a weighted summation of the quality index values ​​in the first communication quality information to obtain the first communication quality. The first chip performs a weighted summation of the quality index values ​​in the second communication quality information to obtain the 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 claim 1 or 2, characterized in that, The first communication quality information includes the number of spatial streams, operating bandwidth, link rate, throughput, packet loss rate, retransmission rate, and the value of one or more quality indicators in the 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 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 claim 1 or 2, 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; Alternatively, the first chip may use the antenna duty cycle corresponding to the short-range communication state with the electronic device as the initial value of the antenna duty cycle. The third data is the data processed by the first chip after the first chip is connected to the first antenna when the electronic device does not have the antenna duty cycle, 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, both of which are short-range communication chips. The chip system is used to perform the method as described in any one of claims 1 to 13.

15. The chip system according to claim 14, characterized in that, 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 also includes an application processor (AP), which is connected to the first chip and the second chip respectively.

17. 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 processor are coupled; the processor includes an application processor; the display screen is used to display images 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; the computer program code includes computer instructions; when the processor executes the computer instructions, the electronic device performs the method as described in any one of claims 1 to 13.

18. A computer-readable storage medium, characterized in that, Includes computer instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in any one of claims 1 to 13.

Citation Information

Patent Citations

  • Dynamic antenna sharing

    CN103620970A

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

    CN108901077A

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

    CN112020079A

  • Antenna configuration method and device

    CN116567596A