Signal Sending Method, Device, Radio Frequency Circuit and Electronic Device
By using a shared amplifier in the RF circuit and handling conflicts according to the signal priority, the problems of high cost and large area of the terminal RF circuit are solved, and cost reduction and signal conflict avoidance are achieved.
Patent Information
- Application Number
- CN202011630466.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-31
- Publication Date
- 2025-07-29
- Estimated Expiration
- 2040-12-31
AI Technical Summary
The modules of different communication types in existing terminal radio frequency circuits each set up power amplifiers resulting in excessive cost and excessive footprint, especially the power difference between cellular communication and short-distance communication leads to reduced WIFI/BT communication distance and increased cost.
In the radio frequency circuit, the first communication type transceiver and the second communication type transceiver share the same amplifier, and determine whether the signal transmission period conflicts through the radio frequency processing module, and select a high priority signal according to the priority level for transmission.
The cost and area of RF circuits are reduced, conflicts of signals of different communication types are avoided, and the communication distance of WIFI/BT is increased.
Smart Images

Figure CN114698024B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technologies, and more particularly, to a signal transmission method, apparatus, radio frequency circuit, and electronic device. Background Art
[0002] Currently, a terminal often supports multiple communication types. For example, cellular communication and short-range communication, etc. Specifically, the radio frequency circuit of the terminal includes communication modules of different communication types, and each communication module is provided with a power amplifier. The power amplifier of each communication type is used to amplify the signal of that communication type, and then the amplified signal is transmitted by the antennas of each communication type. However, the setting of the communication module will result in too high cost of the radio frequency circuit of the terminal. Summary of the Invention
[0003] This application provides a signal transmission method, apparatus, radio frequency circuit, and electronic device to improve the above defects.
[0004] In a first aspect, an embodiment of this application provides a signal transmission method, which is applied to a radio frequency processing module of a radio frequency circuit. The radio frequency circuit further includes an amplifier, a transceiver of a first communication type, and a transceiver of a second communication type. The transceiver of the first communication type and the transceiver of the second communication type are both connected to the amplifier. The method includes: when receiving a first signal to be transmitted and a second signal to be transmitted, determining whether the transmission time periods of the first signal to be transmitted and the second signal to be transmitted conflict, where the first signal to be transmitted is a signal of the first communication type, and the second signal to be transmitted is a signal of the second communication type; if the transmission time periods conflict, obtaining a first priority of the first signal to be transmitted and a second priority of the second signal to be transmitted; if the first priority is higher than the second priority, transmitting the first signal to be transmitted through the transceiver of the first communication type and the amplifier; if the second priority is higher than the first priority, transmitting the second signal to be transmitted through the transceiver of the second communication type and the amplifier.
[0005] Second aspect, an embodiment of the present application further provides a signal sending device, which is applied to a radio frequency processing module of a radio frequency circuit. The radio frequency circuit further includes an amplifier, a transceiver of a first communication type, and a transceiver of a second communication type. The transceiver of the first communication type and the transceiver of the second communication type are both connected to the amplifier. The signal sending device includes: a determination unit, an acquisition unit, and a sending unit. The determination unit is configured to determine whether the sending time periods of a first signal to be sent and a second signal to be sent conflict when receiving the first signal to be sent and the second signal to be sent, where the first signal to be sent is a signal of the first communication type, and the second signal to be sent is a signal of the second communication type. The acquisition unit is configured to, if the sending time periods conflict, acquire a first priority of the first signal to be sent and a second priority of the second signal to be sent. The sending unit is configured to, if the first priority is higher than the second priority, send the first signal to be sent through the transceiver of the first communication type and the amplifier; if the second priority is higher than the first priority, send the second signal to be sent through the transceiver of the second communication type and the amplifier.
[0006] Third aspect, an embodiment of the present application further provides a radio frequency circuit, including: a radio frequency processing module, an amplifier, a transceiver of a first communication type, and a transceiver of a second communication type. The transceiver of the first communication type and the transceiver of the second communication type are both connected to the amplifier. The radio frequency processing module is respectively connected to the transceiver of the first communication type and the transceiver of the second communication type. The radio frequency processing module is configured to determine whether the sending time periods of a first signal to be sent and a second signal to be sent conflict when receiving the first signal to be sent and the second signal to be sent, where the first signal to be sent is a signal of the first communication type, and the second signal to be sent is a signal of the second communication type. If the sending time periods conflict, acquire a first priority of the first signal to be sent and a second priority of the second signal to be sent. If the first priority is higher than the second priority, send a first transmission instruction to the transceiver of the first communication type; if the second priority is higher than the first priority, send a second transmission instruction to the transceiver of the second communication type. The transceiver of the first communication type is configured to output the first signal to be sent to the amplifier based on the first transmission instruction. The transceiver of the second communication type is configured to output the second signal to be sent to the amplifier based on the second transmission instruction. The amplifier is configured to amplify the first signal to be sent or the second signal to be sent.
[0007] Fourth aspect, an embodiment of the present application further provides a computer-readable medium. The readable storage medium stores program codes executable by a radio frequency processing module. When the program codes are executed by the radio frequency processing module, the radio frequency processing module is caused to execute the above method.
[0008] The signal sending method, device, radio frequency circuit and electronic device provided by the present application. The transceivers of the first communication type and the transceivers of the second communication type are both connected to the amplifier. Therefore, the transceivers of the first communication type and the transceivers of the second communication type share the same amplifier, so that the cost of the radio frequency circuit can be reduced and the area of the radio frequency circuit is reduced. In addition, when the first signal to be sent and the second signal to be sent are received, it is determined whether the sending time periods of the first signal to be sent and the second signal to be sent conflict, where the first signal to be sent is a signal of the first communication type and the second signal to be sent is a signal of the second communication type. If the sending time periods conflict, obtain the first priority of the first signal to be sent and the second priority of the second signal to be sent, and send the signal with the higher priority. Therefore, when the transceivers of the first communication type and the transceivers of the second communication type share the same amplifier, when two signals of different communication types are sent simultaneously, the conflict between the two signals can be avoided.
[0009] Other features and advantages of the embodiments of the present application will be described in the subsequent description of the specification, and part of them will be obvious from the specification, or understood by implementing the embodiments of the present application. The objectives and other advantages of the embodiments of the present application can be realized and obtained by the structures specifically pointed out in the written specification, claims, and drawings. Description of the Drawings
[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, without creative efforts, other drawings can be obtained according to these drawings.
[0011] Figure 1 Shows a schematic diagram of a radio frequency circuit;
[0012] Figure 2 Shows a schematic diagram of a radio frequency circuit provided by an embodiment of the present application;
[0013] Figure 3 Shows a schematic diagram of a radio frequency circuit provided by another embodiment of the present application;
[0014] Figure 4 Shows a flowchart of a signal sending method provided by an embodiment of the present application;
[0015] Figure 5 Shows a flowchart of a signal sending method provided by another embodiment of the present application;
[0016] Figure 6The figure shows a flowchart of a signal sending method provided by another embodiment of the present application;
[0017] Figure 7 The figure shows a block diagram of a signal sending device provided by an embodiment of the present application;
[0018] Figure 8 The figure shows a block diagram of an electronic device provided by an embodiment of the present application;
[0019] Figure 9 The figure shows a storage unit for storing or carrying program codes for implementing the signal sending method according to an embodiment of the present application. Detailed implementation manners
[0020] In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application.
[0021] Currently, terminals often support multiple communication types. For example, cellular communication types and short-range communication types, etc. Among them, the cellular communication type may refer to a communication method using a cellular data network. Among them, the cellular data network (Cellular network), also known as the mobile network (mobile network), is a mobile communication hardware architecture. Specifically, the network service area is divided into many cells (cells, that is, "cells"), and a base station is set in each cell, and this base station is responsible for the connection and control of each mobile station in this cell.
[0022] The cellular data network may be a 5G (5th Generation, 5G) communication system (or called the New Radio (NR) system), a Long Term Evolution (LTE) network, a General Packet Radio Service (GPRS) system, a Global System for Mobile Communications (GSM) network, or a Universal Mobile Telecommunications System (UMTS), and of course it may also be other cellular networks.
[0023] The short-distance communication type can also refer to the communication method within a wireless local area network. The short-distance communication type can also be called the wireless network type. The wireless network can be a Wireless Local Area Network (WLAN), specifically Wi-Fi (Wireless Fidelity). Of course, the wireless network can also be Bluetooth (BT). For example, it can be Bluetooth protocols such as PPP, UDP / TCP / IP, OBEX, WAP, vCard, vCal, IrMC, WAE, TWS, and TWS+.
[0024] Currently, the radio frequency circuit of the terminal includes communication modules of different communication types, and each communication module is provided with a power amplifier. The power amplifier of each communication type is used to amplify the signal of that communication type, and then the amplified signal is sent by the antennas of each communication type.
[0025] Specifically, as Figure 1 shown, the radio frequency circuit includes a radio frequency processing module 101, a first transceiver 102, a second transceiver 103, a first amplifier 104, a second amplifier 105, a first switch 106, a second switch 107, a first antenna 108, and a second antenna 109. The first port of the radio frequency processing module 101 is connected to the input end of the first transceiver 102. The output end of the first transceiver 102 is connected to the input end of the first amplifier 104. The output end of the first amplifier 104 is connected to the input end of the first switch 106. The output end of the first switch 106 is connected to the first antenna 108. The second port of the radio frequency processing module 101 is connected to the input end of the second transceiver 103. The output end of the second transceiver 103 is connected to the input end of the second amplifier 105. The output end of the second amplifier 105 is connected to the input end of the second switch 107. The output end of the second switch 107 is connected to the second antenna 109.
[0026] Among them, the first transceiver 102 can be a transceiver of the cellular communication type, used to receive and send signals of the cellular communication type. The second transceiver 103 can be a transceiver of the short-distance communication type, used to receive and send signals of the short-distance communication type. The first antenna is an antenna of the cellular communication type, and the second antenna is an antenna of the short-distance communication type.
[0027] The first amplifier 104 is used to amplify the first signal output by the first transceiver 102. The first switch 106 is used to connect the first amplifier 104 and the first antenna 108, so that the amplified first signal is transmitted by the first antenna 108. The second amplifier 105 is used to amplify the second signal output by the second transceiver 103. The second switch 107 is used to connect the second amplifier 105 and the first antenna 108, so that the amplified second signal is transmitted by the second antenna 109.
[0028] However, the inventors found in the research that the above architecture of the radio frequency circuit would lead to too high cost of the radio frequency circuit of the terminal, and too many devices in the radio frequency circuit also caused too large occupied area of the radio frequency circuit. Among them, the output power of the first amplifier 104 corresponding to cellular communication is relatively high, which can reach 26 dBm, while the output power of the second amplifier 105 corresponding to WIFI / BT is relatively low, and the maximum output power can generally be 19 - 20 dBm, which is 6 - 7 dBm lower than that of the cellular circuit. This limits the output power of WIFI / BT and will reduce the communication distance of WIFI / BT. If the output power of the second amplifier 105 is directly increased to increase the output power of WIFI / BT, it will lead to too high cost. For example, if the output power of the second amplifier 105 is directly increased by 6 dBm, it will lead to an increase in cost and an increase in the occupied main board area.
[0029] Therefore, to solve the above defects, the embodiments of the present application provide a signal sending method, device, radio frequency circuit and electronic device. In the radio frequency circuit, the transceivers of the first communication type and the second communication type share the same amplifier, so as to reduce the cost of the radio frequency circuit, reduce the occupied area of the main board of the radio frequency circuit, and when signals of two different communication types are sent in the case where the transceivers of the first communication type and the second communication type share the same amplifier, the conflict between the two signals can be avoided.
[0030] Specifically, first, the radio frequency circuit provided by the embodiments of the present application is introduced as follows Figure 2As shown, the RF circuit includes an RF processing module 210, a first transceiver 220, a second transceiver 230, an amplifier 240, a connector 250, and an antenna module 260. The antenna module 260 includes at least one antenna. The first port of the RF processing module 210 is connected to the input end of the first transceiver 220. The output end of the first transceiver 220 is connected to the first input end of the amplifier 240. The second port of the RF processing module 210 is connected to the input end of the second transceiver 230. The output end of the second transceiver 230 is connected to the first input end of the amplifier 240. The output end of the amplifier 240 is connected to the input end of the connector 250. The first output end of the connector 250 is connected to the first antenna 206, and the second output end of the combiner 206 is connected to the second antenna 207.
[0031] The first transceiver 220 is a transceiver of the first communication type, and the second transceiver 230 is a transceiver of the second communication type. Among them, the first communication type is a cellular communication type, and the second network is a short-distance communication type. When a signal of the first communication type needs to be transmitted, the RF processing module 210 sends a first transmission instruction to the first transceiver 220. Among them, the first transmission instruction corresponds to the signal of the first communication type, and the first transmission instruction may include a baseband signal of the first communication type. The first transceiver 220 outputs a signal of the first communication type to the amplifier 240 based on the first transmission instruction. Specifically, the first transceiver 220 is used to modulate the baseband signal of the first communication type and other operations to generate a signal of the first communication type. The amplifier 240 amplifies the signal of the first communication type. Then, the connector 250 conducts the amplifier 240 and the antenna module 260, and the amplified signal of the first communication type is transmitted by the antenna module 260. Similarly, when a signal of the second communication type needs to be transmitted, the RF processing module 210 sends a second transmission instruction to the second transceiver 230. After the second transceiver 230 performs modulation and other operations on the baseband signal of the second communication type, the signal of the second communication type is input to the amplifier 240. The amplifier 240 amplifies the signal of the second communication type. Then, the connector 250 conducts the amplifier 240 and the antenna module 260, and the amplified signal of the second communication type is transmitted by the antenna module 260. As an implementation manner, the antenna module 260 may be an antenna, and the signals of the first communication type and the second communication type are transmitted using the same antenna. As another implementation manner, the antenna module 260 may be at least two antennas. Then, the signals of the first communication type and the second communication type are transmitted using one of the two antennas, or may be transmitted using one antenna respectively, as Figure 3 As shown, the antenna module 260 includes a first antenna 261 and a second antenna 262.
[0032] In some embodiments, signals of the first communication type are transmitted through the first antenna 261. That is, when a signal of the first communication type needs to be transmitted, the connector 250 conducts the amplifier 240 to the first antenna 261, and the amplified signal of the first communication type is transmitted by the first antenna 261. Signals of the second communication type are transmitted through the second antenna 262. That is, when a signal of the second communication type needs to be transmitted, the connector 250 conducts the amplifier 240 to the second antenna 262, and the amplified signal of the second communication type is transmitted by the second antenna 262. In other embodiments, signals of the first communication type and signals of the second communication type can be transmitted jointly using the first antenna 261 or the second antenna 262. That is, when a signal of the first communication type needs to be transmitted and when a signal of the second communication type needs to be transmitted, the connector 250 conducts the amplifier 240 to the first antenna 261 or the second antenna 262. That is to say, one of the first antenna 261 and the second antenna 262 serves as a shared antenna for signals of the first communication type and signals of the second communication type.
[0033] The function of the connector 250 is to couple the signal amplified by the amplifier 240 to the antenna. As an implementation manner, the connector 250 can be a combiner or a switch. Among them, the function of the combiner is to combine signals of multiple frequency bands and transmit them on one antenna. For example, the signal of the first communication type and the signal of the second communication type are combined onto the same antenna. The function of the switch is to realize the electrical connection between the amplifier 240 and the antenna or disconnect the electrical connection between the amplifier 240 and the antenna. It can play a role of conduction or cutoff and does not need to combine signals of multiple frequency bands.
[0034] As an implementation manner, when signals of the first communication type and signals of the second communication type share the same antenna, the connector 250 is a combiner. When signals of the first communication type and signals of the second communication type do not share the same antenna, the connector 250 is a switch. In addition, the connector 250 can also be a combination composed of a combiner and a switch, and the connector 250 can be freely switched to a combiner or a switch. Thus, when signals of the first communication type and signals of the second communication type share the same antenna, the connector 250 is switched to a combiner, and when signals of the first communication type and signals of the second communication type do not share the same antenna, the connector 250 can be switched to a switch, which is not limited herein.
[0035] As an implementation, if the connector 250 is a switch, the switch can be controlled by the radio frequency processing module 210 to achieve conduction or cut-off between the amplifier 240 and different antennas. Specifically, the connector 250 may include a control terminal, which can receive an instruction output by the radio frequency processing module 210 and conduct the input terminal of the connector 250 with the first output terminal or the second output terminal according to the instruction output by the radio frequency processing module 210. Specifically, the radio frequency processing module 210 is configured to send a first instruction to the connector 250 when determining to send a signal of the first communication type, and send a second instruction to the connector 250 when determining to send a signal of the second communication type. The connector 250 is configured to conduct the input terminal of the connector 250 with the first output terminal according to the first instruction, that is, conduct the amplifier 240 with the first antenna 261, and conduct the input terminal of the connector 250 with the second output terminal according to the second instruction, that is, conduct the amplifier 240 with the second antenna 262. Among them, the radio frequency processing module 210 can also execute a signal sending method to avoid mutual conflict during signal sending. Specifically, please refer to the subsequent embodiments.
[0036] Please refer to Figure 4 , Figure 4 shows a signal sending method provided by an embodiment of the present application. This method is applied to the radio frequency circuit shown in the above Figure 2 and Figure 3 . The execution subject of this method can be the above-mentioned radio frequency processing module 210. Specifically, this method includes S301 to S304.
[0037] S301: When receiving a first signal to be sent and a second signal to be sent, determine whether the sending time periods of the first signal to be sent and the second signal to be sent conflict.
[0038] Among them, the first signal to be sent is a signal of the first communication type, and the second signal to be sent is a signal of the second communication type.
[0039] As an implementation, the first signal to be sent and the second signal to be sent may be data sending requests from different applications. Specifically, when an application needs to send data, the processor of the electronic device sends a signal sending instruction to the radio frequency processing module 210 to inform the radio frequency processing module 210 that it needs to send the data corresponding to the signal sending instruction. At the same time, the signal sending instruction also includes the communication type of the signal to be sent, that is, the application instructs the radio frequency processing module 210 to send the specified data according to the specified communication protocol. As another implementation, the first signal to be sent and the second signal to be sent may also be different service modules from the same application.
[0040] As an implementation manner, different communication protocols fix the transmission time periods of the data of the communication protocol. After determining the first signal to be transmitted and the second signal to be transmitted, determine the transmission time period of the first signal to be transmitted and the transmission time period of the second signal to be transmitted, and determine whether the first signal to be transmitted and the second signal to be transmitted are within the same transmission time period. If so, determine that the transmission time periods of the first signal to be transmitted and the second signal to be transmitted conflict; otherwise, determine that the transmission time periods of the first signal to be transmitted and the second signal to be transmitted do not conflict. In some embodiments, the transmission time periods of the first signal to be transmitted and the second signal to be transmitted can be preset, that is, name the transmission time period of the first signal to be transmitted as the first transmission time period, and name the transmission time period of the second signal to be transmitted as the second transmission time period. Both the first transmission time period and the second transmission time period correspond to a start time point and an end time point. Then determine whether there is an intersection between the first transmission time period and the second transmission time period. If there is, determine that the transmission time periods of the first signal to be transmitted and the second signal to be transmitted conflict; otherwise, determine that the transmission time periods of the first signal to be transmitted and the second signal to be transmitted do not conflict.
[0041] As another implementation manner, the communication protocol of each communication type stipulates the transmission time consumption and the waitable duration when the signal frame of this communication type is transmitted. According to the transmission time consumption and the waitable duration of the first signal to be transmitted and the transmission time consumption and the waitable duration of the second signal to be transmitted, it can be determined whether there is enough time to transmit the second signal to be transmitted with the transmission time consumption of the other signal to be transmitted after transmitting the signal to be transmitted with the transmission time consumption of one of the signals to be transmitted without exceeding the waitable duration of the signal to be transmitted. That is to say, the total duration obtained by adding the transmission time consumption of the first signal to be transmitted and the transmission time consumption of the second signal to be transmitted cannot be greater than the waitable duration of the first signal to be transmitted, nor can it be greater than the waitable duration of the second signal to be transmitted. If the total duration obtained by adding the transmission time consumption of the first signal to be transmitted and the transmission time consumption of the second signal to be transmitted is greater than the waitable duration of the first signal to be transmitted, it is determined that the transmission time periods of the first signal to be transmitted and the second signal to be transmitted conflict. Similarly, if the total duration obtained by adding the transmission time consumption of the first signal to be transmitted and the transmission time consumption of the second signal to be transmitted is greater than the waitable duration of the second signal to be transmitted, it can also be determined that the transmission time periods of the first signal to be transmitted and the second signal to be transmitted conflict.
[0042] S302: If the transmission time periods conflict, obtain the first priority of the first signal to be transmitted and the second priority of the second signal to be transmitted.
[0043] As an implementation manner, the priority of the signal to be transmitted can be determined according to the service type of the signal to be transmitted. Among them, the service type can be the type of the application program or service module that requests to transmit the signal to be transmitted.
[0044] In some embodiments, obtain the identifier of the application that requests to send the first signal to be sent, denoted as the identifier of the first application, and obtain the identifier of the application that requests to send the second signal to be sent, denoted as the identifier of the second application. Determine the application type corresponding to the identifier of the first application, and determine the second application type corresponding to the identifier of the second application. Use the application type of the first application as the service type of the first signal to be sent, denoted as the first service type, and use the application type of the second application as the service type of the second signal to be sent, denoted as the second service type.
[0045] Obtain the pre-set corresponding relationship between the service type and the priority. According to the pre-set corresponding relationship between the service type and the priority, obtain the first priority of the first signal to be sent and the second priority of the second signal to be sent. As an implementation manner, the corresponding relationship between the service type and the priority can be as shown in Table 1 below:
[0046] Table 1
[0047] Business Type Priority Communication J1 Video J2 Audio J3 Social J2
[0048] Among them, the levels of the priorities J1, J2, and J3 decrease in turn, that is, the smaller the value after J, the higher the priority.
[0049] As an implementation manner, the category of the application can be the category set by the application developer during development, or the category set by the user for the application after the application is installed on the electronic device. For example, when the user installs a certain application on the electronic device and after the installation is completed and enters the application, a dialog box will be displayed, instructing the user to set the category for the application. Then, which category the application specifically belongs to can be set by the user according to the needs. For example, the user can set a certain social software as the audio category, or the video category, or the social category.
[0050] In addition, an application installation software is installed in the electronic device, such as the Appstore in the ios system. Then, an application list is set in the application installation software. In this list, the user can download applications, update and open applications, and the application installation software can display different applications according to categories, such as the audio category, the video category, or the game category, etc. Therefore, when the user uses the application installation software to install an application, the user can already know the category of the application.
[0051] In addition, considering that some applications can play videos and audio, if the application supports video playback, the type of the application is set to the video type. If it does not support video playback but only supports audio playback, the type of the application is set to the audio type. Specifically, whether an application supports video playback can be determined by the function descriptions included in the function description information of the application, such as the supported playback formats, to judge whether it supports video format playback. It can also be determined by detecting whether there is a video playback module in the program module of the application, such as a certain video playback codec algorithm, so as to determine whether the application supports video playback.
[0052] Furthermore, if the functions of some applications are diversified, the category of the application needs to be determined according to the specific operation behaviors of the application. For example, if some applications can play videos and audio, such as some video playback software that can play pure audio files and videos, the category of the application can be determined according to the usage records of the application, that is, according to the usage records of the application within a certain period of time, to determine whether the user is inclined to play videos or more inclined to play audio when using the application.
[0053] Specifically, obtain the operation behavior data of all users of the application within a preset time period. Here, all users refer to all users who have installed the application. The operation behavior data can be obtained from the server corresponding to the application. That is to say, when the user uses the application, the user will log in to the application with the corresponding user account, and the operation behavior data corresponding to the user account will be sent to the server corresponding to the application, and the server stores the obtained operation behavior data corresponding to the user account. In some embodiments, the electronic device sends an operation behavior query request for the application to the server corresponding to the application, and the server sends the operation behavior data of all users within a certain preset time period to the electronic device.
[0054] The operation behavior data corresponds to different function modules of the application, and each function module corresponds to a function type. Thus, the function type corresponding to each operation behavior data can be determined. Furthermore, according to multiple operation behavior data, the proportion of each function type in the multiple operation behavior data can be determined, and the function type with the highest proportion is used as the application type of the application. Specifically, taking video applications as an example, the function types can include video types and audio types.
[0055] Then the operation behavior data includes the name and time of the played audio file, and the name and time of the played video file. By analyzing this operation behavior data, it is possible to determine the number and total time of the audio files played by the application within a certain preset time period, and it is also possible to obtain the number and total time of the video files played by the application. Then, according to the proportion of the total playing duration of the audio and video files in the predetermined time period, the category of the application is determined. Specifically, the proportion of the total playing duration of the audio and video files in the predetermined time period is obtained. For the convenience of description, the proportion of the total playing duration of the audio file in the predetermined time period is denoted as the audio playing proportion, and the proportion of the total playing duration of the video file in the predetermined time period is denoted as the video playing proportion. If the video playing proportion is greater than the audio playing proportion, the category of the application is set as the video type. If the audio playing proportion is greater than the video playing proportion, the category of the application is set as the audio type. For example, the preset time period is 30 days, that is, 720 hours, and the total playing duration of the audio file is 200 hours, then the audio playing proportion is 27.8%, and the total playing duration of the video file is 330 hours, then the video playing proportion is 45.8%. Since the video playing proportion is greater than the audio playing proportion, the category of the application is set as the video type.
[0056] As another implementation manner, determine the data type corresponding to the signal to be sent, and use this data type as the service type of the signal. In some embodiments, the data type may include voice type, text type, picture type, etc., and this data type is used as the service type corresponding to the information to be sent. In other embodiments, the function type of the function module corresponding to the signal to be sent may be determined. Specifically, the function module may be a function module within the application. For example, the application is a social application, and the application includes function modules such as a voice call function, a video call function, a content consumption module, and a picture processing module. Each function module corresponds to a function type. Then, the data to be sent corresponding to the signal to be sent can be determined, and the function type of the function module that generates the data to be sent can be determined, and this function type is used as the service type corresponding to the signal to be sent.
[0057] In the embodiments of the present application, for the service type of data with relatively high real-time requirements, the priority is relatively high. For example, the priority of the signal to be sent corresponding to the voice call type is higher than the priority of the signals to be sent of other types. The higher the real-time requirement, the higher the priority.
[0058] As an implementation, the priorities of the first signal to be transmitted and the second signal to be transmitted can also be determined according to the network quality of the communication type. Specifically, the first signal to be transmitted is the signal of the first communication type, and the second signal to be transmitted is the signal of the second communication type. Determine the first network quality corresponding to the first communication type and the second network quality corresponding to the second communication type. As an implementation, the network parameters of the first communication network and the network parameters of the second communication network within a preset time period can be counted. Among them, the network parameters include packet loss quantity, latency, transmission rate, and other parameters that can reflect network quality. Based on these network parameters, the first network quality of the first communication type and the second network quality of the second communication type are determined, and the first priority of the first signal to be transmitted and the second priority of the second signal to be transmitted are determined according to the first network quality and the second network quality. Specifically, the higher the communication quality, the higher the priority. That is, if the first communication quality is higher than the second communication quality, set the first priority to be higher than the second priority; if the second communication quality is higher than the first communication quality, set the second priority to be higher than the first priority.
[0059] As an implementation, the channel quality of the current first communication network can be obtained as the first network quality of the first communication network, and the channel quality of the current second communication network can be obtained as the second network quality of the second communication network. Among them, the channel quality can be the error vector magnitude of the channel, the number of access points, the signal strength, etc. Among them, the Error Vector Magnitude (EVM) refers to the vector difference between the ideal error-free reference signal and the actual transmitted signal at a given moment, and is used to measure the amplitude error and phase error of the modulated signal. The EVM specifically represents the degree of proximity between the IQ components generated when the receiving terminal demodulates the signal and the ideal signal components, and is an index for considering the quality of the modulated signal. The smaller the EVM, the better the channel quality of the channel. The number of access points can also be obtained when scanning the channel. By obtaining the access points on each channel, the number of access points on each channel can be determined. The more the number of access points, the worse the channel quality, and vice versa, the better. Similarly, the signal strength can also be obtained when scanning the channel. The higher the signal strength, the higher the channel quality, and vice versa, the lower.
[0060] S303: If the first priority is higher than the second priority, transmit the first signal to be transmitted through the transceiver of the first communication type and the amplifier.
[0061] S304: If the second priority is higher than the first priority, transmit the second signal to be transmitted through the transceiver of the second communication type and the amplifier.
[0062] As an implementation manner, the to-be-transmitted signal with a higher priority among the first to-be-transmitted signal and the second to-be-transmitted signal is transmitted. In some embodiments, if the transmission time slots of the first to-be-transmitted signal and the second to-be-transmitted signal conflict, the to-be-transmitted signal with a higher priority is transmitted, and the other to-be-transmitted signal is not transmitted. In the embodiments of the present application, both the first to-be-transmitted signal and the second to-be-transmitted signal are communication frames, and the data requested by the electronic device to be transmitted through the communication network is transmitted frame by frame in the form of communication frames. Similarly, when the above-mentioned transmission time slots conflict, the frame with a higher priority is transmitted, and the frame with a lower priority is not transmitted, and the subsequent communication frames are continued to be transmitted. When the radio frequency processing module obtains a transmission request for a new communication frame, it returns to execute S301. It should be noted that since the communication types of the first to-be-transmitted signal and the second to-be-transmitted signal are different, their network protocols are also different. Different network protocols transmit communication frames at different transmission intervals. When the transmission time slots of two communication frames of different communication types conflict at a certain moment, when the next communication frame is transmitted, there may be no situation where the transmission time slots of two communication frames of different communication types conflict.
[0063] As another implementation manner, it may also be that when the above-mentioned transmission time slots conflict, the frame with a higher priority is transmitted, and the frame with a lower priority is transmitted later. Specifically, if the first priority is higher than the second priority, the first to-be-transmitted signal is transmitted through the transceiver of the first communication type and the amplifier, and after the transmission of the first to-be-transmitted signal is completed, the second to-be-transmitted signal is transmitted through the transceiver of the second communication type and the amplifier. If the second priority is higher than the first priority, the second to-be-transmitted signal is transmitted through the transceiver of the second communication type and the amplifier, and after the transmission of the second to-be-transmitted signal is completed, the first to-be-transmitted signal is transmitted through the transceiver of the first communication type and the amplifier.
[0064] Therefore, in the embodiments of the present application, the transceiver of the first communication type and the transceiver of the second communication type share the same amplifier, which can reduce the cost of the radio frequency circuit and the area of the radio frequency circuit. In addition, when the first to-be-transmitted signal and the second to-be-transmitted signal are received simultaneously, it is determined whether the transmission time slots of the first to-be-transmitted signal and the second to-be-transmitted signal conflict, where the first to-be-transmitted signal is a signal of the first communication type, and the second to-be-transmitted signal is a signal of the second communication type. If the transmission time slots conflict, the first priority of the first to-be-transmitted signal and the second priority of the second to-be-transmitted signal are obtained, and the signal with a higher priority is transmitted. Therefore, when two signals of different communication types are transmitted simultaneously in the case where the transceiver of the first communication type and the transceiver of the second communication type share the same amplifier, the conflict between the two signals can be avoided.
[0065] Please refer toFigure 5 , Figure 5 shows a signal sending method provided by an embodiment of the present application. This method is applied to the radio frequency circuit shown in the above Figure 2 and 3 . The execution subject of this method can be the above-mentioned radio frequency processing module 210. Specifically, this method includes: S410 to S490.
[0066] S410: When receiving a first signal to be sent and a second signal to be sent simultaneously, obtain a first occupation duration and a first waitable duration of the first signal to be sent.
[0067] Wherein, the occupation duration is the time required to complete signal sending, and the waitable duration is the longest waiting duration for signal sending. As an implementation manner, both the first signal to be sent and the second signal to be sent are communication frames. Specifically, the first signal to be sent is a communication frame of a first communication type, and the second signal to be sent is a communication frame of a second communication type.
[0068] Specifically, in the communication protocol of different communication types, the time consumed for sending each communication frame is specified, that is, the time length required to complete the sending of this communication frame, and the maximum waiting duration for sending each communication frame is also fixed, that is, the sending of this communication frame needs to be completed within this maximum waiting duration. For example, if the waitable duration of a certain communication frame is 100 ms, it means that this communication frame needs to be sent within 100 ms. The occupation duration of this communication frame is 10 ms, indicating that the time consumed to complete the sending of this communication frame is 10 ms. Then this communication frame can be sent at any time within this 100 ms, but the time consumed is 10 ms. Among them, for the communication type corresponding to this communication frame, the waitable duration of the signal to be sent is 100 ms, and the occupation duration of the signal to be sent is 10 ms.
[0069] Specifically, after determining the first communication type of the first signal to be sent, determine the first occupation duration and the first waitable duration of the first signal to be sent according to the communication protocol of this first communication type.
[0070] In addition, it should be noted that if only one signal to be sent is received currently, this signal to be sent can be directly sent.
[0071] S420: Obtain a second occupation duration of the second signal to be sent.
[0072] Similar to the above method of obtaining the first occupation duration of the first signal to be sent, the second occupation duration of the second signal to be sent can also be determined according to the communication protocol of the second communication type corresponding to the second signal to be sent.
[0073] In addition, it should be noted that the order of obtaining the first occupancy duration and the first waitable duration of the first signal to be sent, and obtaining the second occupancy duration of the second signal to be sent is not limited. It is also possible to first obtain the second occupancy duration of the second signal to be sent, and then obtain the first occupancy duration and the first waitable duration of the first signal to be sent when the first signal to be sent and the second signal to be sent are received. The execution order of the two is not limited here.
[0074] S430: Determine whether the transmission time periods of the first signal to be sent and the second signal to be sent conflict according to the first occupancy duration, the first waitable duration, and the second occupancy duration.
[0075] Among them, the first occupancy duration and the first waitable duration can reflect the transmission time period of the first signal to be sent. Specifically, the first transmission time period of the first signal to be sent is within the first waitable duration, and the duration of this first transmission time period is the first occupancy duration. The duration of the second transmission time period of the second signal to be sent is the second occupancy duration. If the remaining duration of the first waitable duration is not enough to send the first signal to be sent after sending the second signal to be sent, it will cause a conflict in the transmission time periods of the first signal to be sent and the second signal to be sent.
[0076] As an implementation manner, the implementation manner of S430 can be: obtain the difference between the first waitable duration and the first occupancy duration as the first difference; if the second occupancy duration is greater than the first difference, it is determined that the transmission time periods of the first signal to be sent and the second signal to be sent conflict.
[0077] Assume that the occupancy duration (Cell-frame-holdup time) of the first signal to be sent, i.e., the cellular communication frame, is denoted as T1, that is, the first occupancy duration is T1, and the waitable transmission time (Cell-frame-Remaining time of transmission) of the cellular communication frame is marked as T2, that is, the first wait duration is T2. Then the first difference is T2 - T1.
[0078] If the second occupancy duration is greater than the first difference, i.e., T3>T2-T1, it means that after the second signal to be sent is sent, there is not enough duration to send the first signal to be sent. Specifically, by making an equation transformation of T3>T2-T1 above, we can get T2-T3<T1. That is to say, if the second signal to be sent is sent first, during the sending of the second signal to be sent, the first signal to be sent is in a waiting state. When the second signal to be sent is sent, since the time taken for the second signal to be sent is T3, the duration left for sending the first signal to be sent is T2-T3. And since T2-T3<T1, it can be seen that the time of T2-T3 is relatively short and is not enough to meet the sending time consumption of the first signal to be sent, that is, it does not meet the requirement of the first occupancy duration, and there is a conflict in the sending time period between the two.
[0079] S440: If there is a conflict in the sending time period, obtain the first priority of the first signal to be sent and the second priority of the second signal to be sent.
[0080] S450: If the first priority is higher than the second priority, send the first signal to be sent through the transceiver of the first communication type and the amplifier.
[0081] S460: If the second priority is higher than the first priority, send the second signal to be sent through the transceiver of the second communication type and the amplifier.
[0082] As an implementation manner, in the case where there is no conflict in the sending time period between the first signal to be sent and the second signal to be sent, either the first signal to be sent or the second signal to be sent can be confirmed to be sent first, and then the other signal to be sent is sent later. As another implementation manner, it can also be that in the case where there is no conflict in the sending time period between the first signal to be sent and the second signal to be sent, obtain the first priority of the first signal to be sent and the second priority of the second signal to be sent; determine the signal to be sent with the higher priority according to the first priority and the second priority and send it first, and then send the other signal to be sent later. Specifically, if the first priority is higher than the second priority, send the first signal to be sent through the transceiver of the first communication type and the amplifier, and after completing the sending of the first signal to be sent, send the second signal to be sent through the transceiver of the second communication type and the amplifier. If the second priority is higher than the first priority, send the second signal to be sent through the transceiver of the second communication type and the amplifier, and after completing the sending of the second signal to be sent, send the first signal to be sent through the transceiver of the first communication type and the amplifier.
[0083] As another implementation manner, it is also possible to determine the to-be-sent signal to be preferentially sent among the first to-be-sent signal and the second to-be-sent signal according to the first occupancy duration, the first waitable duration, and the second occupancy duration. Specifically, as Figure 5 shown, the method further includes:
[0084] S470: Determine the to-be-sent signal to be preferentially sent among the first to-be-sent signal and the second to-be-sent signal according to the first occupancy duration, the first waitable duration, and the second occupancy duration.
[0085] S480: Send the determined to-be-sent signal to be preferentially sent.
[0086] S490: Send the other to-be-sent signal.
[0087] Specifically, if the sending time periods of the first to-be-sent signal and the second to-be-sent signal do not conflict, obtain the difference between the first waitable duration and the first occupancy duration as the first difference. Among them, the implementation manner of obtaining the first difference can refer to the foregoing, and will not be elaborated here. If the second occupancy duration is less than or equal to the first difference, determine that the to-be-sent signal to be preferentially sent is the second to-be-sent signal, that is, if the second occupancy duration is less than or equal to the first difference, send the second to-be-sent signal through the transceiver of the second communication type and the amplifier. After completing the sending of the second to-be-sent signal, send the first to-be-sent signal through the transceiver of the first communication type and the amplifier.
[0088] Specifically, if the second occupancy duration is less than or equal to the first difference, send the second to-be-sent signal through the transceiver of the second communication type and the amplifier; after completing the sending of the second to-be-sent signal, send the first to-be-sent signal through the transceiver of the first communication type and the amplifier. Specifically, T3≤T2 - T1, which means that after the second to-be-sent signal is sent, there is enough time to send the first to-be-sent signal. Specifically, it can refer to the foregoing description content. Since T2 - T3≥T1, that is to say, if the second to-be-sent signal is sent first, when the second to-be-sent signal is sent, the time left for sending the first to-be-sent signal is T2 - T3, which is sufficient to meet the sending time of the first to-be-sent signal. In this case, the second to-be-sent signal can be sent first, and after completing the sending of the second to-be-sent signal, the first to-be-sent signal is sent again.
[0089] It should be noted that for the parts not described in detail in the above method steps, reference can be made to the foregoing embodiments, and will not be elaborated here.
[0090] Please refer to Figure 6 , Figure 6shows a signal sending method provided by an embodiment of the present application. This method is applied to the radio frequency circuit shown in the above Figure 2 and 3 The execution subject of this method can be the above-mentioned radio frequency processing module 210. Specifically, this method includes: S510 to S590.
[0091] S510: When receiving the first signal to be sent and the second signal to be sent, obtain the first occupation duration of the first signal to be sent.
[0092] S520: Obtain the second occupation duration and the second waitable duration of the second signal to be sent.
[0093] Referring to the foregoing embodiments, the second occupation duration and the second waitable duration of the second signal to be sent can be determined through the communication protocol of the second communication type corresponding to the second signal to be sent, and the first occupation duration of the first signal to be sent can be determined through the communication protocol of the first communication type corresponding to the first signal to be sent.
[0094] S530: Determine whether the sending time periods of the first signal to be sent and the second signal to be sent conflict according to the first occupation duration, the second occupation duration, and the second waitable duration.
[0095] Among them, the second occupation duration and the second waitable duration can reflect the sending time period of the second signal to be sent. Specifically, the second sending time period of the second signal to be sent is within the second waitable duration, and the duration of this second sending time period is the second occupation duration. The duration of the first sending time period of the first signal to be sent is the first occupation duration. If the remaining duration of the second waitable duration is not enough to send the second signal to be sent after sending the first signal to be sent, it will cause a conflict between the sending time periods of the second signal to be sent and the first signal to be sent.
[0096] As an implementation manner, the implementation manner of S530 can be: obtain the difference between the second waitable duration and the second occupation duration as the second difference. If the first occupation duration is greater than the second difference, it is determined that the sending time periods of the first signal to be sent and the second signal to be sent conflict.
[0097] Assume that the occupation duration (connectivity-frame-hold up time) of the second signal to be sent, that is, the WIFI / BT communication frame, is denoted as T3, that is, the second occupation duration is T3, and the waitable transmission time (connectivity--Remaining time of transmission) of the WIFI / BT communication frame is denoted as T4, that is, the second waitable duration is T4. Then the second difference is T4 - T3.
[0098] If the first occupancy duration is greater than the second difference, i.e., T1 > T4 - T3, it means that after the first signal to be sent is sent, there is not enough duration to send the second signal to be sent. Specifically, by making an equation change to T1 > T4 - T3 above, we can get T4 - T1 < T3. That is to say, if the first signal to be sent is sent first, during the sending period of the first signal to be sent, the second signal to be sent is in a waiting state. When the first signal to be sent is sent, since the time consumed by the first signal to be sent is T1, the duration left for sending the second signal to be sent is T4 - T1. And since T4 - T1 < T3, it can be seen that the time of T4 - T1 is relatively short and not enough to meet the sending time consumption of the second signal to be sent, that is, it does not meet the requirement of the second occupancy duration, and there is a conflict in the sending time period between the two.
[0099] S540: If there is a conflict in the sending time period, obtain the first priority of the first signal to be sent and the second priority of the second signal to be sent.
[0100] S550: If the first priority is higher than the second priority, send the first signal to be sent through the transceiver of the first communication type and the amplifier.
[0101] S560: If the second priority is higher than the first priority, send the second signal to be sent through the transceiver of the second communication type and the amplifier.
[0102] In the embodiments of the present application, in addition to adopting the method in the foregoing embodiments that when any one of the first signal to be sent and the second signal to be sent is confirmed to be sent first and the other signal to be sent is sent later, and the foregoing method of determining the signal to be sent first according to the priorities of the first signal to be sent and the second signal to be sent, it is also possible to determine the signal to be sent first between the first signal to be sent and the second signal to be sent according to the first occupancy duration, the first waitable duration, and the second occupancy duration. Specifically, as Figure 6 shown, the method further includes:
[0103] S570: Determine the signal to be sent first between the first signal to be sent and the second signal to be sent according to the first occupancy duration, the second occupancy duration, and the second waitable duration.
[0104] S580: Send the signal to be sent first that is determined.
[0105] S590: Send the other signal to be sent.
[0106] Specifically, if the transmission periods of the first signal to be transmitted and the second signal to be transmitted do not conflict, obtain the difference between the first available waiting duration and the first occupation duration as the first difference; if the second occupation duration is less than or equal to the first difference, transmit the second signal to be transmitted through the transceiver of the second communication type and the amplifier; after completing the transmission of the second signal to be transmitted, transmit the first signal to be transmitted through the transceiver of the first communication type and the amplifier.
[0107] Specifically, if the first occupation duration is less than or equal to the second difference, transmit the first signal to be transmitted through the transceiver of the first communication type and the amplifier; after completing the transmission of the first signal to be transmitted, transmit the second signal to be transmitted through the transceiver of the second communication type and the amplifier. Specifically, T1≤T4 - T3 indicates that there is sufficient duration to transmit the second signal to be transmitted after the first signal to be transmitted is transmitted. Specifically, reference can be made to the foregoing description. Since T4 - T1≥T3, that is to say, if the first signal to be transmitted is transmitted first, when the first signal to be transmitted is transmitted, the duration left for transmitting the second signal to be transmitted is T4 - T1, which is sufficient to meet the transmission time of the second signal to be transmitted. In this case, the first signal to be transmitted can be transmitted first, and after completing the transmission of the first signal to be transmitted, the second signal to be transmitted can be transmitted.
[0108] It should be noted that for the above method steps, the parts not described in detail can refer to the foregoing embodiments and will not be elaborated here.
[0109] Therefore, in the embodiments of the present application, the implementation manner of determining whether the transmission periods of the first signal to be transmitted and the second signal to be transmitted conflict may be that if at least one of the conditions that the first occupation duration is greater than the second difference or the second occupation duration is greater than the first difference is satisfied, it is determined that the transmission periods of the first signal to be transmitted and the second signal to be transmitted conflict. Among them, the implementation manner of determining whether the condition that the first occupation duration is greater than the second difference is satisfied can refer to the foregoing Figure 6 embodiment, and the implementation manner of determining whether the condition that the second occupation duration is greater than the first difference is satisfied can refer to the foregoing Figure 5 embodiment.
[0110] Please refer to Figure 7 , which shows a structural block diagram of a signal transmission device 600 provided by an embodiment of the present application. The signal transmission device 600 is applied to the above Figure 2 and 3The radio frequency circuit shown above, and the execution subject of this method can be the above-mentioned radio frequency processing module 210. Specifically, the signal sending device 600 can include a determination unit 601, an acquisition unit 602, and a sending unit 603.
[0111] The determination unit 601 is configured to determine whether the sending time periods of the first signal to be sent and the second signal to be sent conflict when the first signal to be sent and the second signal to be sent are received simultaneously, where the first signal to be sent is a signal of the first communication type, and the second signal to be sent is a signal of the second communication type.
[0112] Furthermore, the determination unit 601 is further configured to obtain a first occupancy duration and a first waitable duration of the first signal to be sent, where the occupancy duration is the time required to complete signal sending, and the waitable duration is the maximum waiting duration for signal sending; obtain a second occupancy duration and a second waitable duration of the second signal to be sent; and determine whether the sending time periods of the first signal to be sent and the second signal to be sent conflict according to the first occupancy duration, the first waitable duration, the second occupancy duration, and the second waitable duration.
[0113] Furthermore, the determination unit 601 is further configured to obtain a difference between the first waitable duration and the first occupancy duration as a first difference; obtain a difference between the second waitable duration and the second occupancy duration as a second difference; and if at least one of the conditions that the first occupancy duration is greater than the second difference or the second occupancy duration is greater than the first difference is satisfied, determine that the sending time periods of the first signal to be sent and the second signal to be sent conflict.
[0114] The acquisition unit 602 is configured to, if the sending time periods conflict, acquire a first priority of the first signal to be sent and a second priority of the second signal to be sent.
[0115] Furthermore, the acquisition unit 602 is further configured to obtain the service types of the first signal to be sent and the second signal to be sent; and acquire a first priority of the first signal to be sent and a second priority of the second signal to be sent according to the corresponding relationship between the preset service type and the priority.
[0116] The sending unit 603 is configured to, if the first priority is higher than the second priority, send the first signal to be sent through the transceiver and the amplifier of the first communication type, and if the second priority is higher than the first priority, send the second signal to be sent through the transceiver and the amplifier of the second communication type.
[0117] Further, the sending unit 603 is further configured to, if the first priority is higher than the second priority, send the first signal to be sent through the transceiver of the first communication type and the amplifier, and after the sending of the first signal to be sent is completed, send the second signal to be sent through the transceiver of the second communication type and the amplifier.
[0118] Further, the sending unit 603 is further configured to, if the second priority is higher than the first priority, send the second signal to be sent through the transceiver of the second communication type and the amplifier, and after the sending of the second signal to be sent is completed, send the first signal to be sent through the transceiver of the first communication type and the amplifier.
[0119] Further, the sending unit 603 is further configured to, if the first occupancy duration is less than or equal to the second difference, send the first signal to be sent through the transceiver of the first communication type and the amplifier; after the sending of the first signal to be sent is completed, send the second signal to be sent through the transceiver of the second communication type and the amplifier.
[0120] Further, the sending unit 603 is further configured to, if the second occupancy duration is less than or equal to the first difference, send the second signal to be sent through the transceiver of the second communication type and the amplifier; after the sending of the second signal to be sent is completed, send the first signal to be sent through the transceiver of the first communication type and the amplifier.
[0121] Further, the first communication type is a cellular communication type, and the second network is a short - range communication type.
[0122] Those skilled in the art can clearly understand that for the convenience and conciseness of description, the specific working processes of the above - described devices and modules can refer to the corresponding processes in the foregoing method embodiments, and will not be described herein again.
[0123] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical, or other forms of coupling.
[0124] In addition, in each embodiment of the present application, the various functional modules may be integrated into one processing module, or each module may exist physically alone, or two or more modules may be integrated into one module. The above - integrated modules may be implemented in the form of hardware or in the form of software functional modules.
[0125] Please refer to Figure 8, which shows a structural block diagram of an electronic device provided by an embodiment of the present application. The electronic device 100 may be an electronic device such as a smart phone, a tablet computer, an e-book, etc. that can run application programs. The electronic device 100 in the present application includes an electronic body part, and the electronic body part includes a housing and a main display screen provided on the housing. The housing can be made of metals such as steel and aluminum alloy. In this embodiment, the main display screen generally includes a display panel, and may also include a circuit for responding to a touch operation on the display panel, etc. In some embodiments, the display panel is simultaneously a touch screen. The electronic device 100 in the present application further includes one or more of the following components: a processor 110, a memory 120, a radio frequency circuit 130, and one or more application programs, where one or more application programs can be stored in the memory 120 and are configured to be executed by one or more processors 110, and one or more programs are configured to execute the methods described in the foregoing method embodiments. Specifically, the radio frequency circuit 130 is provided inside the housing. The processor 110 is connected to the radio frequency circuit 130 for sending the data to be sent to the radio frequency circuit 130. Specifically, the processor 110 is connected to the radio frequency processing module of the radio frequency circuit, and the processor sends the data to be sent to the radio frequency processing module. Among them, the specific implementation manner of the radio frequency circuit 130 can refer to the foregoing embodiments and will not be elaborated herein.
[0126] The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts inside the entire electronic device 100, and by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and by calling data stored in the memory 120, it executes various functions of the electronic device 100 and processes data. Optionally, the processor 110 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 110 may integrate a combination of one or several of a central processing unit (CPU), a graphics processing unit (GPU), and a modem, etc. Among them, the CPU mainly processes the operating system, user interface, application programs, etc.; the GPU is responsible for rendering and drawing display content; the modem is used to process wireless communication. It can be understood that the foregoing modem may not be integrated into the processor 110 and may be implemented separately by a communication chip.
[0127] The memory 120 may include a Random Access Memory (RAM), and may also include a Read-Only Memory. The memory 120 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area. Among them, the program storage area can store instructions for implementing the operating system, instructions for implementing at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area can also store data created during the use of the terminal 100 (such as phone book, audio / video data, chat record data, etc.).
[0128] Please refer to Figure 9 , which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. Program code is stored in the computer-readable medium 800, and the program code can be called by a processor to execute the method described in the above method embodiments.
[0129] The computer-readable storage medium 800 can be an electronic memory such as a flash memory, an Electrically Erasable Programmable Read-Only Memory (EEPROM), an EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 800 has a storage space for the program code 810 for executing any method step in the above method. These program codes can be read out from or written into one or more computer program products. The program code 810 can be compressed in an appropriate form, for example.
[0130] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, and are not intended to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A signal sending method, characterized in that, A radio frequency processing module applied to a radio frequency circuit, the radio frequency circuit further including an amplifier, a transceiver of a first communication type, and a transceiver of a second communication type, the transceiver of the first communication type and the transceiver of the second communication type both being connected to the amplifier, the method including: When a first signal to be transmitted and a second signal to be transmitted are received, determining whether the transmission time periods of the first signal to be transmitted and the second signal to be transmitted conflict, wherein the first signal to be transmitted is a signal of the first communication type, and the second signal to be transmitted is a signal of the second communication type; If the transmission time periods conflict, obtaining a first priority of the first signal to be transmitted and a second priority of the second signal to be transmitted; If the first priority is higher than the second priority, transmitting the first signal to be transmitted through the transceiver of the first communication type and the amplifier; If the second priority is higher than the first priority, transmitting the second signal to be transmitted through the transceiver of the second communication type and the amplifier; The determining whether the transmission time periods of the first signal to be transmitted and the second signal to be transmitted conflict includes: Determining whether the transmission time periods of the first signal to be transmitted and the second signal to be transmitted conflict according to a first occupation duration of the first signal to be transmitted, a first waitable duration, and a second occupation duration of the second signal to be transmitted; or, Determining whether the transmission time periods of the first signal to be transmitted and the second signal to be transmitted conflict according to a first occupation duration of the first signal to be transmitted, a second occupation duration of the second signal to be transmitted, and a second waitable duration; The occupation duration is the time required to complete signal transmission, and the waitable duration is the maximum waiting duration for signal transmission.
2. The method according to claim 1, wherein The "if the first priority is higher than the second priority, transmitting the first signal to be transmitted through the transceiver of the first communication type and the amplifier" includes: If the first priority is higher than the second priority, transmitting the first signal to be transmitted through the transceiver of the first communication type and the amplifier, and after completing the transmission of the first signal to be transmitted, transmitting the second signal to be transmitted through the transceiver of the second communication type and the amplifier.
3. The method according to claim 1, characterized in that, If the second priority is higher than the first priority, transmitting the second signal to be transmitted through the transceiver of the second communication type and the amplifier includes: If the second priority is higher than the first priority, transmitting the second signal to be transmitted through the transceiver of the second communication type and the amplifier, and after completing the transmission of the second signal to be transmitted, transmitting the first signal to be transmitted through the transceiver of the first communication type and the amplifier.
4. The method according to claim 1, wherein The determining whether the transmission time periods of the first signal to be transmitted and the second signal to be transmitted conflict according to the first occupation duration, the first waitable duration, and the second occupation duration includes: Obtaining a difference between the first waitable duration and the first occupation duration as a first difference; If the second occupation duration is greater than the first difference, determining that the transmission time periods of the first signal to be transmitted and the second signal to be transmitted conflict.
5. The method according to claim 4, wherein Further includes: If the transmission time periods of the first signal to be transmitted and the second signal to be transmitted do not conflict, obtain the difference between the first waitable duration and the first occupancy duration as the first difference; If the second occupancy duration is less than or equal to the first difference, transmit the second signal to be transmitted through the transceiver of the second communication type and the amplifier; After completing the transmission of the second signal to be transmitted, transmit the first signal to be transmitted through the transceiver of the first communication type and the amplifier.
6. The method according to claim 1, characterized in that, Determining whether the transmission time periods of the first signal to be transmitted and the second signal to be transmitted conflict according to the first occupancy duration, the second occupancy duration, and the second waitable duration includes: Obtain the difference between the second waitable duration and the second occupancy duration as the second difference; If the first occupancy duration is greater than the second difference, it is determined that the transmission time periods of the first signal to be transmitted and the second signal to be transmitted conflict.
7. The method according to claim 6, characterized in that It further includes: If the transmission time periods of the first signal to be transmitted and the second signal to be transmitted do not conflict, obtain the difference between the second waitable duration and the second occupancy duration as the second difference; If the first occupancy duration is less than or equal to the second difference, transmit the first signal to be transmitted through the transceiver of the first communication type and the amplifier; After completing the transmission of the first signal to be transmitted, transmit the second signal to be transmitted through the transceiver of the second communication type and the amplifier.
8. The method according to claim 1, wherein Obtaining the first priority of the first signal to be transmitted and the second priority of the second signal to be transmitted includes: Obtain the service types of the first signal to be transmitted and the second signal to be transmitted; According to the preset correspondence between the service type and the priority, obtain the first priority of the first signal to be transmitted and the second priority of the second signal to be transmitted.
9. The method according to any one of claims 1-8, characterized in that, The first communication type is a cellular communication type, and the second network is a short-distance communication type.
10. A signal sending device, characterized in that, Applied to a radio frequency processing module of a radio frequency circuit, the radio frequency circuit further includes an amplifier, a transceiver of a first communication type, and a transceiver of a second communication type. The transceiver of the first communication type and the transceiver of the second communication type are both connected to the amplifier. The signal transmission device includes: A determination unit, configured to determine whether the transmission time periods of the first signal to be transmitted and the second signal to be transmitted conflict when receiving the first signal to be transmitted and the second signal to be transmitted, where the first signal to be transmitted is a signal of the first communication type, and the second signal to be transmitted is a signal of the second communication type; An acquisition unit, configured to, if the transmission time periods conflict, acquire the first priority of the first signal to be transmitted and the second priority of the second signal to be transmitted; A transmission unit, configured to, if the first priority is higher than the second priority, transmit the first signal to be transmitted through the transceiver of the first communication type and the amplifier, and if the second priority is higher than the first priority, transmit the second signal to be transmitted through the transceiver of the second communication type and the amplifier; Determining whether the transmission time periods of the first signal to be transmitted and the second signal to be transmitted conflict includes: Determine whether the transmission time slots of the first signal to be transmitted and the second signal to be transmitted conflict according to the first occupancy duration, the first waitable duration of the first signal to be transmitted, and the second occupancy duration of the second signal to be transmitted; or, Determine whether the transmission time slots of the first signal to be transmitted and the second signal to be transmitted conflict according to the first occupancy duration of the first signal to be transmitted, the second occupancy duration of the second signal to be transmitted, and the second waitable duration; The occupancy duration is the time required to complete signal transmission, and the waitable duration is the maximum waiting duration for signal transmission.
11. A radio frequency circuit, characterized in that, It includes: A radio frequency processing module, an amplifier, a transceiver of a first communication type, and a transceiver of a second communication type. The transceiver of the first communication type and the transceiver of the second communication type are both connected to the amplifier, and the radio frequency processing module is respectively connected to the transceiver of the first communication type and the transceiver of the second communication type; When the radio frequency processing module receives the first signal to be transmitted and the second signal to be transmitted, it determines whether the transmission time slots of the first signal to be transmitted and the second signal to be transmitted conflict, where the first signal to be transmitted is a signal of the first communication type, and the second signal to be transmitted is a signal of the second communication type; if the transmission time slots conflict, obtain the first priority of the first signal to be transmitted and the second priority of the second signal to be transmitted; if the first priority is higher than the second priority, send a first transmission instruction to the transceiver of the first communication type, and if the second priority is higher than the first priority, send a second transmission instruction to the transceiver of the second communication type; The transceiver of the first communication type is used to output the first signal to be transmitted to the amplifier based on the first transmission instruction; The transceiver of the second communication type is used to output the second signal to be transmitted to the amplifier based on the second transmission instruction; The amplifier is used to amplify the first signal to be transmitted or the second signal to be transmitted; The determination of whether the transmission time slots of the first signal to be transmitted and the second signal to be transmitted conflict includes: Determine whether the transmission time slots of the first signal to be transmitted and the second signal to be transmitted conflict according to the first occupancy duration, the first waitable duration of the first signal to be transmitted, and the second occupancy duration of the second signal to be transmitted; or, Determine whether the transmission time slots of the first signal to be transmitted and the second signal to be transmitted conflict according to the first occupancy duration of the first signal to be transmitted, the second occupancy duration of the second signal to be transmitted, and the second waitable duration; The occupancy duration is the time required to complete signal transmission, and the waitable duration is the maximum waiting duration for signal transmission.
12. The circuit according to claim 11, wherein It further includes a connector and an antenna module, and the amplifier is connected to the antenna module through the connector; The connector is used to couple the amplified first signal to be transmitted or the amplified second signal to be transmitted to the antenna module, and the antenna module transmits the amplified first signal to be transmitted or the amplified second signal to be transmitted.
13. An electronic device, characterized in that, It includes an electronic device body and a radio frequency circuit as claimed in claim 11 or 12, and the radio frequency circuit is arranged in the electronic device body.
14. A computer-readable medium, characterized in that, The computer-readable medium stores program code executable by a processor, and when the program code is executed by the processor, it causes the processor to execute the method according to any one of claims 1-9.
Citation Information
Patent Citations
Method for communication using plurality of protocols and electronic device thereof
CN108322450A