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

By directly obtaining identification information from the data part of the data frame during the electronic device call or determining identification information based on the mapping value, the problem of extended data transmission time and increased risk of loss in the prior art is solved, and the rapid reliability of data transmission is achieved .

CN119210654AActive Publication Date: 2024-12-27VIVO MOBILE COMM CO LTD

Patent Information

Application Number
CN202411343731.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-25
Publication Date
2024-12-27
Estimated Expiration
2044-09-25

AI Technical Summary

Technical Problem

Prior art During electronic device calls, the data transmission time is extended and the risk of loss is increased due to the need to add a numbered field to the header of the data packet sent in each communication link to find lost data.

Method used

By acquiring identification information in the data part of the first data frame, or determining identification information based on the mapping value of the second data frame and the data part of the first data frame, the identification information of the data frame is directly obtained, so that the original data frame size is not changed In the case of rapid completion of data transmission and reduced risk of loss.

Benefits of technology

It improves the reliability and speed of data transmission, reduces the risk of data loss, and simplifies the analysis process of data frames.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119210654A_ABST
    Figure CN119210654A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method and device, electronic equipment, a medium and a computer program product, and belongs to the technical field of communication, and the method comprises the steps that first electronic equipment 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; acquiring identification information of each first data frame from the data part 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, obtaining the identification information and the mapping value of each second data frame from the at least one second data frame, and determining 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; and obtaining 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.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and specifically relates to a data processing method, device, electronic device, medium and computer program product. Background Art

[0002] At present, electronic devices such as mobile phones have become one of the most commonly used products in people's daily lives. Among them, using electronic devices to make calls is the most basic requirement of most users for electronic devices. Among them, in order to avoid call abnormalities caused by poor signals of the network operator providing call services during the call, two communication links can usually be established between the two electronic devices making the call, so that the electronic devices can transmit pulse code modulation (PCM) data to the electronic device at the other end through the two communication links, so that when the data of one of the communication links is lost, the call data received by the other communication link can be used to compensate for the lost data.

[0003] Typically, electronic devices can add a numbering field to the packet header after encapsulating PCM data into data packets, so that when data on one of the communication links is lost, the lost data can be found from the data received from another communication link based on the number in the packet header to compensate.

[0004] However, in the above data compensation method, the electronic device needs to add a number field in the packet header of each data frame sent in each link to find the lost data frame, which increases the amount of data transmitted, thus increasing the data transmission time and the risk of data loss. Summary of the invention

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

[0006] In a first aspect, an embodiment of the present application provides a data processing method, which is 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 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; obtaining a data portion and identification information of at least one first data frame, and obtaining a data portion and identification information of at least one second data frame; obtaining a target data frame based on the data portion and identification information of at least one first data frame, and the data portion and identification information of at least one second data frame; wherein obtaining the data portion and identification information of at least one first data frame, and obtaining the data portion and identification information of at least one second data frame includes any of the following: obtaining identification information of each first data frame from the data portion of at least one first data frame, and obtaining identification information of each second data frame from at least one second data frame; obtaining identification information and mapping value of each second data frame from at least one second data frame, and determining the identification information of each first data frame based on the mapping value of at least one second data frame and the data portion of at least one first data frame.

[0007] In a second aspect, an embodiment of the present application provides a data processing method, which is applied to a second electronic device, the method comprising: acquiring at least one first data frame and at least one second data frame; sending at least one first data frame through a first communication link, and sending 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; wherein, acquiring at least one first data frame and at least one second data frame comprises any one of the following items: acquiring at least one first data frame, the third byte or third bit in the data part of the first data frame includes identification information of the first data frame; and based on at least one first data frame, obtaining at least one second data frame; acquiring at least one first data frame; and processing at least one first data frame to obtain at least one second data frame, at least one second data frame including identification information and mapping value.

[0008] In a third aspect, an embodiment of the present application provides a data processing device, which includes: a receiving module and a processing module; the receiving module is used to receive at least one first data frame through a first communication link, and to 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 a first electronic device and a second electronic device; the processing module is used to obtain a data portion and identification information of at least one first data frame received by the receiving module, and to obtain a data portion and identification information of at least one second data frame received by the receiving module; the processing module is also used to obtain a target data frame based on the data portion and identification information of at least one first data frame, and the data portion and identification information of at least one second data frame; wherein the processing module is specifically used for any of the following: obtaining identification information of each first data frame from the data portion of at least one first data frame, and obtaining identification information of each second data frame from at least one second data frame; obtaining identification information and mapping value of each second data frame from at least one second data frame, and determining identification information of each first data frame based on the mapping value of at least one second data frame and the data portion of at least one first data frame.

[0009] In a fourth aspect, an embodiment of the present application provides a data processing device, which includes: a processing module and a sending module; the processing module is used to obtain at least one first data frame and at least one second data frame; the sending module is used to send at least one first data frame obtained by the processing module through a first communication link, and send 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 the 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; wherein the processing module is specifically used for any of the following items: obtaining at least one first data frame, the third byte or the third bit in the data part of the first data frame includes identification information of the first data frame; and based on at least one first data frame, obtaining at least one second data frame; obtaining at least one first data frame; and processing at least one first data frame to obtain at least one second data frame, and at least one second data frame includes identification information and a mapping value.

[0010] In a fifth aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the method of the first aspect is implemented, or the steps of the method of the second aspect are implemented.

[0011] In a sixth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the method described in the first aspect is implemented, or the steps of the method described in the second aspect are implemented.

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

[0013] In an eighth aspect, an 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 implement the method as described in the first aspect, or to implement the method as described in the second aspect.

