CN116055462B - Data transmission method, terminal equipment, storage medium and chip system - Google Patents

Data transmission method, terminal equipment, storage medium and chip system Download PDF

Info

Publication number
CN116055462B
CN116055462B CN202210549669.0A CN202210549669A CN116055462B CN 116055462 B CN116055462 B CN 116055462B CN 202210549669 A CN202210549669 A CN 202210549669A CN 116055462 B CN116055462 B CN 116055462B
Authority
CN
China
Prior art keywords
communication mode
multimedia data
transmission
data transmission
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210549669.0A
Other languages
Chinese (zh)
Other versions
CN116055462A (en
Inventor
李炜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202210549669.0A priority Critical patent/CN116055462B/en
Publication of CN116055462A publication Critical patent/CN116055462A/en
Application granted granted Critical
Publication of CN116055462B publication Critical patent/CN116055462B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0284Traffic management, e.g. flow control or congestion control detecting congestion or overload during communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/80Responding to QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0289Congestion control
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application discloses a data transmission method, terminal equipment, a storage medium and a chip system, which are applicable to the technical field of data transmission, wherein the method comprises the following steps: when the terminal equipment simultaneously uses the target communication mode and the same-frequency communication mode with the same frequency band as the target communication mode, detecting the data transmission congestion conditions of the two wireless communication modes: detecting the blocking condition of a target communication mode on multimedia data transmission: if the data transmission is jammed and the jamming exists, the coding rate of the multimedia data is reduced, the multimedia data is coded based on the reduced coding rate, and the coded multimedia data is transmitted by using a target communication mode. The embodiment of the application can improve the stability of multimedia data transmission.

Description

Data transmission method, terminal equipment, storage medium and chip system
Technical Field
The present application relates to the field of data transmission, and in particular, to a data transmission method, a terminal device, a storage medium, and a chip system.
Background
In the process of using the terminal equipment, a user can sometimes have multiple scenarios of using the same-frequency-band wireless communication modes together. For example, the terminal device may use Bluetooth (BT) in the 2.4GHz band and wireless high-fidelity (Wireless Fidelity, wi-Fi) for data transmission at the same time. When a plurality of radio communication modes in the same frequency band are used, a situation may occur in which the service of a part of the radio communication modes is affected. In the affected wireless communication modes, if there is a wireless communication mode that needs to transmit multimedia data, the stability of the wireless communication mode is poor, and the situation that the multimedia data transmission is blocked occurs.
Disclosure of Invention
In view of this, the embodiments of the present application provide a data transmission method, a terminal device, a storage medium, and a chip system, which can solve the problem that when the terminal device uses multiple wireless communication modes in the same frequency band, the stability of multimedia data transmission in the wireless communication modes is poor.
A first aspect of an embodiment of the present application provides a data transmission method, applied to a terminal device, where the terminal device uses a target communication mode to transmit multimedia data, including:
if the terminal equipment uses the same-frequency communication mode with the same communication frequency band as the target communication mode, detecting the data transmission congestion condition of the target communication mode and the same-frequency communication mode, wherein the target communication mode and the same-frequency communication mode are both wireless communication modes. And detecting the clamping condition of the target communication mode on the multimedia data transmission. If the detected data transmission congestion condition is that the data transmission congestion exists and the jamming condition is that the jamming exists, the coding rate of the multimedia data is reduced. And then encoding the multimedia data based on the reduced encoding code rate, and transmitting the encoded multimedia data by using a target communication mode.
The optional determining modes of the target communication mode comprise at least two modes:
Determination mode 1: the skilled person can pre-select one or more wireless communication modes according to actual requirements. These preselected wireless communication modes are referred to herein as target communication modes.
Determination mode 2: the terminal device takes part or all of wireless communication modes for transmitting the multimedia data as target communication modes.
In the embodiment of the application, a technician can preset one or more target communication modes which need to be optimized for multimedia data transmission according to the requirements. On the basis, for the target communication mode with the problem of multimedia data transmission, the embodiment of the application can dynamically reduce the coding rate of the target communication mode on the multimedia data, and then carries out corresponding multimedia data coding and transmission. Since the bandwidth required for transmitting the multimedia data with the low code rate is smaller at this time, the influence is smaller in the process of transmitting the data with the same frequency band with other wireless communication modes. The target communication mode can transmit multimedia data more smoothly, the stability is better, and the jamming condition is not easy to occur. Multimedia data can be smoothly played on the user side, so that the user experience is improved.
In a first possible implementation manner of the first aspect, before detecting a data transmission congestion situation of the target communication mode and the same frequency communication mode, the method includes: and monitoring whether the wireless communication mode used by the terminal equipment belongs to a preset monitoring range or not and has the same frequency communication mode with the communication frequency band of the target communication mode. And if so, executing the operation of detecting the data transmission congestion condition of the target communication mode and the same-frequency communication mode.
In the embodiment of the application, the monitoring range is set, so that the requirements of different actual use scenes can be met, and different effects such as comprehensive monitoring or power consumption reduction can be achieved.
In a second possible implementation manner of the first aspect, before detecting a data transmission congestion situation of the target communication mode and the same frequency communication mode, the method further includes:
if the preset monitoring triggering condition is monitored, executing the operation of detecting the data transmission congestion condition of the target communication mode and the same-frequency communication mode if the terminal equipment uses the same-frequency communication mode with the same communication frequency band as the target communication mode.
In the embodiment of the application, the requirement for monitoring the power consumption in different actual use scenes can be met by setting the monitoring trigger condition.
In a third possible implementation manner of the first aspect, detecting a data transmission congestion condition of the target communication mode and the same frequency communication mode includes: and acquiring the data transmission task quantity of the same-frequency communication mode, and detecting the data transmission congestion condition of the target communication mode and the same-frequency communication mode according to the data transmission task quantity and a preset task quantity threshold.
The embodiment of the application can realize the rapid and accurate identification of the data transmission congestion condition (namely whether the frequency band is crowded) by detecting whether the data transmission task amount is larger or not.
In a fourth possible implementation manner of the first aspect, before detecting a data transmission congestion situation of the target communication mode and the same frequency communication mode, the method further includes: detecting whether the terminal equipment uses the same-frequency communication mode which belongs to a preset communication mode list and has the same communication frequency band as the target communication mode. Wherein, at least one wireless communication mode is recorded in the communication mode list.
In the embodiment of the application, the method of the communication mode list can enable the targeted processing of the analysis and optimization of the wireless communication mode frequency band congestion. To adapt to the targeted analysis requirements of the actual use scene.
In a fifth possible implementation manner of the first aspect, detecting a stuck condition of the target communication manner to the multimedia data transmission includes: and acquiring the retransmission number of the data packet of the multimedia data and refusing the transmission times of the data packet by the same-frequency communication mode. And detecting the blocking condition of the target communication mode on the transmission of the multimedia data according to the acquired retransmission number of the data packets and the transmission times of the data packets by the same-frequency communication mode.
The number of retransmission of the data packet and the transmission times of the data packet by the same-frequency communication mode are refused, so that the real multimedia data transmission real-time blocking condition can be reflected well. Therefore, the number of retransmission of the multimedia data packet and the number of times of refusal of transmission of the data packet by the same-frequency wireless communication mode are selected as parameter indexes to detect the blocking of the multimedia data transmission. The accuracy and the effectiveness of the monitoring of the jamming condition can be improved.
On the basis of the fifth possible implementation manner of the first aspect, as a sixth possible implementation manner of the first aspect, detecting a stuck condition of the target communication manner to the transmission of the multimedia data according to the acquired retransmission number of the data packet and the transmission number of the data packet rejected by the same-frequency communication manner includes:
if the retransmission number of the data packets is larger than a preset upper limit number threshold, and the transmission refusing times of the data packets by the same-frequency communication mode is larger than the preset upper limit number threshold, judging that the jamming condition of the target communication mode on the multimedia data transmission is that jamming exists.
With reference to any one of the first to fifth possible implementation manners of the first aspect, as a seventh possible implementation manner of the first aspect, after detecting a stuck condition of the target communication manner to the multimedia data transmission, the method further includes:
if the detected jamming condition is no jamming, the coding rate of the multimedia data is improved. And then encoding the multimedia data based on the improved encoding code rate, and transmitting the encoded multimedia data by using a target communication mode.
According to the embodiment of the application, when the terminal equipment discovers that the multimedia data transmission is blocked due to the frequency band congestion, the coding rate of the multimedia data is timely reduced. And when no blocking exists in the transmission of the multimedia data, the coding rate of the multimedia data is improved. Therefore, the dynamic adjustment of the multimedia data coding rate is realized according to the actual multimedia data transmission condition. On the basis of improving the stability of the wireless communication mode to the transmission of the multimedia data, the embodiment of the application can also fully adapt and utilize the bandwidth resources of the frequency band, and realize the dynamic balance of the transmission stability and the transmission quality of the multimedia data. Finally, the effect of stably transmitting the multimedia data with higher quality is realized when a plurality of wireless communication modes with the same frequency band are used. Therefore, the sensory experience of the user end on the multimedia data can be greatly improved, and the final user experience is improved.
With reference to the seventh possible implementation manner of the first aspect, as an eighth possible implementation manner of the first aspect, after detecting a stuck condition of the target communication manner to the multimedia data transmission, the method further includes:
if the detected blocking condition is normal transmission, the multimedia data is encoded based on the currently used encoding code rate, and the encoded multimedia data is transmitted by using a target communication mode.
In the embodiment of the present application, no jamming in the seventh possible implementation manner may also be referred to as smooth transmission. The embodiment of the application divides the jamming condition into three types of jamming, normal transmission and smooth transmission, and treats the smooth transmission as the non-jamming condition. The embodiment of the application increases an intermediate condition of keeping the coding rate unchanged when the multimedia data transmission is normal on the basis of dynamically reducing and improving the coding rate of the multimedia data. Therefore, the embodiment of the application can reduce the switching frequency of the terminal equipment on the multimedia data coding rate. So that the transmission quality of the whole multimedia data is smoother. The voice quality of the output audio data is stable, the voice quality of the audio data is not reduced or improved frequently, and the sensory experience of a user side is stable and natural.
With reference to the fifth possible implementation manner of the first aspect, as a ninth possible implementation manner of the first aspect, the standard communication manner is bluetooth in the 2.4GHz band, and the co-frequency communication manner is Wi-Fi in the 2.4GHz band.
The method for obtaining the retransmission number of the data packet of the multimedia data and refusing the transmission times of the data packet by the same-frequency communication mode comprises the following steps: and acquiring LOG_ID_STATS_ACT_CONN information, and analyzing the number of retransmission of the data packet of the multimedia data and the number of transmission refusal of the Wi-Fi of the data packet from the LOG_ID_STATS_ACT_CONN information.
In practical application, the method can quickly and accurately acquire the retransmission number of the data packet and the Wi-Fi refusal transmission times of the data packet by analyzing LOG_ID_STATS_ACT_CONN information.
In a second aspect, an embodiment of the present application provides a data transmission apparatus, including:
the congestion detection module is used for detecting the data transmission congestion condition of the target communication mode and the same-frequency communication mode when the terminal equipment uses the same-frequency communication mode with the same communication frequency band as the target communication mode in the process of transmitting the multimedia data by the terminal equipment by using the target communication mode: the target communication mode and the same-frequency communication mode are both wireless communication modes.
The device comprises a jamming detection module, a jamming detection module and a processing module, wherein the jamming detection module is used for detecting the jamming condition of the target communication mode on the transmission of the multimedia data in the process that the terminal equipment uses the target communication mode to transmit the multimedia data:
and the code rate adjusting module is used for reducing the code rate of the multimedia data when the data transmission congestion condition is detected to be the data transmission congestion condition and the jamming condition is the jamming condition.
And the coding transmission module is used for coding the multimedia data based on the reduced coding rate and transmitting the coded multimedia data by using a target communication mode.
In a third aspect, an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor implementing a method according to any one of the first aspect or implementing a method according to any one of the second aspect when the computer program is executed by the processor.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium storing a computer program which when executed by a processor performs a method as in any of the first aspects described above, or performs a method as in any of the second aspects described above.
In a fifth aspect, embodiments of the present application provide a chip system comprising a processor, the processor being coupled to a memory, the processor executing a computer program stored in the memory to implement a method as described in any of the first aspects above, or to implement a method as described in any of the second aspects above. The chip system can be a single chip or a chip module composed of a plurality of chips.
In a sixth aspect, embodiments of the present application provide a computer program product for, when run on a terminal device, causing the terminal device to perform the method of any one of the first aspects above, or to implement the method of any one of the second aspects above.
It will be appreciated that the advantages of the third aspect to the sixth aspect may be found in the relevant description of the first aspect, and are not described here again.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments or the description of the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a block diagram of a mobile phone structure according to an embodiment of the present application;
fig. 2 is a schematic diagram of a scenario in which a mobile phone according to an embodiment of the present application uses multiple wireless communication modes simultaneously;
fig. 3 is a schematic flow chart of a data transmission method according to an embodiment of the present application;
fig. 4 is a schematic diagram of a scenario of a classification of a katon condition of multimedia data transmission according to an embodiment of the present application;
fig. 5 is a schematic flow chart of a data transmission method according to an embodiment of the present application;
fig. 6 is a schematic flow chart of a mobile terminal according to an embodiment of the present application when communicating with a bluetooth headset;
fig. 7 is a schematic flow chart of a data transmission method according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a data transmission device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
In the embodiments of the present application, "plural" means two or more. Accordingly, the plurality of wireless communication modes refers to two or more wireless communication modes.
In the embodiment of the present application, the terminal device may be a mobile phone, a wearable device (such as a smart watch, a smart bracelet, a smart glasses, a smart jewelry, etc.), a tablet computer, a vehicle-mounted device, an augmented reality (augmented reality, AR)/Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (personal digital assistant, PDA), and other electronic devices with network connection functions. The terminal device may also be other electronic devices, such as a laptop (laptop) with a touch-sensitive surface (e.g. a touch panel), and the embodiment of the present application does not limit the specific type of terminal device. At this time, the terminal device is the execution subject of the data transmission method provided by the embodiment of the present application.
The following takes the example that the terminal device is a mobile phone. Fig. 1 is a block diagram showing a part of a structure of a mobile phone according to an embodiment of the present application. Referring to fig. 1, a mobile phone 100 may include:
Processor 110, external memory interface 120, internal memory 121, universal serial bus (universal serial bus, USB) interface 130, charge management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headset interface 170D, sensor module 180, keys 190, motor 191, indicator 192, camera 193, display 194, and SIM card interface 195, etc. The sensor module 180 may include a gyroscope sensor 180A, an acceleration sensor 180B, a barometric sensor 180C, a magnetic sensor 180D, an ambient light sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, and a touch sensor 180K (of course, the mobile phone 100 may also include other sensors such as a pressure sensor, a barometric sensor, a bone conduction sensor, etc., which are not shown).
The wireless communication function of the mobile phone 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the handset 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc. applied to the handset 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110. In the embodiment of the present application, the mobile communication module 150 may also be used for information interaction with other terminal devices, that is, sending multimedia data to other terminal devices.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating 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. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wi-Fi network), bluetooth, global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), zigbee (Zig Bee), etc. applied to the mobile phone 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2. In an embodiment of the present application, the wireless communication module 160 may be configured to access an access point device, and send and receive messages to other terminal devices.
It should be understood that the illustrated handset 100 is only one example, and that the handset 100 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
For a better understanding of embodiments of the present application, the following is a brief description of the embodiments of the present application:
in practical application, users often use multiple wireless communication modes of the terminal device at the same time, so as to meet the actual use requirements of the users. For example, referring to fig. 2, a user may connect bluetooth headset to listen to songs through bluetooth of a mobile phone (bluetooth in the embodiment of the present application refers to bluetooth operating in 2.4GHz band unless otherwise specified), and may download files in Wi-Fi in the background and use NFC to brush the entrance guard. Each wireless communication mode has a communication frequency band for data transmission, and when the terminal equipment uses multiple wireless communication modes at the same time, the situation that part of the communication frequency bands of the wireless communication modes are the same may occur. I.e. there are wireless communication modes that use multiple co-frequency bands simultaneously.
For the scene that the user uses with the wireless communication mode of frequency channel together in the use terminal equipment's process. Since each wireless communication mode needs to perform data transmission, frequency band congestion (i.e., the amount of data transmitted in the frequency band is large, resulting in data transmission congestion) is easy to occur. At this time, a part of the wireless communication mode services may be affected. When the affected wireless communication modes need to transmit multimedia data, the multimedia data transmission of the wireless communication modes is blocked, and the stability is poor. Therefore, the user cannot normally use the multimedia data at the receiving end, and the user experience is reduced. Taking the scenario shown in fig. 2 as an example, it is assumed that the frequency bands of bluetooth and Wi-Fi used by the mobile phone are both 2.4GHz. Because the frequency band that bluetooth and Wi-Fi used is the same, probably can lead to bluetooth transmission audio data unstable this moment to lead to bluetooth headset to appear audio playing card and stop's condition, influence user experience.
In order to improve the stability of multimedia data transmission when the terminal equipment uses various same-frequency-band wireless communication modes. The embodiment of the application firstly identifies the scene of the terminal equipment for transmitting the multimedia data in the target communication mode. On the basis of identifying the scene, on one hand, whether the frequency band congestion exists between the target communication mode and the same-frequency-band wireless communication mode is monitored, and on the other hand, whether the data transmission is blocked or not in the target communication mode is detected. When the frequency band congestion is detected and the multimedia data transmission is blocked, the situation that the multimedia data transmission is blocked due to the frequency band congestion in the target communication mode is indicated. At this time, for the wireless communication mode with the problem of multimedia data transmission, the embodiment of the application can dynamically reduce the coding rate of the wireless communication mode on the multimedia data, and then perform corresponding multimedia data coding and transmission. Since the bandwidth required for transmitting the multimedia data with the low code rate is smaller at this time, the influence is smaller in the process of transmitting the data with the same frequency band with other wireless communication modes. The wireless communication mode can transmit multimedia data more smoothly, the stability is better, and the jamming condition is not easy to occur. Multimedia data can be smoothly played at the receiving end, so that the use experience of a user is improved.
The data transmission method provided by the embodiment of the application can be suitable for various scenes needing to improve the stability of multimedia data transmission. Some possible application scenarios are described below with reference to the accompanying drawings.
Referring to fig. 3, a flowchart of a data transmission method according to an embodiment of the present application is described in detail below:
s101, in the process of transmitting the multimedia data by using the target communication mode, the terminal equipment monitors whether the same-frequency communication mode with the same frequency band as the target communication mode exists in the wireless communication mode in use of the terminal equipment. If it is detected that the terminal device uses the same frequency communication method as the target communication method, S102 is executed.
The optional determining modes of the target communication mode comprise at least two modes:
determination mode 1: the skilled person can pre-select one or more wireless communication modes according to actual requirements. These preselected wireless communication modes are referred to herein as target communication modes.
Determination mode 2: the terminal device takes part or all of wireless communication modes for transmitting the multimedia data as target communication modes. May be provided as part in some alternative embodiments. For example, a communication scheme list including one or more wireless communication schemes may be preset. At this time, all the wireless communication modes which are in the list and transmit the multimedia data are used as target communication modes. The scope of the list may be set by the skilled person at his discretion and is not limited herein. At this time, the wireless communication mode outside the list is not treated as the target communication mode no matter whether the multimedia transmission service exists or not or whether the multimedia data transmission is blocked or not.
For the determination mode 1, the technician can select a part of wireless communication modes supported or possible to be supported by the terminal device to perform data transmission optimization according to the requirements of practical applications. The embodiment of the application does not limit the specific wireless communication modes contained in the target communication mode too much. And for the wireless communication mode supporting the work of multiple frequency bands, the embodiment of the application can take a single frequency band as an independent processing object. That is, only the wireless communication mode operating in a part of the frequency bands is used as the target communication mode, and the wireless communication mode operating in the other frequency bands is not used as the target communication mode. For example, in some alternative embodiments, the target communication mode may be set to bluetooth only. In other alternative embodiments, the target communication mode may be set to bluetooth and Wi-Fi in the 2.4GHz band, where Wi-Fi in the 5GHz band is not used as the target wireless communication mode.
In practical applications, each wireless communication mode can use at least one frequency band for data transmission, and some wireless communication modes can even use multiple frequency bands for data transmission at the same time. For example, some dual-band Wi-Fi may use both the 2.4GHz and 5GHz bands for data transmission. Therefore, first, the description of "same frequency band" in the embodiment of the present application is needed:
In the embodiment of the application, the same frequency band refers to a frequency band with overlapping communication frequency bands used in different wireless communication modes. Wherein overlapping includes at least two cases where part of the frequency bands are the same and all of the frequency bands are the same. By way of example, if the terminal device is connected with Wi-Fi in both bluetooth and 2.4GHz bands, the frequency bands of the two wireless communication modes of bluetooth and Wi-Fi are the same, which belongs to the case of overlapping frequency bands in the embodiment of the present application, namely, the same frequency band in the embodiment of the present application. It is also assumed that the terminal device is connected with the Bluetooth and simultaneously connected with the 2.4GHz and 5GHz dual-frequency Wi-Fi. The partial frequency bands of the Bluetooth wireless communication mode and the Wi-Fi wireless communication mode are the same, and the partial frequency bands also belong to the frequency band overlapping condition in the embodiment of the application, namely the same frequency band in the embodiment of the application. But if the terminal equipment is connected with Wi-Fi of 5GHz on the basis of being connected with Bluetooth. The two wireless communication modes of bluetooth and Wi-Fi do not have frequency band overlapping at this time, so the two wireless communication modes do not belong to the same frequency band at this time.
Based on the same frequency band standard, the terminal device detects whether the wireless communication mode which is used by the terminal device at the same time has the same frequency band as the target communication mode. For convenience of explanation, the application embodiment refers to a wireless communication mode which is detected by the terminal device and is in the same frequency band as the target communication mode and is in use as a common frequency communication mode. And the frequency band used by the target communication mode is called a target frequency band. The embodiment of the application does not excessively limit the specific monitoring range, the time and other operation details, and can be set by technicians according to actual requirements. For example, in some alternative embodiments, it may be set that each time one wireless communication mode is newly used, frequency band matching is performed on all wireless communication modes in use one by one, and whether there is a wireless communication mode in the same frequency band is identified.
As an alternative implementation of the present application for co-band wireless communication mode monitoring. The embodiment of the application provides several alternative schemes from the aspects of monitoring range and time so as to meet the requirements of different practical application scenes. The details are as follows:
1. the range is monitored.
In an embodiment of the present application, the following several optional monitoring ranges are provided. In actual operation, a technician can use any one of the monitoring ranges according to actual requirements and perform corresponding parameter setting. On this basis, the terminal device may not determine whether there is another wireless communication method in the same frequency band as the wireless communication method outside the monitoring range when executing the operation of S101. At this time S101 may be replaced with: in the process of transmitting multimedia data by using a target communication mode, the terminal equipment monitors whether a same-frequency communication mode which belongs to a preset monitoring range and has the same frequency band as the target communication mode exists in a wireless communication mode in use of the terminal equipment.
Monitoring range (1): all wireless communication modes used by the terminal equipment.
At this time, the terminal device monitors the same frequency band of all wireless communication modes, and the monitoring range is the largest. Therefore, the method can adapt to the application requirements of various actual scenes.
Monitoring range (2): a plurality of preset wireless communication modes. In this case, the other wireless communication modes than the preset wireless communication modes are not monitored.
Monitoring range (3): all other wireless communication modes except the one or more preset wireless communication modes.
At this time, one or more preset wireless communication modes are not monitored. And monitoring other wireless communication modes except the preset mode.
In some application scenarios, there may be a need to reduce the same-frequency-band monitoring workload, reduce the power consumption of the terminal device, and so on. In order to meet this requirement, in the monitoring range (2) and the monitoring range (3), the technician can selectively monitor only a part of the wireless communication modes. Wherein the difference is that: the monitoring range (2) has stronger pertinence, and a wireless communication mode required to be monitored can be formulated aiming at the possible application scene of the terminal equipment. The monitoring range (3) can then be used to exclude wireless communication modes that some technicians consider unnecessary monitoring. For example, in some alternative embodiments, when the terminal device is a wearable watch or a mobile phone, it may be set to monitor only bluetooth and Wi-Fi with reference to the monitoring range (2), or it may be set to not monitor the cellular network with reference to the monitoring range (3). The wireless communication modes specifically included in the monitoring range (2) and the monitoring range (3) are not limited in any way, and can be set by technicians according to requirements.
Wherein when the monitoring range (2) is adopted, it can be set that only one wireless communication mode is monitored. For wireless communication modes supporting multiple frequency band operation, the wireless communication mode monitoring of only a single frequency band can be set. For example, the target communication mode may be set to be bluetooth, and the monitoring range of the same frequency band is set to be: wi-Fi in the 2.4GHz band.
Monitoring range (4): all wireless communication modes operating in one or more preset frequency bands. At this time, the wireless communication mode operating in the frequency band other than the set frequency band is not monitored.
In view of practical application, the number of frequency bands in which frequency band crowding easily occurs is limited. In order to meet the requirements of reducing the monitoring workload of the same frequency band, reducing the power consumption of terminal equipment and the like. In the embodiment of the application, the wireless communication mode working in a part of frequency bands can be selected to be monitored. For example, in some alternative embodiments, monitoring of wireless communication modes operating in the 2.4GHz band and the 5GHz band may be provided. For wireless communication modes operating in a frequency band other than the 2.4GHz frequency band and the 5GHz frequency band, no monitoring can be performed. The frequency band specifically included in the monitoring range (4) can be set by a technician according to requirements. For determination mode 1, the monitoring range (4) is the target frequency band.
2. Monitoring timing (also referred to as monitoring trigger conditions).
In the embodiment of the application, a plurality of optional monitoring occasions are provided, and a technician can select one or more of the monitoring occasions as actual monitoring occasion settings according to actual requirements. When the corresponding monitoring opportunity is satisfied, the monitoring operation of S101 is performed. At this time S101 may be replaced with: in the process of transmitting the multimedia data by using the target communication mode, if a preset monitoring triggering condition is monitored, the terminal equipment monitors whether the same-frequency communication mode with the same frequency band as the target communication mode exists in the wireless communication mode in use of the terminal equipment. Each monitoring occasion is described in detail as follows:
monitoring timing (1): the terminal device uses the wireless communication method every time newly.
In the embodiment of the application, the wireless communication mode which can be used only after a plurality of devices are connected with each other is adopted. In this case, the terminal device is connected to the other device by these wireless communication methods, and then can be considered to be using these wireless communication methods. For some wireless communication modes that can be used without multi-device interconnection, the terminal device can be considered to be in use after turning on the wireless communication modes.
Monitoring timing (2): and switching or adding the frequency band used by the wireless communication mode.
For the wireless communication mode supporting multiple frequency bands, the software and hardware configuration of the terminal equipment and the software and hardware configuration of the communication opposite terminal equipment are used. The following 2 cases may occur in practical applications:
in case a, for the wireless communication method, the communication opposite terminal device provides the communication service externally in a manner of supporting a single signal of the multi-frequency communication. After the terminal equipment is connected with the signal, the terminal equipment and the communication opposite terminal equipment can realize the data transmission of the wireless communication mode on different frequency bands by switching the frequency band. For example, in some application scenarios, wireless router a may send out a Wi-Fi signal supporting both 2.4GHz and 5GHz bands. On the basis, after the terminal equipment is connected to the Wi-Fi signal, the Wi-Fi signal with the frequency band of 2.4GHz and the Wi-Fi signal with the frequency band of 5GHz can be used for transmitting data in a frequency band switching mode.
And b, for the wireless communication mode, the communication opposite terminal equipment respectively sends out independent signals aiming at each frequency band supported by the wireless communication mode so as to provide communication service for the outside. The terminal device may be connected to one or more signals to enable data transmission over different frequency bands for the wireless communication mode. For example, in some application scenarios, the wireless router A may send out a Wi-Fi signal supporting the 2.4GHz band and a Wi-Fi signal supporting the 5GHz band. Based on the Wi-Fi signal, the Wi-Fi signal connected with the 2.4GHz frequency band, the Wi-Fi signal connected with the 5GHz frequency band or both signals can be selected by the terminal equipment according to actual requirements. By connecting signals corresponding to different frequency bands, wi-Fi data transmission in different frequency bands can be realized.
Based on the above 2 possible application situations, in the embodiment of the present application, the situation that "a switching occurs or a frequency band of an in-use wireless communication mode is newly added" may be used as an optional monitoring opportunity. To flexibly cope with the actual application demands.
Monitoring timing (3): the operation of S101 is performed at a preset frequency or time interval or point.
The specific frequency band, time interval and time point can be set by the technician according to the actual requirement, and are not limited too much.
In practical application, a technician can select or set a corresponding monitoring range and monitoring time according to the practical requirement. The monitoring of the same-frequency band wireless communication mode can be realized by selecting one monitoring range and any monitoring time from the embodiment, or can be realized by selecting only one monitoring range or one or more monitoring time. And are not excessively limited herein.
As an optional embodiment of the present application, when S101 does not monitor that the same-frequency band communication mode is used, the terminal device may continue to perform the operation of S101 according to the setting of the monitoring timing. Until it is detected that the terminal device uses the same-frequency band communication mode, or due to other terminal device settings, user operations, or other device interactions, the operation of S101 is stopped.
S102, the terminal equipment detects whether the target communication mode and the same-frequency communication mode have frequency band crowding.
In the embodiment of the application, the frequency band congestion refers to the situation that the data transmission congestion exists in a part or all of wireless communication modes for transmitting data on a certain frequency band due to the large data quantity transmitted on the frequency band. The congestion of the frequency band may cause the data transmission speed of the wireless communication mode on the frequency band to be slow and poor in stability, and the situations of data packet loss, retransmission, interruption, error and the like are easy to occur.
In order to accurately identify whether the terminal equipment has the condition of crowding in a certain frequency band. In the embodiment of the application, the data transmission service condition of the terminal equipment in the frequency band can be analyzed in a targeted manner. The embodiment of the application does not limit the detection method of the congestion of the specific frequency band too much, and can be set by technicians according to actual requirements. For example, in some alternative embodiments, the total amount of data transmission tasks of the terminal device in the frequency band may be taken as a reference index, and a threshold of the total amount of tasks may be set. When the total task amount of data transmission exceeds the task amount threshold, the situation that the frequency band is crowded is judged.
As an optional implementation method for detecting the frequency band congestion in the application, in the embodiment of the application, a plurality of optional reference indexes and corresponding judging schemes are provided. In practical application, the technician can select and set according to the needs. For the provided schemes 1 and 2, the following is detailed:
scheme 1: and detecting whether the wireless communication mode using the frequency band has a large data transmission task amount on the frequency band. Namely, detecting whether the target communication mode and the same frequency communication mode are larger in data transmission task amount on the target frequency band.
In scheme 1, the terminal device performs analysis of the data transmission task amount with respect to all wireless communication methods using the same frequency band. The analysis mode may be whether the total amount of data transmission tasks of all wireless communication modes is large, whether the data transmission task amount of a single wireless communication mode is large, or a combination analysis of both. For example, in some alternative embodiments, it may be set to: when the total amount of data transmission tasks is detected to be large, the situation that the frequency band is crowded is judged. In other alternative embodiments, it may be set to: when the data transmission amount of the wireless communication system is detected to be large, it is determined that the frequency band is crowded. At this time, at least one wireless communication system may have a large data transmission amount. And in yet other alternative embodiments may be set to: and when the detection that the total amount of the data transmission tasks is large and/or one or more data transmission modes with wireless communication are large, judging that the frequency band is crowded.
The method for judging whether the data transmission task amount is large is not limited excessively. For example, in some alternative embodiments, a total task amount threshold and a task amount threshold may be set for the total amount of data transmission tasks of all wireless communication modes and the amount of data transmission tasks of a single wireless communication mode, respectively. When the total data transmission task amount reaches the task amount threshold value, judging that the total data transmission task amount of all wireless communication modes is larger. When the data transmission task amount of a single wireless communication system exceeds a task amount threshold, it is determined that the data transmission task amount of the wireless communication system is large. The specific data of the task total amount threshold value can be set by a technician according to actual requirements. The task amount threshold of a single wireless communication mode can be set by a technician according to actual requirements, or can be determined by parameters built in software and hardware corresponding to the wireless communication mode in the terminal equipment.
As an alternative implementation manner of the present application for judging whether the data transmission amount of a single wireless communication mode is large. Based on the parameter indexes such as the real-time throughput rate of the wireless communication mode, whether the real-time data transmission amount of the wireless communication mode is large or not can be judged, and whether the data transmission task amount is large or not can be determined. The embodiment of the application does not limit the specific real-time data transmission quantity judging method too much, and can be set by a technician. For example, in some alternative embodiments, one or more parameter metrics that may reflect the amount of real-time data transferred may be selected and a corresponding metric threshold set. And judging whether the parameter indexes of the wireless communication mode exceed the corresponding index thresholds or not in real time, and if so, judging that the data transmission quantity is large and the data transmission task quantity is large.
As an optional embodiment of the application, when software and hardware corresponding to a single wireless communication mode in the terminal equipment have a function or capability of independently judging whether the data transmission task amount is large or not. The above-mentioned judgment of whether the data transmission task amount of the single wireless communication mode is large can be given to software and hardware corresponding to the single wireless communication mode. In this case, the technician may not set the specific judgment method, judgment conditions, reference index, etc. too much. And the terminal equipment reads the corresponding software and hardware judgment result. For example, if the software and hardware corresponding to the wireless communication mode a in the terminal device are assumed, it can automatically determine whether the real-time data transmission amount of the wireless communication mode a is larger, and can actively inform the master control of the terminal device of the determination result. At this time, the terminal device reads the corresponding judgment result.
Scheme 2: and screening out wireless communication modes which use the frequency band and have no multimedia data transmission service currently in the terminal equipment, and detecting whether the data transmission task amount of the wireless communication modes on the frequency band is large or not. Namely, only detecting whether the data transmission task amount of the same-frequency communication mode on the target frequency band is large.
It should be noted that, in the embodiment of the present application, even if a certain wireless communication mode has a multimedia data transmission capability, in the case where there is no multimedia data transmission service that needs to be processed at present, it is regarded as no multimedia data transmission service.
In the embodiment of the present application, the basic principles of the scheme 2 and the scheme 1 are the same, so the description of whether the data transmission task is large or not and the details of the operation and the like can refer to the description of the scheme 1, and the details are not repeated here. Only the differences between scheme 2 and scheme 1 will be described here:
it is contemplated that the objects of embodiments of the present application are: when the terminal equipment uses a plurality of wireless communication modes with the same frequency band, the stability of the target communication mode on the transmission of the multimedia data is improved. Therefore, it is necessary to study the influence of the wireless communication method without the multimedia data transmission service on the wireless communication method with the multimedia data transmission service. Based on this, the scheme 2 aims at analyzing wireless communication modes without multimedia data transmission service at present so as to judge whether the wireless communication modes cause the situation of judging congestion. That is, compared to scheme 1, scheme 2 is more targeted to the object that analyzes whether the data transmission task amount is large.
S103, in the process of transmitting the multimedia data by using the target communication mode, the terminal equipment detects the clamping condition of the target communication mode on the multimedia data transmission.
In practical applications, it is found that congestion of the frequency band does not necessarily cause multimedia data to be stuck. For example, in practical application, the target communication mode itself is a main reason for congestion of frequency bands, and may not affect transmission of multimedia data. For example, in the case of congestion in a frequency band, the amount of multimedia data to be transmitted is small, and the congestion in the frequency band has little or no influence on the multimedia data, so that the multimedia data is not blocked in the transmission process. Based on the consideration of the practical situations, the embodiment of the application detects whether the target communication mode is the situation of multimedia data transmission blocking or not at the same time of detecting the frequency band congestion.
In practical application, the detection modes of the data transmission card are various, and the embodiment of the application does not limit the detection modes too much and can be set by technicians according to practical requirements. For example, any one or more of the parameter indicators that may be indicative of a data transmission stuck condition may be selected and based on the condition of those parameter indicators, whether to stuck may be identified. In some alternative embodiments, the packet loss rate, the number of retransmissions of the data packet, and the number of times that the data packet is rejected by other wireless communication methods in the data transmission process may be selected as parameter indicators, and corresponding parameter thresholds may be preset. And when the parameter indexes are detected to exceed the corresponding parameter thresholds, judging that the data transmission is blocked.
As an alternative embodiment of the present application. In practical application, when the target communication mode transmits the multimedia data under the condition of crowded frequency bands, the situation that the transmission of the data packet of the multimedia data fails and the multimedia data is blocked is easily caused. At this point, these packets that failed to be transmitted need to be retransmitted. Therefore, the retransmission number of the data packets can better reflect the real-time jamming condition of the multimedia data transmission. Meanwhile, in practical application, when a plurality of wireless communication modes use the same frequency band for data transmission, the wireless communication mode which uses the frequency band for data transmission can reject the data transmission requests of other communication modes. Therefore, when the target communication mode transmits the multimedia data under the condition of crowded frequency bands, the situation that the data packet of the multimedia data is refused to be transmitted by other wireless communication modes (hereinafter, simply referred to as the data packet is refused to be transmitted) is easy to occur, so that the situation that the multimedia data is blocked is caused. Therefore, the number of times that the data packet of the multimedia data is refused to be transmitted by other wireless communication modes can also better reflect the real-time jamming condition of the multimedia data transmission. Based on these practical considerations, in the embodiment of the present application, the number of retransmissions of the multimedia data packet and the number of times that the data packet is rejected by other wireless communication methods are selected as parameter indicators to detect the blocking of the multimedia data transmission. At this time S103 may be replaced with: s1031 and S1032.
S1031, the terminal equipment acquires the retransmission number of the data packet of the multimedia data in the process of transmitting the multimedia data by using the target communication mode, and refuses the transmission times of the data packet by using the same-frequency communication mode.
The embodiment of the application does not limit the retransmission number of the data packet transmitted by the specific target communication mode and the acquisition mode of the refused transmission times of the data packet in the process of using the target communication mode by the terminal equipment. Can be set by the skilled person or can be determined according to the actual application situation. For example, in some alternative embodiments, for bluetooth, the information containing both data may be actively reported periodically by bluetooth firmware in the terminal device (i.e., fixed phone software within the bluetooth chip). And then the terminal equipment determines the final retransmission number of the data packet and the refused transmission times of the data packet from the reported information. For other wireless communication methods, the processing can also be performed by referring to bluetooth. And actively reporting the software and the hardware corresponding to the wireless communication mode, and determining the final data from the reported information by the terminal equipment.
It should be specifically noted that, in the embodiment of the present application, the data range of "the number of retransmissions of the packet of the multimedia data, and the number of refusal of transmission of the packet" may be set by a technician or may be determined by the terminal device according to the actual application situation. For example, consider that both parameter indicators are statistically derived data. Accordingly, in some alternative embodiments, the data range may be a statistical time range corresponding to the data statistics. In alternative embodiments, the technician may set the data range at this time, which may be the same as or different from the statistical time range. For example, suppose that the terminal device counts the number of retransmissions of the packet of multimedia data in the first 0.1 seconds every 0.2 seconds. If the technician does not have special settings, the number of data packet retransmissions at this time may be the number of data packet retransmissions of multimedia data with a time span of 0.1 seconds, which is newly acquired by the terminal device. If the technician has the self-setting, the self-setting is in order. Assuming a technician set the range to 1 second. The number of retransmissions of the data packet at this time may refer to the number of retransmissions of the data packet of the multimedia data within 1 second that is newly acquired by the terminal device.
S1032, the terminal equipment detects the blocking condition of the target communication mode on the multimedia data transmission according to the acquired retransmission number of the data packet and the transmission times of the data packet by the same-frequency communication mode.
The embodiment of the application sets a corresponding number threshold for the retransmission number of the data packet, and sets a corresponding number threshold for the refused transmission number of the data packet. Based on the obtained number of data packet retransmissions and the number of times the data packet is refused to be transmitted, the embodiment of the application analyzes the two parameter indexes to determine whether the two parameter indexes are larger than the corresponding number threshold or the number threshold. If the parameter index is larger than the preset value, the parameter index can be judged to be larger. The specific number threshold and the number threshold are not excessively limited, and can be set by a technician according to requirements. For example, in some embodiments, the number threshold and the number threshold may be set smaller if it is desired to increase the sensitivity to multimedia data transmission stuck-at recognition. In other embodiments, if it is desired to improve accuracy of the recognition of the multimedia data transmission card, the number threshold and the number threshold may be set larger.
Meanwhile, according to whether the parameter index is larger, the embodiment of the application provides the following 2 optional processing schemes for judging the multimedia data cartoon condition:
Treatment scheme a: the number of data packet retransmission is larger, or the number of data packet refused transmission times is larger, and the existence of the blocking of the multimedia data transmission can be judged.
Treatment scheme b: the retransmission number of the data packet is larger, and the number of times of refusing transmission of the data packet is larger, the existence of the blocking of the multimedia data transmission can be judged.
In the processing scheme a, a single parameter index can be used as a judgment basis for multimedia data transmission blocking. Therefore, the detection sensitivity of the multimedia data transmission jamming is higher. In the processing scheme b, two parameter indexes are larger at the same time to be used as the judgment basis of the multimedia data transmission jam. Therefore, the detection accuracy of the multimedia data transmission jamming is higher. In practical application, the technician can select or set the device according to the requirement. And are not excessively limited herein.
As an optional embodiment of the present application, the blocking situation of the target communication mode on the multimedia data transmission can be divided into not only the 2 cases of existence of blocking and nonexistence of blocking. It can be further subdivided into for the case where no jamming exists: normal transmission and smooth transmission. The detection results of the katon condition at this time S103 and S1032 can be divided into 3 types (also referred to as 3 types of detection results): there is jamming, normal transmission and fluent transmission. The smooth transmission refers to that the current multimedia data is transmitted smoothly, and transmission problems, such as packet loss, retransmission, interruption, error and the like, are less or not caused. At this time, the stability of the multimedia data transmission is better, and a certain redundancy exists for the transmission capability of the multimedia data. Referring to fig. 4, normal transmission is an intermediate transition between the existence of stuck and smooth transmission. In the case of normal transmission, there are some transmission problems in multimedia data transmission, such as one or more of the problems of packet loss, retransmission, interruption, error, etc., but none of the transmission problems are serious. The stability of the multimedia data transmission is normal. At this time, the receiving end of the multimedia data can normally receive and play the multimedia data.
When the terminal equipment normally transmits or smoothly transmits the multimedia data, the receiving end of the multimedia data can normally receive and play the multimedia data. Referring to fig. 4, the difference is that the stability of normal transmission is weaker than that of smooth transmission, and the tolerance to interference with external factors is relatively weak. And thus is more susceptible to interference from external factors, transitioning from normal transmission to a stuck condition. The terminal device is generally changed into a normal transmission condition if being interfered by external factors under the condition of smoothly transmitting the multimedia data. If the interference from external factors is large, normal transmission conditions without intermediate transition may occur, and the situation may be changed to a situation where a jam exists.
For illustration, an example is assumed that the terminal device is a mobile phone, the target communication mode is bluetooth, and meanwhile, the mobile phone is also surfing the internet by Wi-Fi using the 2.4GHz band. The mobile phone is connected with the Bluetooth headset through Bluetooth, transmits audio data to the Bluetooth headset through Bluetooth, and plays audio through the Bluetooth headset. At this time, if the Bluetooth is blocked in the audio data transmission, the Bluetooth earphone can also block the audio playing, such as interruption, interruption and the like. If the Bluetooth transmits the audio data normally or smoothly, the Bluetooth earphone plays the audio smoothly, and generally no clamping condition exists. At this time, for the case of normal transmission, if the data size of Wi-Fi transmission becomes large, for example, the user needs to download a large-volume file. At this time, the mobile phone may cause the transmission of the audio data to be blocked, i.e. a blocking situation exists. However, in the case of smooth transmission, if the data size of Wi-Fi transmission becomes large. At this time, the transmission condition of the mobile phone to the audio data is converted to normal transmission.
For the method for determining that there is a jam in the process of detecting a jam condition, reference may be made to the descriptions related to S103, S1031 and S1032, which are not repeated herein. For normal transmission and smooth transmission, refinement can be performed on the basis of the used presence-jamming judgment method. For example, when a single parameter indicator, which may embody a data transmission stuck condition, is selected to identify a stuck condition, an upper parameter threshold and a lower parameter threshold may be set. And when the parameter index exceeds the upper parameter threshold, judging that the multimedia data transmission is blocked. And when the parameter index is lower than the lower parameter threshold, judging that the multimedia data is transmitted smoothly. And when the parameter index is between the upper parameter threshold and the lower parameter threshold, judging that the multimedia data is normally transmitted. For another example, when a plurality of parameter indexes capable of representing the data transmission jam condition are selected to identify the jam condition, a corresponding upper limit parameter threshold and lower limit parameter threshold may be set for each parameter index respectively. And the size relation between the parameter index of each condition and the upper and lower parameter thresholds under the condition of 3 conditions of blocking, normal transmission and smooth transmission is divided. And finally, determining the multimedia data clamping condition according to the magnitude relation between the values of the actual various parameter indexes and the upper limit parameter threshold and the lower limit parameter threshold. The specific size of each threshold may be set by a technician according to actual requirements, and is not limited herein.
As an alternative embodiment of the application based on fig. 4. In order to realize the identification of normal transmission and smooth transmission, the embodiment of the present application refines S1032 on the basis of the corresponding embodiments of S1031 and S1032. And setting a corresponding upper limit number threshold and lower limit number threshold for the retransmission number of the data packets. Setting corresponding upper limit times threshold and lower limit times threshold for the data packet refused transmission times. Accordingly, the processing scheme a and the processing scheme b can be refined as: treatment regimen a 'and treatment regimen b'.
Treatment protocol a':
and when the retransmission number of the data packets is larger than the upper limit number threshold or the number of times of refused transmission of the data packets is larger than the upper limit number threshold, judging that the multimedia data transmission is blocked.
And when the retransmission number of the data packets is smaller than the lower limit number threshold and the number of times of refused transmission of the data packets is smaller than the lower limit number threshold, judging that the multimedia data is transmitted smoothly.
The conditions other than the blocking and smooth transmission can be considered as normal transmission of the multimedia data.
Treatment protocol b':
and when the retransmission number of the data packets is larger than the upper limit number threshold and the number of times of refused transmission of the data packets is larger than the upper limit number threshold, judging that the multimedia data transmission is blocked.
And when the retransmission number of the data packets is smaller than the lower limit number threshold and the number of times of refused transmission of the data packets is smaller than the lower limit number threshold, judging that the multimedia data is transmitted smoothly.
The conditions other than the blocking and smooth transmission can be considered as normal transmission of the multimedia data.
And S104, judging the stability of the target communication mode to the transmission of the multimedia data according to whether the frequency band congestion and the blocking condition of the target communication mode to the transmission of the multimedia data exist. If the stability is poor, the operation of S205 is performed.
As can be seen from the description of S103, the congestion of the frequency band does not necessarily cause the multimedia data transmission of the target communication mode to be blocked. Meanwhile, in practical application, the multimedia data transmission is not necessarily blocked due to the same-frequency-band congestion. Poor network signals, such as wireless communication, may also cause multimedia data transmission to become stuck. Therefore, the embodiment of the application can refer to whether the frequency band is crowded or not and the multimedia data transmission is stuck or not, and the results of two dimensions are obtained. When the frequency band congestion is detected and the multimedia data transmission is blocked, the situation that the multimedia data transmission is blocked due to the frequency band congestion in the target communication mode is indicated. At this time, it can be determined that the stability of the target communication mode to the multimedia data transmission is poor.
It should be noted that, the sequence of detecting the congestion of the frequency band and detecting the jamming condition of the multimedia data transmission is not limited too much, and can be set by the skilled person. For example, the execution sequence of S101 and S103 may be set, or synchronous execution may be selected.
S105, the terminal equipment reduces the multimedia data coding rate corresponding to the target communication mode.
And S106, the terminal equipment encodes the multimedia data based on the reduced encoding code rate and transmits the encoded multimedia data by using a target communication mode.
In order to improve the stability of multimedia data transmission. When the poor stability of the target communication mode to the multimedia data transmission is detected, the embodiment of the application can dynamically reduce the coding rate of the multimedia data in the target communication mode. Wherein, the reduction of the coding rate means switching to a coding rate lower than the current coding rate. The specific coding rate switching method and the reduced rate amplitude are not limited in any way. Can be set by the skilled person according to the actual requirements.
After the code rate is reduced, the terminal equipment can use the reduced code rate to continue to encode the multimedia data which is not transmitted, and continue to transmit the multimedia data by using the original wireless communication mode, so as to realize stable transmission of the multimedia data.
In the embodiment of the application, a technician can preset one or more target communication modes which need to be optimized for multimedia data transmission according to the requirements. Or one or more target communication modes are selected from the wireless communication modes for data transmission tasks. On the basis, in the process of transmitting the multimedia data by using the target communication mode, the terminal equipment can identify whether the same-frequency communication mode with the same frequency band as the target communication mode exists. And detecting whether the data transmission is blocked or not in the target communication mode. On the basis of identifying the scene with the same frequency, whether the target communication mode and the same frequency communication mode have the condition of crowding frequency bands or not is monitored. When the frequency band congestion is detected and the multimedia data transmission of the target communication mode is blocked, the situation that the multimedia data transmission is blocked due to the frequency band congestion of the target communication mode is indicated. At this time, for the target communication mode with the problem of multimedia data transmission, the embodiment of the application can dynamically reduce the coding rate of the target communication mode on the multimedia data, and then perform corresponding multimedia data coding and transmission. The bandwidth required by the transmission of the multimedia data with the low code rate is smaller, so that the influence is smaller in the same-frequency communication mode and the same-frequency band data transmission process. The target communication mode can transmit multimedia data more smoothly, the stability is better, and the jamming condition is not easy to occur. On the user side, the multimedia data in the receiving end can be smoothly played, so that the user experience is improved.
Compared with the determination mode 2, when the determination mode 1 is adopted to determine the target communication mode, the target communication mode which needs to be optimized is more targeted. The method can rapidly detect and optimize the target communication mode, and the detection is more free, flexible and higher, thereby reducing the workload of the terminal equipment for optimizing the multimedia data transmission and reducing the power consumption of the terminal equipment. The method is more suitable for some terminal equipment with higher power consumption control requirements, such as mobile terminals like mobile phones and tablet computers, and wearable equipment like smart watches and smart glasses.
As an alternative embodiment of the present application. When it is determined in S104 that the stability of the transmission of the multimedia data is poor, the embodiment shown in fig. 3 reduces the coding rate of the multimedia data to improve the stability of the transmission. As can be seen from the description of S103, S1031 and S1032, in practical application, no matter whether the terminal device is crowded in a certain frequency band, the target communication mode may or may not be jammed in the multimedia data transmission. Therefore, after the coding rate of the multimedia data is reduced in S105, if the bandwidth resource in the frequency band is released, the target communication mode may not have the transmission multimedia data of the clip in the frequency band. The continuous low-rate data transmission cannot fully utilize the released bandwidth resources, and the user side cannot use the multimedia data with higher quality. In order to bring stable and high quality multimedia data use effect to users. Referring to fig. 3, an embodiment of the present application further includes: s107 and S108.
If it is detected in S103 that the target communication method is not stuck for multimedia data transmission, S107 is executed.
In the embodiment of the application, the classification of the multimedia data transmission jamming condition can be as follows:
classification 1: dividing the multimedia data transmission clamping conditions into: there are 2 cases of stuck and no stuck. At this time, the situation that there is no jamming may be regarded as that the target communication mode does not have jamming for the multimedia data transmission, and the operation of S107 is performed.
Classification 2: on the basis of the classification 1, the situation in which there is no jamming is subdivided into a plurality of situations, and one or more of the subdivided plurality of situations are defined as a situation in which there is no jamming. For example, referring to the embodiment shown in fig. 4, the case where there is no jamming can be subdivided into normal transmission and smooth transmission. On this basis, the "smooth transmission" condition may be defined as the no-jamming condition in the embodiment of the present application. Accordingly, when it is detected in S103 that the target communication mode is smooth for transmitting the multimedia data, it is regarded that the target communication mode is free from blocking for transmitting the multimedia data, and the operation in S107 is performed.
For the determination methods of the presence of the jamming, the absence of the jamming, the normal transmission and the smooth transmission, reference may be made to S103, S1031, S1032 and the description related to the embodiment shown in fig. 4, and the description will not be repeated here. For example, for class 1, a single parameter threshold for the reference index may be set and utilized to divide between the presence and absence of a stuck 2 condition. For class 2, reference may be made to the description of processing schemes a 'and b' in the embodiment shown in FIG. 4.
S107, the terminal equipment improves the multimedia data coding rate corresponding to the target communication mode.
S108, the terminal equipment encodes the multimedia data based on the improved encoding code rate and transmits the encoded multimedia data by using a target communication mode.
When detecting that the target communication mode does not have a blocking state on the transmission of the multimedia data, the embodiment of the application can dynamically improve the coding rate of the multimedia data in the target communication mode. Wherein, the improvement of the coding rate means switching to a coding rate higher than the current coding rate. The specific coding rate switching method and the improved rate amplitude are not limited in any way. Can be set by the skilled person according to the actual requirements. After the code rate is increased, the terminal equipment can use the increased code rate to continue to encode the multimedia data which is not transmitted, and continue to transmit by using the original wireless communication mode.
According to the embodiment of the application, when the terminal equipment discovers that the multimedia data transmission is blocked due to the frequency band congestion, the coding rate of the multimedia data is timely reduced. And when no blocking exists in the transmission of the multimedia data, the coding rate of the multimedia data is improved. Therefore, the dynamic adjustment of the multimedia data coding rate is realized according to the actual multimedia data transmission condition. On the basis of improving the stability of the wireless communication mode to the transmission of the multimedia data, the embodiment of the application can also fully adapt and utilize the bandwidth resources of the frequency band, and realize the dynamic balance of the transmission stability and the transmission quality of the multimedia data. Finally, the effect of stably transmitting the multimedia data with higher quality is realized when a plurality of wireless communication modes with the same frequency band are used. Therefore, the sensory experience of the user end on the multimedia data can be greatly improved, and the final user experience is improved.
As an alternative embodiment of the present application based on the embodiments shown in S107 and S108, in category 2: the situation without the jamming is subdivided into a plurality of situations, and one or a plurality of situations among the subdivided plurality of situations are defined as the situation without the jamming. The embodiment of the application can be regarded as normal condition of the current transmission of the multimedia data for the conditions except the existence of the jamming and the absence of the jamming. At the moment, the two dimensions of the transmission stability and the transmission quality are balanced well, and the self-adaption and full utilization of the condition of the frequency band bandwidth resource are realized. Therefore, the operation of S105 or S107 may not be performed for the case where the transmission is normal, but the encoding of the multimedia data may be continued while maintaining the encoding rate currently used, and the encoded multimedia data may be transmitted using the target communication scheme. For example, the embodiment of the present application may be combined with the embodiment shown in fig. 4, where the "smooth transmission" condition is defined as the no-stuck condition in the embodiment of the present application, and the "normal transmission" condition is defined as the condition that the transmission in the embodiment of the present application is normal. At this time, referring to fig. 3, for the case that the normal transmission of the multimedia data by the target communication method is detected, the following steps are performed: and S109, the terminal equipment maintains the currently used coding rate to code the multimedia data and transmits the coded multimedia data by using a target communication mode.
The embodiment of the application increases an intermediate condition of keeping the coding rate unchanged when the multimedia data transmission is normal on the basis of dynamically reducing and improving the coding rate of the multimedia data. Therefore, the embodiment of the application can reduce the switching frequency of the terminal equipment on the multimedia data coding rate. So that the transmission quality of the whole multimedia data is smoother. When the user receives and uses the multimedia data at the receiving end, the sensory experience of the multimedia data is stable and natural, and the user experience is further improved.
Meanwhile, the embodiment of the application synchronously monitors the crowding and the jamming condition of the frequency band of the target communication mode, and the jamming condition can be freely executed in the process of using the target communication mode. Therefore, the embodiment of the application has higher flexibility in detecting the jamming condition and higher flexibility in improving or maintaining the encoding rate of the multimedia data. The stability of the transmission of the multimedia data is improved, and the transmission quality of the multimedia data is improved.
It should be noted that, in practical application, if the parameter index used when detecting the stuck condition of the target communication mode to the multimedia data transmission is data that cannot be obtained by statistics (hereinafter, simply referred to as statistics data). For example, in the embodiments corresponding to S1031 and S1032, the counted number of retransmissions of the packet and the counted number of times of refusal of transmission of the packet are used to detect the blocking condition of the target communication mode on the transmission of the multimedia data. Since the statistical data has a certain hysteresis, if the frequency of detecting the transmission condition of the multimedia data in the wireless communication mode is high, the situation that the switching frequency of the coding rate of the terminal equipment for the multimedia data is high may be caused. And the coding rate is kept unchanged when the multimedia data transmission is normal, so that the condition of higher switching frequency of the coding rate of the multimedia data caused by statistical data hysteresis can be avoided. Therefore, the embodiment of the application can improve the improvement effect on the multimedia data transmission jamming condition, so that the multimedia data transmission is more stable and the transmission quality is more stable. For example, in some embodiments, when the transmitted multimedia data is audio data. By applying the embodiment of the application, on one hand, when the clamping exists, the audio data transmission code rate is reduced in time, so that the stability of the terminal equipment on the transmission of the audio data is improved, and the clamping of the audio data transmission is less. On the other hand, as the switching frequency of the coding code rate is lower and controllable, the tone quality of the output audio data is more stable, the tone quality of the audio data is not frequently reduced or improved, and the sensory experience of a user side is more stable and natural.
In addition, combinations of the embodiments described in this specification are also possible to obtain new embodiments. Meanwhile, the operation principle, operation details, beneficial effects and the like of the embodiments obtained by combining can refer to the related description of each embodiment before combining, and are not repeated here.
As an alternative embodiment of the present application, for the above embodiment in which the encoding rate of multimedia data needs to be adjusted. In the embodiment of the application, the increase or decrease of the code rate can be a gear-by-gear adjustment, namely, the code rate of only one gear is increased or decreased at a time. It is also possible to adjust the shift, i.e. to increase or decrease the code rate of a plurality of shift positions at a time. The mode of adjusting the coding rate of the multimedia data can be selected by a technician according to the actual requirement. When the mode of the shift adjustment is selected, a scheme corresponding to the shift can be set, such as how many shift positions are increased or decreased each time.
An example is illustrated. The target communication mode is assumed to be Bluetooth, and the terminal equipment has a first gear code rate, a second gear code rate and a third gear code rate for data transmitted by Bluetooth, and the code rates of the total 3 gears are the same. Wherein the first gear code rate is the lowest, the second gear code rate is the second, and the third gear code rate is the highest. On the basis, the terminal equipment is assumed to use the two-gear code rate to encode the Bluetooth transmission multimedia data currently, and the setting adopts gear-by-gear adjustment. The coding rate can be increased to a third gear rate or decreased to a first gear rate according to the requirement. The terminal equipment is assumed to currently use a one-gear code rate to encode the multimedia data transmitted by Bluetooth, and the setting adopts the gear shifting adjustment, and the unit of each gear shifting adjustment is 2 gears. At the moment, the coding rate of the multimedia data needs to be improved, and the coding rate can be improved from the first-gear rate to the third-gear rate.
It should be specifically noted that all examples in the present specification are only for illustrating the technical solution of the present application and are not limiting. Although the application has been described in detail with reference to the embodiments of the present specification, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.
For example, in the above method embodiment, the step of monitoring whether the co-frequency communication mode exists, the step of detecting whether the band congestion exists, and the step of detecting the jamming condition of the multimedia data transmission are performed for the terminal device. In practical applications, in the case of no logic conflict, the three steps may also be performed in a different order from the above embodiments. For example, based on the embodiment shown in fig. 3, the step of monitoring whether the same-band communication mode exists or not and the step of detecting whether the band congestion exists can be performed together with reference to fig. 5, and combined into one step. At this time, S101 and S102 may be combined as: s100.
S100, in the process of transmitting the multimedia data by using the target communication mode, the terminal equipment detects the same-frequency communication mode which has the same frequency band as the target communication mode and has crowded frequency band from the wireless communication modes in use of the terminal equipment.
As an alternative embodiment of the present application, detection of whether the same frequency communication mode is used is implemented. On the basis of preselected target communication mode, target frequency band and detection range of same-frequency communication mode. The corresponding interface that the terminal device needs to use when in use can be determined for each possible co-channel communication mode. At this time, whether the same-frequency communication mode corresponding to the interface is used or not may be determined by judging whether the terminal device uses the mode corresponding to the interface.
For example, assume that the target communication mode is bluetooth, and the monitoring range of the same-frequency communication mode only includes Wi-Fi in the 2.4GHz band. The interface used by the terminal equipment is different when Wi-Fi in the 2.4GHz frequency band is used and Wi-Fi in the 5GHz frequency band is used. Therefore, whether Wi-Fi of the 2.4GHz band which is the same as Bluetooth is used can be judged by determining whether the terminal equipment actually uses the interface corresponding to Wi-Fi of the 2.4GHz band. When the Wi-Fi interface is used, the Wi-Fi interface may also be used to analyze and determine the actual Wi-Fi operating frequency band from the data transmitted by the interface. When the interface is analyzed to work in 2400MHz-2478MHz frequency band in the data transmitted by the interface, the interface can be judged to be the Wi-Fi corresponding interface in the 2.4GHz frequency band.
The step of detecting the blocking condition of the multimedia data transmission in S103 may also be placed after the step of detecting whether the co-frequency wireless segment communication mode exists in S101. At this time, after the terminal device monitors the same-frequency wireless segment communication mode in S201, S102 and S103 are executed again. S103 may be correspondingly modified as follows: and detecting the clamping condition of the target communication mode on the multimedia data transmission.
The embodiment shown in fig. 5 will be exemplified with an example in which the terminal device is a mobile terminal.
The user simultaneously uses Bluetooth in the 2.4GHz frequency band and Wi-Fi in the 2.4GHz frequency band in the mobile terminal, so that the mobile terminal is a common use scene. For example, when a user uses the Bluetooth of the mobile phone to connect with the Bluetooth headset and uses the Bluetooth headset to listen to music or make a call, the user can also use the mobile phone to connect with Wi-Fi in the 2.4GHz frequency band to watch an online video or download a file, etc. Because the bandwidth resources of the single frequency band are limited, the data interaction volume of Wi-Fi service is generally larger, and the Wi-Fi service occupies the bandwidth resources relatively. Therefore, in an actual use scene, the Bluetooth is used by residual bandwidth in a frequency band, so that the stability of Bluetooth multimedia data transmission is poor, and the situation that audio playing is blocked by a Bluetooth earphone is easy to occur.
In the embodiment of the application, the target communication mode is set to be Bluetooth. In order to solve the above problem, the terminal device monitors the bluetooth to multimedia data transmission. And according to the actual blocking condition, the coding rate of the mobile terminal to the multimedia data is dynamically adjusted, and then the Bluetooth is utilized for transmission. Therefore, the terminal equipment in the embodiment of the application can adapt to the Bluetooth transmission condition to improve the stability of the Bluetooth transmission multimedia data.
Assume that the terminal device starts to download a large-volume game installation package by using Wi-Fi of the 2.4GHz frequency band and transmitting music data to the Bluetooth headset by using Bluetooth of the 2.4GHz frequency band, and simultaneously uses NFC of the 13.56MHz frequency band to brush the entrance guard. The following conditions are assumed at the same time:
the judgment scheme of the frequency band crowding is as follows: whether the data transmission task amount of the wireless communication mode with or without the multimedia data transmission service is large or not. The Bluetooth earphone supports an LDAC coding scheme, and the terminal equipment can encode music data and transmit the music data by using Bluetooth at a total three-gear code rate of 330kbps, 660kbps and 990kbps supported by the LDAC coding scheme. The adjustment scheme of the coding rate is gear-by-gear adjustment. Dividing the multimedia data blocking condition into: there is jamming, normal transmission and fluent transmission. The monitoring range of the same-frequency communication mode is Wi-Fi only comprising a 2.4GHz frequency band.
In the embodiment of the present application, the step "Sxxx'" corresponds to the step "Sxxx" in fig. 5 one by one, and belongs to the specific content of the step in fig. 5 under the specific scene. To facilitate differentiation from the embodiment shown in fig. 5, corresponding differentiation nomenclature is also provided for each step. For example, step S101 'corresponds to step S101 in the embodiment shown in fig. 5, step S102' corresponds to step S102, and so on. Since the operation principle, operation details, advantageous effects and the like of each step have been described in the embodiments shown in fig. 3 to 5, the embodiments of the present application are not repeated. Reference is made in particular to the description of the embodiments shown in figures 3 to 5. The embodiments of the application are described in only some of the necessary details. The embodiment of the application comprises the following steps:
s100', in the process of transmitting music data by using Bluetooth, the terminal equipment detects whether the Wi-Fi used has the same frequency band as Bluetooth and has the condition of crowding the frequency band.
At this time, whether Wi-Fi of the 2.4GHz frequency band is detected by detecting the Wi-Fi interface used by the terminal equipment.
In the scenario of the embodiment of the application, wi-Fi just begins to download a large-volume game installation package. I.e., the Wi-Fi data transmission task is large. It can be determined at this time that bluetooth and Wi-Fi are congested in frequency bands.
S103', in the process of transmitting music data by using Bluetooth, the terminal equipment detects the transmission clamping condition of the Bluetooth on the music data. If the stuck condition is normal transmission, the operation of S109' is performed. If the stuck condition is smooth transmission, the operations of S107 'and S108' are performed.
In the embodiment of the application, the number of retransmission of the data packet of the music data and the number of times that the data packet is refused to be transmitted by Wi-Fi can be selected as parameter indexes to judge the clamping condition of Bluetooth on the music data.
And S104', the terminal equipment judges the stability of the Bluetooth to the transmission of the music data according to whether the Bluetooth and the Wi-Fi have frequency band crowding and the transmission of the Bluetooth to the music data. If the stability is poor, S105' is performed.
S105', the terminal equipment reduces the coding rate of the first grade of music data.
And S106', the terminal equipment encodes the music data based on the encoding code rate after the first gear reduction, and transmits the encoded music data to the Bluetooth headset by using Bluetooth.
It is assumed that the real-time coding rate used by the terminal device is 990kbps when S105' is performed. Then the embodiment of the present application will switch to a lower rate of 660kbps for encoding and transmitting the music data.
And S109', the terminal equipment maintains the currently used coding rate to code the music data, and transmits the coded music data to the Bluetooth headset by using Bluetooth.
S107', the terminal equipment improves the coding rate of the first grade of music data.
And S108', the terminal equipment encodes the music data based on the first-gear improved encoding rate and transmits the encoded music data to the Bluetooth headset by using Bluetooth.
It is assumed that the real-time coding rate used by the terminal device is 330kbps when S107' is performed. Then the embodiment of the present application will switch to the higher rate 660kbps for encoding and transmitting the music data.
In the embodiment of the application, the terminal equipment adaptively and dynamically adjusts the coding rate during the transmission of the music data according to the congestion conditions of the Bluetooth and Wi-Fi outer frequency bands and the transmission blocking condition of the Bluetooth on the music data. The stability of music data transmission is improved, and meanwhile, higher-tone music data with proper frequency band bandwidth resources can be output more stably. Therefore, by the embodiment of the application, even if the terminal equipment uses a plurality of wireless communication modes with the same frequency band, the user can still hear the music data with stable transmission, higher tone quality and relatively stable tone quality on the Bluetooth earphone side.
The embodiment shown in fig. 5 is exemplified below with another example in which the terminal device is a mobile terminal.
In the embodiment of the application, the target communication mode is set to be Bluetooth. In order to solve the problem that when Bluetooth in the 2.4GHz frequency band and Wi-Fi in the 2.4GHz frequency band are used simultaneously, stability of Bluetooth transmission music data is poor and transmission is blocked, terminal equipment can monitor blocking condition of Bluetooth on multimedia data transmission. And according to the actual blocking condition, the coding rate of the mobile terminal to the multimedia data is dynamically adjusted, and then the Bluetooth is utilized for transmission. Therefore, the terminal equipment in the embodiment of the application can adapt to the Bluetooth transmission condition to improve the stability of the Bluetooth transmission multimedia data.
Some terms that may be involved in embodiments of the present application are described herein as follows:
Wi-Fi module: the software and hardware modules providing Wi-Fi function in the mobile terminal are collectively called.
Bluetooth headset (BT headset): and the earphone which communicates by using a Bluetooth mode and can play audio is utilized. The embodiment of the application does not limit the earphone type of the Bluetooth earphone, the supported coding and decoding schemes and the like.
Bluetooth firmware (BT firmware): and the solidifying software is written in the Bluetooth chip of the mobile terminal.
Encoder (Encoder): in particular to an encoder corresponding to Bluetooth in a mobile terminal and a virtual function module for encoding data required to be transmitted by the Bluetooth. In practical application, the specific encoder type needs to be determined according to the coding and decoding schemes actually used by the mobile terminal and the Bluetooth headset. For example, when the mobile terminal and the bluetooth headset adopt an LDAC codec scheme, the encoder is an LDAC encoder.
Bluetooth host (BT host): i.e. the processor of the mobile terminal.
Bluetooth audio interface: and a virtual interface which is responsible for Bluetooth audio data transmission inside the mobile terminal. In some handsets, the bluetooth audio interface may be named bt_a2dp_hw. Wherein hw is an abbreviation for Hardware Hardware.
AUDIO module (AUDIO): the software and hardware modules for managing audio in the mobile terminal are collectively called as a mobile terminal. In some embodiments, the mobile terminal may also be an audio chip.
In the embodiment of the application, the target communication mode is set to be Bluetooth, and the monitoring range of the same-frequency communication mode is set to be Wi-Fi of a 2.4GHz frequency band. Meanwhile, the multimedia data transmitted by Bluetooth is assumed to be audio data. The blocking condition of Bluetooth on audio data is divided into three types: there is jamming, normal transmission and fluent transmission. And when the encoder adjusts the coding rate of the audio data, one code rate gear is adjusted at a time.
Referring to fig. 6, a conventional flow chart of a mobile terminal when communicating with a bluetooth headset and playing audio using the bluetooth headset is illustrated as follows:
and step 1, the audio module divides stream data of the original audio data into audio data packets and sends the audio data packets to the Bluetooth audio interface.
And step 2, the Bluetooth audio interface sends the audio data packet to the encoder.
And step 3, the encoder encodes the audio data packet and sends the encoded audio data packet to the Bluetooth firmware.
And 4, the Bluetooth firmware sends the encoded audio data packet to the Bluetooth headset.
As can be seen from the above description, in general, during the audio data transmission process, the encoder cannot know whether the current transmission is blocked or not, and cannot know whether the bluetooth is crowded with other wireless communication modes or not. Therefore, in a general bluetooth communication process, the mobile terminal cannot well cope with the situation of bluetooth transmission stuck caused by frequency band congestion.
Referring to fig. 7, a flow chart of a data transmission method according to an embodiment of the present application is described in detail as follows:
s300, in the process that the mobile terminal transmits audio data by using Bluetooth, the audio module sends the audio data to the Bluetooth audio interface.
The embodiment of the application refers to audio data, stream data of the audio data, audio data packets and the like as audio data.
S301, the Bluetooth audio interface sends audio data to the encoder.
S302, in the process that the mobile terminal transmits audio data by using Bluetooth, the Wi-Fi module judges whether Wi-Fi of a 2.4GHz frequency band is connected or not. If Wi-Fi of the 2.4GHz band is connected, then S303 is performed.
At this time, whether Wi-Fi of the 2.4GHz frequency band is connected or not can be determined by identifying an interface used by Wi-Fi transmission.
S303, the Wi-Fi module detects whether the Wi-Fi and Bluetooth are crowded in frequency bands. And when the Wi-Fi and Bluetooth are detected to have frequency band crowding, informing the Bluetooth host of the detection result.
The Wi-Fi module is a software and hardware module for providing Wi-Fi functions, so that data monitoring such as Wi-Fi connection conditions and data transmission conditions is directly and efficiently performed. Therefore, in the embodiment of the application, the Wi-Fi module in the mobile terminal can be responsible for monitoring whether Wi-Fi of the 2.4GHz frequency band is connected or not and judging whether the frequency band is crowded or not. Therefore, the power consumption of the mobile terminal for Wi-Fi monitoring of the 2.4GHz frequency band can be reduced.
The method for determining the frequency band congestion is not limited herein. For example, in some embodiments, the Wi-Fi module may determine whether the data interaction amount of Wi-Fi is too large according to whether the data throughput rate of Wi-Fi and other indicators exceed a preset threshold. I.e. whether a large flow of data interaction is being done. If the indexes such as the data throughput rate and the like exceed the preset threshold, the data interaction quantity is determined to be large, and the frequency band congestion exists.
As an alternative embodiment of the present application, S303 may also be used to detect whether Wi-Fi and Bluetooth are crowded, or not to transmit Wi-Fi modules, but to process other software and hardware modules in the mobile terminal. For example, may be handed to a mobile terminal processor for processing. Accordingly, the execution subject of S303 may be modified to the mobile terminal processor at this time.
The judgment method for the frequency band congestion can be more various when the step S303 is processed by the mobile terminal processor. For example, whether the frequency band congestion exists can be determined by using whether indexes such as Wi-Fi data throughput rate exceed a preset threshold value. And whether the Wi-Fi transmission data volume is larger or not in the service scene of the mobile terminal can be identified. If the number is larger, it is determined that the band congestion exists. The criteria for determining whether the data amount of Wi-Fi transmission is larger is not limited herein, and includes, but is not limited to, setting a data amount threshold, and determining that there is band congestion when the data amount of Wi-Fi transmission is greater than the data amount threshold.
S304, in the process that the mobile terminal transmits the audio data by using Bluetooth, bluetooth firmware obtains the retransmission number of the data packet of the audio data and the times of Wi-Fi refusal transmission of the data packet, and sends the retransmission number of the data packet and the times of Wi-Fi refusal transmission of the data packet to a Bluetooth host.
In the embodiment of the application, the transmission jamming condition of Bluetooth on the audio data is judged by adopting the retransmission number of the data packets of the audio data and the times of refusing transmission of the data packets by Wi-Fi. In order to acquire two data, the bluetooth firmware may read local log_id_stats_act_conn information. As an example of log_id_stats_act_conn information. The information includes the number of retransmissions of the data packet of the audio data (localreturn), and the number of times the data packet was Wi-Fi rejected for transmission (cxmdencals).
After the log_id_stats_act_conn information is read, the bluetooth firmware can select to analyze the retransmission number of the data packet and the number of times that the Wi-Fi refuses to transmit, and then report the analyzed 2 data information to the bluetooth host. The information can also be optionally reported to the bluetooth host. At this time, the bluetooth host may parse the information by itself to obtain the number of retransmissions of the data packet and the number of Wi-Fi refusal transmissions of the data packet in S305. As an alternative embodiment of the present application, the information reported by the bluetooth firmware may be referred to as event information.
S305, the Bluetooth host judges the transmission blocking condition of the Bluetooth on the audio data according to the retransmission number of the data packet and the transmission refusal times of the Wi-Fi of the data packet. If the detected stuck condition is that a stuck condition exists, S306 is executed. If the detected stuck condition is normal transmission, a command is issued to the encoder to maintain the encoding rate of the audio data. If the blocking condition is detected to be smooth transmission, a command is issued to the encoder to improve the encoding rate of the audio data.
The embodiment of the application sets a corresponding upper limit number threshold and a corresponding lower limit number threshold for the retransmission number of the data packet, and sets a corresponding upper limit number threshold and a corresponding lower limit number threshold for the refused transmission number of the data packet. After receiving or analyzing event information through a protocol stack to obtain the retransmission number of the data packet and the number of times that the data packet is refused to be transmitted by Wi-Fi, the Bluetooth host analyzes the two parameter indexes and judges the relationship between the corresponding number threshold and the number threshold.
And when the retransmission number of the data packets is larger than the upper limit number threshold and the number of times of refused transmission of the data packets is larger than the upper limit number threshold, determining that the audio data transmission is blocked.
And when the retransmission number of the data packets is smaller than the lower limit number threshold and the number of times of refused transmission of the data packets is smaller than the lower limit number threshold, judging that the audio data is transmitted smoothly.
The above-mentioned situations except the situation of the blocking and the fluent transmission can be regarded as the normal transmission of the audio data.
And when the existence of the clamping is detected, continuing to judge the transmission stability of the audio data. When smooth transmission is detected, the transmission stability of the audio data is better, and bandwidth resources in the frequency band may be more abundant. Therefore, the encoder issues a command downwards to increase the coding rate of the audio data so as to improve the transmission quality of the audio data.
The embodiment of the application does not limit the specific values of the upper limit number threshold, the lower limit number threshold, the upper limit number threshold and the lower limit number threshold, and can be set by technicians according to actual demands. For example, in some alternative embodiments, the upper number threshold may be set to any of 300 to 500 and the lower number threshold may be set to any of 50 to 200. The upper-limit number of times threshold may be set to any one value of 200 to 400, and the lower-limit number of times threshold may be set to any one value of 50 to 100.
S306, if the Bluetooth host receives the detection result that Wi-Fi and Bluetooth have frequency band crowding and detects that the jamming condition is jamming, a command is issued to the encoder to reduce the encoding rate of audio data.
In the embodiment of the application, the situation that the wireless communication mode in the same frequency band has frequency band crowding, so that the target communication mode in the wireless communication mode has clamping on the transmission of the multimedia data and the transmission stability is poor is called coexistence clamping. When determining that coexistence is blocked currently, the Bluetooth host sends a command to the encoder to reduce the encoding rate of the audio data in order to improve the stability of audio data transmission.
S307, the encoder determines the encoding rate of the audio data according to the received command sent by the Bluetooth host. If the command is to reduce the coding rate of the audio data, the current coding rate of the audio data is reduced by one gear. If the command is to maintain the coding rate of the audio data, the current coding rate of the audio data will be maintained. If the command is to increase the coding rate of the audio data, the current coding rate of the audio data is increased by one gear.
And S308, the encoder encodes the audio data sent by the Bluetooth audio interface according to the determined encoding code rate, and sends the encoded audio data to the Bluetooth firmware.
After receiving the command issued by the Bluetooth host, the encoder determines whether to adjust the coding rate of the audio data according to specific command requirements, and if so, how to adjust the coding rate of the audio data.
It should be noted that, the embodiment of the application does not limit too much the coding and decoding schemes adopted by the mobile terminal and the bluetooth headset, and can support coding and decoding schemes with various coding rates. Including but not limited to, for example: SBC, AAC, APTX and LDAC, etc. The embodiment of the application takes an LDAC coding and decoding scheme as an example, and an encoder is an LDAC encoder for explanation:
The LDAC coding scheme supports a total of three-level code rates of 330kbps, 660kbps and 990kbps. In order to realize lossless compression of audio data, a bluetooth headset supporting an LDAC codec scheme often uses a 990kbps code rate to perform data encoding, and the required bandwidth is 990KB. When Wi-Fi transmission data volume is great, because 2.4GHz frequency band bandwidth is limited, the bandwidth that remains for bluetooth sometimes is less than 990KB, and the condition of transmission blocking of a time slot transmission is incomplete to the audio data of bluetooth at this moment.
In S307, according to the case where the LDAC encoder currently uses the coding rate, there may be several operations:
when the received command is to reduce the coding rate of the audio data. If a 990kbps code rate is currently used, the code rate is adjusted to 660kbps. If a 660kbps code rate is currently used, the code rate is adjusted to 330kbps.
When the received command is to increase the coding rate of the audio data. If a 660kbps code rate is currently used, the code rate is adjusted to 990kbps. If a 330kbps code rate is currently used, the code rate is adjusted to 660kbps.
When the received command is to maintain the coding rate of the audio data. The current coding rate is not required.
After determining the coding rate to be used, the encoder encodes the audio data by adopting the coding rate and transmits the audio data to the Bluetooth firmware.
S309, the Bluetooth firmware sends the received encoded audio data to the Bluetooth headset.
And the Bluetooth headset decodes and plays the audio according to the received audio data.
In the embodiment of the application, the audio data coding rate corresponding to Bluetooth is dynamically adjusted. On one hand, the method can reduce the requirement of audio data transmission on frequency band bandwidth under the condition of coexistence of cartoon and code rate, thereby improving the stability of audio data transmission. On the other hand, the coding rate can be improved during smooth transmission, so that the frequency band bandwidth resource is fully utilized, and the audio data transmission quality is improved. In addition, the current coding rate is kept during normal transmission, so that the situation that the quality of the transmitted audio data is unstable and the user experience is poor due to frequent adjustment of the coding rate is prevented. Therefore, the embodiment of the application can effectively realize the stable and relatively high-quality transmission of the Bluetooth to the audio data under the condition of the interference of Wi-Fi transmission in the same frequency band.
As a further embodiment of the present application, when the above-described respective method embodiments are applied, the operations of the terminal device may include:
S401, the terminal equipment transmits audio data to the Bluetooth equipment through Bluetooth based on the first code rate.
The first code rate is a code rate used by the terminal equipment in real time. The terminal device encodes the audio data through the first code rate and sends the encoded audio data to the Bluetooth device (namely the receiving end in the embodiment of the application) through Bluetooth. The bluetooth device is a generic term for electronic devices with bluetooth functions, and may be a bluetooth headset, a bluetooth sound box, etc. in practical application.
S402, in the process of transmitting audio data through Bluetooth, the terminal equipment transmits the data through Wi-Fi of a 2.4GHz frequency band.
S403, the terminal equipment detects that Bluetooth fails to transmit audio data due to Wi-Fi.
In the embodiment of the application, the hardware modules of the terminal equipment for Bluetooth and Wi-Fi can be mutually independent or can be the same module. For example, one wireless communication module may be used to support both bluetooth and Wi-Fi. Taking a single wireless communication module to support both bluetooth and Wi-Fi as an example. When the Wi-Fi has larger data volume transmitted in the 2.4GHz frequency band, the wireless communication module can not send Bluetooth to transmit audio data. The wireless communication module can also report the terminal equipment at this time, and Bluetooth is refused to transmit audio data by Wi-Fi at this time. The terminal device can determine that Bluetooth fails to transmit audio data due to Wi-Fi. For example, in some embodiments, the Wi-Fi reject transmission number of the data packet of the audio data may be parsed from the log_id_stats_act_conn information, and when the Wi-Fi reject transmission number is greater, it is determined that bluetooth fails to transmit the audio data due to Wi-Fi.
And S404, the terminal equipment transmits the audio data to the Bluetooth equipment through Bluetooth based on the second code rate. Wherein the second code rate is lower than the first code rate.
After determining that the audio data required to be transmitted by Bluetooth is refused to be transmitted by Wi-Fi, the transmission fails. The terminal device may reduce the coding rate for the audio data and retransmit the audio data. The specific value of the second code rate is not limited herein, and is smaller than the first code rate.
In practical application, a technician can grasp the air interface of the terminal equipment and the Bluetooth equipment in the process of transmitting the audio data by the terminal equipment, and analyze the encoding rate of the audio data used by the Bluetooth. For example, in some usage scenarios, hci log and other information may be captured, and the audio data encoding rate used by bluetooth may be determined from the captured hci log and other information, so as to determine the first and second actually used rates.
Fig. 8 is a schematic structural diagram of a data transmission device according to an embodiment of the present application, corresponding to the data transmission method described in the foregoing embodiments, and for convenience of explanation, only the portions related to the embodiments of the present application are shown.
Corresponding to fig. 3 to 7, referring to fig. 8, the data transmission apparatus includes:
The congestion detection module 81 is configured to detect, when the terminal device uses the same frequency communication mode as the communication frequency band of the target communication mode in the process of transmitting the multimedia data by using the target communication mode, a data transmission congestion condition of the target communication mode and the same frequency communication mode: the target communication mode and the same-frequency communication mode are both wireless communication modes.
The jamming detection module 82 is configured to detect a jamming condition of the target communication mode on the transmission of the multimedia data in a process that the terminal device uses the target communication mode to transmit the multimedia data:
the code rate adjusting module 83 is configured to reduce the code rate of encoding the multimedia data when the data transmission congestion condition is detected to be that there is data transmission congestion and the jamming condition is that there is jamming.
The code transmission module 84 is configured to encode the multimedia data based on the reduced code rate, and transmit the encoded multimedia data using the target communication mode.
As an alternative embodiment of the present application, the congestion detection module 81 is specifically configured to:
and acquiring the data transmission task quantity of the same-frequency communication mode, and detecting the data transmission congestion condition of the target communication mode and the same-frequency communication mode according to the data transmission task quantity and a preset task quantity threshold.
As an alternative embodiment of the present application, the click-on detection module 82 includes:
and the parameter acquisition module is used for acquiring the retransmission number of the data packet of the multimedia data and refusing the transmission times of the data packet in the same-frequency communication mode.
And the clamping and detecting sub-module is used for detecting the clamping and stopping condition of the target communication mode on the transmission of the multimedia data according to the acquired retransmission number of the data packets and the transmission times of the data packets in the same-frequency communication mode.
As an alternative embodiment of the present application, the katon detection submodule is specifically configured to:
and when the retransmission number of the data packets is larger than a preset upper limit number threshold, and the transmission refusing times of the data packets by the same-frequency communication mode is larger than a preset upper limit number threshold, judging that the jamming condition of the target communication mode on the multimedia data transmission is that jamming exists.
As an alternative embodiment of the present application, the code rate adjustment module 83 is further configured to:
and when the blocking condition is detected to be no blocking, the coding rate of the multimedia data is improved.
The code transmission module 84 is further configured to encode the multimedia data based on the increased code rate, and transmit the encoded multimedia data using the target communication mode.
As an alternative embodiment of the present application, the code rate adjustment module 83 is further configured to:
and when the blocking condition is detected to be normal transmission, the currently used coding rate is kept.
The code transmission module 84 is further configured to encode the multimedia data based on the currently used code rate, and transmit the encoded multimedia data using the target communication mode.
As an alternative embodiment of the application, the target communication mode is Bluetooth in the 2.4GHz frequency band, and the same-frequency communication mode is Wi-Fi in the 2.4GHz frequency band.
The parameter acquisition module is specifically configured to:
and acquiring LOG_ID_STATS_ACT_CONN information, and analyzing the number of retransmission of the data packet of the multimedia data and the number of transmission refusal of the Wi-Fi of the data packet from the LOG_ID_STATS_ACT_CONN information.
The process of implementing respective functions by each module in the two data transmission devices provided in the embodiments of the present application may refer to the foregoing embodiments shown in fig. 3 to fig. 7 and descriptions of other related method embodiments, which are not repeated herein.
It should be noted that, because the content of information interaction and execution process between the above devices/units is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present application.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in the present description and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
Furthermore, the terms "first," "second," "third," and the like in the description of the present specification and in the appended claims, are used for distinguishing between descriptions and not necessarily for indicating or implying a relative importance. It will also be understood that, although the terms "first," "second," etc. may be used herein in some embodiments of the application to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another element. For example, a first table may be named a second table, and similarly, a second table may be named a first table without departing from the scope of the various described embodiments. The first table and the second table are both tables, but they are not the same table.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
By way of example, but not limitation, when the terminal device is a wearable device, the wearable device may also be a generic name for applying wearable technology to intelligently design daily wear, developing wearable devices, such as glasses, gloves, watches, apparel, shoes, and the like. The wearable device is a portable device that is worn directly on the body or integrated into the clothing or accessories of the user. The wearable device is not only a hardware device, but also can realize a powerful function through software support, data interaction and cloud interaction. The generalized wearable intelligent device comprises full functions, large size, and complete or partial functions which can be realized independent of a smart phone, such as a smart watch or a smart glasses, and is only focused on certain application functions, and needs to be matched with other devices such as the smart phone for use, such as various smart bracelets, smart jewelry and the like for physical sign monitoring.
Fig. 9 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 9, the terminal device 9 of this embodiment includes: at least one processor 90 (only one is shown in fig. 9), a memory 91, said memory 91 having stored therein a computer program 92 executable on said processor 90. The processor 90, when executing the computer program 92, implements the steps of the various data transmission method embodiments described above, such as steps S101 to S109 shown in fig. 3. Alternatively, the processor 90, when executing the computer program 92, performs the functions of the modules/units of the apparatus embodiments described above, such as the functions of the modules 82-84 shown in fig. 8.
The terminal device 9 may be a computing device such as a desktop computer, a notebook computer, a palm computer, a cloud server, etc. The terminal device may include, but is not limited to, a processor 90, a memory 91. It will be appreciated by those skilled in the art that fig. 9 is merely an example of the terminal device 9 and does not constitute a limitation of the terminal device 9, and may include more or less components than illustrated, or may combine certain components, or different components, e.g., the terminal device may further include an input transmitting device, a network access device, a bus, etc.
The processor 90 may be a central processing unit (Central Processing Unit, CPU), other general purpose processor, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 91 may in some embodiments be an internal storage unit of the terminal device 9, such as a hard disk or a memory of the terminal device 9. The memory 91 may also be an external storage device of the terminal device 9, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the terminal device 9. Further, the memory 91 may also include both an internal storage unit and an external storage device of the terminal device 9. The memory 91 is used for storing an operating system, application programs, boot loader (BootLoader), data, other programs, etc., such as program codes of the computer program. The memory 91 may also be used for temporarily storing data that has been transmitted or is to be transmitted.
In addition, it will be clearly understood by those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The embodiment of the application also provides a terminal device, which comprises at least one memory, at least one processor and a computer program stored in the at least one memory and capable of running on the at least one processor, wherein the processor executes the computer program to enable the terminal device to realize the steps in any of the method embodiments.
Embodiments of the present application also provide a computer readable storage medium storing a computer program which, when executed by a processor, implements steps for implementing the various method embodiments described above.
The embodiments of the present application provide a computer program product enabling a terminal device to carry out the steps of the method embodiments described above when the computer program product is run on the terminal device.
The embodiment of the application also provides a chip system, which comprises a processor, wherein the processor is coupled with a memory, and the processor executes a computer program stored in the memory to realize the steps in the embodiments of the method.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable storage medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application. The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

