Data processing method and apparatus, electronic device, medium, and computer program product

By obtaining the identification information or mapping value of data frames from multiple communication links of electronic devices, the problem of high data loss risk during electronic device calls is solved, and fast and reliable data transmission is achieved.

WO2026067208A1PCT designated stage Publication Date: 2026-04-02VIVO MOBILE COMM CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-09-18
Publication Date
2026-04-02

AI Technical Summary

Technical Problem

During electronic device calls, there is a high risk of data loss due to poor network signal. Existing technologies compensate for lost data by adding packet header numbers to each communication link, which leads to increased data transmission volume and longer transmission time.

Method used

By receiving the data portion and identification information of the data frame through the first and second communication links, the identification information of the data frame can be directly obtained or determined based on the mapping value, avoiding the addition of packet headers, thereby improving the reliability of data transmission without changing the size of the data frame.

Benefits of technology

Without increasing the size of the data frame, data frames carrying identification information can be transmitted quickly, reducing the risk of data loss and improving data reliability and transmission efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025122308_02042026_PF_FP_ABST
    Figure CN2025122308_02042026_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of communications, and discloses a data processing method and apparatus, an electronic device, a medium, and a computer program product. The method comprises: a first electronic device receiving at least one first data frame by means of a first communication link, and receiving at least one second data frame by means of a second communication link; acquiring identification information of each first data frame from a data portion of the at least one first data frame, and acquiring identification information of each second data frame from the at least one second data frame; or acquiring identification information and a mapped value of each second data frame from the at least one second data frame, and determining identification information of each first data frame on the basis of the mapped value of the at least one second data frame and a data portion of the at least one first data frame; and obtaining a target data frame on the basis of the data portion and the identification information of the at least one first data frame, as well as a data portion and the identification information of the at least one second data frame.
Need to check novelty before this filing date? Find Prior Art

Description

Data processing method and device, electronic device, medium and computer program product

[0001] Cross-reference to related applications

[0002] The present application claims priority from Chinese Patent Application No. 202411343731.6 filed on September 25, 2024 in China, the contents of which are incorporated herein by reference in its entirety. TECHNICAL FIELD

[0003] The present application belongs to the technical field of communication, and particularly relates to a data processing method and device, electronic device, medium and computer program product. BACKGROUND

[0004] At present, electronic devices such as mobile phones have become one of the most commonly used products in people's daily life. Among them, using electronic devices for calls is the most basic requirement of most users for electronic devices. In order to avoid call abnormalities caused by poor signals of network operators providing call services during calls, two communication links can be established between two electronic devices for calls, so that the electronic devices can transmit Pulse Code Modulation (PCM) data to the opposite electronic device through the two communication links, so that in the case of data loss of one of the communication links, the lost data can be compensated by the call data received from the other communication link.

[0005] Usually, the electronic device can increase a numbering field in the packet header after encapsulating the PCM data into a data packet, so that in the case of data loss of one of the communication links, the lost data can be found from the data received from the other communication link according to the number in the packet header of the data packet to compensate.

[0006] However, in the above data compensation method, the electronic device needs to increase the numbering field in the packet header of each data packet corresponding to each data frame sent in each link to find the lost data frame. As a result, the amount of data transmitted is increased, which leads to longer data transmission time and higher risk of data loss. SUMMARY

[0007] The purpose of the embodiments of the present application is to provide a data processing method and device, electronic device, medium and computer program product, which can reduce the risk of data loss and improve data reliability.

[0008] In a first aspect, an embodiment of the present application provides a data processing method applied to a first electronic device, the method comprising: receiving at least one first data frame through a first communication link and receiving at least one second data frame through a second communication link, wherein the first communication link and the second communication link are communication links established for a same communication service, and the first communication link and the second communication link are communication links between the first electronic device and a second electronic device; obtaining data portions and identification information of the at least one first data frame, and obtaining data portions and identification information of the at least one second data frame; obtaining a target data frame based on the data portions and the identification information of the at least one first data frame and the data portions and the identification information of the at least one second data frame; and wherein the obtaining of the data portions and the identification information of the at least one first data frame and the obtaining of the data portions and the identification information of the at least one second data frame comprise any one of the following: obtaining identification information of each first data frame from the data portions of the at least one first data frame, and obtaining identification information of each second data frame from the at least one second data frame; obtaining identification information and mapping values of each second data frame from the at least one second data frame, and determining identification information of each first data frame based on the mapping values of the at least one second data frame and the data portions of the at least one first data frame.

[0009] In a second aspect, an embodiment of the present application provides a data processing method applied to a second electronic device, the method comprising: obtaining at least one first data frame and at least one second data frame; sending the at least one first data frame through a first communication link and sending the at least one second data frame through a second communication link, wherein the first communication link and the second communication link are communication links established for a same communication service, and the first communication link and the second communication link are communication links between the first electronic device and the second electronic device; and wherein the obtaining of the at least one first data frame and the at least one second data frame comprises any one of the following: obtaining the at least one first data frame, wherein a third byte or a third bit in a data portion of the first data frame comprises identification information of the first data frame; and obtaining the at least one second data frame based on the at least one first data frame; obtaining the at least one first data frame; and processing the at least one first data frame to obtain the at least one second data frame, wherein the at least one second data frame comprises identification information and mapping values.

[0010] In a third aspect, an embodiment of the present application provides a data processing apparatus, which comprises a receiving module and a processing module; the receiving module is configured to receive at least one first data frame through a first communication link and receive at least one second data frame through a second communication link, wherein the first communication link and the second communication link are communication links established for a same communication service, and the first communication link and the second communication link are communication links between a first electronic device and a second electronic device; the processing module is configured to acquire data portions and identification information of the at least one first data frame received by the receiving module, and acquire data portions and identification information of the at least one second data frame received by the receiving module; the processing module is further configured to obtain a target data frame based on the data portions and the identification information of the at least one first data frame and the data portions and the identification information of the at least one second data frame; and the processing module is specifically configured to perform any one of the following: acquire the identification information of each first data frame from the data portion of the at least one first data frame, and acquire the identification information of each second data frame from the at least one second data frame; acquire the identification information and a mapping value of each second data frame from the at least one second data frame, and determine the identification information of each first data frame based on the mapping value of the at least one second data frame and the data portion of the at least one first data frame.

[0011] In a fourth aspect, an embodiment of the present application provides a data processing apparatus, which comprises a processing module and a sending module; the processing module is configured to acquire at least one first data frame and at least one second data frame; the sending module is configured to send the at least one first data frame acquired by the processing module through a first communication link, and send the at least one second data frame acquired by the processing module through a second communication link; the first communication link and the second communication link are communication links established for a same communication service, and the first communication link and the second communication link are communication links between a first electronic device and a second electronic device; and the processing module is specifically configured to perform any one of the following: acquire the at least one first data frame, wherein a third byte or a third bit in a data portion of the first data frame comprises identification information of the first data frame; and obtain the at least one second data frame based on the at least one first data frame; acquire the at least one first data frame; and process the at least one first data frame to obtain the at least one second data frame, wherein the at least one second data frame comprises identification information and a mapping value.

[0012] In a fifth aspect, an embodiment of the present application provides an electronic device, which comprises a processor and a memory, the memory stores programs or instructions executable on the processor, and the programs or instructions are executed by the processor to implement the method in the first aspect or implement the steps of the method in the second aspect.

[0013] In a sixth aspect, an embodiment of the present application provides a readable storage medium, and the readable storage medium stores programs or instructions, and the programs or instructions are executed by a processor to implement the method in the first aspect or implement the steps of the method in the second aspect.

[0014] In a seventh aspect, an embodiment of the present application provides a chip, and the chip includes a processor and a communication interface, the communication interface is coupled with the processor, and the processor is configured to run programs or instructions to implement the method in the first aspect or implement the method in the second aspect.

[0015] In an eighth aspect, an embodiment of the present application provides a computer program product, and the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the method in the first aspect or implement the method in the second aspect.

[0016] In the embodiment of the present application, the first electronic device can receive at least one first data frame through a first communication link and receive at least one second data frame through a second communication link, wherein the first communication link and the second communication link are communication links established for the same communication service, and the first communication link and the second communication link are communication links between the first electronic device and the second electronic device; the identification information of each first data frame is obtained from the data part of the at least one first data frame, and the identification information of each second data frame is obtained from the at least one second data frame; or the identification information and the mapping value of each second data frame are obtained from the at least one second data frame, and the identification information of each first data frame is determined based on the mapping value of the at least one second data frame and the data part of the at least one first data frame, and the target data frame is obtained based on the data part and the identification information of the at least one first data frame and the data part and the identification information of the at least one second data frame. Through the scheme, in the process of communication between the first electronic device and the second electronic device, the identification information of the first data frame can be directly obtained from the data part of the first data frame, or the identification information of the first data frame is determined based on the mapping value of the second data frame and the data part of the first data frame, so that the identification information of the first data frame can be obtained by the first electronic device without changing the size of the original data frame, so that the data frame carrying the identification information can be transmitted in a short time, the risk of data loss is reduced, and the reliability of the data is improved. BRIEF DESCRIPTION OF DRAWINGS

[0017] FIG. 1 is a flowchart of a data processing method according to an embodiment of the present application;

[0018] FIG. 2A is a schematic diagram before byte replacement according to an embodiment of the present application;

[0019] FIG. 2B is a schematic diagram of a byte replacement according to an embodiment of the present application;

[0020] FIG. 3A is a schematic diagram of a bit replacement before replacement according to an embodiment of the present application;

[0021] FIG. 3B is a schematic diagram of a bit replacement after replacement according to an embodiment of the present application;

[0022] FIG. 4 is a schematic diagram of adding a packet header to a data packet corresponding to a data frame according to an embodiment of the present application;

[0023] FIG. 5 is a flowchart of a data processing method according to an embodiment of the present application;

[0024] FIG. 6 is a flowchart of a data processing method according to an embodiment of the present application;

[0025] FIG. 7 is a schematic diagram of a structure of a data processing apparatus according to an embodiment of the present application;

[0026] FIG. 8 is a schematic diagram of a structure of a data processing apparatus according to an embodiment of the present application;

[0027] FIG. 9 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application;

[0028] FIG. 10 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0029] The technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all of them. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art belong to the scope of protection of the present application.

[0030] The terms "first", "second", and the like in the specification of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than that illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of a kind and do not limit the number of objects, for example, the first object can be one or more. In addition, "and / or" in the specification means at least one of the connected objects, and the character " / ", generally represents a "or" relationship between the objects before and after it.

[0031] The term "at least one", "at least one of", or the like in the description of the present application means any one of the objects, a combination of any two or more of the objects. For example, at least one of a, b, and c can mean "a", "b", "c", "a and b", "a and c", "b and c", and "a, b, and c", where a, b, and c can be a single item or multiple items. Similarly, "at least two" means two or more, and the meaning is similar to "at least one". The identifier in the present application is a word, symbol, image, etc. used to indicate information, which can be displayed as an identifier or other container, including but not limited to word identifier, image identifier, symbol identifier, etc.

[0032] The data processing method, device, electronic device, medium and computer program product provided by the embodiments of the present application will be described in detail below in combination with the drawings and specific examples and their application scenarios.

[0033] The data processing method, device, electronic device, medium and computer program product provided by the embodiments of the present application are suitable for the scenario of transmitting data frames between two electronic devices, especially the scenario of establishing a call connection between two electronic devices to transmit data frames.

[0034] In the data processing method, device, electronic device, medium and computer program product provided by the embodiments of the present application, during the call between the first electronic device and the second electronic device, the identifier information of the first data frame can be directly obtained from the data part of the first data frame, or the identifier information of the first data frame can be determined based on the mapping value of the second data frame and the data part of the first data frame. Therefore, without changing the size of the original data frame, the first electronic device can obtain the identifier information of the first data frame, so that the data frame carrying the identifier information can be transmitted in a short time, reducing the risk of data loss and improving the reliability of the data.

[0035] The execution subject of the data processing method provided by the embodiments of the present application can be a data processing device. Exemplarily, the data processing device can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The data processing method provided by the embodiments of the present application will be exemplarily described below taking the electronic device as an example.

[0036] The data processing method provided by the embodiments of the present application is shown in FIG. 1. The method can be applied to a first electronic device. As shown in FIG. 1, the data processing method provided by the embodiments of the present application can include the following steps 101 to 103.

[0037] In step 101, the first electronic device receives at least one first data frame through a first communication link and receives at least one second data frame through a second communication link.

[0038] The first communication link and the second communication link are communication links established for a same communication service, and the first communication link and the second communication link are communication links between the first electronic device and the second electronic device.

[0039] In some embodiments of the present application, the first electronic device can establish a communication connection with the second electronic device for the communication service in a case where a user demand of the first electronic device and a user communication of the second electronic device exist.

[0040] In some embodiments of the present application, the communication service can be a communication service performed by a user through an electronic device.

[0041] In some embodiments of the present application, the first communication link and the second communication link being communication links established for a same communication service can be understood as that two communication links (i.e., the first communication link and the second communication link) can be established between the first electronic device and the second electronic device for a communication service. It can be understood that one of the two communication links can be a main communication link of the communication service, and the other one can be a secondary communication link of the communication service, so that the communication service can obtain better communication quality.

[0042] In some embodiments of the present application, the communication service can include, but is not limited to, circuit switching (Circuit Switched, CS), voice over long-term evolution (Voice over Long-Term Evolution, VoLTE), voice over new radio (Voice over New Radio, VoNR), video over long-term evolution (Video over Long-Term Evolution, ViLTE), video over new radio (Video over New Radio, ViNR), evolved packet system fallback (Evolved Packet System fallback, EPS fallback), CS fallback, voice over WiFi (Voice over WiFi, VoWiFi), and video over WiFi (Video over WiFi, ViWiFi).

[0043] It should be noted that the first electronic device and the second electronic device are two electronic devices served by the same communication service. In other words, the first electronic device can be a calling device or a called device, and the second electronic device can also be a calling device or a called device. The embodiments of the present application do not make specific limitation on this.

[0044] In some embodiments of the present application, the first communication link and the second communication link can be two different links for transmitting data frames between the first electronic device and the second electronic device.

[0045] In some embodiments of the present application, the first communication link can be a call link, and the second communication link can be a network link.

[0046] In some embodiments of the present application, the first electronic device can connect with a circuit switched (CS) / Internet Protocol Multimedia Subsystem (IMS) core network device through an access network element during a call to establish the first communication link with the second electronic device. In other words, the first communication link can be a communication link under an operator network corresponding to a Subscriber Identity Module (SIM) card used by the first electronic device to provide call service.

[0047] In some embodiments of the present application, the second communication link can be a communication link different from the communication network corresponding to the first communication link.

[0048] For example, the communication network corresponding to the first communication link can be an operator network, and the communication network corresponding to the second communication link can be a data network.

[0049] For example, assuming that the first electronic device is a dual-card electronic device, the communication network corresponding to the first communication link can be an operator network corresponding to a primary card of the first electronic device, and the communication network corresponding to the second communication link can be an operator network corresponding to a secondary card of the first electronic device.

[0050] In this way, during the call between the first electronic device and the second electronic device, call data can be transmitted through the network link to compensate for the call data transmitted through the call link, thereby ensuring the integrity of the call data received by the first electronic device.

[0051] In some embodiments of the present application, during the process of the first electronic device communicating with the second electronic device, the second electronic device can transmit the data frames copied to the second electronic device through the first communication link and the second communication link respectively. That is, the data frames transmitted by the second electronic device through the first communication link are the same as the data part of the data frames transmitted by the second electronic device through the second communication link. In this way, the first electronic device can receive two data frames with the same data part through the first communication link and the second communication link respectively, thereby improving the reliability of data transmission during the communication process.

[0052] In some embodiments of the present application, the data frames described above can include voice frames or video frames collected by the second electronic device.

[0053] In some embodiments of the present application, the data frames described above are protocol data units of the data link layer, which can include a frame header, a data part, and a frame tail. The frame header and the frame tail contain some necessary control information, such as synchronization information, address information, error control information, etc.; the data part contains the data transmitted by the network layer, such as data packets.

[0054] It can be understood that the voice frames and the video frames described above can be obtained by sampling the user or the user's voice during the communication process at a certain sampling rate by the second electronic device. The data obtained after each sampling and digital-to-analog conversion can be referred to as a sampling unit, and the sampling unit is the basic unit of the data frame.

[0055] For example, at a sampling rate of 8000 Hz, a data frame of 20 ms can contain 160 sampling units.

[0056] In some embodiments of the present application, each sampling unit can have a different number of bytes to store media information.

[0057] In some embodiments of the present application, the data frames described above can be data frames of PCM data.

[0058] In some embodiments of the present application, the data frames of PCM data described above can be encapsulated as real-time transport protocol (RTP) data packets for transmission.

[0059] For example, each data frame of PCM data can be encapsulated as an RTP data packet for transmission.

[0060] It can be understood that when the first electronic device transmits data frames to the second electronic device, the data frames transmitted by the first electronic device through the first communication link are the same as the data part of the data frames transmitted through the second communication link.

[0061] It should be noted that in actual implementation, any number of communication links can be established between the first electronic device and the second electronic device, and the data frames are copied and transmitted through the plurality of communication links. The embodiments of the present application only take the first communication link and the second communication link established between the first electronic device and the second electronic device as an example for illustration.

[0062] In step 102, the first electronic device acquires the data part and the identification information of the at least one first data frame, and acquires the data part and the identification information of the at least one second data frame.

[0063] In some embodiments of the present application, the identification information of the data frame can be used to uniquely identify the data frame.

[0064] For example, the identification information of the data frame can be frame number information of the data frame.

[0065] In some embodiments of the present application, the second electronic device can insert the identification information of the data frame into the data part of the collected data frame, or only add the identification information in the second data frame sent through the second communication link, and acquire the identification information of the first data frame according to the matching between the data part of the first data frame and the data part of the second data frame. So that the first electronic device can sort and play the data frame according to the identification information of the data frame when receiving the data frame.

[0066] It can be understood that for the data packet corresponding to the first data frame, since it is not necessary to add a packet header, the first electronic device can acquire the identification information thereof, so that the size of the original data frame can not be changed during the transmission of the data frame, so that the data frame carrying the identification information can be transmitted in a short time.

[0067] In the embodiments of the present application, the above step 102 can include the following step 102a or step 102b.

[0068] In step 102a, the first electronic device acquires the identification information of each first data frame from the data part of the at least one first data frame, and acquires the identification information of each second data frame from the at least one second data frame.

[0069] In some embodiments of the present application, the data part of the first data frame can include the identification information of the first data frame, and the data part of the second data frame can include the identification information of the second data frame.

[0070] In some embodiments of the present application, the "obtaining the identification information of each first data frame from the data part of the at least one first data frame" in step 102a can include the following step A, and the "obtaining the identification information of each second data frame from the at least one second data frame" in step 102a can include the following step B.

[0071] Step A: The first electronic device obtains the identification information of each first data frame from the first byte or the first bit of the data part of each first data frame.

[0072] Step B: The first electronic device obtains the identification information of each second data frame from the second byte or the second bit of the data part of each second data frame.

[0073] In some embodiments of the present application, the second electronic device can insert the identification information into the data part of the data frame, so that the first electronic device can determine whether there is a data frame loss after receiving the first data frame through the first communication link. Thus, the first electronic device can combine the at least one first data frame and the at least one second data frame to obtain the target data frame in the case that there is a data frame loss in the data frame received through the first communication link.

[0074] In some embodiments of the present application, the first byte or the first bit can be at least one byte or bit at a target position of the first data frame.

[0075] In some embodiments of the present application, the second byte or the second bit can be at least one byte or bit at a target position of the second data frame.

[0076] In some embodiments of the present application, the target position of the first data frame and the target position of the second data frame can be default, agreed by the first electronic device and the second electronic device, or specified by a network side device. The embodiments of the present application are not limited in this regard.

[0077] In some embodiments of the present application, the second electronic device can replace at least one byte or bit at the target position of the at least one data frame to be transmitted with the identification information to obtain at least one first data frame after collecting the at least one data frame to be transmitted. Then, the second electronic device can copy the at least one first data frame to obtain at least one second data frame. The second electronic device can send the at least one first data frame through the first communication link and send the at least one second data frame through the second communication link. Thus, after the first electronic device receives the at least one first data frame through the first communication link and receives the at least one second data frame through the second communication link, the first electronic device can parse the identification information of each first data frame from the target position in the data part of each first data frame and parse the identification information of each second data frame from the target position in the data part of each second data frame, respectively, to combine the at least one first data frame and the at least one second data frame according to the identification information.

[0078] It can be understood that for each data frame, the second electronic device can replace a fixed length of bytes or bits at the target position of the data frame with the frame number information of the data frame; thus, after receiving the data frame, the first electronic device can parse the frame number information of the data frame from the target position of the data frame according to the fixed length.

[0079] Exemplarily, taking the data frame 20 as the original data frame collected by the second electronic device, the target position as 0x00F0 in the data frame 20, and the identification information of the data frame 20 as the frame number information as an example. As shown in FIG. 2A, the second electronic device can replace the bytes “1010101010101010” indicated by 0x00F0 in the data frame 20 with the frame number information. As shown in FIG. 2B, the bytes “0000000011111111” indicated by 0x00F0 in the data frame 20 after replacement are the frame number information of the data frame 20.

[0080] Exemplarily, taking the data frame 30 as the original data frame collected by the second electronic device, the target position as the lowest 1 bit of each byte of the 16 bytes indicated by 0x00F0-0x00FF in the data frame 30, and the identification information of the data frame 30 as the frame number information as an example. As shown in FIG. 3A, the second electronic device can replace the lowest 1 bit of each byte of the 16 bytes indicated by 0x00F0-0x00FF in the data frame 30 with the frame number information. As shown in FIG. 3B, the lowest 1 bit of each byte of the 16 bytes indicated by 0x00F0-0x00FF in the data frame 20 after replacement is the frame number information of the data frame 20.

[0081] It should be noted that the dashed lines in FIG. 2A, FIG. 2B, FIG. 3A and FIG. 3B are only used to show the bytes or bits to be replaced, which are not visible in actual implementation.

[0082] In some embodiments of the present application, after receiving the at least one first data frame through the first communication link, the first electronic device can convert the identification information of the data frame corresponding to the at least one first data frame by parsing the bytes or bits at the target position of each first data frame in the at least one first data frame.

[0083] In some embodiments of the present application, after obtaining the identification information of each first data frame in the at least one first data frame, the first electronic device can determine the identification information of the data frame lost in the first communication link after arranging the data frames according to the identification information.

[0084] For example, assuming that the first electronic device parses the identification information of the at least one first data frame as 1, 2, 4 and 5, the first electronic device can determine that the data frame with the frame number information of 3 is lost.

[0085] It can be understood that after obtaining the identification information, the first electronic device can delete the bytes or bits corresponding to the identification information as data to be played, so as to avoid introducing noise when playing.

[0086] In some embodiments of the present application, after receiving the at least one second data frame through the second communication link, the first electronic device can convert the identification information of each first data frame in the at least one second data frame by parsing the bytes or bits at the target position of each second data frame in the at least one second data frame.

[0087] In some embodiments of the present application, after obtaining the identification information of each first data frame in the at least one second data frame, the first electronic device can determine the second data frame with the same identification information of each first data frame lost in the first communication link as the data frame lost in the first communication link.

[0088] In some embodiments of the present application, the first electronic device can insert the determined lost data frame into the at least one first data frame according to the order of the data frames indicated by the identification information, so as to supplement the missing data frame in the at least one first data frame, thereby ensuring the smoothness when playing the data frames.

[0089] In this way, by obtaining the identification information of the data frame from the data part of the data frame, the playing order of the data frame can be restored without changing the data format of the data frame, which simplifies the process of the first electronic device parsing the data frame compared with the processing mode of encapsulating the data frame numbering and adding the header of the data frame.

[0090] Step 102b, the first electronic device obtains the identification information and the mapping value of each second data frame from the at least one second data frame, and determines the identification information of each first data frame based on the mapping value of the at least one second data frame and the data part of the at least one first data frame.

[0091] In some embodiments of the present application, the second data frame described above comprises the identification information of the second data frame and the mapping value of the second data frame.

[0092] In some embodiments of the present application, the step 102b described above can comprise the following steps C and D.

[0093] Step C, the first electronic device determines the mapping value of each first data frame according to the data part of each first data frame, respectively.

[0094] In some embodiments of the present application, the mapping value described above can be a unique mapping value of the data frame, which is used to indicate specific data. It can be understood that for the same data, the corresponding mapping value is the same; for different data, the corresponding mapping value is different.

[0095] In some embodiments of the present application, after receiving the at least one first data frame through the first communication link, the first electronic device can calculate the mapping value of each first data frame in the at least one first data frame through the information digest algorithm.

[0096] Exemplarily, taking the information digest algorithm as the HASH algorithm as an example. The first electronic device can calculate the HASH value corresponding to each first data frame as the mapping value of the first data frame.

[0097] It should be noted that after the second electronic device collects the data frame, the original data frame is sent to the first electronic device through the first communication link. The mapping value of the data frame is calculated through the information digest algorithm, and the mapping value and the identification information of the data frame are added to the header of the data packet corresponding to the data frame, and sent to the first electronic device through the second communication link.

[0098] Exemplarily, it is assumed that the second electronic device collects a first data frame, the mapping value of the first data frame is a hash value, and the identification information of the first data frame is frame number information. As shown in FIG. 4, the second electronic device sends the first data frame to the first electronic device through the first communication link. Meanwhile, the second electronic device can add a packet header to the data packet corresponding to the first data frame to obtain a second data frame, where the packet header contains the hash value and the frame number information of the first data frame. Then, the second electronic device can send the second data frame with the added packet header to the first electronic device through the second communication link.

[0099] Step D, the first electronic device determines the identification information of the third data frame as the identification information of the first data frame.

[0100] wherein the mapping value of the third data frame matches the mapping value of the first data frame, and the third data frame is a data frame in the at least one second data frame.

[0101] In some embodiments of the present application, the mapping value of the third data frame matches the mapping value of the first data frame can be understood as that the mapping value of the third data frame is the same as the mapping value of the first data frame. It can be understood that in the case that the mapping value of the third data frame is the same as the mapping value of the first data frame, the first electronic device can determine that the data indicated by the mapping value of the third data frame is the same as the data indicated by the mapping value of the first data frame. That is, the data part of the third data frame is the same as the data part of the first data frame.

[0102] In some embodiments of the present application, after calculating the mapping value of each first data frame, the first electronic device can determine the identification information of the data frame in the at least one second data frame whose mapping value matches the mapping value of the first data frame as the identification information of the first data frame.

[0103] Exemplarily, it is assumed that the first electronic device receives the first data frame 1 and the second data frame 2 through the first communication link, and receives the second data frame 1, the second data frame 2 and the second data frame 3 through the second communication link, and the identification information of the data frame is the frame number information of the data frame. Wherein the packet header of the data packet corresponding to the second data frame 1 contains the mapping value ecd543bc67 and the frame number information 1, the packet header of the data packet corresponding to the second data frame 2 contains the mapping value 78d5ab3b81 and the frame number information 2, and the packet header of the data packet corresponding to the second data frame 3 contains the mapping value aa1b1236ac and the frame number information 3. It is assumed that the first electronic device calculates the mapping value of the first data frame 1 as ecd543bc67, and the mapping value of the first data frame 2 as aa1b1236ac. Based on this, the first electronic device can determine that the identification information of the first data frame 1 received through the first communication link is the frame number information 1, and the identification information of the first data frame 2 is the frame number information 3.

[0104] Thus, the identification information of the first data frame can be obtained based on the identification information and the mapping value in the data frame received through the other communication link without changing the original data frame collected by the second electronic device, so that the first electronic device can restore the playing order of the information frames, and the smoothness of the data frame playing is ensured.

[0105] In step 103, the first electronic device obtains a target data frame based on the data part and the identification information of the at least one first data frame and the data part and the identification information of the at least one second data frame.

[0106] In some embodiments of the present application, the target data frame can be a relatively complete and continuous data frame to be played.

[0107] In some embodiments of the present application, the first electronic device can obtain the target data frame by merging the at least one first data frame and the at least one second data frame based on the identification information of each first data frame and the identification information of each second data frame when there is data loss in the data frame received through the first communication link.

[0108] In some embodiments of the present application, the data loss in the data frame received through the first communication link can be understood as that the data packet corresponding to the data frame is lost in the process of transmission in the first communication link, and the at least one first data frame received by the first electronic device through the first communication link is a discontinuous data frame.

[0109] In some embodiments of the present application, the first electronic device can obtain the complete target data frame by merging the at least one first data frame and the at least one second data frame received and using the at least one second data frame to supplement the lost data frame in the at least one first data frame.

[0110] The data processing method provided by the embodiments of the present application can directly obtain the identification information of the first data frame from the data part of the first data frame or determine the identification information of the first data frame based on the mapping value of the second data frame and the data part of the first data frame during the conversation between the first electronic device and the second electronic device, so that the first electronic device can obtain the identification information of the first data frame without changing the size of the original data frame, so that the data frame carrying the identification information can be transmitted in a relatively short time, the risk of data loss is reduced, and the reliability of the data is improved.

[0111] In some embodiments of the present application, the step 103 can include the following steps 103a and 103b.

[0112] Step 103a, the first electronic device determines a fourth data frame in which the mapping value in the at least one second data frame does not match the mapping value of the at least one first data frame.

[0113] In some embodiments of the present application, the first electronic device can match the mapping value of the second data frame and the mapping value of the first data frame. When the mapping value of a certain second data frame cannot find a matching first data frame, the electronic device can determine that the second data frame is the fourth data frame in which the first communication link is lost.

[0114] For example, it is assumed that the first electronic device receives the first data frame 1 and the second data frame 2 through the first communication link, and receives the second data frame 1, the second data frame 2 and the second data frame 3 through the second communication link. The identification information of the data frame is the frame number information of the data frame. Among them, the data packet header corresponding to the second data frame 1 contains the mapping value ecd543bc67 and the frame number information 1, the data packet header corresponding to the second data frame 2 contains the mapping value 78d5ab3b81 and the frame number information 2, and the data packet header corresponding to the second data frame 3 contains the mapping value aa1b1236ac and the frame number information 3. It is assumed that the first electronic device calculates the mapping value of the first data frame 1 as ecd543bc67, and the mapping value of the first data frame 2 as aa1b1236ac. Based on this, the first electronic device can determine that the identification information of the first data frame 1 received through the first communication link is the frame number information 1, and the identification information of the first data frame 2 is the frame number information 3. In this way, the first electronic device can determine the second data frame 2 received through the second communication link as the fourth data frame in which the first communication link is lost.

[0115] Step 103b, the first electronic device inserts the fourth data frame into the at least one first data frame based on the identification information of the fourth data frame and the identification information of each first data frame to obtain a target data frame.

[0116] In some embodiments of the present application, the first electronic device can align and insert the at least one first data frame based on the identification information of the fourth data frame to obtain a target data frame.

[0117] It should be noted that the mapping value is uniquely determined, for example, a certain segment of data will obtain a 32-byte verification information after MD5 algorithm calculation, and the 32-byte verification information is the mapping value of the segment of data. Therefore, the first electronic device can determine the corresponding data frame according to the mapping value. At the same time, since the mapping value cannot represent the playing order of the data frame, the second electronic device can add an identification information for sorting the data frame in addition to adding the mapping value in the data packet header corresponding to the second data frame.

[0118] In this way, on the one hand, since the lost data frame in the first communication link can be determined through the mapping value of the data frame, the accuracy of determining the lost data frame is ensured. On the other hand, the data frame received through the second communication link can be supplemented into at least one first data frame in which the data frame is lost, so that the smoothness of playing the data frame can be ensured.

[0119] In some embodiments of the present application, after step 101, the data processing method provided by the embodiments of the present application further includes step 104 as follows.

[0120] In step 104, when the link parameter of the first communication link meets the first condition, the first electronic device takes at least one second data frame as a target data frame, and plays the audio data or video data corresponding to the target data frame.

[0121] The first condition includes at least one of the following: the packet loss rate of the first communication link is greater than or equal to a first threshold; and the time delay of the first communication link is greater than or equal to a second threshold.

[0122] In some embodiments of the present application, the packet loss rate can indicate the percentage of the number of data packets corresponding to the lost data frames in the data transmission process in the communication link in the communication network to the total number of data packets corresponding to the transmitted data frames. This indicator is one of the important parameters for measuring the performance of the communication network, which can reflect the reliability and quality of data transmission in the communication network. It can be understood that the lower the packet loss rate, the higher the reliability and quality of data transmission.

[0123] In some embodiments of the present application, the packet loss rate of the first communication link being greater than or equal to the first threshold can be understood as that the communication network corresponding to the first communication link has poor signal quality and low data reliability and quality. Therefore, when the packet loss rate of the first communication link is greater than or equal to the first threshold, the first electronic device can directly take at least one second data frame received through the second communication link as a target data frame.

[0124] In some embodiments of the present application, the time delay mentioned above can indicate the time required for the data frame to be transmitted from one end of the communication link to the other end. It can be understood that the smaller the time delay, the smaller the time difference between the reception and transmission of the data frame, and the higher the reliability of the data frame.

[0125] In some embodiments of the present application, the time delay of the first communication link being greater than or equal to the second threshold can be understood as that the communication network corresponding to the first communication link has poor signal quality, slow data frame transmission, and low data reliability. Therefore, when the time delay of the first communication link is greater than or equal to the second threshold, the first electronic device can directly take at least one second data frame received through the second communication link as a target data frame.

[0126] In some embodiments of the present application, the first threshold and the second threshold can be set by a user or be default of the first electronic device. The embodiments of the present application are not limited in this way.

[0127] In this way, when the link parameters of the first communication link meet the first condition, the first electronic device can determine that the link quality of the first communication link is poor at this time, and the reliability of the call data received by the first communication link is low. Therefore, the first electronic device can directly play the at least one second data frame received by the second communication link as the target data frame, thereby ensuring the reliability of the call data received by the first electronic device.

[0128] In some embodiments of the present application, the "playing the audio data or the video data corresponding to the target data frame" in the step 104 can include any one of the following: a step E, a step F, and a step G.

[0129] The step E includes that the first electronic device plays the audio data or the video data corresponding to the at least one first data frame in a mute mode, but does not play the audio data or the video data corresponding to the target data frame in a mute mode.

[0130] The step F includes that the first electronic device plays the audio data or the video data corresponding to the at least one first data frame at a first volume, and plays the audio data or the video data corresponding to the target data frame at a second volume.

[0131] The second volume is greater than the first volume.

[0132] The step G includes that the first electronic device plays the audio data or the video data corresponding to the target data frame, and does not play the audio data or the video data corresponding to the at least one first data frame.

[0133] In some embodiments of the present application, the first electronic device plays the audio data or the video data corresponding to the target data frame, and does not play the audio data or the video data corresponding to the at least one first data frame can be understood as that the first electronic device closes the voice transmission of the at least one first data frame received through the first communication link to the audio playing module, and opens the voice transmission of the at least one second data frame received through the second communication link to the audio playing module.

[0134] In this way, by playing only the target data frame or adjusting the volume of the target data frame, the user can only hear the data frame received by the high-quality communication link, thereby improving the call quality.

[0135] In some embodiments of the present application, before the step 101, the data processing method provided by the embodiments of the present application can further include the following step 105.

[0136] Step 105, in a case that the first communication link is established with the second electronic device, if the first communication link satisfies a second condition, the first electronic device establishes a second communication link with the second electronic device.

[0137] The second condition includes at least one of the following:

[0138] Reference Signal Receiving Power (RSRP) of the first communication link is less than or equal to a third threshold value;

[0139] Signal to Interference plus Noise Ratio (SINR) of the first communication link is less than or equal to a fourth threshold value;

[0140] Signal transmission power of the first communication link is less than or equal to a fifth threshold value;

[0141] Channel resources corresponding to the first communication link are less than or equal to a sixth threshold value.

[0142] In some embodiments of the present application, the first communication link satisfying the second condition can be understood as that the first communication link is deteriorated, the quality of the data frame transmitted through the first communication link is deteriorated, and the reliability is reduced. In this way, the first electronic device can establish the second communication link with the second electronic device, so as to compensate for the first communication link through the second communication link, so that the received data frame can be as complete and reliable as possible.

[0143] In some embodiments of the present application, the third threshold value, the fourth threshold value, the fifth threshold value and the sixth threshold value can be set by the user, or can be default of the first electronic device. The embodiments of the present application are not limited specifically.

[0144] In this way, the second communication link between the first electronic device and the second electronic device can be established when the first communication link satisfies the second condition, so as to avoid unnecessary data transmission and save the resources of the first electronic device.

[0145] An embodiment of the present application provides a data processing method, and FIG. 5 shows a flowchart of a data processing method provided by an embodiment of the present application. The method can be applied to a second electronic device. As shown in FIG. 5, the data transmission processing provided by an embodiment of the present application can include the following steps 201 and 202.

[0146] Step 201, the second electronic device acquires at least one first data frame and at least one second data frame.

[0147] In the embodiment of the present application, the step 201 can include the following step 201a or step 201b.

[0148] In step 201a, the second electronic device acquires at least one first data frame, a third byte or a third bit in a data part of the first data frame includes identification information of the first data frame; and based on the at least one first data frame, obtains at least one second data frame.

[0149] In step 201b, the second electronic device acquires at least one first data frame; and processes the at least one first data frame to obtain at least one second data frame, the at least one second data frame includes identification information and a mapping value.

[0150] In step 202, the second electronic device sends the at least one first data frame through a first communication link, and sends the at least one second data frame through a second communication link.

[0151] The first communication link and the second communication link are communication links established for the same communication service, and the first communication link and the second communication link are communication links between the first electronic device and the second electronic device.

[0152] It should be noted that the detailed description of the above steps 201 and 202 and steps 201a and 201b can refer to the related description of steps 101 to 105. To avoid repetition, it will not be described here.

[0153] The data processing method provided by the embodiments of the present application can directly obtain the identification information of the first data frame from the data part of the first data frame, or determine the identification information of the first data frame based on the mapping value of the second data frame and the data part of the first data frame during the communication between the first electronic device and the second electronic device. Therefore, the first electronic device can obtain the identification information of the first data frame without changing the size of the original data frame, so that the data frame carrying the identification information can be transmitted in a short time, reducing the risk of data loss and improving the reliability of the data.

[0154] It should be noted that in the data processing method provided by the embodiments of the present application, the first electronic device and the second electronic device can be interchanged. In other words, during the communication between the first electronic device and the second electronic device, the first electronic device and the second electronic device can be both the sending end device of the data frame and the receiving end device of the data frame. That is, the second electronic device can also execute the above steps 101 to 105; and the first electronic device can also execute the above steps 201 and 202.

[0155] The above-mentioned various method embodiments, or various possible implementations of the various method embodiments, can be executed alone or in any two or more combinations, and can be determined according to actual use requirements, which are not limited in the embodiments of the present application.

[0156] The embodiments of the present application provide a data processing method, and FIG. 6 shows a flowchart of a data processing method provided by the embodiments of the present application, which can be applied to a first electronic device and a second electronic device. As shown in FIG. 6, the data processing method provided by the embodiments of the present application can include the following steps 301 to 307.

[0157] In step 301, the second electronic device acquires at least one fourth data frame.

[0158] In step 302, the second electronic device replaces a first byte or a first bit in a data part of each fourth data frame with identification information, to obtain at least one first data frame.

[0159] In step 303, the second electronic device copies the at least one first data frame to obtain at least one second data frame.

[0160] In step 304, the second electronic device sends the at least one first data frame through a first communication link, and sends the at least one second data frame through a second communication link.

[0161] In step 305, the first electronic device receives the at least one first data frame through the first communication link, and receives the at least one second data frame through the second communication link.

[0162] In step 306, the first electronic device parses a data part of the at least one first data frame to obtain identification information of each first data frame, and acquires identification information of each second data frame from the at least one second data frame.

[0163] In step 307, the first electronic device combines the at least one first data frame and the at least one second data frame based on the identification information of each first data frame and the identification information of each second data frame, to obtain a target data frame.

[0164] In this way, during the process of the first electronic device communicating with the second electronic device, since the identification information of the first data frame can be directly acquired from the data part of the first data frame, or the identification information of the first data frame is determined based on the mapping value of the second data frame and the data part of the first data frame, the first electronic device can acquire the identification information of the first data frame without changing the size of the original data frame, so that the data frame carrying the identification information can be transmitted in a short time, the risk of data loss is reduced, and the reliability of the data is improved.

[0165] The data processing method provided in the embodiments of the present application can be executed by a data processing device. The data processing device is taken as an example to illustrate the data processing device provided in the embodiments of the present application.

[0166] FIG. 7 shows a possible structural schematic diagram of the data processing device involved in the embodiments of the present application. As shown in FIG. 7, the data processing device 70 can include a receiving module 71 and a processing module 72.

[0167] The receiving module 71 is configured to receive at least one first data frame through a first communication link and receive at least one second data frame through a second communication link, wherein the first communication link and the second communication link are communication links established for a same communication service, and the first communication link and the second communication link are communication links between a first electronic device and a second electronic device. The processing module 72 is configured to acquire data portions and identification information of the at least one first data frame received by the receiving module 71, and acquire data portions and identification information of the at least one second data frame received by the receiving module 71, and obtain a target data frame based on the data portions and the identification information of the at least one first data frame and the data portions and the identification information of the at least one second data frame.

[0168] The processing module 72 is specifically configured to perform any one of the following:

[0169] The identification information of each first data frame is acquired from the data portion of the at least one first data frame, and the identification information of each second data frame is acquired from the at least one second data frame.

[0170] The identification information and a mapping value of each second data frame are acquired from the at least one second data frame, and the identification information of each first data frame is determined based on the mapping value of the at least one second data frame and the data portion of the at least one first data frame.

[0171] In a possible implementation, the processing module 72 is specifically configured to:

[0172] The identification information of each first data frame is acquired from a first byte or a first bit of the data portion of each first data frame, respectively.

[0173] The identification information of each second data frame is acquired from a second byte or a second bit of the data portion of each second data frame, respectively.

[0174] In a possible implementation, the second data frame includes the identification information of the second data frame and a mapping value of the second data frame.

[0175] The processing module 72 is specifically configured to:

[0176] determine a mapping value of each first data frame according to a data part of each first data frame respectively;

[0177] determine the identification information of the third data frame as the identification information of the first data frame, the mapping value of the third data frame matches the mapping value of the first data frame, and the third data frame is a data frame in the at least one second data frame.

[0178] In a possible implementation, the processing module 72 is specifically configured to:

[0179] determine a fourth data frame in which the mapping value does not match the mapping value of the at least one first data frame;

[0180] insert the fourth data frame into the at least one first data frame based on the identification information of the fourth data frame and the identification information of each first data frame, to obtain a target data frame.

[0181] In a possible implementation, the apparatus further includes a playing module.

[0182] The processing module 72 is further configured to, after the receiving module 71 receives the at least one first data frame through the first communication link and receives the at least one second data frame through the second communication link, in a case where a link parameter of the first communication link meets a first condition, take the at least one second data frame as the target data frame.

[0183] The playing module is configured to play audio data or video data corresponding to the target data frame obtained by the processing module 72.

[0184] The first condition includes at least one of the following:

[0185] a packet loss rate of the first communication link is greater than or equal to a first threshold value;

[0186] a time delay of the first communication link is greater than or equal to a second threshold value.

[0187] In a possible implementation, the playing module is specifically configured to:

[0188] mute the audio data or the video data corresponding to the at least one first data frame, and not mute the audio data or the video data corresponding to the target data frame; or

[0189] play the audio data or the video data corresponding to the at least one first data frame at a first volume, and play the audio data or the video data corresponding to the target data frame at a second volume, the second volume being greater than the first volume; or

[0190] play the audio data or the video data corresponding to the target data frame, and not play the audio data or the video data corresponding to the at least one first data frame.

[0191] In a possible implementation, the processing module 72 is further configured to, before the receiving module 71 receives at least one first data frame through the first communication link and receives at least one second data frame through the second communication link, if the first communication link meets a second condition, establish the second communication link with the second electronic device in the case that the first communication link is established with the second electronic device.

[0192] The second condition includes at least one of the following:

[0193] Reference signal receiving power (RSRP) of the first communication link is less than or equal to a third threshold value;

[0194] Signal-to-noise ratio (SINR) of the first communication link is less than or equal to a fourth threshold value;

[0195] Signal transmission power of the first communication link is less than or equal to a fifth threshold value;

[0196] Channel resources corresponding to the first communication link are less than or equal to a sixth threshold value.

[0197] In a possible implementation, the first communication link is a call link, and the second communication link is a network link.

[0198] The embodiment of the present application provides a data processing apparatus. In the process of the data processing apparatus calling the second electronic device, the identification information of the first data frame can be directly obtained from the data part of the first data frame, or the identification information of the first data frame is determined based on the mapping value of the second data frame and the data part of the first data frame, so that the identification information of the first data frame can be obtained without changing the size of the original data frame, so that the data frame carrying the identification information can be transmitted in a short time, the risk of data loss is reduced, and the reliability of the data is improved.

[0199] FIG. 8 shows a possible structural schematic diagram of a data processing apparatus involved in the embodiment of the present application. As shown in FIG. 8, the data processing apparatus 80 can include a processing module 81 and a sending module 82.

[0200] The processing module 81 is configured to obtain at least one first data frame and at least one second data frame. The sending module 82 is configured to send the at least one first data frame obtained by the processing module 81 through the first communication link, and send the at least one second data frame obtained by the processing module 81 through the second communication link. The first communication link and the second communication link are communication links established for the same communication service, and the first communication link and the second communication link are communication links between the first electronic device and the second electronic device.

[0201] The processing module 81 is specifically configured to perform any of the following:

[0202] obtaining at least one first data frame, a third byte or a third bit in a data part of the first data frame comprising identification information of the first data frame; and obtaining at least one second data frame based on the at least one first data frame;

[0203] obtaining at least one first data frame; and processing the at least one first data frame to obtain at least one second data frame, the at least one second data frame comprising identification information and a mapping value.

[0204] The embodiments of the present application provide a data processing apparatus. In the process of communication between a first electronic device and the data processing apparatus, the identification information of the first data frame can be directly obtained from the data part of the first data frame, or the identification information of the first data frame can be determined based on the mapping value of the second data frame and the data part of the first data frame. Therefore, the identification information of the first data frame can be obtained by the first electronic device without changing the size of the original data frame. The data frame carrying the identification information can be transmitted in a short time, the risk of data loss is reduced, and the reliability of the data is improved.

[0205] The data processing apparatus in the embodiments of the present application can be an electronic device or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices except the terminal. For example, the electronic device can be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a mobile Internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The electronic device can also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc. The embodiments of the present application are not limited in this regard.

[0206] The data processing apparatus in the embodiments of the present application can be a device with an operating system. The operating system can be an Android operating system, an iOS operating system, or other possible operating systems. The embodiments of the present application are not limited in this regard.

[0207] The data processing apparatus provided in the embodiments of the present application can realize each process realized by the data processing method embodiments and achieve the same technical effects. To avoid repetition, details are not described herein.

[0208] Optionally, as shown in FIG. 9, the embodiments of the present application further provide an electronic device 900, which includes a processor 901 and a memory 902, and the memory 902 stores programs or instructions executable on the processor 901. When the programs or instructions are executed by the processor 901, each step of the above-mentioned data processing method embodiments is realized, and the same technical effects can be achieved. To avoid repetition, details are not described herein.

[0209] It should be noted that the electronic device in the embodiments of the present application includes the mobile electronic device and the non-mobile electronic device described above.

[0210] FIG. 10 is a schematic diagram of a hardware structure of an electronic device for implementing the embodiments of the present application.

[0211] The electronic device 1000 includes but is not limited to the following components: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010, etc.

[0212] Those skilled in the art can understand that the electronic device 1000 can further include a power supply (such as a battery) for supplying power to each component, and the power supply can be logically connected to the processor 1010 through a power management system, so as to realize the functions of power management, such as charging, discharging, and power consumption management, through the power management system. The electronic device structure shown in FIG. 10 does not constitute a limitation on the electronic device, and the electronic device can include more or fewer components than those shown, or combine certain components, or different component arrangements, which are not described herein.

[0213] The radio frequency unit 1001 is configured to receive at least one first data frame through a first communication link and receive at least one second data frame through a second communication link, wherein the first communication link and the second communication link are communication links established for the same communication service, and the first communication link and the second communication link are communication links between the first electronic device and the second electronic device. The processor 1010 is configured to obtain data portions and identification information of the at least one first data frame received by the radio frequency unit 1001, and obtain data portions and identification information of the at least one second data frame received by the radio frequency unit 1001, and obtain target data frames based on the data portions and the identification information of the at least one first data frame and the data portions and the identification information of the at least one second data frame.

[0214] The processor 1010 is specifically configured to perform any one of the following:

[0215] Obtain the identification information of each first data frame from the data part of the at least one first data frame, and obtain the identification information of each second data frame from the at least one second data frame;

[0216] Obtain the identification information and the mapping value of each second data frame from the at least one second data frame, and determine the identification information of each first data frame based on the mapping value of the at least one second data frame and the data part of the at least one first data frame.

[0217] In a possible implementation, the processor 1010 is specifically configured to perform the following:

[0218] Obtain the identification information of each first data frame from the first byte or the first bit of the data part of each first data frame, respectively;

[0219] Obtain the identification information of each second data frame from the second byte or the second bit of the data part of each second data frame, respectively.

[0220] In a possible implementation, the second data frame includes the identification information of the second data frame and the mapping value of the second data frame.

[0221] The processor 1010 is specifically configured to perform the following:

[0222] Determine the mapping value of each first data frame according to the data part of each first data frame, respectively;

[0223] Determine the identification information of the third data frame as the identification information of the first data frame, the mapping value of the third data frame matches the mapping value of the first data frame, and the third data frame is a data frame in the at least one second data frame.

[0224] In a possible implementation, the processor 1010 is specifically configured to perform the following:

[0225] Determine a fourth data frame in which the mapping value of the at least one second data frame does not match the mapping value of the at least one first data frame;

[0226] Insert the fourth data frame into the at least one first data frame based on the identification information of the fourth data frame and the identification information of each first data frame to obtain a target data frame.

[0227] In a possible implementation, the processor 1010 is further configured to, after the radio frequency unit 1001 receives at least one first data frame through the first communication link and receives at least one second data frame through the second communication link, take the at least one second data frame as the target data frame in a case where a link parameter of the first communication link meets a first condition.

[0228] The audio output unit 1003 is configured to play audio data or video data corresponding to the target data frame obtained by the processor 1010.

[0229] The first condition includes at least one of the following:

[0230] A packet loss rate of the first communication link is greater than or equal to a first threshold value.

[0231] A time delay of the first communication link is greater than or equal to a second threshold value.

[0232] In a possible implementation, the audio output unit 1003 is specifically configured to:

[0233] Mute the audio data or video data corresponding to the at least one first data frame, and not mute the audio data or video data corresponding to the target data frame; or

[0234] Play the audio data or video data corresponding to the at least one first data frame at a first volume, and play the audio data or video data corresponding to the target data frame at a second volume, the second volume being greater than the first volume; or

[0235] Play the audio data or video data corresponding to the target data frame, and not play the audio data or video data corresponding to the at least one first data frame.

[0236] In a possible implementation, the processor 1010 is further configured to, before the radio frequency unit 1001 receives at least one first data frame through the first communication link and receives at least one second data frame through the second communication link, establish the second communication link with the second electronic device in a case where the first communication link meets a second condition.

[0237] The second condition includes at least one of the following:

[0238] A reference signal received power (RSRP) of the first communication link is less than or equal to a third threshold value.

[0239] A signal-to-noise ratio (SINR) of the first communication link is less than or equal to a fourth threshold value.

[0240] A signal transmission power of the first communication link is less than or equal to a fifth threshold value.

[0241] The channel resources corresponding to the first communication link are less than or equal to the sixth threshold.

[0242] In one possible implementation, the first communication link is a voice link, and the second communication link is a network link.

[0243] This application provides an electronic device in which, during a conversation between a first electronic device and a second electronic device, the identification information of the first data frame can be obtained directly from the data portion of the first data frame, or determined based on the mapping value of the second data frame and the data portion of the first data frame. Therefore, without changing the size of the original data frame, the first electronic device can obtain the identification information of the first data frame, thereby enabling the data frame carrying the identification information to be transmitted in a shorter time, reducing the risk of data loss and improving data reliability.

[0244] When the electronic device is a second electronic device, the processor 1010 is used to acquire at least one first data frame and at least one second data frame; the radio frequency unit 1001 is used to send at least one first data frame acquired by the processor 1010 through a first communication link, and send at least one second data frame acquired by the processor 1010 through a second communication link; the first communication link and the second communication link are communication links established for the same communication service, and the first communication link and the second communication link are communication links between the first electronic device and the second electronic device;

[0245] Specifically, processor 1010 is used for any of the following:

[0246] At least one first data frame is acquired, wherein the third byte or third bit in the data portion of the first data frame includes the identification information of the first data frame; and at least one second data frame is obtained based on the at least one first data frame.

[0247] Acquire at least one first data frame; and process the at least one first data frame to obtain at least one second data frame, wherein the at least one second data frame includes identification information and mapping value.

[0248] This application provides an electronic device in which, during a conversation between a first electronic device and a second electronic device, the identification information of the first data frame can be obtained directly from the data portion of the first data frame, or determined based on the mapping value of the second data frame and the data portion of the first data frame. Therefore, without changing the size of the original data frame, the first electronic device can obtain the identification information of the first data frame, thereby enabling the data frame carrying the identification information to be transmitted in a shorter time, reducing the risk of data loss and improving data reliability.

[0249] It should be understood that in the embodiments of the present application, the input unit 1004 can include a graphics processor (GPU) 10041 and a microphone 10042. The graphics processor 10041 processes image data of a still picture or a video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 1006 can include a display panel 10061, which can be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 can include two parts of a touch detection device and a touch controller. The other input devices 10072 can include, but are not limited to, a physical keyboard, function keys (such as volume control keys, on-off keys, etc.), a trackball, a mouse, a joystick, and the like, which will not be described here.

[0250] The memory 1009 can be used to store software programs and various data. The memory 1009 can mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area can store an operating system, application programs or instructions required by at least one function (such as a sound playing function, an image playing function, etc.), etc. In addition, the memory 1009 can include a volatile memory or a non-volatile memory, or the memory 1009 can include both volatile and non-volatile memories. The non-volatile memory can be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically EPROM (EEPROM), or a flash memory. The volatile memory can be a Random Access Memory (RAM), a Static RAM (SRAM), a Dynamic RAM (DRAM), a Synchronous DRAM (SDRAM), a Double Data Rate SDRAM (DDR SDRAM), an Enhanced SDRAM (ESDRAM), a Synch link DRAM (SLDRAM), and a Direct Rambus RAM (DRRAM). The memory 1009 in the embodiments of the present application includes but is not limited to these and any other suitable types of memories.

[0251] The processor 1010 can include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and an application program, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 1010.

[0252] The embodiments of the present application also provide a readable storage medium, the readable storage medium stores programs or instructions, the programs or instructions are executed by a processor to realize various processes of the above-mentioned data processing method embodiments, and the same technical effects can be achieved. To avoid repetition, details are not described here.

[0253] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes a computer readable storage medium, such as a computer readable only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0254] The embodiment of the present application further provides a chip, which comprises a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running programs or instructions to realize the processes of the above data processing method embodiments and achieve the same technical effects. To avoid repetition, details are not described here.

[0255] It should be understood that the chip mentioned in the embodiment of the present application can also be referred to as a system level chip, a system chip, a chip system or a system on chip, etc.

[0256] The embodiment of the present application provides a computer program product, which is stored in a storage medium, and is executed by at least one processor to realize the processes of the above data processing method embodiments and achieve the same technical effects. To avoid repetition, details are not described here.

[0257] It should be noted that in this document, the term "comprising" or "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. Without more limitations, the element defined by the statement "comprising a" does not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the method and device in the embodiment of the present application is not limited to the order of performing the functions as shown or discussed, but can also include performing the functions in a substantially simultaneous manner or in the opposite order, for example, the described method can be performed in an order different from that described, and various steps can also be added, omitted or combined. In addition, the features described with reference to some examples can be combined in other examples.

[0258] Through the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned example methods can be realized by means of software and a necessary general hardware platform, and of course, can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a computer software product in essence or in the form of a part that contributes to the prior art, which is stored in a storage medium (such as a ROM / RAM, a magnetic disc, an optical disc), and includes a plurality of instructions for causing a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application.

[0259] The embodiments of the present application are described above in combination with the drawings, but the present application is not limited to the above-mentioned specific embodiments, and the above-mentioned specific embodiments are only illustrative and not restrictive. Those skilled in the art can make many forms under the inspiration of the present application without departing from the scope of the present application and the scope protected by the claims.

Claims

1. A data processing method applied to a first electronic device, the method comprising: receiving at least one first data frame through a first communication link and receiving at least one second data frame through a second communication link, wherein the first communication link and the second communication link are communication links established for a same communication service, and the first communication link and the second communication link are communication links between the first electronic device and a second electronic device; obtaining data portions and identification information of the at least one first data frame, and obtaining data portions and identification information of the at least one second data frame; and obtaining a target data frame based on the data portions and the identification information of the at least one first data frame and the data portions and the identification information of the at least one second data frame, wherein the obtaining the data portions and the identification information of the at least one first data frame and the obtaining the data portions and the identification information of the at least one second data frame comprise any one of the following: obtaining identification information of each of the first data frames from the data portions of the at least one first data frame, and obtaining identification information of each of the second data frames from the at least one second data frame; obtaining identification information and a mapping value of each of the second data frames from the at least one second data frame, and determining identification information of each of the first data frames based on the mapping value of the at least one second data frame and the data portions of the at least one first data frame. the obtaining the identification information of each of the first data frames from the data portions of the at least one first data frame comprises: obtaining the identification information of each of the first data frames from a first byte or a first bit of the data portion of each of the first data frames, respectively; the obtaining the identification information of each of the second data frames from the at least one second data frame comprises: obtaining the identification information of each of the second data frames from a second byte or a second bit of the data portion of each of the second data frames, respectively. the second data frame comprises the identification information of the second data frame and a mapping value of the second data frame; the determining the identification information of each of the first data frames based on the mapping value of the at least one second data frame and the data portions of the at least one first data frame comprises: determining a mapping value of each of the first data frames according to the data portion of each of the first data frames, respectively; the determining the target data frame based on the data portions and the identification information of the at least one first data frame and the data portions and the identification information of the at least one second data frame comprises: determining a fourth data frame in the at least one second data frame, for which the mapping value does not match a mapping value of the at least one first data frame, and determining the target data frame as a third data frame in the at least one second data frame, for which the mapping value matches the mapping value of the first data frame. ​ ​ ​ ​ ​ ​ 2. The method of claim 1, wherein, ​ ​ ​ ​ 3. The method of claim 1, wherein, ​ ​ ​ ​ 4. The method of claim 3, wherein, ​ ​ According to the identification information of the fourth data frame and the identification information of each first data frame, the fourth data frame is inserted into the at least one first data frame to obtain a target data frame.

