Communication data transmission method and device, equipment and storage medium

By acquiring the key features of communication data, determining the target channel and scoring to select the primary and backup channels, the problem of efficient and stable communication data transmission is solved, and the continuity and reliability of data transmission are achieved.

CN120750486APending Publication Date: 2025-10-03SHENZHEN DINSTAR TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510698930.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-28
Publication Date
2025-10-03

AI Technical Summary

Technical Problem

How to achieve efficient and stable data transmission when faced with huge volumes of communication data.

Method used

By obtaining the key features of communication data, determining the target channel, and scoring the channels to select the first main channel and backup channel, coded data transmission is performed after detecting the network environment, and the main channel and backup channel are used to ensure stable data transmission.

Benefits of technology

It achieves efficient and stable transmission of communication data, ensures the continuity and reliability of data transmission, and avoids the impact of abnormal network environment on data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120750486A_ABST
    Figure CN120750486A_ABST
Patent Text Reader

Abstract

The invention discloses a communication data transmission method and device, equipment and a storage medium, and relates to the technical field of communication, and the method comprises the steps: obtaining key features of to-be-transmitted communication data, and determining a target channel according to the key features; performing primary scoring on the target channels, and selecting a first main channel and a standby channel from the target channels based on a primary scoring result; if it is detected that the current network environment is normal, coding the communication data to be transmitted to obtain coded data; and transmitting the coded data to a receiving end based on the first main channel and / or the standby channel, so that the receiving end decodes the coded data into communication data to be transmitted. The coded data corresponding to the to-be-transmitted communication data is transmitted to the receiving end based on the first main channel and / or the standby channel, the main and standby channels are set to transmit the coded data, and the main and standby channels are selected in a way of grading and optimizing the target channel, so that efficient and stable transmission of the communication data is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a communication data transmission method, apparatus, device and storage medium. Background Art

[0002] With the continuous emergence of emerging technologies such as the Internet of Things, 5G communications, and cloud computing, the number of communication devices has increased exponentially, and at the same time, the volume of communication data has also increased exponentially. Therefore, in the face of such a huge amount of data, how to efficiently and stably transmit communication data has become the key to ensuring the normal operation of various communication devices. Summary of the Invention

[0003] The main purpose of this application is to provide a communication data transmission method, device, equipment and storage medium, aiming to solve the technical problem of how to transmit communication data efficiently and stably.

[0004] To achieve the above object, the present application provides a communication data transmission method, the method comprising the following steps:

[0005] Acquiring key features of communication data to be transmitted, and determining a target channel based on the key features;

[0006] Scoring the target channel once, and selecting a first main channel and a backup channel from the target channel based on the scoring result;

[0007] If it is detected that the current network environment is normal, encoding the communication data to be transmitted to obtain encoded data;

[0008] The encoded data is transmitted to a receiving end based on the first primary channel and / or the backup channel, so that the receiving end decodes the encoded data into the communication data to be transmitted.

[0009] In one embodiment, the step of obtaining key features of the communication data to be transmitted and determining the target channel according to the key features includes:

[0010] Acquiring key features of the communication data to be transmitted, the key features including the amount of data to be transmitted, the transmission time limit, and the transmission protocol;

[0011] Search for available channels that are currently idle, and obtain a target channel after screening the available channels according to the key feature.

[0012] In one embodiment, the step of scoring the target channel once and selecting the first primary channel and the backup channel from the target channel based on the scoring result includes:

[0013] Constructing a scoring formula related to the communication data to be transmitted, wherein the scoring formula is used to evaluate the transmission matching degree corresponding to the communication data to be transmitted in the data transmission channel;

[0014] Scoring the target channel once according to the scoring formula to obtain a scoring result;

[0015] A transmission matching ranking of each channel in the target channel relative to the communication data to be transmitted is determined based on a scoring result, and a first main channel and a backup channel are selected from the target channel according to the transmission matching ranking.

[0016] In one embodiment, before the step of encoding the communication data to be transmitted to obtain the encoded data if the current network environment is detected to be normal, the method further includes:

[0017] If it is detected that there is no call anomaly and / or registration anomaly in the current network, it is determined that the current network environment is normal;

[0018] If a call anomaly and / or a registration anomaly is detected in the current network, the current network environment is determined to be abnormal, and the administrator is notified to perform maintenance on the current network until the call anomaly and / or the registration anomaly no longer exists in the current network.

[0019] In one embodiment, the step of encoding the communication data to be transmitted to obtain encoded data includes:

[0020] If the communication data to be transmitted is audio data, encoding the communication data to be transmitted based on a first encoding method to obtain encoded data, wherein the first encoding method encapsulates audio frames to achieve data encoding;

[0021] If the communication data to be transmitted is video data, the communication data to be transmitted is encoded based on a second encoding method to obtain encoded data, and the second encoding method realizes data encoding by encapsulating video frames.

[0022] In one embodiment, the step of transmitting the encoded data to a receiving end based on the first primary channel and / or the backup channel includes:

[0023] Initiating a transmission process of the encoded data in the first primary channel, and obtaining a real-time load rate of the first primary channel during the transmission process;

[0024] If the real-time load rate is less than or equal to a preset threshold, transmitting the encoded data to a receiving end through the first primary channel;

[0025] If the real-time load rate is greater than a preset threshold, the backup channel is secondary scored, a second main channel is selected from the backup channel based on the secondary scoring result, and the encoded data is transmitted to the receiving end through the second main channel.

[0026] In addition, to achieve the above-mentioned purpose, the present application also proposes a communication data transmission device, which includes:

[0027] A feature acquisition module is used to acquire key features of the communication data to be transmitted and determine the target channel based on the key features;

[0028] a channel scoring module, configured to score the target channel once, and select a first primary channel and a backup channel from the target channel based on the scoring result;

[0029] A data encoding module is used to encode the communication data to be transmitted to obtain encoded data if it is detected that the current network environment is normal;

[0030] A data transmission module is configured to transmit the encoded data to a receiving end based on the first primary channel and / or the backup channel, so that the receiving end decodes the encoded data into the communication data to be transmitted.

[0031] In addition, to achieve the above-mentioned purpose, the present application also proposes a communication data transmission device, which includes: a memory, a processor, and a communication data transmission program stored on the memory and runnable on the processor, and the communication data transmission program is configured to implement the steps of the communication data transmission method described above.

[0032] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a communication data transmission program is stored on the storage medium. When the communication data transmission program is executed by the processor, the steps of the communication data transmission method described above are implemented.

[0033] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer program product, which includes a communication data transmission program, and when the communication data transmission program is executed by a processor, it implements the steps of the communication data transmission method described above.

[0034] The present application obtains the key features of the communication data to be transmitted, determines the target channel according to the key features; scores the target channel once, and selects a first main channel and a backup channel from the target channel based on the scoring result; if it is detected that the current network environment is normal, encodes the communication data to be transmitted to obtain coded data; transmits the coded data to the receiving end based on the first main channel and / or the backup channel, so that the receiving end decodes the coded data into the communication data to be transmitted. The above method of the present application first determines a relatively matching target channel according to the key features of the communication data to be transmitted, and then scores the target channel once to select the first main channel and the backup channel, so that the coded data corresponding to the communication data to be transmitted can be transmitted to the receiving end based on the first main channel and / or the backup channel. Since the present application sets up a main and backup channel to transmit coded data, and proposes a method of scoring and selecting the target channel to select the main and backup channels, it realizes efficient and stable transmission of communication data. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0036] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0037] Figure 1 This is a flow chart of the first embodiment of the communication data transmission method of the present application;

[0038] Figure 2 This is a flow chart of the second embodiment of the communication data transmission method of the present application;

[0039] Figure 3 This is a flowchart of the third embodiment of the communication data transmission method of the present application;

[0040] Figure 4 This is a structural block diagram of the first embodiment of the communication data transmission device of the present application;

[0041] Figure 5 This is a structural diagram of the communication data transmission equipment in the hardware operating environment involved in the embodiment of the present application.

[0042] The realization of the objectives, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0043] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not intended to limit the present application.

[0044] It should be noted that the execution subject of the embodiments of the present application can be a computing service device with audio and video communication and program execution functions, such as a voice and video communication device; or an electronic device capable of implementing the above functions, such as the above-mentioned communication and data transmission device. The following embodiments are described below using a communication and data transmission device as an example.

[0045] The present application provides a method for transmitting data in a communication manner. Figure 1 , Figure 1 This is a flow chart of the first embodiment of the communication data transmission method of the present application.

[0046] In this embodiment, the communication data transmission method includes the following steps:

[0047] Step S10: Acquire key features of the communication data to be transmitted, and determine a target channel according to the key features.

[0048] It should be noted that the above-mentioned communication data to be transmitted can be various information carriers transmitted and processed during the communication process, such as text data, audio data, video data, sensor data, etc., and this embodiment does not limit this.

[0049] It should be understood that the above-mentioned key features may include the transmission data volume, transmission time limit and transmission protocol corresponding to the communication data to be transmitted.

[0050] In a specific implementation, the transmission requirements of the data to be transmitted may be determined based on key features of the communication data to be transmitted, and then a channel matching the transmission requirements may be selected from existing channels as the target channel.

[0051] Step S20: performing a scoring on the target channels, and selecting a first main channel and a backup channel from the target channels based on the scoring result.

[0052] It should be understood that the process of scoring the target channel can be considered as a process of evaluating the degree of compatibility between the target channel and the communication data to be transmitted. Therefore, the above-mentioned scoring result can represent the degree of compatibility between the target channel and the communication data to be transmitted. In particular, the scoring result can be in the form of a percentage (e.g., 50%) or a score out of 10 (e.g., 5 points), etc., which is not limited in this embodiment.

[0053] In a specific implementation, the first primary channel and backup channel can be selected from the target channels based on a single scoring result. The first primary channel represents the communication path that performs the primary data transmission task during the communication process and is the channel that is preferentially used during normal data transmission. The backup channel is a communication path that provides backup and redundancy for the first primary channel. When the first primary channel fails or its performance degrades, the backup channel can take over the data transmission task of the first primary channel, thereby ensuring the continuity of the communication process. The first primary channel and the backup channel together constitute a reliable communication system, and they work together to ensure uninterrupted data transmission.

[0054] Step S30: If it is detected that the current network environment is normal, the communication data to be transmitted is encoded to obtain encoded data.

[0055] It is understandable that in order to avoid omission, damage, etc. of communication data to be transmitted when the network environment is abnormal, it is necessary to encode the communication data to be transmitted only after confirming that the current network environment is normal.

[0056] In a specific implementation, communication data may be encoded to convert the original data into a form suitable for transmission over a channel, thereby improving the reliability, effectiveness, and security of data transmission. For example, the communication data to be transmitted may be encoded based on Huffman coding, arithmetic coding, predictive coding, or other encoding methods, which are not limited in this embodiment.

[0057] Step S40: transmitting the encoded data to a receiving end based on the first primary channel and / or the backup channel, so that the receiving end decodes the encoded data into the communication data to be transmitted.

[0058] It should be noted that the above-mentioned receiving end can be a computing service device with data processing, network communication and program running functions, such as a smart watch, personal computer, mobile phone, etc., or an electronic device that can realize the above-mentioned functions. This embodiment does not limit this.

[0059] In a specific implementation, the encoded data can be preferentially transmitted to the receiver via the primary channel. The primary channel is then monitored in real time to determine if it meets the priority rule. If so, the primary channel can still be used for transmission. If not, this indicates a potential failure in the primary channel (e.g., hardware failure, temporary overload), and the encoded data can be switched to the backup channel for transmission. After receiving the encoded data, the receiver can decode it using a decoding method corresponding to the encoding scheme, thereby obtaining the communication data to be transmitted. Taking Huffman encoding as an example, the corresponding decoding method can be described as follows: A Huffman tree, pre-specified in the encoding scheme, is obtained. Starting from the starting position of the encoded data, the binary sequence is read bit by bit. Based on the structure of the Huffman tree, the tree is traversed from the root node according to the binary bit read (0 or 1). When a 0 is encountered, the tree is traversed to the left child node, and when a 1 is encountered, the tree is traversed to the right child node. When a leaf node is reached, the character corresponding to that leaf node is the decoded character. This character is output, and the above process is repeated for the next bit of the encoded data until all data has been decoded. For example, suppose the codeword for the character "A" in the Huffman tree is "0," the codeword for "B" is "10," and the codeword for "C" is "11." If the encoded data is "01011," decoding begins by reading "0" and, according to the Huffman tree, obtaining the character "A." Next, reading "10" yields the character "B." Finally, reading "11" yields the character "C," resulting in the decoded result of "ABC."

[0060] This embodiment obtains the key features of the communication data to be transmitted, and determines the target channel based on the key features; scores the target channel once, and selects a first main channel and a backup channel from the target channel based on the scoring result; if it is detected that the current network environment is normal, the communication data to be transmitted is encoded to obtain encoded data; based on the first main channel and / or the backup channel, the encoded data is transmitted to the receiving end, so that the receiving end decodes the encoded data into the communication data to be transmitted. The above method of this embodiment first determines a relatively matching target channel based on the key features of the communication data to be transmitted, and then scores the target channel once to select the first main channel and the backup channel, so that the encoded data corresponding to the communication data to be transmitted can be transmitted to the receiving end based on the first main channel and / or the backup channel. Since this embodiment sets the main and backup channels to transmit the encoded data, and proposes a method of scoring and selecting the target channels to select the main and backup channels, it realizes efficient and stable transmission of communication data.

[0061] refer to Figure 2 , Figure 2 This is a flow chart of the second embodiment of the communication data transmission method of the present application.

[0062] In a feasible implementation, step S10 may include:

[0063] Step S101: Acquire key features of communication data to be transmitted, wherein the key features include transmission data volume, transmission time limit and transmission protocol.

[0064] Step S102: searching for available channels that are currently idle, and obtaining a target channel after screening the available channels according to the key features.

[0065] In a specific implementation, the target transmission rate can be first calculated based on the amount of transmitted data and the transmission time limit, and then the available channels can be screened based on the following rules: if the transmission rate of the current available channel is less than the target transmission rate, or the transmission protocol supported by the available channel does not match the transmission protocol corresponding to the communication data to be transmitted, the current available channel will be screened out; if the transmission rate of the current available channel is greater than or equal to the target transmission rate, and the transmission protocol supported by the available channel matches the transmission protocol corresponding to the communication data to be transmitted, the current available channel will be set as the target channel.

[0066] In a feasible implementation, step S20 may include:

[0067] Step S201: constructing a scoring formula related to the communication data to be transmitted, wherein the scoring formula is used to evaluate the transmission matching degree corresponding to the communication data to be transmitted in the data transmission channel.

[0068] Step S202: Score the target channel once according to the scoring formula to obtain a scoring result.

[0069] It should be understood that the above scoring formula can be:

[0070] S1=W1·L1 -1 +W2·B1+W3·(1-P1);

[0071] Among them, S1 represents a scoring result of the target channel, L1 represents the data transmission delay in the target channel, B1 represents the bandwidth of the target channel, P1 represents the data transmission packet loss rate in the target channel, W1, W2, and W3 represent the weight corresponding to the data transmission delay in the target channel, the weight corresponding to the bandwidth of the target channel, and the weight corresponding to the data transmission packet loss rate in the target channel, respectively. In particular, the specific values ​​of W1, W2, and W3 may depend on the priority of the data transmission delay, bandwidth, and data transmission packet loss rate of the target channel in the transmission event to which the communication data to be transmitted belongs. For example, assuming that in a certain transmission event, the transmission speed is required to take priority, and the transmission delay and transmission packet loss rate are respectively second, then the above-mentioned W1, W2, and W3 can be taken as 0.5, 0.3, and 0.2, respectively.

[0072] In a specific implementation, the data transmission delay, bandwidth, and data transmission packet loss rate of the target channel may be substituted into the above scoring formula to obtain the above-mentioned primary scoring result.

[0073] Step S203: determining a transmission matching ranking of each channel in the target channel relative to the communication data to be transmitted based on a scoring result, and selecting a first main channel and a backup channel from the target channel according to the transmission matching ranking.

[0074] In a specific implementation, the aforementioned primary scoring results can be arranged in descending order, that is, the aforementioned primary scoring results can be arranged in order according to the quality of the matching degree of each channel in the target channel relative to the data transmission to be transmitted, to obtain a transmission matching degree ranking. Therefore, the channel ranked first in the transmission matching degree ranking has the best matching degree with the data transmission to be transmitted and can be set as the first primary channel; the channels ranked lower than the first primary channel (for example, the channels corresponding to the second and third rankings) can be set as backup channels.

[0075] This embodiment obtains key features of the communication data to be transmitted, the key features including the amount of data to be transmitted, the transmission time limit and the transmission protocol; searches for available channels that are currently idle, and obtains a target channel after screening the available channels according to the key features; constructs a scoring formula related to the communication data to be transmitted, the scoring formula is used to evaluate the transmission matching degree corresponding to the communication data to be transmitted in the data transmission channel; scores the target channel once according to the scoring formula to obtain a scoring result; determines the transmission matching degree ranking of each channel in the target channel relative to the communication data to be transmitted based on the scoring result, and selects a first main channel and a backup channel from the target channel according to the transmission matching degree ranking. The above method of this embodiment screens the target channel from the available channels according to the amount of data to be transmitted, the transmission time limit and the transmission protocol of the communication data to be transmitted, and then scores the target channel according to the scoring formula to determine the transmission matching degree corresponding to the communication data to be transmitted in the target channel, so that the first main channel and the backup channel with relatively excellent transmission matching degree can be quickly and accurately selected from the target channel.

[0076] refer to Figure 3 , Figure 3 This is a flow chart of the third embodiment of the communication data transmission method of the present application.

[0077] In a feasible implementation manner, before step S30, the following steps may also be included:

[0078] Step S21: If it is detected that there is no call anomaly and / or registration anomaly in the current network, it is determined that the current network environment is normal.

[0079] Step S22: If it is detected that there is a call anomaly and / or a registration anomaly in the current network, the current network environment is determined to be abnormal, and the administrator is notified to perform maintenance on the current network until the call anomaly and / or the registration anomaly no longer exists in the current network.

[0080] In a specific implementation, the presence of call anomalies in the current network can be determined by monitoring parameters such as the call establishment success rate (the ratio of the number of successfully established calls to the total number of attempted calls), call hold time (the duration from call establishment to call release), and call drop rate (the ratio of the number of calls released abnormally during a call process to the total number of calls). For example, if the call establishment success rate is less than 90%, it indicates that a call anomaly exists. If, within a certain time period, 1000 call attempts are made and 920 are successfully established, the call establishment success rate is 92%, which is within the normal range, indicating that there are no call anomalies in the current network. However, if, out of 1000 attempts, only 800 are successfully established, the call establishment success rate is 80%, which is outside the normal range, indicating that there are call anomalies in the current network.

[0081] In addition, you can determine whether there are registration anomalies in the current network by monitoring parameters such as the current network's registration success rate (the ratio of the number of user devices that successfully registered to the number of user devices that attempted to register), registration messages (including the format of registration messages, field length, etc.), and authentication center resources (including CPU usage, memory usage, etc.).

[0082] In a feasible implementation, step S30 may include:

[0083] Step S301: If the communication data to be transmitted is audio data, the communication data to be transmitted is encoded based on a first encoding method to obtain encoded data, wherein the first encoding method encapsulates audio frames to achieve data encoding.

[0084] It should be understood that the above-mentioned first encoding method may include the following steps: format conversion of audio data to ensure that the input data is in a format supported by the audio encoding software, and the sampling rate can be 8 / 12 / 16 / 24 / 48kHz; enhanced preprocessing to perform noise reduction, echo cancellation and other processing on the audio data; audio data framing to divide the continuous audio data into audio frames of fixed size; calling the audio encoding function to encode the audio frames to obtain encoded data.

[0085] Step S302: If the communication data to be transmitted is video data, the communication data to be transmitted is encoded based on a second encoding method to obtain encoded data, where the second encoding method encapsulates video frames to achieve data encoding.

[0086] It should be understood that the above-mentioned second encoding method may include the following steps: adjusting the size of the video data to a size supported by the video encoding software (such as 1280×720) to avoid wasting bandwidth by filling pixels; applying a time domain noise reduction algorithm to reduce high-frequency noise interference in the video data; dividing the video data into key frames and non-key frames, calling the video encoding function to encode the key frames and non-key frames to obtain encoded data.

[0087] In a feasible implementation, step S40 may include:

[0088] Step S401: starting a transmission process of the encoded data in the first main channel, and obtaining a real-time load rate of the first main channel during the transmission process.

[0089] Step S402: If the real-time load rate is less than or equal to a preset threshold, the encoded data is transmitted to a receiving end through the first primary channel.

[0090] It should be noted that the above real-time load rate can be flexibly set according to the usage scenario, such as 80%, 90%, etc., and this embodiment does not impose any limitation on this.

[0091] Step S403: If the real-time load rate is greater than a preset threshold, the backup channels are secondary scored, a second primary channel is selected from the backup channels based on the secondary scoring result, and the encoded data is transmitted to the receiving end through the second primary channel.

[0092] It should be understood that when the real-time load rate is less than or equal to the preset threshold, it indicates that the first main channel is operating normally, so the encoded data can continue to be transmitted to the receiving end through the first main channel; when the real-time load rate is greater than the preset threshold, it indicates that the first main channel is abnormal. Therefore, in order to avoid adverse effects on data transmission, the backup channels can be scored twice, and the second main channel can be selected from the backup channels based on the secondary scoring results, and then the encoded data can be transmitted to the receiving end through the second main channel. Similar to the primary scoring, the scoring formula corresponding to the secondary scoring can be:

[0093] S2=W4·L2 -1 +W5·B2+W6·(1-P2);

[0094] Among them, S2 represents the secondary scoring result of the backup channel, L2 represents the data transmission delay in the backup channel, B2 represents the bandwidth of the backup channel, P2 represents the data transmission packet loss rate in the backup channel, W4, W5, and W6 represent the weight corresponding to the data transmission delay in the backup channel, the weight corresponding to the bandwidth of the backup channel, and the weight corresponding to the data transmission packet loss rate in the backup channel, respectively. In particular, the specific values ​​of W4, W5, and W6 may depend on the priority of the data transmission delay, bandwidth, and data transmission packet loss rate of the backup channel in the transmission event to which the communication data to be transmitted belongs. For example, assuming that in a certain transmission event, the transmission speed is required to take priority, followed by the transmission delay and the transmission packet loss rate, then the above-mentioned W4, W5, and W6 can be taken as 0.5, 0.3, and 0.2, respectively.

[0095] In a specific implementation, the above-mentioned secondary scoring results can be arranged in order from large to small, that is, the above-mentioned secondary scoring results can be arranged in order according to the quality of the matching of each channel in the backup channel relative to the communication data transmission to be transmitted, and then the second main channel is selected according to the arrangement results. The corresponding selection rules are similar to those of the first main channel and will not be repeated here.

[0096] This embodiment determines that the current network environment is normal if it is detected that there is no call anomaly and / or registration anomaly in the current network; determines that the current network environment is abnormal if it is detected that there is a call anomaly and / or registration anomaly in the current network, and notifies the administrator to maintain the current network until the call anomaly and / or registration anomaly no longer exist in the current network; if the communication data to be transmitted is audio data, the communication data to be transmitted is encoded based on a first encoding method to obtain encoded data, and the first encoding method realizes data encoding by encapsulating audio frames; if the communication data to be transmitted is video data, the communication data to be transmitted is encoded based on a second encoding method. The method comprises the following steps: encoding the communication data to be transmitted in a first encoding method to obtain encoded data, and encapsulating the video frame in a second encoding method to achieve data encoding; starting the transmission process of the encoded data in the first main channel, and obtaining the real-time load rate of the first main channel during the transmission process; if the real-time load rate is less than or equal to a preset threshold, transmitting the encoded data to the receiving end through the first main channel; if the real-time load rate is greater than the preset threshold, performing a secondary scoring on the backup channel, selecting a second main channel from the backup channel based on the secondary scoring result, and transmitting the encoded data to the receiving end through the second main channel. The above method of this embodiment ensures that the network environment is normal during data transmission by notifying the administrator to perform maintenance on the current network when a call anomaly and / or registration anomaly is detected in the current network until the call anomaly and / or registration anomaly no longer exists in the current network; and performing a secondary scoring on the backup channel when the real-time load rate of the first main channel is greater than the preset threshold, selecting a second main channel from the backup channel, and transmitting the encoded data to the receiving end through the second main channel, thereby ensuring the smoothness of the transmission process and further improving the transmission efficiency of the communication data.

[0097] Reference Figure 4 , Figure 4 This is a structural block diagram of the first embodiment of the communication data transmission device of this application.

[0098] like Figure 4 As shown, the communication data transmission device proposed in the embodiment of the present application includes:

[0099] A feature acquisition module 401 is configured to acquire key features of communication data to be transmitted and determine a target channel based on the key features;

[0100] A channel scoring module 402 is configured to score the target channel once, and select a first primary channel and a backup channel from the target channel based on the scoring result;

[0101] The data encoding module 403 is configured to encode the communication data to be transmitted to obtain encoded data if it is detected that the current network environment is normal;

[0102] The data transmission module 404 is configured to transmit the encoded data to a receiving end based on the first primary channel and / or the backup channel, so that the receiving end decodes the encoded data into the communication data to be transmitted.

[0103] This embodiment obtains the key features of the communication data to be transmitted, and determines the target channel based on the key features; scores the target channel once, and selects a first main channel and a backup channel from the target channel based on the scoring result; if it is detected that the current network environment is normal, the communication data to be transmitted is encoded to obtain encoded data; based on the first main channel and / or the backup channel, the encoded data is transmitted to the receiving end, so that the receiving end decodes the encoded data into the communication data to be transmitted. The above method of this embodiment first determines a relatively matching target channel based on the key features of the communication data to be transmitted, and then scores the target channel once to select the first main channel and the backup channel, so that the encoded data corresponding to the communication data to be transmitted can be transmitted to the receiving end based on the first main channel and / or the backup channel. Since this embodiment sets the main and backup channels to transmit the encoded data, and proposes a method of scoring and selecting the target channels to select the main and backup channels, it realizes efficient and stable transmission of communication data.

[0104] Based on the first embodiment of the communication data transmission device of the present application, a second embodiment of the communication data transmission device of the present application is proposed.

[0105] In this embodiment, the feature acquisition module 401 is also used to obtain key features of the communication data to be transmitted, the key features including the amount of transmitted data, the transmission time limit and the transmission protocol; search for available channels that are currently idle, and obtain the target channel after screening the available channels according to the key features.

[0106] Furthermore, the channel scoring module 402 is also used to construct a scoring formula related to the communication data to be transmitted, and the scoring formula is used to evaluate the transmission matching degree corresponding to the communication data to be transmitted in the data transmission channel; the target channel is scored once according to the scoring formula to obtain a scoring result; based on the scoring result, the transmission matching degree ranking of each channel in the target channel relative to the communication data to be transmitted is determined, and the first main channel and the backup channel are selected from the target channel according to the transmission matching degree ranking.

[0107] Furthermore, the data encoding module 403 is also used to determine that the current network environment is normal if it is detected that there is no call abnormality and / or registration abnormality in the current network; if it is detected that there is a call abnormality and / or registration abnormality in the current network, it is used to determine that the current network environment is abnormal, and notify the administrator to maintain the current network until the call abnormality and / or registration abnormality no longer exists in the current network.

[0108] Furthermore, the data encoding module 403 is also used to encode the communication data to be transmitted based on a first encoding method to obtain encoded data if the communication data to be transmitted is audio data, and the first encoding method is to encapsulate audio frames to achieve data encoding; if the communication data to be transmitted is video data, the communication data to be transmitted is encoded based on a second encoding method to obtain encoded data, and the second encoding method is to encapsulate video frames to achieve data encoding.

[0109] Furthermore, the data transmission module 404 is also used to start the transmission process of the encoded data in the first main channel, and obtain the real-time load rate of the first main channel during the transmission process; if the real-time load rate is less than or equal to a preset threshold, the encoded data is transmitted to the receiving end through the first main channel; if the real-time load rate is greater than the preset threshold, the backup channel is secondary scored, and a second main channel is selected from the backup channel based on the secondary scoring result, and the encoded data is transmitted to the receiving end through the second main channel.

[0110] Other embodiments or specific implementations of the communication data transmission device of the present application can refer to the above-mentioned method embodiments and will not be repeated here.

[0111] The present application provides a communication data transmission device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the communication data transmission method in the above-mentioned embodiment one.

[0112] Reference below Figure 5, which shows a schematic diagram of the structure of a communication data transmission device suitable for implementing the embodiments of the present application. The communication data transmission device in the embodiments of the present application may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), in-vehicle terminals (such as in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 5 The communication data transmission device shown is merely an example and should not limit the functions and scope of use of the embodiments of the present application.

[0113] like Figure 5 As shown, the communication data transmission device may include a processing device 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes based on programs stored in a read-only memory 1002 or programs loaded from a storage device 1003 into a random access memory 1004. The random access memory 1004 also stores various programs and data required for the operation of the communication data transmission device. The processing device 1001, the read-only memory 1002, and the random access memory 1004 are connected to each other via a bus 1005. An input / output interface 1006 is also connected to the bus. Typically, the following systems can be connected to the input / output interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the communication data transmission device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a communication data transmission device with various systems, it should be understood that it is not required to implement or have all of the systems shown. More or fewer systems can be implemented or provided instead.

[0114] In particular, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via a communication device, or installed from a storage device 1003, or installed from a read-only memory 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are performed.

[0115] The communication data transmission device provided in this application, employing the communication data transmission method of the above-described embodiment, can solve the technical problem of how to efficiently and stably transmit communication data. Compared with the prior art, the beneficial effects of the communication data transmission device provided in this application are the same as those of the communication data transmission method provided in the above-described embodiment. Other technical features of the communication data transmission device are the same as those disclosed in the above-described embodiment and are not further described here.

[0116] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0117] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

[0118] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer program) stored thereon, and the computer-readable program instructions are used to execute the communication data transmission method in the above-mentioned embodiment.

[0119] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.

[0120] The computer-readable storage medium may be included in the communication data transmission device; or it may exist independently without being assembled into the communication data transmission device.

[0121] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the communication data transmission device, the communication data transmission device can write computer program codes for performing the operations of the present application in one or more programming languages ​​or a combination thereof. The above-mentioned programming languages ​​include object-oriented programming languages ​​such as Java, Smalltalk, C++; and also include conventional procedural programming languages ​​such as "C" language or similar programming languages. The program code can be executed completely on the user computer, partially on the user computer, as an independent software package, partially on the user computer and partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user computer through any type of network, such as a local area network (LAN) or a wide area network (WAN), or connected to an external computer (for example, using an Internet service provider to connect through the Internet).

[0122] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, program segment or a part of code, and the module, program segment or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be implemented by a combination of dedicated hardware and computer instructions.

[0123] The modules described in the embodiments of the present application may be implemented in software or hardware, wherein the name of a module does not necessarily limit the unit itself.

[0124] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described communication data transmission method, and can solve the technical problem of how to efficiently and stably transmit communication data. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the communication data transmission method provided in the above-described embodiment, and are not further elaborated here.

[0125] The present application also provides a computer program product, comprising a computer program, which implements the steps of the above-mentioned communication data transmission method when executed by a processor.

[0126] The computer program product provided in this application can solve the technical problem of communication data transmission. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as the beneficial effects of the communication data transmission method provided in the above embodiment, which will not be repeated here.

[0127] The above description is only part of the embodiments of the present application and does not limit the patent scope of the present application. All equivalent structural transformations made by using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect application in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A communication data transmission method, characterized in that: The method comprises the following steps: Acquiring key features of communication data to be transmitted, and determining a target channel based on the key features; Scoring the target channel once, and selecting a first main channel and a backup channel from the target channel based on the scoring result; If it is detected that the current network environment is normal, encoding the communication data to be transmitted to obtain encoded data; The encoded data is transmitted to a receiving end based on the first primary channel and / or the backup channel, so that the receiving end decodes the encoded data into the communication data to be transmitted.

2. The communication data transmission method according to claim 1, wherein: The step of obtaining key features of the communication data to be transmitted and determining the target channel according to the key features includes: Acquiring key features of the communication data to be transmitted, the key features including the amount of data to be transmitted, the transmission time limit, and the transmission protocol; Search for available channels that are currently idle, and obtain a target channel after screening the available channels according to the key feature.

3. The communication data transmission method according to claim 1, wherein: The step of scoring the target channel once and selecting the first main channel and the backup channel from the target channel based on the scoring result includes: Constructing a scoring formula related to the communication data to be transmitted, wherein the scoring formula is used to evaluate the transmission matching degree corresponding to the communication data to be transmitted in the data transmission channel; Scoring the target channel once according to the scoring formula to obtain a scoring result; A transmission matching ranking of each channel in the target channel relative to the communication data to be transmitted is determined based on a scoring result, and a first main channel and a backup channel are selected from the target channel according to the transmission matching ranking.

4. The communication data transmission method according to claim 1, wherein: If it is detected that the current network environment is normal, encoding the communication data to be transmitted to obtain the encoded data, the method further includes: If it is detected that there is no call anomaly and / or registration anomaly in the current network, it is determined that the current network environment is normal; If a call anomaly and / or a registration anomaly is detected in the current network, the current network environment is determined to be abnormal, and the administrator is notified to perform maintenance on the current network until the call anomaly and / or the registration anomaly no longer exists in the current network.

5. The communication data transmission method according to claim 1, wherein: The step of encoding the communication data to be transmitted to obtain encoded data includes: If the communication data to be transmitted is audio data, encoding the communication data to be transmitted based on a first encoding method to obtain encoded data, wherein the first encoding method encapsulates audio frames to achieve data encoding; If the communication data to be transmitted is video data, the communication data to be transmitted is encoded based on a second encoding method to obtain encoded data, and the second encoding method realizes data encoding by encapsulating video frames.

6. The communication data transmission method according to claim 1, wherein: The step of transmitting the encoded data to a receiving end based on the first primary channel and / or the backup channel includes: Initiating a transmission process of the encoded data in the first primary channel, and obtaining a real-time load rate of the first primary channel during the transmission process; If the real-time load rate is less than or equal to a preset threshold, transmitting the encoded data to a receiving end through the first primary channel; If the real-time load rate is greater than a preset threshold, the backup channel is secondary scored, a second main channel is selected from the backup channel based on the secondary scoring result, and the encoded data is transmitted to the receiving end through the second main channel.

7. A communication data transmission device, characterized in that: The communication data transmission device includes: A feature acquisition module is used to acquire key features of the communication data to be transmitted and determine the target channel based on the key features; a channel scoring module, configured to score the target channel once, and select a first primary channel and a backup channel from the target channel based on the scoring result; A data encoding module is used to encode the communication data to be transmitted to obtain encoded data if it is detected that the current network environment is normal; A data transmission module is configured to transmit the encoded data to a receiving end based on the first primary channel and / or the backup channel, so that the receiving end decodes the encoded data into the communication data to be transmitted.

8. A communication data transmission device, characterized in that: The device includes: a memory, a processor, and a communication data transmission program stored in the memory and executable on the processor, wherein the communication data transmission program is configured to implement the steps of the communication data transmission method according to any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a communication data transmission program is stored on the storage medium. When the communication data transmission program is executed by a processor, the steps of the communication data transmission method according to any one of claims 1 to 6 are implemented.

10. A computer program product, characterized in that The computer program product includes a communication data transmission program, and when the communication data transmission program is executed by a processor, the steps of the communication data transmission method according to any one of claims 1 to 6 are implemented.