Claims (7)

1. The data transmission method is characterized by being applied to terminal equipment, wherein the terminal equipment comprises the following steps in the process of transmitting multimedia data by using a target communication mode:
If the terminal equipment uses the same-frequency communication mode with the same communication frequency band as the target communication mode, detecting the data transmission congestion condition of the target communication mode and the same-frequency communication mode: the target communication mode and the same-frequency communication mode are both wireless communication modes; the data transmission congestion condition means that the data quantity transmitted on the frequency band is large;
detecting the blocking condition of the target communication mode on the multimedia data transmission;
if the data transmission congestion condition is detected to be the data transmission congestion, and the jamming condition is the jamming, the coding rate of the multimedia data is reduced;
encoding the multimedia data based on the reduced encoding code rate, and transmitting the encoded multimedia data by using the target communication mode;
the detecting the data transmission congestion condition of the target communication mode and the same frequency communication mode comprises the following steps:
acquiring the data transmission task quantity of the same-frequency communication mode, and detecting the data transmission congestion condition of the target communication mode and the same-frequency communication mode according to the data transmission task quantity and a preset task quantity threshold;
The detecting the blocking condition of the target communication mode on the multimedia data transmission includes:
acquiring the retransmission number of the data packet of the multimedia data and refusing the transmission times of the data packet by the same-frequency communication mode;
detecting the blocking condition of the target communication mode on the multimedia data transmission according to the acquired retransmission number of the data packet and the transmission times of the data packet by the same-frequency communication mode;
the detecting the blocking condition of the target communication mode on the multimedia data transmission according to the obtained retransmission number of the data packet and the transmission times of the data packet by the same-frequency communication mode comprises the following steps:
and if the retransmission number of the data packet is greater than a preset upper limit number threshold, and the transmission times of the data packet refused by the same-frequency communication mode is greater than a preset upper limit number threshold, judging that the jamming condition of the target communication mode on the multimedia data transmission is the existence of jamming.
2. The data transmission method according to claim 1, further comprising, after said detecting a stuck condition of said target communication means to said multimedia data transmission:
If the blocking condition is detected to be no blocking, the coding rate of the multimedia data is improved;
and encoding the multimedia data based on the improved encoding code rate, and transmitting the encoded multimedia data by using the target communication mode.
3. The data transmission method according to claim 2, further comprising, after said detecting a stuck condition of said target communication means to said multimedia data transmission:
and if the detected blocking condition is normal transmission, encoding the multimedia data based on the currently used encoding code rate, and transmitting the encoded multimedia data by using the target communication mode.
4. The data transmission method according to claim 1, wherein the target communication mode is bluetooth in a 2.4GHz band, and the same-frequency communication mode is Wi-Fi in the 2.4GHz band;
the step of obtaining the retransmission number of the data packet of the multimedia data and the transmission times refused by the same frequency communication mode of the data packet comprises the following steps:
and acquiring LOG_ID_STATS_ACT_CONN information, and analyzing the retransmission number of the data packet of the multimedia data and the Wi-Fi refusal transmission times of the data packet from the LOG_ID_STATS_ACT_CONN information.
5. A terminal device, characterized in that it comprises a memory, a processor, on which a computer program is stored which is executable on the processor, when executing the computer program, realizing the steps of the method according to any of claims 1-4.
6. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method according to any one of claims 1 to 4.
7. A chip system comprising a processor coupled to a memory, the processor executing a computer program stored in the memory to implement the data transmission method of any of claims 1 to 4.
CN202210549669.0A 2022-05-20 2022-05-20 Data transmission method, terminal equipment, storage medium and chip system Active CN116055462B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210549669.0A CN116055462B (en) 2022-05-20 2022-05-20 Data transmission method, terminal equipment, storage medium and chip system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210549669.0A CN116055462B (en) 2022-05-20 2022-05-20 Data transmission method, terminal equipment, storage medium and chip system

