Data transmission method and device, chip, electronic equipment and storage medium

By detecting the experience quality indicators of the network transmission channel and switching to a channel with higher transmission quality, the problem that electronic devices cannot automatically switch to high-quality network channels when mobile or network environment changes is solved, and the user experience is improved.

CN119922626APending Publication Date: 2025-05-02GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311428820.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-30
Publication Date
2025-05-02

AI Technical Summary

Technical Problem

When electronic devices move or network environment changes, how to automatically switch to network channels with higher transmission quality to improve user experience.

Method used

By detecting whether the experience quality indicators of the current network transmission channel are abnormal, if an abnormality occurs, the target network transmission channel is determined from it based on the transmission quality of multiple network transmission channels, and switching to this channel for data transmission.

Benefits of technology

Automatic switching to network channels with higher transmission quality is realized, improving user experience and avoiding service interruptions caused by network quality fluctuations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119922626A_ABST
    Figure CN119922626A_ABST
Patent Text Reader

Abstract

The invention discloses a data transmission method and device, a chip, electronic equipment and a storage medium, the data transmission method is applied to first electronic equipment, and a plurality of network transmission channels are supported between the first electronic equipment and second electronic equipment. The method comprises the following steps: transmitting first service data with the second electronic equipment by using a first network transmission channel in the plurality of network transmission channels; in response to the abnormity of the experience quality index of the first network transmission channel, determining a target network transmission channel from the plurality of network transmission channels according to the transmission quality of the plurality of network transmission channels; and switching to transmit the first service data with the second electronic equipment through the target network transmission channel.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communication technology, and more specifically, to a data transmission method and device, a chip, an electronic device, and a storage medium. Background Art

[0002] With the development of communication technology, more and more electronic devices support multiple communication modes at the same time. However, as the electronic device moves or the network environment changes, how to automatically switch to a network channel with higher transmission quality and achieve a better user experience is a technical problem that needs to be solved urgently. Summary of the invention

[0003] The embodiments of the present application provide a data transmission method and device, a chip, an electronic device, and a storage medium. The following introduces various aspects involved in the embodiments of the present application.

[0004] In a first aspect, a data transmission method is provided, which is applied to a first electronic device, wherein multiple network transmission channels are supported between the first electronic device and a second electronic device, and the method comprises: utilizing a first network transmission channel among the multiple network transmission channels to transmit first business data to the second electronic device; in response to an abnormal experience quality indicator of the first network transmission channel, determining a target network transmission channel from the multiple network transmission channels according to the transmission quality of the multiple network transmission channels; and switching to transmit the first business data to the second electronic device through the target network transmission channel.

[0005] In a second aspect, a data transmission device is provided, which is applied to a first electronic device, and multiple network transmission channels are supported between the first electronic device and the second electronic device. The device includes: a transmission module, which is used to transmit first business data to the second electronic device using a first network transmission channel among the multiple network transmission channels; a determination module, which is used to determine a target network transmission channel from the multiple network transmission channels according to the transmission quality of the multiple network transmission channels in response to an abnormal experience quality indicator of the first network transmission channel; and a switching module, which is used to switch to transmitting the first business data to the second electronic device through the target network transmission channel.

[0006] A third aspect provides a chip, comprising: a processor, configured to call and run a computer program from a memory, so that a device equipped with the chip executes the method as described in the first aspect.

[0007] In a fourth aspect, an electronic device is provided, comprising a processor, a memory and a transceiver, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to control the terminal device to execute the method described in the first aspect.

[0008] According to a fifth aspect, a computer-readable storage medium is provided, on which executable code is stored. When the executable code is executed, the method described in the first aspect can be implemented.

[0009] The embodiment of the present application provides a data transmission method, which is applied to a first electronic device, and multiple network transmission channels are supported between the first electronic device and the second electronic device. The method includes: using a first network transmission channel among the multiple network transmission channels to transmit first service data with the second electronic device; in response to an abnormal experience quality indicator of the first network transmission channel, determining a target network transmission channel from the multiple network transmission channels according to the transmission quality of the multiple network transmission channels; switching to transmit the first service data with the second electronic device through the target network transmission channel. This solution does not always detect the switching network transmission channel, but first determines whether the experience quality indicator of the current network transmission channel is abnormal, and only switches the network transmission channel in response to an abnormal experience quality indicator of the current network transmission channel. In the process of switching the network transmission channel, through screening, the network transmission channel with the best transmission quality can be selected from the multiple network transmission channels currently supported by the first electronic device as the target network transmission channel for switching. Therefore, the solution of the embodiment of the present application can not only automatically switch to a network transmission channel with higher transmission quality, but also achieve a better user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 It is a flowchart of a data transmission method provided in one embodiment of the present application.

[0011] Figure 2 It is a schematic diagram of a data transmission communication architecture provided by an embodiment of the present application.

[0012] Figure 3 It is a schematic diagram of a data transmission communication architecture provided by another embodiment of the present application.

[0013] Figure 4 It is a structural diagram of a switching device for a network transmission channel provided in one embodiment of the present application.

[0014] Figure 5 It is a schematic diagram of the audio frame transmission process provided by an embodiment of the present application.

[0015] Figure 6 This is a flow chart of a method for determining a target network transmission channel provided by an embodiment of the present application.

[0016] Figure 7 It is a schematic diagram of a channel switching architecture of a network transmission channel provided in an embodiment of the present application.

[0017] Figure 8 It is a schematic diagram of a system architecture for data transmission provided by an embodiment of the present application.

[0018] Fig. 9 It is a structural diagram of a data transmission device provided in one embodiment of the present application.

[0019] Fig.10 It is a schematic diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0020] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.

[0021] It should be noted that the electronic device in the embodiment of the present application can be a device with a data transmission function. The electronic device can be, for example: a mobile phone, a tablet computer, a laptop computer, a PDA, a mobile internet device (MID), a wearable device, a virtual reality (VR) device, an augmented reality (AR) device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, or a wireless terminal in smart home, a smart large screen, etc. This application does not make specific restrictions on this.

[0022] With the development of communication technology, more and more electronic devices support multiple communication modes at the same time. However, as the electronic device moves or the network environment changes, how to automatically switch to a network channel with higher transmission quality and achieve a better user experience is a technical problem that needs to be solved urgently.

[0023] In view of the above problems, an embodiment of the present application provides a data transmission method, which is applied to a first electronic device, and multiple network transmission channels are supported between the first electronic device and the second electronic device. The method includes: using a first network transmission channel among multiple network transmission channels to transmit first service data to the second electronic device; in response to an abnormal experience quality indicator of the first network transmission channel, determining a target network transmission channel from multiple network transmission channels according to the transmission quality of multiple network transmission channels; switching to transmit the first service data to the second electronic device through the target network transmission channel. This solution does not always detect the switching network transmission channel, but first determines whether the experience quality indicator of the current network transmission channel is abnormal, and only switches the network transmission channel in response to an abnormal experience quality indicator of the current network transmission channel. In the process of switching the network transmission channel, through screening, the network transmission channel with the best transmission quality can be selected from the multiple network transmission channels currently supported by the first electronic device as the target network transmission channel for switching. Therefore, the solution of the embodiment of the present application can not only automatically switch to a network transmission channel with higher transmission quality, but also achieve a better user experience.

