Data transmission method and electronic equipment
By setting up multiple short-range communication chips in electronic devices and using a negotiation mechanism based on priority, deciding to use multiplexed antennas or adjusting transmission power, the problem of how electronic devices can effectively use multiple short-range communication chips to transmit different service data, realizing concurrent transmission of service data and smooth operation of important services.
Patent Information
- Application Number
- CN202311389991.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-24
- Publication Date
- 2025-05-06
AI Technical Summary
How electronic devices can effectively use multiple short-range communication chips to transmit service data corresponding to different services and improve processing efficiency.
By setting up an AP, the first chip and the second chip in the electronic device, the first chip and the second chip are both short-range communication chips. The negotiation mechanism is used to decide to use multiplexed antennas or adjust the transmission power based on priority to realize the service data transmission of the multi-short-range communication chip.
The concurrent transmission of service data between multiple short-range communication chips is realized, which ensures the transmission rate of important data, ensures the smooth operation of important services, and improves the processing efficiency of electronic devices.
Smart Images

Figure CN119946728A_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] In order to improve the efficiency of electronic devices in processing different services, multiple short-range communication chips (such as two short-range communication chips) can be installed in the electronic device, so that the electronic device can use multiple short-range communication chips to process different services, that is, to transmit service data corresponding to different services. Therefore, how electronic devices use multiple short-range communication chips to transmit service data corresponding to different services has become 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 service data transmission of multiple short-range communication chips.
[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, and the electronic device includes an AP, a first chip, and a second chip. The first chip and the second chip are both short-range communication chips, the first chip and the second chip are connected, and the AP is connected to the first chip and the second chip respectively. After receiving the first data sent by the AP, the first chip sends a first request to the second chip, and the first request includes the priority corresponding to the first data. The priority corresponding to the data indicates the importance of the data. The higher the priority corresponding to the data, the higher the importance of the data, and the more important the service corresponding to the data is. The first request is used to request the use of a first antenna, and the first antenna is an antenna multiplexed by the first chip and the second chip.
[0007] The second chip receives the first request and, in response to the first request, determines whether the priority of the second data being transmitted by the second chip is less than the priority of the first data. If it is determined that the priority of the second data is less than the priority of the first data, the second chip may send an acceptance response message to the first chip.
[0008] The first chip receives the above-mentioned acceptance response message. In response to the acceptance response message, the first chip controls the first antenna to communicate with the first chip to transmit the first data based on the first antenna. Wherein, when the first antenna is connected to the first chip, the first antenna is disconnected from the second chip, that is, the second chip stops using the first antenna to transmit the second data.
[0009] In the embodiment of the present application, after receiving the first data, the first chip indicates that the first antenna needs to be used to transmit the first data. Since the first antenna is an antenna multiplexed by the first chip and the second chip, the first chip can send a first request to the second chip to negotiate with the second chip to use the first antenna. After receiving the first request, the second chip indicates that the first chip needs to use the first antenna. The second chip can determine whether the priority corresponding to the second data being transmitted by the second chip is less than the priority corresponding to the first data. If it is less than, it indicates that the priority corresponding to the first data is higher, the importance of the first data is higher, and the business corresponding to the first data is more important. The second chip agrees that the first chip uses the first antenna. Therefore, the second chip can send an acceptance response message to the first chip. In response to the acceptance response message, the first chip controls the first chip to be connected to the first antenna so that the first data can be transmitted using the first antenna, ensuring the transmission rate of important data, thereby ensuring the smoothness of the operation of important business, and realizing the transmission of business data of multiple short-range communication chips.
[0010] In a possible implementation of the first aspect, when the second chip determines that the priority corresponding to the second data is greater than or equal to the priority corresponding to the first data, it indicates that the second data being transmitted by the second chip is more important, the service corresponding to the second data is more important, and the transmission rate of the second data needs to be prioritized. Therefore, the second chip can refuse the first chip from using the first antenna, that is, the second chip can send a rejection response message to the first chip. The first chip receives the rejection response message, and in response to the rejection response message, the first chip does not need to control the first antenna to be connected to the first chip. At this time, the first antenna is still connected to the second chip, and the second chip can continue to transmit the second data based on the first antenna to ensure the transmission rate of important data, thereby ensuring the smoothness of the operation of important services and realizing the transmission of service data of multiple short-range communication chips.
[0011] In a possible implementation of the first aspect, while the first chip uses the first chip to transmit the first data, after the second chip receives the third data sent by the AP, it indicates that the second chip needs to use the first antenna to transmit the third data, and the second chip needs to negotiate with the first chip to use the first antenna. Therefore, the second chip can send a second request to the first chip, and the second request includes the priority corresponding to the third data.
[0012] Afterwards, the first chip responds to the second request and determines whether the third data has a higher priority than the first data being transmitted by the first chip. If it does, it indicates that the third data is more important than the first data and the transmission rate of the third data needs to be guaranteed. The first chip agrees that the second chip uses the first antenna. Therefore, the first chip can directly connect the first antenna to the second chip so that the second chip can use the first antenna to transmit the third data, thereby ensuring the transmission rate of important data and thus ensuring the smoothness of important business operations.
[0013] In a possible implementation of the first aspect, the service data that the second chip needs to transmit includes not only the above-mentioned second data, but also the fourth data. The priority corresponding to the second data is greater than the priority corresponding to the fourth data. After the second chip receives the third data sent by the AP, the second chip can, when determining that the priority corresponding to the above-mentioned third data is greater than the priority corresponding to the second data, indicate that the priority corresponding to the third data may be higher than the priority corresponding to the first data. Therefore, the second chip can send the above-mentioned second request to the first chip so that the first chip determines whether the priority corresponding to the third data is greater than the priority corresponding to the first data. When it is determined that the priority corresponding to the above-mentioned third data is less than or equal to the priority corresponding to the second data, since the priority corresponding to the second data is less than the priority corresponding to the first data, the priority corresponding to the third data must be less than the priority corresponding to the first data, and the second chip does not need to send the above-mentioned second request to the first chip to avoid unnecessary negotiation.
[0014] In a possible implementation of the first aspect, while the second chip is transmitting data using the first antenna, the second chip may send data transmission status information to the first chip, where the data transmission status information indicates that the second chip is transmitting data, such as second data, with an external device, so that the first chip learns that the second chip needs to use the first antenna, and thus when the first chip needs to transmit the first data, it needs to negotiate with the second chip to use the first antenna, thereby avoiding unnecessary negotiations.
[0015] In a possible implementation of the first aspect, the data transmission status information may include sending status information or receiving status information. The sending status information indicates that the second chip is sending the second data to the external device, and the receiving status information indicates that the second chip is receiving the second data from the external device.
[0016] In a possible implementation of the first aspect, the first chip and the second chip may be connected via a bus or an input / output pin. In one case, the first chip and the second chip are connected via a bus. Accordingly, the first chip may interact with the second chip via the bus, such as sending the priority corresponding to the first data to the second chip via the bus.
[0017] In another case, the first chip and the second chip are connected via input-output pins. The first chip includes a first input-output pin, the second chip includes a second input-output pin, and the first input-output pin is connected to the second input-output pin. Accordingly, the first chip controls the target input-output pin among the first input-output pins to output a first electrical signal, and controls the other first input-output pins to output a second electrical signal, the first electrical signal and the second electrical signal are one of a high-level signal and a low-level signal, and the second electrical signal is different from the first electrical signal; the first electrical signal output by the target input-output pin and the second electrical signal output by the other first input-output pins jointly indicate the priority corresponding to the first data.
[0018] In a possible implementation of the first aspect, the first chip can switch the first antenna through a single-pole multi-throw switch. Specifically, the process of the first chip controlling the first antenna to be connected to the first chip may include: the first chip connects the first end and the second end of the single-pole multi-throw switch; wherein the first end of the single-pole multi-throw switch is connected to the first antenna, the second end of the single-pole multi-throw switch is connected to the first chip, and the single-pole multi-throw switch also includes a third end, and the third end is connected to the second chip.
[0019] In a possible implementation of the first aspect, while the first chip uses the first antenna, the second chip may use the second antenna used independently by the second chip to transmit the second data, so that the second data can still be transmitted, avoiding interruption of the service corresponding to the second data.
[0020] In a possible implementation of the first aspect, the first data includes private data. The first chip can send the first data to the first chip in the first device based on the first antenna and in combination with a custom short-range communication protocol, and the first data is used to establish a short-range communication connection with the first device, so that the electronic device and the first device can establish a short-range communication connection using a custom short-range communication protocol, simplifying the short-range communication connection establishment process, thereby improving communication efficiency.
[0021] In a second aspect, a data transmission method is provided, which is applied to an electronic device, wherein the electronic device includes an AP, a first chip, and a second chip. The first chip and the second chip are both short-range communication chips, the first chip and the second chip are connected, and the AP is connected to the first chip and the second chip respectively. The first chip independently uses a third antenna, and the second chip independently uses a fourth antenna.
[0022] After receiving the first data sent by the AP, the first chip sends a first request to the second chip, where the first request includes a priority corresponding to the first data. The priority corresponding to the data indicates the importance of the data, and the higher the priority corresponding to the data, the higher the importance of the data, and the more important the service corresponding to the data. The first request is used to request the second chip to reduce the transmit power of the fourth antenna.
[0023] The second chip receives the first request and, in response to the first request, determines whether the priority of the second data being transmitted by the second chip is less than the priority of the first data. If it is determined that the priority of the second data is less than the priority of the first data, the second chip may send an acceptance response message to the first chip.
[0024] The first chip receives the above-mentioned acceptance response message. In response to the acceptance response message, the first chip transmits the first data based on the third antenna according to the first transmission power. The second chip transmits the second data based on the fourth antenna according to the second transmission power, and the second transmission power is less than the first transmission power.
[0025] In an embodiment of the present application, after receiving the first data, the first chip indicates that the first chip needs to use the second antenna to transmit the first data, and the first chip can send a first request to the second chip to negotiate the transmission power with the second chip. After receiving the first request, the second chip indicates that the first chip needs to transmit data, and the second chip can determine whether the priority corresponding to the second service data being transmitted by the second chip is less than the priority corresponding to the first data. In the case of less than, it indicates that the priority corresponding to the first data is higher, the importance of the first data is higher, and the service corresponding to the first data is more important. The second chip agrees that the first chip uses a higher transmission power to transmit data concurrently. Therefore, the second chip can send an acceptance response message to the first chip. In response to the acceptance response message, the first chip transmits the first data according to the normal transmission power, and the second chip transmits the second data according to the lower transmission power, thereby realizing the concurrent transmission of service data of multiple short-range communication chips, and can reduce the degree of signal interference between the first chip and the second chip, thereby ensuring the transmission rate of important data, and then ensuring the smoothness of the operation of important services.
[0026] In a possible implementation of the second aspect, when the second chip determines that the priority corresponding to the second data is greater than or equal to the priority corresponding to the first data, it indicates that the second data being transmitted by the second chip is more important, the service corresponding to the second data is more important, and the transmission rate of the second data needs to be prioritized. The second chip refuses to reduce the transmission power, and the second chip can continue to transmit the second data normally at a higher fourth transmission power, and the second chip can send a rejection response message to the first chip. In response to the rejection response message, the first chip transmits the first data based on the third antenna at a lower third transmission power, and the fourth transmission power is greater than the third transmission power, thereby realizing concurrent transmission of service data of multiple short-range communication chips, and reducing the degree of signal interference between the first chip and the second chip, thereby ensuring the transmission rate of important data, and further ensuring the smoothness of important service operations.
[0027] Optionally, the fourth transmit power may be equal to the first transmit power. The third transmit power may be equal to the second transmit power.
[0028] In a possible implementation of the second aspect, during the period when the first chip uses the first chip to transmit the first data, the second chip receives the third data sent by the AP, indicating that the second chip needs to transmit the third data, and the second chip negotiates the transmission power with the first chip. Therefore, the second chip sends a second request to the first chip, and the second request includes the priority corresponding to the third data, so that the first chip determines whether the priority corresponding to the third data is greater than the priority corresponding to the first data.
[0029] In response to the above second request, when the first chip determines that the priority corresponding to the third data is greater than the priority corresponding to the first data, it indicates that the third data is more important and the transmission rate of the third data needs to be guaranteed. The first chip can continue to transmit the first data based on the third antenna at a lower fifth transmission power, and the second chip can transmit the third data based on the fourth antenna at a higher sixth transmission power. Among them, the fifth transmission power is less than the above first transmission power, and the sixth transmission power is greater than the fifth transmission power, so as to realize the concurrent transmission of service data and ensure the transmission rate of important services, thereby ensuring the smoothness of the operation of important services.
[0030] Optionally, the sixth transmit power may be equal to the first transmit power. The fifth transmit power may be equal to the second transmit power.
[0031] In a third aspect, a data transmission method is provided, which is applied to an electronic device, wherein the electronic device includes an AP, a first chip, and a second chip. The first chip and the second chip are both short-range communication chips, and the first chip and the second chip reuse a first antenna. The AP is connected to the first chip and the second chip, respectively.
[0032] The AP sends the first data to the first chip. The AP determines whether the priority corresponding to the first data is greater than the priority corresponding to the second data. When it is determined that the priority corresponding to the first data is greater than the priority corresponding to the second data, the AP may send a first control message to the first chip, where the second data refers to the data being transmitted by the second chip, and the priority indicates the importance of the data. The higher the priority, the higher the importance of the data (or service data). The first control message is used to instruct the first chip to switch the first antenna.
[0033] In response to the first control message, the first chip connects the first antenna with the first chip, and the first chip transmits the first data based on the first antenna. When the first antenna is connected with the first chip, the first antenna is disconnected from the second chip.
[0034] In the embodiment of the present application, the AP determines the priority of the data transmitted by the first chip and the second chip. When the priority of the data transmitted by the first chip is relatively large, the AP can trigger the first chip to switch to the first antenna, so that the first chip can use the first antenna to transmit the first data, ensuring the transmission rate of important data, thereby ensuring the smoothness of important business operations, and realizing the transmission of business data of multiple short-range communication chips. In addition, by comparing the priorities and sending the control messages by the AP, the processing volume of the first chip and the second chip can be reduced.
[0035] In a fourth aspect, a data transmission method is provided, which is applied to an electronic device, wherein the electronic device includes an AP, a first chip, and a second chip. The first chip and the second chip are both short-range communication chips, and the AP is connected to the first chip and the second chip, respectively. The first chip independently uses a third antenna, and the second chip independently uses a fourth antenna.
[0036] The AP sends the first data to the first chip. When determining that the priority corresponding to the first data is greater than the priority corresponding to the second data, the AP may send a second control message to the second chip, where the second control message is used to trigger the second chip to reduce the corresponding transmit power.
[0037] The first chip can transmit the first data through the third antenna at the first transmission power. The second chip transmits the second data through the fourth antenna at the second transmission power in response to the second control message, and the second transmission power is less than the first transmission power.
[0038] In an embodiment of the present application, the AP determines the priority corresponding to the data transmitted by the first chip and the second chip. When the priority corresponding to the data transmitted by the first chip is relatively large, the AP can trigger the second chip to reduce the transmission power, so that the second chip continues to transmit the second data using a lower transmission power. The first chip can transmit the first data at a normal transmission power to reduce the degree of signal interference between the first chip and the second chip, and the transmission power of the first chip is relatively large, so the transmission rate of the first data is guaranteed to be high, that is, the transmission rate of important data is guaranteed, thereby ensuring the smoothness of the operation of important services, and realizing the concurrent transmission of service data of multiple short-range communication chips. In addition, by comparing priorities and sending control messages through the AP, the processing volume of the first chip and the second chip can be reduced, and there is no need for a connection between the first chip and the second chip, which is an improvement on the chip.
[0039] In a fifth aspect, the present application provides a chip system, which includes a first chip and a second chip, wherein the first chip and the second chip are both short-range communication chips; the first chip and the second chip are connected.
[0040] In a possible implementation manner of the fifth aspect, the chip system further includes an AP, which is connected to the first chip and the second chip respectively.
[0041] In a possible implementation manner of the fifth aspect, the chip system is applied to an electronic device, and the electronic device executes the method as described above.
[0042] In a sixth aspect, the present application provides an electronic device, comprising 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 above.
[0043] In a seventh 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.
[0044] In an eighth aspect, the present application provides a computer program product, which, when executed on an electronic device, enables the electronic device to execute the method described above.
[0045] It can be understood that the beneficial effects that can be achieved by the data transmission methods described in the second, third and fourth aspects, the chip system described in the fifth aspect, the electronic device described in the sixth aspect, the computer storage medium described in the seventh aspect, and the computer program product described in the eighth aspect can be referred 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
[0046] Figure 1A A schematic diagram of a collaborative scenario provided in an embodiment of the present application;
[0047] Figure 1B A collaborative scenario provided in an embodiment of the present application Figure 2 ;
[0048] Figure 2 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;
[0049] Figure 3 A structural block diagram of an electronic device provided in an embodiment of the present application;
[0050] Figure 4 A schematic diagram of a dual-chip structure provided in an embodiment of the present application;
[0051] Figure 5 A flowchart of a data transmission method provided in an embodiment of the present application is shown in FIG1 ;
[0052] Fig. 6A A schematic diagram of application startup provided in an embodiment of the present application is shown in FIG. 1 ;
[0053] Figure 6B An application startup diagram provided in an embodiment of the present application Figure 2 ;
[0054] Figure 6C An application startup diagram provided in an embodiment of the present application Figure 3 ;
[0055] Fig. 7A A schematic diagram of a dual chip structure provided in an embodiment of the present application Figure 2 ;
[0056] Figure 7B A schematic diagram of a dual chip structure provided in an embodiment of the present application Figure 3 ;
[0057] Figure 7C A schematic diagram of a dual chip structure provided in an embodiment of the present application Figure 4 ;
[0058] Fig.7DA schematic diagram of a dual chip structure provided in an embodiment of the present application Figure 5 ;
[0059] Fig. 7E Schematic diagram 6 of a dual-chip structure provided in an embodiment of the present application;
[0060] Figure 7F Schematic diagram 7 of a dual-chip structure provided in an embodiment of the present application;
[0061] Figure 7G A schematic diagram of a dual chip structure provided in an embodiment of the present application Figure 8 ;
[0062] Figure 8 Schematic diagram 1 of a single-pole double-throw switch provided in an embodiment of the present application;
[0063] Fig. 9 A single-pole double-throw switch provided in an embodiment of the present application Figure 2 ;
[0064] Fig.10 A schematic diagram of a dual chip structure provided in an embodiment of the present application Figure 9 ;
[0065] Fig.11 A schematic diagram of a data transmission method provided in an embodiment of the present application Figure 2 ;
[0066] Fig. 12A A schematic diagram of a dual chip structure provided in an embodiment of the present application Figure 10 ;
[0067] Fig. 12B A schematic diagram of a dual chip structure provided in an embodiment of the present application Figure 10 one;
[0068] Fig.13 A schematic diagram of a data transmission method provided in an embodiment of the present application Figure 3 . DETAILED DESCRIPTION
[0069] 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.
[0070] To facilitate understanding of the embodiments of the present application, some terms involved in the embodiments of the present application are explained below.
[0071] 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.
[0072] WI-FI connection mode: including WI-FI station (sta) mode and WI-FI peer-to-peer (P2P) mode. Among them, WI-FI sta mode means that an electronic device can establish a WI-FI connection with other devices through a wireless access point (access point, AP), that is, to conduct WI-FI communication, and the role of the electronic device can be a station. 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.
[0073] Frequency band (or working frequency band): refers to the frequency range of electromagnetic waves. For example, commonly used frequency bands may include 2.4G, 5G, 6G, etc.
[0074] 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.
[0075] In some embodiments, users have more and more types of electronic devices, such as mobile phones, tablets, PCs, smart watches, Bluetooth headsets, smart screens, 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 chips. For example, taking the first electronic device as a mobile phone as an example, in a multi-screen collaboration scenario, such as Figure 1A As shown, the mobile phone can communicate with the Figure 1A The tablet computer and personal computer (PC) in the mobile phone can establish a WI-FI P2P connection (or simply a P2P connection) through the short-range main chip in the tablet computer and PC. Figure 1A A Bluetooth headset and a smart watch (such as a short-range main chip in a Bluetooth headset and a smart watch) establish a Bluetooth (BT) connection to transmit corresponding business data.
[0076] 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. That is to say, not only the multi-screen collaborative service and the super notification service need to use the short-range communication chip, but there are also other services that require the support of the short-range communication chip. Therefore, in order to ensure the smoothness of the concurrent operation of the services, a short-range communication chip can be added inside the electronic device. That is to say, there are two short-range communication chips in the electronic device, and 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 conventional services, such as video call services, social services, short video services, news services, file downloads, audio and video playback services, game services, etc. The short-range sub-chip can handle private services, such as multi-screen collaborative services, super notification services, etc.
[0077] For example, the mobile phone can communicate with the Figure 1B 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 1B 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 business data such as audio data and command data (such as play and pause command data) to the short-range sub-chip in the Bluetooth headset through the short-range sub-chip.
[0078] Among them, the mobile phone can establish a communication connection with other devices through a short-range communication protocol to transmit business data. Figure 1B As shown, the mobile phone can establish P2P connections with the tablet computer and the PC respectively through the P2P communication protocol. The mobile phone can establish Bluetooth connections with the Bluetooth headset and the smart watch respectively through the Bluetooth communication protocol.
[0079] Among them, optionally, the above-mentioned short-range communication protocol can be a custom short-range communication protocol (ie, a private protocol), for example, the above-mentioned P2P communication protocol can be a custom P2P communication protocol, and the above-mentioned Bluetooth communication protocol can be a custom Bluetooth communication protocol.
[0080] It should be noted that the above Figure 1B The scenario shown can also be a super notification scenario. For example, after receiving an incoming call, the mobile phone can send the 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 1B The dotted circle in the figure indicates that devices (such as tablets, PCs, Bluetooth headsets, smart watches, and mobile phones) can be networked and communicate with each other through the short-range secondary chip.
[0081] In addition, as mentioned above Figure 1B As shown, the tablet computer can also establish a short-range communication connection with other devices (such as smart watches, PCs, etc.) through the short-range main chip to use the short-range main chip to transmit business data corresponding to other businesses. Similarly, the PC computer can also establish a short-range communication connection with other devices (such as Bluetooth headsets, tablet computers, etc.) through the short-range main chip to use the short-range main chip to transmit business data corresponding to other businesses, thereby realizing concurrent operation of businesses.
[0082] Optionally, as above Figure 1A or Figure 1B As shown, tablet computers, mobile phones and PCs can be in the same network environment and use the WI-FI provided by the router.
[0083] It should be noted that 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.
[0084] In some embodiments, the short-distance main chip or short-distance secondary chip needs to use an antenna to transmit service data. In one case, for electronic devices with a small space such as mobile phones, the short-distance main chip and the short-distance secondary chip in the electronic device can reuse an antenna (or called antenna a), thereby reducing the space occupied by the antenna. In this case, the short-distance main chip and the short-distance secondary chip time-share antenna a (or called the first antenna), and during the period when the short-distance main chip uses antenna a to transmit service data, the short-distance secondary chip cannot use antenna a to transmit service data. During the period when the short-distance secondary chip uses antenna a to transmit service data, the short-distance main chip cannot use antenna a to transmit service data. In other words, the short-distance main chip and the short-distance secondary chip cannot use antenna a to transmit service data continuously, but transmit service data alternately, resulting in the data transmission rate of the short-distance main and secondary chips being affected, thereby affecting the services processed by the short-distance main chip and the short-distance secondary chip. If the service processed by the short-distance main chip has a high throughput requirement, that is, it is sensitive to the transmission rate, such as the service processed by the short-distance main chip is a video call service, resulting in the video call data cannot be transmitted in time, which may cause the video call to be disconnected, affecting the user experience.
[0085] In another case, for electronic devices with larger spaces such as tablets, folding screen mobile phones, and PCs, the short-range main chip and the short-range sub-chip in the electronic devices may not reuse antennas, but use independent antennas to transmit business data. The short-range main chip can use its corresponding antenna to transmit business data, and the short-range sub-chip can use its corresponding antenna to transmit business data. The antennas can be used continuously between the short-range main chip and the short-range sub-chip to transmit business data. Among them, the short-range main chip and the short-range sub-chip use different-frequency concurrent transmission, and the working frequency band of the short-range main chip is different from the working frequency band of the short-range sub-chip. For example, the working frequency band of the short-range main chip is 5.2GHz, and the working frequency band of the short-range sub-chip is 5.8GHz. However, although the working frequency bands of the short-range main and sub-chips are different, there will still be problems of mutual interference, which will affect the efficiency of the short-range main and sub-chips in transmitting business data, and cannot meet the smoothness of business operation.
[0086] Therefore, in response to the above problems, the present application provides a data transmission method. The electronic device includes a short-distance main chip and a short-distance sub-chip, and the short-distance main chip and the short-distance sub-chip are connected by a wire. During the period when one chip in the short-distance main and sub-chips transmits business data corresponding to a business, the other chip needs to transmit business data corresponding to another business. For example, during the period when the short-distance main chip uses an antenna to transmit the second business data with an external device, the short-distance sub-chip needs to transmit the first business data. The short-distance sub-chip can send a first request to the short-distance main chip, and the first request may include the priority corresponding to the first business data to achieve the use of the antenna or the negotiation of the transmission power. Among them, the priority indicates the importance of the business data, which is determined according to the throughput corresponding to the business data (that is, the throughput required for the business corresponding to the business data). The higher the throughput corresponding to the business data, the higher the transmission rate requirement of the business data, the more important the business data, and the higher the corresponding priority. After receiving the request, the short-distance main chip responds to the first request and determines whether the priority corresponding to the second business data is greater than or equal to the priority corresponding to the first business data. If the priority corresponding to the second service data is greater than or equal to the priority corresponding to the first service data, it indicates that the second service data transmitted by the short-distance main chip is more important, that is, the throughput corresponding to the second service data is higher, that is, the second service data has a higher requirement for the transmission rate. Therefore, it is necessary to give priority to the service processed by the short-distance main chip, then the short-distance main chip can use the antenna normally to transmit the second service data, and ensure that the transmission rate of the second service data is higher. In addition, the short-distance main chip can send a rejection response message to the short-distance secondary chip. In the case where the short-distance main and secondary chips reuse antenna a, the short-distance secondary chip responds to the rejection response message and does not switch the target switch, which is used to achieve antenna a and short-distance main chip connection, or antenna a and short-distance secondary chip connection, so that the short-distance main chip can continue to use antenna a. In the case where the short-distance main and secondary chips use antennas independently, it indicates that there is no need to reuse antennas between the short-distance main and secondary chips. In response to the rejection response message, the short-distance secondary chip can reduce the transmission power of the antenna used by the short-distance secondary chip, and then the short-distance secondary chip transmits the first service data based on the reduced transmission power, thereby reducing the degree of signal interference between the short-distance main and secondary chips, and ensuring the rate of service data transmitted by the short-distance main chip.
[0087] If the priority corresponding to the second service data is less than the priority corresponding to the first service data, it indicates that the second service data transmitted by the short-distance secondary chip is more important, that is, the throughput corresponding to the second service data is higher, that is, the second service data has a higher requirement for the transmission rate. Therefore, it is necessary to give priority to the service processed by the short-distance secondary chip, and the short-distance main chip can send an acceptance response message to the short-distance secondary chip. In the case where the short-distance main and secondary chips reuse antenna a, the short-distance secondary chip responds to the acceptance response message, switches the target switch, connects antenna a with the short-distance secondary chip, so that the short-distance secondary chip can use antenna a to transmit the first service data. In the case where the short-distance main and secondary chips use antennas independently, the short-distance main chip reduces the transmission power of the antenna it uses, and transmits the second service data through the reduced transmission power. In response to the acceptance response message, the short-distance secondary chip transmits the first service data according to the normal transmission power, reduces the degree of signal interference between the short-distance main and secondary chips, thereby ensuring that the rate of the service data transmitted by the short-distance secondary chip is high, and in the case of concurrent transmission of service data, avoids affecting the operation of important services and ensures the smoothness of the operation of important services.
[0088] 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.
[0089] Figure 2 A schematic structural diagram of an electronic device 100 is shown.
[0090] 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.
[0091] 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.
[0092] 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.
[0093] 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.
[0094] The processor 110 may also be provided with a memory for storing instructions and data.
[0095] 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.
[0096] 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.
[0097] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to provide power for the electronic device 100 and the like.
[0098] 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.
[0099] 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.
[0100] 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.
[0101] 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.
[0102] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (WI-FI) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, 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.
[0103] 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. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0104] 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.
[0105] 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.
[0106] Optionally, antennas may be reused between the short-range communication chips, or independent antennas may be used.
[0107] Exemplarily, the above-mentioned AP may also be referred to as an AP processor or an AP chip, etc.
[0108] 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.
[0109] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0110] The display screen 194 is used to display images, videos, etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
[0111] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0112] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100 .
[0113] 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.
[0114] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0115] Among them, the above-mentioned sensor module 180 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor 180K, an ambient light sensor, a bone conduction sensor, etc.
[0116] The buttons 190 include a power button, a volume button, etc. The motor 191 can generate a vibration prompt. The indicator 192 can be an indicator light, which can be used to indicate the charging status, power change, messages, missed calls, notifications, etc.
[0117] The SIM card interface 195 is used to connect a SIM card. The electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
[0118] 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.
[0119] Figure 3 It is a structural block diagram of the electronic device 100 according to an embodiment of the present application.
[0120] 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.
[0121] The application layer can include a series of application packages.
[0122] like Figure 3 As shown, the application package may include camera, gallery, call, multi-screen collaboration, navigation, WLAN, Bluetooth, music, video, short message and other applications.
[0123] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0124] like Figure 3 As shown, the application framework layer may include a window manager, a content provider, a view system, a resource manager, a service priority module, a scene recognition module, a coexistence strategy module, and the like.
[0125] The scene recognition module is used to identify the application running on the electronic device 100, that is, the running service, that is, the service scenario, such as file download scenario, audio and video playback scenario, video call scenario, etc. The scene recognition module can send the service identifier (or application identifier, process identifier corresponding to the service, etc.) to the service priority module.
[0126] The service priority module is used to determine the priority corresponding to the service to mark the priority of the service. Optionally, the service priority module can send the priority corresponding to the service to the coexistence strategy module.
[0127] The coexistence strategy module is used to generate a target coexistence strategy based on the business processed by the short-range main chip, that is, the business scenario in which it is located, and then send the target coexistence strategy to the short-range secondary chip, so that the short-range secondary chip determines whether it is necessary to switch the target switch or reduce its own transmission frequency according to the target coexistence strategy. Among them, the target switch is used to realize the connection between the first antenna and the short-range main chip, or the first antenna and the short-range secondary chip, so that the short-range main chip can continue to use the first antenna.
[0128] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
[0129] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
[0130] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0131] 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.
[0132] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0133] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0134] A 2D graphics engine is a drawing engine for 2D drawings.
[0135] The hardware abstraction layer is the interface layer between the operating system kernel and the hardware circuit. Figure 3 As shown, the hardware abstraction layer may include a transmission link control module.
[0136] The transmission link control module is used to determine the short-distance communication chip that processes the service, and sends the service data to the short-distance communication chip that processes the service corresponding to the service data. Exemplarily, the transmission link control module can determine the short-distance communication chip that processes the service based on the type of service. For example, a certain service needs to transmit service data with a large amount of data, and the service does not have high real-time requirements. The priority corresponding to the service is low, and the transmission link control module can assign it to the main chip. Of course, the short-distance communication chip that processes the service can also be determined according to other rules, such as using a random allocation rule. This application does not limit the rules used to determine the short-distance communication chip that processes the service.
[0137] Optionally, the above-mentioned service priority module can send the priority corresponding to the service to the transmission link control module. After determining the short-distance communication chip that processes the service, the transmission link control module can send the priority corresponding to the service to the short-distance communication chip that processes the service. Alternatively, the transmission link control module can also send the information of the short-distance communication chip that processes the service to the service priority module, so that the service priority module can send the priority corresponding to the service to the short-distance communication chip, such as the short-distance communication chip that processes the service, and this application does not limit it.
[0138] 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.
[0139] 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.
[0140] In some embodiments, when the relevant module needs to transmit data to the short-distance main chip, the relevant module can call the short-distance main chip driver to transmit the data to the short-distance main chip. When the relevant module needs to transmit data to the short-distance secondary chip, the relevant module can call the short-distance secondary chip driver to transmit the data to the short-distance secondary chip. For example, when the transmission link control module needs to transfer business data to the short-distance main chip, it can call the short-distance main chip driver to transmit the business data to the short-distance main chip, so that the short-distance main chip sends the business data to the external device. For another example, when the transmission link control module needs to transfer business data to the short-distance secondary chip, it can call the short-distance secondary chip driver to transmit the business data to the short-distance secondary chip, so that the short-distance secondary chip sends the business data to the external device.
[0141] 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.
[0142] The following will take the above-mentioned electronic device as device 1 as an example to introduce a service transmission method provided by an embodiment of the present application. During the period when the short-distance main chip in device 1 transmits service data with an external device, the short-distance secondary chip is also assigned service data, so the short-distance secondary chip can send a corresponding request to the short-distance main chip to negotiate with the short-distance main chip whether to switch the antenna reused by the short-distance main and secondary chips, or adjust its own transmission power. The request may include the priority corresponding to the service data assigned to the short-distance secondary chip, and the priority corresponding to the service data represents the importance of the service data. The short-distance main chip compares the priority carried by the request with the priority corresponding to the service data transmitted by the short-distance main chip, and sends a corresponding response message, so that the short-distance secondary chip executes the corresponding coexistence strategy according to the response message, so that device 1 can use the reused antenna to preferentially transmit services with higher priority, that is, service data corresponding to important services, or transmit service data corresponding to important services with higher transmission power, to ensure the transmission speed of important services, thereby ensuring the smooth operation of important services.
[0143] Among them, the process of the short-range main and auxiliary chips reusing antennas and the short-range main and auxiliary chips negotiating to use the reused antennas can refer to the relevant content of the dual-chip time-division multiplexing introduced in the following part a. The process of the short-range main and auxiliary chips negotiating to adjust the transmission power can refer to the relevant content of the dual-chip frequency-division multiplexing introduced in the following part b.
[0144] a. Dual-chip time-division multiplexing
[0145] In the present application embodiment, Figure 4 As shown, the dual chips in device 1 (i.e., the short-range main chip and the short-range secondary chip) time-share one antenna (i.e., antenna a), and the short-range main and secondary chips are connected by wires, so that the short-range main and secondary chips can communicate with each other. For example, the short-range main and secondary chips can negotiate and determine the short-range communication chip to use antenna a based on the priority of the service data, and execute the corresponding coexistence strategy, so that the short-range communication chip can use antenna a to transmit service data, ensuring that the short-range communication chip can continuously transmit important service data, ensuring that the transmission delay of important service data is low, thereby ensuring that important services can be processed in a timely manner. Specifically, Figure 5 As shown, the time division multiplexing process may include S201-S217.
[0146] S201 , the short-range main chip in device 1 transmits service data 1 to device 2 via antenna a in device 1 .
[0147] Among them, antenna a (or called the first antenna) represents the antenna multiplexed by the above-mentioned short-range main chip and the short-range secondary chip.
[0148] In the embodiment of the present application, device 1 runs service 1, and device 1 (such as the AP chip in device 1) determines that the short-range communication chip that processes the service 1 is the short-range main chip, then the AP chip can allocate the service data corresponding to service 1 (or referred to as service data 1) to the short-range main chip, and the short-range main chip needs to use an antenna (including antenna a) to transmit service data 1. If the short-range main chip and antenna a are connected, indicating that the short-range main chip is currently using antenna a, then the short-range main chip can continue to use antenna a to send service data 1 to an external device (such as device 2), and of course, the short-range main chip can also receive service data corresponding to service 1 sent by an external device through antenna a.
[0149] The above service (such as service 1) may be a service corresponding to an application. For example, if device 1 is a mobile phone, Fig. 6A As shown, the user clicks the icon 10 of the first game application on the mobile phone desktop. In response to the click operation on the icon 10 of the first game application, the mobile phone starts the first game application (as shown in FIG. Figure 6B Startup content 11 and Figure 6C The startup content 12) determines that the short-distance communication chip responsible for processing the first game application, that is, transmitting the service data corresponding to the first game application, is the short-distance main chip (such as the short-distance main chip sends login data to the server corresponding to the first game application, the server sends the game screen data to the short-distance main chip, and the short-distance main chip sends the game screen data to the AP chip, so that the AP chip displays the corresponding game screen based on the game screen data). Here, the game service corresponding to the first game application can be understood as the above-mentioned service 1, and the service data corresponding to the first game application can be understood as service data 1.
[0150] Optionally, the antenna that can be used by the above-mentioned short-range main chip may also include antenna b, and antenna b (or called the second antenna) may be an independent antenna, and the short-range secondary chip cannot use antenna b to transmit data. Accordingly, the short-range main chip can use antenna b to transmit the above-mentioned service data 1.
[0151] In some embodiments, the AP chip can determine the chip that processes the service (such as service 1 mentioned above) according to the type of service. For example, if the AP chip determines that service 1 belongs to the first preset service, the AP chip assigns service 1 to the short-range main chip, and if it determines that the service belongs to the second preset service, the AP chip assigns service 2 to the short-range secondary chip. Among them, the first preset service and the second preset service are preset, such as the second preset service is a private service (such as a multi-screen collaborative service), and the first preset service is all services except the second preset service. Of course, the AP chip can also determine the chip that processes the service according to other rules, for example, it can be randomly assigned, and this application does not limit it.
[0152] S202 , the short-range master chip sends data transmission status information of the short-range master chip to the short-range slave chip in device 1 .
[0153] The data transmission status information may include transmit (TX) status information and receive (RX) status information. The transmit status information indicates that device 1 sends service data to an external device via antenna a, that is, the short-range main chip is in a transmit state. The receive status information indicates that the short-range main chip receives service data sent by an external device via antenna a, that is, the short-range main chip is in a receive state.
[0154] In an embodiment of the present application, the short-distance main chip can share the state of the short-distance main chip with the short-distance secondary chip. When the short-distance main chip uses antenna a to transmit business data (such as business data 1) with an external device, the short-distance main chip can notify the short-distance secondary chip that the short-distance main chip is in a data transmission state, so that when the short-distance secondary chip needs to use antenna a to transmit business data, it determines whether it is necessary to negotiate with the short-distance main chip to use antenna a according to the state of the short-distance main chip. Exemplarily, when the short-distance secondary chip transmits business data, when it is determined that the short-distance main chip is in a data transmission state, the short-distance secondary chip needs to negotiate with the short-distance main chip to use antenna a (such as sending request 1 to the short-distance main chip as described below). When it is determined that the short-distance main chip is not in a data transmission state, it indicates that the short-distance main chip does not need to use antenna a, and the short-distance secondary chip can directly switch antenna a to use antenna a to transmit business data, thereby avoiding unnecessary negotiations.
[0155] Optionally, each time the short-range main chip uses antenna a to send service data once, or uses antenna a to receive service data once, it will send data transmission status information to the short-range secondary chip.
[0156] In some embodiments, the short-distance main chip is connected to the short-distance secondary chip so that communication can be performed between the short-distance main chip and the short-distance secondary chip. In one case, the short-distance main chip and the short-distance secondary chip can be connected through pins. Specifically, pin 1 of the short-distance main chip is connected to pin 2 of the short-distance secondary chip through a wire. When the short-distance main chip uses antenna a to send business data 1, or receives business data 1, the signal output by pin 1 of the short-distance main chip will change from signal 1 to signal 2, and signal 2 indicates that the short-distance main chip is in a data transmission state, that is, it indicates data transmission status information. Afterwards, the short-distance main chip can send signal 2 to the short-distance secondary chip.
[0157] The above-mentioned signal 1 and signal 2 are different electrical signals. For example, signal 1 is a low-level signal, and signal 2 can be a high-level signal. For another example, signal 1 is a high-level signal, and signal 2 can be a low-level signal.
[0158] Optionally, the pin 1 and the pin 2 may be input / output pins, such as GPIO pins. For example, the short-distance master chip and the short-distance slave chip are connected via GPIO pins to achieve communication between the short-distance master chip and the short-distance slave chip.
[0159] It should be noted that the number of the pins 1 and 2 is the same, and the number of the pins 1 and 2 can be more than one. Fig. 7A As shown, the number of pins 1 is two, and correspondingly, the number of pins 2 is also two, and pins 1 and pins 2 are connected one by one. One pin 1 (or pin 1A) is used to transmit the sending status information, and the other pin 1 (or pin 1B) is used to transmit the receiving status information. Specifically, the short-range main chip uses antenna a to send service data 1 to device 2 (simply described as the short-range main chip sends service data 1). The signal output by pin 1A will change from signal 1 to signal 2, and the signal output by pin 1B is still signal 1, indicating that the short-range main chip is in the sending state and shares the sending status information with the short-range secondary chip. The short-range main chip uses antenna a to receive business data 1 sent by device 1 (briefly described as the short-range main chip receives business data 1). The signal output by pin 1A is still signal 1, and the signal output by pin 1B changes from signal 1 to signal 2, indicating that the short-range main chip is in a receiving state, and shares the receiving state information with the short-range slave chip, so that the short-range slave chip can know the specific data transmission state of the short-range main chip, and realize accurate sharing of the data transmission state. As a result, when the short-range slave chip needs to use antenna a to transmit business data, it can determine whether to negotiate with the short-range main chip to use antenna a based on whether the short-range main chip is in a data transmission state.
[0160] Alternatively, since the short-distance slave chip only needs to determine whether the short-distance master chip is in a data transmission state, thereby determining whether it needs to negotiate with the short-distance master chip, the number of the pin 1 and the pin 2 can both be one (eg Figure 7B As shown). Specifically, the short-range main chip sends business data 1, and the signal output by pin 1 changes from signal 1 to signal 2, indicating that the short-range main chip is in a data transmission state, and sends data transmission status information to the short-range secondary chip. The short-range main chip receives business data 1, and the signal output by pin 1 changes from signal 1 to signal 2, indicating that the short-range main chip is in a data transmission state, and sends data transmission status information to the short-range secondary chip, so that the short-range secondary chip knows that the short-range main chip is in a data transmission state. When the short-range secondary chip needs to use antenna a to transmit business data, it determines whether to negotiate with the short-range main chip to use antenna a based on whether the short-range main chip is in a data transmission state.
[0161] In another case, the short-distance master chip and the short-distance slave chip can be connected via a bus (such as the above Figure 7CAs shown). The bus interface of the short-distance main chip is connected to the bus interface of the short-distance secondary chip through a bus. When the short-distance main chip sends business data 1, or receives business data 1, the short-distance main chip can send data transmission status information to the short-distance secondary chip to indicate that the short-distance main chip is in a data transmission state, thereby realizing the sharing of data transmission status. Exemplarily, the short-distance main chip sends business data 1, and the short-distance main chip can send the sending status information to the short-distance secondary chip. The short-distance main chip receives business data 1, and the short-distance main chip can send the receiving status information to the short-distance secondary chip, so that the short-distance secondary chip knows the specific data transmission state of the short-distance main chip. Alternatively, whether the short-distance main chip sends business data 1 or receives business data 1, it can send data transmission status information to the short-distance secondary chip, so that the short-distance secondary chip knows that the short-distance main chip is in a data transmission state.
[0162] S203: The short-range slave chip receives service data 2 sent by the AP chip.
[0163] S204 , when receiving the data transmission status information, the short-range slave chip sends a request 1 to the short-range master chip in response to the service data 2 . The request 1 includes a priority corresponding to the service data 2 .
[0164] Request 1 is used to request to use antenna a.
[0165] Among them, the priority corresponding to the business data (such as the above-mentioned business data 2), that is, the priority corresponding to the business, indicates the importance of the business data, that is, the importance of the business corresponding to the business data. The higher the importance of the business, the higher the priority corresponding to the business, and the lower the importance of the business, the lower the priority corresponding to the business. Optionally, the importance can be characterized by throughput. The higher the throughput of the business, the more sensitive it is to the transmission rate. The higher the transmission rate required to transmit the business data corresponding to the business, the higher the importance. When the transmission rate is low, the impact on the operation of the business with high throughput is greater, and may even cause business interruption. For example, the video call service is highly sensitive to the transmission speed. When the transmission rate of the video call data is low, the video call service may be stuck, or the video call may be disconnected, affecting the user experience.
[0166] In an embodiment of the present application, device 1 runs a new service (or referred to as service 2 here), and the AP chip in device 1 determines that the short-distance communication chip that processes service 2 is a short-distance secondary chip, then the AP chip allocates the service data corresponding to service 2 (i.e., service data 2) to the short-distance secondary chip. After obtaining service data 2 (or referred to as the first data), the short-distance secondary chip indicates that it is necessary to use antenna a to send the service data 2 to the external device. The short-distance secondary chip can determine whether the short-distance main chip is in a data transmission state based on the data transmission status information. When the short-distance main chip is in a data transmission state, it indicates that the short-distance main chip also needs to use antenna a to transmit the service, and the short-distance secondary chip needs to negotiate with the short-distance main chip to use antenna a. For example, the short-distance secondary chip can send request 1 (or referred to as the first request) to the short-distance main chip, and determine whether to switch antenna a according to the response message corresponding to request 1 returned by the short-distance main chip. When the short-range main chip is not in the data transmission state, it indicates that the short-range main chip currently has no need to use antenna a. Therefore, the short-range secondary chip does not negotiate with the short-range main chip to use antenna a. The short-range secondary chip can directly switch antenna a to use antenna a to transmit business data 2.
[0167] In some embodiments, the process in which the short-distance secondary chip determines whether the short-distance main chip is in a data transmission state may include: when the short-distance secondary chip receives the service data 2 sent by the AP chip, it determines whether the data transmission status information sent by the short-distance main chip is received within the target time. The target time includes a preset time 1 before the current time and / or a preset time 2 after the current time. If yes, the short-distance secondary chip can determine that the short-distance main chip is in a data transmission state. If not, the short-distance secondary chip determines that the short-distance main chip is not in a data transmission state. For example, after the short-distance secondary chip receives the service data corresponding to the multi-screen collaborative service, it determines whether the data transmission status information sent by the short-distance main chip is received within 30 seconds before and after. If yes, the short-distance secondary chip determines that the short-distance main chip is in a data transmission state. If not, the short-distance secondary chip determines that the short-distance main chip is not in a data transmission state. Here, the service data corresponding to the multi-screen collaborative service refers to service data 2, and 30 seconds before and after refers to the target time.
[0168] In some embodiments, the short-distance master chip and the short-distance slave chip are connected via a bus, and the short-distance slave chip can directly send a request 1 to the short-distance master chip via the bus, that is, the priority (such as Fig.7D Correspondingly, the short-distance master chip also sends a response message corresponding to the request 1 to the short-distance slave chip through the bus.
[0169] In other embodiments, the short-distance main chip and the short-distance slave chip are connected via pins, and pin 3 (or the first input / output pin) of the short-distance slave chip and pin 4 (or the second input / output pin) of the short-distance main chip are connected via wires. The level signal output by pin 3 (such as signal 3 or signal 4) can represent priority. Among them, signal 3 (or the first electrical signal) can represent 0, signal 4 (or the second electrical signal) can represent 1, and signal 3 and signal 4 are different. For example, signal 3 is a low level signal, and signal 4 is a high level signal. For another example, signal 3 is a high level signal, and signal 4 is a low level signal.
[0170] Among them, the number of pins 3 and pins 4 is the same, and pins 3 and pins 4 are connected one by one. It is worth mentioning that the number of pins 3, that is, the number of pins 4, corresponds to the number of priorities. Specifically, the corresponding relationship can be that x is greater than or equal to and closest to A positive integer, where x represents the number of pins 3, and x represents the number of priorities.
[0171] For example, the number of priorities is 2 (priorities 0 and 1 respectively), is 1, then x is 1, that is, the number of pin 3 is 1, pin 3 outputs signal 3 (such as a low-level signal) indicating that the priority corresponding to business data 2 is 0, and pin 3 outputs signal 4 (such as a high-level signal) indicating that the priority corresponding to business data 2 is 1.
[0172] For another example, the number of priorities is 3 (priorities are 0, 1, and 2), Approximately equal to 1.7, then x is 2, that is, the number of pins 3 is 2, namely high pin 3 and low pin 3. Both low pin 3 and high pin 3 output low-level signals, indicating that the priority corresponding to business data 2 is 0. Low pin 3 outputs a high-level signal, and high pin 3 outputs a low-level signal, indicating that the priority corresponding to business data 2 is 01, that is, the priority corresponding to business data 2 is 1. Low pin 3 outputs a low-level signal, and high pin 3 outputs a high-level signal, indicating that the priority corresponding to business data 2 is 10, that is, the priority corresponding to business data 2 is 3. It should be understood that the number of pins 3 is 2, and the number of pins 4 is also 2 (such as Fig. 7E shown).
[0173] For another example, the number of priorities is 4 (priorities are 0, 1, 2, and 3), is approximately equal to 2, then x is 2, that is, the number of pins 3 is 2, namely, high pin 3 and low pin 3. When low pin 3 outputs a high level signal and high pin 3 outputs a high level signal, it means that the priority corresponding to business data 2 is 11, that is, the priority corresponding to business data 2 is 3.
[0174] In some embodiments, the short-range main chip may not share the state of the short-range main chip with the short-range secondary chip, that is, the short-range main chip may not execute the above S202. Accordingly, after receiving the service data 2, the short-range secondary chip can directly send request 1 to the short-range main chip to negotiate with the short-range main chip to use antenna a, without having to determine that the short-range main chip is in a data transmission state before sending request 1 to the short-range main chip. In other words, the above S204 can be replaced by the description that the short-range secondary chip responds to the above service data 2 and sends request 1 to the short-range main chip. The request 1 includes the priority corresponding to the service data 2.
[0175] S205 . The short-range master chip responds to request 1 and determines whether the priority corresponding to service data 1 is greater than or equal to the priority corresponding to service data 2 .
[0176] In the embodiment of the present application, while the short-range main chip uses antenna a, the short-range main chip has the decision-making power of antenna a. After the short-range main chip receives request 1 sent by the short-range secondary chip, it indicates that the short-range secondary chip needs to use antenna a. In order to ensure the smooth operation of important services, the short-range main chip can determine whether the priority corresponding to the service data 1 (or second data) transmitted by the short-range main chip is greater than or equal to the priority corresponding to the service data 2 (or first data) to be transmitted by the short-range secondary chip, that is, whether the importance of service 1 processed by the short-range main chip is greater than or equal to the importance of service 2 processed by the short-range secondary chip.
[0177] When the priority corresponding to service data 1 is lower than the priority corresponding to service data 2, it indicates that the importance of service 1 processed by the short-distance master chip is lower than the importance of service 2 processed by the short-distance slave chip, and the short-distance master chip can execute S206.
[0178] When the priority corresponding to service data 1 is greater than or equal to the priority corresponding to service data 2, it indicates that the importance of service 1 processed by the short-distance main chip is greater than or equal to the importance of service 2 processed by the short-distance secondary chip, and the short-distance main chip can execute S216.
[0179] In some embodiments, the priorities corresponding to the above service data (such as the priority corresponding to service data 1 and the priority corresponding to service data 2) can be determined by the AP chip and sent to the short-range communication chip that transmits the service data. For example, the AP chip determines the priority corresponding to service data 1 and sends the priority corresponding to service data 1 to the short-range main chip. The AP chip determines the priority corresponding to service data 2 and sends the priority corresponding to service data 2 to the short-range secondary chip.
[0180] Optionally, the priority corresponding to the above-mentioned service data may be determined by a preset service priority table, which includes at least one service identifier (such as an application identifier, a process identifier for processing the service) and a priority corresponding to each service identifier in the at least one service identifier. For example, the AP chip searches for the priority corresponding to service 1 through the preset service priority table to obtain the priority corresponding to service data 1.
[0181] In addition, the priority corresponding to the above-mentioned service data may also be determined by the short-range communication chip that transmits the service data. For example, after obtaining service data 1, the short-range main chip determines the priority corresponding to the service data 1.
[0182] S206: The short-range master chip sends an acceptance response message to the short-range slave chip.
[0183] In some embodiments, the short-distance master chip and the short-distance slave chip are connected via a bus, and the short-distance master chip can send an acceptance response message (such as Figure 7F As shown), to trigger the short-range secondary chip to switch antenna a.
[0184] In other embodiments, the short-distance master chip and the short-distance slave chip are connected via pins, such as Figure 7G As shown, pin 5 of the short-distance main chip is connected to pin 6 of the short-distance slave chip through a wire, and the electrical signal output by pin 5 of the short-distance main chip indicates the response message corresponding to the above request 1. For example, pin 5 outputs signal 5, indicating that the response message is an acceptance response message, and pin 5 outputs signal 6, indicating that the response message is a rejection response message. Signal 5 and signal 6 are different electrical signals. For example, signal 5 is a low-level signal, and signal 6 can be a high-level signal. For another example, signal 5 is a high-level signal, and signal 6 can be a low-level signal.
[0185] It can be understood that, when the importance of the business processed by the short-range main chip (such as the above-mentioned business 1) is equal to the importance of the business processed by the short-range secondary chip (such as the above-mentioned business 2), the short-range main chip can be used by default to use antenna a, and of course, the short-range secondary chip can also be used by default to use antenna a. Alternatively, when the importance of the business processed by the short-range main chip is equal to the importance of the business processed by the short-range secondary chip, the chip occupying antenna a can continue to occupy antenna a without switching antenna a.
[0186] S207, in response to the receiving response message, the short-distance slave chip conducts the first end and the second end of the single-pole double-throw switch 1, the second end is connected to the short-distance slave chip, and the first end is connected to the antenna a. The third end of the single-pole double-throw switch 1 is connected to the short-distance master chip.
[0187] Among them, the above-mentioned single-pole double-throw switch 1 may include a first end, a second end and a third end, the first end is a fixed end, and the second end and the third end are both movable ends. The first end is connected to the short-distance auxiliary chip, the second end is connected to the short-distance auxiliary chip, and the third end is connected to the short-distance main chip. Specifically, the short-distance auxiliary chip outputs a control signal 1 to the single-pole double-throw switch 1 to connect the first end and the second end of the single-pole double-throw switch 1, so that the antenna a is connected to the short-distance auxiliary chip, that is, the short-distance auxiliary chip can use the antenna a to transmit data. At this time, the antenna a is not connected to the short-distance main chip, and the short-distance main chip cannot use the antenna a to transmit data. For example, if Figure 8 As shown, the first end of the single-pole double-throw switch 1 is connected to the third end, and the antenna a is connected to the short-distance main chip, so that the short-distance main chip can use the antenna a to transmit business data (such as the above-mentioned business data 1). When the short-distance main chip sends an acceptance response message to the short-distance secondary chip, it indicates that the short-distance main chip agrees to switch antenna a. In response to the acceptance response message, the short-distance secondary chip can connect the first end of the single-pole double-throw switch 1 to the second end, and disconnect the third end from the first end, so that the short-distance secondary chip is connected to the antenna a (such as the above-mentioned business data 1). Fig. 9 As shown), the short-range secondary chip occupies the antenna a, so that the short-range secondary chip can use the antenna a to transmit business data. At this time, the antenna a is not connected to the short-range main chip, and the short-range main chip cannot use the antenna a to transmit business data.
[0188] In an embodiment of the present application, after the short-range secondary chip receives the acceptance response message, it indicates that the short-range secondary chip can switch the antenna so that the short-range secondary chip can use antenna a. The short-range secondary chip can respond to the acceptance response message by connecting the first end and the second end of the single-pole double-throw switch 1, thereby switching antenna a to the short-range secondary chip side, so that the short-range secondary chip can transmit business data 2, ensuring that important business data is transmitted first, thereby ensuring the smooth operation of important businesses, and realizing reasonable and accurate time-division multiplexing of antenna a.
[0189] In some embodiments, the short-range slave chip may send a request 1 to the short-range main chip every time it transmits service data 2 while occupying antenna a to transmit service data 2, that is, send the priority corresponding to service data 2 to the short-range main chip to negotiate with the short-range main chip to use the short-range communication chip of antenna a. Alternatively, in order to reduce the number of times request 1 is sent to reduce resource consumption, the short-range slave chip may not actively send request 1 while occupying antenna a, but wait for the short-range main chip to send a request (such as request 2 described below). After receiving the request sent by the short-range main chip, determine whether to switch antenna a.
[0190] In some embodiments, the short-distance slave chip can be connected to the first end of the single-pole double-throw switch 1 through a GPIO pin to output a control signal through the GPIO pin to trigger the switching of the single-pole double-throw switch 1.
[0191] 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.
[0192] It should be noted that the above-mentioned switching of antenna a through 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 slave chip can achieve the connection between the short-range slave chip and antenna a, or the connection between the short-range main chip and antenna a through a switch (or called a target switch). The type of the switch is not limited, as long as it can achieve the switching of antenna a.
[0193] S208. The short-range secondary chip sends service data 2 to device 3 via antenna a.
[0194] In an embodiment of the present application, after the short-range secondary chip is connected to antenna a, the short-range secondary chip can use antenna a to transmit business data 2 with an external device (such as device 3), such as sending business data 2 to device 3 through antenna a, or receiving business data 2 sent by device 3 through antenna a.
[0195] In the embodiment of the present application, the short-range slave chip and the short-range main chip reuse antenna a and avoid working at the same time through negotiation, that is, avoid using antenna a to transmit business data at the same time, thereby avoiding mutual interference of signals when working at the same time, ensuring a faster transmission rate of high-priority business data, and thus ensuring the smooth operation of important businesses and improving the user experience.
[0196] In some embodiments, the above-mentioned device 1 may also include an antenna b (or a second antenna), and the short-range main chip exclusively occupies antenna b. Therefore, while the short-range secondary chip uses antenna a, the short-range main chip can use antenna b to continue business data 1, ensuring that the business processed by the short-range main chip can continue to run, but the transmission speed of business data 1 will be reduced to avoid interruption of the business processed by the short-range main chip, thereby ensuring the user experience. In addition, the short-range main chip can switch to a single-frequency single-transmission mode to use antenna b to transmit business data 1, where single-frequency single-transmission means that the electronic device only supports one working frequency band, such as a 2.4GHz working frequency band, a 5GHz working frequency band, a 6GHz working frequency band, etc.
[0197] Optionally, the short-range main chip can be connected to the antenna b via a core pin (such as an ANT pin) to output a radio frequency signal through the core pin to achieve transmission of service data.
[0198] In some embodiments, the short-distance sub-chips in different devices can be used to process private services, so that the short-distance sub-chips between different devices can use a custom short-distance communication protocol to perform service data transmission. For example, the short-distance sub-chip in the above-mentioned device 1 sends private service data to the sub-chip in device 3, and device 3 can also send private service data to the short-distance sub-chip in device 1, thereby improving the efficiency of short-distance communication and thus improving the efficiency of service data transmission. Exemplarily, the private service data is used to trigger device discovery, establish a short-distance communication connection, and transmit service data (or data) between devices. For example, if the private service is a collaborative service, the short-distance communication connection corresponding to the collaborative service includes a WI-FI connection, and the steps corresponding to the conventional WI-FI communication protocol (or the standard WI-FI communication protocol) include scanning, authentication, association, the first handshake, the second handshake, the third handshake, and the fourth handshake. The custom short-distance 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, the connection establishment steps corresponding to the custom short-distance communication protocol are less than the connection establishment steps corresponding to the standard short-distance communication protocol, such as omitting the authentication step, thereby simplifying the WI-FI connection process and improving the efficiency of service data transmission.
[0199] 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.
[0200] 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.
[0201] 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.
[0202] S209. The short-range main chip receives the service data 3 sent by the AP chip.
[0203] S210 , the short-range master chip sends a request 2 to the short-range slave chip, wherein the request 2 includes a priority corresponding to the service data 3 .
[0204] The request 2 is used to request the use of antenna a.
[0205] In an embodiment of the present application, while the short-range secondary chip is using antenna a, that is, while the short-range main chip is not using antenna a, the short-range main chip receives service data corresponding to service 3 (or called the above-mentioned service data 3) sent by the AP chip, indicating that the short-range main chip needs to transmit service data 3 (or called the third data). Therefore, the short-range main chip needs to negotiate with the short-range secondary chip to use antenna a. The short-range main chip can send request 2 (or called the second request) to the short-range secondary chip. Request 2 can be service 3, that is, the priority corresponding to the service data corresponding to service 3.
[0206] Optionally, the short-distance master chip may send request 2 to the short-distance slave chip via a bus or a pin. The detailed process may refer to the above description of the short-distance slave chip sending request 1 to the short-distance master chip via a bus or a pin, which will not be repeated here.
[0207] In some embodiments, after the AP chip assigns service 3 to the short-range main chip, the short-range main chip may first determine whether the priority corresponding to service data 3 is greater than the priority corresponding to service data 1. Since the priority corresponding to service data 1 is less than the priority corresponding to service data 2 transmitted by the above-mentioned short-range secondary chip, therefore, when the priority corresponding to service data 3 is less than or equal to the priority corresponding to service data 1, the priority corresponding to service data 3 is less than the priority corresponding to service data 2. Therefore, the short-range main chip does not need to negotiate with the short-range secondary chip to use antenna a, that is, there is no need to execute the above S210, avoiding unnecessary negotiation of antenna a. When the priority corresponding to service data 3 is greater than the priority corresponding to service data 1, the priority corresponding to service data 3 may be greater than the priority corresponding to service data 2. Therefore, the short-range main chip can execute the above S210.
[0208] Among them, optionally, the priority corresponding to the above-mentioned service data 1 is the service data with the highest priority processed by the short-distance main chip. After the short-distance main chip receives service data 3, it can be determined whether the priority corresponding to service data 3 is greater than the priority corresponding to service data 1. If it is greater, it indicates that the priority corresponding to service data 3 is the highest priority among the priorities corresponding to the service data that the short-distance main chip needs to transmit, which may be higher than the priority corresponding to the above-mentioned service data 2. Therefore, the short-distance main chip can send the above-mentioned request 2 to the short-distance secondary chip, otherwise, the short-distance main chip does not need to send request 2.
[0209] S211 . The short-range slave chip responds to request 2 and determines whether the priority corresponding to service data 3 is greater than or equal to the priority corresponding to service data 2 .
[0210] In the embodiment of the present application, after receiving request 2, the short-range slave chip indicates that the short-range main chip needs to use antenna a to transmit and process business data corresponding to the business. In order to ensure the smooth operation of important businesses, the short-range slave chip can determine whether the priority corresponding to the business data 3 that the short-range main chip needs to transmit is greater than or equal to the priority corresponding to the business data 2 transmitted by the short-range slave chip, that is, whether the importance of business 3 processed by the short-range main chip is greater than or equal to the importance of business 2 processed by the short-range slave chip.
[0211] When the priority corresponding to service data 3 is lower than the priority corresponding to service data 2, it indicates that the importance of service 3 processed by the short-distance main chip is lower than the importance of service 2 processed by the short-distance secondary chip. The service processed by the short-distance secondary chip is more sensitive to the transmission rate. The short-distance secondary chip can execute S212.
[0212] When the priority corresponding to service data 3 is greater than or equal to the priority corresponding to service data 2, it indicates that the importance of service 3 processed by the short-range main chip is greater than or equal to the importance of service 3 processed by the short-range secondary chip, and the service processed by the short-range secondary chip is more sensitive to the transmission rate. The short-range secondary chip needs to switch antenna a, and the short-range secondary chip can execute S214.
[0213] S212: The short-range slave chip sends a rejection response message to the short-range master chip.
[0214] S213. The short-range slave chip continues to use antenna a to transmit service data 2.
[0215] In an embodiment of the present application, when the importance of service 3 processed by the short-range main chip is less than the importance of service 2 processed by the short-range secondary chip, it indicates that the service processed by the short-range secondary chip is more sensitive to the transmission rate than the service processed by the short-range main chip. Therefore, it is necessary to give priority to the service processed by the short-range secondary chip. The short-range secondary chip can send a rejection response message to the short-range main chip to reject the switching request of antenna a of the short-range main chip, that is, continue to use antenna a to transmit service data 2.
[0216] The process of sending the rejection response message may refer to the related description of sending the acceptance response message. For example, the short-range slave chip may send the rejection response message to the short-range master chip through a bus or a pin.
[0217] In some embodiments, during the period when the short-range secondary chip occupies antenna a, that is, during the period when the short-range secondary chip is connected to antenna a, such as during the period when the service data 2 is transmitted using antenna a, the device 1 runs a new service (or service 4), and the service 4 is assigned to the short-range secondary chip, indicating that the short-range secondary chip needs to transmit the service data corresponding to service 4 (i.e., service data 4), and the short-range secondary chip needs to determine whether the importance of service 4 is high, that is, whether service data 4 needs to be transmitted first. Since the short-range secondary chip uses antenna a, it indicates that the priority corresponding to the service processed by the short-range secondary chip is greater than the priority corresponding to the service processed by the short-range main chip. Therefore, the short-range secondary chip can determine whether the priority corresponding to service data 4 is greater than or equal to the priority corresponding to service data 2. If the priority corresponding to service data 4 is greater than the priority corresponding to service data 2, it indicates that the importance of service 4 is higher than that of service 1, and the transmission rate of service 4 needs to be guaranteed first. The short-range secondary chip can use antenna a to transmit service data 4 and stop transmitting service data 2.
[0218] If the priority corresponding to service data 4 is less than or equal to the priority corresponding to service data 2, it indicates that the importance of service 4 is less than or equal to the importance of service 2, and the transmission rate of service 2 needs to be prioritized. The short-range secondary chip can continue to use antenna a to transmit service data 2.
[0219] Among them, optionally, after the operation of service 2 is completed, it indicates that the short-range secondary chip no longer needs to transmit service data 2, but there is service data 4 that needs to be transmitted. The short-range secondary chip can send a request 3 to the short-range main chip, and the request 3 includes the priority corresponding to the service data 4. The short-range main chip responds to the request 3 and determines whether the service data 4 is greater than the service data with the highest priority processed by the short-range main chip. If so, the short-range secondary chip still does not need to switch antenna a, but can continue to use antenna a to transmit service data 4 with the external device. If not, the short-range secondary chip needs to switch antenna a so that the short-range main chip can use antenna a to transmit the service data with the highest priority, thereby transmitting the corresponding service data in order from high to low priority, so that the service data with high priority is transmitted in time, and the smoothness of the operation of the service with high priority is ensured.
[0220] S214 , the short-distance slave chip sends an acceptance response message to the short-distance master chip, and connects the first terminal and the third terminal of the single-pole double-throw switch 1 .
[0221] S215. The short-range main chip responds to the above-mentioned acceptance response message and sends service data 3 to device 4 through antenna a. The priority corresponding to service data 3 is greater than the priority corresponding to service data 1.
[0222] In the embodiment of the present application, when the importance of the business processed by the short-distance main chip is greater than or equal to the importance of the business processed by the short-distance secondary chip, it indicates that the business processed by the short-distance main chip is more sensitive to the transmission rate than the business processed by the short-distance secondary chip. Therefore, the short-distance secondary chip needs to switch antenna a, and the short-distance secondary chip can control the single-pole double-throw switch 1 to switch, and the first end and the third end are turned on, so that the antenna a is connected to the short-distance main chip, so that the short-distance main chip can use antenna a to transmit the highest priority business data processed by the short-distance main chip to an external device (such as device 4). Exemplarily, if the priority corresponding to business data 3 is greater than the priority corresponding to business data 1, the short-distance main chip sends business data 3 to device 4 through antenna a, and receives business data 3 sent by device 4 through antenna a. If the priority corresponding to business data 3 is less than or equal to the priority corresponding to business data 1, the short-distance main chip sends business data 1 to device 1 through antenna a, and receives business data 1 sent by device 1 through antenna a.
[0223] In some embodiments, the above steps S209-S215 are optional steps, that is, device 1 may not execute S209-S215. After the transmission of service data 2 is completed, that is, after the operation of service 2 is completed, the short-range secondary chip can directly switch antenna a, so that the short-range main chip can use antenna a to transmit service data. When the short-range secondary chip needs to transmit service data, it negotiates with antenna a again to use antenna a.
[0224] The above describes a process in which, after S205, when it is determined that the priority corresponding to the service data 1 processed by the short-range main chip is lower than the priority corresponding to the service data 2 processed by the short-range secondary chip, the short-range secondary chip switches antenna a to use antenna a to transmit service data 2. The following will continue to describe a process in which, after S205, when it is determined that the priority corresponding to the service data 1 processed by the short-range main chip is greater than or equal to the priority corresponding to the service data 2 processed by the short-range secondary chip, the short-range main chip continues to use antenna a.
[0225] S216: The short-range master chip sends a rejection response message to the short-range slave chip.
[0226] S217. The short-range main chip sends service data 1 to device 1 via antenna a.
[0227] In an embodiment of the present application, when the importance of service 1 processed by the above-mentioned short-range main chip is greater than or equal to the importance of service 2 processed by the short-range secondary chip, in order to ensure the smooth operation of the important service, the short-range main chip can reject the switching request of antenna a of the short-range secondary chip, and inform the short-range secondary chip to stop switching antenna a. That is to say, the short-range main chip can continue to use antenna a to transmit service data 1, thereby ensuring the transmission speed of the service data corresponding to the important service, and further ensuring the smooth operation of the important service.
[0228] In some embodiments, the short-distance slave chip may not control the switching of the single-pole double-throw switch 1, but the short-distance master chip controls 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.
[0229] It should be noted that the type of chip used by the above-mentioned short-range main chip to send business data to external devices can be the same as the type of chip used by the short-range secondary chip to send business data to external devices. For example, the WI-FI chip in the short-range main chip sends business data 1 to device 2, and the WI-FI chip in the short-range secondary chip sends business data 2 to device 3, thereby realizing dual WI-FI chips to process different services.
[0230] Alternatively, the type of chip used by the above-mentioned short-range main chip to send business data to the external device may be different from the type of chip used by the short-range secondary chip to send business data to the external device. For example, the WI-FI chip in the short-range main chip sends business data 1 to device 2, and the NFC chip in the short-range secondary chip sends business data 2 to device 3, thereby realizing dual WI-FI chips to process different services.
[0231] In some embodiments, after receiving the rejection response message, the short-range slave chip may wait for a period of time and then resend the request 1 to the short-range master chip.
[0232] In an embodiment of the present application, the short-range main and secondary chips can communicate with each other through a bus or a GPIO pin. The short-range main and secondary chips reuse the same antenna a. The short-range main and secondary chips can negotiate to use the short-range communication chip of antenna a based on the importance of the services processed by the main and secondary chips, thereby avoiding the short-range main and secondary chips from working at the same time, realizing time-division multiplexing, and ensuring the transmission rate of important services, thereby reducing the impact of time-division multiplexing on user experience.
[0233] It should be noted that the above is an example of reusing an antenna a between the short-range main and auxiliary chips to introduce the process of negotiating the use of a reused antenna between the short-range main and auxiliary chips. Of course, multiple (such as two) antennas can also be reused between the short-range main and auxiliary chips, that is, the number of antennas a can be multiple. The process of negotiating the use of multiple reused antennas between the short-range main and auxiliary chips can refer to the relevant description of the negotiation between the short-range main and auxiliary chips to use a reused antenna, which will not be repeated here.
[0234] Among them, optionally, due to limited space in the device, multiple antennas are reused between the short-range main and secondary chips. For example, when two antennas are reused, the short-range main chip may not have a corresponding independent antenna b. In other words, the antenna b introduced above is also regarded as an antenna a.
[0235] b. Dual-chip frequency division multiplexing
[0236] In the present application embodiment, Fig.10 As shown, the dual chips in device 1 (i.e., the short-range main chip and the short-range secondary chip) respectively use independent front-end RF antennas, that is, the antenna used by the short-range main chip is different from the antenna used by the short-range secondary chip. The short-range main and secondary chips operate in different frequency bands to achieve dual-chip concurrent transmission at different frequencies. The short-range main and secondary chips can communicate with each other. Based on the priority of the service data, the short-range main and secondary chips can negotiate the short-range communication chip in the short-range main and secondary chips that needs to reduce the transmission power, and execute the corresponding coexistence strategy. Then, the short-range communication chip continues to transmit service data using the reduced transmission power, while the other short-range communication chip can transmit service data normally, thereby achieving frequency division multiplexing and reducing signal interference between the short-range main and secondary chips, ensuring a higher priority, that is, the transmission delay of important services, thereby ensuring that important services can be processed in a timely manner. Specifically, as Fig.11 As shown, the time division multiplexing process may include S301-S322.
[0237] S301 , the short-range main chip in device 1 transmits service data 5 to device 5 via antenna c in device 1 .
[0238] In some embodiments, the antenna c (or the fourth antenna) is an antenna exclusively used by the short-range main chip. The number of the antenna c can be one or more, for example, Fig.10 As shown, the number of antennas c is 2.
[0239] S302 , the short-range master chip sends data transmission status information of the short-range master chip to the short-range slave chip in device 1 .
[0240] S303: The short-range slave chip receives service data 6 sent by the AP chip.
[0241] S304 , when receiving the data transmission status information, the short-distance slave chip sends a request 4 to the short-distance master chip in response to the service data 6 . The request 4 includes the priority corresponding to the service data 6 .
[0242] Request 4 is used to request the short-range main chip to back off the transmission power. The number of the antenna d can be at least one, as described above. Fig.10 As shown, the number of antennas d is one.
[0243] Among them, the specific implementation process of the above S301-S304 can refer to the relevant description of the above S201-S204, which will not be repeated here.
[0244] In some embodiments, the short-distance main chip may not share the state of the short-distance main chip with the short-distance secondary chip, that is, the short-distance main chip may not execute the above S302. Accordingly, after receiving the service data 6 (or may be referred to as the first data here), the short-distance secondary chip may directly send a request 4 (or may be referred to as the first request) to the short-distance main chip to negotiate with the short-distance main chip to fall back on the transmission power, without having to determine that the short-distance main chip is in a data transmission state before sending a request 4 to the short-distance main chip. In other words, the above S304 can be replaced by describing that the short-distance secondary chip sends a request 4 to the short-distance main chip in response to the above service data 6.
[0245] S305 . The short-range master chip responds to request 4 and determines whether the priority corresponding to service data 5 is greater than or equal to the priority corresponding to service data 6 .
[0246] In the embodiment of the present application, after the short-distance main chip receives the request 4 sent by the short-distance secondary chip, it indicates that the short-distance secondary chip needs to use antenna d for high-power transmission. In order to ensure the smooth operation of important services, the short-distance main chip can determine whether the priority corresponding to the service data 5 (here or can be called the second data) transmitted by the short-distance main chip is greater than or equal to the priority corresponding to the service data 6 that the short-distance secondary chip needs to transmit, that is, whether the importance of the service 5 processed by the short-distance main chip is greater than or equal to the importance of the service 6 processed by the short-distance secondary chip. In the case where the priority corresponding to the service data 5 is less than the priority corresponding to the service data 6, it indicates that the importance of the service processed by the short-distance main chip is relatively small and the sensitivity to the transmission rate is relatively low, while the importance of the service processed by the short-distance secondary chip is relatively large, and the short-distance main chip can execute S306.
[0247] When the priority corresponding to business data 5 is greater than or equal to the priority corresponding to business data 6, it indicates that the importance of the business processed by the short-distance main chip is greater than or equal to the importance of the business processed by the short-distance secondary chip, indicating that the importance of the business processed by the short-distance main chip is greater and the sensitivity to the transmission rate is higher. The short-distance main chip can execute S319.
[0248] The antenna d (or the third antenna) is an antenna exclusively used by the short-range secondary chip, and the number of antennas d can be one or more. Fig.10 As shown, the number of antenna d is 1.
[0249] S306: The short-range master chip sends an acceptance response message to the short-range slave chip to reduce the transmission power of the short-range master chip.
[0250] S307 . The short-range main chip sends service data 5 to device 5 via antenna c based on the reduced transmission power.
[0251] S308. In response to the acceptance response message, the short-range secondary chip sends service data 6 to device 6 via antenna d based on transmission power 1. The transmission power 1 is greater than the reduced transmission power of antenna c.
[0252] In an embodiment of the present application, when the short-range secondary chip processes a high-priority service, the short-range main chip performs transmission power backoff, and the short-range main chip uses the reduced transmission power (or described as the second transmission power) to transmit service data 5, while the short-range secondary chip can use the normal transmission power (or described as the first transmission power) to transmit service data 6, thereby achieving concurrent transmission and reducing the degree of signal interference between the short-range main chip and the short-range secondary chip, avoiding mutual interference when the short-range main and secondary chips work at the same time, thereby avoiding affecting the transmission efficiency of the service processed by the short-range secondary chip and ensuring the smooth operation of important services.
[0253] Exemplarily, the reduction of the transmission power of the short-range main chip may be to reduce the transmission power of the short-range main chip from transmission power 2 to transmission power 3. Transmission power 2 may be the same as or different from the transmission power 1, and transmission power 3 is less than transmission power 1.
[0254] It is understandable that reducing the transmission power of the short-range communication chip may refer to reducing the transmission power of the antenna used by the short-range communication chip. For example, reducing the transmission power of the short-range main chip refers to reducing the transmission power of each antenna c used by the short-range main chip.
[0255] S309. The short-range main chip receives the service data 7 sent by the AP chip.
[0256] S310 : The short-range master chip sends a request 5 to the short-range slave chip, wherein the request 5 includes the priority corresponding to the service data 7 .
[0257] The request 2 is used to request the short-range slave chip to back off the transmission power.
[0258] In the embodiment of the present application, during the transmission power backoff period of the short-range main chip, the AP chip runs a new service (such as service 7) and allocates service 7 to the short-range main chip. The short-range main chip receives the service data corresponding to service 7 sent by the AP chip (or referred to as the above-mentioned service data 7), indicating that the short-range main chip may need to process high-priority services. The short-range main chip can negotiate with the short-range secondary chip to perform a short-range communication chip with transmission power backoff, and then the short-range main chip can send a request 5 (or referred to as a second request here) to the short-range secondary chip.
[0259] S311 . The short-range slave chip responds to request 5 and determines whether the priority corresponding to service data 7 is greater than or equal to the priority corresponding to service data 6 .
[0260] In an embodiment of the present application, in order to ensure the smooth operation of important services, the short-distance slave chip can determine whether the priority corresponding to the service data 7 (here or can be called the third data) that the short-distance main chip needs to transmit is greater than or equal to the priority corresponding to the service data 6 transmitted by the short-distance slave chip, that is, whether the importance of the service processed by the short-distance main chip is greater than or equal to the importance of the service processed by the short-distance slave chip.
[0261] When the priority corresponding to service data 7 is lower than the priority corresponding to service data 6, it indicates that the importance of the service processed by the short-distance master chip is lower than that of the service processed by the short-distance slave chip, and the short-distance slave chip can execute S312.
[0262] When the priority corresponding to service data 7 is greater than or equal to the priority corresponding to service data 6, it indicates that the importance of the service processed by the short-range main chip is greater than or equal to the importance of the service processed by the short-range secondary chip. The short-range secondary chip can perform transmission power backoff and the short-range secondary chip can execute S315.
[0263] S312: The short-range slave chip sends a rejection response message to the short-range master chip.
[0264] S313 . The short-range secondary chip continues to send service data 6 to device 6 through antenna d based on transmission power 1 .
[0265] S314: In response to the rejection response message, the short-range main chip sends service data 7 to device 7 through antenna c based on the reduced transmission power. The priority corresponding to priority 7 is greater than the priority corresponding to service data 6.
[0266] In an embodiment of the present application, when the importance of the service 7 processed by the short-distance main chip is less than the importance of the service 6 processed by the short-distance secondary chip, it indicates that the service processed by the short-distance secondary chip is more sensitive to the transmission rate than the service processed by the short-distance main chip, that is, more sensitive to the transmission delay. Therefore, in order to ensure the normal operation of the important service, the short-distance secondary chip can send a rejection response message to the short-distance main chip to refuse to roll back the transmission power, but continue to transmit the service data 6 at the normal transmission power.
[0267] After receiving the rejection response message sent by the short-range slave chip, the short-range master chip does not increase the transmission power, and continues to transmit the service data with the highest priority processed by the short-range master chip according to the reduced transmission power. Exemplarily, if the priority corresponding to service data 7 is greater than the priority corresponding to service data 5, the short-range master chip sends service data 7 to device 7 according to the reduced transmission power, and receives service data 7 sent by device 7. If the priority corresponding to service data 7 is less than or equal to the priority corresponding to service data 5, the short-range master chip continues to send service data 5 to device 5 according to the reduced transmission power, and receives service data 5 sent by device 5.
[0268] S315: The short-range slave chip sends an acceptance response message to the short-range master chip to reduce the transmission power of the short-range slave chip.
[0269] S316. The short-range secondary chip sends service data 6 to device 6 through antenna d based on the reduced transmission power of the short-range secondary chip.
[0270] S317 . In response to the acceptance response message, the short-range master chip increases the transmission power of the short-range master chip.
[0271] S318, the short-range main chip transmits service data 7 to device 7 through antenna c based on the increased transmission power of the short-range main chip. The increased transmission power of the short-range main chip is greater than the reduced transmission power of the short-range secondary chip.
[0272] In an embodiment of the present application, when the short-range main chip processes a high-priority service, the short-range secondary chip performs transmission power backoff, and the short-range secondary chip uses the reduced transmission power (or described as the fifth transmission power) instead of the above-mentioned transmission power 1 to transmit service data 6 with device 6, while the short-range main chip can use a larger transmission power (or described as the sixth transmission power) to transmit service data 7, thereby achieving concurrent transmission, and reducing the degree of signal interference between the short-range main chip and the short-range secondary chip, avoiding mutual interference when the short-range main and secondary chips work at the same time, thereby avoiding affecting the transmission efficiency of the service processed by the short-range main chip and ensuring the smooth operation of important services.
[0273] Exemplarily, the above-mentioned increasing the transmission power of the short-range main chip may be increasing the transmission power of the short-range main chip from transmission power 3 to transmission power 4. The transmission power 4 may be the same as the above-mentioned transmission power 2, or may be different.
[0274] Exemplarily, the reduction of the transmission power of the short-range slave chip may be to reduce the transmission power of the short-range slave chip from transmission power 1 to transmission power 5. The transmission power 5 is less than the transmission power 4 mentioned above.
[0275] The above describes a process in which, after S305, when it is determined that the priority corresponding to the service data 5 processed by the short-range main chip is less than the priority corresponding to the service data 6 processed by the short-range secondary chip, the short-range main chip backs off the transmission power and transmits the service data using a smaller transmission power, while the short-range secondary chip transmits the service data normally. The following will continue to describe a process in which, after S305, when it is determined that the priority corresponding to the service data 5 processed by the short-range main chip is greater than or equal to the priority corresponding to the service data 6 processed by the short-range secondary chip, the short-range main chip continues to transmit the service data normally, while the short-range secondary chip backs off the transmission power and transmits the service data using a smaller transmission power.
[0276] S319: The short-range master chip sends a rejection response message to the short-range slave chip.
[0277] S320. The short-range main chip sends service data 5 to device 5 via antenna c at a transmission power of 2.
[0278] S321 . The short-range slave chip reduces the transmission power of the short-range slave chip in response to the rejection response message.
[0279] S322: The short-range secondary chip sends service data 6 to device 6 via antenna d according to the reduced transmission power of the short-range secondary chip. The reduced transmission power of the short-range secondary chip is less than transmission power 2.
[0280] In an embodiment of the present application, when the short-range main chip processes a high-priority service, the short-range secondary chip performs transmission power backoff, and the short-range secondary chip uses the reduced transmission power (or described as the third transmission power) to transmit service data 6 with device 6, while the short-range main chip can use normal transmission power (or described as the fourth transmission power) to transmit service data 7, thereby achieving concurrent transmission, and reducing the degree of signal interference between the short-range main chip and the short-range secondary chip, avoiding mutual interference when the short-range main and secondary chips work at the same time, thereby avoiding affecting the transmission efficiency of the service processed by the short-range main chip and ensuring the smooth operation of important services.
[0281] In some embodiments, the short distance between the main and auxiliary cores can also be connected by pins (such as Fig. 12A GPIO pins as shown) or as Fig. 12B The bus transmission request (such as request 4 and request 5 mentioned above) or response message (such as the rejection response message and acceptance response message mentioned above) shown.
[0282] It should be noted that the dual-chip frequency division multiplexing process introduced in part b can refer to the dual-chip time division multiplexing process introduced in part a. For example, during the period when the short-range slave chip transmits service data at a higher transmission power than the short-range main chip, device 1 runs a new service, and the new service is assigned to the short-range slave chip, indicating that the short-range slave chip needs to transmit the service data corresponding to the new service. The short-range slave chip needs to determine whether the importance of the service data corresponding to the new service is high, that is, whether it is necessary to give priority to transmitting the service data corresponding to the new service. However, there is no need to switch the single-pole double-throw switch 1, only the transmission power needs to be adjusted.
[0283] In some embodiments, the short-range slave chip and the short-range master chip have different working frequency bands when transmitting service data at the same time. For example, the short-range master chip can transmit service data 5 according to the first working frequency band, and the short-range master chip can transmit service data 6 according to the second working frequency band, and the first working frequency band is different from the second working frequency band.
[0284] In some embodiments, the short-range main chip and the short-range secondary chip can communicate through AP. Correspondingly, no connection may be established between the short-range main chip and the short-range secondary chip. Then, the transmission of the above-mentioned information (such as the above-mentioned request, response message, etc.) between the short-range main chip and the short-range secondary chip can be carried out through AP.
[0285] In an embodiment of the present application, the short-range main and secondary chips can communicate with each other through a bus or GPIO pins. The short-range main and secondary chips use independent antennas. The short-range main and secondary chips can negotiate with the short-range communication chip for transmission power fallback based on the importance of the services processed by the main and secondary chips, thereby avoiding mutual interference when the short-range main and secondary chips work at the same time, realizing frequency division multiplexing, and being able to ensure the transmission rate of important services, thereby reducing the impact of frequency division multiplexing on user experience.
[0286] In some embodiments, the AP chip in device 1 can directly determine the important service according to the priority of the service processed by the short-range main and secondary chips, and then control the short-range communication chip that does not process the important service to perform power fallback or control the short-range communication chip that processes the important service to occupy the reused antenna. Figure 3 The structure shown in the figure takes the short-distance antenna reuse between the main and auxiliary chips and the collaborative service as an example to explain the process in detail. Fig.13 As shown, the process is as follows:
[0287] S1. In response to a user's start-up operation on a coordinated application, the coordinated application is started.
[0288] S2. The scene recognition module obtains the identification of the collaborative application.
[0289] Exemplarily, the identifier of the collaborative application can be the name of the collaborative application, the package name, or the process ID corresponding to the collaborative application. For example, when the collaborative application is started, the scene recognition module can obtain the foreground application, that is, the package name of the collaborative application. Here, the identifier of the collaborative application refers to the business identifier introduced above.
[0290] S3. The scenario recognition module sends the identification of the collaborative application to the service priority module and the transmission link control module.
[0291] In the embodiment of the present application, after receiving operation 1 input by the user, device 1 indicates that the collaborative application needs to be started, and device 1 (such as the AP chip in device 1) can start the collaborative application. For example, operation 1 is the user's Fig. 6A The icon 10 of the first game application is clicked.
[0292] The scene recognition module in device 1 can obtain the identification of the foreground startup application, so the scene recognition module can obtain the identification of the collaborative application. After obtaining the identification of the collaborative application, the identification of the collaborative application is sent to the service priority module for the service priority module to determine the priority corresponding to the collaborative application.
[0293] S4. The transmission link control module determines the identifier of the target short-range communication chip corresponding to the collaborative application based on the identifier of the collaborative application.
[0294] The target short-range communication chip corresponding to the collaborative application refers to a short-range communication chip that processes the service corresponding to the collaborative application, that is, a short-range communication chip that transmits the service data corresponding to the collaborative application.
[0295] S5. The transmission link control module sends the identifier of the target short-range communication chip corresponding to the collaborative application to the coexistence strategy module.
[0296] S6. When the identifier of the target short-range communication chip is a secondary chip identifier, the transmission link control module calls the short-range secondary chip driver to send service data corresponding to the collaborative application to the short-range secondary chip.
[0297] In an embodiment of the present application, the transmission link control module distributes the service data (such as startup data, operation data, etc.) corresponding to the collaborative application to a standard short-range communication chip, such as a short-range slave chip, so that the short-range slave chip transmits the service data corresponding to the collaborative application.
[0298] S7. The service priority module determines the priority corresponding to the collaborative application based on the identifier of the collaborative application, and sends the priority corresponding to the collaborative application to the coexistence strategy module.
[0299] In addition, the above-mentioned transmission link control module can also send the identifier of the target short-range communication chip corresponding to the collaborative application to the service priority module, and the service priority module sends the identifier of the target short-range communication chip to the coexistence strategy module. In other words, the present application does not limit the module that sends the identifier of the target short-range communication chip to the coexistence strategy module, as long as the coexistence strategy module can receive the identifier of the target short-range communication chip.
[0300] S8. The coexistence strategy module determines whether the priority corresponding to the collaborative application is greater than or equal to the highest priority corresponding to the short-range master chip.
[0301] The highest priority corresponding to the short-range master chip refers to the priority corresponding to the service with the highest priority among the services (or referred to as applications here) currently being processed by the short-range slave chip.
[0302] S9, when the priority corresponding to the collaborative application is less than or equal to the highest priority corresponding to the short-distance master chip, the coexistence strategy module calls the short-distance slave chip driver to send a control message 1 to the short-distance slave chip. The control message 1 is used to trigger the short-distance slave chip not to switch the single-pole double-throw switch 1.
[0303] In an embodiment of the present application, during the period when the short-range main chip uses antenna a to transmit business data, the coexistence strategy module, after receiving the priority corresponding to the collaborative application, determines whether the priority corresponding to the collaborative application is greater than or equal to the highest priority corresponding to the short-range main chip, that is, determines whether the priority corresponding to the business processed by the short-range main chip is greater than or equal to the priority corresponding to the business processed by the short-range secondary chip, so as to determine the short-range communication chip that handles the important business. In the case where the priority corresponding to the collaborative application is less than or equal to the highest priority corresponding to the short-range main chip, indicating that the short-range communication chip that handles the important business is the short-range main chip, the coexistence strategy module can issue the corresponding coexistence strategy to the short-range secondary chip, such as sending a control message 1 to the short-range secondary chip to inform the short-range secondary chip that the short-column main chip can continue to use antenna a, and the short-range secondary chip does not need to switch antenna a, that is, there is no need to switch the single-pole double-throw switch 1.
[0304] S10, the short-distance slave chip responds to the control message 1 and continues to keep the first end and the third end of the single-pole double-throw switch 1 connected. The third end is connected to the short-distance master chip, and the first end is connected to the antenna a. The second end of the single-pole double-throw switch 1 is connected to the short-distance slave chip.
[0305] S11, the short-range slave chip sends a message 1 to the short-range master chip, wherein the message 1 is used to notify the short-range master chip that the antenna a is not switched.
[0306] S12. The short-range main chip sends the service data corresponding to the application corresponding to the highest priority to the external device 1 based on the antenna a.
[0307] In the embodiment of the present application, after receiving the control message 1, the short-distance slave chip does not switch the single-pole double-throw switch 1, and continues to use the antenna a to transmit the highest priority service data processed by the short-distance main chip, thereby ensuring the smooth operation of important services. The short-distance slave chip can also send a message 1 to the short-distance main chip to inform the short-distance main chip that the short-distance slave chip has not switched the antenna a.
[0308] In addition, the short-range slave chip can also communicate with the short-range master chip through the coexistence strategy module, that is, through the AP. For example, the short-range slave chip can send message 1 to the short-range master chip through the AP.
[0309] S13, when the priority of the collaborative application is greater than the highest priority of the short-distance master chip, the coexistence strategy module calls the short-distance slave chip driver to send a control message 2 to the short-distance slave chip. The control message 2 is used to trigger the short-distance slave chip to switch the single-pole double-throw switch 1.
[0310] S14 , the short-distance slave chip responds to the control message 2 to connect the first end and the second end of the single-pole double-throw switch 1 .
[0311] S15. The short-range secondary chip uses a custom short-range communication protocol based on antenna a to send business data corresponding to the collaborative application to the short-range secondary chip in the external device 2.
[0312] S16, the short-range slave chip sends a message 2 to the short-range master chip, wherein the message 2 is used to notify the short-range master chip that antenna a has been switched.
[0313] In an embodiment of the present application, when the priority level corresponding to the collaborative application is greater than the highest priority level corresponding to the short-range main chip, the coexistence strategy module indicates that the priority level corresponding to the collaborative application is the highest, that is, the short-range communication chip that handles important services is the short-range secondary chip. The coexistence strategy module can issue the corresponding coexistence strategy to the short-range secondary chip, such as sending a control message 2 (or the first control message) to the short-range secondary chip to inform the short-range secondary chip that it is necessary to switch antenna a, that is, it is necessary to switch the single-pole double-throw switch 1, so that the short-range secondary chip is connected to antenna a, and the service data corresponding to the collaborative application is transmitted using antenna a.
[0314] In some embodiments, the above-mentioned short-range main and sub-chips can also negotiate the use of antenna a, and the above-mentioned service priority module or coexistence strategy can send the priority corresponding to the collaborative application to the target short-range communication chip, such as the above-mentioned short-range sub-chip. Afterwards, after obtaining the priority corresponding to the collaborative application, the main chip sends a corresponding request to the short-range main chip, and the request includes the priority corresponding to the collaborative application. Afterwards, the short-range main chip determines whether to switch antenna a based on the priority corresponding to the collaborative application and the highest priority corresponding to the short-range main chip, that is, whether to send a rejection response message or an acceptance response message to the short-range sub-chip, so as to realize the negotiated use of antenna a.
[0315] In some embodiments, the short-range sub-chip in the device (such as the external device 1 and the external device 2 mentioned above) can be configured to handle private services such as multi-screen collaboration and super notifications, so that device 1 can use the short-range sub-chip and a custom short-range communication protocol to perform short-range communication with the short-range sub-chips in other devices, such as performing device discovery and establishing communication connections; wherein the custom short-range communication protocol can define the communication process according to demand and simplify the communication process between devices.
[0316] It should be noted that the above Fig.13The example of multiplexing antennas between short-distance main and secondary chips is used to introduce how short-distance main and secondary chips transmit service data. The process of short-distance main and secondary chips using independent antennas to transmit service data is consistent with the process of how the short-distance main and secondary chips transmit service data. For example, the AP can send a control message 3 (or a second control message) to the short-distance main chip when the priority corresponding to the collaborative application is greater than the highest priority corresponding to the short-distance main chip. In response to the control message 3, the short-distance main chip can transmit service data at a lower transmission power, while the short-distance secondary chip transmits service data at a higher transmission power.
[0317] The above describes the case where the identifier of the target short-distance communication chip is a secondary chip identifier. Of course, there is also the possibility that the identifier of the target short-distance communication chip is a primary chip identifier. Among them, the implementation process of the service data transmission corresponding to the identifier of the target short-distance communication chip being the primary chip identifier is similar to the implementation process of the service data transmission corresponding to the identifier of the target short-distance communication chip being the secondary chip identifier, and will not be repeated here.
[0318] 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.
[0319] In some embodiments, the above is introduced by taking the first chip as a short-range slave chip and the second chip as a short-range main chip as an example. Of course, the first chip can also be a short-range main chip and the second chip can also be a short-range slave chip, as long as the short-range slave chip can be a short-range communication chip in the first chip and the second chip.
[0320] In addition, the operations performed by the above modules (such as the scene recognition module, the service priority module, the coexistence strategy module, and the transmission link control module) are only examples, and the operations may also be performed by other modules. This application does not limit the modules that perform the operations.
[0321] In some embodiments, the present application provides a computer-readable storage medium, including computer instructions, which, when executed on a Bluetooth device, enable the electronic device to execute the data transmission method as described above.
[0322] In some embodiments, the present application provides a computer program product, which, when executed on a Bluetooth device, enables the electronic device to execute the data transmission method described above.
[0323] 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.
[0324] 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.
[0325] 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.
[0326] 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.
[0327] 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.
[0328] 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 comprises an application processor AP, a first chip and a second chip, the first chip and the second chip are short-range communication chips, the first chip and the second chip are connected, and the AP is connected to the first chip and the second chip respectively; The data transmission method comprises: The first chip receives first data sent by the AP; The first chip sends a first request to the second chip, wherein the first request includes a priority corresponding to the first data; wherein the priority corresponding to the first data indicates the importance of the first data; In response to the first request, the second chip determines that the priority corresponding to the second data is lower than the priority corresponding to the first data, and the second chip sends an acceptance response message to the first chip; wherein the second data refers to the data transmitted by the second chip; In response to the acceptance response message, the first chip controls the first antenna to connect with the first chip, and transmits the first data based on the first antenna; wherein the first antenna represents an antenna multiplexed by the first chip and the second chip, and when the first antenna is connected with the first chip, the first antenna is disconnected from the second chip.
2. The method according to claim 1, characterized in that The method further comprises: The second chip determines that the priority corresponding to the second data is greater than or equal to the priority corresponding to the first data, and the second chip sends a rejection response message to the first chip; In response to the rejection response message, the first antenna is communicated with the second chip, and the second chip transmits the second data based on the first antenna.
3. The method according to claim 1, characterized in that The method further comprises: The second chip receives third data sent by the AP; The second chip sends a second request to the first chip, where the second request includes a priority corresponding to the third data; In response to the second request, the first chip determines that the priority corresponding to the third data is greater than the priority corresponding to the first data, the first chip connects the first antenna with the second chip, and the second chip transmits the third data based on the first antenna.
4. The method according to claim 3, characterized in that The service data processed by the second chip further includes fourth data, and the priority corresponding to the second data is greater than the priority corresponding to the fourth data; The second chip sends a second request to the first chip, including: The second chip determines that the priority corresponding to the third data is greater than the priority corresponding to the second data, and the second chip sends the second request to the first chip.
5. The method according to any one of claims 1 to 4, characterized in that Before the first chip sends the first request to the second chip, the method further includes: The second chip sends data transmission status information to the first chip, where the data transmission status information indicates that the second chip transmits the second data to an external device.
6. The method according to claim 5, characterized in that The data transmission status information includes sending status information or receiving status information, the sending status information indicates that the second chip sends the second data to an external device, and the receiving status information indicates that the second chip receives the second data from an external device.
7. The method according to any one of claims 1 to 6, characterized in that The first chip and the second chip are connected via a bus; The first chip sends a first request to the second chip, where the first request includes a priority corresponding to the first data, including: The first chip sends the priority corresponding to the first data to the second chip through the bus.
8. The method according to any one of claims 1 to 6, characterized in that The first chip includes a first input-output pin, the second chip includes a second input-output pin, and the first input-output pin is connected to the second input-output pin; The first chip sends a first request to the second chip, where the first request includes a priority corresponding to the first data, including: The first chip controls a target input / output pin among the first input / output pins to output a first electrical signal, and controls other first input / output pins to output a second electrical signal, wherein the second electrical signal is different from the first electrical signal; the first electrical signal output by the target input / output pin and the second electrical signal output by the other first input / output pins jointly indicate the priority corresponding to the first data.
9. The method according to any one of claims 1, 3 to 8, characterized in that: The first chip controls the first antenna to communicate with the first chip, including: The first chip connects the first end of the single-pole multi-throw switch to the second end of the single-pole multi-throw switch; wherein the first end is connected to the first antenna, the second end is connected to the first chip, and the single-pole multi-throw switch includes a third end, and the third end is connected to the second chip.
10. The method according to any one of claims 1, 3 to 9, characterized in that: The first chip and the second chip reuse the first antenna, and the method further includes: The second chip transmits the second data based on the second antenna; wherein the second antenna is an antenna used independently by the second chip.
11. The method according to any one of claims 1 to 10, characterized in that The first data includes private data; The transmitting the first data based on the first antenna includes: The first chip sends the first data to the first device based on the first antenna and in combination with a custom short-range communication protocol, where the first data is used to establish a short-range communication connection with the first device.
12. A data transmission method, characterized in that: Applicable to an electronic device, the electronic device comprises an AP, a first chip and a second chip, the first chip and the second chip are short-range communication chips, the first chip and the second chip are connected, and the AP is connected to the first chip and the second chip respectively; The data transmission method comprises: The first chip receives first data sent by the AP; The first chip sends a first request to the second chip, wherein the first request includes a priority corresponding to the first data; wherein the priority corresponding to the first data indicates the importance of the first data; In response to the first request, the second chip determines that the priority corresponding to the second data is lower than the priority corresponding to the first data, and the second chip sends an acceptance response message to the first chip; wherein the second data refers to the data transmitted by the second chip; In response to the acceptance response message, the first chip transmits the first data based on a third antenna according to a first transmission power; the third antenna represents an antenna used independently by the first chip; The second chip transmits the second data based on a fourth antenna at a second transmission power; wherein the second transmission power is less than the first transmission power; and the fourth antenna represents an antenna independently used by the second chip.
13. The method according to claim 12, characterized in that The method further comprises: The second chip determines that the priority corresponding to the second data is greater than or equal to the priority corresponding to the first data, and the second chip sends a rejection response message to the first chip; In response to the rejection response message, the first chip transmits the first data based on the third antenna according to a third transmit power; The second chip transmits the second data based on the fourth antenna according to a fourth transmission power, and the fourth transmission power is greater than the third transmission power.
14. The method according to claim 12, characterized in that The method further comprises: The second chip receives third data sent by the AP; The second chip sends a second request to the first chip, where the second request includes a priority corresponding to the third data; In response to the second request, the first chip determines that the priority corresponding to the third data is greater than or equal to the priority corresponding to the first data, and the first chip sends an acceptance response message to the second chip; The first chip transmits the first data based on the third antenna according to the fifth transmit power; The second chip transmits the third data based on the fourth antenna at a sixth transmission power in response to the acceptance response message; wherein the fifth transmission power is less than the first transmission power, and the sixth transmission power is greater than the fifth transmission power.
15. A data transmission method, characterized in that: Applied to an electronic device, the electronic device comprises an AP, a first chip and a second chip, 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 data transmission method comprises: The AP sends first data to the first chip; The AP determines that the priority corresponding to the second data is lower than the priority corresponding to the first data, and the AP sends a first control message to the first chip; wherein the second data refers to data transmitted by the second chip; and the priority indicates the importance of the data; In response to the first control message, the first chip connects the first antenna with the first chip, and the first chip transmits the first data based on the first antenna; wherein the first antenna refers to an antenna multiplexed by the first chip and the second chip, and when the first antenna is connected to the first chip, the first antenna is disconnected from the second chip.
16. A data transmission method, characterized in that: Applied to an electronic device, the electronic device comprises an AP, a first chip and a second chip, 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 data transmission method comprises: The AP sends first data to the first chip; The AP determines, that the priority corresponding to the second data is lower than the priority corresponding to the first data, and sends, by the AP, a second control message to the second chip, where the second control message is used to trigger the second chip to reduce the corresponding transmit power; The first chip transmits the first data through a third antenna according to a first transmission power; the third antenna is an antenna used independently by the first chip; The second chip transmits the second data through a fourth antenna at a second transmission power in response to the second control message, where the fourth antenna is an antenna used independently by the second chip, and the second transmission power is less than the first transmission power.
17. A chip system, characterized in that: The chip system includes a first chip and a second chip, both of which are short-range communication chips; the first chip and the second chip are connected.
18. The chip system according to claim 17, characterized in that: The chip system further includes an AP, and the AP is connected to the first chip and the second chip respectively.
19. The chip system according to claim 18, 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 16.
20. 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 16.
21. 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 16.
Citation Information
Cited By
Intelligent scheduling method and system for optical communication network resources
CN121397397A
Optical communication network resource intelligent scheduling method and system
CN121397397B