Publications (2)

Publication Number Publication Date
CN116055462A CN116055462A (en) 2023-05-02
CN116055462B true CN116055462B (en) 2023-11-07

Family

ID=86117046

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210549669.0A Active CN116055462B (en) 2022-05-20 2022-05-20 Data transmission method, terminal equipment, storage medium and chip system

Country Status (1)

Country Link
CN (1) CN116055462B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109151861A (en) * 2018-08-14 2019-01-04 Oppo广东移动通信有限公司 Encoding rate method of adjustment, device and electronic equipment
CN109274813A (en) * 2018-08-14 2019-01-25 Oppo广东移动通信有限公司 Optimization of rate method, apparatus, electronic equipment and storage medium
CN113259710A (en) * 2021-06-22 2021-08-13 北京百瑞互联技术有限公司 Method, system, and medium for improving audio transmission stuck
CN113645608A (en) * 2021-10-14 2021-11-12 荣耀终端有限公司 Data transmission method and data transmission device
CN113840269A (en) * 2021-08-06 2021-12-24 深圳Tcl新技术有限公司 Multimedia data transmission method and device, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200044769A1 (en) * 2018-08-03 2020-02-06 Qualcomm Incorporated Adaptive bit rates for wi-fi and bluetooth coexistence

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109151861A (en) * 2018-08-14 2019-01-04 Oppo广东移动通信有限公司 Encoding rate method of adjustment, device and electronic equipment
CN109274813A (en) * 2018-08-14 2019-01-25 Oppo广东移动通信有限公司 Optimization of rate method, apparatus, electronic equipment and storage medium
CN113259710A (en) * 2021-06-22 2021-08-13 北京百瑞互联技术有限公司 Method, system, and medium for improving audio transmission stuck
CN113840269A (en) * 2021-08-06 2021-12-24 深圳Tcl新技术有限公司 Multimedia data transmission method and device, electronic equipment and storage medium
CN113645608A (en) * 2021-10-14 2021-11-12 荣耀终端有限公司 Data transmission method and data transmission device