[0024] It should be noted that the data transmission method in the embodiment of the present application can be applied to data transmission between two electronic devices. The two electronic devices may include a first electronic device and a second electronic device. The first electronic device and the second electronic device may be any type of electronic device mentioned above. The first electronic device may be, for example, a mobile phone, and the second electronic device may be, for example, a tablet computer. The present application does not impose any specific restrictions on this.

[0025] In the embodiment of the present application, the first electronic device is the peer device of the second electronic device, and the second electronic device is also the peer device of the first electronic device. The role of the first electronic device and the role of the second electronic device can be interchangeable. The following mainly describes the data transmission method in the embodiment of the present application from the perspective of the first electronic device.

[0026] It should be noted that the first electronic device and the second electronic device in the embodiment of the present application can both support multiple network communications, which can be wireless local area network communications or external network (also called data network) communications.

[0027] When the multiple network communications are wireless local area network communications, the multiple network communications include at least two of the following network communications: Bluetooth (BT) communication, P2P (peer-to-peer) communication, and WLAN communication. When the multiple network communications are external networks, the multiple network communications include at least two of the following network communications: Wi-Fi communication, and multiple cellular network communications. The embodiments of the present application do not specifically limit the types of multiple cellular network communications. The multiple cellular network communications can be, for example, communications of different standards (such as 4G, 5G, etc.), or cellular network communications of different manufacturers (such as China Mobile, China Unicom, China Telecom, etc.).

[0028] It should be noted that, based on the above-mentioned multiple network communications, multiple network transmission channels can be supported between the first electronic device and the second electronic device, and further, multiple network transmission channels can be established between the first electronic device and the second electronic device. The multiple network transmission channels correspond one-to-one to the multiple network communications. As an example, if the current network communication is BT network communication, the network transmission channel established based on BT network communication is the BT network transmission channel. As another example, if the current network communication is Wi-Fi network communication, the network transmission channel established based on Wi-Fi network communication is the Wi-Fi network transmission channel.

[0029] Combined with the following Figure 1 The data transmission method in the embodiment of the present application is described in detail. The data transmission method is applied to a first electronic device. Figure 1 As shown, the data transmission method may include steps: S110 to S130.

[0030] In step S110, a first service number is transmitted to a second electronic device via a first network transmission channel among a plurality of network transmission channels.

[0031] The first network transmission channel may refer to any one of a plurality of network transmission channels. The first network transmission channel may be, for example, a BT network transmission channel or a Wi-Fi network transmission channel.

[0032] It can be understood that before using the first network transmission channel to transmit the first business number with the second electronic device, it also includes: determining the first network transmission channel from multiple network transmission channels, and the first network transmission channel is the transmission channel with the best transmission quality among the multiple network transmission channels. Of course, as the environment changes, the transmission quality of the first network transmission channel will also change. When the first network transmission channel is abnormal, the network channel can be switched according to the network channel switching method in the embodiment of the present application, which will not be repeated here.

[0033] The first service data may be any type of data for interaction between the first electronic device and the second electronic device. The first service data may be upper layer application data, such as voice call data, phone data, video data, game data, etc., and this application does not impose any specific restrictions on this.

[0034] In step S120, in response to the experience quality indicator of the first network transmission channel being abnormal, a target network transmission channel is determined from the multiple network transmission channels according to the transmission qualities of the multiple network transmission channels.

[0035] In some embodiments, multiple network transmission channels can be first established with the second electronic device; then, the transmission quality of the multiple network transmission channels is evaluated; in response to an abnormal quality of experience (QoE) indicator of the first network transmission channel, a target network transmission channel is determined from the multiple network transmission channels based on the transmission quality evaluation results of the multiple network transmission channels.

[0036] In some embodiments, the transmission quality of multiple network transmission channels is evaluated, including: evaluating the transmission quality of multiple network transmission channels according to a first parameter; the first parameter includes one or more of the following parameters: transmission delay (round trip time, RTT) of the network transmission channel, standard deviation of the transmission delay of the network transmission channel (RTT standard deviation), link layer retransmission rate, load of the network transmission channel, available bandwidth of the network transmission channel, and packet loss rate of the network transmission channel.

[0037] It should be noted that the transmission delay of the network transmission channel in the embodiment of the present application may also be referred to as the transmission round trip time. The transmission delay of the network transmission channel may refer to the minimum transmission delay of the detection data packet in the network transmission channel within a period of time, or may refer to the maximum transmission delay of the detection data packet in the network transmission channel within a period of time, or may refer to the average transmission delay of the detection data packet in the network transmission channel within a period of time, and the present application does not make specific restrictions on this.

[0038] It should be noted that the packet loss rate of a network transmission channel may refer to the packet loss rate of detection data packets in the network transmission channel within a single collection cycle. Of course, the packet loss rate of a network transmission channel may also refer to the minimum packet loss rate of detection data packets in the network transmission channel within multiple collection cycles, or the packet loss rate of a network transmission channel may also refer to the maximum packet loss rate of detection data packets in the network transmission channel within multiple collection cycles, or the packet loss rate of a network transmission channel may also refer to the average packet loss rate of detection data packets in the network transmission channel within multiple collection cycles. Similarly, the load of a network transmission channel may refer to the load of a network transmission channel within a single collection cycle, or may refer to the maximum load, minimum load or average load of a network transmission channel within multiple collection cycles, which will not be elaborated here.

[0039] In some embodiments, the transmission quality of multiple network transmission channels is evaluated based on a first parameter, including: sending detection packets to the multiple network transmission channels; determining detection values ​​of the first parameters of the multiple network transmission channels based on the detection packets; and evaluating the transmission quality of the multiple network transmission channels based on the detection values ​​of the first parameters of the multiple network transmission channels.

[0040] In some embodiments, based on the transmission quality evaluation results of multiple network transmission channels, a target network transmission channel is determined from multiple network transmission channels, including: based on a second parameter, determining a target available network transmission channel from multiple network transmission channels; determining the target network transmission channel from the target available network transmission channels; wherein the second parameter includes one or more of the following parameters: transmission delay of the network transmission channel, standard deviation of the transmission delay of the network transmission channel, link layer retransmission rate, packet loss rate of the network transmission channel.

[0041] It should be noted that the target available network transmission channel may include one or more available network transmission channels. The available network transmission channel in the embodiment of the present application may refer to one or more network transmission channels successfully established between the first electronic device and the second electronic device. The target available network transmission channel in the embodiment of the present application may refer to a network transmission channel whose transmission delay is less than a preset delay threshold, or a network transmission channel whose transmission packet loss rate is less than a preset packet loss rate threshold. Of course, it can also be comprehensively judged based on the above multiple conditions, and the present application does not make specific restrictions on this.

[0042] As an example, a plurality of network transmission channels successfully established between the first electronic device and the second electronic device may be selected with an average RTT of [RTT min ,RTT min + preset RTT threshold] as the target available network transmission channel. minIt may refer to the minimum average RTT of the network transmission channel. The unit of RTT is milliseconds. The preset RTT threshold may be set to 90ms.

[0043] In step S130, the first service data is transmitted to the second electronic device through the target network transmission channel.