[0014] In an embodiment of the present application, a 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; obtain identification information of each first data frame from the data portion of at least one first data frame, and obtain identification information of each second data frame from at least one second data frame; or, obtain identification information and mapping value of each second data frame from at least one second data frame, and determine identification information of each first data frame based on the mapping value of at least one second data frame and the data portion of at least one first data frame, and obtain a target data frame based on the data portion and identification information of at least one first data frame, and the data portion and identification information of at least one second data frame. Through this solution, during a call between a first electronic device and a second electronic device, since 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, 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 shorter time, reducing the risk of data loss and improving data reliability. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 It is one of the flow charts of a data processing method provided in an embodiment of the present application;

[0016] Figure 2A This is a schematic diagram before byte replacement provided in an embodiment of the present application;

[0017] Figure 2B This is a schematic diagram after byte replacement provided in an embodiment of the present application;

[0018] Figure 3A This is a schematic diagram before bit replacement provided in an embodiment of the present application;

[0019] Figure 3B This is a schematic diagram after bit replacement provided in an embodiment of the present application;

[0020] Figure 4 It is a schematic diagram of adding a packet header to a data packet corresponding to a data frame provided in an embodiment of the present application;

[0021] Figure 5 This is the second flowchart of a data processing method provided in an embodiment of the present application;

[0022] Figure 6 This is the third flowchart of a data processing method provided in an embodiment of the present application;

[0023] Figure 7 is a structural schematic diagram of a data processing device provided in an embodiment of the present application;

[0024] Figure 8 is a structural schematic diagram of a data processing device provided in an embodiment of the present application;

[0025] Fig. 9 This is one of the hardware structure diagrams of an electronic device provided in an embodiment of the present application;

[0026] Fig.10 This is the second schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0027] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0028] The terms "first", "second", etc. 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 interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0029] The terms "at least one (item)", "at least one of" and the like in the specification of the present application refer to any one, any two or a combination of more than two of the objects contained therein. For example, at least one (item) of a, b, and c can be represented by: "a", "b", "c", "a and b", "a and c", "b and c" and "a, b and c", where a, b, and c can be single or multiple. Similarly, "at least two (items)" refers to two or more, and its meaning is similar to that of "at least one (item)". The logo in the present application is text, symbol, image, etc. used to indicate information, and logos or other containers can be used as carriers for displaying information, including but not limited to text logos, image logos, symbol logos, etc.

[0030] The data processing method, device, electronic device, medium and computer program product provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.

[0031] The data processing method, device, electronic device, medium and computer program product provided in the embodiments of the present application are suitable for scenarios in which data frames are transmitted between two electronic devices, especially scenarios in which two electronic devices establish a call connection to transmit data frames.

[0032] In the data processing method, apparatus, electronic device, medium and computer program product provided by the embodiments of the present application, during a call between a first electronic device and a second electronic device, since the identification information of the first data frame can be directly obtained from the data portion 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 portion of the first data frame, 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 shorter time, thereby reducing the risk of data loss and improving data reliability.

[0033] The execution subject of the data processing method provided in the embodiment of the present application may be a data processing device. Exemplarily, the data processing device may be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The data processing method provided in the embodiment of the present application will be exemplarily described below using an electronic device as an example.

[0034] The present application embodiment provides a data processing method. Figure 1 FIG. 1 is a flow chart of a data processing method provided by an embodiment of the present application, which can be applied to a first electronic device. Figure 1 As shown, the data processing method provided in the embodiment of the present application may include the following steps 101 to 103.

[0035] Step 101: A 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.

[0036] 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.

[0037] In some embodiments of the present application, when a user of a first electronic device needs to communicate with a user of a second electronic device, the first electronic device may establish a communication connection with the second electronic device for the communication service.

[0038] In some embodiments of the present application, the above-mentioned communication service may be a communication service performed by a user using an electronic device as a medium.

[0039] In some embodiments of the present application, the first communication link and the second communication link are communication links established for the same communication service, which can be understood as: 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 one communication service. It can be understood that one of the two communication links can be used as the main communication link of the above-mentioned one communication service, and the other communication link can be used as the auxiliary communication link of the above-mentioned one communication service, so that the one communication service can obtain better communication quality.

[0040] In some embodiments of the present application, the above-mentioned communication services may include but are not limited to: Circuit Switched (CS), Voice over Long-Term Evolution (VoLTE), Voice over New Radio (VoNR), Video over Long-Term Evolution (ViLTE), Video over New Radio (ViNR), Evolved Packet System fallback (EPS fallback), CS fallback, Voice over WiFi (VoWiFi), and Video over WiFi (Video over WiFi, ViWiFi).

[0041] It should be noted that the first electronic device and the second electronic device are two electronic devices serving the same communication service. In other words, the first electronic device can be a calling device or a called device; similarly, the second electronic device can be a calling device or a called device. This embodiment of the application does not specifically limit this.

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

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

[0044] In some embodiments of the present application, during a call, the first electronic device can establish a first communication link with the second electronic device by connecting to a circuit switch (CS) / Internet Protocol Multimedia Subsystem (IMS) core network device through an access network element. In other words, the first communication link can be a communication link under the operator network corresponding to the subscriber identity module (SIM) card used to provide call services in the first electronic device.

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

[0046] Exemplarily, the communication network corresponding to the first communication link may be an operator network, and the communication network corresponding to the second communication link may be a data network.

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

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

[0049] In some embodiments of the present application, during a conversation between a first electronic device and a second electronic device, the second electronic device can copy a data frame transmitted to the second electronic device and transmit it through the first communication link and the second communication link respectively. In other words, the data frame sent by the second electronic device through the first communication link is the same as the data part in the data frame sent by the second electronic device through the second communication link. In this way, the first electronic device can receive two copies of the data frame 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 conversation.

[0050] In some embodiments of the present application, the above-mentioned data frame may include a voice frame or a video frame collected by the second electronic device.

[0051] In some embodiments of the present application, the above data frame is a protocol data unit of the data link layer, which may include a frame header, a data portion, and a frame trailer. The frame header and the frame trailer contain some necessary control information, such as synchronization information, address information, error control information, etc. The data portion contains data transmitted from the network layer, such as a data packet.

[0052] It is understandable that the above-mentioned voice frames and video frames can be obtained by sampling the user or the user's voice during the call at a certain sampling rate by the second electronic device. The data obtained after each sampling and digital-to-analog conversion can be called a sampling unit, and the sampling unit is the basic unit of the data frame.

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

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

[0055] In some embodiments of the present application, the above-mentioned data frame may be a data frame of PCM data.

[0056] In some embodiments of the present application, the data frames of the above PCM data may be encapsulated into Real-time Transport Protocol (RTP) data packets for transmission.

[0057] Exemplarily, each data frame of PCM data may be encapsulated into an RTP data packet for transmission.

[0058] It can be understood that when the first electronic device sends a data frame to the second electronic device, the data frame sent by the first electronic device through the first communication link has the same data portion as the data frame sent through the second communication link.

[0059] 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 frame can be copied multiple times and transmitted through the multiple communication links. The embodiment of the present application only takes the establishment of the first communication link and the second communication link between the first electronic device and the second electronic device as an example for illustration.

[0060] Step 102: The first electronic device obtains a data portion and identification information of at least one first data frame, and obtains a data portion and identification information of at least one second data frame.

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

[0062] Exemplarily, the identification information of the data frame may be frame number information of the data frame.

[0063] In some embodiments of the present application, the second electronic device may insert identification information of the data frame into the data portion of the collected data frame; or, only add identification information to the second data frame sent through the second communication link, and obtain the identification information of the first data frame based on the match between the data portion of the first data frame and the data portion of the second data frame. When the first electronic device receives the data frame, it can sort and play it according to the identification information of the data frame.

[0064] It can be understood that for the data packet corresponding to the first data frame, since there is no need to add a packet header, the first electronic device can obtain its identification information. Therefore, during the transmission of the data frame, the size of the original data frame can be unchanged, so that the data frame carrying the identification information can be transmitted in a shorter time.

[0065] In the embodiment of the present application, the above step 102 may include the following step 102a or step 102b.

[0066] Step 102a: The first electronic device obtains identification information of each first data frame from the data portion of at least one first data frame, and obtains identification information of each second data frame from at least one second data frame.

[0067] In some embodiments of the present application, the data portion of the first data frame may include identification information of the first data frame, and the data portion of the second data frame may include identification information of the second data frame.

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

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

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

[0071] In some embodiments of the present application, the second electronic device may insert identification information into the data portion 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 merge at least one first data frame and at least one second data frame to obtain a target data frame when there is a data frame loss in the data frame received through the first communication link.

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

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

[0074] In some embodiments of the present application, the target position of the first data frame and the target position of the second data frame may be a default position of the first electronic device and the second electronic device, or may be agreed upon by the first electronic device and the second electronic device, or may be specified by a network side device. This embodiment of the present application does not specifically limit this.

[0075] In some embodiments of the present application, after collecting at least one data frame to be transmitted, the second electronic device may replace at least one byte or bit at the target position of the data frame with identification information to obtain at least one first data frame. Then, the second electronic device may copy the at least one first data frame to obtain at least one second data frame. The second electronic device may 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 at least one first data frame through the first communication link and at least one second data frame through the second communication link, it may parse out the identification information of each first data frame from the target position in the data portion of each first data frame, and parse out the identification information of each second data frame from the target position in the data portion of each second data frame, so as to merge the at least one first data frame and the at least one second data frame according to the identification information.

[0076] It can be understood that for each data frame, the second electronic device can replace the fixed-length bytes or bits (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 out the frame number information of the data frame according to the fixed length at the target position of the data frame.

[0077] For example, the data frame 20 is an original data frame collected by the second electronic device, the target position is 0x00F0 in the data frame 20, and the identification information of the data frame 20 is the frame number information. Figure 2A As shown, the second electronic device can replace the byte "1010101010101010" indicated by 0x00F0 in the data frame 20 with the frame number information. Figure 2B As shown, the byte “0000000011111111” indicated by 0x00F0 in the replaced data frame 20 is the frame number information of the data frame 20 .

[0078] For example, the data frame 30 is an original data frame collected by the second electronic device, the target position is the lowest bit of each byte in the 16 bytes indicated by 0x00F0 to 0x00FF in the data frame 30, and the identification information of the data frame 30 is the frame number information. Figure 3A As shown, the second electronic device can replace the lowest bit of each byte in the 16 bytes indicated by 0x00F0 to 0x00FF in the data frame 30 with the frame number information. Figure 3B As shown, the lowest bit of each byte in the 16 bytes indicated by 0x00F0 to 0x00FF in the replaced data frame 30 is the frame number information of the data frame 20.

[0079] It should be noted that Figure 2A , Figure 2B , Figure 3A as well as Figure 3B The dashed lines are only used to indicate the bytes or bits that need to be replaced and are not visible in actual implementation.

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

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

[0082] Exemplarily, assuming that the first electronic device parses and obtains identification information of at least one first data frame as 1, 2, 4, and 5, the first electronic device may determine that the data frame with frame number information of 3 is lost.

[0083] It is understandable that after obtaining the identification information, the first electronic device can delete the bytes or bits corresponding to the identification information and not use them as data to be played, thereby avoiding the introduction of noise during playback.

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

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

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

[0087] In this way, by obtaining the identification information of the data frame from the data part of the data frame, the playback order of the data frame can be restored without changing the data format of the data frame. Compared with the processing method of performing protocol encapsulation on the data frame number and adding a header to the data frame, the process of parsing the data frame by the first electronic device is simplified.

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

[0089] In some embodiments of the present application, the second data frame may include identification information of the second data frame and a mapping value of the second data frame.

[0090] In some embodiments of the present application, the "determining identification information of each first data frame based on a mapping value of at least one second data frame and a data portion of at least one first data frame" in the above step 102b may include the following steps C and D.

[0091] Step C: The first electronic device determines a mapping value of each first data frame according to the data portion of each first data frame.

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

[0093] In some embodiments of the present application, after receiving at least one first data frame through the first communication link, the first electronic device may calculate a mapping value of each first data frame in the at least one first data frame through an information summary algorithm.

[0094] Exemplarily, taking the information digest algorithm as a HASH algorithm as an example, the first electronic device may calculate a hash value corresponding to each first data frame as a mapping value of the first data frame.

[0095] It should be noted that after the second electronic device collects the data frame, it can send the original data frame to the first electronic device through the first communication link. The mapping value of the data frame is calculated by the information summary 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.

[0096] 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. Figure 4 As shown, the second electronic device will send the first data frame to the first electronic device through the first communication link. At the same time, the second electronic device can add a header to the data packet corresponding to the first data frame to obtain a second data frame, and the header includes the hash value and frame number information of the first data frame. Then the second electronic device can send the second data frame with the header added to the first electronic device through the second communication link.

[0097] Step D: The first electronic device determines the identification information of the third data frame as the identification information of the first data frame.

[0098] 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 at least one second data frame.

[0099] In some embodiments of the present application, the mapping value of the third data frame matches the mapping value of the first data frame, which can be understood as: 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, when 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 portion of the third data frame is the same as the data portion of the first data frame.

[0100] 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 a data frame whose mapping value in at least one second data frame matches the mapping value of the first data frame as the identification information of the first data frame.

[0101] 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. Among them, the header of the data packet corresponding to the second data frame 1 contains the mapping value ecd543bc67 and the frame number information 1, the 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 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 that the mapping value of the first data frame 1 is ecd543bc67, and the mapping value of the first data frame 2 is 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.

[0102] In this way, without changing the original data frame collected by the second electronic device, the identification information of the first data frame can be obtained by using the identification information and mapping value in the data frame received in another communication link, so that the first electronic device can restore the playback order of the information frame and ensure the smoothness of the data frame playback.

[0103] Step 103: The first electronic device obtains a target data frame based on the data portion and identification information of at least one first data frame and the data portion and identification information of at least one second data frame.

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

[0105] In some embodiments of the present application, the first electronic device can merge at least one first data frame and at least one second data frame to obtain a target data frame based on identification information of each first data frame and identification information of each second data frame when data loss exists in the data frames received through the first communication link.

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

[0107] In some embodiments of the present application, the first electronic device may combine at least one received first data frame and at least one received second data frame, and use at least one second data frame to supplement the lost data frame in at least one first data frame to obtain a complete target data frame.

[0108] In the data processing method provided in the embodiment of the present application, during a conversation between a first electronic device and a second electronic device, since 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, 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 shorter time, thereby reducing the risk of data loss and improving data reliability.

[0109] In some embodiments of the present application, the above step 103 may include the following steps 103a and 103b.

[0110] Step 103a: The first electronic device determines a fourth data frame in which a mapping value in at least one second data frame does not match a mapping value in at least one first data frame.

[0111] In some embodiments of the present application, the first electronic device can match the mapping value of the second data frame with the mapping value of the first data frame. When a mapping value of a second data frame cannot find a mapping value of the first data frame that matches it, the electronic device can determine that the second data frame is the fourth data frame lost in the first communication link.

[0112] 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. Among them, the header of the data packet corresponding to the second data frame 1 contains the mapping value ecd543bc67 and the frame number information 1, the 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 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 that the mapping value of the first data frame 1 is ecd543bc67, and the mapping value of the first data frame 2 is 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 fourth data frame lost by the first communication link by the second data frame 2 received through the second communication link.

[0113] Step 103b: The first electronic device inserts the fourth data frame into 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.

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

[0115] It should be noted that since the mapping value is uniquely determined, if a certain segment of data is calculated by the MD5 algorithm, a 32-byte verification information will be obtained, 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 playback order of the data frame, the second electronic device can add an identification information to the header of the data packet corresponding to the second data frame in addition to the mapping value for sorting the data frame.

[0116] Thus, on the one hand, since the data frame lost in the first communication link can be determined by the mapping value of the data frame, the accuracy of determining the lost data frame is guaranteed. On the other hand, the data frame received through the second communication link can be supplemented to at least one first data frame with lost data frame, so as to ensure the smoothness of playing the data frame.

[0117] In some embodiments of the present application, after the above step 101, the data processing method provided by the embodiment of the present application may further include the following step 104.

[0118] Step 104: When the link parameters of the first communication link meet the first condition, the first electronic device uses 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.

[0119] 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; a delay of the first communication link is greater than or equal to a second threshold.

[0120] In some embodiments of the present application, the packet loss rate may indicate the percentage of the number of data packets corresponding to data frames lost during data transmission in a communication link under a 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 a communication network, which can reflect the reliability and quality of data transmission in a communication network. It is understandable that the lower the packet loss rate, the higher the reliability and quality of data transmission.

[0121] 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: the communication network signal quality corresponding to the first communication link is poor, and the data reliability and quality are low. 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 use at least one second data frame received through the second communication link as the target data frame.

[0122] In some embodiments of the present application, the above delay may indicate the time required for a data frame to be transmitted from one end of a communication link to the other end. It is understandable that the smaller the delay, the smaller the time difference between receiving and sending the data frame, and the higher the reliability of the data frame.

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

[0124] In some embodiments of the present application, the first threshold and the second threshold may be set by a user or may be set by default by the first electronic device. This embodiment of the present application does not specifically limit this.

[0125] 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 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.

[0126] In some embodiments of the present application, the "playing audio data or video data corresponding to the target data frame" in the above step 104 may include any of the following: step E, step F, step G.

[0127] Step E: The first electronic device silently plays the audio data or video data corresponding to at least one first data frame, and does not silently play the audio data or video data corresponding to the target data frame.

[0128] Step F: The first electronic device plays audio data or video data corresponding to at least one first data frame at a first volume, and plays audio data or video data corresponding to a target data frame at a second volume.

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

[0130] Step G: The first electronic device plays the audio data or video data corresponding to the target data frame, and does not play the audio data or video data corresponding to at least one first data frame.

[0131] In some embodiments of the present application, the first electronic device plays the audio data or video data corresponding to the target data frame and does not play the audio data or video data corresponding to at least one first data frame, which can be understood as: the first electronic device turns off the voice transmission of at least one first data frame received through the first communication link to the audio playback module, and turns on the voice transmission of at least one second data frame received through the second communication link to the audio playback module.

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

[0133] In some embodiments of the present application, before the above step 101, the data processing method provided by the embodiment of the present application may further include the following step 105.

[0134] Step 105: When the first communication link is established with the second electronic device, if the first communication link satisfies the second condition, the first electronic device establishes a second communication link with the second electronic device.

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

[0136] A reference signal receiving power (RSRP) of the first communication link is less than or equal to a third threshold;

[0137] A signal to interference plus noise ratio (SINR) of the first communication link is less than or equal to a fourth threshold;

[0138] The signal transmission power of the first communication link is less than or equal to a fifth threshold;

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

[0140] In some embodiments of the present application, the first communication link meeting the second condition can be understood as: the first communication link deteriorates, the quality of the data frame transmitted through the first communication link deteriorates, and the reliability decreases. In this way, the first electronic device can establish a second communication link with the second electronic device to compensate for the first communication link with the help of the second communication link, so that the received data frame can be as complete and reliable as possible.

[0141] In some embodiments of the present application, the third threshold, the fourth threshold, the fifth threshold and the sixth threshold may be set by a user or may be set by default by the first electronic device. This embodiment of the present application does not specifically limit this.

[0142] In this way, when the first communication link meets the second condition, the first electronic device can establish a second communication link with the second electronic device, thereby avoiding unnecessary data transmission and saving resources of the first electronic device.

[0143] The present application embodiment provides a data processing method. Figure 5 FIG. 1 is a flow chart of a data processing method provided by an embodiment of the present application, which can be applied to a second electronic device. Figure 5 As shown, the data transmission process provided in the embodiment of the present application may include the following steps 201 and 202.

[0144] Step 201: A second electronic device obtains at least one first data frame and at least one second data frame.

[0145] In the embodiment of the present application, the above step 201 may include the following step 201a or step 201b.

[0146] Step 201a: The second electronic device acquires at least one first data frame, wherein the third byte or the third bit in the data portion of the first data frame includes identification information of the first data frame; and obtains at least one second data frame based on the at least one first data frame.

[0147] Step 201b: The second electronic device obtains at least one first data frame; and processes 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 a mapping value.

[0148] Step 202: The second electronic device sends at least one first data frame through the first communication link, and sends at least one second data frame through the second communication link.

[0149] 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.

[0150] It should be noted that, for detailed descriptions of the above steps 201 and 202, and steps 201a and 202b, reference may be made to the above descriptions of steps 101 to 105. To avoid repetition, they will not be described again here.

[0151] In the data processing method provided in the embodiment of the present application, during a conversation between a first electronic device and a second electronic device, since 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, 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 shorter time, thereby reducing the risk of data loss and improving data reliability.

[0152] It should be noted that in the data processing method provided in the embodiment of the present application, the first electronic device and the second electronic device can be interchangeable. In other words, during the conversation 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 perform the above steps 101 to 105; the first electronic device can also perform the above steps 201 and 202.

[0153] Each of the above-mentioned method embodiments, or various possible implementation methods in each method embodiment can be executed separately, or any two or more of them can be executed in combination with each other. The specific implementation method can be determined according to actual usage requirements, and the embodiments of the present application do not limit this.

[0154] The present application embodiment provides a data processing method. Figure 6 A flow chart of a data processing method provided by an embodiment of the present application is shown, and the method can be applied to a first electronic device and a second electronic device. Figure 6 As shown, the data processing method provided in the embodiment of the present application may include the following steps 301 to 307.

[0155] Step 301: A second electronic device obtains at least one fourth data frame.

[0156] Step 302: The second electronic device replaces the first byte or the first bit in the data portion of each fourth data frame with identification information to obtain at least one first data frame.

[0157] Step 303: The second electronic device copies at least one first data frame to obtain at least one second data frame.

[0158] Step 304: The second electronic device sends at least one first data frame through the first communication link, and sends at least one second data frame through the second communication link.

[0159] Step 305: The first electronic device 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.

[0160] Step 306: The first electronic device parses the data portion of at least one first data frame to obtain identification information of each first data frame, and obtains identification information of each second data frame from at least one second data frame.

[0161] Step 307: The first electronic device combines at least one first data frame and 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.

[0162] In this way, during a conversation between a first electronic device and a second electronic device, since 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, 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 shorter time, reducing the risk of data loss and improving data reliability.

[0163] The data processing method provided in the embodiment of the present application can be executed by a data processing device. In the embodiment of the present application, the data processing device provided in the embodiment of the present application is described by taking the data processing method executed by the data processing device as an example.

[0164] Figure 7 A possible structural diagram of a data processing device involved in an embodiment of the present application is shown. Figure 7 As shown, the data processing device 70 may include: a receiving module 71 and a processing module 72 .

[0165] The receiving module 71 is used to receive at least one first data frame through a first communication link, and to 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 a first electronic device and a second electronic device; the processing module 72 is used to obtain the data portion and identification information of at least one first data frame received by the receiving module 71, and to obtain the data portion and identification information of at least one second data frame received by the receiving module 71; and, based on the data portion and identification information of at least one first data frame, and the data portion and identification information of at least one second data frame, obtain a target data frame;

[0166] The processing module 72 is specifically used for any of the following:

[0167] Acquire identification information of each first data frame from a data portion of at least one first data frame, and acquire identification information of each second data frame from at least one second data frame;

[0168] The identification information and the mapping value of each second data frame are obtained from 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 at least one first data frame.

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

[0170] Obtaining identification information of each first data frame from the first byte or the first bit of the data portion of each first data frame;

[0171] The identification information of each second data frame is obtained from the second byte or the second bit of the data part of each second data frame.

[0172] In a possible implementation manner, the second data frame includes identification information of the second data frame and a mapping value of the second data frame;

[0173] The processing module 72 is specifically used for:

[0174] Determine a mapping value of each first data frame according to the data portion of each first data frame;

[0175] The identification information of the third data frame is determined 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 at least one second data frame.

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

[0177] Determining a fourth data frame in which a mapping value in at least one second data frame does not match a mapping value in at least one first data frame;

[0178] Based on the identification information of the fourth data frame and the identification information of each first data frame, the fourth data frame is inserted into at least one first data frame to obtain a target data frame.

[0179] In a possible implementation, the above device further includes: a playing module;

[0180] The processing module 72 is further configured to, after 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, use the at least one second data frame as a target data frame if the link parameter of the first communication link satisfies the first condition;

[0181] The above-mentioned playing module is used to play the audio data or video data corresponding to the target data frame obtained by the processing module 72;

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

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

[0184] The delay of the first communication link is greater than or equal to the second threshold.

[0185] In a possible implementation, the playback module is specifically used to:

[0186] Play the audio data or video data corresponding to at least one first data frame silently, and do not play the audio data or video data corresponding to the target data frame silently; or,

[0187] The audio data or video data corresponding to at least one first data frame is played at a first volume, and the audio data or video data corresponding to the target data frame is played at a second volume, wherein the second volume is greater than the first volume; or

[0188] The audio data or video data corresponding to the target data frame is played, and the audio data or video data corresponding to at least one first data frame is not played.

[0189] 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, establish a second communication link with the second electronic device if the first communication link satisfies the second condition when the first communication link is established with the second electronic device;

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

[0191] The reference signal received power RSRP of the first communication link is less than or equal to a third threshold;

[0192] A signal-to-noise ratio SINR of the first communication link is less than or equal to a fourth threshold;

[0193] The signal transmission power of the first communication link is less than or equal to a fifth threshold;

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

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

[0196] An embodiment of the present application provides a data processing device. During a communication between the data processing device and a second electronic device, since the identification information of the first data frame can be directly obtained from the data portion of the first data frame, or the identification information of the first data frame can be determined based on a mapping value of the second data frame and the data portion of the first data frame, the data processing 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 shorter time, thereby reducing the risk of data loss and improving data reliability.

[0197] Figure 8 A possible structural diagram of a data processing device involved in an embodiment of the present application is shown. Figure 8 As shown, the data processing device 80 may include: a processing module 81 and a sending module 82.

[0198] The processing module 81 is used to obtain at least one first data frame and at least one second data frame; the sending module 82 is used to send at least one first data frame obtained by the processing module 81 through a first communication link, and send at least one second data frame obtained by the processing module 81 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;

[0199] The processing module 81 is specifically used for any of the following:

[0200] Acquire at least one first data frame, wherein the third byte or the third bit in the data portion of the first data frame includes identification information of the first data frame; and obtain at least one second data frame based on the at least one first data frame;

[0201] 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 a mapping value.

[0202] An embodiment of the present application provides a data processing device. During a communication between a first electronic device and the data processing device, since 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, 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 shorter time, thereby reducing the risk of data loss and improving data reliability.

[0203] The data processing device in the embodiment 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 other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0204] The data processing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0205] The data processing device provided in the embodiment of the present application can implement the various processes implemented in the above-mentioned data processing method embodiment and achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0206] Alternatively, if Fig. 9 As shown, an embodiment of the present application also provides an electronic device 900, including a processor 901 and a memory 902, wherein the memory 902 stores programs or instructions that can be executed on the processor 901, and when the program or instructions are executed by the processor 901, the various steps of the above-mentioned data processing method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.

[0207] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0208] Fig.10 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0209] The electronic device 1000 includes but is not limited to: 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 and other components.

[0210] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.10 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0211] The radio frequency unit 1001 is used to receive at least one first data frame through a first communication link, and to 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 a first electronic device and a second electronic device; the processor 1010 is used to obtain a data portion and identification information of at least one first data frame received by the radio frequency unit 1001, and obtain a data portion and identification information of at least one second data frame received by the radio frequency unit 1001; and, based on the data portion and identification information of at least one first data frame, and the data portion and identification information of at least one second data frame, obtain a target data frame;

[0212] The processor 1010 is specifically configured to:

[0213] Acquire identification information of each first data frame from a data portion of at least one first data frame, and acquire identification information of each second data frame from at least one second data frame;

[0214] The identification information and the mapping value of each second data frame are obtained from 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 at least one first data frame.

[0215] In a possible implementation manner, the processor 1010 is specifically configured to:

[0216] Obtaining identification information of each first data frame from the first byte or the first bit of the data portion of each first data frame;

[0217] The identification information of each second data frame is obtained from the second byte or the second bit of the data part of each second data frame.

[0218] In a possible implementation manner, the second data frame includes identification information of the second data frame and a mapping value of the second data frame;

[0219] The processor 1010 is specifically configured to:

[0220] Determine a mapping value of each first data frame according to the data portion of each first data frame;

[0221] The identification information of the third data frame is determined 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 at least one second data frame.

[0222] In a possible implementation manner, the processor 1010 is specifically configured to:

[0223] Determining a fourth data frame in which a mapping value in at least one second data frame does not match a mapping value in at least one first data frame;

[0224] Based on the identification information of the fourth data frame and the identification information of each first data frame, the fourth data frame is inserted into at least one first data frame to obtain a target data frame.

[0225] In a possible implementation manner, the processor 1010 is further configured to, after the RF 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, use the at least one second data frame as the target data frame if a link parameter of the first communication link satisfies a first condition;

[0226] The audio output unit 1003 is used to play the audio data or video data corresponding to the target data frame obtained by the processor 1010;

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

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

[0229] The delay of the first communication link is greater than or equal to the second threshold.

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

[0231] Play the audio data or video data corresponding to at least one first data frame silently, and do not play the audio data or video data corresponding to the target data frame silently; or,

[0232] The audio data or video data corresponding to at least one first data frame is played at a first volume, and the audio data or video data corresponding to the target data frame is played at a second volume, wherein the second volume is greater than the first volume; or

[0233] The audio data or video data corresponding to the target data frame is played, and the audio data or video data corresponding to at least one first data frame is not played.

[0234] In a possible implementation, the processor 1010 is further configured to, before the RF 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 a second communication link with the second electronic device if the first communication link satisfies the second condition when the first communication link is established with the second electronic device;

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

[0236] The reference signal received power RSRP of the first communication link is less than or equal to a third threshold;

[0237] A signal-to-noise ratio SINR of the first communication link is less than or equal to a fourth threshold;

[0238] The signal transmission power of the first communication link is less than or equal to a fifth threshold;

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

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

[0241] An embodiment of the present application provides an electronic device. During a conversation between a first electronic device and a second electronic device, since 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, 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 shorter time, reducing the risk of data loss and improving data reliability.

[0242] When the electronic device is a second electronic device, the processor 1010 is used to obtain 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 obtained by the processor 1010 through a first communication link, and send at least one second data frame obtained 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;

[0243] The processor 1010 is specifically configured to:

[0244] Acquire at least one first data frame, wherein the third byte or the third bit in the data portion of the first data frame includes identification information of the first data frame; and obtain at least one second data frame based on the at least one first data frame;

[0245] 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 a mapping value.

[0246] An embodiment of the present application provides an electronic device. During a conversation between a first electronic device and a second electronic device, since 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, 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 shorter time, reducing the risk of data loss and improving data reliability.

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

[0248] The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory 1009 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0249] The processor 1010 may 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 application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1010.

[0250] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned data processing method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0251] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0252] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned data processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0253] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0254] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned data processing method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0255] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do 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 methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0256] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0257] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A data processing method, characterized in that: Applied to a first electronic device, the method includes: 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 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; Acquire the data portion and identification information of the at least one first data frame, and acquire the data portion and identification information of the at least one second data frame; Obtaining a target data frame based on the data portion and identification information of the at least one first data frame and the data portion and identification information of the at least one second data frame; The acquiring of the data portion and identification information of the at least one first data frame, and the acquiring of the data portion and identification information of the at least one second data frame include any one of the following: Acquire identification information of each of the first data frames from the data portion of the at least one first data frame, and acquire identification information of each of the second data frames from the at least one second data frame; From the at least one second data frame, identification information and a mapping value of each second data frame are obtained, and 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, identification information of each first data frame is determined.

2. The method according to claim 1, characterized in that The acquiring, from the data portion of the at least one first data frame, identification information of each first data frame comprises: Respectively acquiring identification information of each of the first data frames from a first byte or a first bit of a data portion of each of the first data frames; The acquiring, from the at least one second data frame, identification information of each second data frame comprises: The identification information of each second data frame is obtained from the second byte or the second bit of the data part of each second data frame.

3. The method according to claim 1, characterized in that The second data frame includes identification information of the second data frame and a mapping value of the second data frame; The determining, 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, identification information of each first data frame comprises: Determine a mapping value of each of the first data frames according to the data portion of each of the first data frames; The identification information of the third data frame is determined 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.

4. The method according to claim 3, characterized in that The obtaining of the target data frame based on the data portion and identification information of the at least one first data frame and the data portion and identification information of the at least one second data frame comprises: Determine a fourth data frame in which a mapping value in the at least one second data frame does not match a mapping value in the at least one first data frame; Based on the identification information of the fourth data frame and the identification information of each of the first data frames, the fourth data frame is inserted into the at least one first data frame to obtain a target data frame.

5. The method according to claim 1, characterized in that After receiving at least one first data frame through the first communication link and receiving at least one second data frame through the second communication link, the method further includes: When the link parameter of the first communication link satisfies the first condition, taking the at least one second data frame as a target data frame, and playing the audio data or video data corresponding to the target data frame; 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; The delay of the first communication link is greater than or equal to a second threshold.