Also Published As

Publication number Publication date
CN116055462A (en) 2023-05-02

Similar Documents

Publication Publication Date Title
CN114726946B (en) Method for automatically switching Bluetooth audio coding modes, electronic equipment and readable storage medium
US9838062B2 (en) Wireless headset system with two different radio protocols
RU2004107498A (en) METHOD AND DEVICE FOR SCHEDULED TRANSMISSION OF PACKET DATA IN A WIRELESS COMMUNICATION SYSTEM
CN112929972B (en) Channel adjusting method and electronic equipment
CN113330761B (en) Method for occupying equipment and electronic equipment
CN109729556B (en) Link connection method and related device
CN112020130A (en) Interference processing method and equipment
EP2541882A1 (en) Transmitting radio signals between a headset and a base station
CN115842785A (en) Outbound data transmission method and system in Beidou communication system and related devices
CA2475536A1 (en) Radio resource allocation in a radio communication network
CN113314133A (en) Audio transmission method and electronic equipment
CN109102816B (en) Encoding control method and device and electronic equipment
CN116055462B (en) Data transmission method, terminal equipment, storage medium and chip system
CN113708858A (en) Signal processing method and wireless network access equipment
CN113596919A (en) Data downloading method and device and terminal equipment
CN116709442A (en) Wireless network switching method and electronic equipment
CN113678481B (en) Wireless audio system, audio communication method and equipment
EP1804387A1 (en) Apparatus and method for discontinuous reception on a wireless network
KR20240100384A (en) Signal encoding/decoding methods, devices, user devices, network-side devices, and storage media
US9774988B1 (en) System and method for single radio multi-device communication
WO2023227791A1 (en) Method for discovering a radio communication network and filtering an audio signal allowing group communication
CN116709369A (en) Network acceleration method and electronic equipment
CN116744329A (en) Network acceleration method and electronic equipment
CN115552518A (en) Signal encoding and decoding method and device, user equipment, network side equipment and storage medium
US20040185896A1 (en) Controlled processing of audio and command data in a digital cordless telephone

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant