Data transmission method and electronic equipment
By using the first chip to determine the transmission status of the second chip, and delaying or directly preempting the antenna, the problem of low throughput in the collaborative operation of multiple short-range communication chips is solved, and timely confirmation and efficient transmission of data frames are achieved.
Patent Information
- Application Number
- CN202410302115.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-13
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2044-03-13
AI Technical Summary
How can multiple short-range communication chips work together to avoid data retransmission and low throughput due to the lack of acknowledgment frames?
The first chip determines the transmission status of the second chip, and delays or directly preempts the antenna to achieve coordinated operation, ensuring the reception of acknowledgment frames for data frames, preventing data retransmission, and improving throughput.
This effectively avoids data retransmission due to the lack of received acknowledgment frames, thereby improving the throughput and overall transmission performance of the second chip.
Smart Images

Figure CN119276289A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of communication technology, and in particular to a data transmission method and an electronic device. Background Art
[0002] With the development of technology, electronic devices are generally equipped with short-range communication chips (such as WI-FI (wireless fidelity) chips), and electronic devices can use short-range communication chips to communicate with other electronic devices to transmit business data corresponding to the business with other electronic devices.
[0003] When there are multiple (eg, two) short-distance communication chips on an electronic device, the multiple short-distance communication chips need to work together to transmit corresponding service data. Therefore, how the multiple short-distance communication chips work together becomes an urgent problem to be solved. Summary of the invention
[0004] The embodiments of the present application provide a data transmission method and an electronic device for realizing collaborative work among multiple short-range communication chips, thereby avoiding the second chip from retransmitting data due to failure to receive a confirmation frame, thereby causing a low throughput of the second chip.
[0005] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:
[0006] In a first aspect, a data transmission method is provided, which is applied to an electronic device, wherein the electronic device includes a first chip, a second chip, and an application processor AP, wherein the first chip and the second chip are short-range communication chips, the AP is connected to the first chip and the second chip respectively, and the first antenna represents an antenna multiplexed by the first chip and the second chip. When the first chip receives first data sent by the AP, the first chip can determine whether the second chip is in a sending state.
[0007] The first chip determines that the transmission state of the second chip is a sending state. When the transmission state of the second chip switches from the sending state to the first state, it indicates that the sending state of the second chip ends. After the first target time, the first chip can control the first antenna to be connected to the first chip, wherein when the first antenna is connected to the first chip, the first antenna is disconnected from the second chip, and the first state is an idle state or a receiving state.
[0008] Afterwards, the first chip may transmit the first data based on the first antenna.
[0009] In the present application, when the first chip receives the first data sent by the AP, it indicates that the first chip has a transmission demand, and the first chip can determine whether the second chip is in a sending state. When the second chip is in a sending state, the second chip may be sending service data, that is, a data frame, and the first chip needs to wait for the second chip's sending state to end. In the case where the sending state of the second chip ends, the first chip delays and preempts the first antenna so that the first antenna can be used to transmit the first data, thereby realizing the collaborative work between the first chip and the second chip. And when the second chip is in a sending state and sends a data frame, the second chip can receive the confirmation frame corresponding to the data frame through delayed preemption, thereby preventing the need to resend the data frame due to failure to receive the confirmation frame, thereby avoiding the second chip's throughput being too low.
[0010] In one possible design, the first chip determines that the transmission scenario of the second chip is an uplink transmission scenario, indicating that the second chip has a higher probability of sending data frames when in the sending state. Therefore, when the sending state of the second chip ends, that is, when the transmission state of the second chip switches from the sending state to the first state, after the first target time, the first chip controls the first antenna to be connected to the first chip, so that the second chip can still use the first antenna within the second target time, thereby improving the success rate of the second chip receiving the confirmation frame in time, thereby ensuring the throughput of the second chip.
[0011] In a possible design, the first chip determines that the transmission scenario of the second chip is a downlink transmission scenario. If the transmission state of the second chip is switched from the sending state to the first state, the first chip can directly control the first antenna to connect with the first chip to transmit the first data based on the first antenna. Based on this, when the second chip is in the downlink transmission scenario, the possibility of the second chip sending data frames in the sending state is low. Therefore, the first chip can directly seize the first antenna when the sending state of the second chip ends, so as to use the first antenna to transmit the first data, thereby realizing timely seizure of the first antenna and avoiding unnecessary delayed seizure, thereby realizing timely transmission of the first data and ensuring the transmission rate of the first data.
[0012] In a possible design, the process of determining the transmission scenario may include:
[0013] The first chip can determine the transmission scenario of the second chip based on one or more of the information of the service corresponding to the second data transmitted by the second chip, the transmission time of the second chip, and the transmission quantity of the second chip. The transmission scenario indicates that the second chip is in an uplink transmission scenario or a downlink transmission scenario. Based on this, the first chip can determine the transmission scenario of the second chip based on the actual transmission situation of the second chip, thereby realizing accurate determination of the transmission scenario.
[0014] The transmission time of the second chip includes the sending time and receiving time of the second chip. The sending time of the second chip indicates the duration of time the second chip is in the sending state, and the receiving time indicates the duration of time the second chip is in the receiving state.
[0015] The transmission quantity of the second chip includes the sending quantity and receiving quantity of the second chip. The sending quantity of the second chip indicates the quantity of second data successfully sent by the second chip, and the receiving quantity indicates the quantity of second data successfully received by the second chip.
[0016] In one case, the first chip can determine the transmission scenario of the second chip based on the transmission time of the second chip. The first chip determines the first difference value based on the sending time and receiving time of the second chip. The first difference value represents the difference between the duration of the second chip being in the sending state and the duration of the second chip being in the receiving state. The larger the first difference value, the higher the probability that the transmission scenario of the second chip is an uplink transmission scenario.
[0017] The first chip determines whether the first difference value is greater than or equal to the first preset difference value to determine whether the second chip is mainly in the sending state, thereby determining whether the probability of the second chip being in the uplink transmission scenario is high.
[0018] The first chip determines that the first difference value is greater than or equal to the first preset difference value, indicating that the second chip is mainly in the sending state, that is, the probability that the second chip is in the uplink transmission scenario is high, and the first chip can determine that the transmission scenario of the second chip is the uplink transmission scenario. The first chip determines that the first difference value is less than the first preset difference value, indicating that the second chip is not mainly in the sending state, that is, the probability that the second chip is in the downlink transmission scenario is low, and the first chip can determine that the transmission scenario of the second chip is the downlink transmission scenario.
[0019] Based on this, the first chip uses the transmission time of the second chip to determine the transmission scenario of the second chip, thereby achieving rapid determination of the transmission scenario.
[0020] Optionally, the first difference value may be a difference or a ratio between the sending time and the receiving time.
[0021] In another case, the first chip may determine the transmission scenario of the second chip based on the transmission quantity of the second chip. The first chip determines the second difference value based on the transmission quantity and the reception quantity of the second chip. The second difference value represents the difference between the quantity of the second data sent by the second chip and the quantity of the second data received by the second chip. The larger the second difference value, the higher the probability that the transmission scenario of the second chip is an uplink transmission scenario.
[0022] The first chip determines whether the second difference value is greater than or equal to the second preset difference value to determine whether the second chip mainly sends second service data, thereby determining whether the probability of the second chip being in an uplink transmission scenario is high.
[0023] The first chip determines that the second difference value is greater than or equal to the second preset difference value, indicating that the second chip is mainly in the sending state, that is, the probability that the second chip is in the uplink transmission scenario is high, and the first chip can determine that the transmission scenario of the second chip is the uplink transmission scenario. The first chip determines that the second difference value is less than the second preset difference value, indicating that the second chip is not mainly in the sending state, that is, the probability that the second chip is in the downlink transmission scenario is low, and the first chip can determine that the transmission scenario of the second chip is the downlink transmission scenario.
[0024] Based on this, the first chip uses the transmission quantity of the second chip to determine the transmission scenario of the second chip, thereby realizing rapid determination of the transmission scenario.
[0025] In another case, the first chip may determine the transmission scenario of the second chip based on the transmission time of the second chip and the transmission quantity of the second chip. The first chip determines the above-mentioned first difference value and second difference value respectively. Then, the first chip may determine the second difference value based on the number of transmissions and the number of receptions of the second chip. Among them, the first chip determines the transmission scenario of the second chip based on the first difference value and the second difference value. Based on this, the first chip uses the transmission time and the transmission quantity of the second chip to comprehensively judge the transmission scenario of the second chip, thereby ensuring the accuracy of determining the transmission scenario.
[0026] In another case, the first chip can determine the transmission scenario of the second chip based on the service corresponding to the second data transmitted by the second chip, the transmission time of the second chip, and the transmission quantity of the second chip. The first chip determines the above-mentioned first difference value and second difference value respectively. And the first chip determines the transmission type corresponding to the service based on the information of the service corresponding to the second data. Among them, the transmission type is an uplink transmission type or a downlink transmission type. Afterwards, the first chip can determine the transmission scenario of the second chip based on the transmission type, the first difference value, and the second difference value, so as to accurately determine the transmission scenario.
[0027] In one possible design, the first chip determines that the second chip is in a downlink transmission scenario. If the transmission state of the second chip is an idle state or a receiving state, the first chip can directly control the first antenna to be connected to the first chip, thereby directly preempting the first antenna, thereby ensuring the transmission performance of the first chip and avoiding affecting the throughput of the second chip.
[0028] In one possible design, the first chip determines that the transmission state of the second chip is a receiving state, indicating that the second chip may be currently receiving a confirmation frame. If the transmission state of the second chip switches from a receiving state to an idle state, or after a second target time, the first chip controls the first antenna to be connected to the first chip, thereby realizing delayed preemption of the first antenna, so that the second chip can receive the confirmation frame, thereby preventing the need to resend the data frame due to failure to receive the confirmation frame, thereby avoiding the second chip's throughput being too low.
[0029] Among them, optionally, if the transmission state of the second chip switches from the receiving state to the idle state, or after the second target time, before the first chip controls the first antenna to connect with the first chip, the first chip can determine that the second chip is in the uplink transmission scenario. Based on this, when the first chip is in the uplink transmission scenario, the second chip is in the receiving state and has a high probability of receiving the confirmation frame. Therefore, the first chip can delay the preemption of the first antenna to ensure the success rate of the second chip receiving the confirmation frame.
[0030] In a possible design, the process of determining the first target time may include:
[0031] The first chip determines a scenario prediction value based on the transmission time and / or transmission quantity of the second chip. The scenario prediction value indicates the probability that the second chip is in an uplink transmission scenario. Afterwards, the first chip determines a first target time based on the scenario prediction value. The larger the scenario prediction value, the longer the first target time, thereby achieving adaptive determination of the first target time, so that when the first chip delays preemption based on the first target time, the overall transmission performance of the electronic device can be guaranteed to be high.
[0032] In a second aspect, the present application provides a data transmission method, which is applied to an electronic device, wherein the electronic device includes a first chip, a second chip, and an AP, wherein the first chip and the second chip are short-range communication chips, and the AP is connected to the first chip and the second chip respectively; the first chip independently uses a first antenna. The first chip receives first data sent by the AP;
[0033] The first chip determines that the transmission state of the second chip is a sending state. If the transmission state of the second chip is switched from the sending state to the first state, after a first target time, the first chip transmits the first data based on the first antenna.
[0034] In an embodiment of the present application, when the first chip and the second chip use antennas independently, after the first chip determines that the second chip is in a sending state, the second chip may be sending business data, and the first chip needs to wait for the second chip's sending state to end. When the sending state of the second chip ends, in order to avoid mutual interference between the first chip and the second chip, the first chip can delay the use of the first antenna to transmit data, thereby achieving collaborative work between the first chip and the second chip. And when the second chip is in a sending state and sends a data frame, the second chip can receive a confirmation frame corresponding to the data frame, preventing the need to resend the data frame due to failure to receive the confirmation frame, thereby avoiding too low throughput of the second chip.
[0035] Optionally, the second chip independently uses the second antenna.
[0036] Optionally, the number of the first antenna and the number of the second antenna are both one or more.
[0037] In one possible design, the first chip determines that the transmission scenario of the second chip is an uplink transmission scenario. If the transmission state of the second chip is switched from the sending state to the first state, after a first target time, the first chip uses the first antenna to transmit the first data.
[0038] In addition, the first chip determines that the transmission scenario of the second chip is a downlink transmission scenario. If the transmission state of the second chip is switched from the sending state to the first state, the first chip uses the first antenna to transmit the first data.
[0039] Optionally, when the transmission scenario of the second chip is an uplink transmission scenario, if the second chip is in a receiving state, the first chip may use the first antenna to transmit the first data after the second target time has passed. Alternatively, the first chip may use the first antenna to transmit the first data when the second chip switches from a receiving state to an idle state.
[0040] In a third aspect, the present application provides a chip system, the chip system comprising a first chip and a second chip, the first chip and the second chip are both short-range communication chips.
[0041] The first chip is used to determine that the second chip is in a sending state when there is first data to be transmitted.
[0042] The first chip is also used to control the first antenna to be connected to the first chip after a first target time when the transmission state of the second chip switches from the sending state to the first state. When the first antenna is connected to the first chip, the first antenna is disconnected from the second chip; the first state is an idle state or a receiving state.
[0043] The first antenna is located in the chip system, or the first antenna is connected to the chip system, and specifically, the first antenna is connected to the first chip in the chip system.
[0044] Optionally, the second chip may transmit the second data using a second antenna. The second antenna is located in the chip system. Or the second antenna is connected to the chip system. Specifically, the second antenna is connected to the second chip in the chip system.
[0045] In a possible implementation manner of the third surface, the first chip is connected to the second chip.
[0046] In a possible implementation manner of the third aspect, the chip system further includes an AP, which is connected to the first chip and the second chip respectively.
[0047] In a possible implementation manner of the third aspect, the chip system is applied to an electronic device, and the electronic device executes the method as described above.
[0048] In a fourth aspect, the present application provides an electronic device, comprising a display screen, a memory, a first chip, a second chip and one or more processors; the display screen, the memory, the first chip and the second chip are coupled to the processor; the processor comprises an application processor, the display screen is used to display an image generated by the processor, the memory is used to store computer program code, the first chip and the second chip are short-range communication chips, both used to transmit data, and the computer program code comprises computer instructions; when the processor executes the computer instructions, the electronic device executes the method described above.
[0049] In a fifth aspect, the present application provides a computer-readable storage medium, comprising computer instructions, which, when executed on an electronic device, enable the electronic device to execute the method described above.
[0050] In a sixth aspect, the present application provides a computer program product, including a computer program, which, when executed on an electronic device, enables the electronic device to execute the method described above.
[0051] It can be understood that the beneficial effects that can be achieved by the data transmission method described in the second aspect, the chip system described in the third aspect, the electronic device described in the fourth aspect, the computer-readable storage medium described in the fifth aspect, and the computer program product described in the sixth aspect provided above can refer to the beneficial effects in the first aspect and any possible implementation method thereof, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;
[0053] Figure 2 A structural block diagram of an electronic device provided in an embodiment of the present application;
[0054] Figure 3A A communication process diagram provided in an embodiment of the present application Figure 1 ;
[0055] Figure 3B A communication process diagram provided in an embodiment of the present application Figure 2 ;
[0056] Figure 3C A communication process schematic diagram 3 provided for an embodiment of the present application;
[0057] Figure 4A A communication scenario provided in an embodiment of the present application Figure 1 ;
[0058] Figure 4B A communication scenario provided in an embodiment of the present application Figure 2 ;
[0059] Figure 4C Schematic diagram 3 of a communication scenario provided for an embodiment of the present application;
[0060] Figure 5 A schematic diagram of a dual chip structure provided in an embodiment of the present application Figure 1 ;
[0061] Fig. 6A A schematic diagram of an antenna preemption process provided in an embodiment of the present application Figure 1 ;
[0062] Figure 6B A schematic diagram of an antenna preemption process provided in an embodiment of the present application Figure 2 ;
[0063] Fig. 7A Schematic diagram 3 of an antenna preemption process provided in an embodiment of the present application;
[0064] Figure 7B Schematic diagram 4 of an antenna preemption process provided in an embodiment of the present application;
[0065] Figure 7C A schematic diagram of an antenna preemption process provided in an embodiment of the present application Figure 5 ;
[0066] Fig.7D Schematic diagram 6 of an antenna preemption process provided in an embodiment of the present application;
[0067] Figure 8 A schematic diagram of a data transmission method provided in an embodiment of the present application Figure 1 ;
[0068] Fig.9A A schematic diagram of a dual chip structure provided in an embodiment of the present application Figure 2 ;
[0069] Fig. 9B A schematic diagram of a dual-chip structure provided in an embodiment of the present application is shown in FIG3;
[0070] Fig. 9C A schematic diagram 4 of a dual-chip structure provided in an embodiment of the present application;
[0071] Fig. 10A A switch schematic diagram provided in an embodiment of the present application Figure 1 ;
[0072] Fig. 10B A switch schematic diagram provided in an embodiment of the present application Figure 2 ;
[0073] Fig.11A Schematic diagram 7 of an antenna preemption process provided in an embodiment of the present application;
[0074] Fig. 11B A schematic diagram of an antenna preemption process provided in an embodiment of the present application Figure 8 ;
[0075] Fig.12 A schematic diagram of a data transmission method provided in an embodiment of the present application Figure 2 ;
[0076] Fig.13 A schematic diagram of a dual chip structure provided in an embodiment of the present application Figure 5 . DETAILED DESCRIPTION
[0077] In order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way. In the embodiments of the present application, "at least one" refers to one or more, and "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B, which can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following items (individuals)" or similar expressions thereof refer to any combination of these items, including any combination of single items (individuals) or plural items (individuals). For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple. In the embodiments of the present application, "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" can explicitly or implicitly include one or more of the features. In the description of the present embodiment, unless otherwise specified, the meaning of "multiple" is two or more.
[0078] Figure 1 A schematic structural diagram of an electronic device 100 is shown.
[0079] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
[0080] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0081] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0082] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0083] The processor 110 may also be provided with a memory for storing instructions and data.
[0084] In some embodiments, the processor 110 may include one or more interfaces. The interface 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.
[0085] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0086] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0087] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0088] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0089] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0090] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as WI-FI network), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0091] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through 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 technology.
[0092] In some embodiments, the number of the antennas 2 may be one or more. The wireless communication module 160 may include a short-range communication module (or short-range communication chip). The short-range communication chip may include at least one of NFC, WI-FI, and BT chips. The number of short-range communication chips is multiple, and the short-range communication chips may include the same chips or different chips. For example, the number of short-range communication chips is two, namely, a short-range main chip and a short-range secondary chip, the short-range main chip includes NFC, WI-FI, and BT chips, the short-range secondary chip includes NFC, WI-FI, and BT chips, and the short-range secondary chip includes the same chip as the short-range main chip. The short-range main chip includes NFC, WI-FI, and BT chips, the short-range secondary chip includes WI-FI and BT chips, and the short-range secondary chip includes different chips from the short-range main chip.
[0093] Among them, each short-range communication chip is connected to the above-mentioned AP, and is used to receive the service data assigned by the AP, send the service data to an external device, or receive the service data sent by an external device to realize the transmission of service data.
[0094] Optionally, the short-distance communication chips may reuse antennas. The short-distance communication chips may be directly connected to communicate, or the short-distance communication chips may communicate through an AP without establishing a connection between them.
[0095] Optionally, the short-range master chip supports a single input single output (SISO) mode and a multiple input multiple output (MIMO) mode. The short-range slave chip supports the SISO mode.
[0096] Exemplarily, the above-mentioned AP may also be referred to as an AP processor or an AP chip, etc.
[0097] In some embodiments, the short-range communication chip may include a radio frequency (RF) module for transmitting radio frequency signals to achieve transmission of service data. In addition, the short-range communication chip may also include a baseband (such as the following Figure 2 shown).
[0098] The short-range communication chip mentioned above may be an H2.0 chip, such as the short-range slave chip mentioned above may be an H2.0 chip.
[0099] In some embodiments, the above-mentioned AP chip can be integrated on a system-on-chip (SOC) chip of an electronic device, and the short-distance main chip and the short-distance secondary chip may not be integrated on the SOC, and the short-distance main chip and the short-distance secondary chip are two independent communication chips. Of course, this is only an example, and the short-distance main chip and / or the short-distance secondary chip can also be integrated on the SOC, and this application does not limit it, as long as the AP can be connected to the short-distance main chip and the short-distance secondary chip respectively.
[0100] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0101] The sensor module 180 may include a pressure sensor, a gyroscope sensor, and the like.
[0102] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes a layered architecture system as an example to exemplify the software structure of the electronic device 100.
[0103] Figure 2 It is a structural block diagram of the electronic device 100 according to an embodiment of the present application.
[0104] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into five layers, from top to bottom: application layer, application framework layer, Android runtime and system library, hardware abstraction layer (HAL), and kernel layer.
[0105] The application layer can include a series of application packages.
[0106] like Figure 2As shown, the application package may include camera, gallery, call, multi-screen collaboration, navigation, WLAN, Bluetooth, music, video, short message, smart home and other applications.
[0107] like Figure 2 As shown, the application framework layer may include applications such as a dual-chip coexistence service module, a quality of experience (QOE) information identification module, and a scene identification module.
[0108] The scene recognition module is used to identify the application running on the electronic device 100, that is, the running service, or to identify the service scenario in which the electronic device 100 is located, such as a file download scenario, an audio and video playback scenario, a video call scenario, a smart home scenario, etc. The scene recognition module can send service information (such as an application identifier, a service scenario identifier, etc.) to the dual-chip coexistence service module.
[0109] The QOE information identification module is used to count the transmission quantity of the data frame of the short-distance main chip, such as the number of transmissions and the number of receptions, and the transmission quantity can be sent to the dual-chip coexistence service module.
[0110] The dual-chip coexistence service module is used to determine the transmission scenario of the short-distance main chip, such as the uplink transmission scenario and the downlink transmission scenario, based on the number of data frame transmissions, business information and other information. Then, the transmission scenario is sent to the dual-chip coexistence strategy module of the short-distance secondary chip. Alternatively, the dual-chip coexistence service module is used to send the number of data frame transmissions and business information to the dual-chip coexistence strategy module, so that the dual-chip coexistence strategy module can determine the transmission scenario of the short-distance main chip based on the number of data frame transmissions, business information and other information.
[0111] Android Runtime includes core libraries and virtual machines. Android Runtime is responsible for scheduling and management of the Android system.
[0112] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0113] The hardware abstraction layer (HAL) is an interface layer between the operating system kernel and the hardware circuit. Figure 2As shown, the hardware abstraction layer may include a HAL channel. When data is transmitted between the software layer (such as the application framework layer) and the short-distance communication chip, it can be transmitted through the HAL channel. For example, the HAL channel can transmit data such as service data, service information, and the number of data frames transmitted.
[0114] Optionally, the HAL channel may include HAL channel 1 and HAL channel 2. When data is transmitted between the application framework layer (such as the QOE information identification module) and the short-distance main chip, it can be transmitted through HAL channel 1. When data is transmitted between the application framework layer (such as the dual-chip coexistence service module) and the short-distance slave chip, it can be transmitted through HAL channel 2.
[0115] The kernel layer is the layer between hardware and software. The kernel layer includes at least a short-distance main chip driver and a short-distance slave chip driver.
[0116] It should be understood that the software system to which the above-mentioned software layer belongs may be a software system located on the AP chip, that is, a program code running on the AP chip.
[0117] In some embodiments, the dual-chip coexistence strategy module in the short-range slave chip can determine the strategy information of the antenna preemption strategy to be executed based on the transmission scenario of the short-range master chip, and send it to the data transmission arbitration module. The data transmission arbitration module can determine the preemption timing based on different antenna preemption strategies, such as the preemption strategy corresponding to the strategy information, to timely preempt antenna a.
[0118] It should be understood that the above-mentioned short-range main chip and short-range slave 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, such as including three short-range communication chips and three short-range communication chip drivers, and the short-range communication chips correspond to the short-range communication chip drivers one-to-one.
[0119] To facilitate understanding of the embodiments of the present application, some terms involved in the embodiments of the present application are explained below.
[0120] Short-distance communication: refers to a communication method for transmitting data within a relatively close distance. When the distance between electronic devices is less than a certain distance, the electronic devices can communicate through short-distance communication. Exemplary short-distance communication methods may include Bluetooth, near field communication (NFC), WI-FI and other communication methods. In this application, short-distance communication can also be referred to as close-range communication or short-distance communication.
[0121] WI-FI connection mode: including WI-FI station (STA) mode and WI-FI peer-to-peer (P2P) mode. Among them, the WI-FI STA mode means that an electronic device can establish a WI-FI connection with other devices through a wireless access point (AP), that is, to conduct WI-FI communication, and the role of the electronic device can be a station. The WI-FIP2P mode refers to the use of WI-FI technology between multiple devices to conduct point-to-point direct communication to form a P2P network (also referred to as a P2P group), which includes a group owner (group owner, Go) and at least one group client (group client, Gc). It can be understood that the group owner is equivalent to the above-mentioned wireless access point (or described as a router), and the group client is equivalent to the above-mentioned station.
[0122] Antenna duty cycle corresponding to the short-range secondary chip: the time ratio of the short-range secondary chip that can use the antenna (such as antenna a in the embodiment of the present application) in a unit time. For example, if the unit time is 100 milliseconds (ms), and the antenna duty cycle is 70%, then within the 100ms, the short-range secondary chip can use antenna a for 70ms.
[0123] Transmit (TX) time slot: indicates that the electronic device is in a transmitting state. The transmitting state may mean that the short-range communication chip of the electronic device uses an antenna to send a multimedia access control (MAC) frame to an external device.
[0124] Receive (RX) time slot: indicates that the electronic device is in a sending state. The receiving state may mean that the short-range communication chip of the electronic device uses an antenna to receive a MAC frame sent by an external device.
[0125] Idle time slot: indicates that the electronic device is neither in the sending state nor in the receiving state. In other words, the short-range communication chip of the electronic device neither uses the antenna to send MAC frames to the external device nor uses the antenna to receive MAC frames sent by the external device.
[0126] MAC frame: a frame format used to transmit data at the data link layer. For example, in a WI-FI network, electronic devices use MAC frames to transmit data. Among them, MAC frames can include control frames, data frames, and management frames.
[0127] The management frame may include an acknowledgment (ACK) frame. Figure 3AAs shown in the figure, after the STA sends a data frame X, after a short interframe space (SIFS), it receives a confirmation frame sent by the AP, and it can be determined that the data frame X is sent successfully, and there is no need to resend the data frame X. After that, the STA continues to send data frame X+1, and then after SIFS, it receives a confirmation frame sent by the AP. In other words, every time the STA sends a data frame, the AP needs to respond and return a confirmation frame.
[0128] In addition, the confirmation frame may also include a block ACK frame. Figure 3B As shown, after the sender sends a data frame (or data block), it sends a reception confirmation request to the receiver. After the receiver receives the data frame, it responds to the reception confirmation request and sends a block confirmation frame to the sender. When the sender receives the block confirmation frame, it can be determined that the data frame is sent successfully. Then, the sender can continue to send the next data frame. Among them, the data frame can be a plurality of aggregated sub-data frames (such as QoSData frame).
[0129] The control frames may include a request to send (RTS) frame and a clear to send (CTS) frame. The RTS frame is used to request control of the medium for a certain period of time, such as requesting to occupy a channel for a certain period of time. The CTS frame is an RTS response reply. When the sender receives the CTS frame, the medium will be reserved for the STA. Both the CTS frame and the RTS frame include a Duration field, which is used to indicate the duration of continuous occupation of the medium. Specifically, Figure 3C As shown, STA sends an RTS frame to AP, and nearby devices can also receive the RTS frame. In response to the RTS frame, if the AP can receive a data frame (such as an expected frame transmission frame) within the time indicated by the duration field, it can send a CTS frame to the STA, and nearby devices can also receive the CTS frame. After receiving the CTS frame, the STA indicates that the AP can receive the data frame, and then the data frame can be sent. After a short inter-frame interval, the confirmation frame sent by the AP is received, and it can be determined that the data frame is sent successfully, and there is no need to resend the data frame. After that, the STA continues to send the next data frame. In addition, based on the RTS frame and the CTS frame, the nearby devices stop competing for the channel within the time indicated by the duration field to reserve bandwidth for the STA and avoid conflicts.
[0130] In order to improve the efficiency of electronic equipment in processing services, the electronic equipment is provided with two short-range communication chips, namely a short-range main chip and a short-range auxiliary chip. The short-range main chip and the short-range auxiliary chip can transmit service data of corresponding services respectively to realize concurrent operation of services.
[0131] In some embodiments, there are more and more types of electronic devices, such as mobile phones, tablets, PCs, smart watches, Bluetooth headsets, smart screens, smart appliances, etc. In order to achieve interconnection between multiple electronic devices, the first electronic device can first perform device discovery through short-range communication. Then, the first electronic device transmits device authentication data (such as a key) to other discovered devices (second electronic devices) through short-range communication to match devices and establish a first short-range communication connection. In some embodiments, after the first short-range communication connection is established, the first electronic device can also establish a second short-range communication connection with the second electronic device, so that business data can be transmitted between electronic devices through the first short-range communication connection or the second short-range communication connection. In a multi-screen collaboration scenario or a super notification scenario, different types of electronic devices may establish short-range communication connections through different types of short-range communication chips. For example, taking the first electronic device as a mobile phone as an example, in a multi-screen collaboration scenario, the mobile phone can respectively communicate with the second electronic device through a short-range communication chip (here or referred to as a short-range main chip). Figure 4A The tablet computer and personal computer (PC) in the computer can establish a WI-FI P2P connection (or simply a P2P connection). In addition, the mobile phone can also communicate with the Figure 4A The Bluetooth headset, smart watch, mouse and keyboard in the embodiment establish a Bluetooth connection to transmit the corresponding business data. Figure 4A As shown, the mobile phone establishes Bluetooth low energy (BLE) connections with the mouse and keyboard respectively. The mobile phone establishes Bluetooth connections with the Bluetooth headset and the short-range main chip in the smart watch.
[0132] However, during the operation of the multi-screen collaborative service (or collaborative service) or the super notification service, the electronic device may also run other services at the same time, and the electronic device also needs to use the short-range communication chip to transmit the service data corresponding to other services. In other words, not only the multi-screen collaborative service and the super notification service need to use the short-range communication chip, but there are also other concurrent services that require the support of the short-range communication chip. Therefore, in order to ensure the smoothness of the concurrent operation of the services, a short-range communication chip can be added inside the electronic device. In other words, there are two short-range communication chips in the electronic device, one of the two short-range communication chips can be called a short-range main chip, and the other can be called a short-range sub-chip. The short-range main chip and the short-range sub-chip can process different services at the same time. For example, the short-range main chip processes three-party services, such as smart home services, car-machine interconnection services, etc. The short-range sub-chip can handle private services, such as multi-screen collaborative services, super notification services, etc.
[0133] It should be understood that the services processed by the short-range main chip listed above are only examples, and the short-range main chip can also process other services, such as video call services, social services, short video services, news services, file downloads, audio and video playback services, game services, etc. Similarly, the services processed by the short-range secondary chip listed above are only examples, and the short-range secondary chip can also process other services.
[0134] For example, the mobile phone can communicate with the Figure 4B The tablet computer and PC (such as the short-range secondary chip in the tablet computer and PC) transmit the business data corresponding to the multi-screen collaborative business, such as device authentication data, screen projection data, file transfer, notification messages, etc. In addition, Figure 4B As shown, the mobile phone can also communicate with the smart watch and Bluetooth headset (such as the short-range sub-chip in the smart watch and Bluetooth headset) through the short-range sub-chip to transmit business data. For example, the smart watch can send business data such as heartbeat data, number of steps, and location detected by the smart watch to the short-range sub-chip in the mobile phone through the short-range sub-chip. The mobile phone can send audio data and command data (such as play, pause command data) and other business data to the short-range sub-chip in the Bluetooth headset through the short-range sub-chip. In addition, the mobile phone can communicate with the smart watch and Bluetooth headset through the short-range sub-chip. Figure 4B The mouse and keyboard shown communicate to transmit service data, such as user operation data. Optionally, when 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.
[0135] Among them, the mobile phone can establish a communication connection with other devices based on the short-range secondary chip through the short-range communication protocol 1 to transmit business data. Figure 4B As shown, the mobile phone can establish P2P connections with the tablet computer and the PC respectively through the P2P communication protocol 1. The mobile phone can establish Bluetooth connections with the Bluetooth headset, smart watch, keyboard and mouse respectively through the Bluetooth communication protocol 1. Figure 4B As shown, the mobile phone can establish BLE connections with the mouse and keyboard respectively.
[0136] Among them, optionally, the above-mentioned short-range communication protocol 1 can be a custom short-range communication protocol (ie, a private protocol), for example, the above-mentioned P2P communication protocol 1 can be a custom P2P communication protocol, and the above-mentioned Bluetooth communication protocol 1 can be a custom Bluetooth communication protocol.
[0137] In addition, the mobile phone can communicate with the main chip through the short distance Figure 4C The smart home appliances such as air conditioners, sweeping robots, refrigerators, air purifiers, etc. transmit the business data corresponding to the smart home business, such as control data such as opening, closing, and mode adjustment. Figure 4CAs shown, the mobile phone can also transmit business data corresponding to the vehicle business with the vehicle through the short-distance main chip, such as control commands, files and other data. Of course, the mobile phone can also transmit business data with other devices through the short-distance main chip, such as transmitting control commands, files and other data to a printer.
[0138] Among them, the mobile phone can establish a communication connection with other devices based on the short-range main chip through the short-range communication protocol 2 to transmit business data. For example, the mobile phone can establish a communication connection with a refrigerator, air conditioner, air purifier, and sweeping robot based on the short-range communication protocol 2 through a router to transmit business data (such as the above Figure 4C The mobile phone can establish a Bluetooth connection with the vehicle (such as a head unit in the vehicle) through the Bluetooth communication protocol 2.
[0139] Optionally, since the short-range main chip is mainly used to process three-party services, the short-range communication protocol 2 may be a standard short-range communication protocol, for example, the above-mentioned Bluetooth communication protocol 2 may be a standard Bluetooth communication protocol.
[0140] It should be noted that the above Figure 4B The scenario shown can also be a super notification scenario. For example, after receiving an incoming call, the mobile phone can send the incoming call data to a tablet computer, PC, Bluetooth headset, smart watch and other devices through the short-range secondary chip, so that the device can prompt the incoming call. Among them, optionally, Figure 4B The dotted circle in the figure indicates that the devices (i.e., tablet computer, PC, Bluetooth headset, smart watch, mobile phone, mouse and keyboard) can be networked and communicate with each other through the short-range secondary chip.
[0141] In addition, the above Figure 4B The tablet computer can also establish a short-distance communication connection with other devices (such as smart watches, PCs, etc.) through the short-distance main chip, so as to use the short-distance main chip to transmit the business data corresponding to other businesses. Similarly, the PC can also establish a short-distance communication connection with other devices (such as Bluetooth headsets, tablet computers, etc.) through the short-distance main chip, so as to use the short-distance main chip to transmit the business data corresponding to other businesses, so as to realize the concurrent operation of businesses.
[0142] Optionally, as above Figure 4A or Figure 4B As shown, the tablet computer, mobile phone and PC can be in the same network environment and use the WI-FI provided by the router. Figure 4C As shown, in the smart home scenario, the sweeping robot, air purifier, refrigerator, air conditioner and mobile phone can be in the same network environment and use the WI-FI provided by the router.
[0143] The above-mentioned 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 short-range secondary chip and the short-range main chip may include the same or different types of short-range communication chips. In addition, due to the limited space of the above-mentioned smart watch and Bluetooth headset, the smart watch and Bluetooth headset may not add an additional short-range communication chip, but only include one short-range communication chip.
[0144] In some embodiments, for electronic devices with smaller space, such as mobile phones, the short-range main chip and the short-range secondary chip in the electronic device can time-share one antenna (or antenna a) to reduce the number of antennas, thereby reducing the space occupied by the antennas. Time-share antenna a for the short-range main chip and the short-range secondary chip means that while the short-range main chip uses antenna a to transmit business data, the short-range secondary chip cannot use antenna a to transmit business data. While the short-range secondary chip uses antenna a to transmit business data, the short-range main chip cannot use antenna a to transmit business data. In other words, the short-range main chip and the short-range secondary chip cannot use antenna a to transmit business data continuously, but instead transmit business data alternately. Figure 5 As shown, the short-distance slave chip can realize the reuse of antenna a by switching the single-pole double-throw switch 1. Among them, the short-distance slave chip can realize the reuse of antenna a according to antenna preemption strategies such as TX / RX time slot preemption strategy, RX time slot preemption strategy, and idle time slot preemption strategy.
[0145] Among them, the idle time slot preemption strategy means that when the short-distance secondary chip detects that the short-distance main chip is not in the sending state or the receiving state, that is, when it is in the idle state, it indicates that the short-distance main chip does not need to use antenna a to transmit business data (or replace it with a description of data frames). The short-distance secondary chip can switch the single-pole double-throw switch 1 to the short-distance secondary chip side to realize the preemption of antenna a. However, the idle time slot preemption strategy may cause the short-distance main chip to use antenna a for too long. When the business processed by the short-distance secondary chip has high requirements for real-time performance (here or replaced with throughput, transmission rate), the inability to use antenna a to transmit business data in time may cause the business operation smoothness of the short-distance secondary chip to be greatly affected.
[0146] The TX / RX time slot preemption strategy means that when the short-distance slave chip needs to transmit service data, the single-pole double-throw switch 1 can be directly switched to the short-distance slave chip side to realize the preemption of antenna a. For example, Fig. 6AAs shown, first, the short-range secondary chip can seize antenna a when it needs to transmit data frames corresponding to service a. After 100ms of seizure, service a ends and the short-range secondary chip does not need to transmit data frames, so the short-range secondary chip switches antenna a so that the short-range main chip can use antenna a. Afterwards, after 1s, the short-range secondary chip needs to transmit data frames corresponding to service b, so the short-range secondary chip re-seizes antenna a. After 120ms, the short-range secondary chip no longer has a transmission demand, so the short-range secondary chip stops seizing antenna a. Among them, as Fig. 6A As shown in the figure, during the period when the short-range secondary chip preempts antenna a, the short-range main chip can be in an idle time slot, an RX time slot or a TX time slot. In other words, the short-range secondary chip can preempt antenna a as long as there is a transmission demand. However, the TX / RX time slot preemption strategy will cause the short-range secondary chip to use antenna a for too long, which will greatly affect the smoothness of the business operation of the short-range main chip.
[0147] It should be noted that, while the short-range slave chip occupies antenna a, the short-range master chip can use antenna b to transmit data frames, ensuring that the services processed by the short-range master chip can continue to run.
[0148] The RX time slot preemption strategy means that the short-range slave chip can preempt antenna a when the short-range master chip is not in the TX time slot, so as to use antenna a to transmit data frames. When the short-range slave chip is in the TX time slot, the short-range slave chip stops preempting antenna a. For example, Figure 6B As shown, first, when the short-distance main chip is in an idle time slot, the short-distance secondary chip seizes antenna a to use antenna a to transmit data frames. After 100ms of seizure, there is no transmission demand for the short-distance secondary chip, and antenna a is switched so that the short-distance main chip can use antenna a. Afterwards, after 1s, the short-distance secondary chip has a transmission demand and re-seizes antenna a. After 10ms, since the short-distance main chip is in the TX time slot, the short-distance secondary chip needs to switch antenna a to the short-distance main chip side. After 15ms, the short-distance main chip is no longer in the TX time slot, and the short-distance secondary chip still has a transmission demand, so the short-distance secondary chip switches to use antenna a again. After 95ms, there is no transmission demand for the short-distance secondary chip, and the short-distance secondary chip stops occupying antenna a. Compared with the TX / RX time slot preemption strategy and the idle time slot preemption strategy, the RX time slot preemption strategy ensures the duration and timeliness of the short-range slave chip and the short-range main chip using antenna a. To a certain extent, it ensures the smoothness of the business operation of the short-range main and slave chips, reduces the impact on the business run by the short-range main and slave chips, and ensures the user experience.
[0149] However, considering that in the uplink transmission scenario, the short-range main chip of the electronic device mainly acts as a client to send data frames to the server. After sending the data frame, the short-range main chip needs to receive the confirmation frame sent by the server. If the confirmation frame is not received in time, the short-range main chip may think that the data frame has not been sent successfully and needs to resend the data frame. After the TX time slot of the short-range main chip ends, the short-range secondary chip immediately switches to use antenna a, which may cause the short-range main chip to fail to receive the confirmation frame in time (such as Fig. 7A As shown), the short-distance main chip mistakenly believes that the data frame has not been sent successfully and triggers retransmission, which reduces the throughput of the short-distance main chip and further reduces the performance of the electronic device. It should be noted that although the short-distance main chip can also use antenna b to receive MAC frames while the short-distance secondary chip uses antenna a. However, on the one hand, since only a single antenna is used, the transmission rate is affected, resulting in a high possibility that the short-distance main chip fails to receive the confirmation frame or fails to receive the confirmation frame in time within a certain period of time. On the other hand, while the short-distance main chip uses antenna b to receive the confirmation frame, the short-distance secondary chip uses antenna a to send the MAC frame, which will also interfere with the reception of the confirmation frame, which may cause the short-distance main chip to fail to receive the confirmation frame in time.
[0150] In the downlink transmission scenario, the short-range main chip of the electronic device mainly acts as a server to receive data frames. After receiving the data frame, the short-range main chip sends a confirmation frame corresponding to the data frame. In other words, the short-range main chip mainly sends confirmation frames in the TX time slot. After the confirmation frame is sent, the short-range main chip does not need to receive the confirmation frame. Therefore, the short-range slave chip can directly switch to use antenna a (such as Figure 7B shown).
[0151] Therefore, the present application proposes a new RX time slot preemption strategy. The new RX time slot preemption strategy may include an RX time slot delay preemption strategy and an RX time slot preemption strategy. When the short-range secondary chip of an electronic device needs to transmit a data frame, if the short-range main chip of the electronic device is in an uplink transmission scenario, it indicates that the short-range main chip is more likely to send data frame 1 corresponding to service 1, and after data frame 1 is sent, it is necessary to receive a confirmation frame corresponding to data frame 1. Then, the short-range secondary chip can execute the RX time slot delay preemption strategy, and at the end of the TX time slot of the short-range main chip, delay the preemption of antenna a (such as Figure 7CAs shown), the short-distance main chip can continue to use antenna a (or the first antenna) to receive confirmation frames, ensuring the timely and successful reception of confirmation frames, and avoiding the short-distance main chip not receiving the confirmation frame and causing the retransmission of data frame 1. If the short-distance main chip is in the downlink transmission scenario, it means that the short-distance main chip mainly receives data frame 1, which means that the short-distance main chip is more likely to send the confirmation frame corresponding to data frame 1 in the TX time slot. Then the short-distance slave chip can execute the RX time slot preemption strategy, and directly preempt antenna a at the end of the TX time slot of the short-distance main chip, so as to realize the timely switching of antenna a and avoid the short-distance slave chip failing to preempt antenna a in time (such as Fig.7D As shown in FIG. 1 , the antenna duty cycle of the short-range slave chip decreases, thereby causing the performance of the short-range slave chip to decrease. In the downlink transmission scenario, the delay of the short-range slave chip has little effect on the throughput of the short-range main chip.
[0152] Exemplarily, the electronic device in the present application may be a mobile phone, a tablet computer, a laptop computer, a personal computer (PC), a smart TV (also referred to as a smart screen, a large screen, etc.), or wearable devices such as smart watches and smart bracelets, personal digital assistants (PDA), vehicle-mounted terminals, Internet of Things devices, and other devices with short-range communication chips.
[0153] The following will take the above electronic device as device 1 as an example to introduce the new RX time slot preemption strategy provided by the embodiment of the present application, that is, to introduce how the short-range secondary chip preempts antenna a. Specifically, Figure 8 As shown, the data transmission method may include S201-S213.
[0154] S201 : The short-range main chip of device 1 transmits data frame 1 with device 2 based on antenna a and antenna b. The data frame 1 includes service data 1 .
[0155] S202: The short-range master chip sends transmission status information to the short-range slave chip.
[0156] The transmission status information may include sending status information, receiving status information and idle status information.
[0157] In some embodiments, the short-range master chip may send the latest transmission status information to the short-range slave chip when the transmission status changes. Optionally, each time the short-range master chip uses the antenna to send a MAC frame or receives a MAC frame, it will send transmission status information to the short-range slave chip, so that the short-range slave chip can know the time slot in which the short-range master chip is currently located.
[0158] Among them, optionally, in combination with the above Figure 3AFor example, the short-distance master chip sends status information when it starts sending data frame X, that is, at time 1. When time 2 is reached, the sending state of the short-distance master chip ends and switches to the receiving state. Then the short-distance master chip can send the receiving state information to realize the timely sharing of the transmission state.
[0159] In some embodiments, the short-distance slave chip and the short-distance master chip can communicate directly, so that the transmission status information is directly transmitted between the short-distance master and slave chips. Alternatively, the short-distance slave chip and the short-distance master chip communicate through the AP chip, so that the transmission status information is transmitted between the short-distance master and slave chips through the AP chip. The communication method between the short-distance master and slave chips will be specifically introduced below.
[0160] In a possible design, the short-distance main chip is connected to the short-distance slave chip, so that the short-distance main chip and the short-distance slave chip can communicate directly. In one case, the short-distance main chip and the short-distance slave chip can be connected through pins. Specifically, Fig.9A As shown, pin 1 of the short-distance main chip is connected to pin 2 of the short-distance slave chip through a wire. When the short-distance main chip uses an antenna (i.e., antenna a and / or antenna b) to send a MAC frame, the signal output by pin 1 will become signal 1. The short-distance slave chip detects that the signal of pin 2 has become signal 1, and it can be determined that the short-distance main chip is in a sending state. When the short-distance main chip uses an antenna to receive a MAC frame, the signal output by pin 1 will become signal 2. The short-distance slave chip detects that the signal of pin 2 has become signal 2, and it can be determined that the short-distance main chip is in a receiving state. When the short-distance main chip neither uses an antenna to receive a MAC frame nor uses an antenna to send a MAC frame, the signal output by pin 1 will become signal 3. The short-distance slave chip detects that the signal of pin 2 has become signal 3, and it can be determined that the short-distance main chip is in an idle state.
[0161] Among them, the above-mentioned signal 1, signal 2 and signal 3 are different electrical signals.
[0162] Among them, the number of pins 1 and pins 2 is the same, the number of pins 1 is multiple, the number of pins 2 is also multiple, and pins 1 and pins 2 are connected one by one. Fig.9A As shown, the number of the pins 1 is 2, namely, high pin 1 and low pin 1. The high pin 1 outputs a low level signal, the low pin 1 outputs a high level signal, and the signal 1 is 01, indicating that the short-distance master chip is in the sending state.
[0163] The high-level pin 1 outputs a high-level signal, the low-level pin 1 outputs a low-level signal, and signal 2 is 10, indicating that the short-distance master chip is in the receiving state.
[0164] The high pin 1 outputs a low level signal, the low pin 1 also outputs a low level signal, and the signal 3 is 00, indicating that the short-distance master chip is in an idle state. It should be understood that the number of pins 1 is 2, and the number of pins 2 is also 2, which are high pin 2 and low pin 2 respectively. The high pin 2 is connected to the high pin 1, and the low pin 2 is connected to the low pin 1 (as mentioned above). Fig.9A shown).
[0165] Of course, the above Fig.9A The number of pins 1 and 2 in the figure is only an example. The number of pins 1 and 2 can also be other numbers. For example, if the number of pins 1 and 2 is 3, it only needs to be more than one. This application does not limit the number of pins 1 and 2.
[0166] Optionally, the pin 1 and the pin 2 may be input / output pins, such as GPIO pins.
[0167] In some embodiments, when the short-distance main chip is in a sending state, if the currently sent MAC frame is sent after completion, it will switch to other states, such as an idle state or a receiving state. That is, the signal output by pin 1 of the short-distance main chip will switch from signal 1 to other signals, such as signal 2 or signal 3. For example, after the currently sent data frame 1 is sent, the short-distance main chip enters a receiving state to receive the confirmation frame corresponding to the data frame 1, and the signal output by pin 1 switches from signal 1 to signal 2. In addition, the short-distance secondary chip can count the time when the short-distance main chip is in a sending state (briefly described as the sending time of the short-distance main chip) by switching the transmission state. Similarly, the short-distance secondary chip can count the time when the short-distance main chip is in a receiving state (briefly described as the receiving time of the short-distance main chip), and count the time when the short-distance main chip is in an idle state (briefly described as the idle time of the short-distance main chip).
[0168] In another case, the short-distance master chip and the short-distance slave chip may be connected via a bus (eg Fig. 9B As shown). The bus interface of the short-distance main chip is connected to the bus interface of the short-distance slave chip through a bus. The short-distance main chip can send transmission status information to the short-distance slave chip through the bus. Exemplarily, the short-distance main chip uses an antenna (including antenna a and / antenna b) to send a MAC frame, and the short-distance main chip can send the transmission status information to the short-distance slave chip through the bus. The short-distance main chip uses an antenna to receive a MAC frame, and the short-distance main chip can send the reception status information to the short-distance slave chip so that the short-distance slave chip knows the specific transmission status of the short-distance main chip. When the short-distance main chip currently neither uses an antenna to send a MAC frame nor uses an antenna to receive a MAC frame, the short-distance main chip can send idle state information to the short-distance slave chip.
[0169] In addition, similar to the transmission state switching of the above-mentioned short-distance main chip, the signal output by pin 1 will switch. When the transmission state of the short-distance main chip switches, the short-distance main chip will also send the transmission state information corresponding to the switched transmission state through the bus. For example, when the short-distance main chip starts to use the antenna to send data frame 1, the short-distance main chip sends the transmission state information to the short-distance secondary chip. After the data frame 1 is sent, the short-distance main chip switches to the receiving state to receive the confirmation frame, and the short-distance main chip can send the receiving state information to the short-distance main chip. Correspondingly, the short-distance secondary chip can also count the sending time, receiving time and idle time of the short-distance main chip by switching the transmission state.
[0170] In another possible design, the short-range main chip and the short-range slave chip can communicate indirectly through an AP chip. Fig. 9C As shown, the short-distance master chip can send transmission status information to the AP chip, and the AP chip sends the transmission status information to the short-distance slave chip. Optionally, in this design, the short-distance master chip and the short-distance slave chip may be connected or not connected.
[0171] In addition, when the transmission state of the short-distance main chip is switched, the short-distance main chip will also send the transmission state information corresponding to the switched transmission state through the AP chip. And the short-distance slave chip can also count the sending time, receiving time and idle time of the short-distance main chip through the switching of the transmission state.
[0172] S203 . The AP chip of device 1 sends data frame 2 to the short-range slave chip.
[0173] Exemplarily, the AP chip can determine the short-range communication chip for processing data frame 2 (including business data 2 corresponding to business 2) according to the type of business. For example, the AP chip determines that business 2 corresponding to business data 2 (or alternatively described as first data) belongs to the first preset business, then the AP chip assigns business 2 to the short-range secondary chip. The AP chip determines that business 1 belongs to the second preset business, then the AP chip assigns it to the short-range main chip. Among them, the first preset business and the second preset business are preset, such as the first preset business is a private business (such as a multi-screen collaborative business), and the first preset business is all businesses except the second preset business, such as a three-party business. Of course, the AP chip can also determine the chip that processes the business according to other rules, for example, it can be randomly assigned, and this application does not limit it.
[0174] S204: The short-range slave chip determines whether the short-range master chip is in an uplink transmission scenario.
[0175] In the embodiment of the present application, when it is determined that the short-distance main chip is not in the uplink transmission scenario, it indicates that the short-distance main chip is currently mainly engaged in downlink services, and the MAC frames sent by the short-distance main chip are mainly confirmation frames. Since the short-distance main chip does not need to receive the confirmation frame after sending the confirmation frame, the short-distance secondary chip can execute the RX time slot preemption strategy without triggering the RX time slot preemption delay, and can immediately switch to use antenna a, and the short-distance secondary chip can execute S205.
[0176] When it is determined that the short-range main chip is in an uplink transmission scenario, it indicates that the short-range main chip is currently mainly used for uplink services, and the MAC frames sent by the short-range main chip are mainly data frames. After the short-range main chip uses the antenna to send service data 1 (ie, data frame 1), it needs to use the antenna to receive confirmation frames. Therefore, the short-range secondary chip can execute the RX time slot delay preemption strategy, and needs to trigger the RX time slot preemption delay, and can execute S209.
[0177] In some embodiments, the short-range slave chip can determine whether the short-range main chip is in an uplink transmission scenario based on at least one of the following information: information about the services processed by the short-range main chip, the number of data frame 1 transmissions of the short-range main chip (including the number of data frames 1 sent and the number of data frames 1 received), and the transmission time of the short-range main chip (including the sending time and the receiving time).
[0178] The information of the above-mentioned service may be an identifier of the service, that is, an identifier of the application to which the service belongs. For example, if the service is a video playback service and the application to which the video playback service belongs is a video application, then the identifier of the service is an identifier of the video application. Alternatively, the information of the service may be an identifier of a service scenario. For example, if the service is a download service and the service scenario corresponding to the download service is a download scenario, then the identifier of the service may be an identifier of a download scenario. Of course, the information of the service may also be other information that can indicate the service, such as an identifier of a process corresponding to the service, which is not limited by the present application.
[0179] The following specifically introduces several possible implementation methods of determining whether the short-distance main chip is in an uplink transmission scenario by using information about the services processed by the short-distance main chip, the number of data frames 1 transmitted by the short-distance main chip, and the transmission time of the short-distance main chip.
[0180] In one implementation, the short-distance slave chip can determine whether the short-distance main chip is in an uplink transmission scenario based on the information of the service processed by the short-distance main chip. The short-distance slave chip can search the preset table 1 for the transmission type corresponding to the information of the service, and the transmission type is an uplink transmission type or a downlink transmission type. Thereafter, when the transmission type is an uplink transmission type, the short-distance slave chip can determine that the short-distance main chip is in an uplink transmission scenario. When the transmission type is a downlink transmission type, the short-distance slave chip can determine that the short-distance main chip is in a downlink transmission scenario.
[0181] In another implementation, the short-distance secondary chip can determine whether the short-distance main chip is in an uplink transmission scenario based on the number of data frames 1 transmitted by the short-distance main chip. In one example, the short-distance secondary chip can determine whether the number of data frames 1 sent by the short-distance main chip is greater than or equal to the number of data frames 1 received. When the number of data frames 1 sent is greater than or equal to the number of data frames 1 received, it indicates that the short-distance main chip mainly sends data frames, and the short-distance secondary chip can determine that the short-distance main chip is in an uplink transmission scenario. When the number of data frames 1 sent is less than the number of data frames 1 received, it indicates that the short-distance main chip mainly receives data frames, and the short-distance secondary chip can determine that the short-distance main chip is in a downlink transmission scenario. In addition, optionally, if the number of data frames 1 sent is equal to the number of data frames 1 received, the short-distance secondary chip can also determine that the short-distance main chip is in a downlink transmission scenario, and this application does not limit it.
[0182] In another example, when the difference between the number of data frames 1 sent and the number of data frames 1 received is greater than or equal to a preset number, it indicates that the short-distance main chip mainly sends data frames, and the short-distance secondary chip can determine that the short-distance main chip is in an uplink transmission scenario. When the difference between the number of data frames 1 sent and the number of data frames 1 received is less than a preset number, the short-distance secondary chip can determine that the short-distance main chip is in a downlink transmission scenario. The preset number can be 0 or a positive integer.
[0183] In another example, the short-distance slave chip can calculate the ratio between the number of data frames 1 sent and the number of data frames 1 received. When the ratio is greater than or equal to the preset ratio, it indicates that the short-distance main chip mainly sends data frames, and the short-distance slave chip can determine that the short-distance main chip is in an uplink transmission scenario. When the ratio is less than the preset ratio, the short-distance slave chip can determine that the short-distance main chip is in a downlink transmission scenario. The preset ratio is greater than 1 or equal to 1.
[0184] The number of data frames 1 sent may be the number of data frames sent by the short-distance master chip within a preset time 1 before the current time. The number of data frames 1 received may be the number of data frames received by the short-distance master chip within a preset time 1 before the current time. The preset time 1 may be a unit time. Optionally, the number of data frames sent may be the number of data frames successfully sent. The number of data frames received may be the number of data frames successfully received.
[0185] It should be noted that the difference or ratio between the above-mentioned number of transmissions and the number of receptions is only an example of the difference value between the number of transmissions and the number of receptions (i.e., the second difference value), and the present application does not limit the determination process of the difference value. Accordingly, the above-mentioned preset ratio and preset number are only an example of the second preset difference value.
[0186] In another implementation, the short-distance secondary chip can determine whether the short-distance main chip is in an uplink transmission scenario based on the transmission time of the short-distance main chip. Exemplarily, the short-distance secondary chip can determine whether the short-distance main chip is in an uplink transmission scenario by judging whether the transmission time of the short-distance main chip is greater than or equal to the receiving time. Alternatively, the short-distance secondary chip can use the difference between the transmission time and the receiving time of the short-distance main chip to determine whether the short-distance main chip is in an uplink transmission scenario. Alternatively, the short-distance secondary chip can determine whether the short-distance main chip is in an uplink transmission scenario by the ratio between the transmission time and the receiving time. Specifically, the process of the short-distance secondary chip determining whether the short-distance main chip is in an uplink transmission scenario based on the transmission time and the receiving time can refer to the above-mentioned process of determining whether the short-distance main chip is in an uplink transmission scenario based on the number of data frames 1 sent by the short-distance main chip and the number of data frames 1 received.
[0187] The sending time of the short-distance master chip may be the time when the short-distance master chip is in the sending state within the preset time 2 before the current time. The receiving time may be the time when the short-distance master chip is in the receiving state within the preset time 2 before the current time.
[0188] It should be noted that the above-mentioned difference or ratio between the sending time and the receiving time is only an example of the difference value between the sending time and the receiving time (ie, the first difference value), and the present application does not limit the process of determining the difference value.
[0189] Optionally, the preset time 1 and the preset time 2 may be the same or different.
[0190] The above describes an implementation method for determining the transmission scenario of the short-distance main chip based on one of the information of the service processed by the short-distance main chip, the number of data frames 1 transmitted by the short-distance main chip, and the transmission time of the short-distance main chip. The following will continue to describe an implementation method for determining the transmission scenario of the short-distance main chip based on two of the information of the service processed by the short-distance main chip, the number of data frames transmitted by the short-distance main chip, and the transmission time of the short-distance main chip.
[0191] In another implementation, the short-distance slave chip can determine whether the short-distance main chip is in an uplink transmission scenario based on the information of the service processed by the short-distance main chip and the number of data frames transmitted by the short-distance main chip. In one example, the short-distance slave chip can determine that the short-distance main chip is in an uplink transmission scenario when the transmission type corresponding to the service information indicates an uplink transmission type and the number of data frames 1 sent is greater than or equal to the number of data frames 1 received. Otherwise, the short-distance slave chip can determine that the short-distance main chip is in a downlink transmission scenario.
[0192] In another example, the short-distance secondary chip can determine that the short-distance main chip is in an uplink transmission scenario when the transmission type corresponding to the service information indicates an uplink transmission type, and the difference between the number of data frames 1 sent and the number of data frames 1 received is greater than or equal to a preset number. Otherwise, the short-distance secondary chip can determine that the short-distance main chip is in a downlink transmission scenario. Or the short-distance secondary chip can look up the difference 1 corresponding to the service information from the preset table 2. When the difference between the number of data frames 1 sent and the number of data frames 1 received is greater than or equal to the difference 1, it is determined that the short-distance main chip is in an uplink transmission scenario. Otherwise, it is determined that the short-distance main chip is in a downlink transmission scenario.
[0193] In another example, the short-distance secondary chip can determine that the short-distance main chip is in the uplink transmission scenario when the transmission type corresponding to the service information indicates the uplink transmission type, and the ratio between the number of data frames 1 sent and the number of data frames 1 received is greater than or equal to the preset ratio. Otherwise, the short-distance secondary chip can determine that the short-distance main chip is in the downlink transmission scenario. Or the short-distance secondary chip can look up the ratio 1 corresponding to the service information from the preset table 3. When the ratio between the sending time and the receiving time is greater than or equal to the ratio 1, it is determined that the short-distance main chip is in the uplink transmission scenario. Otherwise, it is determined that the short-distance main chip is in the downlink transmission scenario.
[0194] In another implementation, the short-distance slave chip can determine whether the short-distance main chip is in the uplink transmission scenario based on the information of the service processed by the short-distance main chip and the transmission time of the short-distance main chip. The determination process is similar to the process of determining the transmission scenario based on the information of the service processed by the short-distance main chip and the transmission number of the data frame 1 of the short-distance main chip, and will not be repeated here.
[0195] In another implementation, the short-distance slave chip can determine the transmission scenario of the short-distance master chip based on the transmission time of the short-distance master chip and the number of data frames 1 transmitted by the short-distance master chip. In one example, when the number of data frames 1 sent is greater than or equal to the number of data frames 1 received, and the sending time is greater than or equal to the receiving time, the short-distance slave chip determines that the short-distance master chip is in the uplink transmission scenario. Otherwise, the short-distance slave chip determines that the short-distance master chip is in the downlink transmission scenario.
[0196] In another example, when the difference between the number of data frames 1 sent and the number of data frames 1 received (hereinafter referred to as the first difference) is greater than or equal to the preset difference 1, and the difference between the sending time and the receiving time (hereinafter referred to as the second difference) is greater than or equal to the preset difference 2, the short-distance slave chip determines that the short-distance master chip is in the uplink transmission scenario. Otherwise, the short-distance slave chip determines that the short-distance master chip is in the downlink transmission scenario.
[0197] In another example, when the ratio between the number of data frames 1 sent and the number of data frames 1 received (hereinafter referred to as the first ratio) is greater than or equal to the preset ratio 1, and the ratio between the sending time and the receiving time (hereinafter referred to as the second ratio) is greater than or equal to the preset ratio 2, the short-distance slave chip can determine that the short-distance master chip is in the uplink transmission scenario. Otherwise, the short-distance slave chip determines that the short-distance master chip is in the downlink transmission scenario.
[0198] In another example, the short-distance slave chip performs a weighted summation of the first difference and the second difference, that is, according to M1*S1+M2*S2, a value of 1 is obtained. Among them, M1 represents the first difference, S1 represents the preset weight 1 corresponding to the first difference, M2 represents the second difference, and S2 represents the preset weight 2 corresponding to the second difference. The larger the value 1 is, the higher the possibility that the short-distance master chip is in the uplink transmission scenario. When the value 1 is greater than or equal to the preset value 1, it is determined that the short-distance master chip is in the uplink transmission scenario. When the value 1 is less than the preset value 1, it is determined that the short-distance master chip is in the downlink transmission scenario.
[0199] In another example, the short-distance slave chip can perform a weighted summation of the first ratio and the second ratio, that is, according to N1*S3+N2*S4, a value of 2 is obtained. Among them, N1 represents the first ratio, S1 represents the preset weight 3 corresponding to the first ratio, M2 represents the second ratio, and S2 represents the preset weight 4 corresponding to the second ratio. The larger the value 2 is, the higher the possibility that the short-distance master chip is in the uplink transmission scenario. When the value 2 is greater than or equal to the preset value 2, it is determined that the short-distance master chip is in the uplink transmission scenario. When the value 2 is less than the preset value 2, it is determined that the short-distance master chip is in the downlink transmission scenario.
[0200] The above describes an implementation method for determining the transmission scenario of the short-distance main chip based on two types of information, namely, information about the service processed by the short-distance main chip, the number of transmissions of the data frame 1 of the short-distance main chip, and the transmission time of the short-distance main chip. The following will continue to describe an implementation method for determining the transmission scenario of the short-distance main chip based on all the information, namely, information about the service processed by the short-distance main chip, the number of transmissions of the data frame of the short-distance main chip, and the transmission time of the short-distance main chip.
[0201] In another implementation, the short-distance secondary chip can determine whether the short-distance main chip is in an uplink transmission scenario based on the information of the service processed by the short-distance main chip, the number of data frames 1 sent by the short-distance main chip, the number of data frames 1 received, the sending time, and the receiving time. In one example, the short-distance main chip can determine the value 1 based on the number of data frames 1 sent by the short-distance main chip, the number of data frames 1 received, the sending time, and the receiving time. When the transmission type corresponding to the information of the service indicates the uplink transmission type, and the value 1 is greater than or equal to the preset value 1, the short-distance secondary chip can determine that the short-distance main chip is in an uplink transmission scenario. When the transmission type corresponding to the information of the service indicates the downlink transmission type, or the value 1 is less than the preset value 1, it is determined that the short-distance main chip is in a downlink transmission scenario.
[0202] Alternatively, the short-distance slave chip may search for a target value 1 corresponding to the service information in the preset table 4. If the value 1 is greater than or equal to the target value 1, it is determined that the short-distance master chip is in an uplink transmission scenario. Otherwise, it is determined that the short-distance master chip is in a downlink transmission scenario.
[0203] In another example, the short-distance slave chip can determine the value 2 according to the number of data frames 1 sent by the short-distance master chip, the number of data frames 1 received, the sending time, and the receiving time. When the transmission type corresponding to the information of the service indicates an uplink transmission type, and the value 2 is greater than or equal to the preset value 2, the short-distance slave chip can determine that the short-distance master chip is in an uplink transmission scenario. Otherwise, the short-distance slave chip determines that the short-distance master chip is in an uplink transmission scenario.
[0204] Alternatively, the short-distance secondary chip can search the target value 2 corresponding to the service information from the preset table 5. When the value 2 is greater than or equal to the target value 2, it is determined that the short-distance primary chip is in the uplink transmission scenario. Otherwise, it is determined that the short-distance primary chip is in the downlink transmission scenario.
[0205] Of course, the above introduction on how to determine the possible implementation method of the transmission scenario of the short-distance main chip based on one or more information including the information of the business processed by the short-distance main chip, the transmission number of data frame 1 of the short-distance main chip and the transmission time of the short-distance main chip is only an example. The short-distance secondary chip can also determine the transmission scenario of the short-distance main chip according to other implementation methods, and this application does not limit it.
[0206] The above describes the process of determining the transmission scenario that the short-range main chip is in. The following first describes how the short-range secondary chip preempts antenna a after S204 when the transmission scenario is a downlink transmission scenario.
[0207] S205, when the transmission status information sent by the short-distance master chip switches from the transmission status information to other status information, the short-distance slave chip connects the first end and the second end of the single-pole double-throw switch 1. The first end is connected to the antenna a, and the second end is connected to the short-distance slave chip.
[0208] S206 , when the transmission state sent by the short-distance master chip is receiving state information or idle state information, the short-distance slave chip connects the first end and the second end of the single-pole double-throw switch 1 .
[0209] The other status information mentioned above may be receiving status information or idle status information.
[0210] In the embodiment of the present application, when the short-distance slave chip determines that the short-distance main chip is mainly a downlink transmission scenario, if the current transmission status information of the short-distance main chip is the sending status information, it indicates that the MAC frame currently sent by the short-distance main chip may be a confirmation frame, and there is no need to set a preemption delay. The short-distance slave chip waits until the sending state of the short-distance main chip ends, that is, after switching from the sending state to another state (or called the first state), the first end and the second end of the single-pole double-throw switch 1 can be directly turned on (such as Fig. 10A As shown), antenna a is switched to transmit service data 2 using antenna a.
[0211] When it is determined that the short-distance main chip is mainly for downlink transmission scenarios, if the current transmission state of the short-distance main chip is receiving state or idle state, the short-distance slave chip can directly connect the first end and the second end of the single-pole double-throw switch 1 to seize antenna a.
[0212] The SPDT switch 1 also has a third terminal, which is connected to the short-distance main chip. Fig. 10B As shown), the short-range main chip can use antenna a.
[0213] In some embodiments, after the short-range slave chip has occupied antenna a for a certain period of time, if the short-range main chip switches to the sending state, the short-range slave chip needs to stop occupying antenna a. After the short-range main chip switches from the sending state to other states, if there is still a transmission demand, the short-range slave chip can re-occupy antenna a. For example, if Fig.11AAs shown, at time 3, there is a transmission demand for the short-distance secondary chip, that is, there is a MAC frame to be transmitted (such as data frame 2). The short-distance secondary chip determines that the short-distance main chip is in a downlink transmission scenario, and the short-distance main chip is in an idle state. The short-distance secondary chip directly seizes antenna a. After seizing antenna a for 10ms, the short-distance main chip enters the sending state. When the sending state of the short-distance main chip ends, since the short-distance secondary chip still has a transmission demand, the short-distance secondary chip can re-seize antenna a. Optionally, when the sending state of the short-distance main chip ends, the short-distance secondary chip can re-determine the transmission scenario in which the short-distance secondary chip is located. In other words, as long as the short-distance secondary chip has a transmission demand, it can determine the transmission scenario and transmission state in which the short-distance secondary chip is located, so as to use the transmission state and the transmission state to determine whether antenna a can be seized, thereby ensuring the timeliness and accuracy of the antenna a seizure.
[0214] After re-seizing antenna a, after 75ms, if there is no MAC frame to be transmitted by the short-range slave chip, the short-range slave chip can stop seizing antenna a. After 1s, the short-range slave chip has a transmission demand again, and the short-range slave chip determines that the short-range main chip is in the downlink transmission scenario and is in the sending state. After 10ms, the sending state of the short-range main chip ends. The short-range slave chip can switch antenna a again.
[0215] In some embodiments, the above describes that the short-range secondary chip can determine the transmission scenario of the short-range main chip when there is a transmission demand, so as to utilize the transmission scenario, and determine whether to seize antenna a in combination with the transmission status of the short-range main chip, thereby ensuring that the short-range main chip can use antenna a to transmit business data in a timely manner, and also ensuring that the short-range secondary chip can use antenna a in a timely manner. Of course, the short-range secondary chip can determine whether to seize antenna a based on the transmission scenario and transmission status of the short-range main chip when the short-range main chip is not in a sending state, without considering whether the short-range secondary chip has a transmission demand, so that the short-range secondary chip can use antenna a in a timely manner.
[0216] In some embodiments, the short-range slave chip can be connected via a GPIO pin (such as the above Figure 5 The Switch_sel pin shown in the figure is connected to the first end of the above-mentioned single-pole double-throw switch 1 to output a control signal through the GPIO pin to trigger the switching of the single-pole double-throw switch 1.
[0217] In some embodiments, the short-distance slave chip can be connected to the second end of the single-pole double-throw switch 1 through the ANT pin to output a radio frequency signal through the ANT pin to achieve transmission of service data. In addition, the short-distance master chip can be connected to the third end of the single-pole double-throw switch 1 through a core (such as ANT) pin to output a radio frequency signal through the core pin to achieve transmission of service data.
[0218] It should be noted that the above-mentioned switching of antenna a through the single-pole double-throw switch 1 is only an example. The switching of antenna a can also be achieved through other types of switches (such as other single-pole multi-throw switches, or single-pole single-throw switches). In other words, the short-range auxiliary chip can achieve the connection between the short-range auxiliary chip and the antenna a, or the connection between the short-range main chip and the antenna a through the switch. The type of the switch is not limited, as long as it can achieve the switching of antenna a.
[0219] In addition, the short-distance slave chip may not control the switching of the single-pole double-throw switch 1, but the short-distance master chip may control the single-pole double-throw switch 1. Accordingly, the first end of the single-pole double-throw switch 1 may be connected to the short-distance master chip instead of the short-distance slave chip. In addition, the operations performed by the above-mentioned short-distance master chip may also be replaced by the description that they are performed by the short-distance slave chip. Accordingly, the short-distance slave chip may perform the above-mentioned operations by the short-distance master chip.
[0220] S207 . The short-range slave chip transmits data frame 2 to device 3 based on antenna a.
[0221] The data frame 2 includes service data 2 (or referred to as second data).
[0222] S208 . The short-range main chip transmits data frame 1 to device 2 based on antenna b.
[0223] It should be noted that, during the period when the short-range secondary chip uses antenna a, the short-range primary chip may be in a transmitting state or a receiving state, and of course, may also be in an idle state. That is, the above S208 is an optional step.
[0224] The above describes the situation where the short-distance master chip does not need to set the preemption delay when the short-distance slave chip is in the downlink transmission scenario. Of course, after S204, the short-distance master chip may also be in the uplink transmission scenario. The following will continue to describe the process of setting the preemption delay when the short-distance master chip is in the uplink transmission scenario.
[0225] S209, when the transmission status information sent by the short-distance master chip is switched from the transmission status information to other status information, if the target delay time 1 has passed, the short-distance slave chip turns on the first end and the second end of the single-pole double-throw switch 1.
[0226] S210 , when the transmission state information sent by the short-distance master chip switches from the receiving state information to the idle state information, the short-distance slave chip connects the first end and the second end of the single-pole double-throw switch 1 .
[0227] S211 . When the transmission status information sent by the short-distance master chip is idle status information, the short-distance slave chip connects the first end and the second end of the single-pole double-throw switch 1 .
[0228] In the embodiment of the present application, when the short-distance secondary chip determines that the short-distance main chip is mainly an uplink transmission scenario, if the current transmission state of the short-distance main chip is a sending state, it indicates that the MAC frame currently sent by the short-distance main chip is a data frame with high performance, and the short-distance main chip also needs to receive the corresponding confirmation frame. In order to ensure that the short-distance main chip can successfully receive the confirmation frame in a timely manner, the short-distance secondary chip waits until the sending state of the short-distance main chip ends, and after the target delay time 1 (or replacement description as the first target time), it switches antenna a to achieve delayed preemption of antenna a, improve the success of the short-distance main chip in receiving the confirmation frame, and avoid the short-distance main chip from repeatedly sending business data due to failure to receive the confirmation frame in time, thereby causing the throughput of the short-distance main chip to decrease. In addition, it can be ensured that the short-distance secondary chip can use antenna a in a timely manner.
[0229] In the uplink transmission scenario, if the current transmission state of the short-distance main chip is the receiving state, the short-distance main chip may currently be receiving a confirmation frame. In order to ensure the successful reception of the confirmation frame, the short-distance slave chip can wait until the transmission state of the short-distance main chip switches from the receiving state to the idle state, that is, when the receiving state ends, before occupying antenna a. In addition, if the transmission state of the short-distance main chip switches from the receiving state to the sending state, the short-distance slave chip can occupy antenna a according to the above S209.
[0230] When the short-range main chip is in an uplink transmission scenario, if the current transmission state of the short-range main chip is an idle state, indicating that the short-range main chip does not need to use antenna a currently, the short-range main chip can directly seize antenna a.
[0231] For example, the target delay time 1 is 15ms. Fig. 11BAs shown, at time 4, the short-distance secondary chip has a transmission demand, and the short-distance secondary chip determines that the short-distance main chip is in the uplink transmission scenario and is in an idle state, then the short-distance secondary chip can directly seize antenna a. After 10ms, the short-distance main chip switches to the sending state, and the short-distance secondary chip stops seizing antenna a. After that, after 15ms, the sending state of the short-distance main chip ends. After the short-distance secondary chip waits for 15ms, it believes that the short-distance main chip has received the confirmation frame, and then it can re-seize antenna a. Then after 75ms, the short-distance secondary chip ends the transmission of the MAC frame, and there is no transmission demand, so it can stop seizing antenna a. After that, after 1s, the short-distance secondary chip has a MAC frame to be transmitted, and the short-distance secondary chip determines that the short-distance main chip is in the uplink transmission scenario and is in the sending state. After 15ms, the sending state of the short-distance main chip ends. After another delay of 15ms, the short-distance secondary chip re-seizes antenna a.
[0232] In some embodiments, the target delay time 1 is determined based on the transmission time of the SIFS and ACK frames, and the target delay time 1 is greater than or equal to the sum of the transmission time of the SIFS and ACK frames (as shown in the above Figure 3A The period starting from time 2 and ending at time 5).
[0233] Optionally, in the uplink transmission scenario, the short-distance slave chip can directly set the default value to the target delay time 1. Or the short-distance slave chip can determine the target delay time 1 according to the actual situation. In the uplink transmission scenario of the short-distance master chip, the target delay time 1 is positively correlated with the number of data frames sent and / or the sending time. If the number of data frames sent is larger and / or the sending time is longer, it means that the amount of data transmitted in the uplink is larger, and the interval between two data frames (such as the above) is larger. Figure 3A The shorter the target delay time 1 is, the longer the target delay time 1 can be. Because if the target delay time 1 is long, the target delay time 1 can cover the interval between two data frames. When the target delay time 1 ends or has not ended, the short-range main chip has switched to the sending state, and the short-range secondary chip does not need to switch antenna a, thereby avoiding frequent switching of antenna a. From an overall perspective, the transmission performance of device 1 is guaranteed.
[0234] Moreover, if the amount of data transmitted in the uplink is smaller, the interval between the two data frames is longer. When the target delay time 1 is shorter, when the target delay time 1 ends, the short-range main chip has not yet switched to the sending state, and the short-range slave chip can switch to use antenna a, so that the short-range slave chip can use antenna a during the time slot between the two data frames, thereby ensuring the transmission efficiency of the short-range slave chip and, from an overall perspective, also improving the transmission performance of device 1.
[0235] In one case, the transmission scenario value can be calculated based on the number of transmissions of the short-distance main chip. For example, the difference or ratio between the number of transmissions and the number of receptions is calculated to obtain the transmission scenario value. In another case, the transmission scenario value can be calculated based on the transmission time of the short-distance main chip. For example, the difference or ratio between the transmission time and the reception time is calculated to obtain the transmission scenario value.
[0236] In another case, the transmission scenario value may be determined based on the number of transmissions and the transmission time of the short-distance master chip. For example, the short-distance slave chip may perform a weighted summation of the number of transmissions and the transmission time to obtain a transmission scenario value, which may be the above-mentioned value 1 or value 2. Alternatively, the transmission scenario value may include a value calculated based on the number of transmissions of the short-distance master chip and a value calculated based on the transmission time, so as to find the target delay time 1 corresponding to these two values.
[0237] It should be noted that in the uplink transmission scenario, although the short-distance main chip is in the sending state, there is a possibility that the MAC frame sent by the short-distance main chip is not a data frame. Accordingly, after the sending state ends, the short-distance main chip may not switch to the receiving state within a certain period of time. For example, in the uplink transmission scenario, the short-distance main chip sends a confirmation frame in the sending state. After the sending state ends, the short-distance main chip can switch to the receiving state. Based on this, the short-distance secondary chip sets the target delay time 1, instead of directly occupying antenna a after determining that the receiving state of the short-distance main chip ends, that is, it is considered that the short-distance main chip has received the confirmation frame.
[0238] In some embodiments, in an uplink transmission scenario, if the current transmission state of the short-range main chip is a receiving state, the short-range slave chip can not only wait to switch to an idle state and then seize the antenna as described above, but also delay the seizure. The short-range slave chip can seize antenna a after the target delay time 2 (or the second target time).
[0239] Optionally, in the uplink transmission scenario, the short-distance slave chip can directly set the default value to the target delay time 2. Or the short-distance slave chip can determine the target delay time 2 according to the actual situation. The target delay time 2 is determined based on the SIFS and the transmission time of the ACK frame, which is greater than or equal to the transmission time of the ACK frame. Among them, the determination process of the target delay time 2 can refer to the reference process of the target delay time 2 above, which will not be repeated here.
[0240] S212 . The short-range slave chip transmits data frame 2 to device 3 based on antenna a.
[0241] S213 . The short-range main chip transmits data frame 1 to device 2 based on antenna b.
[0242] Among them, S213 is similar to the above-mentioned S208 and is also optional.
[0243] In the embodiment of the present application, when there is a transmission demand for the short-distance secondary chip, the short-distance secondary chip determines the transmission scenario of the short-distance main chip, so that when the short-distance main chip is in the uplink transmission scenario, if the short-distance main chip is in the sending state, the short-distance secondary chip delays to seize antenna a, ensuring the success of the confirmation frame reception, thereby ensuring the throughput of the short-distance main chip. And ensure the duration and timeliness of the short-distance main and secondary chips using antenna a, so as to ensure the transmission efficiency of business data (or data frames, messages). When the short-distance secondary chip is in the downlink transmission scenario, the short-distance secondary chip does not need to delay to seize antenna a, avoiding negative benefits caused by delays.
[0244] In some embodiments, the firmware module (such as the dual-chip coexistence strategy module) on the short-range slave chip can determine whether to delay the preemption of antenna a based on the transmission scenario of the short-range master chip, thereby ensuring the use time of the short-range master and slave chips and avoiding reducing the throughput of the short-range master chip. Figure 2 The structure shown in the figure takes the above service 1 being a video call service, service 2 being a collaborative service, and the transmission scenario being determined based on the transmission quantity, transmission time, and transmission type of the short-distance main chip as an example to describe the process in detail. Fig.12 As shown, the process is as follows:
[0245] S1. The short-range main chip transmits data frames corresponding to the video call service with device 2 based on antenna a and antenna b.
[0246] S2. The QOE information identification module calls the short-distance main chip driver every preset time 1 to obtain the transmission quantity of the data frame of the short-distance main chip.
[0247] S3. The QOE information identification module sends the transmission quantity of the data frame to the dual-chip coexistence service module.
[0248] Optionally, after receiving a request sent by the short-distance slave chip through the dual-chip coexistence service module, the QOE information identification module may count the number of data frame transmissions of the short-distance master chip and send the transmission number to the dual-chip coexistence service module.
[0249] S1-S3 above introduced the process of determining the transmission quantity of the data frame of the short-distance main chip. The following will introduce the process of determining the transmission type in combination with S4-S6.
[0250] S4. The scene recognition module recognizes information of the video call service processed by the short-range main chip.
[0251] Exemplarily, the scene recognition module may also periodically recognize the services processed by the short-range main chip.
[0252] S5. The scene recognition module searches for the transmission type corresponding to the information of the video call service from the preset table 1.
[0253] The transmission type includes an uplink transmission type and a downlink transmission type. If the transmission type corresponding to the video call service is an uplink transmission type, it indicates that the short-distance main chip is more likely to be mainly used for uplink services. If the transmission type corresponding to the video call service is a downlink transmission type, it indicates that the short-distance main chip is more likely to be mainly used for downlink services.
[0254] S6. The scene recognition module sends the transmission type corresponding to the information of the video call service to the dual-chip coexistence service module.
[0255] S7. The dual-chip coexistence service module calls the secondary chip driver to send the transmission type and the transmission quantity of the data frames corresponding to the information of the video call service to the dual-chip coexistence strategy module.
[0256] It should be noted that the serial numbers of the steps in the present application do not represent the execution order of the steps. For example, the above S1-S3 can be executed concurrently with the above S4-S6, or can be executed after or before S4-S6. This application does not limit this.
[0257] S8. The short-range master chip sends transmission status information to the dual-chip coexistence strategy module.
[0258] The above transmission status information is idle state, sending state or receiving state.
[0259] In the embodiment of the present application, the short-range master chip can send transmission status information to the short-range slave chip when the transmission status changes, thereby realizing timely sharing of the transmission status.
[0260] S9. The dual-chip coexistence strategy module determines the transmission time of the short-distance main chip based on the transmission status information.
[0261] The transmission time includes idle time, sending time and receiving time. The idle time may be the total time that the short-distance main chip is in an idle state within the preset time 2. The sending time may be the total time that the short-distance main chip is in a sending state within the preset time 2. The receiving time may be the total time that the short-distance main chip is in a receiving state within the preset time 2.
[0262] Optionally, the preset time 2 may be a unit time.
[0263] S8-S9 above introduces the process of determining the transmission time of the short-distance main chip. The dual-chip coexistence strategy module can periodically obtain the transmission quantity, transmission time and service information of the data frame of the short-distance main chip, so as to determine the transmission scenario of the short-distance main chip by using the transmission quantity, transmission time and service information. The process of determining the transmission scenario will be further described below.
[0264] S10. The dual-chip coexistence strategy module calculates a first ratio of the number of data frames sent by the short-range master chip to the number of data frames received by the short-range master chip.
[0265] S11. The dual-chip coexistence strategy module calculates a second ratio of the sending time and the receiving time of the short-range main chip.
[0266] S12, the dual chip coexistence strategy module calculates a value of 2 based on N1*S3+N2*S4, wherein N1 represents a first ratio, S3 represents a preset weight of 3, N2 represents a second ratio, and S3 represents a preset weight of 4.
[0267] In the embodiment of the present application, since the short-distance main chip will also share the transmission status with the short-distance secondary chip when transmitting non-data frames, the sending time of the short-distance main chip counted by the short-distance secondary chip may not only include the time of sending data frames, and the receiving time may not only include the time of receiving data frames, so the ratio of sending time to receiving time (i.e., the above-mentioned second wallpaper) may not accurately reflect whether the short-distance main chip is mainly sending or receiving business data. Therefore, it is necessary to combine the ratio of the number of sending / receiving data frames of the short-distance main chip to determine whether the short-distance main chip is mainly sending business data, so as to ensure the accuracy of the transmission scenario determination.
[0268] In addition, since the short-distance communication chip driver (such as the short-distance main chip driver) will cache data frames, the short-distance communication chip driver may cache some data frames that need to be sent, resulting in a decrease in the number of data frames sent. Similarly, the short-distance communication chip driver may cache some data frames that need to be received, resulting in a decrease in the number of data frames received. Therefore, the ratio of the number of sent and received may not accurately reflect whether the short-distance main chip is mainly sending or receiving business data. Therefore, it is necessary to combine the ratio of the short-distance main chip's sending time and receiving time to determine whether the short-distance main chip is mainly sending business data.
[0269] S13. The dual-chip coexistence strategy module determines whether the transmission type is an uplink transmission type, and determines whether the value 2 is greater than or equal to the preset value 2.
[0270] When the transmission type is an uplink transmission type and the value 2 is greater than or equal to the preset value 2, the dual-chip coexistence strategy module determines that the short-range main chip is in an uplink transmission scenario and needs to set a preemption delay, and S14 can be executed.
[0271] When the transmission type is a downlink transmission type, or the value 2 is less than the preset value 2, the dual-chip coexistence strategy module determines that the short-range main chip is in a downlink transmission scenario, and there is no need to set a preemption delay, and S21 can be executed.
[0272] S14. The dual-chip coexistence strategy module sends strategy information 1 corresponding to the value 2 to the data transmission arbitration module.
[0273] Among them, the policy information 1 corresponding to the value 2 indicates that the data transmission arbitration module executes the RX time slot delay preemption strategy corresponding to the value 2, and the RX time slot delay preemption strategy indicates that according to the delay time corresponding to the value 2, that is, the target delay time 1, the antenna a is delayed and preempted, thereby realizing the setting of the delay time. Exemplarily, the preemption process can refer to the content introduced in S16-S18 below.
[0274] S15. The dual-chip coexistence strategy module sends transmission status information to the data transmission arbitration module.
[0275] S16, when the transmission status information is the sending status information, if the short-distance master chip switches from the sending status information to other status information, after the target delay time 1 corresponding to the value 2, the data transmission arbitration module switches the single-pole double-throw switch 1.
[0276] S17, when the transmission state information is the receiving state information, if the short-distance master chip switches from the receiving state information to the idle state information, the data transmission arbitration module switches the single-pole double-throw switch 1.
[0277] S18. When the transmission state information is idle state information, the data transmission arbitration module switches the single-pole double-throw switch 1.
[0278] S19. The short-range secondary chip transmits data frames corresponding to the collaborative service based on antenna a.
[0279] S20. The short-range main chip transmits data frames corresponding to the video call service based on antenna b.
[0280] The above describes the process of the short-distance slave chip executing the RX time slot delay preemption strategy corresponding to the value 2 in the uplink transmission scenario. Of course, there is also a situation where the short-distance master chip is in the downlink transmission scenario. The following will continue to describe the process of the short-distance slave chip executing the RX time slot preemption strategy in the downlink transmission scenario.
[0281] S21. The dual-chip coexistence strategy module sends strategy information 2 to the data transmission arbitration module.
[0282] Among them, the strategy information 2 instructs the data transmission arbitration module to execute the RX time slot preemption strategy, and the RX time slot preemption strategy indicates that there is no need to delay the preemption of antenna a. For example, the preemption process can refer to the content introduced in S23-S24 below.
[0283] S22. The dual-chip coexistence strategy module sends transmission status information to the data transmission arbitration module.
[0284] S23 . When the transmission status information is receiving status information or idle status information, the data transmission arbitration module switches the single-pole double-throw switch 1 .
[0285] S24, when the transmission status information is the sending status information, if the short-distance master chip switches from the sending status information to other status information, the data transmission arbitration module switches the single-pole double-throw switch 1.
[0286] S25. The short-range secondary chip uses antenna a to transmit data frames corresponding to the collaborative service with device 3.
[0287] S26. The short-range main chip uses antenna b to transmit data frames corresponding to the video call service.
[0288] In an embodiment of the present application, when the short-distance main chip uses antenna a and there is a transmission demand for the short-distance secondary chip, it is determined whether the short-distance main chip is in an uplink transmission scenario. In the uplink transmission scenario, if the short-distance main chip is in a sending state, the short-distance secondary chip can set the delay time of antenna a based on the RX time slot delay preemption strategy, thereby realizing the delay preemption of antenna a. Afterwards, the short-distance secondary chip can use antenna a to transmit the service data corresponding to the collaborative service, and on the basis of ensuring the throughput of the short-distance main chip, timely preemption of antenna a is realized to ensure the transmission rate of the short-distance secondary chip. Afterwards, after the service data corresponding to the collaborative service is transmitted, or when the short-distance main chip has service data to be transmitted with a higher priority, the short-distance secondary chip can switch antenna a to the short-distance main chip side for the short-distance main chip to use antenna a. Afterwards, by analogy, when the short-range slave chip has a transmission demand and the short-range main chip is in a downlink transmission scenario, the short-range slave chip can directly preempt antenna a based on the RX time slot delay preemption strategy, which is equivalent to clearing the delay time of antenna a, so that the short-range slave chip can use antenna a in time.
[0289] It should be noted that the above text introduces the process of business data transmission by taking the number of short-range communication chips in device 1 as 2 as an example. The number of short-range communication chips in device 1 can also be other values, as long as it is greater than 1, and this application does not limit it.
[0290] In addition, the operations performed by the above modules (such as the scene recognition module, the QOE information recognition module, the dual-chip coexistence service module, the dual-chip coexistence strategy module, and the data transmission arbitration module) are only examples, and the operations can also be performed by other modules. The present application does not limit the modules that perform the operations. And, it can be understood that the operations performed by the above modules are actually performed by electronic devices, such as short-range master and slave chips and AP chips.
[0291] In some embodiments, the short-range sub-chips in different devices can be used to process private services, so that the short-range sub-chips between different devices can use a custom short-range communication protocol to transmit business data. For example, the short-range sub-chip in the above-mentioned device 1 sends private business data (or called private data) to the short-range sub-chip in device 3, and device 3 can also send private business data to the short-range sub-chip in device 1, thereby improving the efficiency of short-range communication and thus improving the efficiency of business data transmission. Exemplarily, the private business data is used to trigger device discovery, establish short-range communication connections, and transmit business data (or data) between devices. If the private business is a collaborative business, the short-range communication connection corresponding to the collaborative business includes a WI-FI connection, and 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, and the steps corresponding to the WI-FI protocol may include some 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 less than the connection establishment steps corresponding to the standard short-range communication protocol, such as omitting the authentication step, thereby simplifying the WI-FI connection process and improving the efficiency of business data transmission.
[0292] For another example, devices discover each other through a custom Bluetooth communication protocol, transmit password information, and define the Go and Gc roles. Afterwards, a P2P connection is established between devices based on the custom P2P communication protocol. The steps corresponding to the P2P communication protocol may include some steps in the conventional P2P communication protocol, that is, the connection establishment steps corresponding to the custom short-range communication protocol are less than the connection establishment steps corresponding to the standard short-range communication protocol, such as omitting the Go and Gc role negotiation steps, thereby improving the efficiency of establishing the P2P connection. It should be understood that the custom Bluetooth communication protocol also belongs to the custom short-range communication protocol.
[0293] For another example, business data can be transmitted between devices through a custom short-range communication protocol to simplify the business data transmission process and improve the efficiency of business data transmission. Optionally, after establishing a P2P connection between devices, business data can be transmitted based on a short-range secondary chip through a custom network communication protocol (such as a custom TCP / IP protocol). For example, the conventional TCP / IP protocol corresponds to four layers (application layer, transport layer, internet layer, and network access layer), and the number of layers corresponding to the custom TCP / IP protocol is less than the number of layers corresponding to the conventional TCP / IP protocol, thereby simplifying the business data transmission process.
[0294] Among them, optionally, the transmission of business data (such as the above-mentioned private business data) between devices through the same short-range secondary chip can avoid the failure of business data transmission caused by different model specifications of short-range communication chips between devices, thereby avoiding compatibility issues.
[0295] In the embodiment of the present application, in the full-scenario device ecology, that is, in the interconnected ecology, ecological devices communicate within the local area network. The conventional TCP / IP protocol is to ensure that different devices in the Internet can communicate with each other, so the conventional TCP / IP protocol is generally designed as a five-layer protocol architecture, each layer is independently responsible for different tasks and functions, but the layered mechanism corresponding to the conventional TCP / IP protocol, that is, the communication process has duplication and redundancy to a certain extent, which affects the communication efficiency between devices. Therefore, in the interconnection scenario, a custom network communication protocol can be used to simplify the communication process and improve the communication efficiency between ecological devices. Similarly, in the interconnection scenario, a custom short-range communication protocol can also be used. Since custom communication protocols such as custom short-range communication protocols and custom network communication protocols need to cooperate with chips, the optimization of the communication process is achieved through the combination of software and hardware. Therefore, a short-range sub-chip can be added to electronic devices (such as the above-mentioned device 1, device 3, etc.) to improve the communication efficiency between ecological devices in the interconnection scenario.
[0296] In some embodiments, the above describes the process of the short-distance secondary chip preempting antenna a based on the new RX time slot preemption strategy by taking the short-distance primary and secondary chips multiplexing antenna a as an example. In addition, the short-distance primary and secondary chips in the electronic device can also use independent front-end RF antennas. Fig.13As shown, the short-distance main chip can use antenna c, and the short-distance secondary chip can use antenna d. Among them, antenna c and antenna d can be one or more. Due to the small space of the electronic device, the isolation between the antennas is limited. When the short-distance main chip is in the receiving state and the short-distance secondary chip is in the sending state, the transmission of the MAC frame of the short-distance secondary chip may affect the reception of the MAC frame of the short-distance main chip, which may cause the failure of the confirmation frame reception of the short-distance main chip, and may cause the repeated transmission of the data frame of the short-distance main chip. Therefore, in the case where the short-distance main and secondary chips respectively use independent front-end RF antennas, the short-distance secondary chip can also transmit data frames based on the new RX time slot preemption strategy. The process is similar to the process described above, except that the short-distance secondary chip can switch the single-pole double-throw switch 1, but directly delay, so as to avoid interfering with the reception of the confirmation frame of the short-distance main chip.
[0297] In some embodiments, the present application provides a computer-readable storage medium, including computer instructions, which, when executed on an electronic device, enable the electronic device to execute the data transmission method as described above.
[0298] In some embodiments, the present application provides a computer program product, which, when executed on an electronic device, enables the electronic device to execute the data transmission method as described above.
[0299] In some embodiments, the short-distance slave chip can be used as the first chip, and the short-distance master chip can be used as the second chip. That is, the first chip can perform the operations performed by the short-distance slave chip, and the second chip can perform the operations performed by the short-distance master chip. In addition, the short-distance master chip can also be used as the first chip, and the short-distance slave chip can be used as the second chip.
[0300] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0301] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0302] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0303] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0304] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0305] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A data transmission method, characterized in that: Applied to an electronic device, the electronic device includes a first chip, a second chip, a first antenna and an application processor AP, the first chip and the second chip are short-range communication chips, the AP is connected to the first chip and the second chip respectively, and the first antenna represents an antenna multiplexed by the first chip and the second chip; The data transmission method comprises: The first chip receives first data sent by the AP; When the transmission state of the second chip is a sending state, if the transmission state of the second chip is switched from the sending state to the first state, after a first target time, the first chip controls the first antenna to be connected to the first chip; wherein, when the first antenna is connected to the first chip, the first antenna is disconnected from the second chip; the first state is an idle state or a receiving state; The first chip transmits the first data based on the first antenna.
2. The method according to claim 1, characterized in that In the case that the transmission scenario of the second chip is an uplink transmission scenario, if the transmission state of the second chip is switched from the sending state to the first state, after a first target time, the first chip controls the first antenna to be connected to the first chip.
3. The method according to claim 1 or 2, characterized in that: The method further comprises: In a case where the transmission state of the second chip is a receiving state, if the transmission state of the second chip is switched from the receiving state to an idle state, the first chip controls the first antenna to be connected to the first chip.
4. The method according to claim 1 or 2, characterized in that: The method further comprises: When the transmission state of the second chip is a receiving state, after a second target time has passed, the first chip controls the first antenna to be connected to the first chip.
5. The method according to claim 2, characterized in that: The method further comprises: In a case where the transmission scenario of the second chip is a downlink transmission scenario, if the transmission state of the second chip is switched from the sending state to the first state, the first chip controls the first antenna to be connected to the first chip; The first chip transmits the first data based on the first antenna.
6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: The first chip determines a transmission scenario of the second chip based on one or more of information of a service corresponding to second data transmitted by the second chip, a transmission time of the second chip, and a transmission quantity of the second chip; The transmission time of the second chip includes the sending time and receiving time of the second chip; the sending time of the second chip indicates the duration of time the second chip is in the sending state, and the receiving time indicates the duration of time the second chip is in the receiving state; The transmission quantity of the second chip includes the sending quantity and the receiving quantity of the second chip; the sending quantity of the second chip represents the quantity of the second data successfully sent by the second chip, and the receiving quantity represents the quantity of the second data successfully received by the second chip.
7. The method according to claim 6, characterized in that The first chip determines a transmission scenario of the second chip based on one or more of information of a service corresponding to second data transmitted by the second chip, a transmission time of the second chip, and a transmission quantity of the second chip, including: The first chip determines a first difference value based on the sending time and receiving time of the second chip; wherein the first difference value indicates the difference between the duration of the second chip being in a sending state and the duration of the second chip being in a receiving state; the larger the first difference value, the higher the probability that the transmission scenario of the second chip is an uplink transmission scenario; When the first difference value is greater than or equal to a first preset difference value, the first chip determines that the transmission scenario of the second chip is the uplink transmission scenario; When the first difference value is less than a first preset difference value, the first chip determines that the transmission scenario of the second chip is a downlink transmission scenario.
8. The method according to claim 6, characterized in that The first chip determines a transmission scenario of the second chip based on one or more of information of a service corresponding to second data transmitted by the second chip, a transmission time of the second chip, and a transmission quantity of the second chip, including: The first chip determines a first difference value based on a sending time and a receiving time of the second chip; The first chip determines a second difference value based on the number of transmissions and the number of receptions of the second chip; wherein the second difference value represents the difference between the number of second data sent by the second chip and the number of second data received by the second chip; the larger the second difference value, the higher the probability that the transmission scenario of the second chip is an uplink transmission scenario; The first chip determines a transmission scenario of the second chip based on the first difference value and the second difference value.
9. The method according to claim 8, characterized in that The method further comprises: The first chip determines a transmission type corresponding to the service based on information about the service corresponding to the second data; wherein the transmission type is an uplink transmission type or a downlink transmission type; The first chip determines a transmission scenario of the second chip based on the first difference value and the second difference value, including: The first chip determines a transmission scenario of the second chip based on the transmission type, the first difference value, and the second difference value.
10. The method according to any one of claims 1 to 8, characterized in that The method further comprises: The first chip determines a scenario prediction value based on the transmission time and / or transmission quantity of the second chip; wherein the scenario prediction value indicates the probability that the second chip is in an uplink transmission scenario; The first chip determines the first target time based on the scenario prediction value; wherein, the larger the scenario prediction value is, the longer the first target time is.
11. A data transmission method, characterized in that: Applied to an electronic device, the electronic device comprises a first chip, a second chip, a first antenna and an application processor AP, the first chip and the second chip are short-range communication chips, the AP is connected to the first chip and the second chip respectively; the first chip independently uses a first antenna; the data transmission method comprises: The first chip receives first data sent by the AP; In a case where the transmission state of the second chip is a sending state, if the transmission state of the second chip is switched from the sending state to a first state, after a first target time, the first chip transmits the first data based on the first antenna.
12. A chip system, characterized in that: The chip system includes a first chip and a second chip, and both the first chip and the second chip are short-range communication chips.
13. The chip system according to claim 12, characterized in that: The first chip and the second chip are connected.
14. The chip system according to claim 12 or 13, characterized in that: The chip system further includes an application processor AP, and the AP is connected to the first chip and the second chip respectively.
15. The chip system according to claim 14, characterized in that: The chip system is applied to an electronic device, and the electronic device executes the method as claimed in any one of claims 1 to 11.
16. 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 and the second chip are coupled to the processor; the processor includes an application processor, the display screen is used to display an image generated by the processor, the memory is used to store computer program code, the first chip and the second chip are short-range communication chips, both used to transmit data, and the computer program code includes computer instructions; when the processor executes the computer instructions, the electronic device executes the method described in any one of claims 1 to 11.
17. A computer-readable storage medium, characterized in that: The method comprises computer instructions, which, when executed on an electronic device, cause the electronic device to execute the method according to any one of claims 1 to 11.
18. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 11 is implemented.
Citation Information
Patent Citations
Electronic devices having antenna diversity capabilities
CN108512577A
Terminal equipment, multi-link communication method and chip
CN114640972A
Data retransmission method, NAV value control method, electronic equipment and storage medium
CN115484003A
Methods and apparatuses for indication of transmission preemption based on a hybrid automatic repeat request configuration
US20180191470A1
Task scheduling method and apparatus, and electronic device
WO2021208627A1
Cited By
Chip system and terminal equipment
CN119807118A
Channel establishment method, storage medium, display system, and display device
WO2026153274A1