6. The method according to claim 5, characterized in that The playing of the audio data or video data corresponding to the target data frame includes: Play the audio data or video data corresponding to the at least one first data frame silently, and do not play the audio data or video data corresponding to the target data frame silently; or, The audio data or video data corresponding to the at least one first data frame is played at a first volume, and the audio data or video data corresponding to the target data frame is played at a second volume, wherein the second volume is greater than the first volume; or The audio data or video data corresponding to the target data frame is played, and the audio data or video data corresponding to the at least one first data frame is not played.

7. The method according to claim 1, characterized in that Before receiving at least one first data frame through the first communication link and receiving at least one second data frame through the second communication link, the method further includes: In the case of establishing the first communication link with the second electronic device, if the first communication link satisfies a second condition, establishing the second communication link with the second electronic device; The second condition includes at least one of the following: The reference signal received power RSRP of the first communication link is less than or equal to a third threshold; A signal-to-noise ratio (SINR) of the first communication link is less than or equal to a fourth threshold; The signal transmission power of the first communication link is less than or equal to a fifth threshold; The channel resources corresponding to the first communication link are less than or equal to a sixth threshold.

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

9. A data processing method, characterized in that: Applied to a second electronic device, the method includes: Acquire 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 acquiring of at least one first data frame and at least one second data frame includes any one of the following: Acquire at least one first data frame, wherein the third byte or the third bit in the data portion of the first data frame includes identification information of the first data frame; and obtain at least one second data frame based on the at least one first data frame; 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 a mapping value.

10. A data processing device, characterized in that: Applied to a first electronic device, the device comprises: a receiving module and a processing module; The receiving module is used 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 processing module is used to obtain the data part and identification information of the at least one first data frame received by the receiving module, and obtain the 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 portion and identification information of the at least one first data frame and the data portion and identification information of the at least one second data frame; Wherein, the processing module is specifically used for any of the following: Acquire identification information of each of the first data frames from the data portion of the at least one first data frame, and acquire identification information of each of the second data frames from the at least one second data frame; From the at least one second data frame, identification information and a mapping value of each second data frame are obtained, and 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, identification information of each first data frame is determined.

11. The device according to claim 10, characterized in that The processing module is specifically used for: Respectively acquiring identification information of each of the first data frames from a first byte or a first bit of a data portion of each of the first data frames; The identification information of each second data frame is obtained from the second byte or the second bit of the data part of each second data frame.

12. The device according to claim 10, characterized in that The second data frame includes identification information of the second data frame and a mapping value of the second data frame; The processing module is specifically used for: Determine a mapping value of each of the first data frames according to the data portion of each of the first data frames; The identification information of the third data frame is determined 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 device according to claim 12, characterized in that The processing module is specifically used for: Determine a fourth data frame in which a mapping value in the at least one second data frame does not match a mapping value in the at least one first data frame; Based on the identification information of the fourth data frame and the identification information of each of the first data frames, the fourth data frame is inserted into the at least one first data frame to obtain a target data frame.

14. The device according to claim 10, characterized in that The device further comprises: a playing module; The processing module is further configured to, after the receiving module 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, use the at least one second data frame as a target data frame if a link parameter of the first communication link satisfies a first condition; The playing module is used to play the 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: The packet loss rate of the first communication link is greater than or equal to a first threshold; The delay of the first communication link is greater than or equal to a second threshold.

15. The device according to claim 14, characterized in that The playback module is specifically used for: Play the audio data or video data corresponding to the at least one first data frame silently, and do not play the audio data or video data corresponding to the target data frame silently; or, The audio data or video data corresponding to the at least one first data frame is played at a first volume, and the audio data or video data corresponding to the target data frame is played at a second volume, wherein the second volume is greater than the first volume; or, The audio data or video data corresponding to the target data frame is played, and the audio data or video data corresponding to the at least one first data frame is not played.

16. The device according to claim 10, characterized in that The processing module is further configured to, before the receiving module 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 if the first communication link satisfies a second condition when the first communication link is established with the second electronic device; The second condition includes at least one of the following: The reference signal received power RSRP of the first communication link is less than or equal to a third threshold; A signal-to-noise ratio (SINR) of the first communication link is less than or equal to a fourth threshold; The signal transmission power of the first communication link is less than or equal to a fifth threshold; The channel resources corresponding to the first communication link are less than or equal to a sixth threshold.

17. The device according to any one of claims 10 to 16, characterized in that The first communication link is a call link, and the second communication link is a network link.

18. A data processing device, characterized in that: Applied to a second electronic device, the device comprises: a processing module and a sending module; The processing module is used to obtain at least one first data frame and at least one second data frame; The sending module is used to send the at least one first data frame obtained by the processing module through a first communication link, and to 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 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; Wherein, the processing module is specifically used for any of the following: Acquire at least one first data frame, wherein the third byte or the third bit in the data portion of the first data frame includes identification information of the first data frame; and obtain at least one second data frame based on the at least one first data frame; 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 a mapping value.

19. An electronic device, characterized in that: It includes a processor and a memory, the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, it implements the data processing method according to any one of claims 1 to 8, or implements the steps of the data processing method according to claim 9.

20. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, it implements the data processing method according to any one of claims 1 to 8, or implements 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 wherein 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 to implement the steps of the data processing method according to claim 9.

Citation Information

Patent Citations

  • Image frame acquisition method and apparatus, and communication device

    CN116347536A

  • Method for link adaptation and transmit power control

    CN1582539A

  • Systems and methods to conserve power of machine-to-machine devices using a shared data channel

    US20140169340A1

  • AU2021240235A1

Cited By

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

    WO2026067208A1