[0044] According to the above description, it can be seen that this solution does not detect and switch the network transmission channel at all times, but first determines whether the experience quality indicator of the current network transmission channel is abnormal, and switches the network transmission channel in response to the abnormality of the experience quality indicator of the current network transmission channel. In the process of switching the network transmission channel, through screening, the network transmission channel with the best transmission quality can be selected from the multiple network transmission channels currently supported by the first electronic device as the target network transmission channel for switching. Therefore, the solution of the embodiment of the present application can not only automatically switch to a network transmission channel with higher transmission quality, but also achieve a better user experience.

[0045] In some embodiments, in response to an abnormal experience quality indicator of the first network transmission channel, before determining a target network transmission channel from multiple network transmission channels based on the transmission qualities of the multiple network transmission channels, it also includes: determining whether the experience quality indicator of the first network transmission channel is abnormal.

[0046] In some embodiments, determining whether the experience quality indicator of the first network transmission channel is abnormal includes: in response to a preset condition being met, determining that the experience quality indicator of the first network transmission channel is abnormal; the preset condition includes one or more of the following conditions: the transmission delay of the first network transmission channel is greater than a third threshold; the packet loss rate of the first network transmission channel is greater than a fourth threshold; the stretch rate of the first network transmission channel is greater than a fifth threshold; the jam rate of the first network transmission channel is greater than a sixth threshold. Among them, the third threshold, the fourth threshold, the fifth threshold, and the sixth threshold can all be set according to requirements, and this application does not impose specific restrictions on this.

[0047] In some embodiments, the first service data is audio data, and determining whether the experience quality indicator of the first network transmission channel is abnormal includes: in response to the stretching rate of the first network transmission channel being greater than a fifth threshold and / or the jamming rate of the first network transmission channel being greater than a sixth threshold, determining that the experience quality of the first network transmission channel is abnormal. The stretching rate and the jamming rate will be described in detail below and will not be described in detail here.

[0048] In some embodiments, during the process of determining the target network transmission channel, if the target available network transmission channel includes an available network transmission channel, the target available network transmission channel may be determined as the target network transmission channel.

[0049] In some embodiments, if the target available network transmission channel includes multiple available network transmission channels, the transmission delay standard deviations of the multiple available network transmission channels can be obtained first; then, a first available network transmission channel and a second available network transmission channel are determined from the multiple available network transmission channels; if the ratio between the transmission delay standard deviation of the first available network transmission channel and the transmission delay standard deviation of the second available network transmission channel is less than a first threshold, the first available network transmission channel is determined to be the target network transmission channel; wherein the first available network transmission channel and the second available network transmission channel are the two transmission channels with the smallest transmission delay standard deviation among the multiple available network transmission channels, and the transmission delay standard deviation of the first available network transmission channel is less than the transmission delay standard deviation of the second available network transmission channel.

[0050] That is, two network transmission channels with the smallest transmission delay standard deviation can be selected first, and then the smallest transmission standard deviation is compared with the second smallest transmission standard deviation. If the ratio is less than the first threshold, the network transmission channel with the smallest transmission delay standard deviation can be determined as the target network transmission channel. The first threshold can be set according to demand, and the first threshold can be set to 0.5, for example.

[0051] In some embodiments, the target available network transmission channel includes multiple available network transmission channels, and determining the target network transmission channel from the target available network transmission channels includes: obtaining link layer retransmission rates of the multiple available network transmission channels; determining a third available network transmission channel and a fourth available network transmission channel from the multiple available network transmission channels; if the ratio between the link layer retransmission rate of the third available network transmission channel and the link layer retransmission rate of the fourth available network transmission channel is less than a second threshold, determining the third available network transmission channel as the target network transmission channel; wherein the third available network transmission channel and the fourth available network transmission channel are the two transmission channels with the smallest link layer retransmission rates among the multiple available network transmission channels, and the link layer retransmission rate of the third available network transmission channel is less than the link layer retransmission rate of the fourth available network transmission channel.

[0052] That is to say, two network transmission channels with the smallest link layer retransmission rate can be selected first, and then the smallest link layer retransmission rate is compared with the second smallest link layer retransmission rate. If the ratio is less than the second threshold, the network transmission channel with the smallest link layer retransmission rate can be determined as the target network transmission channel. The second threshold can be set according to demand, and the second threshold can be set to 0.5, for example.

[0053] It should be noted that the first available network transmission channel and the second available network transmission channel are two available network transmission channels selected from multiple available network transmission channels according to the standard deviation of the transmission delay; the third available network transmission channel and the fourth available network transmission channel are two available network transmission channels selected from multiple available network transmission channels according to the link layer retransmission rate. The first available network transmission channel and the second available network transmission channel may be the same as or partially the same as the third available network transmission channel and the fourth available network transmission channel. Of course, the first available network transmission channel and the second available network transmission channel may also be completely different from the third available network transmission channel and the fourth available network transmission channel.

[0054] In some embodiments, the target available network transmission channel includes N available network transmission channels, and determining the target network transmission channel from the target available network transmission channels includes: sorting the N available network transmission channels according to the order of the monitored values ​​of each parameter in the second parameter from large to small, and obtaining a priority list of N available network transmission channels; obtaining the cumulative score of each available network transmission channel in the N available network transmission channels, wherein the queue number in each priority list of the N available network transmission channels is the score of each available network transmission channel; and determining the target network transmission channel from the N available network transmission channels, wherein the target network transmission channel is the transmission channel with the highest cumulative score among the N available network transmission channels. N is a positive integer greater than 1.

[0055] That is to say, the N available network transmission channels can be sorted according to the test values ​​of different parameters (such as transmission delay standard deviation, link layer retransmission rate, etc.), and the sorting sequence number is the score of the current network transmission channel. Then, the scores of the N available network transmission channels under different evaluation rules are accumulated to obtain the cumulative points of multiple available network transmission channels. Further, the available network transmission channel with the highest cumulative points is determined as the target network transmission channel. Among them, the largest parameter value of the second parameter represents the worst quality of the Netcom transmission channel, which is ranked first; the smallest parameter value of the second parameter represents the best quality of the Netcom transmission channel, which is ranked last.

[0056] As an example, if N available network transmission channels include BT network transmission channels, P2P network transmission channels, and WLAN network transmission channels, the network transmission channels are sorted in descending order according to the transmission delay standard deviation values, and the sorting priority list is: 1#BT network transmission channel (largest transmission delay standard deviation value, 1 point) > 2#P2P network transmission channel (2 points) > 3#WLAN network transmission channel (smallest transmission delay standard deviation value, 3 points).

[0057] It should be noted that if the final accumulated points of the BT network transmission channel, P2P network transmission channel and WLAN network transmission channel are the same, then according to the stability of communication, they can be selected in the priority order of WLAN network transmission channel > P2P network transmission channel > BT network transmission channel.

[0058] In some embodiments, if the target available network transmission channel includes multiple available network transmission channels, the average transmission delay (average RTT) of the multiple available network transmission channels may be obtained first; then, the average RTT is selected within [RTT min ,RTT min + preset RTT threshold] between the network transmission channels, and obtain one or more available network transmission channels, where RTT min The minimum average RTT is in milliseconds. The preset RTT threshold can be set to 90ms.

[0059] Furthermore, if there is only one available network transmission channel, the network transmission channel may be selected as the target network transmission channel.