5. The method of claim 1, wherein, After receiving the at least one first data frame through the first communication link and receiving the at least one second data frame through the second communication link, the method further comprises: In a case where the link parameter of the first communication link meets a first condition, the at least one second data frame is taken as a target data frame, and audio data or video data corresponding to the target data frame is played; The first condition comprises at least one of the following: The packet loss rate of the first communication link is greater than or equal to a first threshold value; The time delay of the first communication link is greater than or equal to a second threshold value.

6. The method of claim 5, wherein, The playing of the audio data or the video data corresponding to the target data frame comprises: The audio data or the video data corresponding to the at least one first data frame is played in silence, and the audio data or the video data corresponding to the target data frame is not played in silence; or The audio data or the video data corresponding to the at least one first data frame is played at a first volume, and the audio data or the video data corresponding to the target data frame is played at a second volume, the second volume being greater than the first volume; or The audio data or the video data corresponding to the target data frame is played, and the audio data or the video data corresponding to the at least one first data frame is not played.

7. The method of claim 1, wherein, Before receiving the at least one first data frame through the first communication link and receiving the at least one second data frame through the second communication link, the method further comprises: In a case where the first communication link is established with the second electronic device, if the first communication link meets a second condition, the second communication link between the second electronic device is established; The second condition comprises at least one of the following: The reference signal receiving power (RSRP) of the first communication link is less than or equal to a third threshold value; The signal-to-noise ratio (SINR) of the first communication link is less than or equal to a fourth threshold value; The signal transmission power of the first communication link is less than or equal to a fifth threshold value; The channel resource corresponding to the first communication link is less than or equal to a sixth threshold value.

8. The method according to any one of claims 1 to 7, wherein, The first communication link is a call link, and the second communication link is a network link.

9. A data processing method applied to a second electronic device, the method comprising: obtaining at least one first data frame and at least one second data frame; sending the at least one first data frame through a first communication link and sending the at least one second data frame through a second communication link; the first communication link and the second communication link are communication links established for the same communication service, and the first communication link and the second communication link are communication links between the first electronic device and the second electronic device; The obtaining of the at least one first data frame and the at least one second data frame comprises any one of the following: obtaining at least one first data frame, a third byte or a third bit in a data part of the first data frame comprising identification information of the first data frame; and obtaining at least one second data frame based on the at least one first data frame; obtaining at least one first data frame; and processing the at least one first data frame to obtain at least one second data frame, the at least one second data frame comprising identification information and a mapping value.

10. A data processing apparatus for use in a first electronic device, the apparatus comprising: a receiving module and a processing module; the receiving module is configured to receive at least one first data frame through a first communication link and receive at least one second data frame through a second communication link, wherein the first communication link and the second communication link are communication links established for a same communication service, and the first communication link and the second communication link are communication links between the first electronic device and a second electronic device; the processing module is configured to obtain a data part and identification information of the at least one first data frame received by the receiving module, and obtain a data part and identification information of the at least one second data frame received by the receiving module; the processing module is further configured to obtain a target data frame based on the data part and the identification information of the at least one first data frame and the data part and the identification information of the at least one second data frame; the processing module is specifically configured to perform any one of the following: obtain the identification information of each first data frame from the data part of the at least one first data frame, and obtain the identification information of each second data frame from the at least one second data frame; obtain the identification information and the mapping value of each second data frame from the at least one second data frame, and determine the identification information of each first data frame based on the mapping value of the at least one second data frame and the data part of the at least one first data frame.

11. The apparatus of claim 10, wherein, the processing module is specifically configured to: obtain the identification information of each first data frame from a first byte or a first bit of the data part of each first data frame, respectively; obtain the identification information of each second data frame from a second byte or a second bit of the data part of each second data frame, respectively.

12. The apparatus of claim 10, wherein, the second data frame comprises the identification information of the second data frame and a mapping value of the second data frame; the processing module is specifically configured to: determine the mapping value of each first data frame according to the data part of each first data frame, respectively; determine the identification information of the third data frame as the identification information of the first data frame, the mapping value of the third data frame matches the mapping value of the first data frame, and the third data frame is a data frame in the at least one second data frame.

13. The apparatus of claim 12, wherein, the processing module is specifically configured to: determine a fourth data frame in the at least one second data frame, the mapping value of which does not match the mapping value of the at least one first data frame; insert the fourth data frame into the at least one first data frame based on the identification information of the fourth data frame and the identification information of each first data frame to obtain a target data frame.

14. The apparatus of claim 10, wherein, the apparatus further comprises a playing module; The processing module is further configured to, after the receiving module receives at least one first data frame through a first communication link and receives at least one second data frame through a second communication link, take the at least one second data frame as a target data frame in a case where a link parameter of the first communication link meets a first condition. The playing module is configured to play audio data or video data corresponding to the target data frame obtained by the processing module. The first condition includes at least one of the following: A packet loss rate of the first communication link is greater than or equal to a first threshold value. A time delay of the first communication link is greater than or equal to a second threshold value.

15. The apparatus of claim 14, wherein, The playing module is specifically configured to: Mute the audio data or video data corresponding to the at least one first data frame, and not mute the audio data or video data corresponding to the target data frame; or Play the audio data or video data corresponding to the at least one first data frame at a first volume, and play the audio data or video data corresponding to the target data frame at a second volume, the second volume being greater than the first volume; or Play the audio data or video data corresponding to the target data frame, and do not play the audio data or video data corresponding to the at least one first data frame. The processing module is further configured to, before the receiving module receives at least one first data frame through a first communication link and receives at least one second data frame through a second communication link, establish the second communication link between the first electronic device and the second electronic device in a case where the first communication link meets a second condition when the first communication link is established with the second electronic device.

16. The apparatus of claim 10, wherein, The second condition includes at least one of the following: A reference signal receiving power (RSRP) of the first communication link is less than or equal to a third threshold value. A signal-to-noise ratio (SINR) of the first communication link is less than or equal to a fourth threshold value. A signal transmission power of the first communication link is less than or equal to a fifth threshold value. A channel resource corresponding to the first communication link is less than or equal to a sixth threshold value. The first communication link is a call link, and the second communication link is a network link.

17. The apparatus of any one of claims 10 to 16, wherein, A processing module and a sending module; 18. A data processing apparatus for use in a second electronic device, the apparatus comprising: The processing module is configured to obtain at least one first data frame and at least one second data frame. The sending module is configured to send the at least one first data frame obtained by the processing module through a first communication link, and send the at least one second data frame obtained by the processing module through a second communication link; the first communication link and the second communication link are communication links established for a same communication service, and the first communication link and the second communication link are communication links between the first electronic device and a second electronic device. The processing module is specifically configured to perform any one of the following: Obtain at least one first data frame, a third byte or a third bit in a data part of the first data frame including identification information of the first data frame; and obtain at least one second data frame based on the at least one first data frame. ​ obtaining at least one first data frame; and processing the at least one first data frame to obtain at least one second data frame, wherein the at least one second data frame comprises identification information and mapping values.

19. An electronic device, comprising a processor and a memory, wherein the memory stores programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement the data processing method according to any one of claims 1 to 8, or implement the steps of the data processing method according to claim 9.

20. A readable storage medium, wherein the readable storage medium stores programs or instructions, and the programs or instructions, when executed by a processor, implement the data processing method according to any one of claims 1 to 8, or implement the steps of the data processing method according to claim 9.

21. A computer program product, wherein the computer program product is stored in a storage medium, and the computer program product is executed by at least one processor to implement the data processing method according to any one of claims 1 to 8, or implement the steps of the data processing method according to claim 9.

22. A user equipment (UE), wherein the UE is configured to implement the data processing method according to any one of claims 1 to 8, or implement the data processing method according to claim 9.

Citation Information

Patent Citations

  • Audio data playing method, device and terminal

    CN106653068A

  • Audio data processing method based on Bluetooth communication, terminal device, and storage medium

    CN109451346A

  • Data processing method and device, electronic equipment, medium and computer program product

    CN119210654A

  • A method, a system and a stratrgy and control server for implementing stream media service

    WO2009043291A1