[0060] Further, if there are multiple available network transmission channels, the transmission delay (RTT) standard deviation of the multiple available network transmission channels can be calculated, and two network transmission channels with the smallest RTT standard deviations (such as the first available network transmission channel and the second available network transmission channel) are selected. If the ratio between the RTT standard deviation of the first available network transmission channel and the RTT standard deviation of the second available network transmission channel is less than a first threshold, the first available network transmission channel is determined to be the target network transmission channel; wherein the RTT standard deviation of the first available network transmission channel is less than the RTT standard deviation of the second available network transmission channel. In some embodiments, the first threshold can be set to 0.5, for example.

[0061] Further, if the ratio between the RTT standard deviation of the first available network transmission channel and the RTT standard deviation of the second available network transmission channel is greater than or equal to the first threshold, the link layer retransmission rate of multiple available network transmission channels is obtained; two network transmission channels with the smallest link layer retransmission rate are selected from multiple available network transmission channels (such as the third available network transmission channel and the fourth available network transmission channel); if the ratio between the link layer retransmission rate of the third available network transmission channel and the link layer retransmission rate of the fourth available network transmission channel is less than the second threshold, the third available network transmission channel is determined to be the target network transmission channel; wherein the link layer retransmission rate of the third available network transmission channel is less than the link layer retransmission rate of the fourth available network transmission channel. It should be understood that if the link layer retransmission rate cannot be obtained, the packet loss rate can be used instead to implement the above judgment method. If the RTT of the data packet is greater than λ*average RTT, it can be considered that the data packet is lost, and the packet loss rate can be counted, where λ is the standard deviation coefficient, and λ can be set to 3, for example. Of course, other methods can also be used to obtain the packet loss rate, and this application does not make specific restrictions on this. In some embodiments, the second threshold may be set to 0.5, for example.

[0062] Further, if the ratio of the link layer retransmission rate of the third available network transmission channel to the link layer retransmission rate of the fourth available network transmission channel is greater than or equal to the second threshold, then the multiple available network transmission channels are scored, and the multiple available network transmission channels may be N available network transmission channels, and the scoring method includes: sorting the N available network transmission channels in descending order of the monitored values ​​of each parameter in the second parameter to obtain a priority list of N available network transmission channels; obtaining the cumulative score of each available network transmission channel in the N available network transmission channels, wherein the queue number in each priority list of the N available network transmission channels is the score of each available network transmission channel (in each priority list of the available network transmission channels, each available network transmission channel can accumulate 1 point at the worst and N points at the best); determining the target network transmission channel from the N available network transmission channels, and the target network transmission channel is the transmission channel with the highest cumulative score among the N available network transmission channels. N is a positive integer greater than 1. It should be understood that the largest parameter value (such as average RTT, RTT standard deviation, link layer retransmission rate, etc.) represents the worst quality of Netcom transmission channel, which is ranked first; the smallest parameter value represents the best quality of Netcom transmission channel, which is ranked Nth.

[0063] In order to deepen the understanding of the data transmission method in this application, Figure 2 and Figure 3 An example is given to illustrate the communication architecture of data transmission. Figure 2 A schematic diagram of a possible data transmission communication architecture provided in an embodiment of the present application.

[0064] like Figure 2 As shown, the communication architecture may include a first electronic device 210, a second electronic device 220, and a third electronic device 230. Data can be exchanged between the first electronic device 210, the second electronic device 220, and the third electronic device 230. It should be understood that the first electronic device 210, the second electronic device 220, and the third electronic device 230 can be any type of electronic device mentioned above. The following mainly stands from the perspective of the first electronic device 210, taking a family video call as an example, to illustrate the data exchange process.

[0065] The user can transmit media data through the media data channel between the first electronic device 210 and the electronic devices of his family members (the second electronic device 220 and the third electronic device 230), and transmit control signaling through the signaling control channel, thereby realizing the video call function.

[0066] In some embodiments, the communication architecture may further include a far-field selective forwarding unit (SFU) server 240 and a far-field signaling server 250. The far-field SFU server 240 may forward media data sent by the first electronic device 210 to the second electronic device 220 and the third electronic device 230, respectively. The far-field SFU server 240 may receive media data sent by the second electronic device 220 and the third electronic device 230, and forward the received media data to the first electronic device 210. Similarly, the far-field signaling server 250 may forward control signaling sent by the first electronic device 210 to the second electronic device 220 and the third electronic device 230, respectively. The far-field signaling server 250 may receive control signaling sent by the second electronic device 220 and the third electronic device 230, and forward the received control signaling to the first electronic device 210.

[0067] In some embodiments, the communication architecture may further include a smart TV 260 and a smart speaker 270. In order to improve the user experience, the first electronic device 210 may be connected to the smart TV 260 via a local area network to realize the functions of local video capture and peer video display; the first electronic device 210 may also be connected to the smart speaker 270 via a local area network to realize the functions of voice playback and recording.

[0068] It should be noted that the first electronic device 210 may also include a near-field signaling server 211 , and the first electronic device 210 may perform control signaling interaction with the smart TV 260 and the smart speaker 270 through the near-field signaling server 211 .

[0069] Figure 3A schematic diagram of another possible data transmission communication architecture provided in an embodiment of the present application. Figure 3 As shown, the electronic device may include an electronic device 310, an electronic device 320, an electronic device 330 and a far-field SFU server 340. The electronic device 310 may include a near-field transmission module 311, an SDK framework layer 312, and a far-field transmission module 313; the electronic device 320 may include a far-field transmission module 321; and the electronic device 330 may include a near-field transmission module 331. In some embodiments, the electronic device 310 may be a smart phone or a tablet computer, the electronic device 320 may be a smart phone or a tablet computer, and the electronic device 330 may be a smart TV or a smart speaker. Figure 3 The data transmission process of the data transmission communication architecture is illustrated with an example.

[0070] In some embodiments, media data transmission can be performed between the far-field transmission module 313 and the far-field transmission module 321 through the far-field SFU server 340, so that far-field communication between the electronic device 310 and the electronic device 320 can be realized. Media data transmission can be performed between the near-field transmission module 311 and the near-field transmission module 331, so that near-field communication between the electronic device 310 and the electronic device 330 can be realized. The near-field transmission module 311 inside the electronic device 310 can perform media data transmission between the far-field transmission module 313 through the SDK framework layer 312. It can be understood that if there are multiple electronic devices 330, multiple near-field transmission module instances corresponding to the multiple electronic devices 330 will be established in the electronic device 310. If there are multiple electronic devices 320, one far-field transmission module 313 is still required.

[0071] In order to deepen the understanding of the data transmission method mentioned above, the following takes multiple near-field network transmission channels as an example. Figure 4 The method for switching the network transmission channel is described in detail by way of example. The multiple near field network communications may include BT communication, P2P communication, and WLAN communication.

[0072] Figure 4 A schematic diagram of a possible switching device for a network transmission channel provided in an embodiment of the present application. Figure 4 As shown, the device includes a network transmission channel abnormality reporting module 410, a network transmission channel detection module 420, a network transmission channel scoring module 430 and a network transmission channel switching module 440.

[0073] The network transmission channel abnormality reporting module 410 will report to the network transmission channel scoring module 430 when the quality of the current network transmission channel deteriorates and is about to affect the user experience, so that it can switch to a better network transmission channel in time. The network transmission channel detection module 420 will provide the network transmission channel scoring module 430 with the channel quality information of all current network transmission channels to score all network transmission channels including the currently used network and select the optimal network transmission channel; finally, the network transmission channel switching module 440 is responsible for the actual switching process and completes the scheduling and use of the entire system resources to achieve a switching time of 10ms, and will not cause fluctuations in user experience due to the process time of the switching process.

[0074] By developing appropriate quality of service (QoE) indicators, we can provide feedback on the real user experience. The network transmission channel currently in use will continuously monitor whether its QoE indicator exceeds the threshold. If it exceeds the threshold, it means that the current user experience is affected and it is necessary to switch to a better network to improve the user experience. The following takes the transmission of audio data as an example to illustrate the abnormal QoE indicator situation.

[0075] In the process of transmitting audio data using a network transmission channel, the QoE indicator can be set as the stretching rate of the network transmission channel and the jamming rate of the network transmission channel.

[0076] The stretch rate may refer to the sum of lost audio data and simulated audio data generated by an audio processing algorithm, as a percentage of the total audio duration in a statistical period.

[0077] like Figure 5 When audio frames are lost due to network packet loss, jitter and other problems, the receiving electronic device will use the audio optimization algorithm to process and generate a part of the audio data (such as noise, background sound, speed change, etc.) to reduce the impact of abnormal audio frames.

[0078] Assuming that the original audio frame is 1000ms (i.e., the number of audio frames transmitted within 1000ms), the lost audio frame is a cumulative 100ms, and the audio frame generated by the algorithm is 200ms, the stretching rate is (100+200) / 1000=30%. In the embodiment of the present application, the stretching rate threshold can be set according to demand, for example, it can be set to 20% to 30%, the statistical period is 1 second, and the statistics are counted once per second. When the stretching rate exceeds the stretching rate threshold, it can be reported immediately. Figure 4 The network transmission channel abnormality reporting module 410.

[0079] The jam rate can refer to the percentage of jammed frames in the total number of audio frames in the statistical period. It should be noted that if the reception interval between the current frame and the previous frame is greater than the single-frame playback duration of the audio frame, and the current system elapsed time > (the total duration of all audio frames received in all statistical periods + the audio cache value), the current frame can be considered a jammed frame.

[0080] Among them, the system elapsed time may refer to the time interval from the first frame of the first statistical period to the received audio frame; the total duration of all received audio frames may refer to the total playable duration of the received audio frames from the first frame of the first statistical period to all current statistical periods; the audio cache value may refer to the dynamic cache value of the application layer, the cache of the audio playback AudioTrack, etc. The audio cache value is approximately 100ms and can be changed dynamically.

[0081] In some embodiments, the statistical period can be set to 1 second, and the jam rate threshold can be set to 0.3%. The jam rate is mainly used to track the objective data performance of the jamming perceived by the human ear in conventional scenarios, and to tune the QoE indicator.

[0082] It should be noted that if the sending end mutes and then starts sending audio frames again, the receiving end needs to reinitialize the calculation data of the jam rate.

[0083] In the embodiment of the present application, if a stuck frame occurs in a single statistical cycle, it can be reported immediately. Figure 4 The network transmission channel abnormality reporting module 410 may report only once in each statistical period to prevent frequent reporting in a single period.

[0084] See again Figure 4 The network transmission channel detection module 420 can be used to obtain the channel quality information of all current network transmission channels, which can specifically include the following steps:

[0085] Step 4.1: Use the network transmission channel detection module 420 to try to control the establishment of network transmission channels of all networks, and reserve the network transmission channels that can send and receive data as available network transmission channels. The available network transmission channels can be, for example, network transmission channels that can successfully establish connections.

[0086] Step 4.2: In all available network channels, the transmission quality is detected by sending RTT detection packets (such as 10 per second), and the arrival of the detection packets in the last five seconds, the sending time and the time to receive the response are counted to obtain the RTT average value of the network transmission channel (the RTT average value of the detection packets in the network transmission channel), the variance value of RTT, and the packet loss rate of the network transmission channel (the packet loss rate of the detection packets in the network transmission channel). Among them, the RTT standard deviation σ is:

[0087]

[0088] Among them, x is the average RTT, x i is the i-th RTT value, where i is a positive integer.

[0089] Step 4.3: Use the network transmission channel detection module 420 to obtain network quality information such as the link layer retransmission rate of the network transmission channel, the load of the network transmission channel, and the bandwidth usage status of the network transmission channel. The link layer retransmission rate may refer to the number of times that a data packet is automatically retransmitted by the link layer due to timeout / loss during the link layer transmission process. The link layer retransmission rate can directly reflect the transmission quality of the current network.

[0090] In some embodiments, when a QoE abnormality notification is received, the network transmission channel scoring module 430 is triggered, and the network transmission channel scoring module 430 obtains the transmission quality information of all available network transmission channels including the current network transmission channel, and determines the target network transmission channel based on the transmission quality information. Figure 6 The method for determining the target network transmission channel is described in detail by way of example. It should be understood that a plurality of network transmission channels are established between the first electronic device and the second electronic device.

[0091] Figure 6 FIG. 1 is a flow chart of a method for determining a target network transmission channel. Figure 6 As shown, the method for determining the target network transmission channel includes the following steps: S601-S612.

[0092] In step S601, multiple network transmission channels are sorted according to their average RTTs.

[0093] In step S602, select the average RTT in [RTT min ,RTT min + preset RTT threshold], and obtain one or N available network transmission channels. Where N is a positive integer greater than 1, RTT min is the minimum average RTT. The unit of RTT is milliseconds (ms). The preset RTT threshold can be set to 90ms.

[0094] In step S603, it is determined whether there is only one available network transmission channel. If there are N available network transmission channels, the process jumps to step S604; if there is only one available network transmission channel, the process jumps to step S611.

[0095] In step S604, the RTT standard deviations of the N available network transmission channels are calculated, and two network transmission channels with the smallest RTT standard deviations are selected (such as the first available network transmission channel and the second available network transmission channel), wherein the RTT standard deviation of the first available network transmission channel is smaller than the RTT standard deviation of the second available network transmission channel.

[0096] In step S605, it is determined whether the ratio between the RTT standard deviation (minimum standard deviation) of the first available network transmission channel and the RTT standard deviation (second minimum standard deviation) of the second available network transmission channel is less than the first threshold value. If the ratio between the minimum standard deviation and the second minimum standard deviation is greater than or equal to the first threshold value, the process jumps to step S606. If the ratio between the minimum standard deviation and the second minimum standard deviation is less than the first threshold value, the process jumps to step S611. In some embodiments, the first threshold value can be set to 0.5, for example.

[0097] In step S606, the link layer retransmission rates of N available network transmission channels are obtained, and two network transmission channels with the smallest link layer retransmission rates (such as the third available network transmission channel and the fourth available network transmission channel) are selected from the N available network transmission channels; wherein the link layer retransmission rate of the third available network transmission channel is less than the link layer retransmission rate of the fourth available network transmission channel.

[0098] It should be understood that if the link layer retransmission rate cannot be obtained, the packet loss rate can be used instead to implement the above judgment method. If the RTT of the data packet is greater than λ*average RTT, the data packet can be considered lost, and the packet loss rate can be calculated, where λ is the standard deviation coefficient, and λ can be set to 3, for example. Of course, other methods can also be used to obtain the packet loss rate, and this application does not make specific restrictions on this.

[0099] In step S607, it is determined whether the ratio of the link layer retransmission rate (minimum retransmission rate) of the third available network transmission channel to the link layer retransmission rate (second minimum retransmission rate) of the fourth available network transmission channel is less than the second threshold value. If the ratio of the minimum retransmission rate to the second minimum retransmission rate is greater than or equal to the second threshold value, the process jumps to step S608. If the ratio of the minimum retransmission rate to the second minimum retransmission rate is less than the second threshold value, the process jumps to step S611. In some embodiments, the second threshold value can be set to 0.5, for example.

[0100] In step S608, the N available network transmission channels are scored.

[0101] The scoring rules are as follows: sort the N available network transmission channels according to the order of the monitoring value of each parameter in the second parameter from large to small, and obtain the priority list of N available network transmission channels; obtain the cumulative score of each available network transmission channel in the N available network transmission channels, wherein the queue number in each available network transmission channel priority list in the N available network transmission channel priority list is the score of each available network transmission channel (in each available network transmission channel priority list, each available network transmission channel can accumulate 1 point at the worst and N points at the best); determine the target network transmission channel from the N available network transmission channels, and the target network transmission channel is the transmission channel with the highest cumulative score among the N available network transmission channels. N is a positive integer greater than 1. It should be understood that the largest parameter value (such as average RTT, RTT standard deviation, link layer retransmission rate and other parameter values) represents the worst quality of the Netcom transmission channel, which is ranked first (can accumulate 1 point); the smallest parameter value represents the best quality of the Netcom transmission channel, which is ranked Nth (can accumulate N points).

[0102] In step S609, if the link layer retransmission rate of an available network transmission channel is less than the retransmission rate threshold (for example, the retransmission rate threshold may be 2%), the available network transmission channel may accumulate an additional point; and / or, if the RTT standard deviation of an available network transmission channel is less than the RTT standard deviation threshold (for example, the RTT standard deviation threshold may be 30), the available network transmission channel may accumulate an additional point.

[0103] In step S610, a transmission channel with the highest cumulative score among N available network transmission channels is obtained.

[0104] In step S611, the available network transmission channel is determined to be a target network transmission channel.

[0105] In step S612, end.

[0106] In some embodiments, the above-mentioned Netcom transmission channel switching method may conflict with the native network transmission channel sorting switching strategy in the electronic device. After analysis, in the embodiment of the present application, a start function of the network transmission channel switching strategy in the embodiment of the present application can be added at the beginning of the sorting strategy (for example, it can be a trigger button or a trigger function key). The start function of the network transmission channel switching strategy in the embodiment of the present application can be designed according to user needs, and the present application does not make specific restrictions on this. For example, the start function of the network transmission channel switching strategy in the embodiment of the present application can be set to normally open. Of course, the user can actively turn off the automatic switching function of the network channel.

[0107] If the automatic switching function of the network channel is turned on, and the current network transmission channel is abnormal and needs to be switched to a network channel with higher transmission quality, the target network transmission channel can be determined according to the network transmission channel adaptive switching method described above in the embodiment of the present application, and forced to switch to the new target network transmission channel. If the trigger condition is not turned on, it means that the network transmission channel adaptive switching function in the embodiment of the present application is not turned on, and the native network transmission channel usage strategy is adopted.

[0108] Because in Figure 4 In the network transmission channel detection module 420, the transmission connection of each network transmission channel has been pre-established, so new media data only needs to determine which network transmission channel is currently used and directly use the target network transmission channel for transmission. The switching time of the target network transmission channel can be controlled within 10ms, achieving a seamless switching effect.

[0109] The present application also provides a possible channel switching architecture diagram of a network transmission channel. Figure 7 As shown, the channel switching architecture may include: a first electronic device 710 and a second electronic device 720.

[0110] The first electronic device 710 and the second electronic device 720 can support multiple network communications, and multiple network transmission channels can be established based on the multiple network communications. The multiple network communications may include: BT communication, P2P communication, WLAN communication. Based on the multiple network communications, multiple network transmission channels can be established, and the multiple network transmission channels may include BT network transmission channels, P2P network transmission channels, and WLAN network transmission channels. As an example, when the first electronic device 710 determines that the BT network transmission channel is the target network transmission channel, it can quickly switch to the BT network transmission channel, and the switching time of the target network transmission channel can be controlled within 10ms, achieving a seamless switching effect.

[0111] In some embodiments, the system code may be modified to obtain information such as load, bandwidth usage, average packet loss rate, average delay, etc. of various network communications to achieve more accurate network quality assessment.

[0112] In some embodiments, the present application also provides a schematic diagram of a system architecture for data transmission. Figure 8 As shown, the system architecture includes a transmitting end 810 and a receiving end 820. The transmitting end 810 and the receiving end 820 can be any type of electronic device mentioned above. The first business data can be transmitted between the transmitting end 810 and the receiving end 820 through a BT network transmission channel, or through a NET network transmission channel.

[0113] In the sending end 810, the BT network transmission channel may include: a connection channel 811, a C++ encapsulated BT Socket 812, a Java Native Interface (JNI) 813 and a BT Socket 814. Among them, the C++ encapsulated BTSocket 812 is mainly used to realize the conversion between C++ language and Java language.

[0114] In the sending end 810 , the NET network transmission channel may include: a connection channel 811 , a physical (Physical) Socket 815 and a user datagram protocol (UDP) Socket 816 .

[0115] In the receiving end 820, the BT network transmission channel may include: a connection channel 821, a C++ encapsulated BT Socket 822, a Java Native Interface (JNI) 823 and a BT Socket 824. Among them, the C++ encapsulated BTSocket 822 is mainly used to realize the conversion between C++ language and Java language.

[0116] In the receiving end 820 , the NET network transmission channel may include: a connection channel 821 , a physical Socket 825 , and a user datagram protocol (UDP) Socket 826 .

[0117] It can be understood that the sending end 810 can use the BT Socket 814 in the BT network transmission channel to send the first business data to the receiving end 820, and the receiving end 820 can use the BT Socket 824 to receive the first business data; similarly, the sending end 810 can use the UDP Socket 816 in the NET network transmission channel to send the first business data to the receiving end 820, and the receiving end 820 can use the UDP Socket 826 to receive the first business data.

[0118] Combination of the above Figures 1 to 8 The method embodiment of the present application is described in detail. Figures 9 and 10 The device embodiment of the present application is described in detail. It should be understood that the description of the method embodiment corresponds to the description of the device embodiment, so the parts not described in detail can refer to the previous method embodiment.

[0119] Fig. 9A schematic diagram of a data transmission device according to an embodiment of the present application. The data transmission device 900 can be applied to a first electronic device, wherein the first electronic device supports multiple network transmission channels with a second electronic device, and the data transmission device 900 can include: a transmission module 910, a determination module 920, and a switching module 930.

[0120] The transmission module 910 is used to transmit the first service data to the second electronic device by using the first network transmission channel among the multiple network transmission channels.

[0121] The determination module 920 is configured to determine a target network transmission channel from the multiple network transmission channels according to the transmission qualities of the multiple network transmission channels in response to an abnormal experience quality indicator of the first network transmission channel.

[0122] The switching module 930 is used to switch to transmitting the first service data with the second electronic device through the target network transmission channel.

[0123] Optionally, the determination module 920 is used to: in response to an abnormal experience quality indicator of the first network transmission channel, establish the multiple network transmission channels with the second electronic device; evaluate the transmission quality of the multiple network transmission channels; and determine the target network transmission channel from the multiple network transmission channels based on the transmission quality evaluation results of the multiple network transmission channels.

[0124] Optionally, the evaluating the transmission quality of the multiple network transmission channels includes: evaluating the transmission quality of the multiple network transmission channels according to a first parameter; the first parameter includes one or more of the following parameters: transmission delay of the network transmission channel, standard deviation of the transmission delay of the network transmission channel, link layer retransmission rate, load of the network transmission channel, available bandwidth of the network transmission channel, and packet loss rate of the network transmission channel.

[0125] Optionally, according to the transmission quality evaluation results of the multiple network transmission channels, the target network transmission channel is determined from the multiple network transmission channels, including: according to a second parameter, determining the target available network transmission channel from the multiple network transmission channels; determining the target network transmission channel from the target available network transmission channels; wherein the second parameter includes one or more of the following parameters: transmission delay of the network transmission channel, standard deviation of the transmission delay of the network transmission channel, link layer retransmission rate, packet loss rate of the network transmission channel.

[0126] Optionally, the target available network transmission channel includes multiple available network transmission channels, and determining the target network transmission channel from the target available network transmission channels includes: obtaining the transmission delay standard deviations of the multiple available network transmission channels; determining a first available network transmission channel and a second available network transmission channel from the multiple available network transmission channels; if the ratio between the transmission delay standard deviation of the first available network transmission channel and the transmission delay standard deviation of the second available network transmission channel is less than a first threshold, determining that the first available network transmission channel is the target network transmission channel; wherein the first available network transmission channel and the second available network transmission channel are the two transmission channels with the smallest transmission delay standard deviations among the multiple available network transmission channels, and the transmission delay standard deviation of the first available network transmission channel is less than the transmission delay standard deviation of the second available network transmission channel.

[0127] Optionally, the target available network transmission channel includes multiple available network transmission channels, and determining the target network transmission channel from the target available network transmission channels includes: obtaining link layer retransmission rates of the multiple available network transmission channels; determining a third available network transmission channel and a fourth available network transmission channel from the multiple available network transmission channels; if the ratio between the link layer retransmission rate of the third available network transmission channel and the link layer retransmission rate of the fourth available network transmission channel is less than a second threshold, determining the third available network transmission channel as the target network transmission channel; wherein the third available network transmission channel and the fourth available network transmission channel are the two transmission channels with the smallest link layer retransmission rates among the multiple available network transmission channels, and the link layer retransmission rate of the third available network transmission channel is less than the link layer retransmission rate of the fourth available network transmission channel.

[0128] Optionally, the target available network transmission channel includes N available network transmission channels, and determining the target network transmission channel from the target available network transmission channels includes: sorting the N available network transmission channels in order from large to small according to the monitored values ​​of each parameter in the second parameter, to obtain a priority list of N available network transmission channels; obtaining the cumulative points of each available network transmission channel in the N available network transmission channels, wherein the queue number in each priority list of the N available network transmission channels is the point of each available network transmission channel; and determining the target network transmission channel from the N available network transmission channels, the target network transmission channel being the transmission channel with the highest cumulative point among the N available network transmission channels.

[0129] Optionally, the device 500 also includes: a second determination module 940, which is used to determine whether the experience quality indicator of the first network transmission channel is abnormal before determining the target network transmission channel from the multiple network transmission channels according to the transmission quality of the multiple network transmission channels in response to the experience quality indicator of the first network transmission channel being abnormal.

[0130] Optionally, the second determination module 940 is used to: in response to a preset condition being met, determine that the experience quality indicator of the first network transmission channel is abnormal; the preset condition includes one or more of the following conditions: the transmission delay of the first network transmission channel is greater than a third threshold; the packet loss rate of the first network transmission channel is greater than a fourth threshold; the stretching rate of the first network transmission channel is greater than a fifth threshold; the freeze rate of the first network transmission channel is greater than a sixth threshold.

[0131] Optionally, the first business data is audio data, and the second determination module 940 is used to: in response to the stretching rate of the first network transmission channel being greater than the fifth threshold and / or the jamming rate of the first network transmission channel being greater than the sixth threshold, determine that the experience quality of the first network transmission channel is abnormal.

[0132] Optionally, evaluating the transmission quality of the multiple network transmission channels according to the first parameter includes: sending detection packets to the multiple network transmission channels; determining the first parameter of the multiple network transmission channels according to the detection packets; and evaluating the transmission quality of the multiple network transmission channels according to the first parameter of the multiple network transmission channels.

[0133] Optionally, the first electronic device supports multiple network communications, the multiple network communications are wireless local area network communications, and the multiple network communications include at least two of the following network communications: BT communication, P2P communication, and WLAN communication.

[0134] Optionally, the first electronic device supports multiple network communications, the multiple network communications are external network communications, and the multiple network communications include at least two of the following network communications: Wi-Fi communication, and multiple cellular network communications.

[0135] Combine the following Fig.10 The electronic device 1000 in the embodiment of the present application is introduced. The electronic device 1000 can be used to implement the method described in the above method embodiment.

[0136] It should be understood that the electronic device 1000 can be applied to any type of electronic device mentioned above.

[0137] The electronic device 1000 may include one or more processors 1010. The processor 1010 may support the electronic device 1000 to implement the method described in the foregoing method embodiment.

[0138] The processor 1010 may be a general-purpose processor or a special-purpose processor. For example, the processor may be a central processing unit (CPU). Alternatively, the processor may be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

[0139] The electronic device 1000 may further include one or more memories 1020. The memory 1020 stores a program, which can be executed by the processor 1010 to control the electronic device 1000 to execute the method described in the above method embodiment. The memory 1020 may be independent of the processor 1010 or integrated in the processor 1010.

[0140] The electronic device 1000 may further include a transceiver 1030. The processor 1010 may communicate with other devices through the transceiver 1030. For example, the processor 1010 may transmit and receive data with other devices through the transceiver 1030.

[0141] The present application also provides a chip in an embodiment, including a processor, which can be used to call and run a computer program from a memory, so that a device equipped with the chip performs the method described in the above method embodiment. It is understood that the processor can be any type of processor mentioned above. It is understood that the memory can be independent of the chip or integrated in the chip.

[0142] The embodiment of the present application also provides a machine-readable storage medium for storing a program, and the program enables a computer to execute the method in each embodiment of the present application.

[0143] The embodiment of the present application also provides a computer program product. The computer program product includes a program. The program enables a computer to execute the method in each embodiment of the present application.

[0144] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present disclosure is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a machine-readable storage medium, or transmitted from one machine-readable storage medium to another machine-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The machine-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital video disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).

[0145] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments of the present disclosure can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present disclosure.

[0146] In the several embodiments provided in the present disclosure, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0147] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple 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.

[0148] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0149] The above is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A data transmission method, characterized in that: Applied to a first electronic device, the first electronic device supports multiple network transmission channels with a second electronic device, and the method includes: Transmitting the first service data to the second electronic device using a first network transmission channel among the multiple network transmission channels; In response to an abnormality in the experience quality indicator of the first network transmission channel, determining a target network transmission channel from the multiple network transmission channels according to the transmission qualities of the multiple network transmission channels; Switch to transmitting the first business data with the second electronic device through the target network transmission channel.

2. The method according to claim 1, characterized in that In response to the experience quality indicator of the first network transmission channel being abnormal, determining a target network transmission channel from the multiple network transmission channels according to the transmission qualities of the multiple network transmission channels includes: establishing the plurality of network transmission channels with the second electronic device; Evaluating the transmission quality of the multiple network transmission channels; In response to the experience quality indicator of the first network transmission channel being abnormal, the target network transmission channel is determined from the multiple network transmission channels according to the transmission quality evaluation results of the multiple network transmission channels.

3. The method according to claim 2, characterized in that The evaluating the transmission quality of the multiple network transmission channels includes: evaluating the transmission quality of the plurality of network transmission channels according to the first parameter; The first parameter includes one or more of the following parameters: transmission delay of the network transmission channel, standard deviation of the transmission delay of the network transmission channel, link layer retransmission rate, load of the network transmission channel, available bandwidth of the network transmission channel, and packet loss rate of the network transmission channel.

4. The method according to claim 2, characterized in that: Determining the target network transmission channel from the multiple network transmission channels according to the transmission quality evaluation results of the multiple network transmission channels includes: determining a target available network transmission channel from the plurality of network transmission channels according to the second parameter; Determine the target network transmission channel from the target available network transmission channels; Among them, the second parameter includes one or more of the following parameters: transmission delay of the network transmission channel, standard deviation of the transmission delay of the network transmission channel, link layer retransmission rate, and packet loss rate of the network transmission channel.

5. The method according to claim 4, characterized in that The target available network transmission channel includes a plurality of available network transmission channels, and determining the target network transmission channel from the target available network transmission channels includes: Obtaining a transmission delay standard deviation of the plurality of available network transmission channels; Determine a first available network transmission channel and a second available network transmission channel from the plurality of available network transmission channels; If a ratio between a standard deviation of the transmission delay of the first available network transmission channel and a standard deviation of the transmission delay of the second available network transmission channel is less than a first threshold, determining that the first available network transmission channel is the target network transmission channel; Among them, the first available network transmission channel and the second available network transmission channel are two transmission channels with the smallest transmission delay standard deviation among the multiple available network transmission channels, and the transmission delay standard deviation of the first available network transmission channel is smaller than the transmission delay standard deviation of the second available network transmission channel.

6. The method according to claim 4, characterized in that The target available network transmission channel includes a plurality of available network transmission channels, and determining the target network transmission channel from the target available network transmission channels includes: Obtaining link layer retransmission rates of the multiple available network transmission channels; Determine a third available network transmission channel and a fourth available network transmission channel from the plurality of available network transmission channels; If the ratio of the link layer retransmission rate of the third available network transmission channel to the link layer retransmission rate of the fourth available network transmission channel is less than a second threshold, determining that the third available network transmission channel is the target network transmission channel; Among them, the third available network transmission channel and the fourth available network transmission channel are the two transmission channels with the smallest link layer retransmission rates among the multiple available network transmission channels, and the link layer retransmission rate of the third available network transmission channel is less than the link layer retransmission rate of the fourth available network transmission channel.

7. The method according to claim 4, characterized in that The target available network transmission channel includes N available network transmission channels, and determining the target network transmission channel from the target available network transmission channels includes: According to the order of the monitored value of each parameter in the second parameter from large to small, the N available network transmission channels are sorted respectively to obtain a priority list of the N available network transmission channels; Obtaining the accumulated score of each of the N available network transmission channels, wherein the queue number in each of the priority lists of the N available network transmission channels is the score of each of the available network transmission channels; The target network transmission channel is determined from the N available network transmission channels, and the target network transmission channel is a transmission channel with the highest cumulative score among the N available network transmission channels.

8. The method according to claim 1, characterized in that Before determining a target network transmission channel from the multiple network transmission channels according to the transmission qualities of the multiple network transmission channels in response to the experience quality indicator of the first network transmission channel being abnormal, the method further includes: Determine whether an experience quality indicator of the first network transmission channel is abnormal.

9. The method according to claim 8, characterized in that The determining whether the experience quality indicator of the first network transmission channel is abnormal includes: In response to a preset condition being met, determining that the experience quality indicator of the first network transmission channel is abnormal; The preset conditions include one or more of the following conditions: The transmission delay of the first network transmission channel is greater than a third threshold; The packet loss rate of the first network transmission channel is greater than a fourth threshold; The stretching rate of the first network transmission channel is greater than a fifth threshold; The jam rate of the first network transmission channel is greater than a sixth threshold.

10. The method according to claim 9, characterized in that The first service data is audio data, and determining whether the experience quality indicator of the first network transmission channel is abnormal includes: In response to the stretching rate of the first network transmission channel being greater than the fifth threshold and / or the jamming rate of the first network transmission channel being greater than the sixth threshold, it is determined that the experience quality of the first network transmission channel is abnormal.

11. The method according to claim 3, characterized in that The step of evaluating the transmission quality of the plurality of network transmission channels according to the first parameter includes: Sending detection packets to the multiple network transmission channels; Determining detection values ​​of the first parameters of the plurality of network transmission channels according to the detection packets; The transmission qualities of the multiple network transmission channels are evaluated according to the detection values ​​of the first parameters of the multiple network transmission channels.

12. The method according to claim 1, characterized in that The first electronic device supports multiple network communications, the multiple network communications are wireless local area network communications, and the multiple network communications include at least two of the following network communications: BT communication, P2P communication, and WLAN communication.

13. The method according to claim 1, characterized in that The first electronic device supports multiple network communications, the multiple network communications are external network communications, and the multiple network communications include at least two of the following network communications: Wi-Fi communication, and multiple cellular network communications.

14. A data transmission device, characterized in that: Applied to a first electronic device, the first electronic device supports multiple network transmission channels with a second electronic device, and the device includes: a transmission module, configured to transmit the first service data to the second electronic device by using a first network transmission channel among the plurality of network transmission channels; a determination module, configured to determine, in response to an abnormality in the experience quality indicator of the first network transmission channel, a target network transmission channel from the multiple network transmission channels according to the transmission qualities of the multiple network transmission channels; A switching module is used to switch to transmitting the first service data with the second electronic device through the target network transmission channel.

15. A chip, characterized in that: include: A processor, configured to call and run a computer program from a memory, so that a device equipped with the chip executes a method as claimed in any one of claims 1 to 13.

16. An electronic device, characterized in that: include: A processor, a memory and a transceiver, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to control the electronic device to execute the method as described in any one of claims 1 to 13.

17. A computer-readable storage medium having executable code stored thereon, characterized in that: The code is used to implement the method according to any one of claims 1 to 13.